@clickview/lite 0.32.3 → 0.32.5-dev.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/{1064-lite-e6ec84fd3f.chunk.css → 1064-lite-b3840e522e.chunk.css} +2 -2
- package/dist/css/{1366-lite-0239ab3e7e.chunk.css → 1366-lite-7a13bffe4a.chunk.css} +3 -3
- package/dist/css/{1475-lite-1b41a0628c.chunk.css → 1475-lite-8717f8b322.chunk.css} +3 -3
- package/dist/css/162-lite-2da1ee274f.chunk.css +37 -0
- package/dist/css/{4484-lite-204fa1d3ba.chunk.css → 1725-lite-6efa9a8c08.chunk.css} +1 -1
- package/dist/css/1750-lite-1464ddc6ff.chunk.css +3 -0
- package/dist/css/{1781-lite-d3216fb72f.chunk.css → 1781-lite-028e7f49eb.chunk.css} +2 -2
- package/dist/css/1891-lite-ff35c99cb7.chunk.css +2 -0
- package/dist/css/{2066-lite-4e16a83a36.chunk.css → 2066-lite-c31f88668c.chunk.css} +4 -4
- package/dist/css/2118-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{2318-lite-ca6d519c2e.chunk.css → 2318-lite-1d266f666c.chunk.css} +1 -1
- package/dist/css/{4874-lite-15aa778737.chunk.css → 2729-lite-ebe3cdda84.chunk.css} +2 -2
- package/dist/css/{275-lite-71b01cc990.chunk.css → 275-lite-f1860ca39a.chunk.css} +2 -2
- package/dist/css/{3091-lite-e0fb499d6e.chunk.css → 3091-lite-ea247cd3c7.chunk.css} +2 -2
- package/dist/css/{3154-lite-11158838c0.chunk.css → 3154-lite-e39ddb97b4.chunk.css} +1 -1
- package/dist/css/{4229-lite-6aa69cd401.chunk.css → 3446-lite-ded5e413ce.chunk.css} +2 -2
- package/dist/css/3468-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/3533-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{355-lite-271a4bb3d4.chunk.css → 355-lite-eb1d4d3152.chunk.css} +2 -2
- package/dist/css/{3645-lite-304423256b.chunk.css → 3645-lite-f1f1b748f7.chunk.css} +1 -1
- package/dist/css/3667-lite-c160f399ef.chunk.css +3 -0
- package/dist/css/{3755-lite-21f15b7906.chunk.css → 3755-lite-19658f72e9.chunk.css} +2 -2
- package/dist/css/{9194-lite-d395807101.chunk.css → 3789-lite-25d999ba37.chunk.css} +2 -1
- package/dist/css/{3849-lite-2eb46f0334.chunk.css → 3849-lite-fa93aa92bf.chunk.css} +1 -1
- package/dist/css/4032-lite-d9c7560726.chunk.css +4 -0
- package/dist/css/{4052-lite-6bf4f7a77b.chunk.css → 4052-lite-e96ead7ea1.chunk.css} +2 -2
- package/dist/css/{4145-lite-a27eec9ae8.chunk.css → 4145-lite-419c7a3152.chunk.css} +2 -2
- package/dist/css/{3322-lite-2cb4fd8dc1.chunk.css → 420-lite-898652e17b.chunk.css} +0 -1
- package/dist/css/{2477-lite-416e958638.chunk.css → 4373-lite-975f9b4d75.chunk.css} +2 -2
- package/dist/css/{8556-lite-cdf9814e9a.chunk.css → 4380-lite-1e4722df6b.chunk.css} +2 -2
- package/dist/css/{4537-lite-beac80e560.chunk.css → 4537-lite-3469c21deb.chunk.css} +1 -1
- package/dist/css/4541-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{1291-lite-1c4780743f.chunk.css → 4612-lite-3886475291.chunk.css} +2 -2
- package/dist/css/{4617-lite-5e8387006a.chunk.css → 4617-lite-ed371d2824.chunk.css} +2 -2
- package/dist/css/4705-lite-54b30399d3.chunk.css +3 -0
- package/dist/css/4753-lite-d25306256f.chunk.css +2 -0
- package/dist/css/482-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{2729-lite-15aa778737.chunk.css → 4874-lite-ebe3cdda84.chunk.css} +2 -2
- package/dist/css/{4942-lite-bd40e9c904.chunk.css → 4942-lite-5189588330.chunk.css} +1 -1
- package/dist/css/510-lite-b97d0f723f.chunk.css +3 -0
- package/dist/css/{5171-lite-231fb4351a.chunk.css → 5171-lite-bb5871d776.chunk.css} +2 -2
- package/dist/css/519-lite-e5eb6a5c45.chunk.css +3 -0
- package/dist/css/{6330-lite-bd40e9c904.chunk.css → 5268-lite-5189588330.chunk.css} +1 -1
- package/dist/css/{8035-lite-e6ec84fd3f.chunk.css → 5590-lite-b3840e522e.chunk.css} +2 -2
- package/dist/css/{5590-lite-e6ec84fd3f.chunk.css → 5659-lite-b3840e522e.chunk.css} +2 -2
- package/dist/css/{6117-lite-fe222571f3.chunk.css → 6117-lite-9f291e9fd0.chunk.css} +1 -1
- package/dist/css/{6154-lite-b8ba830cd3.chunk.css → 6154-lite-a0abd6b2f9.chunk.css} +3 -3
- package/dist/css/6285-lite-d714304d0d.chunk.css +2 -0
- package/dist/css/{4290-lite-7bd376fdab.chunk.css → 6290-lite-cbc4dea7ce.chunk.css} +1 -1
- package/dist/css/{5268-lite-bd40e9c904.chunk.css → 6330-lite-5189588330.chunk.css} +1 -1
- package/dist/css/{6932-lite-944c5933dc.chunk.css → 6407-lite-2a91046512.chunk.css} +2 -2
- package/dist/css/6465-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/6689-lite-ed8e07dd89.chunk.css +4 -0
- package/dist/css/{7952-lite-0a9d045149.chunk.css → 6702-lite-285d18c247.chunk.css} +2 -2
- package/dist/css/6817-lite-b97d0f723f.chunk.css +3 -0
- package/dist/css/{6822-lite-927bfd9703.chunk.css → 6822-lite-c2527edca1.chunk.css} +2 -2
- package/dist/css/{8500-lite-6cb624c329.chunk.css → 6957-lite-8d71b12aa5.chunk.css} +2 -2
- package/dist/css/7112-lite-a4bcbd8002.chunk.css +3 -0
- package/dist/css/7128-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/7172-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/7178-lite-b4e4346f43.chunk.css +3 -0
- package/dist/css/{7286-lite-da823e464b.chunk.css → 7286-lite-5a6b3f32ab.chunk.css} +2 -2
- package/dist/css/{7409-lite-3342fc3859.chunk.css → 7409-lite-3b312b926d.chunk.css} +2 -2
- package/dist/css/{7484-lite-ee2799eab2.chunk.css → 7484-lite-1a3ccb3597.chunk.css} +2 -2
- package/dist/css/7818-lite-02acf4690b.chunk.css +2 -0
- package/dist/css/8025-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{6254-lite-d969bbf4ac.chunk.css → 817-lite-665d49932b.chunk.css} +2 -2
- package/dist/css/8383-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{4380-lite-cdf9814e9a.chunk.css → 8556-lite-1e4722df6b.chunk.css} +2 -2
- package/dist/css/{8621-lite-bbdcb78b4c.chunk.css → 8621-lite-76dde2eb8d.chunk.css} +1 -1
- package/dist/css/{8820-lite-76d15a1090.chunk.css → 8820-lite-57008e3940.chunk.css} +2 -2
- package/dist/css/8935-lite-dda85abf44.chunk.css +4 -0
- package/dist/css/{8960-lite-9068589bd0.chunk.css → 8960-lite-79f8856b6c.chunk.css} +2 -2
- package/dist/css/9060-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{9151-lite-34a72dd76a.chunk.css → 9151-lite-c4a0ad3e8f.chunk.css} +1 -1
- package/dist/css/9455-lite-a1c3df8800.chunk.css +5 -0
- package/dist/css/{9484-lite-bd40e9c904.chunk.css → 9484-lite-5189588330.chunk.css} +1 -1
- package/dist/css/{9714-lite-194caaa213.chunk.css → 9714-lite-72b0f59716.chunk.css} +3 -3
- package/dist/css/{9744-lite-e0fb499d6e.chunk.css → 9744-lite-ea247cd3c7.chunk.css} +2 -2
- package/dist/css/lite-app-3a1c9a1d2b.css +52 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1064-c89603c84c-lite.chunk.js +1 -0
- package/dist/scripts/1106-654e5682c2-lite.chunk.js +1 -0
- package/dist/scripts/1285-6f221ec83e-lite.chunk.js +1 -0
- package/dist/scripts/1291-94108fc09a-lite.chunk.js +1 -0
- package/dist/scripts/1354-33c5905ae6-lite.chunk.js +2 -0
- package/dist/scripts/1366-666ef709a1-lite.chunk.js +2 -0
- package/dist/scripts/1475-c84cf7b8c7-lite.chunk.js +1 -0
- package/dist/scripts/1517-ba6874eca4-lite.chunk.js +1 -0
- package/dist/scripts/1518-c4881607ce-lite.chunk.js +1 -0
- package/dist/scripts/1526-4b6226c3a3-lite.chunk.js +1 -0
- package/dist/scripts/1592-aa2bc45d63-lite.chunk.js +2 -0
- package/dist/scripts/162-51e28f0e8d-lite.chunk.js +2 -0
- package/dist/scripts/1628-ab186495a7-lite.chunk.js +1 -0
- package/dist/scripts/1672-2a6d69b169-lite.chunk.js +2 -0
- package/dist/scripts/1725-30a5110c8d-lite.chunk.js +1 -0
- package/dist/scripts/1726-3bd6a64ab2-lite.chunk.js +1 -0
- package/dist/scripts/1750-4b785132ad-lite.chunk.js +1 -0
- package/dist/scripts/1781-40d8e94385-lite.chunk.js +1 -0
- package/dist/scripts/1818-6e03769806-lite.chunk.js +1 -0
- package/dist/scripts/1820-8268536e88-lite.chunk.js +1 -0
- package/dist/scripts/1830-565ee5aa0c-lite.chunk.js +1 -0
- package/dist/scripts/1837-e6891957ae-lite.chunk.js +1 -0
- package/dist/scripts/1863-47eef75488-lite.chunk.js +1 -0
- package/dist/scripts/1891-20227a97bd-lite.chunk.js +1 -0
- package/dist/scripts/1913-6c98c0a34f-lite.chunk.js +1 -0
- package/dist/scripts/1924-8c219e2149-lite.chunk.js +1 -0
- package/dist/scripts/1943-cf609bd18b-lite.chunk.js +1 -0
- package/dist/scripts/1958-6de295ac2f-lite.chunk.js +1 -0
- package/dist/scripts/2066-f1ee632b62-lite.chunk.js +2 -0
- package/dist/scripts/209-bea4fb3c22-lite.chunk.js +1 -0
- package/dist/scripts/2095-498558805d-lite.chunk.js +1 -0
- package/dist/scripts/2118-a281da36fd-lite.chunk.js +2 -0
- package/dist/scripts/2175-1a9cac2654-lite.chunk.js +1 -0
- package/dist/scripts/2199-d8e643d50d-lite.chunk.js +1 -0
- package/dist/scripts/2208-6320d5c5ec-lite.chunk.js +1 -0
- package/dist/scripts/2229-c122a30392-lite.chunk.js +1 -0
- package/dist/scripts/2235-b9198e9674-lite.chunk.js +1 -0
- package/dist/scripts/2269-7a1c771947-lite.chunk.js +1 -0
- package/dist/scripts/227-e81fa36f91-lite.chunk.js +1 -0
- package/dist/scripts/2279-40f438c92d-lite.chunk.js +1 -0
- package/dist/scripts/2318-204c094444-lite.chunk.js +1 -0
- package/dist/scripts/2469-8591c7a350-lite.chunk.js +1 -0
- package/dist/scripts/2561-a7ccb8c0fa-lite.chunk.js +1 -0
- package/dist/scripts/2564-6030f21acd-lite.chunk.js +1 -0
- package/dist/scripts/2566-c38b03672e-lite.chunk.js +1 -0
- package/dist/scripts/2608-e2b5d4de7a-lite.chunk.js +1 -0
- package/dist/scripts/2665-af12e85b3f-lite.chunk.js +1 -0
- package/dist/scripts/2678-b53d60e821-lite.chunk.js +2 -0
- package/dist/scripts/2729-feeb22f8a9-lite.chunk.js +1 -0
- package/dist/scripts/275-0cd72590c8-lite.chunk.js +1 -0
- package/dist/scripts/276-11cc4ff717-lite.chunk.js +1 -0
- package/dist/scripts/287-223a01d363-lite.chunk.js +1 -0
- package/dist/scripts/2877-d3c00abb14-lite.chunk.js +1 -0
- package/dist/scripts/2958-3f6dfb6fa9-lite.chunk.js +1 -0
- package/dist/scripts/{2966-5425811e8d-lite.chunk.js → 2966-0a626741f2-lite.chunk.js} +1 -1
- package/dist/scripts/3012-b64578f4b5-lite.chunk.js +1 -0
- package/dist/scripts/3020-b0fd4b4978-lite.chunk.js +1 -0
- package/dist/scripts/3091-b372a6e5a8-lite.chunk.js +1 -0
- package/dist/scripts/3108-9f90ad6dba-lite.chunk.js +1 -0
- package/dist/scripts/3154-25535da78b-lite.chunk.js +1 -0
- package/dist/scripts/3171-ca6a42c306-lite.chunk.js +1 -0
- package/dist/scripts/3200-3bbafd3e8a-lite.chunk.js +1 -0
- package/dist/scripts/3216-47d94fcff8-lite.chunk.js +1 -0
- package/dist/scripts/{8176-4f92cf69ff-lite.chunk.js → 3237-35a98ed3a1-lite.chunk.js} +1 -1
- package/dist/scripts/3285-85360362bb-lite.chunk.js +1 -0
- package/dist/scripts/3371-61857af54b-lite.chunk.js +1 -0
- package/dist/scripts/3378-205ec27cf3-lite.chunk.js +1 -0
- package/dist/scripts/3446-cb79c1bff9-lite.chunk.js +1 -0
- package/dist/scripts/3468-ce102222d3-lite.chunk.js +1 -0
- package/dist/scripts/3514-4c7a73efac-lite.chunk.js +1 -0
- package/dist/scripts/3533-165a400f8a-lite.chunk.js +1 -0
- package/dist/scripts/355-43835ac290-lite.chunk.js +1 -0
- package/dist/scripts/3602-c5f7a74c8b-lite.chunk.js +2 -0
- package/dist/scripts/3645-86f0ed022f-lite.chunk.js +2 -0
- package/dist/scripts/3654-5344eb1cc5-lite.chunk.js +1 -0
- package/dist/scripts/3667-c5b8a096c2-lite.chunk.js +2 -0
- package/dist/scripts/3727-6c63240ea2-lite.chunk.js +1 -0
- package/dist/scripts/3728-952e59af2f-lite.chunk.js +1 -0
- package/dist/scripts/3729-fb0ebdda2b-lite.chunk.js +1 -0
- package/dist/scripts/3754-ad907b38cc-lite.chunk.js +1 -0
- package/dist/scripts/3755-51bd37a5c6-lite.chunk.js +1 -0
- package/dist/scripts/3789-4cb6d829f6-lite.chunk.js +2 -0
- package/dist/scripts/{3848-ec29f6e574-lite.chunk.js → 3848-0c6b5bba24-lite.chunk.js} +1 -1
- package/dist/scripts/3849-b0db69d3db-lite.chunk.js +1 -0
- package/dist/scripts/389-fc8f4fcbf4-lite.chunk.js +1 -0
- package/dist/scripts/3962-e5b5657359-lite.chunk.js +1 -0
- package/dist/scripts/4032-279a38c349-lite.chunk.js +1 -0
- package/dist/scripts/4052-4548ee2a0c-lite.chunk.js +1 -0
- package/dist/scripts/4067-7dea084485-lite.chunk.js +1 -0
- package/dist/scripts/414-712655c265-lite.chunk.js +1 -0
- package/dist/scripts/4145-bc7f5915d7-lite.chunk.js +1 -0
- package/dist/scripts/4182-6a6ad037b3-lite.chunk.js +1 -0
- package/dist/scripts/420-1d548d3b84-lite.chunk.js +1 -0
- package/dist/scripts/4326-af6113a1df-lite.chunk.js +1 -0
- package/dist/scripts/4343-84cca94426-lite.chunk.js +1 -0
- package/dist/scripts/4373-039b523832-lite.chunk.js +1 -0
- package/dist/scripts/4380-719146155f-lite.chunk.js +1 -0
- package/dist/scripts/4393-df6aadca06-lite.chunk.js +1 -0
- package/dist/scripts/4417-63dce95be2-lite.chunk.js +1 -0
- package/dist/scripts/4423-3424b647e8-lite.chunk.js +1 -0
- package/dist/scripts/4436-843f23ed17-lite.chunk.js +1 -0
- package/dist/scripts/4537-9c5fd00b48-lite.chunk.js +1 -0
- package/dist/scripts/4541-33b739b0d8-lite.chunk.js +1 -0
- package/dist/scripts/4612-2c0e7977a2-lite.chunk.js +1 -0
- package/dist/scripts/4617-591aee68e0-lite.chunk.js +1 -0
- package/dist/scripts/4632-83f6987cd0-lite.chunk.js +1 -0
- package/dist/scripts/4657-da41ee610c-lite.chunk.js +2 -0
- package/dist/scripts/4676-adc55dfa15-lite.chunk.js +2 -0
- package/dist/scripts/4690-180c8c170a-lite.chunk.js +1 -0
- package/dist/scripts/4705-96be64b79d-lite.chunk.js +1 -0
- package/dist/scripts/4753-31e147c1a9-lite.chunk.js +1 -0
- package/dist/scripts/4770-78dca0fe91-lite.chunk.js +1 -0
- package/dist/scripts/482-7c9d6c3584-lite.chunk.js +1 -0
- package/dist/scripts/4893-c04f7f4d32-lite.chunk.js +1 -0
- package/dist/scripts/4895-ab469a3b66-lite.chunk.js +1 -0
- package/dist/scripts/4942-9db184d708-lite.chunk.js +2 -0
- package/dist/scripts/5009-9e45034def-lite.chunk.js +2 -0
- package/dist/scripts/5018-d2c1af9240-lite.chunk.js +1 -0
- package/dist/scripts/5040-3d6023b7e1-lite.chunk.js +1 -0
- package/dist/scripts/510-ef57ce883d-lite.chunk.js +1 -0
- package/dist/scripts/5134-6d70bcc26e-lite.chunk.js +1 -0
- package/dist/scripts/5143-d11346cce2-lite.chunk.js +1 -0
- package/dist/scripts/5171-926c0772a6-lite.chunk.js +1 -0
- package/dist/scripts/{5173-8046faf648-lite.chunk.js → 5173-e1c8a64adb-lite.chunk.js} +1 -1
- package/dist/scripts/519-5dff99c40b-lite.chunk.js +1 -0
- package/dist/scripts/5229-13ee2bf768-lite.chunk.js +1 -0
- package/dist/scripts/5268-029905c5f0-lite.chunk.js +2 -0
- package/dist/scripts/5271-1df4d9d742-lite.chunk.js +1 -0
- package/dist/scripts/528-bc970ef53c-lite.chunk.js +1 -0
- package/dist/scripts/5291-ca756f9f8a-lite.chunk.js +1 -0
- package/dist/scripts/5385-a2451e3eec-lite.chunk.js +1 -0
- package/dist/scripts/{5509-35f1b780d4-lite.chunk.js → 5509-9e9e7bc4a9-lite.chunk.js} +1 -1
- package/dist/scripts/5512-82edf40ee3-lite.chunk.js +1 -0
- package/dist/scripts/5590-f5dbe096c3-lite.chunk.js +1 -0
- package/dist/scripts/5595-99e11127bb-lite.chunk.js +1 -0
- package/dist/scripts/5606-486a41d299-lite.chunk.js +1 -0
- package/dist/scripts/5622-7b29606856-lite.chunk.js +2 -0
- package/dist/scripts/5659-92c6bf622e-lite.chunk.js +1 -0
- package/dist/scripts/5776-27f15a637f-lite.chunk.js +1 -0
- package/dist/scripts/5823-480e485fdb-lite.chunk.js +1 -0
- package/dist/scripts/5877-e318dacbf1-lite.chunk.js +1 -0
- package/dist/scripts/5914-3162035c4e-lite.chunk.js +1 -0
- package/dist/scripts/5974-107738ce13-lite.chunk.js +1 -0
- package/dist/scripts/{5986-38e236e499-lite.chunk.js → 5986-d9b797867b-lite.chunk.js} +1 -1
- package/dist/scripts/6057-dd865f2846-lite.chunk.js +1 -0
- package/dist/scripts/6117-fae9185071-lite.chunk.js +1 -0
- package/dist/scripts/615-50555390cc-lite.chunk.js +1 -0
- package/dist/scripts/6154-107ea02e45-lite.chunk.js +1 -0
- package/dist/scripts/6158-4bdb28b41e-lite.chunk.js +1 -0
- package/dist/scripts/6159-2111108b27-lite.chunk.js +1 -0
- package/dist/scripts/6274-723129c5c6-lite.chunk.js +1 -0
- package/dist/scripts/6285-4808d8e6db-lite.chunk.js +1 -0
- package/dist/scripts/6290-8204f439c2-lite.chunk.js +1 -0
- package/dist/scripts/6302-6690979e80-lite.chunk.js +1 -0
- package/dist/scripts/6330-1a2cb669fa-lite.chunk.js +1 -0
- package/dist/scripts/6368-8532bb9df5-lite.chunk.js +1 -0
- package/dist/scripts/6370-a15bddb981-lite.chunk.js +1 -0
- package/dist/scripts/6407-651ccf60e3-lite.chunk.js +1 -0
- package/dist/scripts/6450-6e367c2ef3-lite.chunk.js +1 -0
- package/dist/scripts/6465-3b025df7ce-lite.chunk.js +1 -0
- package/dist/scripts/6480-126763c9bc-lite.chunk.js +1 -0
- package/dist/scripts/6493-8957a82163-lite.chunk.js +1 -0
- package/dist/scripts/6532-04ba86364b-lite.chunk.js +1 -0
- package/dist/scripts/6572-8800413390-lite.chunk.js +1 -0
- package/dist/scripts/6604-968eb39831-lite.chunk.js +1 -0
- package/dist/scripts/6662-0cdefe8716-lite.chunk.js +1 -0
- package/dist/scripts/6689-bf6b056ced-lite.chunk.js +1 -0
- package/dist/scripts/6702-bbebb7030e-lite.chunk.js +1 -0
- package/dist/scripts/6788-e7ccd0d5a6-lite.chunk.js +1 -0
- package/dist/scripts/6817-bed9ca6833-lite.chunk.js +1 -0
- package/dist/scripts/6821-dd1c07bb4f-lite.chunk.js +1 -0
- package/dist/scripts/6822-15e9977d1f-lite.chunk.js +1 -0
- package/dist/scripts/6866-6824b66ebf-lite.chunk.js +1 -0
- package/dist/scripts/6873-24746fa2b4-lite.chunk.js +1 -0
- package/dist/scripts/689-076f4dd986-lite.chunk.js +1 -0
- package/dist/scripts/{6896-79fa541f46-lite.chunk.js → 6896-75b32c41e8-lite.chunk.js} +2 -2
- package/dist/scripts/{691-1a7a29fb40-lite.chunk.js → 691-670cb6f7e6-lite.chunk.js} +2 -2
- package/dist/scripts/6913-f2a9eea63b-lite.chunk.js +1 -0
- package/dist/scripts/6930-4c28b4f509-lite.chunk.js +1 -0
- package/dist/scripts/6957-058e2001c4-lite.chunk.js +1 -0
- package/dist/scripts/{7017-76adb0abdc-lite.chunk.js → 7017-35c73244a6-lite.chunk.js} +2 -2
- package/dist/scripts/7030-041896252c-lite.chunk.js +2 -0
- package/dist/scripts/7045-8f704951d9-lite.chunk.js +1 -0
- package/dist/scripts/7052-0a94f7b10e-lite.chunk.js +2 -0
- package/dist/scripts/7056-b5cd72d1b8-lite.chunk.js +1 -0
- package/dist/scripts/7108-0f6adbabf0-lite.chunk.js +1 -0
- package/dist/scripts/7112-ec1031994e-lite.chunk.js +2 -0
- package/dist/scripts/7115-ca20dcea0a-lite.chunk.js +1 -0
- package/dist/scripts/{7117-2dc06cc559-lite.chunk.js → 7117-1da2d8e101-lite.chunk.js} +1 -1
- package/dist/scripts/7128-1ee42ef21c-lite.chunk.js +1 -0
- package/dist/scripts/714-7d4a73ae45-lite.chunk.js +1 -0
- package/dist/scripts/7172-f8288f9f70-lite.chunk.js +1 -0
- package/dist/scripts/7178-7389623a5a-lite.chunk.js +1 -0
- package/dist/scripts/7205-4c232d2ac0-lite.chunk.js +1 -0
- package/dist/scripts/7221-dab37ddabe-lite.chunk.js +2 -0
- package/dist/scripts/7286-cb1923e134-lite.chunk.js +1 -0
- package/dist/scripts/7288-e945b5adc9-lite.chunk.js +1 -0
- package/dist/scripts/7293-e20274d243-lite.chunk.js +1 -0
- package/dist/scripts/7332-7bfaeba358-lite.chunk.js +1 -0
- package/dist/scripts/7338-a11845d2a6-lite.chunk.js +1 -0
- package/dist/scripts/7385-c433287c92-lite.chunk.js +1 -0
- package/dist/scripts/7409-8a76274449-lite.chunk.js +1 -0
- package/dist/scripts/{1977-7e46c81a05-lite.chunk.js → 7422-8f60c3028d-lite.chunk.js} +2 -2
- package/dist/scripts/7432-d4e8bef2f4-lite.chunk.js +1 -0
- package/dist/scripts/7484-6bc5cab7dd-lite.chunk.js +1 -0
- package/dist/scripts/7506-84f4593d4e-lite.chunk.js +1 -0
- package/dist/scripts/754-b54addb690-lite.chunk.js +1 -0
- package/dist/scripts/7540-fabe7ac275-lite.chunk.js +1 -0
- package/dist/scripts/7555-4d6b6eda04-lite.chunk.js +1 -0
- package/dist/scripts/{7706-d9f05df3bd-lite.chunk.js → 7706-1f9e23a067-lite.chunk.js} +1 -1
- package/dist/scripts/7708-f170b2ca80-lite.chunk.js +1 -0
- package/dist/scripts/7767-3a6db3d0ec-lite.chunk.js +1 -0
- package/dist/scripts/7818-4910db8536-lite.chunk.js +1 -0
- package/dist/scripts/7855-23c0238091-lite.chunk.js +1 -0
- package/dist/scripts/7888-e721ba550f-lite.chunk.js +1 -0
- package/dist/scripts/7925-f5bfc42b6b-lite.chunk.js +1 -0
- package/dist/scripts/8025-ebb2a6e951-lite.chunk.js +1 -0
- package/dist/scripts/8046-bf50ba7dc9-lite.chunk.js +1 -0
- package/dist/scripts/8056-0044639a66-lite.chunk.js +1 -0
- package/dist/scripts/811-9575586e7f-lite.chunk.js +1 -0
- package/dist/scripts/817-19c50fb9e7-lite.chunk.js +1 -0
- package/dist/scripts/823-cb0629ec55-lite.chunk.js +1 -0
- package/dist/scripts/8236-06e2326d22-lite.chunk.js +1 -0
- package/dist/scripts/8252-82ab60c504-lite.chunk.js +1 -0
- package/dist/scripts/8323-aeb803ba70-lite.chunk.js +2 -0
- package/dist/scripts/8367-c2e291cfc2-lite.chunk.js +1 -0
- package/dist/scripts/8383-84a5223bb5-lite.chunk.js +1 -0
- package/dist/scripts/8419-8ddf8d53f5-lite.chunk.js +1 -0
- package/dist/scripts/8466-ee3317e095-lite.chunk.js +1 -0
- package/dist/scripts/8556-f6d1f3fe46-lite.chunk.js +1 -0
- package/dist/scripts/8564-97a9548afd-lite.chunk.js +1 -0
- package/dist/scripts/8621-4f47ca7ad9-lite.chunk.js +1 -0
- package/dist/scripts/8681-da6e12f2d5-lite.chunk.js +2 -0
- package/dist/scripts/872-f2695b16b4-lite.chunk.js +1 -0
- package/dist/scripts/8763-30018c2eba-lite.chunk.js +1 -0
- package/dist/scripts/8820-192385d246-lite.chunk.js +1 -0
- package/dist/scripts/8830-a30a1fab45-lite.chunk.js +1 -0
- package/dist/scripts/8873-f8598046db-lite.chunk.js +1 -0
- package/dist/scripts/8905-63f31e0b26-lite.chunk.js +1 -0
- package/dist/scripts/8935-0d85df691f-lite.chunk.js +2 -0
- package/dist/scripts/8944-fa935f6ed4-lite.chunk.js +1 -0
- package/dist/scripts/8955-9823de95f3-lite.chunk.js +1 -0
- package/dist/scripts/9005-7329883227-lite.chunk.js +1 -0
- package/dist/scripts/9016-17e09819a6-lite.chunk.js +1 -0
- package/dist/scripts/9038-d071dd25ce-lite.chunk.js +1 -0
- package/dist/scripts/9060-5cee4638c6-lite.chunk.js +1 -0
- package/dist/scripts/9118-948d6029d3-lite.chunk.js +1 -0
- package/dist/scripts/9133-1c2f07cd11-lite.chunk.js +1 -0
- package/dist/scripts/9151-049f79d533-lite.chunk.js +1 -0
- package/dist/scripts/9226-941d653db1-lite.chunk.js +1 -0
- package/dist/scripts/9242-4b15b572db-lite.chunk.js +1 -0
- package/dist/scripts/9264-c265dc4e08-lite.chunk.js +1 -0
- package/dist/scripts/9273-535bb6b083-lite.chunk.js +1 -0
- package/dist/scripts/9325-8200a8eca7-lite.chunk.js +1 -0
- package/dist/scripts/9428-f581bbe764-lite.chunk.js +2 -0
- package/dist/scripts/9455-cde3c093dc-lite.chunk.js +1 -0
- package/dist/scripts/9478-fecaea6d54-lite.chunk.js +2 -0
- package/dist/scripts/9484-312aa1531d-lite.chunk.js +2 -0
- package/dist/scripts/9674-cd38b69de3-lite.chunk.js +1 -0
- package/dist/scripts/9714-d0bcd64c24-lite.chunk.js +1 -0
- package/dist/scripts/9744-49217aba0f-lite.chunk.js +1 -0
- package/dist/scripts/9798-cf0181fd79-lite.chunk.js +1 -0
- package/dist/scripts/9843-9f510ac1c1-lite.chunk.js +1 -0
- package/dist/scripts/9880-c7ad9079c0-lite.chunk.js +1 -0
- package/dist/scripts/9894-75159b2fc0-lite.chunk.js +2 -0
- package/dist/scripts/9899-e695d8ad4c-lite.chunk.js +1 -0
- package/dist/scripts/9931-08cf05b177-lite.chunk.js +2 -0
- package/dist/scripts/9961-62c9f288a2-lite.chunk.js +1 -0
- package/dist/scripts/bundle-88ea810319.min.js +2 -0
- package/dist/scripts/bundle-88ea810319.min.js.LICENSE.txt +129 -0
- package/dist/scripts/{polyfills-5c0684cd85.min.js → polyfills-02090a38a6.min.js} +2 -2
- package/dist/scripts/polyfills-02090a38a6.min.js.LICENSE.txt +1 -0
- package/package.json +61 -61
- package/dist/css/162-lite-32e60d7e18.chunk.css +0 -37
- package/dist/css/1655-lite-e7bdc675ac.chunk.css +0 -2
- package/dist/css/1794-lite-88303bbaf5.chunk.css +0 -3
- package/dist/css/2118-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/3468-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/3533-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/3667-lite-37b25ceace.chunk.css +0 -3
- package/dist/css/4541-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/482-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/510-lite-6661240a96.chunk.css +0 -3
- package/dist/css/6285-lite-86f715dee7.chunk.css +0 -2
- package/dist/css/6465-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/6689-lite-385dfbe1d8.chunk.css +0 -4
- package/dist/css/6817-lite-6661240a96.chunk.css +0 -3
- package/dist/css/7112-lite-01b143fa0b.chunk.css +0 -3
- package/dist/css/7128-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/7172-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/7515-lite-01b143fa0b.chunk.css +0 -3
- package/dist/css/8025-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/8292-lite-a0648ee1fa.chunk.css +0 -2
- package/dist/css/8383-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/9060-lite-74522bc90f.chunk.css +0 -1
- package/dist/css/9455-lite-3cd1655cd7.chunk.css +0 -5
- package/dist/css/lite-app-1d0c2fd2b0.css +0 -53
- package/dist/scripts/1064-458b68fb91-lite.chunk.js +0 -1
- package/dist/scripts/1090-9aace3f5ec-lite.chunk.js +0 -1
- package/dist/scripts/1106-847d0bf2b8-lite.chunk.js +0 -1
- package/dist/scripts/1200-f30709bde3-lite.chunk.js +0 -2
- package/dist/scripts/1285-19705b2fc5-lite.chunk.js +0 -1
- package/dist/scripts/1291-1d298ab17d-lite.chunk.js +0 -1
- package/dist/scripts/1354-adb83a2eaa-lite.chunk.js +0 -2
- package/dist/scripts/1366-c65306205c-lite.chunk.js +0 -2
- package/dist/scripts/147-28a27fe38b-lite.chunk.js +0 -1
- package/dist/scripts/1475-255496ec92-lite.chunk.js +0 -1
- package/dist/scripts/1517-4c765cf6b6-lite.chunk.js +0 -1
- package/dist/scripts/1518-b3ed8fd9e5-lite.chunk.js +0 -1
- package/dist/scripts/1526-be5361acbf-lite.chunk.js +0 -1
- package/dist/scripts/1536-a8c6826e33-lite.chunk.js +0 -1
- package/dist/scripts/156-13c7d1ca82-lite.chunk.js +0 -1
- package/dist/scripts/1592-e5a0fbaee2-lite.chunk.js +0 -2
- package/dist/scripts/162-64b366f2d0-lite.chunk.js +0 -2
- package/dist/scripts/1628-3d2ab4a7f9-lite.chunk.js +0 -1
- package/dist/scripts/1655-4bb18c6f9b-lite.chunk.js +0 -1
- package/dist/scripts/1726-ce7ab78bcc-lite.chunk.js +0 -1
- package/dist/scripts/1781-d407160975-lite.chunk.js +0 -1
- package/dist/scripts/1794-196bab58b7-lite.chunk.js +0 -1
- package/dist/scripts/1818-1566ab6170-lite.chunk.js +0 -1
- package/dist/scripts/1820-961e34dc3f-lite.chunk.js +0 -1
- package/dist/scripts/1837-8224775ee2-lite.chunk.js +0 -1
- package/dist/scripts/1863-0ff9f34469-lite.chunk.js +0 -1
- package/dist/scripts/1891-00d06bdb48-lite.chunk.js +0 -1
- package/dist/scripts/1913-121ddb03c7-lite.chunk.js +0 -1
- package/dist/scripts/1924-c10778006b-lite.chunk.js +0 -1
- package/dist/scripts/1943-4e126c7c8e-lite.chunk.js +0 -1
- package/dist/scripts/1958-7bbe5ed54b-lite.chunk.js +0 -1
- package/dist/scripts/2066-2448ffab36-lite.chunk.js +0 -2
- package/dist/scripts/2095-0a482240d2-lite.chunk.js +0 -1
- package/dist/scripts/2118-26ae54c3db-lite.chunk.js +0 -2
- package/dist/scripts/2175-e6101da2c7-lite.chunk.js +0 -1
- package/dist/scripts/2199-68ba7411fa-lite.chunk.js +0 -1
- package/dist/scripts/2208-8cca4d3922-lite.chunk.js +0 -1
- package/dist/scripts/2229-57d6491c9d-lite.chunk.js +0 -1
- package/dist/scripts/2235-5b283a630a-lite.chunk.js +0 -1
- package/dist/scripts/2269-63269b0a20-lite.chunk.js +0 -1
- package/dist/scripts/227-2b68bcb5e6-lite.chunk.js +0 -1
- package/dist/scripts/2279-c077a223e7-lite.chunk.js +0 -1
- package/dist/scripts/2318-f20f53577b-lite.chunk.js +0 -1
- package/dist/scripts/2469-26134f4110-lite.chunk.js +0 -1
- package/dist/scripts/2477-0c1cc0274e-lite.chunk.js +0 -1
- package/dist/scripts/2561-f6bbda0461-lite.chunk.js +0 -1
- package/dist/scripts/2566-db0f3fdc44-lite.chunk.js +0 -1
- package/dist/scripts/2608-91817d2e90-lite.chunk.js +0 -1
- package/dist/scripts/2665-58e5d43a70-lite.chunk.js +0 -1
- package/dist/scripts/2729-bf3c1615b9-lite.chunk.js +0 -1
- package/dist/scripts/275-48e39524cd-lite.chunk.js +0 -1
- package/dist/scripts/276-bb5c3227d5-lite.chunk.js +0 -1
- package/dist/scripts/287-06fe2a9794-lite.chunk.js +0 -1
- package/dist/scripts/2877-4171fae97e-lite.chunk.js +0 -1
- package/dist/scripts/3012-a8407cc0d7-lite.chunk.js +0 -1
- package/dist/scripts/3020-b550dc32a1-lite.chunk.js +0 -1
- package/dist/scripts/3091-23bbaf2400-lite.chunk.js +0 -1
- package/dist/scripts/3108-4774ebe606-lite.chunk.js +0 -1
- package/dist/scripts/3154-63fff5be79-lite.chunk.js +0 -1
- package/dist/scripts/3171-02af531a34-lite.chunk.js +0 -1
- package/dist/scripts/3216-cd6222fff4-lite.chunk.js +0 -1
- package/dist/scripts/3285-dcec4d8e24-lite.chunk.js +0 -1
- package/dist/scripts/3322-90da5fc550-lite.chunk.js +0 -1
- package/dist/scripts/3468-40c308ce30-lite.chunk.js +0 -1
- package/dist/scripts/3514-31c2f97242-lite.chunk.js +0 -1
- package/dist/scripts/3533-98674ad469-lite.chunk.js +0 -1
- package/dist/scripts/355-16b3032c4f-lite.chunk.js +0 -1
- package/dist/scripts/3602-7fb236937c-lite.chunk.js +0 -2
- package/dist/scripts/3645-ccb3557f33-lite.chunk.js +0 -2
- package/dist/scripts/3654-68fc05281b-lite.chunk.js +0 -1
- package/dist/scripts/3667-6261d6a482-lite.chunk.js +0 -2
- package/dist/scripts/3727-61ad5aebc3-lite.chunk.js +0 -1
- package/dist/scripts/3728-61154e9591-lite.chunk.js +0 -1
- package/dist/scripts/3729-ec68fee3f9-lite.chunk.js +0 -1
- package/dist/scripts/3754-43235d0887-lite.chunk.js +0 -1
- package/dist/scripts/3755-6e4ec3d174-lite.chunk.js +0 -1
- package/dist/scripts/383-867d273f61-lite.chunk.js +0 -1
- package/dist/scripts/3849-cc38632481-lite.chunk.js +0 -1
- package/dist/scripts/389-e0a9ec5a2b-lite.chunk.js +0 -1
- package/dist/scripts/3962-6b13cdecc3-lite.chunk.js +0 -1
- package/dist/scripts/4052-f6e4be8ec3-lite.chunk.js +0 -1
- package/dist/scripts/4067-7bd2a9bb48-lite.chunk.js +0 -1
- package/dist/scripts/414-395860a6ec-lite.chunk.js +0 -1
- package/dist/scripts/4145-ab4ad95b9a-lite.chunk.js +0 -1
- package/dist/scripts/4182-71b9d0c2ae-lite.chunk.js +0 -1
- package/dist/scripts/4229-e0eec4f9cc-lite.chunk.js +0 -1
- package/dist/scripts/4290-9275108346-lite.chunk.js +0 -1
- package/dist/scripts/4326-0df396c7a9-lite.chunk.js +0 -1
- package/dist/scripts/4343-97dc4dfb23-lite.chunk.js +0 -1
- package/dist/scripts/4380-880fb4cd78-lite.chunk.js +0 -1
- package/dist/scripts/4393-7273cab163-lite.chunk.js +0 -1
- package/dist/scripts/4417-f74c436556-lite.chunk.js +0 -1
- package/dist/scripts/4423-972b49a9ea-lite.chunk.js +0 -1
- package/dist/scripts/4436-6939f395bc-lite.chunk.js +0 -1
- package/dist/scripts/4484-6bb5f46ab3-lite.chunk.js +0 -1
- package/dist/scripts/4537-9b504a7131-lite.chunk.js +0 -1
- package/dist/scripts/4541-7226b9836d-lite.chunk.js +0 -1
- package/dist/scripts/4617-9f75859a94-lite.chunk.js +0 -1
- package/dist/scripts/4632-8a515a2adf-lite.chunk.js +0 -1
- package/dist/scripts/4657-5482d930f8-lite.chunk.js +0 -2
- package/dist/scripts/4676-d33096ed1d-lite.chunk.js +0 -2
- package/dist/scripts/4690-8d1c868379-lite.chunk.js +0 -1
- package/dist/scripts/4763-aa3b604925-lite.chunk.js +0 -1
- package/dist/scripts/4770-19393b2e34-lite.chunk.js +0 -1
- package/dist/scripts/482-1534ca1124-lite.chunk.js +0 -1
- package/dist/scripts/4893-4dfccfedc9-lite.chunk.js +0 -1
- package/dist/scripts/4895-9d22529005-lite.chunk.js +0 -1
- package/dist/scripts/4942-d89ef696ed-lite.chunk.js +0 -2
- package/dist/scripts/5018-23fbddadb3-lite.chunk.js +0 -1
- package/dist/scripts/510-0aacaf4a3f-lite.chunk.js +0 -1
- package/dist/scripts/5171-f894a1dff0-lite.chunk.js +0 -1
- package/dist/scripts/5229-54d273997c-lite.chunk.js +0 -1
- package/dist/scripts/5268-b63ac1972e-lite.chunk.js +0 -2
- package/dist/scripts/5271-a5ffc1b79a-lite.chunk.js +0 -1
- package/dist/scripts/528-c80dafea15-lite.chunk.js +0 -1
- package/dist/scripts/5291-6ef2fcf319-lite.chunk.js +0 -1
- package/dist/scripts/5385-50b65ee5b3-lite.chunk.js +0 -1
- package/dist/scripts/5395-aa5bc09b79-lite.chunk.js +0 -1
- package/dist/scripts/5590-f1cdd7bd5c-lite.chunk.js +0 -1
- package/dist/scripts/5595-fed09c0f0d-lite.chunk.js +0 -1
- package/dist/scripts/5622-080218eb5e-lite.chunk.js +0 -2
- package/dist/scripts/5756-2c449fd1a4-lite.chunk.js +0 -1
- package/dist/scripts/5776-3015e0c3b2-lite.chunk.js +0 -1
- package/dist/scripts/5823-273dc77097-lite.chunk.js +0 -1
- package/dist/scripts/5914-89452132ae-lite.chunk.js +0 -1
- package/dist/scripts/5974-56af1e8e57-lite.chunk.js +0 -1
- package/dist/scripts/5983-8f4aa6c37a-lite.chunk.js +0 -1
- package/dist/scripts/6057-f6e5423975-lite.chunk.js +0 -1
- package/dist/scripts/6117-a149fd0dce-lite.chunk.js +0 -1
- package/dist/scripts/615-109caae84a-lite.chunk.js +0 -1
- package/dist/scripts/6154-1d0dfaf472-lite.chunk.js +0 -1
- package/dist/scripts/6158-2cc856d000-lite.chunk.js +0 -1
- package/dist/scripts/6159-00d5adab24-lite.chunk.js +0 -1
- package/dist/scripts/6254-3237a629c8-lite.chunk.js +0 -1
- package/dist/scripts/6263-8e38e9b596-lite.chunk.js +0 -1
- package/dist/scripts/6274-ef6ea9aefc-lite.chunk.js +0 -1
- package/dist/scripts/6285-202fcb0ab4-lite.chunk.js +0 -1
- package/dist/scripts/6302-858c958370-lite.chunk.js +0 -1
- package/dist/scripts/6330-188babc35b-lite.chunk.js +0 -1
- package/dist/scripts/6368-0dc1c905d9-lite.chunk.js +0 -1
- package/dist/scripts/6370-73eb5d7165-lite.chunk.js +0 -1
- package/dist/scripts/6450-3c16cc5c71-lite.chunk.js +0 -1
- package/dist/scripts/6465-79f2f15c97-lite.chunk.js +0 -1
- package/dist/scripts/6480-08e2d6d634-lite.chunk.js +0 -1
- package/dist/scripts/6493-f6cec5b493-lite.chunk.js +0 -1
- package/dist/scripts/6572-a829585f06-lite.chunk.js +0 -1
- package/dist/scripts/6604-772ed75a7a-lite.chunk.js +0 -1
- package/dist/scripts/6662-51e2e6eaaf-lite.chunk.js +0 -1
- package/dist/scripts/6689-0daba3d135-lite.chunk.js +0 -1
- package/dist/scripts/6817-ed5e4e7d06-lite.chunk.js +0 -1
- package/dist/scripts/6821-7359de4d2e-lite.chunk.js +0 -1
- package/dist/scripts/6822-5831c9fd42-lite.chunk.js +0 -1
- package/dist/scripts/6823-22b0850abc-lite.chunk.js +0 -2
- package/dist/scripts/6866-3253265092-lite.chunk.js +0 -1
- package/dist/scripts/6873-4a90a15240-lite.chunk.js +0 -1
- package/dist/scripts/689-f0a1edee9b-lite.chunk.js +0 -1
- package/dist/scripts/6913-507c07b46c-lite.chunk.js +0 -1
- package/dist/scripts/6930-06c0bffc64-lite.chunk.js +0 -1
- package/dist/scripts/6932-59789e4aea-lite.chunk.js +0 -1
- package/dist/scripts/7030-e6f622a775-lite.chunk.js +0 -2
- package/dist/scripts/7045-6373f085f2-lite.chunk.js +0 -1
- package/dist/scripts/7052-b5ffd3e5ae-lite.chunk.js +0 -2
- package/dist/scripts/7056-1278a992e8-lite.chunk.js +0 -1
- package/dist/scripts/7108-7e3854252d-lite.chunk.js +0 -1
- package/dist/scripts/7112-72e5351e87-lite.chunk.js +0 -2
- package/dist/scripts/7115-5651a1dba8-lite.chunk.js +0 -1
- package/dist/scripts/7128-523988aea8-lite.chunk.js +0 -1
- package/dist/scripts/714-0f92a1c65b-lite.chunk.js +0 -1
- package/dist/scripts/7147-8b38cb4a77-lite.chunk.js +0 -1
- package/dist/scripts/7172-3478ca9fbf-lite.chunk.js +0 -1
- package/dist/scripts/7205-6c84b9860e-lite.chunk.js +0 -1
- package/dist/scripts/7221-7c2e4bd2cf-lite.chunk.js +0 -2
- package/dist/scripts/7286-33d40f57b8-lite.chunk.js +0 -1
- package/dist/scripts/7293-50af1887dd-lite.chunk.js +0 -1
- package/dist/scripts/7318-c329ca7c0d-lite.chunk.js +0 -2
- package/dist/scripts/7318-c329ca7c0d-lite.chunk.js.LICENSE.txt +0 -5
- package/dist/scripts/7341-a0366179fe-lite.chunk.js +0 -1
- package/dist/scripts/7385-9ae5fdf533-lite.chunk.js +0 -1
- package/dist/scripts/7409-145e2b0498-lite.chunk.js +0 -1
- package/dist/scripts/7484-9089dfc5b4-lite.chunk.js +0 -1
- package/dist/scripts/7506-6e5abb1ce8-lite.chunk.js +0 -1
- package/dist/scripts/7515-1fa9993684-lite.chunk.js +0 -2
- package/dist/scripts/754-af06e1c835-lite.chunk.js +0 -1
- package/dist/scripts/7555-6536e27567-lite.chunk.js +0 -1
- package/dist/scripts/7708-d15c0df895-lite.chunk.js +0 -1
- package/dist/scripts/7758-d8cd43af1a-lite.chunk.js +0 -1
- package/dist/scripts/7767-697e83f840-lite.chunk.js +0 -1
- package/dist/scripts/7855-e5071abd53-lite.chunk.js +0 -1
- package/dist/scripts/7888-fcf2d068bb-lite.chunk.js +0 -1
- package/dist/scripts/7925-400ce5c362-lite.chunk.js +0 -1
- package/dist/scripts/7939-50f67c7062-lite.chunk.js +0 -1
- package/dist/scripts/7950-057729fd3f-lite.chunk.js +0 -2
- package/dist/scripts/7952-da7e2efbb9-lite.chunk.js +0 -1
- package/dist/scripts/8025-84ccfae3cb-lite.chunk.js +0 -1
- package/dist/scripts/8035-0116ccf4e5-lite.chunk.js +0 -1
- package/dist/scripts/8038-f1425fa036-lite.chunk.js +0 -1
- package/dist/scripts/8046-fa36daa5ce-lite.chunk.js +0 -1
- package/dist/scripts/8056-ccc1962ad7-lite.chunk.js +0 -1
- package/dist/scripts/811-3c7448dc35-lite.chunk.js +0 -1
- package/dist/scripts/823-2ddc27ac2a-lite.chunk.js +0 -1
- package/dist/scripts/8252-a6d0f554a5-lite.chunk.js +0 -1
- package/dist/scripts/8292-e22a69738a-lite.chunk.js +0 -1
- package/dist/scripts/8323-249c45a20e-lite.chunk.js +0 -2
- package/dist/scripts/8367-18538fb7ed-lite.chunk.js +0 -1
- package/dist/scripts/8383-4b59de6bfc-lite.chunk.js +0 -1
- package/dist/scripts/8419-a12e4d833e-lite.chunk.js +0 -1
- package/dist/scripts/8466-db914a7d25-lite.chunk.js +0 -1
- package/dist/scripts/8500-f229b957ef-lite.chunk.js +0 -1
- package/dist/scripts/8516-401b97bede-lite.chunk.js +0 -1
- package/dist/scripts/8556-2faa08c0bb-lite.chunk.js +0 -1
- package/dist/scripts/8564-f361b00c03-lite.chunk.js +0 -1
- package/dist/scripts/8621-bb707f1aa2-lite.chunk.js +0 -1
- package/dist/scripts/8627-7c7b3701fa-lite.chunk.js +0 -1
- package/dist/scripts/8681-5190c78b95-lite.chunk.js +0 -2
- package/dist/scripts/872-556704f056-lite.chunk.js +0 -1
- package/dist/scripts/8729-5928d624f8-lite.chunk.js +0 -1
- package/dist/scripts/8763-0aae908218-lite.chunk.js +0 -1
- package/dist/scripts/8820-2ad02c32cb-lite.chunk.js +0 -1
- package/dist/scripts/8830-94ce167cd3-lite.chunk.js +0 -1
- package/dist/scripts/8884-b6a7826c51-lite.chunk.js +0 -1
- package/dist/scripts/8905-76145a06df-lite.chunk.js +0 -1
- package/dist/scripts/8955-0889ae334e-lite.chunk.js +0 -1
- package/dist/scripts/9005-dfff5d4381-lite.chunk.js +0 -1
- package/dist/scripts/9016-53b4e0b866-lite.chunk.js +0 -1
- package/dist/scripts/9038-d495e86d21-lite.chunk.js +0 -1
- package/dist/scripts/9060-75b7bf8e06-lite.chunk.js +0 -1
- package/dist/scripts/9118-936a46d5aa-lite.chunk.js +0 -1
- package/dist/scripts/9133-2ac9e11023-lite.chunk.js +0 -1
- package/dist/scripts/9138-0f9bb9b0e3-lite.chunk.js +0 -1
- package/dist/scripts/9151-d8f10661a1-lite.chunk.js +0 -1
- package/dist/scripts/9194-c255b66c7c-lite.chunk.js +0 -2
- package/dist/scripts/9242-d7a14a34f0-lite.chunk.js +0 -1
- package/dist/scripts/9264-756116983e-lite.chunk.js +0 -1
- package/dist/scripts/9273-8381c89f91-lite.chunk.js +0 -1
- package/dist/scripts/9325-76be09c5d9-lite.chunk.js +0 -1
- package/dist/scripts/9428-5917cd7b0a-lite.chunk.js +0 -2
- package/dist/scripts/9455-7c1622838e-lite.chunk.js +0 -1
- package/dist/scripts/9478-e817a33a69-lite.chunk.js +0 -2
- package/dist/scripts/9484-6e93df7581-lite.chunk.js +0 -2
- package/dist/scripts/9674-72dc791884-lite.chunk.js +0 -1
- package/dist/scripts/9714-f2571e0227-lite.chunk.js +0 -1
- package/dist/scripts/9744-57f41382a5-lite.chunk.js +0 -1
- package/dist/scripts/9798-6d39196b90-lite.chunk.js +0 -1
- package/dist/scripts/9880-d95662abc4-lite.chunk.js +0 -1
- package/dist/scripts/9899-5322cee4bf-lite.chunk.js +0 -1
- package/dist/scripts/9931-bf2f253ffe-lite.chunk.js +0 -2
- package/dist/scripts/9961-7cea13c70e-lite.chunk.js +0 -1
- package/dist/scripts/bundle-e8987fb37e.min.js +0 -2
- package/dist/scripts/bundle-e8987fb37e.min.js.LICENSE.txt +0 -38
- package/typings/libs/backbone.validation.d.ts +0 -100
- /package/dist/css/{8627-lite-a68f192c18.chunk.css → 1291-lite-a68f192c18.chunk.css} +0 -0
- /package/dist/css/{7950-lite-89fe5c9fc1.chunk.css → 1672-lite-89fe5c9fc1.chunk.css} +0 -0
- /package/dist/css/{8516-lite-6554428c5a.chunk.css → 209-lite-6554428c5a.chunk.css} +0 -0
- /package/dist/css/{1891-lite-740e4cbd6f.chunk.css → 3200-lite-740e4cbd6f.chunk.css} +0 -0
- /package/dist/css/{5983-lite-8c9306617b.chunk.css → 5134-lite-8c9306617b.chunk.css} +0 -0
- /package/dist/css/{156-lite-f1ca87e9ff.chunk.css → 5143-lite-f1ca87e9ff.chunk.css} +0 -0
- /package/dist/css/{1090-lite-0018feda9c.chunk.css → 5606-lite-0018feda9c.chunk.css} +0 -0
- /package/dist/css/{7341-lite-abb86816df.chunk.css → 7332-lite-abb86816df.chunk.css} +0 -0
- /package/dist/css/{1977-lite-22ea72f8e3.chunk.css → 7422-lite-22ea72f8e3.chunk.css} +0 -0
- /package/dist/css/{147-lite-74cb244872.chunk.css → 8944-lite-74cb244872.chunk.css} +0 -0
- /package/dist/scripts/{1354-adb83a2eaa-lite.chunk.js.LICENSE.txt → 1354-33c5905ae6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1200-f30709bde3-lite.chunk.js.LICENSE.txt → 1366-666ef709a1-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1366-c65306205c-lite.chunk.js.LICENSE.txt → 1592-aa2bc45d63-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1592-e5a0fbaee2-lite.chunk.js.LICENSE.txt → 162-51e28f0e8d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{162-64b366f2d0-lite.chunk.js.LICENSE.txt → 1672-2a6d69b169-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2066-2448ffab36-lite.chunk.js.LICENSE.txt → 2066-f1ee632b62-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2118-26ae54c3db-lite.chunk.js.LICENSE.txt → 2118-a281da36fd-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6823-22b0850abc-lite.chunk.js.LICENSE.txt → 2678-b53d60e821-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3602-7fb236937c-lite.chunk.js.LICENSE.txt → 3602-c5f7a74c8b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3645-ccb3557f33-lite.chunk.js.LICENSE.txt → 3645-86f0ed022f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-6261d6a482-lite.chunk.js.LICENSE.txt → 3667-c5b8a096c2-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4657-5482d930f8-lite.chunk.js.LICENSE.txt → 3789-4cb6d829f6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4676-d33096ed1d-lite.chunk.js.LICENSE.txt → 4657-da41ee610c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4942-d89ef696ed-lite.chunk.js.LICENSE.txt → 4676-adc55dfa15-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5268-b63ac1972e-lite.chunk.js.LICENSE.txt → 4942-9db184d708-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5622-080218eb5e-lite.chunk.js.LICENSE.txt → 5009-9e45034def-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6896-79fa541f46-lite.chunk.js.LICENSE.txt → 5268-029905c5f0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7017-76adb0abdc-lite.chunk.js.LICENSE.txt → 5622-7b29606856-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7030-e6f622a775-lite.chunk.js.LICENSE.txt → 6896-75b32c41e8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{691-1a7a29fb40-lite.chunk.js.LICENSE.txt → 691-670cb6f7e6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7052-b5ffd3e5ae-lite.chunk.js.LICENSE.txt → 7017-35c73244a6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7112-72e5351e87-lite.chunk.js.LICENSE.txt → 7030-041896252c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7221-7c2e4bd2cf-lite.chunk.js.LICENSE.txt → 7052-0a94f7b10e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7515-1fa9993684-lite.chunk.js.LICENSE.txt → 7112-ec1031994e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7950-057729fd3f-lite.chunk.js.LICENSE.txt → 7221-dab37ddabe-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1977-7e46c81a05-lite.chunk.js.LICENSE.txt → 7422-8f60c3028d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8323-249c45a20e-lite.chunk.js.LICENSE.txt → 8323-aeb803ba70-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8681-5190c78b95-lite.chunk.js.LICENSE.txt → 8681-da6e12f2d5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9194-c255b66c7c-lite.chunk.js.LICENSE.txt → 8935-0d85df691f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9428-5917cd7b0a-lite.chunk.js.LICENSE.txt → 9428-f581bbe764-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-e817a33a69-lite.chunk.js.LICENSE.txt → 9478-fecaea6d54-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9484-6e93df7581-lite.chunk.js.LICENSE.txt → 9484-312aa1531d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9931-bf2f253ffe-lite.chunk.js.LICENSE.txt → 9894-75159b2fc0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{polyfills-5c0684cd85.min.js.LICENSE.txt → 9931-08cf05b177-lite.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 3789-4cb6d829f6-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3789],{73758:(e,t,n)=>{function r(e){return r="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},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(t,{n:()=>o});var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}var t,n;return t=e,n=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var r;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(r=this.listeners[e])&&void 0!==r?r:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var r=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof r&&-1!==r&&(this.listeners[e].splice(r,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(this.listeners[e]){var o=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&o.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(r))})),o.length&&o.forEach((function(n){return t.deregisterListener(e,n)}))}}}],n&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}())},26733:(e,t,n)=>{n.d(t,{s:()=>P,R:()=>O});var r=n(32735),i=n(39202),o=n(97395),a=n(49985),s=n(65858),u=n(36848),c=n(78276),l=n(76177),f=n(71063),h=n(54610),p=n(4594),y=n(1164),d=n(79967),v=n(67453);const b={imageStyle:"I9E5O",item:"tqUFn",background:"s1dNr",thumbnailContainer:"EDiGi",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL"};var g={width:200,resizeType:h.Nq.Cover};function m(e,t){var n,r,i;if("thumbnail"in t&&(null===(n=t.thumbnail)||void 0===n?void 0:n.url))return v.j.createUrl(null===(r=t.thumbnail)||void 0===r?void 0:r.url,Object.assign({},g));var a=o._.safeUrlConcat(e,"/v1/previews");return"metadata"in t?t.metadata.type===y.L.Pdf?v.j.createResourceImage(a,t.url,g):t.metadata.type===y.L.Image?v.j.createUrl(t.url,{size:h.h2.Medium,resizeType:h.Nq.Cover}):(null===(i=t.pdf)||void 0===i?void 0:i.url)?v.j.createResourceImage(a,t.pdf.url,g):(t.metadata.type,y.L.Zip,"/images/zip-resource.png"):v.j.createResourceImage(a,t.url,Object.assign({},g))}function w(e){var t;return"metadata"in e?e.metadata.type===y.L.Pdf?h.__.Pdf:e.metadata.type===y.L.Image?h.__.Thumbnails:(null===(t=e.pdf)||void 0===t?void 0:t.url)?h.__.Pdf:(e.metadata.type,y.L.Zip,h.__.Thumbnails):h.__.Link}function P(e){var t,n,i,o,a,u,f,h=null,p=0;"metadata"in e.data&&(h=e.data.metadata,p=null!==(i=null===(n=null===(t=e.data.thumbnail)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.rotation)&&void 0!==i?i:0);var d="".concat(null!==(a=null===(o=e.theme)||void 0===o?void 0:o.containerClass)&&void 0!==a?a:""," pt-3 px-3 rounded-3 d-flex flex-column align-items-center")+" justify-content-end ".concat(function(e){switch(e){case"atom-guide":return b.atomGuide;case"student-activity":return b.studentActivity;case"teacher-pack":return b.teacherPack;case"additional-materials":return b.additionalMaterials;default:return b.userUploaded}}(null==h?void 0:h.resourceType)," ").concat(b.background," ").concat(e.applyHoverState?b.hoverState:""," ");return r.createElement("div",{className:d},!e.hideHeading&&r.createElement(l.u,{title:e.data.name},r.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(b.text)},r.createElement("span",{className:"clamp-1"},e.data.name))),r.createElement("div",{className:"".concat(null!==(f=null===(u=e.theme)||void 0===u?void 0:u.thumbnailContainerClass)&&void 0!==f?f:""," w-75 overflow-hidden ").concat(b.thumbnailContainer," ").concat(b.imageStyle)},r.createElement(c.Z,{data:m(e.imageCdnUrl,e.data),imageType:w(e.data),imageStyle:{transform:"rotate(".concat(p,"deg)")},alt:e.data.name,analyticsOptions:{location:s.LZ.SlidingListItem},errorFallbackImageSrc:e.imageErrorFallbackUrl,imageClassName:(null==h?void 0:h.type)===y.L.Image?"".concat(b.imageTypeResource," ").concat(b.imageStyle):"",preload:e.preloadImage,preventLoad:!e.preloadImage})))}P.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var O=r.memo((function(e){var t,n,o,c,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,[]),h=(t=e.data,n=e.actionBehaviour,c=(0,d.k)(),"public"===n||!c.xs&&!c.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===y.L.Image||(t.metadata.type===y.L.Pdf?!!t.url:!!(null===(o=t.pdf)||void 0===o?void 0:o.url)))),v=Object.assign(Object.assign({},e.analyticsData),e.data),g=Object.assign(Object.assign({},e.analyticsOptions),{actionType:s.Vw.Click,entity:e.data.typeId===p.E.Resource?s.py.Resource:s.py.Link});function m(){a.k.logUserAction(v,g)}var w,O=!!e.data.url;return l.applyHoverState=h||O,r.createElement("div",{className:"pt-1 px-1 flex-shrink-0 ".concat(b.item," ").concat(f.M.RESOURCE_ITEM_SELECTOR)},(w="d-block no-decoration","link"===e.data.type?r.createElement("a",{href:e.data.url,target:"_blank",className:w,onClick:m},r.createElement(P,Object.assign({},l))):h?"public"===e.actionBehaviour?r.createElement("div",{className:"".concat(w," cursor-pointer d-inline"),onClick:function(){m(),i.C$.trigger(e.getAppLink(e.data))}},r.createElement(P,Object.assign({},l))):r.createElement(u.F,{appLink:e.getAppLink(e.data),className:w,analyticsData:v,analyticsOptions:g},r.createElement(P,Object.assign({},l))):O?r.createElement("a",{href:e.data.url,className:w,onClick:m},r.createElement(P,Object.assign({},l))):r.createElement("div",{className:w},r.createElement(P,Object.assign({},l)))))}))},36:(e,t,n)=>{n.r(t),n.d(t,{ClickViewPlayer:()=>Cn});var r=n(32735),i=n(2200),o=(n(16852),n(93861));function a(e){return a="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},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===a(i)?i:String(i)),r)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},u.apply(this,arguments)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var f=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(f,e);var t,n,r,i,o=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=l(r);if(i){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=o.apply(this,arguments)).alwaysCollapsed=!1,e.isCollapsed=!1,e.isCollabsible=!0,e}return t=f,(n=[{key:"buildCSSClass",value:function(){return"cv-create-clip-button"}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){u(l(f.prototype),"handleClick",this).call(this,null)}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.Z.getComponent("Button"));function h(e){return h="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},h(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===h(i)?i:String(i)),r)}var i}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}f.prototype.controlText_="Create Clip",o.Z.registerComponent("CreateClipButton",f);var v=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(i){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,e.ready((function(){return n.onReady()})),n}return t=a,(n=[{key:"onReady",value:function(){var e,t=this.player.getChild("collapserator"),n=null===(e=null==t?void 0:t.children())||void 0===e?void 0:e.findIndex((function(e){return"CustomControlSpacer"===e.name()}));n&&-1!==n&&t.addChild("CreateClipButton",{clickHandler:this.options.onClick},n+1)}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));function b(e){return b="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},b(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(i)?i:String(i)),r)}var i}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}o.Z.registerPlugin("createClipButtonPlugin",v);var P=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(i){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"handlePictureInPictureEnabledChange",value:function(){this.enable()}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getComponent("PictureInPictureToggle"));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 S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===O(i)?i:String(i)),r)}var i}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=E(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},k.apply(this,arguments)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}o.Z.registerComponent("PictureInPictureToggle",P);var C=o.Z.getComponent("PlayToggle"),T=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(r);if(i){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).pictureInPictureEnabled=!1,n.options=t,n.bindFunctions(),n}return t=a,(n=[{key:"bindFunctions",value:function(){this.requestPictureInPicture=this.requestPictureInPicture.bind(this),this.exitPictureInPicture=this.exitPictureInPicture.bind(this),this.onPlayerResize=this.onPlayerResize.bind(this),this.playerRequestPictureInPictureFn=this.player.requestPictureInPicture,this.playerExitPictureInPictureFn=this.player.exitPictureInPicture,this.player.requestPictureInPicture=this.requestPictureInPicture,this.player.exitPictureInPicture=this.exitPictureInPicture}},{key:"enablePictureInPicture",value:function(){var e=this;if(this.player.options_.fluid&&!this.pictureInPictureEnabled){var t=this.getToggleParentComponent();if(t){this.pictureInPictureEnabled=!0;var n=t.children().findIndex((function(e){var t;return"fullscreentoggle"===(null===(t=e.name())||void 0===t?void 0:t.toLowerCase())}));-1===n&&(n=t.children().length-1),t.addChild("pictureInPictureToggle",{},n);var r=t.getChild("pictureInPictureToggle");null==r||r.enable(),this.player.on("playerresize",this.onPlayerResize),this.player.on("dispose",(function(){var t;null===(t=e.player)||void 0===t||t.off("playerresize",e.onPlayerResize)}))}}}},{key:"disablePictureInPicture",value:function(){if(this.pictureInPictureEnabled){this.pictureInPictureEnabled=!1;var e=this.getToggleParentComponent(),t=null==e?void 0:e.getChild("pictureInPictureToggle");t&&e.removeChild(t),this.player.off("playerresize",this.onPlayerResize)}}},{key:"togglePictureInPicture",value:function(e){if(e!==this.player.isInPictureInPicture()){var t=e?"enterpictureinpicture":"leavepictureinpicture";this.player.isInPictureInPicture(e),this.player.trigger(t),e?this.addPipStyles():this.removePipStyles()}}},{key:"onPlayerResize",value:function(){if(!this.player.isInPictureInPicture()){var e=this.player.el().getBoundingClientRect();0!==e.width&&(e.width<800?this.disablePictureInPicture():this.enablePictureInPicture())}}},{key:"addPipStyles",value:function(){this.player.addClass("cv-picture-in-picture"),this.playToggle=new C(this.player),this.playToggle.addClass("cv-pip-play-toggle"),this.player.addChild(this.playToggle),this.player.paused()?this.playToggle.handlePause():this.playToggle.handlePlay()}},{key:"removePipStyles",value:function(){this.player.removeClass("cv-picture-in-picture"),this.player.removeChild(this.playToggle),delete this.playToggle}},{key:"requestPictureInPicture",value:function(){var e;this.pictureInPictureEnabled&&(this.togglePictureInPicture(!0),"function"==typeof(null===(e=this.options)||void 0===e?void 0:e.onRequestPictureInPicture)&&this.options.onRequestPictureInPicture(!0))}},{key:"exitPictureInPicture",value:function(){this.togglePictureInPicture(!1),this.options.onRequestPictureInPicture(!1),this.removePipStyles()}},{key:"getToggleParentComponent",value:function(){return this.player.getChild("collapserator")}},{key:"dispose",value:function(){this.player.requestPictureInPicture=this.playerRequestPictureInPictureFn,this.player.exitPictureInPicture=this.playerExitPictureInPictureFn,k(E(a.prototype),"dispose",this).call(this)}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));o.Z.registerPlugin("pictureInPicture",T);var x=n(23035),_=n(42892),I=n(73758);function R(e){return R="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},R(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===R(i)?i:String(i)),r)}var i}function L(){return L="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=B(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},L.apply(this,arguments)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var F=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(s,e);var t,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=B(r);if(i){var n=B(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}(this,e)});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,e,t)).hasBuffered=!1,n.hasPlayed=!1,n.eventsService=I.n,n.pointOfInterest=t.pointOfInterest,n.onMouseOver=n.onMouseOver.bind(N(n)),n.onMouseLeave=n.onMouseLeave.bind(N(n)),n.onGlancePointOfInterestMouseEnter=n.onGlancePointOfInterestMouseEnter.bind(N(n)),n.onGlancePointOfInterestMouseLeave=n.onGlancePointOfInterestMouseLeave.bind(N(n)),n.initialize(),n}return t=s,(n=[{key:"initialize",value:function(){this.setPosition(),this.bindListeners()}},{key:"buildCSSClass",value:function(){return"cv-point-of-interest-indicator ".concat(L(B(s.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,t,n){return L(B(s.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},t),{className:this.buildCSSClass()}),n)}},{key:"bindListeners",value:function(){this.on("mouseover",this.onMouseOver),this.on("mouseleave",this.onMouseLeave),this.eventsService.subscribe("glance:poi:mouseover",this.onGlancePointOfInterestMouseEnter),this.eventsService.subscribe("glance:poi:mouseleave",this.onGlancePointOfInterestMouseLeave)}},{key:"dispose",value:function(){this.eventsService.unsubscribe("glance:poi:mouseover",this.onGlancePointOfInterestMouseEnter),this.eventsService.unsubscribe("glance:poi:mouseleave",this.onGlancePointOfInterestMouseLeave)}},{key:"getPointOfInterestTime",value:function(){return this.pointOfInterest.startTime}},{key:"setPosition",value:function(){var e=this.player().duration();this.el_.style.left=this.getPointOfInterestTime()/e*100+"%"}},{key:"updateBuffered",value:function(e){var t=this.getPointOfInterestTime()<=e;if(t!==this.hasBuffered){this.hasBuffered=t;var n="cv-point-of-interest-indicator-buffered";this.hasBuffered?this.addClass(n):this.removeClass(n)}}},{key:"updatePlaybackProgress",value:function(e){var t=this.getPointOfInterestTime()<=e;if(t!==this.hasPlayed){this.hasPlayed=t;var n="cv-point-of-interest-indicator-played";t?this.addClass(n):this.removeClass(n)}}},{key:"toggleVisibility",value:function(e){var t="cv-point-of-interest-indicator-hidden";e?this.removeClass(t):this.addClass(t)}},{key:"onMouseOver",value:function(){this.setTimeTooltipText(),this.eventsService.trigger("player:poi:mouseover",this.pointOfInterest)}},{key:"onMouseLeave",value:function(){this.clearTimeTooltipText(),this.eventsService.trigger("player:poi:mouseleave")}},{key:"onGlancePointOfInterestMouseEnter",value:function(e){e.id===this.pointOfInterest.id&&(this.addClass("cv-point-of-interest-indicator-highlight"),this.setTimeTooltipTime(),this.setTimeTooltipText(),this.positionMouseTimeDisplay(),this.showMouseTimeDisplay())}},{key:"onGlancePointOfInterestMouseLeave",value:function(){this.removeClass("cv-point-of-interest-indicator-highlight"),this.hideMouseTimeDisplay()}},{key:"setTimeTooltipText",value:function(){var e;null===(e=this.getTimeTooltip())||void 0===e||e.setCustomChapterText(this.pointOfInterest.description)}},{key:"clearTimeTooltipText",value:function(){var e;null===(e=this.getTimeTooltip())||void 0===e||e.setCustomChapterText()}},{key:"setTimeTooltipTime",value:function(){var e=this.getTimeTooltip();null==e||e.updateTime(this.getPointOfInterestTime())}},{key:"positionMouseTimeDisplay",value:function(){var e,t,n=null===(e=this.getSeekBar())||void 0===e?void 0:e.el();if(n){var r=o.Z.dom.findPosition(n),i=this.getPointOfInterestTime()/this.player().duration();null===(t=this.getMouseTimeDisplay())||void 0===t||t.update(r,i)}}},{key:"showMouseTimeDisplay",value:function(){var e;null===(e=this.getMouseTimeDisplay())||void 0===e||e.forceShow()}},{key:"hideMouseTimeDisplay",value:function(){var e;null===(e=this.getMouseTimeDisplay())||void 0===e||e.removeForceShow()}},{key:"getSeekBar",value:function(){var e;return null===(e=this.player().controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar")}},{key:"getMouseTimeDisplay",value:function(){var e;return null===(e=this.getSeekBar())||void 0===e?void 0:e.getChild("MouseTimeDisplay")}},{key:"getTimeTooltip",value:function(){var e;return null===(e=this.getMouseTimeDisplay())||void 0===e?void 0:e.getChild("TimeTooltip")}}])&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Z.getComponent("Component"));function V(e){return V="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},V(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==V(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==V(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===V(i)?i:String(i)),r)}var i}function U(){return U="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=z(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},U.apply(this,arguments)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var G=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(s,e);var t,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=z(r);if(i){var n=z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,e,t)).pointsOfInterestVisible=t.pointsOfInterestVisible,n.toggle(n.pointsOfInterestVisible),n}return t=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.pointsOfInterestVisible)}},{key:"toggle",value:function(e){e?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){o.Z.dom.addClass(this.toggleEl,"on"),this.pointsOfInterestVisible=!0,this.player().pointsOfInterestPlugin().togglePointsOfInterest(this.pointsOfInterestVisible)}},{key:"toggleOff",value:function(){o.Z.dom.removeClass(this.toggleEl,"on"),this.pointsOfInterestVisible=!1,this.player().pointsOfInterestPlugin().togglePointsOfInterest(this.pointsOfInterestVisible)}},{key:"handleClick",value:function(e){e.stopImmediatePropagation()}},{key:"createEl",value:function(e,t,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=o.Z.dom.createEl("div",{className:"custom-toggle toggle-option float-end",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=U(z(s.prototype),"createEl",this).call(this,e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Points of Interest</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuItem"));function q(e){return q="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},q(e)}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===q(i)?i:String(i)),r)}var i}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}o.Z.registerComponent("PointsOfInterestMenuItem",G);var Q=o.Z.getPlugin("plugin"),J="cvplayer-points-of-interest",X=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$(r);if(i){var n=$(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e)).pointOfInterestIndicators=[],n.enabled=!0,n.pointsOfInterest=null==t?void 0:t.pointsOfInterest,n.initialize=n.initialize.bind(Y(n)),n.updateBuffered=n.updateBuffered.bind(Y(n)),n.updatePlaybackProgress=n.updatePlaybackProgress.bind(Y(n)),n.player.one("loadedmetadata",(function(){return n.player.ready(n.initialize)})),n}return t=a,(n=[{key:"initialize",value:function(){this.pointsOfInterest&&(_.S.hasLocalStorage()&&"false"===_.S.get(J)&&(this.enabled=!1),this.setupTrack(),this.createPointOfInterestIndicators(),this.addMenuItem(),this.bindListeners())}},{key:"bindListeners",value:function(){var e=this;this.player.on("progress",this.updateBuffered),this.player.on("timeupdate",this.updatePlaybackProgress),this.player.on("dispose",(function(){var t,n;null===(t=e.player)||void 0===t||t.off("progress",e.updateBuffered),null===(n=e.player)||void 0===n||n.off("timeupdate",e.updatePlaybackProgress)}))}},{key:"togglePointsOfInterest",value:function(e){_.S.set(J,e.toString()),this.pointOfInterestIndicators.forEach((function(t){return t.toggleVisibility(e)}))}},{key:"setupTrack",value:function(){var e=this.player.addTextTrack("metadata","pointsofinterest");this.pointsOfInterest.forEach((function(t){e.addCue({startTime:t.startTime,endTime:t.endTime,text:t.description})})),e.trigger({type:"loadeddata",target:e})}},{key:"createPointOfInterestIndicators",value:function(){var e,t=this,n=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");this.pointsOfInterest.forEach((function(e){var r=new F(t.player,{pointOfInterest:e});t.pointOfInterestIndicators.push(r),n.addChild(r)}))}},{key:"addMenuItem",value:function(){var e;(null===(e=this.player.getChild("collapserator"))||void 0===e?void 0:e.getChild("cogButton")).addItem({index:0,ctor:G,name:"PointsOfInterestMenuItem",options:{pointsOfInterestVisible:this.enabled}})}},{key:"updateBuffered",value:function(){var e=this;this.pointOfInterestIndicators.forEach((function(t){return t.updateBuffered((0,x.b)(e.player))}))}},{key:"updatePlaybackProgress",value:function(){var e=this;this.pointOfInterestIndicators.forEach((function(t){return t.updatePlaybackProgress(e.player.currentTime())}))}}])&&H(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(Q);o.Z.registerPlugin("pointsOfInterestPlugin",X),n(93262);var K=n(95569),ee=function(){var e,t;return null!==(t=null===(e=window.crypto)||void 0===e?void 0:e.randomUUID())&&void 0!==t?t:Math.random().toString()};function te(e){var t="function"==typeof Map?new Map:void 0;return te=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ne(e,arguments,oe(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ie(n,e)},te(e)}function ne(e,t,n){return ne=re()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&ie(i,n.prototype),i},ne.apply(null,arguments)}function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ie(e,t){return ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ie(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}function ae(e){return ae="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},ae(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ae(i)?i:String(i)),r)}var i}function ce(e,t,n){return t&&ue(e.prototype,t),n&&ue(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var le=function(){function e(){se(this,e),this.callbacks=[],this.predicates=[],this.controller=new AbortController,this.signal=this.controller.signal,this.trigger=this.trigger.bind(this),this.on=this.on.bind(this),this.one=this.one.bind(this),this.off=this.off.bind(this),this.dispose=this.dispose.bind(this),this.isDisposed=this.isDisposed.bind(this)}return ce(e,[{key:"trigger",value:function(e){var t=this;this.callbacks.forEach((function(n,r){var i=t.predicates[r];i&&!i(e)||n(e)}))}},{key:"on",value:function(e){var t=this;this.isDisposed()&&console.warn("This EventChannel instance been disposed - this is a no-op");var n=this.callbacks.length;this.callbacks[n]=e,this.predicates[n]=function(){return!0};var r=function(){t.off(e)};return{off:r,filter:function(e){return t.predicates[n]=e,r}}}},{key:"one",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return this.isDisposed()?fe.reject(new Error("This EventChannel instance has been disposed")):new fe((function(r,i){e=t.on((function(n){t.signal.removeEventListener("abort",o),e(),r(n)})).filter(n);var o=function(){e(),i(new Error("Aborted while waiting for message"))};t.signal.addEventListener("abort",o,{once:!0})}),(function(){e()}))}},{key:"off",value:function(e){var t=this.callbacks.indexOf(e);-1!==t&&(this.callbacks.splice(t,1),this.predicates.splice(t,1))}},{key:"dispose",value:function(){this.callbacks.length=0,this.predicates.length=0,this.controller.abort()}},{key:"isDisposed",value:function(){return this.signal.aborted}}]),e}(),fe=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}(i,e);var t,n,r=(t=i,n=re(),function(){var e,r=oe(t);if(n){var i=oe(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e,t){var n;return se(this,i),(n=r.call(this,e)).onTimeout=t,n.bindFunctions(),n}return ce(i,[{key:"bindFunctions",value:function(){this.timeout=this.timeout.bind(this)}},{key:"timeout",value:function(e){var t=this;return new Promise((function(n,r){t.then(n).catch(r).finally((function(){return clearTimeout(i)}));var i=setTimeout((function(){var e;null===(e=t.onTimeout)||void 0===e||e.call(t),r(new Error("Promise timed out"))}),e)}))}}],[{key:"reject",value:function(e){return new i((function(t,n){return n(e)}))}}]),i}(te(Promise)),he=function(){function e(){se(this,e),this.channels={},this.trigger=this.trigger.bind(this),this.on=this.on.bind(this),this.one=this.one.bind(this),this.off=this.off.bind(this),this.dispose=this.dispose.bind(this),this.getChannel=this.getChannel.bind(this)}return ce(e,[{key:"trigger",value:function(e,t){this.getChannel(e).trigger(t)}},{key:"on",value:function(e,t){return this.getChannel(e).on(t)}},{key:"one",value:function(e,t){return this.getChannel(e).one(t)}},{key:"off",value:function(e,t){this.getChannel(e).off(t)}},{key:"dispose",value:function(){this.trigger("dispose",pe.void),Object.values(this.channels).forEach((function(e){return e.dispose()})),this.channels={}}},{key:"getChannel",value:function(e){return this.channels[e]||(this.channels[e]=new le),this.channels[e]}}]),e}(),pe={void:void 0};function ye(e){return ye="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},ye(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ye(i)?i:String(i)),r)}var i}var ve=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bindFunctions()}var t,n;return t=e,(n=[{key:"bindFunctions",value:function(){this.schedule=this.schedule.bind(this),this.every=this.every.bind(this),this.trigger=this.trigger.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this)}},{key:"schedule",value:function(e){return this.task=e,this}},{key:"every",value:function(e){return this.intervalInMilliseconds=e,this}},{key:"trigger",value:function(){var e;return null===(e=this.task)||void 0===e||e.call(this,this),this}},{key:"start",value:function(){var e=this;return this.intervalId||(this.intervalId=setInterval((function(){return e.trigger()}),this.intervalInMilliseconds)),this}},{key:"stop",value:function(){return this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0),this}}])&&de(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function be(e){return be="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},be(e)}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==be(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===be(i)?i:String(i)),r)}var i}var me,we={reconnectIntervalInMilliseconds:3e3,heartbeatEnabled:!1,heartbeatIntervalInMillseconds:1e4,heartbeatMessage:""},Pe=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.bindFunctions(),this.url=t,this.options=Object.assign(Object.assign({},we),r),this.webSocket=this.connect(),this.heartbeat=(new ve).schedule((function(){return n.send(n.options.heartbeatMessage)})).every(this.options.heartbeatIntervalInMillseconds)}var t,n;return t=e,(n=[{key:"bindFunctions",value:function(){this.cleanup=this.cleanup.bind(this),this.handleOpen=this.handleOpen.bind(this),this.handleMessage=this.handleMessage.bind(this),this.handleClose=this.handleClose.bind(this),this.handleError=this.handleError.bind(this),this.connect=this.connect.bind(this),this.send=this.send.bind(this),this.dipose=this.dipose.bind(this)}},{key:"cleanup",value:function(){this.heartbeat.stop(),this.webSocket.removeEventListener("error",this.handleError),this.webSocket.removeEventListener("message",this.handleMessage),this.webSocket.removeEventListener("open",this.handleOpen),this.webSocket.removeEventListener("close",this.handleClose)}},{key:"handleOpen",value:function(e){var t;null===(t=this.onOpen)||void 0===t||t.call(this,e),this.options.heartbeatEnabled&&this.heartbeat.start()}},{key:"handleMessage",value:function(e){var t;null===(t=this.onMessage)||void 0===t||t.call(this,e)}},{key:"handleClose",value:function(e){var t,n=this;null===(t=this.onClose)||void 0===t||t.call(this,e),this.cleanup(),setTimeout((function(){n.webSocket=n.connect()}),this.options.reconnectIntervalInMilliseconds)}},{key:"handleError",value:function(e){var t;null===(t=this.onError)||void 0===t||t.call(this,e),this.handleClose()}},{key:"connect",value:function(){var e=new WebSocket(this.url);return e.addEventListener("open",this.handleOpen),e.addEventListener("message",this.handleMessage),e.addEventListener("close",this.handleClose),e.addEventListener("error",this.handleError),e}},{key:"send",value:function(e){this.webSocket.send(e)}},{key:"dipose",value:function(){this.cleanup(),this.webSocket.close()}}])&&ge(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Oe(e){return Oe="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},Oe(e)}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==Oe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Oe(i)?i:String(i)),r)}var i}!function(e){e.AppleTv="apple-tv",e.Vivi="vivi"}(me||(me={}));var ke=function(){function e(t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._timerStartedAt=0,this._lastModified={},this.position=0,this.duration=0,this.playing=!1,this.mute=!1,this.videoSource="",this.subtitleSource="",this.subtitles=!1,this.volume=0,this.title=t,this.device=n,this.ready=!1,this.playbackFinished=!1,this.debounced=this.withDebouncedSetters(),this.withTimestampedSetters()}var t,n;return t=e,(n=[{key:"position",get:function(){return this._position+this.getTimerDurationInSeconds()},set:function(e){this._position=e,this.restartTimer()}},{key:"playing",get:function(){return this._playing},set:function(e){this._playing=e,e?this.restartTimer():(this._position+=this.getTimerDurationInSeconds(),this.stopTimer())}},{key:"restartTimer",value:function(){this._timerStartedAt=Date.now()}},{key:"stopTimer",value:function(){this._timerStartedAt=0}},{key:"getTimerDurationInSeconds",value:function(){return this._timerStartedAt?(Date.now()-this._timerStartedAt)/1e3:0}},{key:"withDebouncedSetters",value:function(){var e=this;return new Proxy(this,{set:function(t,n,r,i){var o=e._lastModified[n.toString()];return!!(o&&Date.now()<o+2e3)||Reflect.set(t,n,r,i)}})}},{key:"withTimestampedSetters",value:function(){var e=this;return new Proxy(this,{set:function(t,n,r,i){return e._lastModified[n.toString()]=Date.now(),Reflect.set(t,n,r,i)}})}}])&&Se(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function je(e){return je="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},je(e)}function Ee(){Ee=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(I([])));O&&O!==n&&r.call(O,a)&&(w=O);var S=m.prototype=b.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==je(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(je(t)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(j.prototype),c(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===je(i)?i:String(i)),r)}var i}function Te(){return Te="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_e(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Te.apply(this,arguments)}function xe(e,t){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xe(e,t)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}var Ie=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Re=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xe(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_e(r);if(i){var n=_e(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this)).client=e,n.localState=new ke(t.title,t.device),n.bindFunctions(),n.initialize(),n}return t=a,(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.dispose=this.dispose.bind(this),this.handleClientConnected=this.handleClientConnected.bind(this),this.handleDisconnectMessage=this.handleDisconnectMessage.bind(this),this.handleAllVideoMessages=this.handleAllVideoMessages.bind(this),this.handleUpdateMessage=this.handleUpdateMessage.bind(this),this.handleVolumeMessage=this.handleVolumeMessage.bind(this),this.handlePlayingMessage=this.handlePlayingMessage.bind(this),this.handlePausedMessage=this.handlePausedMessage.bind(this),this.handleFinishedMessage=this.handleFinishedMessage.bind(this),this.handleNewChapterMessage=this.handleNewChapterMessage.bind(this),this.handleStoppedMessage=this.handleStoppedMessage.bind(this),this.loadSource=this.loadSource.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.seek=this.seek.bind(this),this.setVolume=this.setVolume.bind(this),this.isPlaying=this.isPlaying.bind(this),this.getPosition=this.getPosition.bind(this),this.getDuration=this.getDuration.bind(this),this.getVolume=this.getVolume.bind(this)}},{key:"initialize",value:function(){var e=this;this.client.on("dispose",this.dispose),this.client.on("connected",this.handleClientConnected),this.client.on("message",this.handleDisconnectMessage).filter((function(t){return t.source===e.getDevice().id&&"disconnect"===t.message.type})),this.client.on("message",this.handleAllVideoMessages).filter((function(t){return t.source===e.getDevice().id&&"video_event"===t.message.type}))}},{key:"dispose",value:function(){this.client.off("dispose",this.dispose),this.client.off("connected",this.handleClientConnected),this.client.off("message",this.handleDisconnectMessage),this.client.off("message",this.handleAllVideoMessages),this.client.stop(this.getDevice().id).catch(K.ZT),Te(_e(a.prototype),"dispose",this).call(this)}},{key:"handleClientConnected",value:function(){return Ie(this,void 0,void 0,Ee().mark((function e(){return Ee().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.client.joinRoom(this.getDevice().id);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),this.trigger("error",e.t0);case 8:case"end":return e.stop()}}),e,this,[[0,5]])})))}},{key:"handleDisconnectMessage",value:function(){this.dispose()}},{key:"handleAllVideoMessages",value:function(e){var t={update:this.handleUpdateMessage,volume:this.handleVolumeMessage,playing:this.handlePlayingMessage,paused:this.handlePausedMessage,finished:this.handleFinishedMessage,new_chapter:this.handleNewChapterMessage,stopped:this.handleStoppedMessage}[e.message.payload.event];t&&t(this.localState.debounced,e.message.payload.params||{})}},{key:"handleUpdateMessage",value:function(e,t){e.duration!==t.duration&&(e.duration=t.duration,this.trigger("durationchange",pe.void)),e.position!==t.position&&(e.position=t.position,this.trigger("positionchange",pe.void)),e.subtitles!==t.subtitles&&(e.subtitles=t.subtitles,this.trigger("subtitleschange",pe.void))}},{key:"handleVolumeMessage",value:function(e,t){e.volume!==t.level&&(e.volume=t.level,e.mute=0===t.level,this.trigger("volumechange",pe.void))}},{key:"handlePlayingMessage",value:function(e){!0!==e.playing&&(e.playing=!0,e.playbackFinished=!1,this.trigger("playingchange",pe.void))}},{key:"handlePausedMessage",value:function(e){!1!==e.playing&&(e.playing=!1,this.trigger("playingchange",pe.void))}},{key:"handleFinishedMessage",value:function(e){!0!==e.playbackFinished&&(e.playing=!1,e.playbackFinished=!0,this.trigger("playingchange",pe.void))}},{key:"handleNewChapterMessage",value:function(e,t){var n,r=(null!==(n=t.queue)&&void 0!==n?n:[]).find((function(t){return t.url===e.videoSource}));if(!r)return console.info("The device is no longer playing the source we loaded - disposing the session"),void this.dispose();e.subtitleSource!==r.suburl&&(e.subtitleSource=r.suburl,this.trigger("subtitleschange",pe.void))}},{key:"handleStoppedMessage",value:function(){this.dispose()}},{key:"loadSource",value:function(e,t){return Ie(this,void 0,void 0,Ee().mark((function n(){var r,i;return Ee().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.localState.videoSource!==e||this.localState.subtitleSource!==t){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,r=this.getDevice().id,i=this.getPosition(),this.localState.videoSource=e,this.localState.subtitleSource=t,this.localState.ready=!1,n.next=10,this.client.joinRoom(r);case 10:return n.next=12,this.client.loadQueue({title:this.getTitle(),roomId:r,videoSource:e,subtitleSource:t});case 12:this.localState.ready=!0,this.trigger("sourceloaded",pe.void),i>0&&this.client.seek(r,i),n.next=20;break;case 17:n.prev=17,n.t0=n.catch(2),this.trigger("error",n.t0);case 20:case"end":return n.stop()}}),n,this,[[2,17]])})))}},{key:"play",value:function(){this.localState.ready&&!0!==this.localState.playing&&(this.localState.playing=!0,this.client.play(this.getDevice().id),this.trigger("playingchange",pe.void))}},{key:"pause",value:function(){this.localState.ready&&!1!==this.localState.playing&&(this.localState.playing=!1,this.client.pause(this.getDevice().id),this.trigger("playingchange",pe.void))}},{key:"seek",value:function(e){this.localState.ready&&this.localState.position!==e&&(this.localState.position=e,this.client.seek(this.getDevice().id,e),this.trigger("positionchange",pe.void))}},{key:"setVolume",value:function(e){this.localState.ready&&this.localState.volume!==e&&(this.localState.volume=e,this.client.setVolume(this.getDevice().id,e),this.trigger("volumechange",pe.void))}},{key:"setMuted",value:function(e){this.localState.ready&&this.localState.mute!==e&&(this.localState.mute=e,this.client.setMuted(this.getDevice().id,e),this.trigger("volumechange",pe.void))}},{key:"setSubtitles",value:function(e){return Ie(this,void 0,void 0,Ee().mark((function t(){var n;return Ee().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.localState.ready){t.next=2;break}return t.abrupt("return");case 2:if(!e){t.next=5;break}return t.next=5,this.loadSource(this.localState.videoSource,e);case 5:n=!!e,this.localState.subtitles!==n&&(this.localState.subtitles=n,this.client.setSubtitles(this.getDevice().id,n),this.trigger("subtitleschange",pe.void));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"isPlaying",value:function(){return this.localState.playing}},{key:"isPlaybackFinished",value:function(){return this.localState.playbackFinished}},{key:"getPosition",value:function(){return this.localState.position}},{key:"getDuration",value:function(){return this.localState.duration}},{key:"getVolume",value:function(){return this.localState.volume}},{key:"getMuted",value:function(){return this.localState.mute}},{key:"getSubtitles",value:function(){if(this.localState.subtitles)return this.localState.subtitleSource}},{key:"getDevice",value:function(){return this.localState.device}},{key:"getTitle",value:function(){return this.localState.title}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(he);function Me(e){return Me="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},Me(e)}function Le(){Le=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(I([])));O&&O!==n&&r.call(O,a)&&(w=O);var S=m.prototype=b.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Me(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Me(t)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(j.prototype),c(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==Me(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Me(i)?i:String(i)),r)}var i}function Ne(){return Ne="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Fe(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ne.apply(this,arguments)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}var Ve=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Ae=1e4,Ue=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}(s,e);var t,n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fe(i);if(o){var n=Fe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this)).options=e,t.accessToken="",t.devices=[],t.devicesFingerprint="",t.deviceDiscovery=new ve,t.bindFunctions(),t.initialize(),t}return t=s,r=[{key:"createAckId",value:function(){return ee()}},{key:"calculateFingerprint",value:function(e){return e.map((function(e){return e.id})).sort().join(",")}}],(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.beginDeviceDiscovery=this.beginDeviceDiscovery.bind(this),this.dispose=this.dispose.bind(this),this.sendMessage=this.sendMessage.bind(this),this.sendMessageDebounced=(0,K.Ds)(this.sendMessage,500,!0),this.getDevices=this.getDevices.bind(this),this.authenticateWithVivi=this.authenticateWithVivi.bind(this),this.getRoomList=this.getRoomList.bind(this),this.joinRoom=this.joinRoom.bind(this),this.query=this.query.bind(this),this.loadQueue=this.loadQueue.bind(this),this.play=this.play.bind(this),this.pause=this.pause.bind(this),this.stop=this.stop.bind(this),this.seek=this.seek.bind(this),this.setVolume=this.setVolume.bind(this),this.setMuted=this.setMuted.bind(this),this.setSubtitles=this.setSubtitles.bind(this)}},{key:"initialize",value:function(){var e=this;this.webSocket=new Pe(this.options.url.toString()),this.webSocket.onMessage=function(t){return e.trigger("message",JSON.parse(t.data))},this.webSocket.onOpen=function(){return Ve(e,void 0,void 0,Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.options.fetchAccessToken();case 3:return this.accessToken=e.sent,e.next=6,this.authenticateWithVivi();case 6:this.beginDeviceDiscovery(),this.trigger("connected",pe.void),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),this.trigger("error",e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})))}}},{key:"beginDeviceDiscovery",value:function(){var e=this;this.deviceDiscovery.every(1e4).schedule((function(){return Ve(e,void 0,void 0,Le().mark((function e(){var t,n;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getRoomList();case 3:if(t=e.sent,(n=s.calculateFingerprint(t))!==this.devicesFingerprint){e.next=7;break}return e.abrupt("return");case 7:this.devices=t.map((function(e){return{id:e.id,name:e.name,type:me.Vivi,available:!0}})),this.devicesFingerprint=n,this.trigger("deviceschange",pe.void),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.warn(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})))})).trigger().start()}},{key:"dispose",value:function(){var e;this.deviceDiscovery.stop(),null===(e=this.webSocket)||void 0===e||e.dipose(),Ne(Fe(s.prototype),"dispose",this).call(this)}},{key:"sendMessage",value:function(e){var t;null===(t=this.webSocket)||void 0===t||t.send(JSON.stringify(e))}},{key:"canCastToDevice",value:function(e){return e===me.Vivi}},{key:"getDevices",value:function(){return this.devices}},{key:"startCastSession",value:function(e){return new Re(this,e)}},{key:"authenticateWithVivi",value:function(){return Ve(this,void 0,void 0,Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:"relay",message:{token:this.accessToken,type:"identify_video_api"}}),e.next=3,this.one("message",(function(e){return"video_api_identified"===e.message.type})).timeout(Ae).catch((function(){throw new Error("Failed to authenticate with Vivi")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"getRoomList",value:function(){return Ve(this,void 0,void 0,Le().mark((function e(){var t;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:"relay",message:{type:"video_api_rooms"}}),e.next=3,this.one("message",(function(e){return"video_api_rooms"===e.message.type})).timeout(Ae).catch((function(){throw new Error("Failed to fetch rooms")}));case 3:return t=e.sent,e.abrupt("return",t.message.rooms||[]);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"joinRoom",value:function(e){return Ve(this,void 0,void 0,Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:"relay",message:{destination_type:"box",new_destination:e,token:this.accessToken,type:"connect"}}),t.next=3,this.one("message",(function(t){return t.source===e&&"connect"===t.message.type||"error"===t.message.type&&"already_connected"===t.message.error_type||void 0})).timeout(Ae).catch((function(){throw new Error("Failed to join room")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"query",value:function(e){return Ve(this,void 0,void 0,Le().mark((function t(){var n;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.createAckId(),this.sendMessage({destination:e,message:{type:"message_with_ack",ack_id:n,name:"query"}}),t.next=4,this.one("message",(function(e){return e.message.ack_id===n})).timeout(Ae).catch((function(){throw new Error("Failed to fetch query")}));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"loadQueue",value:function(e){var t=e.roomId,n=e.title,r=e.videoSource,i=e.subtitleSource;return Ve(this,void 0,void 0,Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message_with_ack",ack_id:s.createAckId(),name:"queue_load",payload:{urls:[{title:n,url:r,suburl:i}]}}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"ready"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to load media")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"play",value:function(e){return Ve(this,void 0,void 0,Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:e,message:{type:"message",name:"video_play",payload:{}}}),t.next=3,this.one("message",(function(t){var n;return t.source===e&&"playing"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to play video")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"pause",value:function(e){return Ve(this,void 0,void 0,Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:e,message:{type:"message",name:"video_pause"}}),t.next=3,this.one("message",(function(t){var n;return t.source===e&&"paused"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to pause video")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"stop",value:function(e){return Ve(this,void 0,void 0,Le().mark((function t(){return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:e,message:{type:"message",name:"video_stop"}}),t.next=3,this.one("message",(function(t){var n;return t.source===e&&"stopped"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to stop video")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"seek",value:function(e,t){return Ve(this,void 0,void 0,Le().mark((function n(){return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:e,message:{type:"message",name:"video_seek",payload:{position:t}}})){n.next=4;break}return n.next=4,this.one("message",(function(t){var n;return t.source===e&&"playing"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to seek video")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setVolume",value:function(e,t){return Ve(this,void 0,void 0,Le().mark((function n(){return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:e,message:{type:"message",name:"set_volume",payload:{volume:t}}})){n.next=4;break}return n.next=4,this.one("message",(function(t){var n;return t.source===e&&"volume"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to set volume")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setMuted",value:function(e,t){return Ve(this,void 0,void 0,Le().mark((function n(){return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.sendMessage({destination:e,message:{type:"message",name:"set_mute",payload:{mute:t}}}),n.next=3,this.one("message",(function(t){var n;return t.source===e&&"mute"===(null===(n=t.message.payload)||void 0===n?void 0:n.event)})).timeout(Ae).catch((function(){throw new Error("Failed to set mute")}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"setSubtitles",value:function(e,t){return Ve(this,void 0,void 0,Le().mark((function n(){var r;return Le().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=s.createAckId(),this.sendMessage({destination:e,message:{type:"message_with_ack",ack_id:r,name:"set_subtitles",payload:{subtitles:t}}}),n.next=4,this.one("message",(function(t){return t.source===e&&t.message.ack_id===r})).timeout(Ae).catch((function(){throw new Error("Failed to set subtitles")}));case 4:case"end":return n.stop()}}),n,this)})))}}])&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(he);function Ze(e){return Ze="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},Ze(e)}function ze(e){return function(e){if(Array.isArray(e))return Ge(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 Ge(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)?Ge(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 Ge(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 qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==Ze(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Ze(i)?i:String(i)),r)}var i}function He(){return He="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ye(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},He.apply(this,arguments)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}var $e=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(s,e);var t,n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ye(i);if(o){var n=Ye(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this)).instanceId=e,t.clients=[],t.bindFunctions(),t}return t=s,r=[{key:"getOrCreateInstance",value:function(e){if(!e)throw new Error("instanceId is required");return this.instances[e]||(this.instances[e]=new s(e)),this.instances[e]}},{key:"disposeAndRemoveInstance",value:function(e){e.dispose(),delete this.instances[e.instanceId]}},{key:"isActive",value:function(){return Object.keys(this.instances).length>0}}],(n=[{key:"bindFunctions",value:function(){this.addClient=this.addClient.bind(this),this.hasInstanceOfClient=this.hasInstanceOfClient.bind(this),this.startCastSession=this.startCastSession.bind(this),this.gatherAndPublishDevices=this.gatherAndPublishDevices.bind(this),this.dispose=this.dispose.bind(this)}},{key:"addClient",value:function(e){var t=this;e.on("deviceschange",this.gatherAndPublishDevices),e.on("error",(function(e){return t.trigger("error",e)})),this.clients.push(e)}},{key:"hasInstanceOfClient",value:function(e){return this.clients.some((function(t){return t instanceof e}))}},{key:"startCastSession",value:function(e){var t=this;if(this.castSession){if(this.castSession.getDevice().id===e.device.id)return void console.info("A session with device ".concat(e.device.id," already exists - this is a no-op"));this.castSession.dispose()}var n=this.clients.find((function(t){return t.canCastToDevice(e.device.type)}));n&&(this.castSession=n.startCastSession(e),this.castSession.on("error",(function(e){t.castSession.dispose(),t.trigger("error",e)})),this.castSession.on("dispose",(function(){t.castSession=void 0,t.trigger("castsessionchange",void 0)})),this.trigger("castsessionchange",this.castSession))}},{key:"getCastSession",value:function(){return this.castSession}},{key:"gatherAndPublishDevices",value:function(){var e=this.clients.map((function(e){return e.getDevices()})).reduce((function(e,t){return[].concat(ze(e),ze(t))}),[]);this.trigger("deviceschange",e)}},{key:"dispose",value:function(){var e;null===(e=this.castSession)||void 0===e||e.dispose(),this.clients.forEach((function(e){return e.dispose()})),this.castSession=void 0,this.clients=[],He(Ye(s.prototype),"dispose",this).call(this)}}])&&qe(t.prototype,n),r&&qe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(he);$e.instances={};var Qe=n(30050),Je=n(98115);function Xe(e){return Xe="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},Xe(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==Xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Xe(i)?i:String(i)),r)}var i}function et(){return et="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=rt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},et.apply(this,arguments)}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function nt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}var it=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rt(r);if(i){var n=rt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nt(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).isVisible=n.isVisible.bind(nt(n)),n}return t=a,(n=[{key:"createEl",value:function(){return et(rt(a.prototype),"createEl",this).call(this,"li",{className:"vjs-menu-item cv-device-menu-item",innerHTML:'\n <span class="cv-device-icon '.concat({vivi:"cv-vivi-icon","apple-tv":"cv-apple-icon"}[this.options_.type],'"></span>\n <span class="vjs-menu-item-text">').concat(this.options_.label,"</span>\n ")})}},{key:"handleClick",value:function(){this.options_.onClick()}},{key:"show",value:function(){et(rt(a.prototype),"show",this).call(this)}},{key:"hide",value:function(){et(rt(a.prototype),"hide",this).call(this)}},{key:"isVisible",value:function(){return!et(rt(a.prototype),"hasClass",this).call(this,"vjs-hidden")}}])&&Ke(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getComponent("MenuItem"));function ot(e){return ot="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},ot(e)}function at(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==ot(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===ot(i)?i:String(i)),r)}var i}function st(){return st="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ct(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},st.apply(this,arguments)}function ut(e,t){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ut(e,t)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var lt=o.Z.getComponent("MenuButton"),ft=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ut(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ct(r);if(i){var n=ct(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).alwaysCollapsed=!1,n.isCollapsed=!1,n.isCollabsible=!0,n.searchText="",n.devices=[],n.castSession=void 0,n.bindFunctions(),n.bindEventListeners(),n}return t=a,n=[{key:"bindFunctions",value:function(){this.bindEventListeners=this.bindEventListeners.bind(this),this.setDevices=this.setDevices.bind(this),this.setCastSession=this.setCastSession.bind(this),this.setSearchText=this.setSearchText.bind(this),this.getDeviceMenuItems=this.getDeviceMenuItems.bind(this),this.render=this.render.bind(this),this.removeMenuItems=this.removeMenuItems.bind(this),this.addMenuItemsForDevices=this.addMenuItemsForDevices.bind(this),this.shouldShowSearchInput=this.shouldShowSearchInput.bind(this),this.toggleSearchInput=this.toggleSearchInput.bind(this),this.toggleDeviceMenuItems=this.toggleDeviceMenuItems.bind(this),this.toggleEmptyStatePlaceholder=this.toggleEmptyStatePlaceholder.bind(this)}},{key:"bindEventListeners",value:function(){var e=this,t=this.$("button"),n=function(t){e.menu.handleBlur(t)};t.addEventListener("blur",n),this.one("dispose",(function(){t.removeEventListener("blur",n)}))}},{key:"createEl",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=lt.prototype.createEl).apply.apply(e,[this].concat(n))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-devices-button ".concat(st(ct(a.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var e=this,t=[];return this.headingItem=new Qe.Z(this.player_,{label:this.localize("Select a device"),selectable:!1}),this.searchInputItem=new Je.Z(this.player_,{menuButton:this,search:function(t){return e.setSearchText(t)},className:"cv-devices-search-input"}),this.emptyPlaceholder=new Je.C(this.player_,{label:"No devices found",selected:!1,selectable:!1,multiSelectable:!1}),this.headingItem.show(),this.searchInputItem.hide(),this.emptyPlaceholder.show(),t.push(this.headingItem,this.searchInputItem,this.emptyPlaceholder),t}},{key:"pressButton",value:function(){var e;st(ct(a.prototype),"pressButton",this).call(this),this.shouldShowSearchInput()&&(null===(e=this.searchInputItem)||void 0===e||e.focus())}},{key:"setDevices",value:function(e){this.devices=e,this.render()}},{key:"setCastSession",value:function(e){this.castSession=e,this.render()}},{key:"setSearchText",value:function(e){this.searchText=e,this.render()}},{key:"getDeviceMenuItems",value:function(){return this.menu.children_.filter((function(e){return e instanceof it}))}},{key:"render",value:function(){var e=this.getDeviceMenuItems();this.removeMenuItems(e),this.addMenuItemsForDevices(this.devices),this.toggleSearchInput(),this.toggleDeviceMenuItems(),this.toggleEmptyStatePlaceholder()}},{key:"removeMenuItems",value:function(e){var t=this;e.forEach((function(e){return t.menu.removeChild(e)}))}},{key:"addMenuItemsForDevices",value:function(e){var t=this;e.forEach((function(e){var n=new it(t.player(),{id:e.id,label:e.name,selected:!1,multiSelectable:!1,selectable:e.available,available:e.available,type:e.type,onClick:function(){t.options_.onDeviceMenuItemClick(n,e)}});t.menu.addItem(n)}))}},{key:"shouldShowSearchInput",value:function(){return this.getDeviceMenuItems().length>=20}},{key:"toggleSearchInput",value:function(){this.shouldShowSearchInput()?(this.headingItem.hide(),this.searchInputItem.show(),this.menu.addClass("vertical-fill")):(this.headingItem.show(),this.searchInputItem.hide(),this.menu.removeClass("vertical-fill"))}},{key:"toggleDeviceMenuItems",value:function(){var e=this,t=this.getDeviceMenuItems(),n=this.shouldShowSearchInput(),r=this.searchText.toLowerCase();t.forEach((function(t){var i,o=e.devices.find((function(e){return e.id===t.options_.id}));if(o){var a=o.available,s=!n||-1!==o.name.toLowerCase().indexOf(r),u=o.id===(null===(i=e.castSession)||void 0===i?void 0:i.getDevice().id);a?t.enable():t.disable(),s?t.show():t.hide(),u?t.selected(!0):t.selected(!1)}}))}},{key:"toggleEmptyStatePlaceholder",value:function(){var e=this.getDeviceMenuItems();e.filter((function(e){return e.isVisible()})).length?this.emptyPlaceholder.hide():this.emptyPlaceholder.show(),e.length?this.emptyPlaceholder.setLabel(this.localize("No matching results")):this.emptyPlaceholder.setLabel(this.localize("No devices found"))}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){var e,t;return null!==(t=null===(e=this.castSession)||void 0===e?void 0:e.getDevice().name)&&void 0!==t?t:" "}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){this.handleClick()}},{key:"handleClick",value:function(){st(ct(a.prototype),"handleClick",this).call(this,null),this.options_.onClick()}}],n&&at(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(lt);ft.prototype.controlText_="Devices",o.Z.registerComponent("DevicesButton",ft);var ht=n(10463);function pt(e){return pt="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},pt(e)}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==pt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===pt(i)?i:String(i)),r)}var i}function dt(){return dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},dt.apply(this,arguments)}function vt(e,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vt(e,t)}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}var gt=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=bt(r);if(i){var n=bt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,null,e)}return t=a,(n=[{key:"createEl",value:function(){return dt(bt(a.prototype),"createEl",this).call(this,"div",{className:"cv-devices-tech"})}},{key:"setPoster",value:function(e){this.poster=e,this.update()}},{key:"setDevice",value:function(e){this.device=e,this.update()}},{key:"update",value:function(){var e,t,n,r,i=this;this.el_.innerHTML='\n <div class="cv-devices-content">\n <p>'.concat(this.localize("Currently playing on"),'</p>\n <h2><span class="cv-device-icon ').concat({vivi:"cv-vivi-icon","apple-tv":"cv-apple-icon"}[null!==(t=null===(e=this.device)||void 0===e?void 0:e.type)&&void 0!==t?t:me.Vivi],'"></span>').concat(null!==(r=null===(n=this.device)||void 0===n?void 0:n.name)&&void 0!==r?r:"",'</h2>\n </div>\n <div class="cv-devices-background" style="background-image: url(').concat(this.poster,')"></div>\n ');var o=document.createElement("button"),a=function(e){e.stopPropagation(),i.options_.onStopCasting()};o.onclick=a,o.ontouchstart=a,o.className="stop-casting-button",o.innerHTML=this.localize("Stop casting"),this.el_.querySelector(".cv-devices-content").appendChild(o)}},{key:"play",value:function(){}}])&&yt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getComponent("Component"));function mt(e){return mt="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},mt(e)}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==mt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===mt(i)?i:String(i)),r)}var i}function Pt(){return Pt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=St(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Pt.apply(this,arguments)}function Ot(e,t){return Ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ot(e,t)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},St(e)}var kt=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ot(e,t)}(u,e);var t,n,r,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=St(i);if(a){var n=St(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===mt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,e,t)).featuresVolumeControl=!0,n.featuresPlaybackRate=!1,n.movingMediaElementInDOM=!1,n.featuresFullscreenResize=!0,n.featuresTimeupdateEvents=!0,n.featuresProgressEvents=!1,n.featuresNativeTextTracks=!1,n.featuresNativeAudioTracks=!1,n.featuresNativeVideoTracks=!1,n.featuresMuteControl=!0,n.featuresSourceset=!1,n.videojsPlayer=(0,o.Z)(n.options_.playerId),n.bindFunctions(),n.bindEventListeners(),n.ready((function(){n.setSource(n.options_.source)})),n.triggerReady(),n}return t=u,r=[{key:"canPlayType",value:function(){return""}},{key:"canPlaySource",value:function(e,t){var n;return!!$e.getOrCreateInstance(null!==(n=null==t?void 0:t.instanceId)&&void 0!==n?n:"").getCastSession()}},{key:"isSupported",value:function(){return $e.isActive()}}],(n=[{key:"bindFunctions",value:function(){this.bindEventListeners=this.bindEventListeners.bind(this),this.onTextTrackChanged=this.onTextTrackChanged.bind(this),this.getSelectedTextTrack=this.getSelectedTextTrack.bind(this),this.setSelectedTextTrack=this.setSelectedTextTrack.bind(this),this.showUI=this.showUI.bind(this),this.hideUI=this.hideUI.bind(this),this.dispose=this.dispose.bind(this),this.setSource=this.setSource.bind(this),this.getCastSession=this.getCastSession.bind(this)}},{key:"bindEventListeners",value:function(){var e=this,t=this.getCastSession();t&&(this.textTracks().on("change",this.onTextTrackChanged),this.videojsPlayer.one("ended",(function(){t.dispose()})),t.on("durationchange",(function(){e.trigger("durationchange")})),t.on("dispose",(function(){e.trigger("ended"),e.hideUI()})),t.on("playingchange",(function(){t.isPlaying()?(e.trigger("play"),e.trigger("playing")):e.trigger("pause")})),t.on("volumechange",(function(){e.trigger("volumechange")})),t.on("sourceloaded",(function(){e.trigger("loadeddata")})),t.on("subtitleschange",(function(){e.setSelectedTextTrack(t.getSubtitles())})))}},{key:"onTextTrackChanged",value:function(){var e,t=this.getSelectedTextTrack();null===(e=this.getCastSession())||void 0===e||e.setSubtitles(null==t?void 0:t.src)}},{key:"getSelectedTextTrack",value:function(){return ht.O.findTrackByPredicate(this.videojsPlayer.player_,(function(e){return"showing"===e.mode&&!!e.src}))}},{key:"setSelectedTextTrack",value:function(e){ht.O.forEachTrack(this.videojsPlayer.player_,(function(t){t.src===e?t.mode="showing":t.mode="hidden"}))}},{key:"showUI",value:function(e){this.ui&&(this.ui.setPoster(this.options_.poster),this.ui.setDevice(e),this.ui.show())}},{key:"hideUI",value:function(){var e;null===(e=this.ui)||void 0===e||e.hide()}},{key:"dispose",value:function(){this.textTracks().off("change",this.onTextTrackChanged);var e=this.getCastSession();e&&e.dispose(),Pt(St(u.prototype),"cleanupAutoTextTracks",this).call(this),Pt(St(u.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){var e=this;return this.ui=this.ui||new gt({onStopCasting:function(){var t;null===(t=e.getCastSession())||void 0===t||t.dispose()}}),this.ui.el()}},{key:"setSource",value:function(e){var t=this.getCastSession();if(t){this.showUI(t.getDevice()),this.trigger("loadstart");var n=this.getSelectedTextTrack();t.loadSource(e.src,null==n?void 0:n.src)}}},{key:"addRemoteTextTrack",value:function(e){return Pt(St(u.prototype),"addRemoteTextTrack",this).call(this,e,!0)}},{key:"getCastSession",value:function(){var e;return $e.getOrCreateInstance(null!==(e=this.options_.instanceId)&&void 0!==e?e:"").getCastSession()}},{key:"play",value:function(){var e;null===(e=this.getCastSession())||void 0===e||e.play()}},{key:"pause",value:function(){var e;null===(e=this.getCastSession())||void 0===e||e.pause()}},{key:"paused",value:function(){var e;return!1===(null===(e=this.getCastSession())||void 0===e?void 0:e.isPlaying())}},{key:"ended",value:function(){var e,t;return null!==(t=null===(e=this.getCastSession())||void 0===e?void 0:e.isPlaybackFinished())&&void 0!==t&&t}},{key:"setCurrentTime",value:function(e){var t;null===(t=this.getCastSession())||void 0===t||t.seek(null!=e?e:0)}},{key:"currentTime",value:function(){var e,t;return null!==(t=null===(e=this.getCastSession())||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}},{key:"duration",value:function(){var e,t;return null!==(t=null===(e=this.getCastSession())||void 0===e?void 0:e.getDuration())&&void 0!==t?t:0}},{key:"volume",value:function(){var e,t;return null!==(t=null===(e=this.getCastSession())||void 0===e?void 0:e.getVolume())&&void 0!==t?t:1}},{key:"setVolume",value:function(e){var t;null===(t=this.getCastSession())||void 0===t||t.setVolume(e)}},{key:"muted",value:function(){var e,t;return null!==(t=null===(e=this.getCastSession())||void 0===e?void 0:e.getMuted())&&void 0!==t&&t}},{key:"setMuted",value:function(e){var t;null===(t=this.getCastSession())||void 0===t||t.setMuted(e)}},{key:"buffered",value:function(){}},{key:"seekable",value:function(){return o.Z.createTimeRanges(0,this.duration())}},{key:"playbackRate",value:function(){return 1}},{key:"readyState",value:function(){return 4}},{key:"controls",value:function(){return!1}},{key:"playsinline",value:function(){return!0}},{key:"supportsFullScreen",value:function(){return!0}},{key:"setAutoplay",value:function(){}},{key:"preload",value:function(){}},{key:"load",value:function(){}},{key:"setPlaybackRate",value:function(){}}])&&wt(t.prototype,n),r&&wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Z.getComponent("Tech"));function jt(e){return jt="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},jt(e)}function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==jt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===jt(i)?i:String(i)),r)}var i}function Ct(){return Ct="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ct.apply(this,arguments)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}o.Z.registerTech("devices",kt);var _t=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xt(r);if(i){var n=xt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n,r,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,n.instanceId=null!==(i=null===(r=n.player.options_.devices)||void 0===r?void 0:r.instanceId)&&void 0!==i?i:"",n.bindFunctions(),n.initialize(),n}return t=a,(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.onReady=this.onReady.bind(this),this.onDevicesChanged=this.onDevicesChanged.bind(this),this.onCastSessionChanged=this.onCastSessionChanged.bind(this),this.onDevicesError=this.onDevicesError.bind(this),this.reloadTech=this.reloadTech.bind(this),this.getSessionManager=this.getSessionManager.bind(this),this.dispose=this.dispose.bind(this)}},{key:"initialize",value:function(){this.player.ready(this.onReady)}},{key:"onReady",value:function(){var e=this,t=this.player.getChild("collapserator"),n=null==t?void 0:t.children().findIndex((function(e){return"CustomControlSpacer"===e.name()})),r=this.getSessionManager();if(t&&n&&-1!==n&&r){r.on("deviceschange",this.onDevicesChanged),r.on("castsessionchange",this.onCastSessionChanged),r.on("error",this.onDevicesError);var i={onClick:function(){if(e.options.viviApi&&e.options.fetchViviAccessToken&&!r.hasInstanceOfClient(Ue)){var t=new Ue({url:e.options.viviApi,fetchAccessToken:e.options.fetchViviAccessToken});r.addClient(t)}},onDeviceMenuItemClick:function(t,n){r.startCastSession({device:n,title:e.options.title})}};this.devicesButton=t.addChild("DevicesButton",i,n+1)}}},{key:"onDevicesChanged",value:function(e){var t;null===(t=this.devicesButton)||void 0===t||t.setDevices(e)}},{key:"onCastSessionChanged",value:function(e){var t;null===(t=this.devicesButton)||void 0===t||t.setCastSession(e),this.reloadTech(),e?(this.player.addClass("cv-device-casting"),this.player.isFullscreen()&&this.player.exitFullscreen()):this.player.removeClass("cv-device-casting")}},{key:"onDevicesError",value:function(e){this.player.error(e.message),this.player.pause()}},{key:"reloadTech",value:function(){var e=this.player,t=e.currentSources(),n=e.volume(),r=e.muted(),i=e.currentTime(),o=e.paused();e.src(t),e.one("playing",(function(){e.volume(n),e.muted(r),e.currentTime(i),o?e.pause():e.play()}))}},{key:"getSessionManager",value:function(){if(this.instanceId)return $e.getOrCreateInstance(this.instanceId)}},{key:"dispose",value:function(){var e=this.getSessionManager();e&&(e.off("deviceschange",this.onDevicesChanged),e.off("castsessionchange",this.onCastSessionChanged),e.off("error",this.onDevicesError),$e.disposeAndRemoveInstance(e),Ct(xt(a.prototype),"dispose",this).call(this))}}])&&Et(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));function It(e){return It="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},It(e)}function Rt(){Rt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function g(){}function m(){}var w={};c(w,a,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(I([])));O&&O!==n&&r.call(O,a)&&(w=O);var S=m.prototype=b.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,o,a,s){var u=f(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==It(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function E(t,n,r){var i=h;return function(o,a){if(i===y)throw new Error("Generator is already running");if(i===d){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=C(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?d:p,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=d,r.method="throw",r.arg=c.arg)}}}function C(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(It(t)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(j.prototype),c(j.prototype,s,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function Mt(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 Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==It(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==It(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===It(i)?i:String(i)),r)}var i}function Dt(){return Dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Dt.apply(this,arguments)}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function Bt(e){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bt(e)}o.Z.registerPlugin("devicesPlugin",_t);var Ft=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Bt(r);if(i){var n=Bt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e,t)}return t=a,(n=[{key:"getPlayerOptions",value:function(){var e,t=Dt(Bt(a.prototype),"getPlayerOptions",this).call(this);return t.enableDevices?Object.assign(Object.assign({},t),{techOrder:["devices"].concat((e=t.techOrder,function(e){if(Array.isArray(e))return Mt(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 Mt(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)?Mt(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.")}())),devices:{instanceId:ee()}}):t}},{key:"configurePlugins",value:function(){var e;try{this.options.onClickCreateClip&&this.player.createClipButtonPlugin({onClick:this.options.onClickCreateClip}),this.options.onRequestPictureInPicture&&this.player.pictureInPicture({onRequestPictureInPicture:this.options.onRequestPictureInPicture}),(null===(e=this.options.pointsOfInterest)||void 0===e?void 0:e.length)&&this.player.pointsOfInterestPlugin({pointsOfInterest:this.options.pointsOfInterest})}catch(e){console.log("failed to register plugins",e)}}},{key:"setNextVideo",value:function(e,t,n){this.player.nextVideoPlugin&&this.player.nextVideoPlugin().setNextVideo(e,t,n)}},{key:"enablePictureInPicture",value:function(){var e=this.player.pictureInPicture();e&&e.enablePictureInPicture()}},{key:"disablePictureInPicture",value:function(){var e=this.player.pictureInPicture();e&&e.disablePictureInPicture()}},{key:"togglePictureInPicture",value:function(e){var t=this.player.pictureInPicture();t&&t.togglePictureInPicture(e)}},{key:"additionalSetup",value:function(e){var t,n,r,i,o=this,s=Object.create(null,{additionalSetup:{get:function(){return Dt(Bt(a.prototype),"additionalSetup",o)}}});return t=this,n=void 0,r=void 0,i=Rt().mark((function t(){var n;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s.additionalSetup.call(this,e),this.options.showResources&&e.resources&&this.player.resourcesPlugin&&this.player.resourcesPlugin({resources:e.resources.list,imageCdnUrl:this.options.imageCdnUrl}),"MasterClip"!==e.mediaType){t.next=7;break}if(null!==(n=e.additionalData)){t.next=6;break}throw Error("Invalid clip data");case 6:this.player.clipPlugin({startTime:n.startTime,endTime:n.endTime});case 7:this.options.enableDevices&&this.player.devicesPlugin({viviApi:this.options.viviApi,fetchViviAccessToken:this.options.fetchViviAccessToken,title:e.title});case 8:case"end":return t.stop()}}),t,this)})),new(r||(r=Promise))((function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}u((i=i.apply(t,n||[])).next())}))}},{key:"setActivityStatus",value:function(e,t){this.player.activityStatusPlugin().setActivityStatus(e,t)}}])&&Lt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.r),Vt=n(63816),At=n(14735);function Ut(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 Zt(e){var t,n,i,o=r.useRef(e.player.duration()-e.player.currentTime()),a=(n=r.useState(o.current),i=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,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(n,i)||function(e,t){if(e){if("string"==typeof e)return Ut(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)?Ut(e,t):void 0}}(n,i)||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=a[0],u=a[1];function c(){var t=e.player.duration()-e.player.currentTime();u(t),t>o.current&&(o.current=t)}if(r.useEffect((function(){return e.player.on("timeupdate",c),function(){e.player.off("timeupdate",c)}}),[]),!e.nextVideo||!e.onPlayNext)return r.createElement(r.Fragment,null);var l=Math.ceil(s),f=1===l?"second":"seconds";return r.createElement(r.Fragment,null,r.createElement("div",{className:"cv-up-next-container"},r.createElement("div",{className:"cv-cancel-up-next cursor-pointer",role:"button",onClick:e.onCancel},"×"),r.createElement("div",{className:"cv-up-next-heading"},"Up next in ",l," ",f,":"),r.createElement("div",{className:"cv-up-next-image cursor-pointer",onClick:e.onPlayNext,style:{backgroundImage:"url(".concat(null===(t=e.nextVideo)||void 0===t?void 0:t.thumbnailUrl,")")}}),r.createElement("div",{className:"cv-up-next-title"},e.nextVideo.name)))}function zt(e){return zt="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},zt(e)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===zt(i)?i:String(i)),r)}var i}function qt(){return qt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wt(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},qt.apply(this,arguments)}function Ht(e,t){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ht(e,t)}function Wt(e){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wt(e)}o.Z.registerComponent("UpNext",(0,At.Z)((function(e,t){return r.createElement(Zt,Object.assign({player:e},t))})));var Yt=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ht(e,t)}(s,e);var t,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Wt(r);if(i){var n=Wt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,e,t)).playNext=e.nextVideoPlugin().getShouldPlayNext(),n.toggle(n.playNext),n}return t=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.playNext)}},{key:"toggle",value:function(e){e?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){this.playNext=!0,o.Z.dom.addClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext,!0)}},{key:"toggleOff",value:function(){this.playNext=!1,o.Z.dom.removeClass(this.toggleEl,"on"),this.player_.nextVideoPlugin().setShouldPlayNext(this.playNext,!0)}},{key:"handleClick",value:function(e){e.stopImmediatePropagation()}},{key:"createEl",value:function(e,t,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=o.Z.dom.createEl("div",{className:"custom-toggle toggle-option float-end",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=qt(Wt(s.prototype),"createEl",this).call(this,e,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Play next video</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&Gt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuItem"));function $t(e){return $t="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},$t(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==$t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===$t(i)?i:String(i)),r)}var i}function Jt(){return Jt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=en(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Jt.apply(this,arguments)}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xt(e,t)}function Kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}o.Z.registerComponent("NextVideoMenuItem",Yt);var tn="cv-persisttest",nn="cv-play-next-video",rn=o.Z.getPlugin("plugin"),on=(o.Z.getComponent("MenuItem"),o.Z.getComponent("NextVideoMenuItem")),an=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=en(r);if(i){var n=en(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kt(e)}(this,e)});function a(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).setShouldPlayNext=t.setShouldPlayNext.bind(Kt(t)),t.getShouldPlayNext=t.getShouldPlayNext.bind(Kt(t)),t.getChapterTrack=t.getChapterTrack.bind(Kt(t)),t.onTimeUpdate=t.onTimeUpdate.bind(Kt(t)),t.hasLocalStorage=t.testHasLocalStorage(),t.shouldPlayNextVideo=!1,t.hasLocalStorage){var n=window.localStorage.getItem(nn);t.shouldPlayNextVideo="true"===n}return e.ready((function(){t.initialize()})),t}return t=a,(n=[{key:"initialize",value:function(){this.player.isDisposed()||this.bindListeners()}},{key:"getChapterTrack",value:function(){return ht.O.getTrack(this.player,"chapters",null)}},{key:"setNextVideo",value:function(e,t,n){var r;this.nextVideo=e,this.callback=n,t&&this.setShouldPlayNext(!0),(null===(r=this.player.getChild("collapserator"))||void 0===r?void 0:r.getChild("cogButton")).addItem({index:0,ctor:on,name:"NextVideoMenuItem"})}},{key:"getShouldPlayNext",value:function(){return this.shouldPlayNextVideo}},{key:"setShouldPlayNext",value:function(e,t){this.shouldPlayNextVideo=e,this.hasLocalStorage&&t&&window.localStorage.setItem(nn,e.toString())}},{key:"bindListeners",value:function(){this.player.on("timeupdate",this.onTimeUpdate)}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.hideUpNext(),Jt(en(a.prototype),"dispose",this).call(this)}},{key:"onTimeUpdate",value:function(){var e,t;if(!this.player.pictureInPicture||!this.player.isInPictureInPicture())if(this.getShouldPlayNext()){if(this.player.ended())return this.callback(),void this.hideUpNext();if(!(this.player.duration()<=0||this.upNextRendered&&this.player.currentTime()>this.upNextTimepoint)){var n=this.getChapterTrack(),r=(null===(e=null==n?void 0:n.activeCues)||void 0===e?void 0:e.length)&&n.activeCues[0];"credits"===(null===(t=null==r?void 0:r.text)||void 0===t?void 0:t.toLowerCase())||this.player.currentTime()>=this.player.duration()-5?this.showUpNext():this.hideUpNext()}}else this.hideUpNext()}},{key:"showUpNext",value:function(){var e=this;this.upNextRendered||(this.upNextRendered=!0,this.upNextTimepoint=this.player.currentTime(),this.player.addChild("UpNext",{nextVideo:this.nextVideo,onPlayNext:this.callback,onCancel:function(){e.hideUpNext(),e.setShouldPlayNext(!1)}}))}},{key:"hideUpNext",value:function(){if(this.upNextRendered){this.upNextRendered=!1,this.upNextTimepoint=null;var e=this.player.getChild("UpNext");e&&(this.player.removeChild(e),e.dispose())}}},{key:"testHasLocalStorage",value:function(){try{return window.localStorage.setItem(tn,"persistPlayNext"),window.localStorage.removeItem(tn),!0}catch(e){return!1}}}])&&Qt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(rn);o.Z.registerPlugin("nextVideoPlugin",an);var sn=n(26733);function un(e){return un="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},un(e)}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==un(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===un(i)?i:String(i)),r)}var i}function ln(e,t){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ln(e,t)}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fn(e)}function hn(e){return r.createElement("div",{className:"cv-resource-item"},r.createElement(sn.s,{data:e.resource,imageCdnUrl:e.imageCdnUrl}))}var pn=(0,At.Z)((function(e,t){return r.createElement(hn,Object.assign({},t))})),yn=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ln(e,t)}(s,e);var t,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=fn(r);if(i){var n=fn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===un(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n=a.call(this,e,t);var r=new pn(e,{resource:t.resource,imageCdnUrl:t.imageCdnUrl});return n.addChild(r),n}return t=s,(n=[{key:"createEl",value:function(){return o.Z.dom.createEl("div")}},{key:"handleClick",value:function(e){e.stopImmediatePropagation(),this.options_.downloadResource(this.options_.resource)}}])&&cn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Z.getComponent("ClickableComponent"));function dn(e){return dn="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},dn(e)}function vn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==dn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===dn(i)?i:String(i)),r)}var i}function bn(){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mn(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},bn.apply(this,arguments)}function gn(e,t){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gn(e,t)}function mn(e){return mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mn(e)}var wn=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gn(e,t)}(s,e);var t,n,r,i,a=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=mn(r);if(i){var n=mn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===dn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.apply(this,arguments)).alwaysCollapsed=!1,e.isCollapsed=!1,e.isCollabsible=!0,e}return t=s,(n=[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small ".concat(bn(mn(s.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"buildCSSClass",value:function(){return"cv-resources-button ".concat(bn(mn(s.prototype),"buildCSSClass",this).call(this))}},{key:"update",value:function(){bn(mn(s.prototype),"update",this).call(this)}},{key:"createMenu",value:function(){return this.options_.title="Resources",bn(mn(s.prototype),"createMenu",this).call(this)}},{key:"createItems",value:function(){var e=this,t=[];return this.options_.resources.forEach((function(n){var r=new yn(e.player(),{resource:n,imageCdnUrl:e.options_.imageCdnUrl,downloadResource:function(t){return e.downloadResource(t)}});t.push(r)})),t}},{key:"downloadResource",value:function(e){this.getDownloadIframe().src=e.url}},{key:"getDownloadIframe",value:function(){return this.downloadIframe||(this.downloadIframe=o.Z.dom.createEl("iframe"),this.downloadIframe.style.display="none",o.Z.dom.appendContent(o.Z.dom.$("body"),this.downloadIframe)),this.downloadIframe}},{key:"getCollabsibleName",value:function(){return this.controlText_}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){bn(mn(s.prototype),"handleClick",this).call(this,null)}}])&&vn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuButton"));function Pn(e){return Pn="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},Pn(e)}function On(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==Pn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Pn(i)?i:String(i)),r)}var i}function Sn(e,t){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sn(e,t)}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}wn.prototype.controlText_="Resources",o.Z.registerComponent("ResourcesButton",wn);var jn=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}(a,e);var t,n,r,i,o=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=kn(r);if(i){var n=kn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Pn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,e,t)).options=t,e.ready((function(){return n.onReady()})),n}return t=a,(n=[{key:"onReady",value:function(){if(this.options.resources.length){var e=this.player.getChild("collapserator");e.addChild("ResourcesButton",{resources:this.options.resources,imageCdnUrl:this.options.imageCdnUrl},e.children_.length-3)}}}])&&On(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));o.Z.registerPlugin("resourcesPlugin",jn);var En=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Cn(e){var t=e.className,n=void 0===t?"":t,i=e.playerApi,o=e.onReady,a=e.onDispose,s=En(e,["className","playerApi","onReady","onDispose"]),u=r.useRef();return r.useEffect((function(){if(u){var e=new Ft(u.current,Object.assign(Object.assign({},s),{playerApi:i}));return o&&e.ready((function(){o((0,Vt.G)(e))})),a&&e.one("dispose",a),function(){null==e||e.dispose()}}}),[e.viewKey]),r.createElement("div",{ref:u,className:n})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3848],{93262:(t,e,r)=>{var n=r(93861),i=r(11576);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,r,n,l,f=(n=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(l){var r=a(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function p(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(r=f.call(this,t,e)).update(),r}return e=p,r=[{key:"update",value:function(){this.options_.activityStatus===i.T.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.getToggledActivityStatus(),this.update(),this.options_.clickHandler){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.options_.clickHandler.call(this,e)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}},{key:"getToggledActivityStatus",value:function(){return this.options_.activityStatus===i.T.None||this.options_.activityStatus===i.T.Incomplete?i.T.Complete:this.options_.activityStatus===i.T.Complete?i.T.Incomplete:void 0}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),p}(n.Z.getComponent("Button"));function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===f(i)?i:String(i)),n)}var i}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}l.prototype.controlText_="Complete";var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,r,n,i,o=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(i){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return e=u,(r=[{key:"setActivityStatus",value:function(t,e){var r=this;t!==this.activityStatus&&(this.activityStatus=t,this.onToggleStatus=e,this.player.ready((function(){r.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button)}}])&&p(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("activityStatusPlugin",h)},16852:(t,e,r)=>{var n=r(93861);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===i(o)?o:String(o)),n)}var o}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},u.apply(this,arguments)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(y,t);var e,r,f,p,s=(f=y,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(f);if(p){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,t)});function y(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),r=s.call(this,t),void 0===e.startTime)throw Error("Invalid clip start");if(void 0===e.endTime)throw Error("Invalid clip end");if(e.startTime>e.endTime)throw Error("Clip start cannot be greater than clip end");return r._clipStart=parseFloat(e.startTime.toPrecision(4)),r._clipEnd=parseFloat(e.endTime.toPrecision(4)),r.playerEndedFn=r.player.ended.bind(t),r.playerDurationFn=r.player.duration.bind(t),r.playerCurrentTimeFn=r.player.currentTime.bind(t),r.playerbufferedFn=r.player.buffered.bind(t),r.player.ended=r.ended.bind(a(r)),r.player.duration=r.duration.bind(a(r)),r.player.currentTime=r.currentTime.bind(a(r)),r.player.buffered=r.buffered.bind(a(r)),r.initialize(),r.player.ready((function(){r.player.trigger("durationchange")})),r}return e=y,r=[{key:"clipStart",get:function(){var t=this.playerDurationFn();return this._clipStart>t?t:this._clipStart}},{key:"clipEnd",get:function(){var t=this.playerDurationFn();return this._clipEnd>t?t:this._clipEnd}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange"),u(l(y.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay)}},{key:"onPlay",value:function(){this._isEnded&&this.player.currentTime(0)}},{key:"onTimeUpdate",value:function(){var t=this.getCurrentTime(!1);t>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,t<this.clipStart&&this.playerCurrentTimeFn(this.clipStart,!0))}},{key:"ended",value:function(){return this.getCurrentTime(!1)>this.clipEnd}},{key:"duration",value:function(t){return void 0!==t&&this.playerDurationFn(t),this.clipEnd-this.clipStart}},{key:"currentTime",value:function(t){if("number"!=typeof t)return this.getCurrentTime(!0);for(var e=t+this.clipStart,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.playerCurrentTimeFn(e,n)}},{key:"getCurrentTime",value:function(t){var e=this.playerCurrentTimeFn(),r=0;return e>=this.clipStart&&(r=e-this.clipStart),this.player.getCache().currentTime=r,t?r:e}},{key:"buffered",value:function(){for(var t=this.playerbufferedFn(),e=[],r=0;r<t.length;r++)e[r]=[Math.max(0,t.start(r)-this.clipStart),Math.min(Math.max(0,t.end(r)-this.clipStart),this.player.duration())];return n.Z.createTimeRanges(e)}}],r&&o(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("clipPlugin",f)},14735:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(44645),i=r(93861);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function a(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},l.apply(this,arguments)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var h=function(t){f(r,t);var e=s(r);function r(t,n){return u(this,r),e.call(this,t,n)}return a(r,[{key:"dispose",value:function(){var t;null===(t=this.root)||void 0===t||t.unmount(),l(y(r.prototype),"dispose",this).call(this)}}]),r}(i.Z.getComponent("Component")),d={tagName:"div"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(!t)throw new Error("componentCtor is required");var r=function(r){f(c,r);var o=s(c);function c(){return u(this,c),o.apply(this,arguments)}return a(c,[{key:"createEl",value:function(){var r=i.Z.dom.createEl(e.tagName,e.properties,e.attributes),o=(0,n.s)(r);return o.render(t(this.player_,this.options_)),this.root=o,r}}]),c}(h);return r}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3848],{93262:(t,e,r)=>{var n=r(93861),i=r(11576);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(p,t);var e,r,n,l,f=(n=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(l){var r=a(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function p(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(r=f.call(this,t,e)).update(),r}return e=p,r=[{key:"update",value:function(){this.options_.activityStatus===i.T.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.getToggledActivityStatus(),this.update(),this.options_.clickHandler){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.options_.clickHandler.call(this,e)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}},{key:"getToggledActivityStatus",value:function(){return this.options_.activityStatus===i.T.None||this.options_.activityStatus===i.T.Incomplete?i.T.Complete:this.options_.activityStatus===i.T.Complete?i.T.Incomplete:void 0}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),p}(n.Z.getComponent("Button"));function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===f(i)?i:String(i)),n)}var i}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}l.prototype.controlText_="Complete";var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,r,n,i,o=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(i){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return e=u,(r=[{key:"setActivityStatus",value:function(t,e){var r=this;t!==this.activityStatus&&(this.activityStatus=t,this.onToggleStatus=e,this.player.ready((function(){r.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button)}}])&&p(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("activityStatusPlugin",h)},16852:(t,e,r)=>{var n=r(93861);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===i(o)?o:String(o)),n)}var o}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},u.apply(this,arguments)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(y,t);var e,r,f,p,s=(f=y,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(f);if(p){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,t)});function y(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),r=s.call(this,t),void 0===e.startTime)throw Error("Invalid clip start");if(void 0===e.endTime)throw Error("Invalid clip end");if(e.startTime>e.endTime)throw Error("Clip start cannot be greater than clip end");return r._clipStart=parseFloat(e.startTime.toPrecision(4)),r._clipEnd=parseFloat(e.endTime.toPrecision(4)),r.playerEndedFn=r.player.ended.bind(t),r.playerDurationFn=r.player.duration.bind(t),r.playerCurrentTimeFn=r.player.currentTime.bind(t),r.playerbufferedFn=r.player.buffered.bind(t),r.player.ended=r.ended.bind(a(r)),r.player.duration=r.duration.bind(a(r)),r.player.currentTime=r.currentTime.bind(a(r)),r.player.buffered=r.buffered.bind(a(r)),r.initialize(),r.player.ready((function(){r.player.trigger("durationchange")})),r}return e=y,r=[{key:"clipStart",get:function(){var t=this.playerDurationFn();return this._clipStart>t?t:this._clipStart}},{key:"clipEnd",get:function(){var t=this.playerDurationFn();return t<=0?this._clipEnd:this._clipEnd>t?t:this._clipEnd}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange"),u(l(y.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay)}},{key:"onPlay",value:function(){this._isEnded&&this.player.currentTime(0)}},{key:"onTimeUpdate",value:function(){var t=this.getCurrentTime(!1);t>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,t<this.clipStart-5&&this.playerCurrentTimeFn(this.clipStart,!0))}},{key:"ended",value:function(){return this.getCurrentTime(!1)>this.clipEnd}},{key:"duration",value:function(t){return void 0!==t&&this.playerDurationFn(t),this.clipEnd-this.clipStart}},{key:"currentTime",value:function(t){if("number"!=typeof t)return this.getCurrentTime(!0);for(var e=t+this.clipStart,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.playerCurrentTimeFn(e,n)}},{key:"getCurrentTime",value:function(t){var e=this.playerCurrentTimeFn(),r=0;return e>=this.clipStart&&(r=e-this.clipStart),this.player.getCache().currentTime=r,t?r:e}},{key:"buffered",value:function(){for(var t=this.playerbufferedFn(),e=[],r=0;r<t.length;r++)e[r]=[Math.max(0,t.start(r)-this.clipStart),Math.min(Math.max(0,t.end(r)-this.clipStart),this.player.duration())];return n.Z.createTimeRanges(e)}}],r&&o(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("clipPlugin",f)},14735:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(44645),i=r(93861);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function a(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},l.apply(this,arguments)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var h=function(t){f(r,t);var e=s(r);function r(t,n){return u(this,r),e.call(this,t,n)}return a(r,[{key:"dispose",value:function(){var t=this;setImmediate((function(){var e;null===(e=t.root)||void 0===e||e.unmount()})),l(y(r.prototype),"dispose",this).call(this)}}]),r}(i.Z.getComponent("Component")),d={tagName:"div"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(!t)throw new Error("componentCtor is required");var r=function(r){f(c,r);var o=s(c);function c(){return u(this,c),o.apply(this,arguments)}return a(c,[{key:"createEl",value:function(){var r=i.Z.dom.createEl(e.tagName,e.properties,e.attributes),o=(0,n.s)(r);return o.render(t(this.player_,this.options_)),this.root=o,r}}]),c}(h);return r}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3849],{92869:(e,t,a)=>{a.d(t,{t:()=>c});var n=a(48088),r=a(95846),c={preventScrollTop:function(){n.Radio.channel(r.G.SHELL).trigger("prevent:scroll:top")}}},75097:(e,t,a)=>{a.d(t,{U:()=>c});var n=a(32735),r=a(95245);function c(e){var t=e.count,a=void 0===t?6:t;return n.createElement("div",{className:"d-flex"},n.createElement("div",{className:"d-flex ps-1"},Array(a).fill(null).map((function(e,t){return n.createElement("div",{key:t,className:"".concat(r.Z.partialButton," partial-loading-background mx-1")})}))))}},49935:(e,t,a)=>{a.d(t,{Oo:()=>m,b2:()=>d});var n=a(32735),r=a(36848),c=a(86764),l=a(3747),o=a(5859),i=a(35223),s=a(83914),u=function(e){var t=e.breadcrumb,a=t.name,c=t.appLink,l=t.active,o=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(l?" active":"")},l?n.createElement("strong",null,a):n.createElement(r.F,{appLink:c},o&&n.createElement(s.x,{svgName:i.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:o?"ms-2":""},a)))},m=function(e){var t=e.breadcrumbs,a=(0,l.a)(c.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(u,{key:t,breadcrumb:e})}))))},d=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,l.a)(c.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},37395:(e,t,a)=>{a.d(t,{t:()=>m});var n=a(32735),r=a(98269),c=a(92869),l=a(49985),o=a(65858),i=a(36848),s=a(83345);function u(e,t){var a;if(!t)return null;var n=null!==(a=e.params)&&void 0!==a?a:{};return{application:e.application,action:e.action,args:e.args,params:Object.assign(Object.assign({},n),{cursor:t})}}function m(e){var t=e.appLink,a=e.cursors,m=e.className,d=e.buttonVariant,p=e.onClick;function g(e){t&&c.t.preventScrollTop(),l.k.logUserAction({page:e},{location:o.LZ.Pagination,entity:o.py.Pagination,actionType:o.Vw.Navigate}),p&&p(a[e])}return t?n.createElement(s.D.Provider,{value:"shared.pagination"},n.createElement("div",{className:m},n.createElement(i.F,{appLink:u(t,a.previous),className:"btn btn-".concat(d," me-1 ").concat(a.previous?"":"disabled"),onClick:function(){return g("previous")}},n.createElement(s.x,{phrase:"previous"})),n.createElement(i.F,{appLink:u(t,a.next),className:"btn btn-".concat(d," ").concat(a.next?"":"disabled"),onClick:function(){return g("next")}},n.createElement(s.x,{phrase:"next"})))):n.createElement(s.D.Provider,{value:"shared.pagination"},n.createElement("div",{className:m},n.createElement(r.Z,{variant:d,className:"me-1 ".concat(a.previous?"":"disabled"),onClick:function(){return g("previous")}},n.createElement(s.x,{phrase:"previous"})),n.createElement(r.Z,{variant:d,className:"btn ".concat(a.next?"":"disabled"),onClick:function(){return g("next")}},n.createElement(s.x,{phrase:"next"}))))}m.defaultProps={className:"py-2",buttonVariant:"secondary"}},16035:(e,t,a)=>{a.d(t,{z:()=>o});var n=a(32735),r=a(36848),c=a(44829),l=a(91807);function o(e){var t,a,o=e.tag,i=e.appLink,s=e.onClick,u=e.disabled,m=e.tagClass,d=void 0===m?"tag":m,p=o.name.toLowerCase(),g=null===(t=o.tagType)||void 0===t?void 0:t.toLowerCase(),b="rounded-pill py-1 px-2 my-1 me-1 ".concat(d," ").concat(function(e){switch(e){case c.Q.Pedagogy:case c.Q.Skill:return"pedagogy-tag text-white";case c.Q.Hidden:return"hidden-tag";case c.Q.Normal:default:return""}}(g)),v=g===c.Q.Normal&&!!(null===(a=e.themeColours)||void 0===a?void 0:a.secondary);v&&(b+=" text-white"),!i&&!s||u||(b+=" cursor-pointer"),u&&(b+=" "+l.Z.disabled),e.onRemove&&(b+=" "+l.Z.badge),i||(b+=" d-inline-block");var f=v?{backgroundColor:e.themeColours.secondary}:{};return i?n.createElement(r.F,{onClick:s,appLink:i,className:b,title:p,style:f},n.createElement("span",{className:"text-truncate text-nowrap"},p)):n.createElement("span",{onClick:s,className:b,title:p,style:f},n.createElement("span",{className:"text-truncate text-nowrap"},p,e.onRemove&&n.createElement("button",{onClick:e.onRemove,className:"".concat(l.Z.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}},81514:(e,t,a)=>{a.d(t,{V:()=>c});var n=a(86764),r=a(3747);function c(){var e=(0,r.a)(n.r.XS),t=(0,r.a)(n.r.SM),a=(0,r.a)(n.r.MD),c=(0,r.a)(n.r.LG),l=(0,r.a)(n.r.XL),o=(0,r.a)(n.r.XXL),i=n.r.LG;return e&&(i=n.r.XS),t&&(i=n.r.SM),a&&(i=n.r.MD),c&&(i=n.r.LG),l&&(i=n.r.XL),o&&(i=n.r.XXL),i}},91286:(e,t,a)=>{a.d(t,{v:()=>l});var n=a(32735),r=a(94644);function c(e){return e.map((function(e){return e.statusCode})).join(":")}function l(e,t,a){var l=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){l.forEach((function(e){(0,r.r)(e.statusCode,t,a)}))}),[c(l),t,a])}},299:(e,t,a)=>{a.d(t,{X:()=>l});var n=a(32735),r=a(69217),c=a(94631),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.idField,l=void 0===a?"id":a,o=t.persistNamespace,i=t.initialState?t.initialState:new Map,s=n.useRef(i),u=(0,r.N)(),m=(0,c.D)(e),d=(0,c.D)(o);function p(){s.current.clear(),u()}function g(e){return"number"==typeof e?e=e.toString():"string"!=typeof e&&(e=e[l].toString()),s.current.get(e)}function b(){return!!(null==e?void 0:e.length)&&e.every(g)}function v(e){e.forEach((function(e){s.current.set(e,!0)})),u()}return n.useEffect((function(){t.initialState||o&&d===o||(null==m?void 0:m.map((function(e){return e[l]})).join())!==(null==e?void 0:e.map((function(e){return e[l]})).join())&&p()}),[m,d,e,t.initialState]),n.useEffect((function(){var e;(null===(e=t.preselectedIds)||void 0===e?void 0:e.length)&&v(t.preselectedIds)}),[]),{onToggleBulk:function(){var t=!b();e.forEach((function(e){t?s.current.set(e[l].toString(),!0):s.current.delete(e[l].toString())})),u()},onToggleItem:function(e){var t=!s.current.get(e.toString());t?s.current.set(e.toString(),t):s.current.delete(e.toString()),u()},getSelected:function(){return Array.from(s.current.keys())},isChecked:g,bulkChecked:b(),deselectAll:function(){(null==e?void 0:e.length)&&(e.forEach((function(e){s.current.delete(e[l].toString())})),u())},hasSomeSelections:function(){return!!(null==e?void 0:e.length)&&!!e.find((function(e){return g(e)}))},setSelected:v,getSelectedCount:function(){return s.current.size},reset:p,getMap:function(){return s.current}}}},94631:(e,t,a)=>{a.d(t,{D:()=>r});var n=a(32735);function r(e){var t=n.useRef();return n.useEffect((function(){t.current=e})),t.current}},58418:(e,t,a)=>{a.r(t),a.d(t,{UserAuditLogView:()=>te});var n=a(32735),r=a(23481),c=a(57900),l=a(20354),o=a(75097),i=a(49935);const s={partialHeading:"rfiJl",partialJobCount:"h8k_u",partialCheckbox:"HkuOS",partialExportButton:"Iul7S",row:"mwigG",checkboxColumn:"Z5jLG",actionColumn:"rLxYh",usersColumn:"QZzab",dateColumn:"Wf_Jp",performedByColumn:"Ubtmj",seeMoreColumn:"XdP6u",heading:"kRMMH",action:"DvDvW",users:"goKpg",date:"ejYGb",performedBy:"NhjyL"};function u(){return n.createElement("div",{className:"d-flex striped-row rounded py-3 ".concat(s.row)},n.createElement("div",{className:"".concat(s.checkboxColumn," d-flex justify-content-center")},n.createElement("div",{className:"partial-loading-background ".concat(s.partialCheckbox," ms-0")})),n.createElement("div",{className:"".concat(s.actionColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.action)})),n.createElement("div",{className:"".concat(s.usersColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.users)})),n.createElement("div",{className:"".concat(s.dateColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.date)})),n.createElement("div",{className:"".concat(s.performedByColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.performedBy)})),n.createElement("div",{className:"".concat(s.seeMoreColumn)}," "))}function m(){return n.createElement("div",{className:"d-flex py-2 mb-1"},n.createElement("div",{className:"".concat(s.checkboxColumn)}," "),n.createElement("div",{className:"".concat(s.actionColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.heading)})),n.createElement("div",{className:"".concat(s.usersColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.heading)})),n.createElement("div",{className:"".concat(s.dateColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.heading)})),n.createElement("div",{className:"".concat(s.performedByColumn)},n.createElement("div",{className:"partial-loading-background ".concat(s.heading)})),n.createElement("div",{className:"".concat(s.seeMoreColumn)}," "))}function d(){return n.createElement(n.Fragment,null,n.createElement("div",{className:"mb-3 mt-n1"},n.createElement(m,null),n.createElement("div",{className:"striped-list no-full-width"},n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null),n.createElement(u,null))))}function p(){return n.createElement(n.Fragment,null,n.createElement("div",{className:"partial-loading-background mb-2 ".concat(s.partialHeading)}),n.createElement("div",{className:"pb-3"},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement(i.b2,null),n.createElement("div",{className:"partial-loading-background ".concat(s.partialJobCount)}))),n.createElement("div",{className:"d-flex align-items-center pb-2"},n.createElement("div",{className:"partial-loading-background ".concat(s.partialCheckbox)}),n.createElement("div",{className:"ms-4 ps-3"},n.createElement(o.U,{count:3})),n.createElement("div",{className:"ms-auto partial-loading-background ".concat(s.partialExportButton)})),n.createElement(d,null))}var g=a(89422),b=a(89965),v=a(37395),f=a(2102),E=a(83345),y=a(76881),h=a(69883),k=a(299),N=a(75795),C=a(65858),w=a(83818),x=a(94605),S="userManager.userAuditLogFilters";function L(e){var t=[x.x$.SortBy([{id:"newest",name:r.T.getPhrase(S,"newest"),default:!0},{id:"oldest",name:r.T.getPhrase(S,"oldest")}]),x.x$.BulkActionType(),x.x$.UserType()];return n.createElement(w.J,{queryParams:e.queryParams,mainFilters:t,appLink:e.appLinks.auditLog,analyticsOptions:{entity:C.py.BatchJob,location:C.LZ.UserAuditLog},hideHeading:!0,hideDivider:!0,constantIndices:[]})}var j=a(69674),T=a(110),A=a(53481),M=a(36848),B=a(89725),I=a(83914),O=a(86794);const P={seeMore:"uymuO"};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var U="userManager.userAuditLogTable",F=r.T.encloseNamespace(U),J={table:"striped-list no-full-width pb-3",header:"fw-semibold pb-1",headerCell:"px-2 py-1",row:"striped-row rounded audit-log-row",cell:"d-flex align-items-center py-3 px-2"};function _(e){var t,a,r,c,l=(t=e.jobs.data,a=e.isChecked,t.map((function(e){var t=T.O.format(e.dateCreated,"DD/MM/YYYY, hh:mmA");return{id:e.id,checked:a(e.id),actionType:A.b.mapJobTypeToName(e.type),userType:A.b.mapDataTypeToUserType(e.dataType),date:t,performedBy:{name:e.submitterName,submittedByClickView:e.submittedByClickView}}})));return n.createElement(j.i,{columns:(r=e.appLinks.bulkActionSummary,c=e.onToggleCheckbox,[{Header:"",id:"checkboxes",accessor:function(e){return{id:e.id,checked:e.checked}},Cell:function(e){return n.createElement("div",{className:"w-100 text-center"},n.createElement(b.X,{id:e.value.id,checked:e.value.checked,onChange:function(){return c(e.value.id)}}))},width:10},{Header:F("action"),accessor:"actionType",id:"actionType",Cell:function(e){var t=e.value;return n.createElement("div",{className:"w-100"},t)},width:20},{Header:F("users"),accessor:"userType",id:"userType",Cell:function(e){var t=e.value;return n.createElement("div",{className:"w-100"},function(){switch(t){case y.Y.Learner:return F("students");case y.Y.Staff:return F("staff");case y.Y.Unknown:default:return F("unknown")}}())},width:10},{Header:F("date"),accessor:"date",id:"date",Cell:function(e){var t=e.value;return n.createElement("div",{className:"w-100"},t)},width:20},{Header:F("performedBy"),accessor:"performedBy",id:"performedBy",Cell:function(e){return n.createElement("div",{className:"w-100 d-flex align-items-center"},e.value.submittedByClickView&&n.createElement(O.b,{className:"me-1",size:I.S.Small},n.createElement(B.F,null)),e.value.name)},width:20},{Header:"",accessor:"id",id:"seeMore",Cell:function(e){var t,a,c=e.value;return n.createElement("div",{className:"w-100 d-flex justify-content-end"},n.createElement(M.F,{className:"info-link text-end me-3 ms-auto ".concat(P.seeMore),appLink:Object.assign(Object.assign({},r),{args:(null===(t=r.args)||void 0===t?void 0:t.length)?[].concat((a=r.args,function(e){if(Array.isArray(e))return R(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(e,t):void 0}}(a)||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.")}()),[c]):[c]})},n.createElement(E.x,{namespace:U,phrase:"seeMore"})))},width:30}]),data:l,theme:J})}var D=a(23232),X="userManager.auditLogEmptyState";function H(e){return n.createElement(D.u,null,n.createElement(D.u.Image,{src:e.imageUrl}),n.createElement(D.u.Heading,null,n.createElement(E.x,{namespace:X,phrase:"heading"})),n.createElement(D.u.Info,null,n.createElement(E.x,{namespace:X,phrase:"info"})))}const Y={bulkCheckbox:"NMw5T"};function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var Z="userManager.auditLog",q=r.T.encloseNamespace(Z);function V(e){var t,a,r,l,o=c.SG.get(g.K.AUDIT_LOG_REFERRER_KEY),s=(r=n.useState(!1),l=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,o=[],i=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(n=c.call(a)).done)&&(o.push(n.value),o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{if(!i&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(r,l)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?G(e,t):void 0}}(r,l)||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.")}()),u=s[0],m=s[1],d=(0,k.X)(e.jobs.data),p=(0,h.Z)();return n.createElement(n.Fragment,null,n.createElement("h1",{className:"h2"},n.createElement(E.x,{namespace:Z,phrase:"heading"})),n.createElement("div",{className:"pb-3"},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement(i.Oo,{breadcrumbs:[{name:q("settingsBreadcrumb"),appLink:e.appLinks.settings},{name:q(o===y.Y.Learner?"studentManager":"staffManager"),appLink:e.appLinks.userManager},{name:q("heading"),active:!0}]}),n.createElement("p",{className:"mb-0 fw-semibold"},n.createElement(E.x,{namespace:Z,phrase:"totalJobs",options:{showing:e.jobs.data.length,smartCount:e.jobs.count}})))),n.createElement("div",{className:"d-flex align-items-center pb-2"},n.createElement(b.X,{className:Y.bulkCheckbox,id:"bulk-audit-log-checkbox",checked:d.bulkChecked,onChange:d.onToggleBulk,indeterminate:d.hasSomeSelections()}),n.createElement("div",{className:"ms-4 ps-3"},n.createElement(L,{queryParams:e.queryParams,appLinks:e.appLinks})),n.createElement(f.m,{variant:"dark",className:"ms-auto",onClick:function(){if(!u){m(!0);var t=d.getSelected();e.onClickExport(t).then((function(){return p.success(q("exportSuccess"))})).catch((function(){return p.error(q("exportError"))})).finally((function(){return m(!1)}))}},disabled:!d.hasSomeSelections()||u,showSpinner:u},n.createElement(E.x,{namespace:Z,phrase:"export"}))),(null===(t=e.jobs.data)||void 0===t?void 0:t.length)?n.createElement(_,{jobs:e.jobs,appLinks:e.appLinks,onToggleCheckbox:d.onToggleItem,isChecked:d.isChecked}):n.createElement(H,{imageUrl:e.emptyStateImageUrl}),!!(null===(a=e.jobs.pagination)||void 0===a?void 0:a.cursors)&&n.createElement(v.t,{className:"p-0 text-end pb-3",cursors:e.jobs.pagination.cursors,appLink:N.O.getCurrentRoute().appLink,buttonVariant:"outline-dark"}))}var z=a(91286),K=a(79612),Q=a(99742),$=a(29613),W=a(18087),ee="userManager.userAuditLogView";function te(e){var t=c.SG.get(g.K.AUDIT_LOG_REFERRER_KEY),a=l.a.useBasicFetch($.q.getJobs(e.queryParams));(0,z.v)(a),(0,K.M)({title:r.T.getPhrase(ee,"pageTitle")});var o=l.a.useGetFetchAsync(),i=(0,W.Y)(t);return a.hasCompleted?n.createElement("div",{className:"px-3"},n.createElement(V,{jobs:a.data,appLinks:i,queryParams:e.queryParams,onClickExport:function(e){return o($.q.sendJobReports(e))},emptyStateImageUrl:Q.W.EmptyStates.Search.RESULTS})):n.createElement("div",{className:"px-3"},n.createElement(p,null))}},29613:(e,t,a)=>{a.d(t,{q:()=>c});var n=a(99940),r=a(97395),c={createJob:function(e,t,a){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:n.k.POST,data:e,success:t,error:a}},getJobs:function(e){var t={},a=[],n=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&("oldest"===e.sort?t.order="ASC":t.order="DESC"),e.bulkActionType&&(a=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=a),e.userType&&(n=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=n),{url:r._.urlBuilder("{gateway}/v1/batch/jobs",t),key:"batch:jobs:".concat(e.cursor,":").concat(e.sort,":").concat(a.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,a){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/progress"),key:"job:".concat(e,":progress"),invalidationKeys:"job:".concat(e,":progress"),success:t,error:a}},getJobResults:function(e,t,a,n,c){var l={status:t};return a&&(l.cursor=a),{url:r._.urlBuilder("{gateway}/v1/batch/jobs/".concat(e,"/results"),l),key:"job:".concat(e,":results:").concat(t,":").concat(a),success:n,error:c}},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)}}}},91807:(e,t,a)=>{a.d(t,{Z:()=>n});const n={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[389],{86509:(e,a,t)=>{t.d(a,{m:()=>E});var n=t(32735),c=t(79014),l=t(81886),i=t(45157),s=t(49985),o=t(36848),r=t(83914),d=t(76177),m=t(35223);const p={dropdownToggle:"UCAnJ"};function u(e){var a="dropdown-item";return e&&(a+=" ".concat(e)),a}function v(e){var a=c.q.isFunction(e.action.label)?e.action.label:function(){return n.createElement(n.Fragment,null,e.action.label)};if(e.action.appLink)return n.createElement(o.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:u(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},a());function t(a){a.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&s.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),c.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&l.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?n.createElement("a",{className:u(e.action.className),onClick:t,href:e.action.href},a()):n.createElement("span",{className:"cursor-pointer ".concat(u(e.action.className)),onClick:t,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&t(e)}},a())}function E(e){if(!e.actions||!e.actions.length)return n.createElement(n.Fragment,null);var a="dropdown";e.className&&(a+=" ".concat(e.className));var t="actions-dropdown-".concat(i.Y.getRandomInt()),c="dropdown-toggle px-0 ".concat(p.dropdownToggle);return e.dropdownToggleClassName&&(c+=" ".concat(e.dropdownToggleClassName)),n.createElement("div",{className:a},n.createElement("button",{className:c,type:"button",id:t,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},n.createElement(r.x,{svgName:m.vn.More,size:e.dropdownToggleSvgSize})),n.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":t},e.actions.map((function(e,a){return e.tooltip?n.createElement(d.u,{key:a,title:e.tooltip,spanHack:!0},n.createElement(v,{action:e})):n.createElement(v,{key:a,action:e})}))))}E.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:r.S.Small}},94644:(e,a,t)=>{t.d(a,{r:()=>d});var n=t(50242),c=t(81886),l=t(67058),i=t(14553),s=t(49267),o=t(49075),r={notFound:l.d,forbidden:{rating:i.q,yearLevel:i.q,region:s.a,privacy:i.q},badRequest:o._};function d(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var l;l="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},r),a);l&&c.Q.Ry.isStatusCodeError(l)&&(l!==n.o.NotFound?l!==n.o.Forbidden?t.badRequest||c.Q.Ry.throw(new i.badRequest):t.forbidden||c.Q.Ry.throw(new i.forbidden.privacy):t.notFound||c.Q.Ry.throw(new i.notFound))}}},91286:(e,a,t)=>{t.d(a,{v:()=>i});var n=t(32735),c=t(94644);function l(e){return e.map((function(e){return e.statusCode})).join(":")}function i(e,a,t){var i=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){i.forEach((function(e){(0,c.r)(e.statusCode,a,t)}))}),[l(i),a,t])}},28339:(e,a,t)=>{t.r(a),t.d(a,{LocalCacheView:()=>T});var n=t(32735),c=t(23481),l=t(20354),i=t(86509),s=t(36848),o=t(49935),r=t(10874),d=t(83914),m=t(83345),p=t(76177),u=t(31949),v=t(91286),E=t(35223),g=t(14070),b=t(97291),N=t(20342),f=t(19577),h=t(17923),w="settings.localCacheInfo";function C(e){var a=e.localCache,t=e.stats,c=e.updates,l=t.storageFree,i=void 0===l?0:l,s=t.storageUsed,o=void 0===s?0:s,r=t.count,d=void 0===r?0:r,p=((+i+ +o)/1024/1024/1024).toFixed(0);return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex justify-content-between mb-2"},n.createElement("div",{className:"font-label"},n.createElement(m.x,{namespace:w,phrase:"name"})),a.deviceName),n.createElement("div",{className:"d-flex justify-content-between mb-2"},n.createElement("div",{className:"font-label"},n.createElement(m.x,{namespace:w,phrase:"cacheSize"})),p," GB"),n.createElement("div",{className:"d-flex justify-content-between mb-2"},n.createElement("div",{className:"font-label"},n.createElement(m.x,{namespace:w,phrase:"totalVideos"})),+d),n.createElement("div",{className:"d-flex justify-content-between mb-2"},n.createElement("div",{className:"font-label"},n.createElement(m.x,{namespace:w,phrase:"currentVersion"})),c.currentBuild.version))}var k="settings.localCache",y=c.T.encloseNamespace(k);function I(e,a){var t=[{name:y("settings"),appLink:{application:b.O.SETTINGS,action:g.e.Settings.HOME}},{name:y("breadcrumb"),appLink:{application:b.O.SETTINGS,action:g.e.Settings.LOCAL_CACHES},active:1===a.length}];return a.length>1&&t.push({name:e,active:!0}),t}function T(e){var a=l.a.useGetFetch(),t=l.a.useBasicFetch(u.N.currentUser()),c=l.a.useBasicFetch(h.q.device(e.deviceId)),w=l.a.useBasicFetch(h.q.devices()),T=l.a.useBasicFetch(h.q.updates(e.deviceId)),S=l.a.useBasicFetch(h.q.stats(e.deviceId)),F=l.a.useBasicFetch(h.q.channels(e.deviceId)),A=l.a.useBasicFetch(h.q.address(e.deviceId)),L=l.a.useBasicFetch(A.data&&h.q.ping(e.deviceId,A.data.httpsAddress));if((0,v.v)([c,w,T,S,F,A]),n.useEffect((function(){var t=window.setInterval((function(){a(h.q.device(e.deviceId)),a(h.q.updates(e.deviceId))}),3e4);return function(){return window.clearInterval(t)}}),[]),!(t.hasCompleted&&c.hasCompleted&&w.hasCompleted&&T.hasCompleted&&S.hasCompleted&&F.hasCompleted&&A.hasCompleted))return n.createElement(n.Fragment,null);var x=y("heading",{name:c.data.deviceName}),O="PONG"===L.data,q="";return O||(q=c.data.status===f._.Inactive?y("couldNotReachOffline"):y("couldNotReachNetwork")),n.createElement("div",{className:"px-3"},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement("div",null,n.createElement("h1",{className:"h2"},x),n.createElement("div",{className:"pb-3"},n.createElement(o.Oo,{breadcrumbs:I(x,w.data)}))),n.createElement("div",null,n.createElement(p.u,{title:q,spanHack:!0,spanHackClassName:"d-inline-block align-middle"},n.createElement(r.h,{svgName:E.vn.NewWindow,className:"btn btn-outline-dark ".concat(O?"":"disabled cursor-default"),href:O&&A.data.httpsAddress,openInNewTab:!0},n.createElement(m.x,{namespace:k,phrase:"adminConsole"}))),n.createElement(i.m,{dropdownToggleClassName:"btn btn-outline-dark ms-2",className:"d-inline-block",actions:[{label:y("rename"),appLink:{application:b.O.SETTINGS,action:g.e.Settings.RENAME_LOCAL_CACHE,args:[e.deviceId]}},{label:y("update"),appLink:{application:b.O.SETTINGS,action:g.e.Settings.UPDATE_LOCAL_CACHE,args:[e.deviceId]},className:T.data.updateAvailable?"":"disabled",disabled:!T.data.updateAvailable,tooltip:T.data.updateAvailable?null:y("uptoDate")},{label:y("delete"),appLink:{application:b.O.SETTINGS,action:g.e.Settings.DELETE_LOCAL_CACHE,args:[e.deviceId]},className:"text-danger"}]}))),T.data.currentBuild.blacklistedPlayback&&n.createElement("div",{className:"row"},n.createElement("div",{className:"col-12 col-6-sm col-4-md"},n.createElement("div",{className:"alert alert-warning"},n.createElement(d.x,{svgName:E.vn.Warning,className:"align-middle me-2 svg-container"}),n.createElement(m.x,{namespace:k,phrase:"blacklistedPlayback"})," ",n.createElement(s.F,{appLink:{application:b.O.SETTINGS,action:g.e.Settings.UPDATE_LOCAL_CACHE,args:[e.deviceId]},className:"info-link"},n.createElement(m.x,{namespace:k,phrase:"pleaseUpdate"}))))),n.createElement("h2",{className:"h3"},n.createElement(m.x,{namespace:k,phrase:"details"})),n.createElement("div",{className:"row mb-3"},n.createElement("div",{className:"col-12 col-sm-6 col-md-4 columns-of-five-lg"},n.createElement(N.W,{localCache:c.data,canManage:!0,minimal:!0})),n.createElement("div",{className:"col-12 col-sm-6 col-md-5"},n.createElement(C,{localCache:c.data,stats:S.data,updates:T.data}))))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3962],{99705:(e,t,a)=>{var n,s;a.d(t,{b:()=>s}),function(e){e.AddToPlaylist="115005679748",e.EditSsoAccounts="8202508040345",e.LibraryEditor="360001974533",e.VideoAccess="360000153947",e.AddFromOnline="360011718234",e.UploadToLibraryEditor="360012069334",e.PBTErrorCodes="360012421153",e.ManuelReview="360020004534",e.LibraryReview="360000163788"}(n||(n={})),function(e){e.Integrations="4407268725529",e.Classrooms="4405362551833",e.MakeInteractive="4405370510873",e.EditSsoAccounts="8202605666073",e.UploadToLibraryEditor="10672936659865",e.AddFromLite="10671345281561",e.ManageSsoYearGroups="12522160412313",e.ContentReview="18525199576601",e.ContentPermissions="14692125209497",e.AccessSettings="22110291468057",e.ContentGuidelines="24133696186009",e.FoxtelFaq="24133519542169",e.ViviIntegration="23826297956377"}(s||(s={}))},83962:(e,t,a)=>{a.r(t),a.d(t,{ContactSchoolAdminView:()=>u});var n=a(32735),s=a(23481),i=a(9111),r=a(83345),o=a(99705),c=a(12778),l=a(99742),m="classrooms.contactSchoolAdmin",d=s.T.encloseNamespace(m),p=l.W.AddStudents.CONTACT_ADMIN;function u(e){var t=c.o.getLiteArticle(o.b.Classrooms);return n.createElement(i.G,{title:d("popupTitle"),closePopup:e.closePopup},n.createElement("div",{className:"text-center p-3"},n.createElement("img",{src:p,className:"img-fluid mb-3"}),n.createElement("h2",{className:"h3"},d("title")),n.createElement("p",{className:"mb-5"},n.createElement(r.x,{namespace:m,phrase:"paragraph"})),n.createElement("a",{className:"btn btn-link info-link",href:t,target:"_blank"},n.createElement(r.x,{namespace:m,phrase:"learnMore"}))))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4032],{89966:(e,t,r)=>{r.d(t,{Y:()=>E});var n=r(32735),a=r(68050),s=r(69111),o=r(83345),c=r(40424),u=r(56050),i=r(81886),l=r(8612),m=r(76881);const d={disabledInfoContainer:"UiZlY",badge:"yX3PJ",pending:"y277c"};var f="userManager.bulkUserActionsCountByStatus";function p(){return n.createElement(l.G,null,n.createElement(o.x,{namespace:f,phrase:"active"}))}function y(){return n.createElement("div",{className:"badge bg-danger ".concat(d.badge)},n.createElement(o.x,{namespace:f,phrase:"deactivated"}))}function b(){return n.createElement("div",{className:"badge bg-secondary ".concat(d.badge," ").concat(d.pending)},n.createElement(o.x,{namespace:f,phrase:"pending"}))}function v(e){switch(e.status){case c.w.Active:return n.createElement(p,null);case c.w.Disabled:return n.createElement(y,null);case c.w.Inactive:return n.createElement(b,null)}i.Q.Ry.throw(new u.H("Object status not mapped"))}function h(e){var t;return n.createElement(n.Fragment,null,n.createElement(v,{status:e.status}),n.createElement("div",null,n.createElement(o.x,{namespace:f,phrase:e.userType===m.Y.Staff?"staffCount":"studentCount",options:{smartCount:null!==(t=e.countsByStatus[e.status])&&void 0!==t?t:0}})))}var g="userManager.bulkUserActionsCountByStatus";function E(e){var t=function(e){var t=e.userType,r=e.changeTo,a=e.countsByStatus,s=[{left:n.createElement(o.x,{namespace:g,phrase:"statuses"}),right:n.createElement(o.x,{namespace:g,phrase:"outcome"})}];if(a[c.w.Active]){var u=r[c.w.Active];s.push({left:n.createElement(h,{userType:t,status:c.w.Active,countsByStatus:a}),right:n.createElement(u,null)})}if(a[c.w.Disabled]){var i=r[c.w.Disabled];s.push({left:n.createElement(h,{userType:t,status:c.w.Disabled,countsByStatus:a}),right:n.createElement(i,null)})}if(a[c.w.Inactive]){var l=r[c.w.Inactive];s.push({left:n.createElement(h,{userType:t,status:c.w.Inactive,countsByStatus:a}),right:n.createElement(l,null)})}return s}(e);return n.createElement("div",{className:"p-2 rounded ".concat(e.disabled?d.disabledInfoContainer:"border")},t.map((function(e,t){return n.createElement(a.Z,{className:"mb-2",key:t},n.createElement(s.Z,{xs:4},e.left),n.createElement(s.Z,{xs:8},e.right))})))}E.Outcomes={Active:p,Deactivated:y,Deleted:function(){return n.createElement("div",{className:"badge bg-dark ".concat(d.badge)},n.createElement(o.x,{namespace:f,phrase:"deleted"}))},NoChange:function(){return n.createElement("div",{className:"text-muted"},n.createElement(o.x,{namespace:f,phrase:"noChange"}))},EmailSent:function(){return n.createElement("div",{className:"text-muted"},n.createElement(o.x,{namespace:f,phrase:"emailSent"}))},NoEmailSentDisabled:function(){return n.createElement("div",{className:"text-muted"},n.createElement(o.x,{namespace:f,phrase:"noEmailSentDisabled"}))},NoEmailSent:function(){return n.createElement("div",{className:"text-muted"},n.createElement(o.x,{namespace:f,phrase:"noEmailSent"}))},Removed:function(){return n.createElement("div",{className:"badge badge-dark ".concat(d.badge)},n.createElement(o.x,{namespace:f,phrase:"removed"}))}}},8612:(e,t,r)=>{r.d(t,{G:()=>a});var n=r(32735);function a(e){return n.createElement("span",{className:"".concat(e.className," rounded-pill px-2 text-nowrap bg-white border border-dark")},e.children)}},84566:(e,t,r)=>{r.d(t,{S:()=>l});var n=r(20354),a=r(2948),s=r(38143),o=r(31949);function c(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(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 u(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}function i(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 l(e){var t,r,i=(t=(0,a.D)(s.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,s,o,c=[],u=!0,i=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){i=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(i)throw a}}return c}}(t,r)||u(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],l=n.a.useBasicFetch(o.N.currentUser());return n.a.useBasicFetch((null==i?void 0:i.userIdMap)&&l.data&&e.getSearchAggregation({userId:l.data.id,customerId:l.data.customerId,userType:e.userType,queryParams:i.params,userIds:c(i.userIdMap.keys()),field:e.field})).data}},85245:(e,t,r)=>{r.r(t),r.d(t,{BulkUserActionsRemoveFromSchoolConfirmationView:()=>j});var n=r(32735),a=r(70680),s=r(81886),o=r(20354),c=r(2948),u=r(3044),i=r(89966),l=r(53481),m=r(83345),d=r(36033),f=r(40424),p=r(76881);function y(e){return y="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},y(e)}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v="userManager.bulkUserActionsRemoveFromSchoolConfirmation";function h(e){var t,r,a;l.b.useSetWizardConfirmationCallback(e.onClickConfirm);var s=(null!==(r=e.countsByStatus.Disabled)&&void 0!==r?r:0)+(null!==(a=e.countsByStatus.Inactive)&&void 0!==a?a:0);return n.createElement(m.D.Provider,{value:v},n.createElement(d.s,null,n.createElement("p",{className:"font-weight-500"},n.createElement(m.x,{namespace:v,phrase:e.userType===p.Y.Learner?"removeStudents":"removeStaff",options:{smartCount:s}})),n.createElement("p",null,n.createElement(m.x,{namespace:v,phrase:"info"})),n.createElement(i.Y,{userType:e.userType,countsByStatus:e.countsByStatus,changeTo:(t={},b(t,f.w.Active,i.Y.Outcomes.NoChange),b(t,f.w.Disabled,i.Y.Outcomes.Removed),b(t,f.w.Inactive,i.Y.Outcomes.Removed),t),disabled:!0})),n.createElement(u.Q,{users:e.users,statuses:[f.w.Inactive,f.w.Disabled],imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:s}))}var g=r(58703),E=r(84566),S=r(38143),w=r(70197),C=r(39151),A=r(31949),T=r(29613),x=r(47288),N=r(88323),I=r(18087);function U(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 j(e){var t,r,u,i=(0,N.h)(e.userType),m=i.users,d=i.count,f=i.isFetching,p=i.hasMore,y=i.fetchNext,b=(r=(0,c.D)(S.g.BULK_USER_ACTIONS),u=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,s,o,c=[],u=!0,i=!1;try{if(s=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){i=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(i)throw a}}return c}}(r,u)||function(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}(r,u)||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],v=o.a.useBasicFetch(A.N.currentUser()),j=o.a.useBasicFetch(C.L.config()),k=(0,E.S)({userType:e.userType,field:w.q.UserProfilesStatus,getSearchAggregation:x.N.getSearchAggregation}),B=(0,a.I0)(),O=(0,I.Y)(e.userType),D=l.b.useCreateJobErrorAlert();function F(t){s.Q.C$.trigger(Object.assign(Object.assign({},O.bulkActionsStatus.polling),{params:{userType:e.userType,jobId:t.id}}))}var M=!!j.data&&!!k;return n.createElement(g.d,{appLinks:O,userType:e.userType,users:m,currentStep:"confirmation",userCount:d,loaded:M},!!j.data&&k&&n.createElement(h,{users:m,imageCdnUrl:null===(t=j.data)||void 0===t?void 0:t.imageCdnUrl,hasMoreUsers:p,isFetchingUsers:f,fetchNextUserPage:y,userType:e.userType,onClickConfirm:function(){if(b){var t=l.b.getCreateJobRequestData(b,v.data.customerId,e.userType);o.a.fetch(B,T.q.createJob(t,F,D))}},countsByStatus:k}))}},68050:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(40841),a=r.n(n),s=r(32735),o=r(46304),c=r(74512);const u=s.forwardRef((({bsPrefix:e,className:t,as:r="div",...n},s)=>{const u=(0,o.vE)(e,"row"),i=(0,o.pi)(),l=(0,o.zG)(),m=`${u}-cols`,d=[];return i.forEach((e=>{const t=n[e];let r;delete n[e],null!=t&&"object"==typeof t?({cols:r}=t):r=t;const a=e!==l?`-${e}`:"";null!=r&&d.push(`${m}${a}-${r}`)})),(0,c.jsx)(r,{ref:s,...n,className:a()(t,u,...d)})}));u.displayName="Row";const i=u}}]);
|