@clickview/lite 0.32.0 → 0.32.2-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-59a16939e8.chunk.css} +3 -3
- package/dist/css/{1291-lite-1c4780743f.chunk.css → 1291-lite-dda75fd0df.chunk.css} +1 -1
- package/dist/css/1297-lite-02acf4690b.chunk.css +2 -0
- package/dist/css/{1366-lite-0239ab3e7e.chunk.css → 1366-lite-b72d921f1e.chunk.css} +4 -4
- package/dist/css/{1475-lite-1b41a0628c.chunk.css → 1475-lite-8717f8b322.chunk.css} +3 -3
- package/dist/css/{1781-lite-d3216fb72f.chunk.css → 1781-lite-9fedb2ab96.chunk.css} +3 -3
- package/dist/css/{2066-lite-4e16a83a36.chunk.css → 2066-lite-c233c76cc4.chunk.css} +5 -5
- 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/{2477-lite-416e958638.chunk.css → 2477-lite-fa6aaa98c3.chunk.css} +3 -3
- package/dist/css/{4874-lite-15aa778737.chunk.css → 2729-lite-fa4fb49101.chunk.css} +3 -3
- package/dist/css/{275-lite-71b01cc990.chunk.css → 275-lite-fd3ed98b81.chunk.css} +3 -3
- package/dist/css/{3091-lite-e0fb499d6e.chunk.css → 3091-lite-cddbfa53f1.chunk.css} +3 -3
- package/dist/css/{3154-lite-11158838c0.chunk.css → 3154-lite-e39ddb97b4.chunk.css} +1 -1
- 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-0ec2ffa5f6.chunk.css} +3 -3
- package/dist/css/{3849-lite-2eb46f0334.chunk.css → 3849-lite-fa93aa92bf.chunk.css} +1 -1
- package/dist/css/{4052-lite-6bf4f7a77b.chunk.css → 4052-lite-f566a65783.chunk.css} +3 -3
- package/dist/css/{4145-lite-a27eec9ae8.chunk.css → 4145-lite-cf3e6372a1.chunk.css} +3 -3
- package/dist/css/{3322-lite-2cb4fd8dc1.chunk.css → 420-lite-898652e17b.chunk.css} +0 -1
- package/dist/css/{4229-lite-6aa69cd401.chunk.css → 4229-lite-4b9630590b.chunk.css} +3 -3
- package/dist/css/{4290-lite-7bd376fdab.chunk.css → 4290-lite-cbc4dea7ce.chunk.css} +1 -1
- package/dist/css/{8556-lite-cdf9814e9a.chunk.css → 4380-lite-2dcab9195a.chunk.css} +3 -3
- package/dist/css/{162-lite-32e60d7e18.chunk.css → 4441-lite-e46ebee33a.chunk.css} +3 -2
- package/dist/css/{4484-lite-204fa1d3ba.chunk.css → 4484-lite-6efa9a8c08.chunk.css} +1 -1
- 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/{4617-lite-5e8387006a.chunk.css → 4617-lite-ed371d2824.chunk.css} +2 -2
- package/dist/css/482-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{2729-lite-15aa778737.chunk.css → 4874-lite-fa4fb49101.chunk.css} +3 -3
- 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-745a332db8.chunk.css} +3 -3
- package/dist/css/{5268-lite-bd40e9c904.chunk.css → 5268-lite-5189588330.chunk.css} +1 -1
- package/dist/css/{8035-lite-e6ec84fd3f.chunk.css → 5590-lite-59a16939e8.chunk.css} +3 -3
- 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-25b908a436.chunk.css} +4 -4
- package/dist/css/{6254-lite-d969bbf4ac.chunk.css → 6254-lite-c8ec7cb964.chunk.css} +3 -3
- package/dist/css/6285-lite-d714304d0d.chunk.css +2 -0
- package/dist/css/{6330-lite-bd40e9c904.chunk.css → 6330-lite-5189588330.chunk.css} +1 -1
- package/dist/css/6465-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/6689-lite-ed8e07dd89.chunk.css +4 -0
- package/dist/css/6817-lite-b97d0f723f.chunk.css +3 -0
- package/dist/css/{6822-lite-927bfd9703.chunk.css → 6822-lite-6b24fbd8d1.chunk.css} +3 -3
- package/dist/css/{6932-lite-944c5933dc.chunk.css → 6932-lite-e9285e56d1.chunk.css} +3 -3
- 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/{7286-lite-da823e464b.chunk.css → 7286-lite-17dccc0a4e.chunk.css} +3 -3
- 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-baf2a693fc.chunk.css} +3 -3
- package/dist/css/{7952-lite-0a9d045149.chunk.css → 7952-lite-0033f51a63.chunk.css} +3 -3
- package/dist/css/8025-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{5590-lite-e6ec84fd3f.chunk.css → 8035-lite-59a16939e8.chunk.css} +3 -3
- package/dist/css/8292-lite-ff35c99cb7.chunk.css +2 -0
- package/dist/css/8383-lite-5d3ec54337.chunk.css +1 -0
- package/dist/css/{8500-lite-6cb624c329.chunk.css → 8500-lite-1bd4c4493f.chunk.css} +3 -3
- package/dist/css/{4380-lite-cdf9814e9a.chunk.css → 8556-lite-2dcab9195a.chunk.css} +3 -3
- 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-78d2fff247.chunk.css} +4 -4
- package/dist/css/{9744-lite-e0fb499d6e.chunk.css → 9744-lite-cddbfa53f1.chunk.css} +3 -3
- 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/1090-64bb075a80-lite.chunk.js +1 -0
- package/dist/scripts/1106-654e5682c2-lite.chunk.js +1 -0
- package/dist/scripts/1200-58e57f84cb-lite.chunk.js +2 -0
- package/dist/scripts/1285-b6096855c6-lite.chunk.js +1 -0
- package/dist/scripts/1291-41f6192695-lite.chunk.js +1 -0
- package/dist/scripts/1297-9702d968f9-lite.chunk.js +1 -0
- package/dist/scripts/1354-33c5905ae6-lite.chunk.js +2 -0
- package/dist/scripts/1366-54f9e51541-lite.chunk.js +2 -0
- package/dist/scripts/147-3653288d39-lite.chunk.js +1 -0
- package/dist/scripts/1475-c84cf7b8c7-lite.chunk.js +1 -0
- package/dist/scripts/1517-a74b5301e3-lite.chunk.js +1 -0
- package/dist/scripts/1518-c4881607ce-lite.chunk.js +1 -0
- package/dist/scripts/1526-c5e0d05ea8-lite.chunk.js +1 -0
- package/dist/scripts/1536-e717bc4459-lite.chunk.js +1 -0
- package/dist/scripts/156-8fc16cf166-lite.chunk.js +1 -0
- package/dist/scripts/1592-aa2bc45d63-lite.chunk.js +2 -0
- package/dist/scripts/1628-ab186495a7-lite.chunk.js +1 -0
- package/dist/scripts/1726-3bd6a64ab2-lite.chunk.js +1 -0
- package/dist/scripts/1781-40d8e94385-lite.chunk.js +1 -0
- package/dist/scripts/1794-85ca34a982-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/1837-e6891957ae-lite.chunk.js +1 -0
- package/dist/scripts/1863-ab4c20343f-lite.chunk.js +1 -0
- package/dist/scripts/1891-bb63655d69-lite.chunk.js +1 -0
- package/dist/scripts/1913-5cfa9feb85-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/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-7a68f7a05a-lite.chunk.js +1 -0
- package/dist/scripts/2229-c122a30392-lite.chunk.js +1 -0
- package/dist/scripts/2235-3c66c1112d-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-c6ab7c2d89-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/2477-f33ce337bd-lite.chunk.js +1 -0
- package/dist/scripts/248-440dd025ba-lite.chunk.js +1 -0
- package/dist/scripts/2561-a7ccb8c0fa-lite.chunk.js +1 -0
- package/dist/scripts/2564-6b80e8b85e-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/2729-feeb22f8a9-lite.chunk.js +1 -0
- package/dist/scripts/275-5654ff7e21-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/{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-a2f1657bfd-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/3216-a2491c80ee-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/3468-ce102222d3-lite.chunk.js +1 -0
- package/dist/scripts/3514-e66a28d93b-lite.chunk.js +1 -0
- package/dist/scripts/3533-43f438e00f-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-e7e0e0e075-lite.chunk.js +1 -0
- package/dist/scripts/3667-f09bdd4daf-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/383-3cc401de29-lite.chunk.js +1 -0
- package/dist/scripts/3849-5c46f9be7f-lite.chunk.js +1 -0
- package/dist/scripts/389-fc8f4fcbf4-lite.chunk.js +1 -0
- package/dist/scripts/3962-fde062a12f-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-806167788f-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/4229-bd0e714844-lite.chunk.js +1 -0
- package/dist/scripts/4290-5363d77506-lite.chunk.js +1 -0
- package/dist/scripts/4326-af6113a1df-lite.chunk.js +1 -0
- package/dist/scripts/4343-e7db18791c-lite.chunk.js +1 -0
- package/dist/scripts/4380-719146155f-lite.chunk.js +1 -0
- package/dist/scripts/4393-055fbb85df-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-fc7c6e1737-lite.chunk.js +1 -0
- package/dist/scripts/4441-f884e52e1e-lite.chunk.js +2 -0
- package/dist/scripts/4484-35c03736cf-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/4617-27f6a74dae-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/4763-ff22edcdeb-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-99a05f851d-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/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/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/5229-993dc3bcfe-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-9c92a57c97-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/5395-56e911bc8d-lite.chunk.js +1 -0
- package/dist/scripts/{5509-35f1b780d4-lite.chunk.js → 5509-9e9e7bc4a9-lite.chunk.js} +1 -1
- package/dist/scripts/5590-f5dbe096c3-lite.chunk.js +1 -0
- package/dist/scripts/5595-99e11127bb-lite.chunk.js +1 -0
- package/dist/scripts/5622-7b29606856-lite.chunk.js +2 -0
- package/dist/scripts/5756-e811b06b73-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/5914-3162035c4e-lite.chunk.js +1 -0
- package/dist/scripts/5974-be0df3bfda-lite.chunk.js +1 -0
- package/dist/scripts/5983-212a87f1a4-lite.chunk.js +1 -0
- package/dist/scripts/{5986-38e236e499-lite.chunk.js → 5986-1fb9fdf8c4-lite.chunk.js} +1 -1
- package/dist/scripts/6057-dd865f2846-lite.chunk.js +1 -0
- package/dist/scripts/6117-6277d1c146-lite.chunk.js +1 -0
- package/dist/scripts/615-4bb47acfc4-lite.chunk.js +1 -0
- package/dist/scripts/6154-107ea02e45-lite.chunk.js +1 -0
- package/dist/scripts/6158-a3d99dd18b-lite.chunk.js +1 -0
- package/dist/scripts/6159-2111108b27-lite.chunk.js +1 -0
- package/dist/scripts/6254-24a065bf5a-lite.chunk.js +1 -0
- package/dist/scripts/6263-2b27f6bd66-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/6302-6690979e80-lite.chunk.js +1 -0
- package/dist/scripts/6330-1a2cb669fa-lite.chunk.js +1 -0
- package/dist/scripts/6368-7243c0ebf7-lite.chunk.js +1 -0
- package/dist/scripts/6370-a15bddb981-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/6572-8800413390-lite.chunk.js +1 -0
- package/dist/scripts/6604-ec05f7b6e1-lite.chunk.js +1 -0
- package/dist/scripts/6689-a1197e1eba-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/6823-1d03a76615-lite.chunk.js +2 -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/6932-09d613876a-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-f48ba40a9f-lite.chunk.js +2 -0
- package/dist/scripts/7056-2984086edc-lite.chunk.js +1 -0
- package/dist/scripts/7108-0f6adbabf0-lite.chunk.js +1 -0
- package/dist/scripts/7112-48d8ecb033-lite.chunk.js +2 -0
- package/dist/scripts/7115-5f0b34a257-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-20a2fd68a1-lite.chunk.js +1 -0
- package/dist/scripts/7147-2a1f86d472-lite.chunk.js +1 -0
- package/dist/scripts/7172-f8288f9f70-lite.chunk.js +1 -0
- package/dist/scripts/7205-3b007c4245-lite.chunk.js +1 -0
- package/dist/scripts/7221-7ad419e079-lite.chunk.js +2 -0
- package/dist/scripts/7286-cb1923e134-lite.chunk.js +1 -0
- package/dist/scripts/7293-e20274d243-lite.chunk.js +1 -0
- package/dist/scripts/7338-a11845d2a6-lite.chunk.js +1 -0
- package/dist/scripts/7341-a8f35b3206-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/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/7555-2e6a24e3d9-lite.chunk.js +1 -0
- package/dist/scripts/{7706-d9f05df3bd-lite.chunk.js → 7706-1f9e23a067-lite.chunk.js} +1 -1
- package/dist/scripts/7708-9f058a3dcc-lite.chunk.js +1 -0
- package/dist/scripts/7758-413935f8bf-lite.chunk.js +1 -0
- package/dist/scripts/7767-3a6db3d0ec-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/7950-3a7d658e10-lite.chunk.js +2 -0
- package/dist/scripts/7952-6052b549c4-lite.chunk.js +1 -0
- package/dist/scripts/8025-ebb2a6e951-lite.chunk.js +1 -0
- package/dist/scripts/8035-6096b3ef41-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/823-cb0629ec55-lite.chunk.js +1 -0
- package/dist/scripts/8252-46c8055bc7-lite.chunk.js +1 -0
- package/dist/scripts/8292-1ece717f3c-lite.chunk.js +1 -0
- package/dist/scripts/8323-e2866ec170-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-38ad819195-lite.chunk.js +1 -0
- package/dist/scripts/8466-8735f1b53b-lite.chunk.js +1 -0
- package/dist/scripts/8500-bd98031e24-lite.chunk.js +1 -0
- package/dist/scripts/8516-5db4b9106e-lite.chunk.js +1 -0
- package/dist/scripts/8556-f6d1f3fe46-lite.chunk.js +1 -0
- package/dist/scripts/8564-9474bdbd5f-lite.chunk.js +1 -0
- package/dist/scripts/8621-4f47ca7ad9-lite.chunk.js +1 -0
- package/dist/scripts/8627-81178ead44-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/8729-54495619d5-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-788a4cae05-lite.chunk.js +1 -0
- package/dist/scripts/8884-c5bb270791-lite.chunk.js +1 -0
- package/dist/scripts/8905-3f45385e7e-lite.chunk.js +1 -0
- package/dist/scripts/8935-cff044d132-lite.chunk.js +2 -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-07dd0022ce-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-8965899edc-lite.chunk.js +1 -0
- package/dist/scripts/9133-1c2f07cd11-lite.chunk.js +1 -0
- package/dist/scripts/9138-d795656642-lite.chunk.js +1 -0
- package/dist/scripts/9151-049f79d533-lite.chunk.js +1 -0
- package/dist/scripts/9194-bf416d9ff4-lite.chunk.js +2 -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-a3a070e0ef-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-1034ec01a4-lite.chunk.js +1 -0
- package/dist/scripts/9798-637a3e8a65-lite.chunk.js +1 -0
- package/dist/scripts/9880-c7ad9079c0-lite.chunk.js +1 -0
- package/dist/scripts/9894-d8638c4df9-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-005f181609.min.js +2 -0
- package/dist/scripts/bundle-005f181609.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 +3 -3
- package/dist/css/1655-lite-e7bdc675ac.chunk.css +0 -2
- 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-f2333e9855-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-448f9bae26-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-7569985bf0-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-e84731e75e-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-8f9af95784-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-356e60f7ed-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-43fc5f8fde-lite.chunk.js +0 -1
- package/dist/scripts/2469-26134f4110-lite.chunk.js +0 -1
- package/dist/scripts/2477-1ca7a26273-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-d32bdaf3c4-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-ec0e5408ed-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-81d5b0f3da-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-f2dff30617-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-50b30979bb-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-543181732e-lite.chunk.js +0 -1
- package/dist/scripts/4632-8a515a2adf-lite.chunk.js +0 -1
- 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-cc94d0b7ce-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-6e758d823a-lite.chunk.js +0 -2
- package/dist/scripts/7056-e916d8c1d5-lite.chunk.js +0 -1
- package/dist/scripts/7108-7e3854252d-lite.chunk.js +0 -1
- package/dist/scripts/7112-09720be50b-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-4a82e3281f-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-ce00b83316-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-ea152b10f8-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-1603bf2a31-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-8b26396391-lite.chunk.js +0 -1
- package/dist/scripts/9194-039e6b2075-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/9701-70a5dbb349-lite.chunk.js +0 -2
- 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-af88380c2c.min.js +0 -2
- package/dist/scripts/bundle-af88380c2c.min.js.LICENSE.txt +0 -38
- package/typings/libs/backbone.validation.d.ts +0 -100
- /package/dist/css/{1977-lite-22ea72f8e3.chunk.css → 7422-lite-22ea72f8e3.chunk.css} +0 -0
- /package/dist/scripts/{1200-f30709bde3-lite.chunk.js.LICENSE.txt → 1200-58e57f84cb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1354-adb83a2eaa-lite.chunk.js.LICENSE.txt → 1354-33c5905ae6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1366-f2333e9855-lite.chunk.js.LICENSE.txt → 1366-54f9e51541-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1592-e5a0fbaee2-lite.chunk.js.LICENSE.txt → 1592-aa2bc45d63-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{162-7569985bf0-lite.chunk.js.LICENSE.txt → 2066-f1ee632b62-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2066-2448ffab36-lite.chunk.js.LICENSE.txt → 2118-a281da36fd-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2118-26ae54c3db-lite.chunk.js.LICENSE.txt → 3602-c5f7a74c8b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3602-7fb236937c-lite.chunk.js.LICENSE.txt → 3645-86f0ed022f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3645-ccb3557f33-lite.chunk.js.LICENSE.txt → 3667-f09bdd4daf-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-6261d6a482-lite.chunk.js.LICENSE.txt → 4441-f884e52e1e-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 → 5268-029905c5f0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6896-79fa541f46-lite.chunk.js.LICENSE.txt → 5622-7b29606856-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6823-22b0850abc-lite.chunk.js.LICENSE.txt → 6823-1d03a76615-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7017-76adb0abdc-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/{7030-e6f622a775-lite.chunk.js.LICENSE.txt → 7017-35c73244a6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7052-6e758d823a-lite.chunk.js.LICENSE.txt → 7030-041896252c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7112-09720be50b-lite.chunk.js.LICENSE.txt → 7052-f48ba40a9f-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7221-7c2e4bd2cf-lite.chunk.js.LICENSE.txt → 7112-48d8ecb033-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7515-1fa9993684-lite.chunk.js.LICENSE.txt → 7221-7ad419e079-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/{7950-4a82e3281f-lite.chunk.js.LICENSE.txt → 7950-3a7d658e10-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8323-249c45a20e-lite.chunk.js.LICENSE.txt → 8323-e2866ec170-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-039e6b2075-lite.chunk.js.LICENSE.txt → 8935-cff044d132-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9428-5917cd7b0a-lite.chunk.js.LICENSE.txt → 9194-bf416d9ff4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9478-e817a33a69-lite.chunk.js.LICENSE.txt → 9428-f581bbe764-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9484-6e93df7581-lite.chunk.js.LICENSE.txt → 9478-a3a070e0ef-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9701-70a5dbb349-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-d8638c4df9-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 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9138],{84566:(e,r,t)=>{t.d(r,{S:()=>l});var a=t(20354),s=t(2948),n=t(38143),o=t(31949);function u(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)||c(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 c(e,r){if(e){if("string"==typeof e)return i(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function l(e){var r,t,i=(r=(0,s.D)(n.g.BULK_USER_ACTIONS),t=1,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,s,n,o,u=[],c=!0,i=!1;try{if(n=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(a=n.call(t)).done)&&(u.push(a.value),u.length!==r);c=!0);}catch(e){i=!0,s=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(i)throw s}}return u}}(r,t)||c(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],l=a.a.useBasicFetch(o.N.currentUser());return a.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:u(i.userIdMap.keys()),field:e.field})).data}},70197:(e,r,t)=>{var a;t.d(r,{q:()=>a}),function(e){e.YearGroupValues="yearGroups.value",e.UserProfilesStatus="userProfiles.status"}(a||(a={}))},47288:(e,r,t)=>{t.d(r,{N:()=>p});var a,s,n=t(99940),o=t(97395),u=t(1048),c=t(39739),i=t(70197);!function(e){e.yearGroups="yearGroups",e.userProfiles="userProfiles"}(a||(a={})),function(e){e.TermsGroupBy="terms-group-by",e.NestedTermsGroupBy="nested-terms-group-by"}(s||(s={}));var l,y=t(54610);function d(e){return d="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},d(e)}function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function m(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!==d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}!function(e){e.Content="content",e.OnlineContent="online_content",e.User="user",e.Customer="customer",e.Tag="tag",e.Organisation="organisation",e.Channel="channel"}(l||(l={}));var p={getUsers:function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,n=arguments.length>5?arguments[5]:void 0,u={query:c.P.buildGetUsersQuery(r,t)};a&&(u.cursor=a);var i="school:users:".concat(e,":").concat(r);return i+=Object.keys(u).map((function(e){return u[e]})).join(":"),{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users"),u),key:i,success:s,error:n}},getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},bulkRemoveUsers:function(e,r,t,a){var s,o=["school:users","search:users","search:aggregation"];return(null===(s=e.userIds)||void 0===s?void 0:s.length)&&e.userIds.forEach((function(e){return o.push("school:users:".concat(e))})),{url:"{gateway}/v1/users/delete",key:"remove:school:users",invalidationKeys:o,type:n.k.POST,data:e,success:r,error:t,always:a}},createUsers:function(e){var r=e.users,t=e.success,a=e.error,s=e.always;return{url:"{gateway}/v1/users",key:"create:users",data:r,type:n.k.POST,invalidationKeys:["school:users","user:count","search:users"],success:t,error:a,always:s}},updateUser:function(e,r,t,a,s){var o=["school:users:".concat(e.userId)];return r.toString()===e.userId.toString()&&o.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:n.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:t,error:a,always:s}},searchUsers:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,i=c.P.buildSearchDataAndKey({customerId:e,userId:r,userType:t,queryParams:a,cursor:s}),l=i.data,y=i.key;return{url:"{gateway}/v3/search",data:l,type:n.k.POST,key:y,success:o,error:u}},getSearchUserIds:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,i=c.P.buildSearchData({customerId:e,userId:r,userType:t,queryParams:a}),l="search:user:ids";return{url:"{gateway}/v3/search/ids",key:l+=u.t.flattenObjectToString(i),data:i,type:n.k.POST,normalize:!1,success:s,error:o}},getSearchAggregation:function(e){var r=e.userId,t=e.customerId,o=e.userType,u=e.queryParams,y=void 0===u?{}:u,d=e.userIds,f=e.field,p=f===i.q.UserProfilesStatus?a.userProfiles:a.yearGroups,v=c.P.buildSearchFiltersObject(t,o,y),g="search:aggregation:".concat(r,":").concat(t,":").concat(f,":");g+=Object.keys(v).sort().map((function(e){return v[e]})).join(":"),g+=":"+d.join(":");var h={indices:["user"],searchType:l.User,isLearner:!1,type:s.NestedTermsGroupBy,userId:r.toString(),customerId:t.toString(),data:{field:f,nestedPath:p,termsFilters:m({},"".concat(p,".customerId"),[t])},idFilters:d,filters:v};return{url:"{gateway}/v1/search/aggregation",type:n.k.POST,key:g,data:h,normalize:!1,formatData:function(e){var r=e.termCount;return f!==i.q.UserProfilesStatus?r:Object.keys(r).reduce((function(e,t){return e[t.charAt(0).toUpperCase()+t.slice(1)]=r[t],e}),{})}}},bulkToggleActivation:function(e,r,t,a,s){return{url:"{gateway}/v1/users/status",key:"update:users:status",type:n.k.PUT,data:e,success:t,error:a,always:s,invalidationKeys:["school:users:".concat(e.customerId,":").concat(r)].concat((o=e.users.map((function(e){return"school:users:".concat(e.userId)})),function(e){if(Array.isArray(e))return f(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,r){if(e){if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,r):void 0}}(o)||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.")}()),["search:aggregation"])};var o},bulkValidate:function(e,r,t,a,s){return{url:"{gateway}/v1/users/validate",type:n.k.POST,key:"validate:users",data:e,success:t,error:a,always:s,normalize:!1,formatData:function(e){return e.failedResults.map((function(e){return{errorCodes:e.errorCodes,users:[e.user]}}))}}},bulkCheckEmail:function(e,r,t,a,s){return{url:"{gateway}/v1/customers/".concat(r,"/users/email-statuses"),type:n.k.POST,key:"validate:".concat(r,":email:").concat(e.userEmails.map((function(e){return e.email})).join(",")),data:e,success:t,error:a,always:s}},yearGroups:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/year-groups?query={orderby:value}"),key:"yeargroups:".concat(e)}},updateAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:n.k.PUT,invalidationKeys:["currentuser","school:users:".concat(r)],data:{fileId:e,fileIdType:y.z9.ImageAPIv2},success:t,error:a}},deleteAvatar:function(e,r,t,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:n.k.DELETE,updateState:{keys:["school:users:".concat(r),"currentuser"],updateData:function(e){var t,a=e["school:users:".concat(r)],s=e.currentuser;return a.avatar=null,s.avatar=null,m(t={},"school:users:".concat(r),a),m(t,"currentuser",s),t}},success:t,error:a}},changeEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:n.k.PUT,data:{email:e},success:r,error:t,always:a}},changePassword:function(e,r,t,a){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:n.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:r,error:t,always:a}},changeUserPassword:function(e,r,t,a,s,o,u){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(r,":").concat(e),type:n.k.PUT,data:{userId:e,newPassword:t,changeOnNextLogin:a},success:s,error:o,always:u}},resendActivationEmail:function(e,r,t){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:n.k.POST,data:{userId:e},success:r,error:t}},sendPasswordResetEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:n.k.POST,data:{userIds:[e],customerId:r},success:t,error:a}},resendVerificationEmail:function(e,r,t,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:n.k.POST,data:{userId:e,customerId:r},success:t,error:a}},exportList:function(e,r,t,a){return{url:o._.urlBuilder("{gateway}/v1/customers/".concat(e,"/users/report"),{userType:r}),key:"export:users:".concat(r),type:n.k.GET,formatData:function(e){return"data:text/csv;charset=utf-8,".concat(e)},success:t,error:a,invalidationKeys:["export:users:".concat(r)],normalize:!1}},userCount:function(e,r,t){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=c.P.buildSearchData({customerId:e,userId:r,userType:t,queryParams:a}),o="search:user:count";return o+=u.t.flattenObjectToString(s),{url:"{gateway}/v3/search/count",data:s,type:n.k.POST,key:o,normalize:!1}},authenticationMethods:function(e){return{url:o._.urlBuilder("{gateway}/v1/users/authentication-methods",{id:e}),key:"login:methods:".concat(e.sort().join(":")),normalizeOptions:{idAttribute:"userId"}}},getIdentityProviders:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/identity-providers"),key:"identity:providers:".concat(e),normalize:!1}},getSsoMappings:function(e){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e),normalize:!1}},updateSsoMappings:function(e,r){return{url:"{gateway}/v1/customers/".concat(e,"/sso-year-group-mappings"),key:"sso:year:group:mappings:".concat(e,":update"),type:n.k.POST,invalidationKeys:"sso:year:group:mappings:".concat(e),data:r}},joinRequests:function(){return{url:"{gateway}/v1/customers/join-requests?status=pending",key:"join:requests",normalize:!1}},resolveJoinRequest:function(e,r){return{url:"{gateway}/v1/customers/join-requests/".concat(e),key:"resolve:join:request",type:n.k.PUT,data:{status:r},normalize:!1,invalidationKeys:["join:requests"]}},inviteUserToCustomer:function(e,r,t,a){return{url:"{gateway}/v1/customers/".concat(e,"/users/invitation"),key:"invite:user:customer:".concat(e),type:n.k.PUT,data:r,invalidationKeys:["school:users","search:users"],success:t,error:a}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9151],{33472:(t,e,r)=>{r.r(e),r.d(e,{StartSignUpView:()=>w});var n=r(32735),i=r(47345),a=r(20354),o=r(49985),c=r(65858),l=r(12594),u=r(83529),s=r(84789),p=r(17331),f=r(28366),y=r(39151),d=r(48456),m=r(17762),v=r(63643),g=r(2948),h=r(86702);function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w(t){var e,r,A,w=(e=(r=(0,g.D)(h.y.OPEN_IN_APP_DATA),A=1,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,a,o,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return c}}(r,A)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(r,A)||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],{trialAppLinkString:function(){if(e&&["videos","clips","series","playlists","topics","interactives"].includes(e.app)){var t=e.id;switch(e.app){case"videos":return"video:".concat(t);case"playlists":return"playlist:".concat(t);case"series":return"series:".concat(t);case"topics":return"topic:".concat(t);case"interactives":return"interactive:".concat(t);case"clips":return"clip:".concat(t)}}}()}).trialAppLinkString,k=S(n.useState("lg"),2),j=k[0],U=k[1],C=S(n.useState(),2),L=C[0],O=C[1],P=a.a.useBasicFetch(y.L.config()),I=a.a.useBasicFetch(y.L.version()),E=(0,m.M)(),_=(0,v.c)();function B(){t.closePopup();var e=p.i.filterBlacklistedKeys(L);o.k.logUserAction(e||{},{actionType:c.Vw.Click,location:c.LZ.SignUpPopup,entity:c.py.SignUp,descriptor:c.Yu.ClosePopup,workflowPhase:c.eu.Discard})}return P.hasCompleted&&E&&_&&I.hasCompleted?n.createElement(i.Z,{show:!0,onHide:B,size:j},n.createElement(i.Z.Body,{className:"mx-auto p-0 ".concat(f.Z.modalBody," w-100 position-relative")},n.createElement(l.h,{onStepUpdate:function(t){O(t),"completed"===t.currentStepId&&U(void 0)},pageAppLinkString:w,close:B,type:u.c.Popup,location:c.LZ.SignUpPopup,googleMapsApiKey:P.data.googleMapsApiKey,geoLocation:E,imageUrls:d.v,ajaxUrls:_,brazeConfig:P.data.braze,version:I.data,productName:s.X.Lite}))):n.createElement(n.Fragment,null)}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 9194-bf416d9ff4-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9194],{73758:(t,e,n)=>{function r(t){return r="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},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,"string");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===r(o)?o:String(o)),i)}var o}n.d(e,{n:()=>o});var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}var e,n;return e=t,n=[{key:"subscribe",value:function(t,e){this.registerListener(t,e)}},{key:"subscribeOnce",value:function(t,e){this.registerListener(t,e,1)}},{key:"unsubscribe",value:function(t,e){this.deregisterListener(t,e)}},{key:"trigger",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.triggerCallbacks(t,n)}},{key:"registerListener",value:function(t,e,n){var r;if("string"!=typeof t)throw new Error("Event name must be a string");if("function"!=typeof e)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[t]=null!==(r=this.listeners[t])&&void 0!==r?r:[],this.listeners[t].push({callback:e,executionLimit:n})}},{key:"deregisterListener",value:function(t,e){var n;if("string"!=typeof t)throw new Error("Event name must be a string");if(e&&"function"!=typeof e)throw new Error("Event callback must be a function");if(e){var r=null===(n=this.listeners[t])||void 0===n?void 0:n.findIndex((function(t){return t.callback===e}));"number"==typeof r&&-1!==r&&(this.listeners[t].splice(r,1),0===this.listeners[t].length&&delete this.listeners[t])}else this.listeners[t]=[]}},{key:"triggerCallbacks",value:function(t){for(var e=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[t]){var o=[];this.listeners[t].forEach((function(t){var e,n;"number"==typeof t.executionLimit&&(t.executionCount=null!==(n=t.executionCount)&&void 0!==n?n:0,t.executionCount++,t.executionCount===t.executionLimit&&o.push(t.callback)),(e=t.callback).apply.apply(e,[null].concat(r))})),o.length&&o.forEach((function(n){return e.deregisterListener(t,n)}))}}}],n&&i(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}())},26733:(t,e,n)=>{n.d(e,{s:()=>O,R:()=>P});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(t,e){var n,r,i;if("thumbnail"in e&&(null===(n=e.thumbnail)||void 0===n?void 0:n.url))return v.j.createUrl(null===(r=e.thumbnail)||void 0===r?void 0:r.url,Object.assign({},g));var a=o._.safeUrlConcat(t,"/v1/previews");return"metadata"in e?e.metadata.type===y.L.Pdf?v.j.createResourceImage(a,e.url,g):e.metadata.type===y.L.Image?v.j.createUrl(e.url,{size:h.h2.Medium,resizeType:h.Nq.Cover}):(null===(i=e.pdf)||void 0===i?void 0:i.url)?v.j.createResourceImage(a,e.pdf.url,g):(e.metadata.type,y.L.Zip,"/images/zip-resource.png"):v.j.createResourceImage(a,e.url,Object.assign({},g))}function w(t){var e;return"metadata"in t?t.metadata.type===y.L.Pdf?h.__.Pdf:t.metadata.type===y.L.Image?h.__.Thumbnails:(null===(e=t.pdf)||void 0===e?void 0:e.url)?h.__.Pdf:(t.metadata.type,y.L.Zip,h.__.Thumbnails):h.__.Link}function O(t){var e,n,i,o,a,u,f,h=null,p=0;"metadata"in t.data&&(h=t.data.metadata,p=null!==(i=null===(n=null===(e=t.data.thumbnail)||void 0===e?void 0:e.metadata)||void 0===n?void 0:n.rotation)&&void 0!==i?i:0);var d="".concat(null!==(a=null===(o=t.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(t){switch(t){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(t.applyHoverState?b.hoverState:""," ");return r.createElement("div",{className:d},!t.hideHeading&&r.createElement(l.u,{title:t.data.name},r.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(b.text)},r.createElement("span",{className:"clamp-1"},t.data.name))),r.createElement("div",{className:"".concat(null!==(f=null===(u=t.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(t.imageCdnUrl,t.data),imageType:w(t.data),imageStyle:{transform:"rotate(".concat(p,"deg)")},alt:t.data.name,analyticsOptions:{location:s.LZ.SlidingListItem},errorFallbackImageSrc:t.imageErrorFallbackUrl,imageClassName:(null==h?void 0:h.type)===y.L.Image?"".concat(b.imageTypeResource," ").concat(b.imageStyle):"",preload:t.preloadImage,preventLoad:!t.preloadImage})))}O.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var P=r.memo((function(t){var e,n,o,c,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,[]),h=(e=t.data,n=t.actionBehaviour,c=(0,d.k)(),"public"===n||!c.xs&&!c.sm&&"resource"===e.type&&"metadata"in e&&(e.metadata.type===y.L.Image||(e.metadata.type===y.L.Pdf?!!e.url:!!(null===(o=e.pdf)||void 0===o?void 0:o.url)))),v=Object.assign(Object.assign({},t.analyticsData),t.data),g=Object.assign(Object.assign({},t.analyticsOptions),{actionType:s.Vw.Click,entity:t.data.typeId===p.E.Resource?s.py.Resource:s.py.Link});function m(){a.k.logUserAction(v,g)}var w,P=!!t.data.url;return l.applyHoverState=h||P,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"===t.data.type?r.createElement("a",{href:t.data.url,target:"_blank",className:w,onClick:m},r.createElement(O,Object.assign({},l))):h?"public"===t.actionBehaviour?r.createElement("div",{className:"".concat(w," cursor-pointer d-inline"),onClick:function(){m(),i.C$.trigger(t.getAppLink(t.data))}},r.createElement(O,Object.assign({},l))):r.createElement(u.F,{appLink:t.getAppLink(t.data),className:w,analyticsData:v,analyticsOptions:g},r.createElement(O,Object.assign({},l))):P?r.createElement("a",{href:t.data.url,className:w,onClick:m},r.createElement(O,Object.assign({},l))):r.createElement("div",{className:w},r.createElement(O,Object.assign({},l)))))}))},43965:(t,e,n)=>{n.r(e),n.d(e,{ClickViewPlayer:()=>Tn});var r=n(32735),i=n(51482),o=(n(16852),n(93861));function a(t){return a="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},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==a(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===a(i)?i:String(i)),r)}var i}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):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 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)}(f,t);var e,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(t){return!1}}(),function(){var t,e=l(r);if(i){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===a(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 f(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=o.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.Z.getComponent("Button"));function h(t){return h="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},h(t)}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===h(i)?i:String(i)),r)}var i}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}f.prototype.controlText_="Create Clip",o.Z.registerComponent("CreateClipButton",f);var v=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&&y(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=d(r);if(i){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===h(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 a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=a,(n=[{key:"onReady",value:function(){var t,e=this.player.getChild("collapserator"),n=null===(t=null==e?void 0:e.children())||void 0===t?void 0:t.findIndex((function(t){return"CustomControlSpacer"===t.name()}));n&&-1!==n&&e.addChild("CreateClipButton",{clickHandler:this.options.onClick},n+1)}}])&&p(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));function b(t){return b="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},b(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===b(i)?i:String(i)),r)}var i}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}o.Z.registerPlugin("createClipButtonPlugin",v);var O=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&&m(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=w(r);if(i){var n=w(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===b(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 a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"handlePictureInPictureEnabledChange",value:function(){this.enable()}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getComponent("PictureInPictureToggle"));function P(t){return P="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},P(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==P(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===P(i)?i:String(i)),r)}var i}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=E(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},k.apply(this,arguments)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}o.Z.registerComponent("PictureInPictureToggle",O);var T=o.Z.getComponent("PlayToggle"),x=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&&j(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=E(r);if(i){var n=E(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===P(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 a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).pictureInPictureEnabled=!1,n.options=e,n.bindFunctions(),n}return e=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 t=this;if(this.player.options_.fluid&&!this.pictureInPictureEnabled){var e=this.getToggleParentComponent();if(e){this.pictureInPictureEnabled=!0;var n=e.children().findIndex((function(t){var e;return"fullscreentoggle"===(null===(e=t.name())||void 0===e?void 0:e.toLowerCase())}));-1===n&&(n=e.children().length-1),e.addChild("pictureInPictureToggle",{},n);var r=e.getChild("pictureInPictureToggle");null==r||r.enable(),this.player.on("playerresize",this.onPlayerResize),this.player.on("dispose",(function(){var e;null===(e=t.player)||void 0===e||e.off("playerresize",t.onPlayerResize)}))}}}},{key:"disablePictureInPicture",value:function(){if(this.pictureInPictureEnabled){this.pictureInPictureEnabled=!1;var t=this.getToggleParentComponent(),e=null==t?void 0:t.getChild("pictureInPictureToggle");e&&t.removeChild(e),this.player.off("playerresize",this.onPlayerResize)}}},{key:"togglePictureInPicture",value:function(t){if(t!==this.player.isInPictureInPicture()){var e=t?"enterpictureinpicture":"leavepictureinpicture";this.player.isInPictureInPicture(t),this.player.trigger(e),t?this.addPipStyles():this.removePipStyles()}}},{key:"onPlayerResize",value:function(){if(!this.player.isInPictureInPicture()){var t=this.player.el().getBoundingClientRect();0!==t.width&&(t.width<800?this.disablePictureInPicture():this.enablePictureInPicture())}}},{key:"addPipStyles",value:function(){this.player.addClass("cv-picture-in-picture"),this.playToggle=new T(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 t;this.pictureInPictureEnabled&&(this.togglePictureInPicture(!0),"function"==typeof(null===(t=this.options)||void 0===t?void 0:t.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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));o.Z.registerPlugin("pictureInPicture",x);var C=n(23035),_=n(42892),I=n(73758);function R(t){return R="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},R(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==R(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===R(i)?i:String(i)),r)}var i}function D(){return D="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=B(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},D.apply(this,arguments)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}var V=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&&M(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=B(r);if(i){var n=B(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return N(t)}(this,t)});function s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,t,e)).hasBuffered=!1,n.hasPlayed=!1,n.eventsService=I.n,n.pointOfInterest=e.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 e=s,(n=[{key:"initialize",value:function(){this.setPosition(),this.bindListeners()}},{key:"buildCSSClass",value:function(){return"cv-point-of-interest-indicator ".concat(D(B(s.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return D(B(s.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{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 t=this.player().duration();this.el_.style.left=this.getPointOfInterestTime()/t*100+"%"}},{key:"updateBuffered",value:function(t){var e=this.getPointOfInterestTime()<=t;if(e!==this.hasBuffered){this.hasBuffered=e;var n="cv-point-of-interest-indicator-buffered";this.hasBuffered?this.addClass(n):this.removeClass(n)}}},{key:"updatePlaybackProgress",value:function(t){var e=this.getPointOfInterestTime()<=t;if(e!==this.hasPlayed){this.hasPlayed=e;var n="cv-point-of-interest-indicator-played";e?this.addClass(n):this.removeClass(n)}}},{key:"toggleVisibility",value:function(t){var e="cv-point-of-interest-indicator-hidden";t?this.removeClass(e):this.addClass(e)}},{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(t){t.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 t;null===(t=this.getTimeTooltip())||void 0===t||t.setCustomChapterText(this.pointOfInterest.description)}},{key:"clearTimeTooltipText",value:function(){var t;null===(t=this.getTimeTooltip())||void 0===t||t.setCustomChapterText()}},{key:"setTimeTooltipTime",value:function(){var t=this.getTimeTooltip();null==t||t.updateTime(this.getPointOfInterestTime())}},{key:"positionMouseTimeDisplay",value:function(){var t,e,n=null===(t=this.getSeekBar())||void 0===t?void 0:t.el();if(n){var r=o.Z.dom.findPosition(n),i=this.getPointOfInterestTime()/this.player().duration();null===(e=this.getMouseTimeDisplay())||void 0===e||e.update(r,i)}}},{key:"showMouseTimeDisplay",value:function(){var t;null===(t=this.getMouseTimeDisplay())||void 0===t||t.forceShow()}},{key:"hideMouseTimeDisplay",value:function(){var t;null===(t=this.getMouseTimeDisplay())||void 0===t||t.removeForceShow()}},{key:"getSeekBar",value:function(){var t;return null===(t=this.player().controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar")}},{key:"getMouseTimeDisplay",value:function(){var t;return null===(t=this.getSeekBar())||void 0===t?void 0:t.getChild("MouseTimeDisplay")}},{key:"getTimeTooltip",value:function(){var t;return null===(t=this.getMouseTimeDisplay())||void 0===t?void 0:t.getChild("TimeTooltip")}}])&&L(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z.getComponent("Component"));function A(t){return A="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},A(t)}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==A(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===A(i)?i:String(i)),r)}var i}function Z(){return Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=z(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Z.apply(this,arguments)}function U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(t)}var G=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&&U(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=z(r);if(i){var n=z(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===A(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 s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,t,e)).pointsOfInterestVisible=e.pointsOfInterestVisible,n.toggle(n.pointsOfInterestVisible),n}return e=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.pointsOfInterestVisible)}},{key:"toggle",value:function(t){t?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(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,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=Z(z(s.prototype),"createEl",this).call(this,t,{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}}])&&F(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuItem"));function q(t){return q="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},q(t)}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==q(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===q(i)?i:String(i)),r)}var i}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}function Y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $(t){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$(t)}o.Z.registerComponent("PointsOfInterestMenuItem",G);var Q=o.Z.getPlugin("plugin"),J="cvplayer-points-of-interest",X=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&&W(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=$(r);if(i){var n=$(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Y(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t)).pointOfInterestIndicators=[],n.enabled=!0,n.pointsOfInterest=null==e?void 0:e.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 e=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 t=this;this.player.on("progress",this.updateBuffered),this.player.on("timeupdate",this.updatePlaybackProgress),this.player.on("dispose",(function(){var e,n;null===(e=t.player)||void 0===e||e.off("progress",t.updateBuffered),null===(n=t.player)||void 0===n||n.off("timeupdate",t.updatePlaybackProgress)}))}},{key:"togglePointsOfInterest",value:function(t){_.S.set(J,t.toString()),this.pointOfInterestIndicators.forEach((function(e){return e.toggleVisibility(t)}))}},{key:"setupTrack",value:function(){var t=this.player.addTextTrack("metadata","pointsofinterest");this.pointsOfInterest.forEach((function(e){t.addCue({startTime:e.startTime,endTime:e.endTime,text:e.description})})),t.trigger({type:"loadeddata",target:t})}},{key:"createPointOfInterestIndicators",value:function(){var t,e=this,n=null===(t=this.player.controlBar.getChild("ProgressControl"))||void 0===t?void 0:t.getChild("SeekBar");this.pointsOfInterest.forEach((function(t){var r=new V(e.player,{pointOfInterest:t});e.pointOfInterestIndicators.push(r),n.addChild(r)}))}},{key:"addMenuItem",value:function(){var t;(null===(t=this.player.getChild("collapserator"))||void 0===t?void 0:t.getChild("cogButton")).addItem({index:0,ctor:G,name:"PointsOfInterestMenuItem",options:{pointsOfInterestVisible:this.enabled}})}},{key:"updateBuffered",value:function(){var t=this;this.pointOfInterestIndicators.forEach((function(e){return e.updateBuffered((0,C.b)(t.player))}))}},{key:"updatePlaybackProgress",value:function(){var t=this;this.pointOfInterestIndicators.forEach((function(e){return e.updatePlaybackProgress(t.player.currentTime())}))}}])&&H(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Q);o.Z.registerPlugin("pointsOfInterestPlugin",X),n(93262);var K=n(95569),tt=function(){var t,e;return null!==(e=null===(t=window.crypto)||void 0===t?void 0:t.randomUUID())&&void 0!==e?e:Math.random().toString()};function et(t){var e="function"==typeof Map?new Map:void 0;return et=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return nt(t,arguments,ot(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),it(n,t)},et(t)}function nt(t,e,n){return nt=rt()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&it(i,n.prototype),i},nt.apply(null,arguments)}function rt(){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 it(t,e){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},it(t,e)}function ot(t){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ot(t)}function at(t){return at="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},at(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==at(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===at(i)?i:String(i)),r)}var i}function ct(t,e,n){return e&&ut(t.prototype,e),n&&ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var lt=function(){function t(){st(this,t),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 ct(t,[{key:"trigger",value:function(t){var e=this;this.callbacks.forEach((function(n,r){var i=e.predicates[r];i&&!i(t)||n(t)}))}},{key:"on",value:function(t){var e=this;this.isDisposed()&&console.warn("This EventChannel instance been disposed - this is a no-op");var n=this.callbacks.length;this.callbacks[n]=t,this.predicates[n]=function(){return!0};var r=function(){e.off(t)};return{off:r,filter:function(t){return e.predicates[n]=t,r}}}},{key:"one",value:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return this.isDisposed()?ft.reject(new Error("This EventChannel instance has been disposed")):new ft((function(r,i){t=e.on((function(n){e.signal.removeEventListener("abort",o),t(),r(n)})).filter(n);var o=function(){t(),i(new Error("Aborted while waiting for message"))};e.signal.addEventListener("abort",o,{once:!0})}),(function(){t()}))}},{key:"off",value:function(t){var e=this.callbacks.indexOf(t);-1!==e&&(this.callbacks.splice(e,1),this.predicates.splice(e,1))}},{key:"dispose",value:function(){this.callbacks.length=0,this.predicates.length=0,this.controller.abort()}},{key:"isDisposed",value:function(){return this.signal.aborted}}]),t}(),ft=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&&it(t,e)}(i,t);var e,n,r=(e=i,n=rt(),function(){var t,r=ot(e);if(n){var i=ot(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return function(t,e){if(e&&("object"===at(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 i(t,e){var n;return st(this,i),(n=r.call(this,t)).onTimeout=e,n.bindFunctions(),n}return ct(i,[{key:"bindFunctions",value:function(){this.timeout=this.timeout.bind(this)}},{key:"timeout",value:function(t){var e=this;return new Promise((function(n,r){e.then(n).catch(r).finally((function(){return clearTimeout(i)}));var i=setTimeout((function(){var t;null===(t=e.onTimeout)||void 0===t||t.call(e),r(new Error("Promise timed out"))}),t)}))}}],[{key:"reject",value:function(t){return new i((function(e,n){return n(t)}))}}]),i}(et(Promise)),ht=function(){function t(){st(this,t),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 ct(t,[{key:"trigger",value:function(t,e){this.getChannel(t).trigger(e)}},{key:"on",value:function(t,e){return this.getChannel(t).on(e)}},{key:"one",value:function(t,e){return this.getChannel(t).one(e)}},{key:"off",value:function(t,e){this.getChannel(t).off(e)}},{key:"dispose",value:function(){this.trigger("dispose",pt.void),Object.values(this.channels).forEach((function(t){return t.dispose()})),this.channels={}}},{key:"getChannel",value:function(t){return this.channels[t]||(this.channels[t]=new lt),this.channels[t]}}]),t}(),pt={void:void 0};function yt(t){return yt="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},yt(t)}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==yt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===yt(i)?i:String(i)),r)}var i}var vt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bindFunctions()}var e,n;return e=t,(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(t){return this.task=t,this}},{key:"every",value:function(t){return this.intervalInMilliseconds=t,this}},{key:"trigger",value:function(){var t;return null===(t=this.task)||void 0===t||t.call(this,this),this}},{key:"start",value:function(){var t=this;return this.intervalId||(this.intervalId=setInterval((function(){return t.trigger()}),this.intervalInMilliseconds)),this}},{key:"stop",value:function(){return this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0),this}}])&&dt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function bt(t){return bt="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},bt(t)}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==bt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===bt(i)?i:String(i)),r)}var i}var mt,wt={reconnectIntervalInMilliseconds:3e3,heartbeatEnabled:!1,heartbeatIntervalInMillseconds:1e4,heartbeatMessage:""},Ot=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.bindFunctions(),this.url=e,this.options=Object.assign(Object.assign({},wt),r),this.webSocket=this.connect(),this.heartbeat=(new vt).schedule((function(){return n.send(n.options.heartbeatMessage)})).every(this.options.heartbeatIntervalInMillseconds)}var e,n;return e=t,(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(t){var e;null===(e=this.onOpen)||void 0===e||e.call(this,t),this.options.heartbeatEnabled&&this.heartbeat.start()}},{key:"handleMessage",value:function(t){var e;null===(e=this.onMessage)||void 0===e||e.call(this,t)}},{key:"handleClose",value:function(t){var e,n=this;null===(e=this.onClose)||void 0===e||e.call(this,t),this.cleanup(),setTimeout((function(){n.webSocket=n.connect()}),this.options.reconnectIntervalInMilliseconds)}},{key:"handleError",value:function(t){var e;null===(e=this.onError)||void 0===e||e.call(this,t),this.handleClose()}},{key:"connect",value:function(){var t=new WebSocket(this.url);return t.addEventListener("open",this.handleOpen),t.addEventListener("message",this.handleMessage),t.addEventListener("close",this.handleClose),t.addEventListener("error",this.handleError),t}},{key:"send",value:function(t){this.webSocket.send(t)}},{key:"dipose",value:function(){this.cleanup(),this.webSocket.close()}}])&>(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Pt(t){return Pt="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},Pt(t)}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Pt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Pt(i)?i:String(i)),r)}var i}!function(t){t.AppleTv="apple-tv",t.Vivi="vivi"}(mt||(mt={}));var kt=function(){function t(e,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),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=e,this.device=n,this.ready=!1,this.debounced=this.withDebouncedSetters(),this.withTimestampedSetters()}var e,n;return e=t,(n=[{key:"withDebouncedSetters",value:function(){var t=this;return new Proxy(this,{set:function(e,n,r,i){var o=t.lastModified[n.toString()];return!!(o&&Date.now()<o+2e3)||Reflect.set(e,n,r,i)}})}},{key:"withTimestampedSetters",value:function(){var t=this;return new Proxy(this,{set:function(e,n,r,i){return t.lastModified[n.toString()]=Date.now(),Reflect.set(e,n,r,i)}})}}])&&St(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function jt(t){return jt="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},jt(t)}function Et(){Et=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.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 O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==jt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,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:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(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(e,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 T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,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,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(jt(e)+" 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"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==jt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===jt(i)?i:String(i)),r)}var i}function xt(){return xt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_t(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},xt.apply(this,arguments)}function Ct(t,e){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ct(t,e)}function _t(t){return _t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_t(t)}var It=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Rt=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&&Ct(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=_t(r);if(i){var n=_t(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===jt(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 a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this)).client=t,n.queryDeviceState=new vt,n.localState=new kt(e.title,e.device),n.bindFunctions(),n.initialize(),n}return e=a,(n=[{key:"bindFunctions",value:function(){this.initialize=this.initialize.bind(this),this.dispose=this.dispose.bind(this),this.handleDisconnect=this.handleDisconnect.bind(this),this.reconcileRemoteState=this.reconcileRemoteState.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 t=this;this.client.on("dispose",this.dispose),this.client.on("message",this.handleDisconnect).filter((function(e){return e.source===t.getDevice().id&&"disconnect"===e.message.type})),this.queryDeviceState.every(1e3).schedule((function(){return t.reconcileRemoteState()}))}},{key:"dispose",value:function(){this.client.off("dispose",this.dispose),this.client.off("message",this.handleDisconnect),this.queryDeviceState.stop(),this.client.stop(this.getDevice().id).catch(K.ZT),xt(_t(a.prototype),"dispose",this).call(this)}},{key:"handleDisconnect",value:function(){return It(this,void 0,void 0,Et().mark((function t(){return Et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.client.joinRoom(this.getDevice().id);case 3:t.next=9;break;case 5:t.prev=5,t.t0=t.catch(0),this.trigger("error",t.t0),this.dispose();case 9:case"end":return t.stop()}}),t,this,[[0,5]])})))}},{key:"reconcileRemoteState",value:function(){return It(this,void 0,void 0,Et().mark((function t(){var e,n,r,i,o,a;return Et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.client.query(this.getDevice().id);case 2:if(e=t.sent,n=this.localState.debounced,r=e.message.payload.play_state,i=e.message.payload.urls,o=i.find((function(t){return t.url===n.videoSource})),a=i.indexOf(o),o&&a===r.chapter){t.next=12;break}return console.info("The device is no longer playing the source we loaded - disposing the session"),this.dispose(),t.abrupt("return");case 12:n.subtitleSource!==o.suburl&&(n.subtitleSource=o.suburl,this.trigger("subtitleschange",pt.void)),n.subtitles!==r.subtitles&&(n.subtitles=r.subtitles,this.trigger("subtitleschange",pt.void)),n.volume!==r.volume&&(n.volume=r.volume,this.trigger("volumechange",pt.void)),n.mute!==r.mute&&(n.mute=r.mute,this.trigger("volumechange",pt.void)),n.duration!==r.duration&&(n.duration=r.duration,this.trigger("durationchange",pt.void)),n.playing!==r.playing&&(n.playing=r.playing,this.trigger("playingchange",pt.void)),n.position!==r.position&&(n.position=r.position,this.trigger("positionchange",pt.void));case 19:case"end":return t.stop()}}),t,this)})))}},{key:"loadSource",value:function(t,e){return It(this,void 0,void 0,Et().mark((function n(){return Et().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.localState.videoSource!==t||this.localState.subtitleSource!==e){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,this.localState.videoSource=t,this.localState.subtitleSource=e,this.localState.ready=!1,this.queryDeviceState.stop(),n.next=9,this.client.joinRoom(this.getDevice().id);case 9:return n.next=11,this.client.loadQueue({roomId:this.getDevice().id,title:this.getTitle(),videoSource:t,subtitleSource:e});case 11:this.client.seek(this.getDevice().id,this.localState.position),this.localState.ready=!0,this.queryDeviceState.start(),this.trigger("sourceloaded",pt.void),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",pt.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",pt.void))}},{key:"seek",value:function(t){this.localState.ready&&this.localState.position!==t&&(this.localState.position=t,this.client.seek(this.getDevice().id,t),this.trigger("positionchange",pt.void))}},{key:"setVolume",value:function(t){this.localState.ready&&this.localState.volume!==t&&(this.localState.volume=t,this.client.setVolume(this.getDevice().id,t),this.trigger("volumechange",pt.void))}},{key:"setMuted",value:function(t){this.localState.ready&&this.localState.mute!==t&&(this.localState.mute=t,this.client.setMuted(this.getDevice().id,t),this.trigger("volumechange",pt.void))}},{key:"setSubtitles",value:function(t){return It(this,void 0,void 0,Et().mark((function e(){var n;return Et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localState.ready){e.next=2;break}return e.abrupt("return");case 2:if(!t){e.next=5;break}return e.next=5,this.loadSource(this.localState.videoSource,t);case 5:n=!!t,this.localState.subtitles!==n&&(this.localState.subtitles=n,this.client.setSubtitles(this.getDevice().id,n),this.trigger("subtitleschange",pt.void));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"isPlaying",value:function(){return this.localState.playing}},{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}}])&&Tt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(ht);function Lt(t){return Lt="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},Lt(t)}function Dt(){Dt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.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 O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Lt(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,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:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(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(e,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 T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,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,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Lt(e)+" 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"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Lt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Lt(i)?i:String(i)),r)}var i}function Nt(){return Nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Vt(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Nt.apply(this,arguments)}function Bt(t,e){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bt(t,e)}function Vt(t){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vt(t)}var At=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Ft=1e4,Zt=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&&Bt(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=Vt(i);if(o){var n=Vt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Lt(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 s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.call(this)).options=t,e.accessToken="",e.devices=[],e.deviceDiscovery=new vt,e.bindFunctions(),e.initialize(),e}return e=s,r=[{key:"createAckId",value:function(){return tt()}}],(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 t=this;this.webSocket=new Ot(this.options.url.toString()),this.webSocket.onMessage=function(e){return t.trigger("message",JSON.parse(e.data))},this.webSocket.onOpen=function(){return At(t,void 0,void 0,Dt().mark((function t(){return Dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.options.fetchAccessToken();case 3:return this.accessToken=t.sent,t.next=6,this.authenticateWithVivi();case 6:this.beginDeviceDiscovery(),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),this.trigger("error",t.t0);case 12:case"end":return t.stop()}}),t,this,[[0,9]])})))}}},{key:"beginDeviceDiscovery",value:function(){var t=this;this.deviceDiscovery.every(1e4).schedule((function(){return At(t,void 0,void 0,Dt().mark((function t(){var e;return Dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getRoomList();case 2:if((e=t.sent).map((function(t){return t.id})).sort().join(",")!==this.devices.map((function(t){return t.id})).sort().join(",")){t.next=5;break}return t.abrupt("return");case 5:this.devices=e.map((function(t){return{id:t.id,name:t.name,type:mt.Vivi,available:!0}})),this.trigger("deviceschange",pt.void);case 7:case"end":return t.stop()}}),t,this)})))})).trigger().start()}},{key:"dispose",value:function(){var t;this.deviceDiscovery.stop(),null===(t=this.webSocket)||void 0===t||t.dipose(),Nt(Vt(s.prototype),"dispose",this).call(this)}},{key:"sendMessage",value:function(t){var e;null===(e=this.webSocket)||void 0===e||e.send(JSON.stringify(t))}},{key:"canCastToDevice",value:function(t){return t===mt.Vivi}},{key:"getDevices",value:function(){return this.devices}},{key:"startCastSession",value:function(t){return new Rt(this,t)}},{key:"authenticateWithVivi",value:function(){return At(this,void 0,void 0,Dt().mark((function t(){return Dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:"relay",message:{token:this.accessToken,type:"identify_video_api"}}),t.next=3,this.one("message",(function(t){return"video_api_identified"===t.message.type})).timeout(Ft).catch((function(){throw new Error("Failed to authenticate with Vivi")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getRoomList",value:function(){return At(this,void 0,void 0,Dt().mark((function t(){var e;return Dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:"relay",message:{type:"video_api_rooms"}}),t.next=3,this.one("message",(function(t){return"video_api_rooms"===t.message.type})).timeout(Ft).catch((function(){throw new Error("Failed to fetch rooms")}));case 3:return e=t.sent,t.abrupt("return",e.message.rooms||[]);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"joinRoom",value:function(t){return At(this,void 0,void 0,Dt().mark((function e(){return Dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:"relay",message:{destination_type:"box",new_destination:t,token:this.accessToken,type:"connect"}}),e.next=3,this.one("message",(function(e){return e.source===t&&"connect"===e.message.type||"error"===e.message.type&&"already_connected"===e.message.error_type||void 0})).timeout(Ft).catch((function(){throw new Error("Failed to join room")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"query",value:function(t){return At(this,void 0,void 0,Dt().mark((function e(){var n;return Dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.createAckId(),this.sendMessage({destination:t,message:{type:"message_with_ack",ack_id:n,name:"query"}}),e.next=4,this.one("message",(function(t){return t.message.ack_id===n})).timeout(Ft).catch((function(){throw new Error("Failed to fetch query")}));case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"loadQueue",value:function(t){var e=t.roomId,n=t.title,r=t.videoSource,i=t.subtitleSource;return At(this,void 0,void 0,Dt().mark((function t(){return Dt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sendMessage({destination:e,message:{type:"message_with_ack",ack_id:s.createAckId(),name:"queue_load",payload:{urls:[{title:n,url:r,suburl:i}]}}}),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(Ft).catch((function(){throw new Error("Failed to load media")}));case 3:case"end":return t.stop()}}),t,this)})))}},{key:"play",value:function(t){return At(this,void 0,void 0,Dt().mark((function e(){return Dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_play",payload:{}}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"playing"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to play video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"pause",value:function(t){return At(this,void 0,void 0,Dt().mark((function e(){return Dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_pause"}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"paused"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to pause video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"stop",value:function(t){return At(this,void 0,void 0,Dt().mark((function e(){return Dt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"video_stop"}}),e.next=3,this.one("message",(function(e){var n;return e.source===t&&"stopped"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to stop video")}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"seek",value:function(t,e){return At(this,void 0,void 0,Dt().mark((function n(){return Dt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:t,message:{type:"message",name:"video_seek",payload:{position:e}}})){n.next=4;break}return n.next=4,this.one("message",(function(e){var n;return e.source===t&&"playing"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to seek video")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setVolume",value:function(t,e){return At(this,void 0,void 0,Dt().mark((function n(){return Dt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.sendMessageDebounced({destination:t,message:{type:"message",name:"set_volume",payload:{volume:e}}})){n.next=4;break}return n.next=4,this.one("message",(function(e){var n;return e.source===t&&"volume"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to set volume")}));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"setMuted",value:function(t,e){return At(this,void 0,void 0,Dt().mark((function n(){return Dt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.sendMessage({destination:t,message:{type:"message",name:"set_mute",payload:{mute:e}}}),n.next=3,this.one("message",(function(e){var n;return e.source===t&&"mute"===(null===(n=e.message.payload)||void 0===n?void 0:n.event)})).timeout(Ft).catch((function(){throw new Error("Failed to set mute")}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"setSubtitles",value:function(t,e){return At(this,void 0,void 0,Dt().mark((function n(){var r;return Dt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=s.createAckId(),this.sendMessage({destination:t,message:{type:"message_with_ack",ack_id:r,name:"set_subtitles",payload:{subtitles:e}}}),n.next=4,this.one("message",(function(e){return e.source===t&&e.message.ack_id===r})).timeout(Ft).catch((function(){throw new Error("Failed to set subtitles")}));case 4:case"end":return n.stop()}}),n,this)})))}}])&&Mt(e.prototype,n),r&&Mt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(ht);function Ut(t){return Ut="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},Ut(t)}function zt(t){return function(t){if(Array.isArray(t))return Gt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(t,e):void 0}}(t)||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 Gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ut(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ut(i)?i:String(i)),r)}var i}function Ht(){return Ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Yt(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Ht.apply(this,arguments)}function Wt(t,e){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wt(t,e)}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yt(t)}var $t=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&&Wt(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=Yt(i);if(o){var n=Yt(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ut(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 s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this)).clients=[],t.bindFunctions(),t}return e=s,r=[{key:"getOrCreateInstance",value:function(t){if(!t)throw new Error("instanceId is required");return this.instances[t]||(this.instances[t]=new s),this.instances[t]}},{key:"disposeAndRemoveInstance",value:function(t){this.getOrCreateInstance(t).dispose(),delete this.instances[t]}},{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(t){var e=this;t.on("deviceschange",this.gatherAndPublishDevices),t.on("error",(function(t){return e.trigger("error",t)})),this.clients.push(t)}},{key:"hasInstanceOfClient",value:function(t){return this.clients.some((function(e){return e instanceof t}))}},{key:"startCastSession",value:function(t){var e=this;if(this.castSession){if(this.castSession.getDevice().id===t.device.id)return void console.info("A session with device ".concat(t.device.id," already exists - this is a no-op"));this.castSession.dispose()}var n=this.clients.find((function(e){return e.canCastToDevice(t.device.type)}));n&&(this.castSession=n.startCastSession(t),this.castSession.on("error",(function(t){e.castSession.dispose(),e.trigger("error",t)})),this.castSession.on("dispose",(function(){e.castSession=void 0,e.trigger("castsessionchange",void 0)})),this.trigger("castsessionchange",this.castSession))}},{key:"getCastSession",value:function(){return this.castSession}},{key:"gatherAndPublishDevices",value:function(){var t=this.clients.map((function(t){return t.getDevices()})).reduce((function(t,e){return[].concat(zt(t),zt(e))}),[]);this.trigger("deviceschange",t)}},{key:"dispose",value:function(){var t;null===(t=this.castSession)||void 0===t||t.dispose(),this.clients.forEach((function(t){return t.dispose()})),this.castSession=void 0,this.clients=[],Ht(Yt(s.prototype),"dispose",this).call(this)}}])&&qt(e.prototype,n),r&&qt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(ht);$t.instances={};var Qt=n(30050),Jt=n(98115);function Xt(t){return Xt="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},Xt(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Xt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Xt(i)?i:String(i)),r)}var i}function te(){return te="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=re(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},te.apply(this,arguments)}function ee(t,e){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ee(t,e)}function ne(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function re(t){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},re(t)}var ie=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&&ee(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=re(r);if(i){var n=re(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ne(t)}(this,t)});function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).isVisible=n.isVisible.bind(ne(n)),n}return e=a,(n=[{key:"createEl",value:function(){return te(re(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(){te(re(a.prototype),"show",this).call(this)}},{key:"hide",value:function(){te(re(a.prototype),"hide",this).call(this)}},{key:"isVisible",value:function(){return!te(re(a.prototype),"hasClass",this).call(this,"vjs-hidden")}}])&&Kt(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getComponent("MenuItem"));function oe(t){return oe="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},oe(t)}function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==oe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===oe(i)?i:String(i)),r)}var i}function se(){return se="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ce(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},se.apply(this,arguments)}function ue(t,e){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ue(t,e)}function ce(t){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ce(t)}var le=o.Z.getComponent("MenuButton"),fe=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&&ue(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=ce(r);if(i){var n=ce(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===oe(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 a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).alwaysCollapsed=!1,n.isCollapsed=!1,n.isCollabsible=!0,n.searchText="",n.devices=[],n.castSession=void 0,n.bindFunctions(),n.bindEventListeners(),n}return e=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 t=this,e=this.$("button"),n=function(e){t.menu.handleBlur(e)};e.addEventListener("blur",n),this.one("dispose",(function(){e.removeEventListener("blur",n)}))}},{key:"createEl",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=le.prototype.createEl).apply.apply(t,[this].concat(n))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-devices-button ".concat(se(ce(a.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=this,e=[];return this.headingItem=new Qt.Z(this.player_,{label:this.localize("Select a device"),selectable:!1}),this.searchInputItem=new Jt.Z(this.player_,{menuButton:this,search:function(e){return t.setSearchText(e)},className:"cv-devices-search-input"}),this.emptyPlaceholder=new Jt.C(this.player_,{label:"No devices found",selected:!1,selectable:!1,multiSelectable:!1}),this.headingItem.show(),this.searchInputItem.hide(),this.emptyPlaceholder.show(),e.push(this.headingItem,this.searchInputItem,this.emptyPlaceholder),e}},{key:"pressButton",value:function(){var t;se(ce(a.prototype),"pressButton",this).call(this),this.shouldShowSearchInput()&&(null===(t=this.searchInputItem)||void 0===t||t.focus())}},{key:"setDevices",value:function(t){this.devices=t,this.render()}},{key:"setCastSession",value:function(t){this.castSession=t,this.render()}},{key:"setSearchText",value:function(t){this.searchText=t,this.render()}},{key:"getDeviceMenuItems",value:function(){return this.menu.children_.filter((function(t){return t instanceof ie}))}},{key:"render",value:function(){var t=this.getDeviceMenuItems();this.removeMenuItems(t),this.addMenuItemsForDevices(this.devices),this.toggleSearchInput(),this.toggleDeviceMenuItems(),this.toggleEmptyStatePlaceholder()}},{key:"removeMenuItems",value:function(t){var e=this;t.forEach((function(t){return e.menu.removeChild(t)}))}},{key:"addMenuItemsForDevices",value:function(t){var e=this;t.forEach((function(t){var n=new ie(e.player(),{id:t.id,label:t.name,selected:!1,multiSelectable:!1,selectable:t.available,available:t.available,type:t.type,onClick:function(){e.options_.onDeviceMenuItemClick(n,t)}});e.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 t=this,e=this.getDeviceMenuItems(),n=this.shouldShowSearchInput(),r=this.searchText.toLowerCase();e.forEach((function(e){var i,o=t.devices.find((function(t){return t.id===e.options_.id}));if(o){var a=o.available,s=!n||-1!==o.name.toLowerCase().indexOf(r),u=o.id===(null===(i=t.castSession)||void 0===i?void 0:i.getDevice().id);a?e.enable():e.disable(),s?e.show():e.hide(),u?e.selected(!0):e.selected(!1)}}))}},{key:"toggleEmptyStatePlaceholder",value:function(){var t=this.getDeviceMenuItems();t.filter((function(t){return t.isVisible()})).length?this.emptyPlaceholder.hide():this.emptyPlaceholder.show(),t.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 t,e;return null!==(e=null===(t=this.castSession)||void 0===t?void 0:t.getDevice().name)&&void 0!==e?e:" "}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){this.handleClick()}},{key:"handleClick",value:function(){se(ce(a.prototype),"handleClick",this).call(this,null),this.options_.onClick()}}],n&&ae(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(le);fe.prototype.controlText_="Devices",o.Z.registerComponent("DevicesButton",fe);var he=n(10463);function pe(t){return pe="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},pe(t)}function ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==pe(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===pe(i)?i:String(i)),r)}var i}function de(){return de="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=be(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},de.apply(this,arguments)}function ve(t,e){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ve(t,e)}function be(t){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},be(t)}var ge=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&&ve(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=be(r);if(i){var n=be(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===pe(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 a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,null,t)}return e=a,(n=[{key:"createEl",value:function(){return de(be(a.prototype),"createEl",this).call(this,"div",{className:"cv-devices-tech"})}},{key:"setPoster",value:function(t){this.poster=t,this.update()}},{key:"setDeviceName",value:function(t){this.deviceName=t,this.update()}},{key:"update",value:function(){var t=this;this.el_.innerHTML='\n <div class="cv-devices-content">\n <p>'.concat(this.localize("Currently playing on"),"</p>\n <h2>").concat(this.deviceName||"",'</h2>\n </div>\n <div class="cv-devices-background" style="background-image: url(').concat(this.poster,')"></div>\n ');var e=document.createElement("button"),n=function(e){e.stopPropagation(),t.options_.onStopCasting()};e.onclick=n,e.ontouchstart=n,e.className="stop-casting-button",e.innerHTML=this.localize("Stop casting"),this.el_.querySelector(".cv-devices-content").appendChild(e)}},{key:"play",value:function(){}}])&&ye(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getComponent("Component"));function me(t){return me="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},me(t)}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==me(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===me(i)?i:String(i)),r)}var i}function Oe(){return Oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Se(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Oe.apply(this,arguments)}function Pe(t,e){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pe(t,e)}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}var ke=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&&Pe(t,e)}(u,t);var e,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(t){return!1}}(),function(){var t,e=Se(i);if(a){var n=Se(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===me(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(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=s.call(this,t,e)).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.canControlPlaybackRate=!1,n.videojsPlayer=(0,o.Z)(n.options_.playerId),n.bindFunctions(),n.bindEventListeners(),n.setSource(n.options_.source),n.triggerReady(),n}return e=u,r=[{key:"canPlayType",value:function(){return""}},{key:"canPlaySource",value:function(t,e){var n;return!!$t.getOrCreateInstance(null!==(n=null==e?void 0:e.instanceId)&&void 0!==n?n:"").getCastSession()}},{key:"isSupported",value:function(){return $t.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 t=this,e=this.getCastSession();e&&(this.textTracks().on("change",this.onTextTrackChanged),this.videojsPlayer.one("ended",(function(){e.dispose()})),e.on("durationchange",(function(){t.trigger("durationchange")})),e.on("dispose",(function(){t.trigger("ended"),t.hideUI()})),e.on("playingchange",(function(){e.isPlaying()?(t.trigger("play"),t.trigger("playing")):t.trigger("pause")})),e.on("volumechange",(function(){t.trigger("volumechange")})),e.on("sourceloaded",(function(){t.trigger("loadeddata");var n=t.getSelectedTextTrack();n&&e.setSubtitles(n.src)})),e.on("subtitleschange",(function(){t.setSelectedTextTrack(e.getSubtitles())})))}},{key:"onTextTrackChanged",value:function(){var t,e=this.getSelectedTextTrack();null===(t=this.getCastSession())||void 0===t||t.setSubtitles(null==e?void 0:e.src)}},{key:"getSelectedTextTrack",value:function(){return he.O.getCurrentTextTrack(this.videojsPlayer)}},{key:"setSelectedTextTrack",value:function(t){he.O.forEachTrack(this.videojsPlayer,(function(e){e.src===t?e.mode="showing":e.mode="hidden"}))}},{key:"showUI",value:function(t){this.ui&&(this.ui.setPoster(this.options_.poster),this.ui.setDeviceName(t),this.ui.show())}},{key:"hideUI",value:function(){var t;null===(t=this.ui)||void 0===t||t.hide()}},{key:"dispose",value:function(){this.textTracks().off("change",this.onTextTrackChanged),Oe(Se(u.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){var t=this;return this.ui=this.ui||new ge({onStopCasting:function(){var e;null===(e=t.getCastSession())||void 0===e||e.dispose()}}),this.ui.el()}},{key:"setSource",value:function(t){var e=this.getCastSession();e&&(this.showUI(e.getDevice().name),this.triggerReady(),this.trigger("loadstart"),e.loadSource(t.src))}},{key:"addRemoteTextTrack",value:function(t){return Oe(Se(u.prototype),"addRemoteTextTrack",this).call(this,t,!0)}},{key:"getCastSession",value:function(){var t;return $t.getOrCreateInstance(null!==(t=this.options_.instanceId)&&void 0!==t?t:"").getCastSession()}},{key:"play",value:function(){var t;null===(t=this.getCastSession())||void 0===t||t.play()}},{key:"pause",value:function(){var t;null===(t=this.getCastSession())||void 0===t||t.pause()}},{key:"paused",value:function(){var t;return!1===(null===(t=this.getCastSession())||void 0===t?void 0:t.isPlaying())}},{key:"ended",value:function(){return void 0===this.getCastSession()}},{key:"setCurrentTime",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.seek(null!=t?t:0)}},{key:"currentTime",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}},{key:"duration",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getDuration())&&void 0!==e?e:0}},{key:"volume",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getVolume())&&void 0!==e?e:1}},{key:"setVolume",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.setVolume(t)}},{key:"muted",value:function(){var t,e;return null!==(e=null===(t=this.getCastSession())||void 0===t?void 0:t.getMuted())&&void 0!==e&&e}},{key:"setMuted",value:function(t){var e;null===(e=this.getCastSession())||void 0===e||e.setMuted(t)}},{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(){}}])&&we(e.prototype,n),r&&we(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.Z.getComponent("Tech"));function je(t){return je="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},je(t)}function Ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==je(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===je(i)?i:String(i)),r)}var i}function Te(){return Te="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ce(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Te.apply(this,arguments)}function xe(t,e){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xe(t,e)}function Ce(t){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ce(t)}o.Z.registerTech("devices",ke);var _e=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&&xe(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=Ce(r);if(i){var n=Ce(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===je(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 a(t,e){var n,r,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,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 e=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 t=this,e=this.player.getChild("collapserator"),n=null==e?void 0:e.children().findIndex((function(t){return"CustomControlSpacer"===t.name()})),r=this.getSessionManager();if(e&&n&&-1!==n&&r){r.on("deviceschange",this.onDevicesChanged),r.on("castsessionchange",this.onCastSessionChanged),r.on("error",this.onDevicesError);var i={onClick:function(){if(t.options.viviApi&&t.options.fetchViviAccessToken&&!r.hasInstanceOfClient(Zt)){var e=new Zt({url:t.options.viviApi,fetchAccessToken:t.options.fetchViviAccessToken});r.addClient(e)}},onDeviceMenuItemClick:function(e,n){r.startCastSession({device:n,title:t.options.title})}};this.devicesButton=e.addChild("DevicesButton",i,n+1)}}},{key:"onDevicesChanged",value:function(t){var e;null===(e=this.devicesButton)||void 0===e||e.setDevices(t)}},{key:"onCastSessionChanged",value:function(t){var e;null===(e=this.devicesButton)||void 0===e||e.setCastSession(t),this.reloadTech()}},{key:"onDevicesError",value:function(t){this.player.error(t.message),this.player.pause()}},{key:"reloadTech",value:function(){var t=this.player,e=t.currentSources(),n=t.currentTime(),r=t.paused(),i=t.muted(),o=t.volume();t.src(e),t.one("playing",(function(){t.volume(o),t.muted(i),t.currentTime(n),r?t.pause():t.play()}))}},{key:"getSessionManager",value:function(){if(this.instanceId)return $t.getOrCreateInstance(this.instanceId)}},{key:"dispose",value:function(){this.instanceId&&$t.disposeAndRemoveInstance(this.instanceId),Te(Ce(a.prototype),"dispose",this).call(this)}}])&&Ee(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));function Ie(t){return Ie="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},Ie(t)}function Re(){Re=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new _(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.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 O=Object.getPrototypeOf,P=O&&O(O(I([])));P&&P!==n&&r.call(P,a)&&(w=P);var S=m.prototype=b.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Ie(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,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:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(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(e,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 T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,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,e.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[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Ie(e)+" 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"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(j.prototype),c(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new j(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,u,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==Ie(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===Ie(i)?i:String(i)),r)}var i}function Me(){return Me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Be(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Me.apply(this,arguments)}function Ne(t,e){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ne(t,e)}function Be(t){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(t)}o.Z.registerPlugin("devicesPlugin",_e);var Ve=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&&Ne(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=Be(r);if(i){var n=Be(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===Ie(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 a(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,t,e)}return e=a,(n=[{key:"getPlayerOptions",value:function(){var t,e=Me(Be(a.prototype),"getPlayerOptions",this).call(this);return e.enableDevices?Object.assign(Object.assign({},e),{techOrder:["devices"].concat((t=e.techOrder,function(t){if(Array.isArray(t))return Le(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Le(t,e):void 0}}(t)||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:tt()}}):e}},{key:"configurePlugins",value:function(){var t;try{this.options.onClickCreateClip&&this.player.createClipButtonPlugin({onClick:this.options.onClickCreateClip}),this.options.onRequestPictureInPicture&&this.player.pictureInPicture({onRequestPictureInPicture:this.options.onRequestPictureInPicture}),(null===(t=this.options.pointsOfInterest)||void 0===t?void 0:t.length)&&this.player.pointsOfInterestPlugin({pointsOfInterest:this.options.pointsOfInterest})}catch(t){console.log("failed to register plugins",t)}}},{key:"setNextVideo",value:function(t,e,n){this.player.nextVideoPlugin&&this.player.nextVideoPlugin().setNextVideo(t,e,n)}},{key:"enablePictureInPicture",value:function(){var t=this.player.pictureInPicture();t&&t.enablePictureInPicture()}},{key:"disablePictureInPicture",value:function(){var t=this.player.pictureInPicture();t&&t.disablePictureInPicture()}},{key:"togglePictureInPicture",value:function(t){var e=this.player.pictureInPicture();e&&e.togglePictureInPicture(t)}},{key:"additionalSetup",value:function(t){var e,n,r,i,o=this,s=Object.create(null,{additionalSetup:{get:function(){return Me(Be(a.prototype),"additionalSetup",o)}}});return e=this,n=void 0,r=void 0,i=Re().mark((function e(){var n;return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.additionalSetup.call(this,t),this.options.showResources&&t.resources&&this.player.resourcesPlugin&&this.player.resourcesPlugin({resources:t.resources.list,imageCdnUrl:this.options.imageCdnUrl}),"MasterClip"!==t.mediaType){e.next=7;break}if(null!==(n=t.additionalData)){e.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:t.title});case 8:case"end":return e.stop()}}),e,this)})),new(r||(r=Promise))((function(t,o){function a(t){try{u(i.next(t))}catch(t){o(t)}}function s(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,s)}u((i=i.apply(e,n||[])).next())}))}},{key:"setActivityStatus",value:function(t,e){this.player.activityStatusPlugin().setActivityStatus(t,e)}}])&&De(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.r),Ae=n(63816),Fe=n(14735);function Ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ue(t){var e,n,i,o=r.useRef(t.player.duration()-t.player.currentTime()),a=(n=r.useState(o.current),i=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(n,i)||function(t,e){if(t){if("string"==typeof t)return Ze(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(t,e):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 e=t.player.duration()-t.player.currentTime();u(e),e>o.current&&(o.current=e)}if(r.useEffect((function(){return t.player.on("timeupdate",c),function(){t.player.off("timeupdate",c)}}),[]),!t.nextVideo||!t.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:t.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:t.onPlayNext,style:{backgroundImage:"url(".concat(null===(e=t.nextVideo)||void 0===e?void 0:e.thumbnailUrl,")")}}),r.createElement("div",{className:"cv-up-next-title"},t.nextVideo.name)))}function ze(t){return ze="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},ze(t)}function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==ze(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===ze(i)?i:String(i)),r)}var i}function qe(){return qe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=We(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},qe.apply(this,arguments)}function He(t,e){return He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},He(t,e)}function We(t){return We=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},We(t)}o.Z.registerComponent("UpNext",(0,Fe.Z)((function(t,e){return r.createElement(Ue,Object.assign({player:t},e))})));var Ye=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&&He(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=We(r);if(i){var n=We(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===ze(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 s(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,t,e)).playNext=t.nextVideoPlugin().getShouldPlayNext(),n.toggle(n.playNext),n}return e=s,(n=[{key:"handleToggle",value:function(){this.toggle(!this.playNext)}},{key:"toggle",value:function(t){t?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(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,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=qe(We(s.prototype),"createEl",this).call(this,t,{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}}])&&Ge(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuItem"));function $e(t){return $e="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},$e(t)}function Qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==$e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===$e(i)?i:String(i)),r)}var i}function Je(){return Je="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tn(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},Je.apply(this,arguments)}function Xe(t,e){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xe(t,e)}function Ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tn(t)}o.Z.registerComponent("NextVideoMenuItem",Ye);var en="cv-persisttest",nn="cv-play-next-video",rn=o.Z.getPlugin("plugin"),on=(o.Z.getComponent("MenuItem"),o.Z.getComponent("NextVideoMenuItem")),an=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&&Xe(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=tn(r);if(i){var n=tn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===$e(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ke(t)}(this,t)});function a(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,t)).setShouldPlayNext=e.setShouldPlayNext.bind(Ke(e)),e.getShouldPlayNext=e.getShouldPlayNext.bind(Ke(e)),e.setChapterTrack=e.setChapterTrack.bind(Ke(e)),e.onTimeUpdate=e.onTimeUpdate.bind(Ke(e)),e.hasLocalStorage=e.testHasLocalStorage(),e.shouldPlayNextVideo=!1,e.hasLocalStorage){var n=window.localStorage.getItem(nn);e.shouldPlayNextVideo="true"===n}return t.ready((function(){e.initialize()})),e}return e=a,(n=[{key:"initialize",value:function(){this.player.isDisposed()||(he.O.useTrack(this.player,"chapters",null,this.setChapterTrack),this.bindListeners())}},{key:"setNextVideo",value:function(t,e,n){var r;this.nextVideo=t,this.callback=n,e&&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(t,e){this.shouldPlayNextVideo=t,this.hasLocalStorage&&e&&window.localStorage.setItem(nn,t.toString())}},{key:"setChapterTrack",value:function(t){this.chapterTrack=t}},{key:"bindListeners",value:function(){this.player.on("timeupdate",this.onTimeUpdate)}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),Je(tn(a.prototype),"dispose",this).call(this)}},{key:"onTimeUpdate",value:function(){var t,e,n;if(!this.player.pictureInPicture||!this.player.isInPictureInPicture())if(this.getShouldPlayNext()){if(this.player.ended())return this.callback(),void this.hideUpNext();if(!(this.upNextRendered&&this.player.currentTime()>this.upNextTimepoint)){var r=(null===(e=null===(t=this.chapterTrack)||void 0===t?void 0:t.activeCues)||void 0===e?void 0:e.length)&&this.chapterTrack.activeCues[0];"credits"===(null===(n=null==r?void 0:r.text)||void 0===n?void 0:n.toLowerCase())||this.player.currentTime()>=this.player.duration()-5?this.showUpNext():this.hideUpNext()}}else this.hideUpNext()}},{key:"showUpNext",value:function(){var t=this;this.upNextRendered||(this.upNextRendered=!0,this.upNextTimepoint=this.player.currentTime(),this.player.addChild("UpNext",{nextVideo:this.nextVideo,onPlayNext:this.callback,onCancel:function(){t.hideUpNext(),t.setShouldPlayNext(!1)}}))}},{key:"hideUpNext",value:function(){if(this.upNextRendered){this.upNextRendered=!1,this.upNextTimepoint=null;var t=this.player.getChild("UpNext");t&&this.player.removeChild(t)}}},{key:"testHasLocalStorage",value:function(){try{return window.localStorage.setItem(en,"persistPlayNext"),window.localStorage.removeItem(en),!0}catch(t){return!1}}}])&&Qe(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(rn);o.Z.registerPlugin("nextVideoPlugin",an);var sn=n(26733);function un(t){return un="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},un(t)}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==un(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===un(i)?i:String(i)),r)}var i}function ln(t,e){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ln(t,e)}function fn(t){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fn(t)}function hn(t){return r.createElement("div",{className:"cv-resource-item"},r.createElement(sn.s,{data:t.resource,imageCdnUrl:t.imageCdnUrl}))}var pn=(0,Fe.Z)((function(t,e){return r.createElement(hn,Object.assign({},e))})),yn=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&&ln(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=fn(r);if(i){var n=fn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===un(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 s(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),n=a.call(this,t,e);var r=new pn(t,{resource:e.resource,imageCdnUrl:e.imageCdnUrl});return n.addChild(r),n}return e=s,(n=[{key:"createEl",value:function(){return o.Z.dom.createEl("div")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.options_.downloadResource(this.options_.resource)}}])&&cn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z.getComponent("ClickableComponent"));function dn(t){return dn="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},dn(t)}function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==dn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===dn(i)?i:String(i)),r)}var i}function bn(){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mn(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},bn.apply(this,arguments)}function gn(t,e){return gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gn(t,e)}function mn(t){return mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mn(t)}var wn=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&&gn(t,e)}(s,t);var e,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(t){return!1}}(),function(){var t,e=mn(r);if(i){var n=mn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===dn(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 s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=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 t=this,e=[];return this.options_.resources.forEach((function(n){var r=new yn(t.player(),{resource:n,imageCdnUrl:t.options_.imageCdnUrl,downloadResource:function(e){return t.downloadResource(e)}});e.push(r)})),e}},{key:"downloadResource",value:function(t){this.getDownloadIframe().src=t.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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z.getComponent("MenuButton"));function On(t){return On="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},On(t)}function Pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==On(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===On(i)?i:String(i)),r)}var i}function Sn(t,e){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sn(t,e)}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kn(t)}wn.prototype.controlText_="Resources",o.Z.registerComponent("ResourcesButton",wn);var jn=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&&Sn(t,e)}(a,t);var e,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(t){return!1}}(),function(){var t,e=kn(r);if(i){var n=kn(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===On(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 a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=a,(n=[{key:"onReady",value:function(){if(this.options.resources.length){var t=this.player.getChild("collapserator");t.addChild("ResourcesButton",{resources:this.options.resources,imageCdnUrl:this.options.imageCdnUrl},t.children_.length-3)}}}])&&Pn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(o.Z.getPlugin("plugin"));o.Z.registerPlugin("resourcesPlugin",jn);var En=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Tn(t){var e=t.className,n=void 0===e?"":e,i=t.playerApi,o=t.onReady,a=t.onDispose,s=En(t,["className","playerApi","onReady","onDispose"]),u=r.useRef();return r.useEffect((function(){if(u){var t=new Ve(u.current,Object.assign(Object.assign({},s),{playerApi:i}));return o&&t.ready((function(){o((0,Ae.G)(t))})),a&&t.one("dispose",a),function(){null==t||t.dispose()}}}),[t.viewKey]),r.createElement("div",{ref:u,className:n})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9242],{9242:(e,t,n)=>{n.r(t),n.d(t,{JoinClassroomPromptView:()=>F});var r=n(32735),o=n(70680),a=n(23481),u=n(81886),i=n(20354);const l={input:"Aptlf",codeInputContainer:"cRvSA"};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return i}}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d,y=/^[0-9]$/,b=/^\d+$/,g=8;function p(e){var t,n=s(r.useState(""),2),o=n[0],a=n[1],u=s(r.useState(""),2),i=u[0],c=u[1],v=s(r.useState(""),2),p=v[0],h=v[1],S=s(r.useState(""),2),E=S[0],w=S[1],C=s(r.useState(""),2),N=C[0],x=C[1],k=r.useRef(null),O=r.useRef(null),j=r.useRef(null),A=r.useRef(null),I=r.useRef(null);r.useEffect((function(){var t=(o||"X")+(i||"X")+(p||"X")+(E||"X")+(N||"X");e.onChange(t)}),[o,i,p,E,N]);var P=(f(t={},d.One,{getNext:function(){return P[d.Two]},getPrevious:function(){return null},value:o,setState:a,focus:function(){return k.current.focus()}}),f(t,d.Two,{getNext:function(){return P[d.Three]},getPrevious:function(){return P[d.One]},value:i,setState:c,focus:function(){return O.current.focus()}}),f(t,d.Three,{getNext:function(){return P[d.Four]},getPrevious:function(){return P[d.Two]},value:p,setState:h,focus:function(){return j.current.focus()}}),f(t,d.Four,{getNext:function(){return P[d.Five]},getPrevious:function(){return P[d.Three]},value:E,setState:w,focus:function(){return A.current.focus()}}),f(t,d.Five,{getNext:function(){return null},getPrevious:function(){return P[d.Four]},value:N,setState:x,focus:function(){return I.current.focus()}}),t);function T(e,t){var n,r;if(y.test(e.key)||e.keyCode===g){var o=P[t];if(e.keyCode===g)return o.setState(""),void(null===(n=o.getPrevious())||void 0===n||n.focus());if(e.currentTarget.selectionStart>0){var a=o.getNext();if(!a)return;return a.setState(e.key),void(a.getNext()?a.getNext().focus():a.focus())}o.setState(e.key),null===(r=o.getNext())||void 0===r||r.focus()}}function D(e,t){e.preventDefault();var n=e.clipboardData.getData("text").trim();if(b.test(n)){var r=n.split("");if(6!==r.length){var o=P[t];o.value&&o.getNext()&&(o=o.getNext());do{o.focus(),o.setState(r.shift()),o=o.getNext()}while(r.length&&o)}else{var a,u=P[d.One],i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){i=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(i)throw a}}}}(r);try{for(i.s();!(a=i.n()).done;){var l=a.value;u.setState(l),null==(u=u.getNext())||u.focus()}}catch(e){i.e(e)}finally{i.f()}}}}var U={className:"form-control h-100 fw-semibold mx-1 text-center ".concat(l.input," ").concat(e.hasError?"is-invalid":""),autoCorrect:"off",inputMode:"numeric",pattern:"[0-9]*",autoCapitalize:"off",autoComplete:"off"};return r.createElement("div",{className:"".concat(l.codeInputContainer," d-flex justify-content-between")},r.createElement("input",Object.assign({onPaste:function(e){return D(e,d.One)},onKeyDown:function(e){return T(e,d.One)},value:o,ref:k,onChange:function(){},autoComplete:"off"},U)),r.createElement("input",Object.assign({onPaste:function(e){return D(e,d.Two)},onKeyDown:function(e){return T(e,d.Two)},value:i,ref:O,onChange:function(){}},U)),r.createElement("input",Object.assign({onPaste:function(e){return D(e,d.Three)},onKeyDown:function(e){return T(e,d.Three)},value:p,ref:j,onChange:function(){}},U)),r.createElement("input",Object.assign({onPaste:function(e){return D(e,d.Four)},onKeyDown:function(e){return T(e,d.Four)},value:E,ref:A,onChange:function(){}},U)),r.createElement("input",Object.assign({onPaste:function(e){return D(e,d.Five)},onKeyDown:function(e){return T(e,d.Five)},value:N,ref:I,onChange:function(){}},U)))}!function(e){e.One="verify-1",e.Two="verify-2",e.Three="verify-3",e.Four="verify-4",e.Five="verify-5"}(d||(d={}));var h=n(10874),S=n(2102),E=n(2786),w=n(31949),C=n(35223),N=n(83421),x=n(14070),k=n(97291),O=n(88630);const j={logo:"FSXXf",formContainer:"yEBMm",backButton:"DRrEn",codeInputContainer:"gSuIK"};function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P=a.T.encloseNamespace("classrooms.joinClassroomPrompt"),T={application:k.O.LAUNCHPAD,action:x.e.Launchpad.LOGIN_LANDING,params:{showJoinCode:!0}},D={application:k.O.DASHBOARD,action:x.e.Dashboard.HOME},U="X";function F(){var e,t=(0,o.I0)(),n=A(r.useState(""),2),a=n[0],l=n[1],c=A(r.useState(""),2),f=c[0],s=c[1],m=A(r.useState(!1),2),v=m[0],d=m[1],y=i.a.useBasicFetch(w.N.currentUser());function b(){u.Q.C$.trigger({application:k.O.LAUNCHPAD,action:x.e.Launchpad.JOIN_CLASSROOM,args:[a]})}function g(){s(P("invalid")),d(!1)}return r.createElement(N.Z,null,r.createElement("div",{className:"".concat(j.formContainer," m-auto")},r.createElement("form",{onSubmit:function(e){e.preventDefault(),d(!0),i.a.fetch(t,O.F.checkJoinCode(a,b,g))}},r.createElement("div",{className:"text-center position-relative mb-3"},r.createElement("span",{className:"".concat(j.backButton," position-absolute")},r.createElement(h.h,{appLink:(null===(e=y.data)||void 0===e?void 0:e.isAuthenticated)?D:T,svgName:C.vn.ChevronLeft})),r.createElement("span",{className:"".concat(j.logo," d-inline-block")},r.createElement(E.$S,null))),r.createElement("p",{className:"text-center"},P("enterClassCode")),r.createElement("div",{className:"mx-4"},r.createElement(p,{onChange:function(e){s(""),l(e)},hasError:!!f}),!!f&&r.createElement("div",{className:"d-block invalid-feedback"},f)),r.createElement(S.m,{showSpinner:v,className:"d-block btn w-75 mt-3 mx-auto btn-lg btn-dark",type:"submit",disabled:a.includes(U)},P("next")))))}},83421:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(32735),o=n(54610),a=n(4594),u=n(67453),i=n(99742);const l={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,u,i=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=[{bgUrl:i.W.LaunchPad.BG_1},{bgUrl:i.W.LaunchPad.BG_2},{bgUrl:i.W.LaunchPad.BG_3},{bgUrl:i.W.LaunchPad.BG_4},{bgUrl:i.W.LaunchPad.BG_5}];function m(e){switch(e){case a.E.Video:case a.E.Interactive:case a.E.Clip:return l.thumbnail;case a.E.Subject:case a.E.Playlist:return l.cover;case a.E.Series:return l.tallposter;default:return""}}function v(e){var t,n=c(r.useState(!1),2),a=n[0],i=n[1],f=c(r.useState(""),2),v=f[0],d=f[1],y=c(r.useState(""),2),b=y[0],g=y[1],p=u.j.createUrl(e.imageUrl,{size:o.h2.Large}),h=s;return r.useEffect((function(){if(!p&&h&&0!==h.length){var e,t=(e=h)[Math.floor(Math.random()*e.length)];t.bgUrl&&d(t.bgUrl),t.textUrl&&g(t.textUrl)}}),[]),r.useEffect((function(){if(p){var e=new Image;return e.onload=function(){return i(!0)},e.src=p,function(){return e.onload=null}}}),[]),r.createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():r.createElement("div",{className:"".concat(l.left," bg-light"),style:{backgroundImage:"url('".concat(v,"')")}},b&&r.createElement("div",{className:l.leftTextImage,style:{backgroundImage:"url('".concat(b,"')")}}),a&&r.createElement(r.Fragment,null,r.createElement("div",{className:l.blur,style:{backgroundImage:"url('".concat(p,"')")}}),r.createElement("div",{className:"".concat(l.imageContainer," ").concat(m(e.objectType))},r.createElement("div",{className:l.imagePosition},r.createElement("img",{className:l.image,src:p,alt:e.title}))))),r.createElement("div",{className:"".concat(l.right," bg-white d-flex flex-column")},r.createElement("div",{className:"position-absolute d-flex align-items-center ".concat(l.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?r.createElement(r.Fragment,{key:t}):r.createElement("a",{key:t,href:e.url,className:"info-link fw-semibold",onClick:e.onClick},e.text)}))),e.children))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9264],{75608:(e,t,a)=>{a.d(t,{a:()=>d});var r=a(20354),n=a(30439),l=a(4594),c=a(21750),o=a(43012),i=a(20768),s=a(74357),u=a(60011),m=a(31949),f=a(1575);function d(e){var t=r.a.useBasicFetch(m.N.currentUser()),a=r.a.useBasicFetch(n.o.getShareObject(e)),d=function(){if(!a.data||!t.data)return null;switch(a.data.objectTypeId){case l.E.Video:return f.R.publicVideo(a.data.objectId,e);case l.E.Clip:return o.e.publicClip(a.data.objectId,e);case l.E.Interactive:return i.b.publicInteractiveMetadata(a.data.objectId,e);case l.E.Playlist:return s.C.getSharedPlaylist(a.data.objectId,e);case l.E.Subject:return c.x.classification(a.data.objectId,t.data.id);case l.E.Series:return u.J.sharedSeries(a.data.objectId,e)}}();return r.a.useBasicFetch(d).data}},69264:(e,t,a)=>{a.r(t),a.d(t,{PasswordProtectedShareLinkView:()=>w});var r=a(32735),n=a(80130),l=a(70680),c=a(23481),o=a(57900),i=a(81886),s=a(20354),u=a(30439),m=a(64249),f=a(11607),d=a(2102),b=a(83914),g=a(2786),h=a(83345),p=a(35223),v=a(83421),y=a(75608);const E={logo:"gaVVw",formContainer:"ByuHb",toggleEye:"t0aye"};function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,l,c,o=[],i=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(r=l.call(a)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{if(!i&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(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)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var j="share.passwordProtectedShareLink",k=c.T.encloseNamespace(j);function w(e){var t=I(r.useState(""),2),a=t[0],c=t[1],S=I(r.useState(!1),2),w=S[0],C=S[1],N=I(r.useState(!1),2),x=N[0],P=N[1],U=I(r.useState(""),2),A=U[0],O=U[1],L=(0,y.a)(e.shareId),V=(0,l.I0)();return L?r.createElement(v.Z,{title:L.name,imageUrl:m.I.getImageUrl(L),objectType:L.typeId},r.createElement("div",{className:"".concat(E.formContainer," m-auto")},r.createElement("div",{className:"".concat(E.logo," mb-4 mx-auto")},r.createElement(g.$S,null)),r.createElement("p",{className:"mb-3"},r.createElement(h.x,{namespace:j,phrase:"info"})),r.createElement("form",{onSubmit:function(t){t.preventDefault(),a&&(C(!0),s.a.fetch(V,u.o.checkPassword(e.shareId,a,(function(t){if(t.success){o.qS.set(e.shareId,a);var r=i.Q.C$.getHref(e.appLink);i.Q.Ab.PageLoad(r)}else O(k("incorrectPasswordErrorMessage")),C(!1)}),(function(){O(k("ajaxErrorMessage")),C(!1)}))))},className:"position-relative"},r.createElement("div",{className:"form-group"},r.createElement("input",{id:"link-password",type:x?"text":"password",className:"form-control form-control-lg ".concat(A?"is-invalid":""),placeholder:k("placeholder"),onChange:function(e){return c(e.target.value)},value:a,autoComplete:"off"}),A&&r.createElement(n.Z.Control.Feedback,{type:"invalid",className:"mb-n3"},A)),r.createElement(f.L,{className:"btn btn-link ".concat(E.toggleEye),onClick:function(){return P((function(e){return!e}))}},r.createElement(b.x,{svgName:x?p.vn.VisibleOn:p.vn.VisibleOff})),r.createElement(d.m,{variant:"primary",showSpinner:w,type:"submit",className:"w-100 mt-3",disabled:w||!a},r.createElement(h.x,{namespace:j,phrase:"confirm"}))))):r.createElement(r.Fragment,null)}},83421:(e,t,a)=>{a.d(t,{Z:()=>d});var r=a(32735),n=a(54610),l=a(4594),c=a(67453),o=a(99742);const i={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,n,l,c,o=[],i=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;i=!1}else for(;!(i=(r=l.call(a)).done)&&(o.push(r.value),o.length!==t);i=!0);}catch(e){s=!0,n=e}finally{try{if(!i&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}var m=[{bgUrl:o.W.LaunchPad.BG_1},{bgUrl:o.W.LaunchPad.BG_2},{bgUrl:o.W.LaunchPad.BG_3},{bgUrl:o.W.LaunchPad.BG_4},{bgUrl:o.W.LaunchPad.BG_5}];function f(e){switch(e){case l.E.Video:case l.E.Interactive:case l.E.Clip:return i.thumbnail;case l.E.Subject:case l.E.Playlist:return i.cover;case l.E.Series:return i.tallposter;default:return""}}function d(e){var t,a=s(r.useState(!1),2),l=a[0],o=a[1],u=s(r.useState(""),2),d=u[0],b=u[1],g=s(r.useState(""),2),h=g[0],p=g[1],v=c.j.createUrl(e.imageUrl,{size:n.h2.Large}),y=m;return r.useEffect((function(){if(!v&&y&&0!==y.length){var e,t=(e=y)[Math.floor(Math.random()*e.length)];t.bgUrl&&b(t.bgUrl),t.textUrl&&p(t.textUrl)}}),[]),r.useEffect((function(){if(v){var e=new Image;return e.onload=function(){return o(!0)},e.src=v,function(){return e.onload=null}}}),[]),r.createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():r.createElement("div",{className:"".concat(i.left," bg-light"),style:{backgroundImage:"url('".concat(d,"')")}},h&&r.createElement("div",{className:i.leftTextImage,style:{backgroundImage:"url('".concat(h,"')")}}),l&&r.createElement(r.Fragment,null,r.createElement("div",{className:i.blur,style:{backgroundImage:"url('".concat(v,"')")}}),r.createElement("div",{className:"".concat(i.imageContainer," ").concat(f(e.objectType))},r.createElement("div",{className:i.imagePosition},r.createElement("img",{className:i.image,src:v,alt:e.title}))))),r.createElement("div",{className:"".concat(i.right," bg-white d-flex flex-column")},r.createElement("div",{className:"position-absolute d-flex align-items-center ".concat(i.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?r.createElement(r.Fragment,{key:t}):r.createElement("a",{key:t,href:e.url,className:"info-link fw-semibold",onClick:e.onClick},e.text)}))),e.children))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9273],{19273:(e,t,a)=>{a.r(t),a.d(t,{ShareLinkSignIn:()=>E});var n=a(32735),r=a(23481),c=a(65858),l=a(64249),i=a(36848),o=a(96022),s=a(2786),u=a(83345),d=a(4594),m=a(83421),f=a(14070),b=a(97291),g=a(7179),h=a(75608);const p={logo:"XVbHC",container:"vxDwV"};var v="launchpad.shareLinkSignIn";function E(e){var t=e.shareId,a=e.redirectUrl,E=e.customerId,I=(0,g.P)({id:null==C?void 0:C.id,app:(0,g.e)(null==C?void 0:C.typeId),shareId:t},c.LZ.Launchpad),y=I.deepLink,k=I.showDeepLink,j=I.onClickDeepLink,C=(0,h.a)(t);return C?n.createElement(m.Z,{title:C.name,imageUrl:l.I.getImageUrl(C),objectType:C.typeId,links:[{text:r.T.getPhrase(v,"openInApp"),url:y,hide:!k,onClick:j}]},n.createElement("div",{className:"".concat(p.container," m-auto")},n.createElement("div",{className:"".concat(p.logo," mb-4 mx-auto")},n.createElement(s.$S,null)),!!C.name&&n.createElement("h1",{className:"h3"},C.typeId===d.E.Video&&n.createElement(o.M,{video:C,analyticsOptions:{},size:"sm"}),C.name),"description"in C&&n.createElement("p",{className:"mb-0 clamp-3"},C.description),n.createElement(i.F,{className:"btn btn-dark btn-lg w-100 mt-4",appLink:{application:b.O.DEFAULT,action:f.e.Default.LOG_IN,params:{redirectUrl:a,customerId:E}}},n.createElement(u.x,{namespace:v,phrase:"signInToWatch"})))):n.createElement(n.Fragment,null)}},75608:(e,t,a)=>{a.d(t,{a:()=>f});var n=a(20354),r=a(30439),c=a(4594),l=a(21750),i=a(43012),o=a(20768),s=a(74357),u=a(60011),d=a(31949),m=a(1575);function f(e){var t=n.a.useBasicFetch(d.N.currentUser()),a=n.a.useBasicFetch(r.o.getShareObject(e)),f=function(){if(!a.data||!t.data)return null;switch(a.data.objectTypeId){case c.E.Video:return m.R.publicVideo(a.data.objectId,e);case c.E.Clip:return i.e.publicClip(a.data.objectId,e);case c.E.Interactive:return o.b.publicInteractiveMetadata(a.data.objectId,e);case c.E.Playlist:return s.C.getSharedPlaylist(a.data.objectId,e);case c.E.Subject:return l.x.classification(a.data.objectId,t.data.id);case c.E.Series:return u.J.sharedSeries(a.data.objectId,e)}}();return n.a.useBasicFetch(f).data}},83421:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(32735),r=a(54610),c=a(4594),l=a(67453),i=a(99742);const o={left:"vIypY",leftTextImage:"YViNj",right:"MkD4u",blur:"X6mCh",imageContainer:"bc7kz",imagePosition:"JOhEj",image:"Ef2QR",thumbnail:"Gdurb",tallposter:"fjVNK",cover:"o3j31",linksContainer:"AT9Dk"};function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,c,l,i=[],o=!0,s=!1;try{if(c=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=c.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(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 d=[{bgUrl:i.W.LaunchPad.BG_1},{bgUrl:i.W.LaunchPad.BG_2},{bgUrl:i.W.LaunchPad.BG_3},{bgUrl:i.W.LaunchPad.BG_4},{bgUrl:i.W.LaunchPad.BG_5}];function m(e){switch(e){case c.E.Video:case c.E.Interactive:case c.E.Clip:return o.thumbnail;case c.E.Subject:case c.E.Playlist:return o.cover;case c.E.Series:return o.tallposter;default:return""}}function f(e){var t,a=s(n.useState(!1),2),c=a[0],i=a[1],u=s(n.useState(""),2),f=u[0],b=u[1],g=s(n.useState(""),2),h=g[0],p=g[1],v=l.j.createUrl(e.imageUrl,{size:r.h2.Large}),E=d;return n.useEffect((function(){if(!v&&E&&0!==E.length){var e,t=(e=E)[Math.floor(Math.random()*e.length)];t.bgUrl&&b(t.bgUrl),t.textUrl&&p(t.textUrl)}}),[]),n.useEffect((function(){if(v){var e=new Image;return e.onload=function(){return i(!0)},e.src=v,function(){return e.onload=null}}}),[]),n.createElement("div",{className:"d-flex"},e.leftComponent?e.leftComponent():n.createElement("div",{className:"".concat(o.left," bg-light"),style:{backgroundImage:"url('".concat(f,"')")}},h&&n.createElement("div",{className:o.leftTextImage,style:{backgroundImage:"url('".concat(h,"')")}}),c&&n.createElement(n.Fragment,null,n.createElement("div",{className:o.blur,style:{backgroundImage:"url('".concat(v,"')")}}),n.createElement("div",{className:"".concat(o.imageContainer," ").concat(m(e.objectType))},n.createElement("div",{className:o.imagePosition},n.createElement("img",{className:o.image,src:v,alt:e.title}))))),n.createElement("div",{className:"".concat(o.right," bg-white d-flex flex-column")},n.createElement("div",{className:"position-absolute d-flex align-items-center ".concat(o.linksContainer)},null===(t=e.links)||void 0===t?void 0:t.map((function(e,t){return e.hide?n.createElement(n.Fragment,{key:t}):n.createElement("a",{key:t,href:e.url,className:"info-link fw-semibold",onClick:e.onClick},e.text)}))),e.children))}}}]);
|