@clickview/lite 0.36.0 → 0.36.2
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 +1 -1
- package/dist/scripts/1316-3b78ae90ef-lite.chunk.js +1 -0
- package/dist/scripts/1519-5c21eee079-lite.chunk.js +1 -0
- package/dist/scripts/{1526-eda6832e12-lite.chunk.js → 1526-0f72117fdc-lite.chunk.js} +1 -1
- package/dist/scripts/{1581-c8b514e700-lite.chunk.js → 1581-9b60e699ee-lite.chunk.js} +1 -1
- package/dist/scripts/{1672-477ad27e45-lite.chunk.js → 1672-9ae25f79a6-lite.chunk.js} +1 -1
- package/dist/scripts/{1750-82cf9361fb-lite.chunk.js → 1750-d677c82b93-lite.chunk.js} +1 -1
- package/dist/scripts/{1913-6117995be8-lite.chunk.js → 1913-43df0909bf-lite.chunk.js} +1 -1
- package/dist/scripts/1919-f05344431a-lite.chunk.js +1 -0
- package/dist/scripts/2188-174de868f2-lite.chunk.js +1 -0
- package/dist/scripts/{2208-8752ddeb01-lite.chunk.js → 2208-5d63d28256-lite.chunk.js} +1 -1
- package/dist/scripts/2235-b860a77f30-lite.chunk.js +1 -0
- package/dist/scripts/2261-820480df8d-lite.chunk.js +1 -0
- package/dist/scripts/{2279-d09cf05062-lite.chunk.js → 2279-f9d0768764-lite.chunk.js} +1 -1
- package/dist/scripts/{2408-04112a0ed3-lite.chunk.js → 2408-1c0420cd0f-lite.chunk.js} +1 -1
- package/dist/scripts/{268-3513266caf-lite.chunk.js → 268-0982a108d8-lite.chunk.js} +1 -1
- package/dist/scripts/{2703-6652948b3d-lite.chunk.js → 2703-dacf5ee1d8-lite.chunk.js} +2 -2
- package/dist/scripts/{2767-299f58bb17-lite.chunk.js → 2767-7532ad0f94-lite.chunk.js} +1 -1
- package/dist/scripts/{287-251e42ad52-lite.chunk.js → 287-a1818f9bf8-lite.chunk.js} +1 -1
- package/dist/scripts/{3020-e6ec52d6b9-lite.chunk.js → 3020-715b046c67-lite.chunk.js} +1 -1
- package/dist/scripts/{316-0c68716c18-lite.chunk.js → 316-d1a5484ee3-lite.chunk.js} +1 -1
- package/dist/scripts/3216-d62de73736-lite.chunk.js +1 -0
- package/dist/scripts/{3237-4d6fd8d721-lite.chunk.js → 3237-5fcc546b28-lite.chunk.js} +1 -1
- package/dist/scripts/355-f5816bab06-lite.chunk.js +1 -0
- package/dist/scripts/3645-d1313ec6dc-lite.chunk.js +2 -0
- package/dist/scripts/3654-91094bc6ab-lite.chunk.js +1 -0
- package/dist/scripts/3667-edacb1adec-lite.chunk.js +2 -0
- package/dist/scripts/3728-51b81bfa83-lite.chunk.js +1 -0
- package/dist/scripts/3836-9906ead671-lite.chunk.js +1 -0
- package/dist/scripts/3848-449dd2f5c7-lite.chunk.js +1 -0
- package/dist/scripts/3966-ccf16c94d8-lite.chunk.js +1 -0
- package/dist/scripts/{4032-ad48f98700-lite.chunk.js → 4032-26ca5f363d-lite.chunk.js} +1 -1
- package/dist/scripts/407-9308ebdfdb-lite.chunk.js +2 -0
- package/dist/scripts/414-50eeedf502-lite.chunk.js +1 -0
- package/dist/scripts/{4210-0bc465eb67-lite.chunk.js → 4210-7ff100fda6-lite.chunk.js} +1 -1
- package/dist/scripts/4393-6ec554cc38-lite.chunk.js +1 -0
- package/dist/scripts/4436-4735d2de37-lite.chunk.js +1 -0
- package/dist/scripts/4441-1ce1dfb887-lite.chunk.js +2 -0
- package/dist/scripts/4612-f61cc8757a-lite.chunk.js +1 -0
- package/dist/scripts/4617-7342e91fe1-lite.chunk.js +1 -0
- package/dist/scripts/4676-f42625f630-lite.chunk.js +2 -0
- package/dist/scripts/{4690-e9b4d6108b-lite.chunk.js → 4690-1a0ed4a011-lite.chunk.js} +1 -1
- package/dist/scripts/{4753-d8e01a7af9-lite.chunk.js → 4753-bc445c1167-lite.chunk.js} +1 -1
- package/dist/scripts/4956-65a6d22162-lite.chunk.js +1 -0
- package/dist/scripts/5041-08eb711e53-lite.chunk.js +1 -0
- package/dist/scripts/{5143-56be0b0492-lite.chunk.js → 5143-8ad2cd9a86-lite.chunk.js} +1 -1
- package/dist/scripts/5177-c2ee8e5e62-lite.chunk.js +2 -0
- package/dist/scripts/{5271-da40b4f079-lite.chunk.js → 5271-1af494d9bd-lite.chunk.js} +1 -1
- package/dist/scripts/5442-82e8147edc-lite.chunk.js +2 -0
- package/dist/scripts/{5622-ec86230254-lite.chunk.js → 5622-2f5f33f31b-lite.chunk.js} +2 -2
- package/dist/scripts/{5940-d380295b7d-lite.chunk.js → 5940-c6c480e93b-lite.chunk.js} +1 -1
- package/dist/scripts/5965-24f708ac5a-lite.chunk.js +1 -0
- package/dist/scripts/5986-f52ce07dda-lite.chunk.js +1 -0
- package/dist/scripts/6086-ab856f75f4-lite.chunk.js +2 -0
- package/dist/scripts/615-0a32f1718e-lite.chunk.js +1 -0
- package/dist/scripts/6330-f92aca3b84-lite.chunk.js +1 -0
- package/dist/scripts/6368-eb06a0ad34-lite.chunk.js +1 -0
- package/dist/scripts/6532-19e258fc3e-lite.chunk.js +1 -0
- package/dist/scripts/6572-d500d16bea-lite.chunk.js +1 -0
- package/dist/scripts/{6683-6c73d08b10-lite.chunk.js → 6683-1f019395b5-lite.chunk.js} +1 -1
- package/dist/scripts/{6788-7c9e54bb74-lite.chunk.js → 6788-7805c988fb-lite.chunk.js} +1 -1
- package/dist/scripts/6801-be6a885497-lite.chunk.js +1 -0
- package/dist/scripts/6823-55bb7ea39d-lite.chunk.js +2 -0
- package/dist/scripts/{6891-8f643cb84b-lite.chunk.js → 6891-ed89dc9a1e-lite.chunk.js} +1 -1
- package/dist/scripts/6896-e10e31b0be-lite.chunk.js +2 -0
- package/dist/scripts/7017-c28af137aa-lite.chunk.js +2 -0
- package/dist/scripts/{7020-0bd1bd792e-lite.chunk.js → 7020-f566692803-lite.chunk.js} +1 -1
- package/dist/scripts/7052-e3cdaf2705-lite.chunk.js +2 -0
- package/dist/scripts/{7072-e5581f0660-lite.chunk.js → 7072-a42ba147b6-lite.chunk.js} +2 -2
- package/dist/scripts/7117-823b47ea37-lite.chunk.js +1 -0
- package/dist/scripts/{7119-aa44eac363-lite.chunk.js → 7119-55c151dbd0-lite.chunk.js} +1 -1
- package/dist/scripts/7178-08d7d5b8f9-lite.chunk.js +1 -0
- package/dist/scripts/7205-9e7a21b8fb-lite.chunk.js +1 -0
- package/dist/scripts/{7221-d71ae05428-lite.chunk.js → 7221-f5d0743e30-lite.chunk.js} +2 -2
- package/dist/scripts/7288-3d3041485c-lite.chunk.js +1 -0
- package/dist/scripts/{7351-5cb5ec25ae-lite.chunk.js → 7351-cf211ef2be-lite.chunk.js} +1 -1
- package/dist/scripts/7506-75116824b9-lite.chunk.js +1 -0
- package/dist/scripts/{7540-2694a96451-lite.chunk.js → 7540-419fef286c-lite.chunk.js} +1 -1
- package/dist/scripts/{7555-3d6fa65b58-lite.chunk.js → 7555-e07c20aa0d-lite.chunk.js} +1 -1
- package/dist/scripts/{7703-6db81722e0-lite.chunk.js → 7703-129b1e1e3a-lite.chunk.js} +1 -1
- package/dist/scripts/7726-f8254bfae5-lite.chunk.js +1 -0
- package/dist/scripts/8046-7eb3d64095-lite.chunk.js +1 -0
- package/dist/scripts/{8323-d72038b720-lite.chunk.js → 8323-e2892d3bed-lite.chunk.js} +1 -1
- package/dist/scripts/{8466-627dcf6218-lite.chunk.js → 8466-28b234fa06-lite.chunk.js} +1 -1
- package/dist/scripts/{8621-667296796a-lite.chunk.js → 8621-33444f5967-lite.chunk.js} +1 -1
- package/dist/scripts/8759-82103294ce-lite.chunk.js +1 -0
- package/dist/scripts/8763-8fc868e00e-lite.chunk.js +1 -0
- package/dist/scripts/{8771-fdb379457c-lite.chunk.js → 8771-4f43107eb8-lite.chunk.js} +1 -1
- package/dist/scripts/8834-bb079c32a4-lite.chunk.js +1 -0
- package/dist/scripts/{8905-7e47ba1360-lite.chunk.js → 8905-b20846e78c-lite.chunk.js} +1 -1
- package/dist/scripts/{9016-3aafc7c4a4-lite.chunk.js → 9016-68a0088483-lite.chunk.js} +1 -1
- package/dist/scripts/{9118-43d2bf9226-lite.chunk.js → 9118-fa90cbd0e5-lite.chunk.js} +1 -1
- package/dist/scripts/9226-81363cd855-lite.chunk.js +1 -0
- package/dist/scripts/9230-b5f75f4b25-lite.chunk.js +2 -0
- package/dist/scripts/9230-b5f75f4b25-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/9242-1c8f6cce62-lite.chunk.js +1 -0
- package/dist/scripts/9254-130731e6f1-lite.chunk.js +1 -0
- package/dist/scripts/9433-ccb1650cbb-lite.chunk.js +1 -0
- package/dist/scripts/{9657-8fd569479f-lite.chunk.js → 9657-41ca234a74-lite.chunk.js} +1 -1
- package/dist/scripts/{9660-bec1db5818-lite.chunk.js → 9660-2ac4fe421e-lite.chunk.js} +1 -1
- package/dist/scripts/9704-b417ccbb66-lite.chunk.js +1 -0
- package/dist/scripts/{9719-32b0388f01-lite.chunk.js → 9719-c890a68331-lite.chunk.js} +1 -1
- package/dist/scripts/9719-c890a68331-lite.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/bundle-ac8f244a93.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +62 -62
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +25 -25
- package/typings/libs/draft-convert.d.ts +3 -3
- package/typings/libs/google-api.d.ts +93 -93
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/react-table-config.d.ts +138 -138
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +13 -13
- package/dist/scripts/1316-0707504efc-lite.chunk.js +0 -1
- package/dist/scripts/1519-daa7327e00-lite.chunk.js +0 -1
- package/dist/scripts/1919-5393388d59-lite.chunk.js +0 -1
- package/dist/scripts/2188-eb2a129a0c-lite.chunk.js +0 -1
- package/dist/scripts/2235-02fa6854c8-lite.chunk.js +0 -1
- package/dist/scripts/2261-93fd134a56-lite.chunk.js +0 -1
- package/dist/scripts/3216-9caff8afdd-lite.chunk.js +0 -1
- package/dist/scripts/355-3eb0659bd4-lite.chunk.js +0 -1
- package/dist/scripts/3645-179c1de58b-lite.chunk.js +0 -2
- package/dist/scripts/3654-96999f107e-lite.chunk.js +0 -1
- package/dist/scripts/3667-fff988dddb-lite.chunk.js +0 -2
- package/dist/scripts/3728-8f767eeedd-lite.chunk.js +0 -1
- package/dist/scripts/3836-060f903a23-lite.chunk.js +0 -1
- package/dist/scripts/3848-a3b274c11c-lite.chunk.js +0 -1
- package/dist/scripts/3966-985e03cb46-lite.chunk.js +0 -1
- package/dist/scripts/407-d836e312b8-lite.chunk.js +0 -2
- package/dist/scripts/4393-bb6bbe6eb1-lite.chunk.js +0 -1
- package/dist/scripts/4436-b92639529d-lite.chunk.js +0 -1
- package/dist/scripts/4441-58bb0c8a0e-lite.chunk.js +0 -2
- package/dist/scripts/4612-cfc046e6e9-lite.chunk.js +0 -1
- package/dist/scripts/4617-d497047b0b-lite.chunk.js +0 -1
- package/dist/scripts/4956-340c8b5771-lite.chunk.js +0 -1
- package/dist/scripts/5041-8e820ed93c-lite.chunk.js +0 -1
- package/dist/scripts/5177-fea828bbdb-lite.chunk.js +0 -2
- package/dist/scripts/5442-b859040432-lite.chunk.js +0 -2
- package/dist/scripts/5965-395234cb2b-lite.chunk.js +0 -1
- package/dist/scripts/5986-8f05456911-lite.chunk.js +0 -1
- package/dist/scripts/6086-06d5d40e66-lite.chunk.js +0 -2
- package/dist/scripts/615-0322d641a3-lite.chunk.js +0 -1
- package/dist/scripts/6330-0edd6eac5c-lite.chunk.js +0 -1
- package/dist/scripts/6368-744497853e-lite.chunk.js +0 -1
- package/dist/scripts/6532-5bc872b460-lite.chunk.js +0 -1
- package/dist/scripts/6572-c4534d0d35-lite.chunk.js +0 -1
- package/dist/scripts/6725-2c4851047d-lite.chunk.js +0 -1
- package/dist/scripts/6736-7223de888f-lite.chunk.js +0 -2
- package/dist/scripts/6801-a957a1b187-lite.chunk.js +0 -1
- package/dist/scripts/6823-b2eb2f9837-lite.chunk.js +0 -2
- package/dist/scripts/6896-7e04f73dcd-lite.chunk.js +0 -1
- package/dist/scripts/7017-d02a197561-lite.chunk.js +0 -1
- package/dist/scripts/7052-7a62e4f75e-lite.chunk.js +0 -2
- package/dist/scripts/7117-1da2d8e101-lite.chunk.js +0 -1
- package/dist/scripts/7178-36185f322a-lite.chunk.js +0 -1
- package/dist/scripts/7205-20ace43ff9-lite.chunk.js +0 -1
- package/dist/scripts/7288-8fca167593-lite.chunk.js +0 -1
- package/dist/scripts/7506-d91786f020-lite.chunk.js +0 -1
- package/dist/scripts/7726-ba49ddf33f-lite.chunk.js +0 -1
- package/dist/scripts/8046-85f5376494-lite.chunk.js +0 -1
- package/dist/scripts/8759-d8e5c29a2e-lite.chunk.js +0 -1
- package/dist/scripts/8772-80fa99f8f4-lite.chunk.js +0 -1
- package/dist/scripts/8834-ed4a58675e-lite.chunk.js +0 -1
- package/dist/scripts/9226-ac0d7f7e2b-lite.chunk.js +0 -1
- package/dist/scripts/9230-c680de51dd-lite.chunk.js +0 -2
- package/dist/scripts/9242-3453684c9f-lite.chunk.js +0 -1
- package/dist/scripts/9254-a56914f3fc-lite.chunk.js +0 -1
- package/dist/scripts/9433-255ea943a7-lite.chunk.js +0 -1
- package/dist/scripts/9704-cfcc679915-lite.chunk.js +0 -1
- package/dist/scripts/bundle-4352f30225.min.js +0 -2
- /package/dist/css/{6725-lite-db1dbcbd39.chunk.css → 414-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/css/{8772-lite-db1dbcbd39.chunk.css → 8763-lite-db1dbcbd39.chunk.css} +0 -0
- /package/dist/scripts/{1461-dfff501bca-lite.chunk.js → 1461-249b97f692-lite.chunk.js} +0 -0
- /package/dist/scripts/{1672-477ad27e45-lite.chunk.js.LICENSE.txt → 1672-9ae25f79a6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1725-e5ea09eb1e-lite.chunk.js → 1725-0e284a32f3-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-14c0a7067f-lite.chunk.js → 1891-dd253c3378-lite.chunk.js} +0 -0
- /package/dist/scripts/{2452-446607a894-lite.chunk.js → 2452-f96e548d17-lite.chunk.js} +0 -0
- /package/dist/scripts/{2703-6652948b3d-lite.chunk.js.LICENSE.txt → 2703-dacf5ee1d8-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3311-01c48c762e-lite.chunk.js → 3311-24c70f911f-lite.chunk.js} +0 -0
- /package/dist/scripts/{3645-179c1de58b-lite.chunk.js.LICENSE.txt → 3645-d1313ec6dc-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3667-fff988dddb-lite.chunk.js.LICENSE.txt → 3667-edacb1adec-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{407-d836e312b8-lite.chunk.js.LICENSE.txt → 407-9308ebdfdb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4182-86ebd7cc85-lite.chunk.js → 4182-6869dfda31-lite.chunk.js} +0 -0
- /package/dist/scripts/{4441-58bb0c8a0e-lite.chunk.js.LICENSE.txt → 4441-1ce1dfb887-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5177-fea828bbdb-lite.chunk.js.LICENSE.txt → 4676-f42625f630-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5442-b859040432-lite.chunk.js.LICENSE.txt → 5177-c2ee8e5e62-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5306-04f0322aa4-lite.chunk.js → 5306-19a098a353-lite.chunk.js} +0 -0
- /package/dist/scripts/{5622-ec86230254-lite.chunk.js.LICENSE.txt → 5442-82e8147edc-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5606-adb8a4564d-lite.chunk.js → 5606-68f1afd060-lite.chunk.js} +0 -0
- /package/dist/scripts/{6086-06d5d40e66-lite.chunk.js.LICENSE.txt → 5622-2f5f33f31b-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-855b112687-lite.chunk.js → 5877-1dc9ca4f2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6683-6c73d08b10-lite.chunk.js.LICENSE.txt → 6086-ab856f75f4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6290-9cfcecf418-lite.chunk.js → 6290-b8e7be07c0-lite.chunk.js} +0 -0
- /package/dist/scripts/{6450-ccd62009a0-lite.chunk.js → 6450-397ca8ed54-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-19f0427fcc-lite.chunk.js → 6604-d331808398-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-7223de888f-lite.chunk.js.LICENSE.txt → 6683-1f019395b5-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6746-85bf67464e-lite.chunk.js → 6746-a32d22602e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6823-b2eb2f9837-lite.chunk.js.LICENSE.txt → 6823-55bb7ea39d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7052-7a62e4f75e-lite.chunk.js.LICENSE.txt → 6896-e10e31b0be-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7072-e5581f0660-lite.chunk.js.LICENSE.txt → 7017-c28af137aa-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7221-d71ae05428-lite.chunk.js.LICENSE.txt → 7052-e3cdaf2705-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8323-d72038b720-lite.chunk.js.LICENSE.txt → 7072-a42ba147b6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{714-2e1c842a30-lite.chunk.js → 714-851d42f69f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7167-48d515fcfe-lite.chunk.js → 7167-149abadcc3-lite.chunk.js} +0 -0
- /package/dist/scripts/{9230-c680de51dd-lite.chunk.js.LICENSE.txt → 7221-f5d0743e30-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7432-2afa43af27-lite.chunk.js → 7432-0e394c6ee9-lite.chunk.js} +0 -0
- /package/dist/scripts/{7679-8bed680cf6-lite.chunk.js → 7679-939501a815-lite.chunk.js} +0 -0
- /package/dist/scripts/{7818-c81c2d60b9-lite.chunk.js → 7818-a9ab33bdd4-lite.chunk.js} +0 -0
- /package/dist/scripts/{9719-32b0388f01-lite.chunk.js.LICENSE.txt → 8323-e2892d3bed-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8982-12ad6a9e9b-lite.chunk.js → 8982-267320e287-lite.chunk.js} +0 -0
- /package/dist/scripts/{9016-3aafc7c4a4-lite.chunk.js.LICENSE.txt → 9016-68a0088483-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9537-80900593e8-lite.chunk.js → 9537-da73fc8952-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-4352f30225.min.js.LICENSE.txt → bundle-ac8f244a93.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 7017-c28af137aa-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7017],{6736:(t,e,r)=>{r.d(e,{b:()=>w});var n=r(39202),o=r(97395),i=r(81886),c=r(23481),a=r(47663);function u(t){return u="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},u(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:String(e)}function f(t,e,r){return e=p(e),function(t,e){if(e&&("object"===u(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)}(t,h()?Reflect.construct(e,r||[],p(t).constructor):e.apply(t,r))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var d="embed.protectiveBrowserSettingsError",v=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=f(this,e,[c.T.getPhrase(d,"title")])).url=t,r}var r,n;return 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)}(e,t),r=e,(n=[{key:"name",get:function(){return"ProtectiveBrowserSettingsError"}},{key:"dialogOptions",get:function(){return{title:c.T.getPhrase(d,"heading"),text:c.T.getPhrase(d,"description",{url:this.url}),buttons:[{text:c.T.getPhrase(d,"okay"),className:"btn btn-dark",success:!0}]}}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),e}(a.S);function m(t){return m="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},m(t)}function g(){g=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,c=Object.create(i.prototype),a=new I(n||[]);return o(c,"_invoke",{value:j(t,r,a)}),c}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",y="executing",d="completed",v={};function b(){}function w(){}function E(){}var x={};s(x,c,(function(){return this}));var _=Object.getPrototypeOf,k=_&&_(_(N([])));k&&k!==r&&n.call(k,c)&&(x=k);var S=E.prototype=b.prototype=Object.create(x);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,c,a){var u=f(t[o],t,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==m(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,a)}),(function(t){r("throw",t,c,a)})):e.resolve(l).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,a)}))}a(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function j(e,r,n){var o=h;return function(i,c){if(o===y)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw c;return{value:t,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var u=P(a,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?d:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=d,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var c=i.arg;return c?c.done?(r[e.resultName]=c.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):c:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function T(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 I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(m(e)+" is not iterable")}return w.prototype=E,o(S,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,s(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},L(O.prototype),s(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var c=new O(l(t,r,n,o),i);return e.isGeneratorFunction(r)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},L(S),s(S,u,"Generator"),s(S,c,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,I.prototype={constructor:I,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 r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),s=n.call(c,"finallyLoc");if(u&&s){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(c)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function b(t,e,r,n){var o=window.open(t,"_blank",function(t){var e="sm"===t?550:screen.availWidth,r="sm"===t?750:screen.availWidth,n=parseInt(screen.availWidth/2-e/2+""),o=parseInt(screen.availHeight/2-r/2+"");return["width=".concat(e),"height=".concat(r),"status","resizable","left=".concat(n),"top=".concat(o),"screenX=".concat(n),"screenY=".concat(o),"scrollbars=yes"].join(",")}(n));if(o)return E(o,r),o;i.Q.Ry.throw(new v(e))}var w={renderSignInPopup:function(t){var e=t.primaryUrl,i=t.shareId,c=t.isMicrosoftTeams,a=t.customerId,u=t.onClose,s=t.redirectUrl,l=void 0===s?"/embed-login-success":s,f=t.size,h=void 0===f?"sm":f,p=o._.safeUrlConcat(e,"/login"),y={redirectUrl:l,showSignUp:!0};i&&(y.shareId=i),a&&(y.customerId=a);var d=o._.urlBuilder(p,y);if(!c)return b(d,e,u,h);!function(t){r.e(4777).then(r.t.bind(r,94777,23)).then((function(e){e.initialize(),window.setTimeout((function(){e.authentication.authenticate({url:t,successCallback:function(){n.Ab.Reload()},failureCallback:function(){n.Ab.Reload()},height:1e3,width:1e3})}),0)}))}(d)},renderSignUpPopup:function(t){var e=t.primaryUrl,r=t.onClose,n=t.size,i=void 0===n?"sm":n;return b(o._.safeUrlConcat(e,"/sign-up"),e,r,i)},canUseCookies:function(){return docCookies.setItem("_cookieTest","1",10,null,null,!0,"none"),!!docCookies.getItem("_cookieTest")||(docCookies.setItem("_cookieTest","1",10),!!docCookies.getItem("_cookieTest"))},closePopup:function(t){return e=this,n=void 0,o=void 0,i=g().mark((function e(){var n,o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=function(){try{n.initialize((function(){n.authentication.notifySuccess()}))}catch(t){}},e.next=3,r.e(4777).then(r.t.bind(r,94777,23));case 3:n=e.sent,t?(o(),window.close()):window.setTimeout((function(){o(),window.close()}),1e3),window.opener.postMessage({type:"authenticated"},"*");case 6:case"end":return e.stop()}}),e)})),new(o||(o=Promise))((function(t,r){function c(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i.throw(t))}catch(t){r(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(c,a)}u((i=i.apply(e,n||[])).next())}));var e,n,o,i}};function E(t,e){setTimeout((function(){t&&(!1===t.closed?E(t,e):e())}),500)}},17017:(t,e,r)=>{r.r(e),r.d(e,{EmbedLoginSuccessView:()=>l});var n=r(32735),o=r(2786),i=r(83345);const c={logo:"EtNtX"};var a="embed.embedLoginSuccess";function u(){return n.createElement("div",{className:"mt-5"},n.createElement("div",{className:"".concat(c.logo," mx-auto")},n.createElement(o.$S,null)),n.createElement("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:"/images/success-tick.png",style:{maxWidth:"19rem"}}),n.createElement("p",{className:"text-center mb-4 mt-2"},n.createElement(i.x,{namespace:a,phrase:"success"})))}var s=r(6736);function l(){return n.useEffect((function(){s.b.closePopup()}),[]),n.createElement(u,null)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7020],{71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(32735),a=n(80247),i=n(10288),l=n(83914),o=n(35223);const s={container:"VwD1b",spinner:"eJ85e"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=i.YD(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat(s.container),ref:d},e.isFetching?r.createElement(a.Z,{as:"span",animation:"border",role:"status",className:s.spinner}):r.createElement(l.x,{svgName:o.vn.ChevronDown,className:"svg-container cursor-pointer",size:l.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},60115:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(32735),a=n(50242),i=n(79014),l=400,o=n(45719);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,c,u,d){var m,v,f,p,h=(m=(0,r.useState)(0),v=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(m,v)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(m,v)||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.")}()),g=h[0],y=h[1],E=t,b=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),c,u);return f={fetchNextPage:function(){if(t&&e&&b)return y((function(e){return e+1})),E(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d},p=function(){if(!f.isFetching){if(f.scrollContainer){var e=f.scrollContainer;if(e.getBoundingClientRect().height+e.scrollTop<e.scrollHeight-l)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-l)return;f.fetchNextPage()}},(0,r.useEffect)((function(){var e=i.q.throttle(p,200),t=f.scrollContainer||window;return f.hasMore&&t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}),[f.hasMore,f.fetchNextPage,f.scrollContainer]),(0,r.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(E(),y((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&i.q.isFunction(n)){var r=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(g,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems,hasFirstPageCompleted:null==b?void 0:b.hasFirstPageCompleted}}},77453:(e,t,n)=>{n.r(t),n.d(t,{MyVideosView:()=>oe});var r=n(32735),a=n(37802),i=n(70680),l=n(23481),o=n(20354),s=n(28400),c=n(65858),u=n(73518),d=n(83834),m=n(65403),v=n(10874),f=n(37395),p=n(83345),h=n(74696),g=n(30254),y=n(4632),E=n(51365),b=n(16714),A=n(1666),k=n(31949),C=n(299),F=n(97037),w=n(91286),V=n(22902),x=n(79612),N=n(35223),S=n(67753),L=n(31908),j=n(35949),M=n(14070),O=n(97291),I=n(44110),P=n(97816),D=n(98860),T=n(12617),B=n(45967),H=n(65202),R=n(74796),Z=n(14305),_=n(61970),U=n(82431),Y=n(26859),$=n(18097);const K={uploadingList:"wg7hV"};var G="default.myVideos";function W(e){var t,n,a,W,X,q,J,z,Q,ee;(0,x.M)({title:l.T.getPhrase(G,"pageTitle")});var te=(0,i.I0)(),ne=(0,F.c)(c.LZ.VideoThumbnail),re=ne.setFavourite,ae=ne.canFavourite,ie=(0,V.T)(),le=ie.hasPermissions,oe=ie.hasLocalPermissions,se=(0,B.q)().handleDragEnd,ce=o.a.useBasicFetch(k.N.currentUser()),ue=o.a.useBasicFetch((null===(t=ce.data)||void 0===t?void 0:t.isAuthenticated)&&A.h.yearGroups(ce.data.customerId)),de=o.a.useBasicFetch((null===(n=ce.data)||void 0===n?void 0:n.isAuthenticated)&&k.N.workspace()),me=null===(W=null===(a=de.data)||void 0===a?void 0:a.categoryTree)||void 0===W?void 0:W.id,ve=(0,D.P)(me),fe=(0,_.y)(),pe=(0,_.W)(null===(X=de.data)||void 0===X?void 0:X.id,null===(q=de.data)||void 0===q?void 0:q.categoryTree.id),he=(0,I.i)(),ge=(0,R.f)(),ye=function(e,t){return de.data?T.E.videos(me,e,t):null},Ee=!oe(b.E.ViewMyVideosLanding)&&ce.hasCompleted,be=o.a.useBasicFetch(Ee&&ye(e.cursor,e.typeFilter));(0,w.v)(be);var Ae=(0,H.J)({onRemove:function(e,t){return o.a.getFetch(te)(ye(e,t))}}),ke=Ae.uploadingVideos,Ce=Ae.onClickAlternate,Fe=Ae.onClickDelete,we=Ae.processingIds,Ve=null===(z=null===(J=be.data)||void 0===J?void 0:J.data)||void 0===z?void 0:z.filter((function(e){return!we[e.id]}));(0,P.V)(null==Ve?void 0:Ve.filter(L.M.isVideo),{hasCurriculumLinks:!0});var xe=(0,C.X)(Ve);return oe(b.E.ViewMyVideosLanding)?r.createElement(Z.V,null):r.createElement(E.M.Provider,{value:fe},r.createElement("div",{className:"px-3"},r.createElement("div",{className:"d-flex justify-content-between"},r.createElement("h1",{className:"h2 mb-0"},r.createElement(p.x,{namespace:G,phrase:"header"})),r.createElement("div",null,r.createElement("div",{className:"d-sm-none"},r.createElement(Y.c,{canUpload:le(b.C.UploadVideo)})),r.createElement("div",{className:"ms-2 d-md-inline-block d-none"},r.createElement(v.h,{svgName:N.vn.Plus,appLink:{application:O.O.MY_VIDEOS,action:M.e.MyVideos.ADD_FOLDER,args:[null===(Q=de.data)||void 0===Q?void 0:Q.id]},className:"btn btn-outline-dark"},r.createElement(p.x,{namespace:G,phrase:"addFolder"}))))),r.createElement("hr",null),r.createElement(u.p,{handleDragEnd:se,dragOverlayComponent:j.U,source:de.data},r.createElement("div",null,!(null==ve?void 0:ve.hasCompleted)&&r.createElement(m.i,null),!!(null===(ee=null==ve?void 0:ve.items)||void 0===ee?void 0:ee.length)&&r.createElement("div",{className:"mx-n2"},r.createElement(d.$,{folders:ve.items,getAppLink:function(e){return{application:O.O.MY_VIDEOS,action:M.e.MyVideos.MY_VIDEOS_FOLDER,args:[e.id,s.m.slugify(e.name)]}},expandFolders:!1,getFolderActions:function(e){return ge("folder",e)},drag:!0,drop:!0})),r.createElement(g.X,{allowBulkAction:!0,allowFilter:!0,checkboxHelper:xe,getVideosBulkAction:pe,locationContext:c.LZ.MyVideos,typeFilter:e.typeFilter}),!!(null==ke?void 0:ke.length)&&r.createElement("div",{className:"position-relative ".concat(K.uploadingList)},ke.map((function(e){return r.createElement($.X,{item:e,onClickAlternate:Ce,onClickDelete:Fe,key:e.id,allowBulkAction:!0})}))),function(){var t,n;return ce.data&&be.data?Ve.length||ke.length?r.createElement(r.Fragment,null,r.createElement(y.E4,{videos:Ve,yearGroups:ue.data,getVideoAppLink:S.W.getAppLink,getSeriesAppLink:U.j.getSeriesAppLink,setFavourite:re,canFavourite:ae,presentationAudiences:he.data,canRemovePrivateVideos:!0,allowBulkAction:!0,getVideosBulkAction:pe,typeFilter:e.typeFilter,checkboxHelper:xe,drag:!0}),!!(null===(n=null===(t=be.data)||void 0===t?void 0:t.pagination)||void 0===n?void 0:n.cursors)&&r.createElement(f.t,{appLink:{action:M.e.MyVideos.MY_VIDEOS,application:O.O.MY_VIDEOS,params:{cursor:e.cursor,previous:e.previous,type:e.typeFilter}},cursors:{next:be.data.pagination.cursors.next,previous:e.cursor},buttonVariant:"outline-dark",className:"py-2 float-end",prevHack:!0})):r.createElement(Z.K,null):r.createElement("div",{className:"mx-n2"},r.createElement(h.S,{allowBulkActions:!0}))}()))))}var X=n(68610);const q={alert:"hdlVY"};function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e){var t,n,a=e.children,i=(t=r.useState(!localStorage.getItem(e.localStorageKey)),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return J(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)?J(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],o=i[1];return l?r.createElement(X.Z,{className:q.alert,variant:e.variant,onClose:function(){localStorage.setItem(e.localStorageKey,"1"),o(!1)},dismissible:!0},a):r.createElement(r.Fragment,null)}z.defaultProps={variant:"info"};var Q=n(71020),ee=n(94644),te=n(1575),ne=n(69883),re=n(60115),ae=n(62756),ie="default.myVideos";function le(){var e;(0,x.M)({title:l.T.getPhrase(ie,"pageTitle")});var t=(0,ne.Z)(),n=(0,i.I0)(),a=(0,F.c)(c.LZ.VideoThumbnail),s=a.setFavourite,u=a.canFavourite,d=(0,V.T)(),m=d.hasPermissions,v=d.hasLocalPermissions,f=(0,ae.G)().isPlugin,g=o.a.useBasicFetch(k.N.currentUser()),C=o.a.useBasicFetch((null===(e=g.data)||void 0===e?void 0:e.isAuthenticated)&&A.h.yearGroups(g.data.customerId)),w=(0,_.y)(),N=(0,I.i)(),j=function(e){return te.R.myVideos(g.data.id,e)},M=function(e){return o.a.getFetch(n)(j(e))},O=!v(b.E.ViewMyVideosLanding)&&g.hasCompleted,D=(0,re.K)(!!O&&j,M,(function(e,n){if(1===e)return(0,ee.r)(n);t.error(l.T.getPhrase(ie,"error"))})),T=D.items,B=D.hasMore,R=D.isFetching,G=(0,H.J)({onRemove:M}),W=G.uploadingVideos,X=G.onClickAlternate,q=G.onClickDelete,J=G.processingIds,le=null==T?void 0:T.filter((function(e){return!J[e.id]}));return(0,P.V)(null==le?void 0:le.filter(L.M.isVideo),{hasCurriculumLinks:!0}),v(b.E.ViewMyVideosLanding)?r.createElement(Z.V,null):r.createElement(E.M.Provider,{value:w},r.createElement("div",{className:"px-3"},r.createElement("div",{className:"d-flex justify-content-between"},r.createElement("h1",{className:"h2"},r.createElement(p.x,{namespace:ie,phrase:"header"})),r.createElement("div",{className:"d-sm-none"},r.createElement(Y.c,{canUpload:m(b.C.UploadVideo)}))),r.createElement("div",null,r.createElement("p",{className:"h6"},r.createElement(p.x,{namespace:ie,phrase:"description"})),!f&&r.createElement(z,{localStorageKey:"uploadInfoDismissed"},r.createElement(p.x,{namespace:ie,phrase:"alertMessage"}),r.createElement("br",null),r.createElement("small",null,r.createElement(p.x,{namespace:ie,phrase:"alertSecondaryMessage"}))),!!(null==W?void 0:W.length)&&r.createElement("div",{className:"position-relative ".concat(K.uploadingList)},W.map((function(e){return r.createElement($.X,{item:e,onClickAlternate:X,onClickDelete:q,key:e.id})}))),g.data&&le?le.length||W.length?r.createElement(r.Fragment,null,r.createElement(y.E4,{videos:le,yearGroups:C.data,getVideoAppLink:S.W.getAppLink,getSeriesAppLink:U.j.getSeriesAppLink,setFavourite:s,canFavourite:u,presentationAudiences:N.data,canRemovePrivateVideos:!0}),(B||R)&&r.createElement(Q._,{isFetching:R,fetchNext:M})):r.createElement(Z.K,null):r.createElement(h.S,null))))}function oe(e){return(0,a.r)(null).myVideosFolders?r.createElement(W,{cursor:e.cursor,previous:e.previous,typeFilter:e.typeFilter}):r.createElement(le,null)}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(53806),a={userVideoHistory:function(e,t,n,a){var i="video:history",l="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),l+="?cursor=".concat(e)),{key:i,url:l,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},97816:(e,t,n)=>{n.d(t,{V:()=>v});var r=n(32735),a=n(20354),i=n(21750),l=n(63419),o=n(31949),s=n(1575),c=n(87821);function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function v(e){var t,n,d,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},m),v),p=f.ratings,h=f.favourites,g=f.watchHistory,y=f.hasCurriculumLinks,E=a.a.useBasicFetch(o.N.currentUser()),b=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),A=E.data;t=r.useMemo((function(){if(!(null==A?void 0:A.isAuthenticated))return[];var e=[];return p&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&s.R.videoRatings(b,v.flightNamespace)])),h&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&A&&l.P.isFavourited(A.id,b,v.flightNamespace)])),g&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&A&&c.p.videoHistory(b,v.flightNamespace)])),y&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&i.x.hasCurriculumLinks(b,null,v.flightNamespace)])),e.filter(Boolean)}),[null==b?void 0:b.length]),n=!!e,d=a.a.useGetFetch(),r.useEffect((function(){n&&t.length&&t.forEach((function(e){d(e)}))}),[t.length])}},68610:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(40841),a=n.n(r),i=n(32735),l=n(80638),o=n(36177),s=n(46304),c=n(11425),u=n(74512);const d=(0,c.Z)("h4");d.displayName="DivStyledAsH4";const m=i.forwardRef((({className:e,bsPrefix:t,as:n=d,...r},i)=>(t=(0,s.vE)(t,"alert-heading"),(0,u.jsx)(n,{ref:i,className:a()(e,t),...r}))));m.displayName="AlertHeading";const v=m;var f=n(67901);const p=i.forwardRef((({className:e,bsPrefix:t,as:n=f.Z,...r},i)=>(t=(0,s.vE)(t,"alert-link"),(0,u.jsx)(n,{ref:i,className:a()(e,t),...r}))));p.displayName="AlertLink";const h=p;var g=n(45256),y=n(99125);const E=i.forwardRef(((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:c,className:d,children:m,variant:v="primary",onClose:f,dismissible:p,transition:h=g.Z,...E}=(0,l.Ch)(e,{show:"onClose"}),b=(0,s.vE)(n,"alert"),A=(0,o.Z)((e=>{f&&f(!1,e)})),k=!0===h?g.Z:h,C=(0,u.jsxs)("div",{role:"alert",...k?void 0:E,ref:t,className:a()(d,b,v&&`${b}-${v}`,p&&`${b}-dismissible`),children:[p&&(0,u.jsx)(y.Z,{onClick:A,"aria-label":i,variant:c}),m]});return k?(0,u.jsx)(k,{unmountOnExit:!0,...E,ref:void 0,in:r,children:C}):r?C:null}));E.displayName="Alert";const b=Object.assign(E,{Link:h,Heading:v})}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7020],{71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(32735),a=n(80247),i=n(10288),l=n(83914),o=n(35223);const s={container:"VwD1b",spinner:"eJ85e"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=i.YD(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],m=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&m&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[m,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat(s.container),ref:d},e.isFetching?r.createElement(a.Z,{as:"span",animation:"border",role:"status",className:s.spinner}):r.createElement(l.x,{svgName:o.vn.ChevronDown,className:"svg-container cursor-pointer",size:l.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},60115:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(32735),a=n(50242),i=n(79014),l=400,o=n(45719);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,c,u,d){var m,v,f,p,h=(m=(0,r.useState)(0),v=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(m,v)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(m,v)||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.")}()),g=h[0],y=h[1],E=t,b=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),c,u);return f={fetchNextPage:function(){if(t&&e&&b)return y((function(e){return e+1})),E(b.nextCursor)},hasMore:!!(null==b?void 0:b.nextCursor),isFetching:null==b?void 0:b.isFetching,scrollContainer:d},p=function(){if(!f.isFetching){if(f.scrollContainer){var e=f.scrollContainer;if(e.getBoundingClientRect().height+e.scrollTop<e.scrollHeight-l)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-l)return;f.fetchNextPage()}},(0,r.useEffect)((function(){var e=i.q.throttle(p,200),t=f.scrollContainer||window;return f.hasMore&&t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}),[f.hasMore,f.fetchNextPage,f.scrollContainer]),(0,r.useEffect)((function(){b&&b.shouldInitialFetch&&t&&(E(),y((function(e){return e+1})))}),[null==b?void 0:b.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==b?void 0:b.statusCode)&&i.q.isFunction(n)){var r=+(null===(t=null===(e=b.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(g,b.statusCode)}}),[null==b?void 0:b.statusCode]),{items:null==b?void 0:b.items,hasMore:!!(null==b?void 0:b.nextCursor),nextCursor:null==b?void 0:b.nextCursor,isFetching:null==b?void 0:b.isFetching,totalItems:null==b?void 0:b.totalItems,hasFirstPageCompleted:null==b?void 0:b.hasFirstPageCompleted}}},77453:(e,t,n)=>{n.r(t),n.d(t,{MyVideosView:()=>oe});var r=n(32735),a=n(37802),i=n(70680),l=n(23481),o=n(20354),s=n(28400),c=n(65858),u=n(73518),d=n(83834),m=n(65403),v=n(10874),f=n(37395),p=n(83345),h=n(74696),g=n(30254),y=n(4632),E=n(51365),b=n(16714),A=n(1666),k=n(31949),C=n(299),F=n(97037),w=n(91286),V=n(22902),x=n(79612),N=n(35223),S=n(67753),L=n(31908),j=n(35949),M=n(14070),O=n(97291),I=n(44110),P=n(97816),D=n(98860),T=n(12617),B=n(45967),H=n(65202),R=n(74796),Z=n(14305),_=n(61970),U=n(82431),Y=n(26859),$=n(18097);const K={uploadingList:"wg7hV"};var G="default.myVideos";function W(e){var t,n,a,W,X,q,J,z,Q,ee;(0,x.M)({title:l.T.getPhrase(G,"pageTitle")});var te=(0,i.I0)(),ne=(0,F.c)(c.LZ.VideoThumbnail),re=ne.setFavourite,ae=ne.canFavourite,ie=(0,V.T)(),le=ie.hasPermissions,oe=ie.hasLocalPermissions,se=(0,B.q)().handleDragEnd,ce=o.a.useBasicFetch(k.N.currentUser()),ue=o.a.useBasicFetch((null===(t=ce.data)||void 0===t?void 0:t.isAuthenticated)&&A.h.yearGroups(ce.data.customerId)),de=o.a.useBasicFetch((null===(n=ce.data)||void 0===n?void 0:n.isAuthenticated)&&k.N.workspace()),me=null===(W=null===(a=de.data)||void 0===a?void 0:a.categoryTree)||void 0===W?void 0:W.id,ve=(0,D.P)(me),fe=(0,_.y)(),pe=(0,_.W)(null===(X=de.data)||void 0===X?void 0:X.id,null===(q=de.data)||void 0===q?void 0:q.categoryTree.id),he=(0,I.i)(),ge=(0,R.f)(),ye=function(e,t){return de.data?T.E.videos(me,e,t):null},Ee=!oe(b.E.ViewMyVideosLanding)&&ce.hasCompleted,be=o.a.useBasicFetch(Ee&&ye(e.cursor,e.typeFilter));(0,w.v)(be);var Ae=(0,H.J)({onRemove:function(e,t){return o.a.getFetch(te)(ye(e,t))}}),ke=Ae.uploadingVideos,Ce=Ae.onClickAlternate,Fe=Ae.onClickDelete,we=Ae.processingIds,Ve=null===(z=null===(J=be.data)||void 0===J?void 0:J.data)||void 0===z?void 0:z.filter((function(e){return!we[e.id]}));(0,P.V)(null==Ve?void 0:Ve.filter(L.M.isVideo),{hasCurriculumLinks:!0});var xe=(0,C.X)(Ve);return oe(b.E.ViewMyVideosLanding)?r.createElement(Z.V,null):r.createElement(E.M.Provider,{value:fe},r.createElement("div",{className:"px-3"},r.createElement("div",{className:"d-flex justify-content-between"},r.createElement("h1",{className:"h2 mb-0"},r.createElement(p.x,{namespace:G,phrase:"header"})),r.createElement("div",null,r.createElement("div",{className:"d-sm-none"},r.createElement(Y.c,{canUpload:le(b.C.UploadVideo)})),r.createElement("div",{className:"ms-2 d-md-inline-block d-none"},r.createElement(v.h,{svgName:N.vn.Plus,appLink:{application:O.O.MY_VIDEOS,action:M.e.MyVideos.ADD_FOLDER,args:[null===(Q=de.data)||void 0===Q?void 0:Q.id]},className:"btn btn-outline-dark"},r.createElement(p.x,{namespace:G,phrase:"addFolder"}))))),r.createElement("hr",null),r.createElement(u.p,{handleDragEnd:se,dragOverlayComponent:j.U,source:de.data},r.createElement("div",null,!(null==ve?void 0:ve.hasCompleted)&&r.createElement(m.i,null),!!(null===(ee=null==ve?void 0:ve.items)||void 0===ee?void 0:ee.length)&&r.createElement("div",{className:"mx-n2"},r.createElement(d.$,{folders:ve.items,getAppLink:function(e){return{application:O.O.MY_VIDEOS,action:M.e.MyVideos.MY_VIDEOS_FOLDER,args:[e.id,s.m.slugify(e.name)]}},expandFolders:!1,getFolderActions:function(e){return ge("folder",e)},drag:!0,drop:!0})),r.createElement(g.X,{allowBulkAction:!0,allowFilter:!0,checkboxHelper:xe,getVideosBulkAction:pe,locationContext:c.LZ.MyVideos,typeFilter:e.typeFilter}),!!(null==ke?void 0:ke.length)&&r.createElement("div",{className:"position-relative ".concat(K.uploadingList)},ke.map((function(e){return r.createElement($.X,{item:e,onClickAlternate:Ce,onClickDelete:Fe,key:e.id,allowBulkAction:!0})}))),function(){var t,n;return ce.data&&be.data?Ve.length||ke.length?r.createElement(r.Fragment,null,r.createElement(y.E4,{videos:Ve,yearGroups:ue.data,getVideoAppLink:S.W.getAppLink,getSeriesAppLink:U.j.getSeriesAppLink,setFavourite:re,canFavourite:ae,presentationAudiences:he.data,canRemovePrivateVideos:!0,allowBulkAction:!0,getVideosBulkAction:pe,typeFilter:e.typeFilter,checkboxHelper:xe,drag:!0}),!!(null===(n=null===(t=be.data)||void 0===t?void 0:t.pagination)||void 0===n?void 0:n.cursors)&&r.createElement(f.t,{appLink:{action:M.e.MyVideos.MY_VIDEOS,application:O.O.MY_VIDEOS,params:{cursor:e.cursor,previous:e.previous,type:e.typeFilter}},cursors:{next:be.data.pagination.cursors.next,previous:e.cursor},buttonVariant:"outline-dark",className:"py-2 float-end",prevHack:!0})):r.createElement(Z.K,null):r.createElement("div",{className:"mx-n2"},r.createElement(h.S,{allowBulkActions:!0}))}()))))}var X=n(68610);const q={alert:"hdlVY"};function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e){var t,n,a=e.children,i=(t=r.useState(!localStorage.getItem(e.localStorageKey)),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,l,o=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return J(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)?J(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],o=i[1];return l?r.createElement(X.Z,{className:q.alert,variant:e.variant,onClose:function(){localStorage.setItem(e.localStorageKey,"1"),o(!1)},dismissible:!0},a):r.createElement(r.Fragment,null)}z.defaultProps={variant:"info"};var Q=n(71020),ee=n(94644),te=n(1575),ne=n(69883),re=n(60115),ae=n(62756),ie="default.myVideos";function le(){var e;(0,x.M)({title:l.T.getPhrase(ie,"pageTitle")});var t=(0,ne.Z)(),n=(0,i.I0)(),a=(0,F.c)(c.LZ.VideoThumbnail),s=a.setFavourite,u=a.canFavourite,d=(0,V.T)(),m=d.hasPermissions,v=d.hasLocalPermissions,f=(0,ae.G)().isPlugin,g=o.a.useBasicFetch(k.N.currentUser()),C=o.a.useBasicFetch((null===(e=g.data)||void 0===e?void 0:e.isAuthenticated)&&A.h.yearGroups(g.data.customerId)),w=(0,_.y)(),N=(0,I.i)(),j=function(e){return te.R.myVideos(g.data.id,e)},M=function(e){return o.a.getFetch(n)(j(e))},O=!v(b.E.ViewMyVideosLanding)&&g.hasCompleted,D=(0,re.K)(!!O&&j,M,(function(e,n){if(1===e)return(0,ee.r)(n);t.error(l.T.getPhrase(ie,"error"))})),T=D.items,B=D.hasMore,R=D.isFetching,G=(0,H.J)({onRemove:M}),W=G.uploadingVideos,X=G.onClickAlternate,q=G.onClickDelete,J=G.processingIds,le=null==T?void 0:T.filter((function(e){return!J[e.id]}));return(0,P.V)(null==le?void 0:le.filter(L.M.isVideo),{hasCurriculumLinks:!0}),v(b.E.ViewMyVideosLanding)?r.createElement(Z.V,null):r.createElement(E.M.Provider,{value:w},r.createElement("div",{className:"px-3"},r.createElement("div",{className:"d-flex justify-content-between"},r.createElement("h1",{className:"h2"},r.createElement(p.x,{namespace:ie,phrase:"header"})),r.createElement("div",{className:"d-sm-none"},r.createElement(Y.c,{canUpload:m(b.C.UploadVideo)}))),r.createElement("div",null,r.createElement("p",{className:"h6"},r.createElement(p.x,{namespace:ie,phrase:"description"})),!f&&r.createElement(z,{localStorageKey:"uploadInfoDismissed"},r.createElement(p.x,{namespace:ie,phrase:"alertMessage"}),r.createElement("br",null),r.createElement("small",null,r.createElement(p.x,{namespace:ie,phrase:"alertSecondaryMessage"}))),!!(null==W?void 0:W.length)&&r.createElement("div",{className:"position-relative ".concat(K.uploadingList)},W.map((function(e){return r.createElement($.X,{item:e,onClickAlternate:X,onClickDelete:q,key:e.id})}))),g.data&&le?le.length||W.length?r.createElement(r.Fragment,null,r.createElement(y.E4,{videos:le,yearGroups:C.data,getVideoAppLink:S.W.getAppLink,getSeriesAppLink:U.j.getSeriesAppLink,setFavourite:s,canFavourite:u,presentationAudiences:N.data,canRemovePrivateVideos:!0}),(B||R)&&r.createElement(Q._,{isFetching:R,fetchNext:M})):r.createElement(Z.K,null):r.createElement(h.S,null))))}function oe(e){return(0,a.r)(null).myVideosFolders?r.createElement(W,{cursor:e.cursor,previous:e.previous,typeFilter:e.typeFilter}):r.createElement(le,null)}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(53806),a={userVideoHistory:function(e,t,n,a){var i="video:history",l="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),l+="?cursor=".concat(e)),{key:i,url:l,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},97816:(e,t,n)=>{n.d(t,{V:()=>v});var r=n(32735),a=n(20354),i=n(21750),l=n(63419),o=n(31949),s=n(1575),c=n(87821);function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function v(e){var t,n,d,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},m),v),p=f.ratings,h=f.favourites,g=f.watchHistory,y=f.hasCurriculumLinks,E=a.a.useBasicFetch(o.N.currentUser()),b=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),A=E.data;t=r.useMemo((function(){if(!(null==A?void 0:A.isAuthenticated))return[];var e=[];return p&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&s.R.videoRatings(b,v.flightNamespace)])),h&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&A&&l.P.isFavourited(A.id,b,v.flightNamespace)])),g&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&A&&c.p.videoHistory(b,v.flightNamespace)])),y&&(e=[].concat(u(e),[!!(null==b?void 0:b.length)&&i.x.hasCurriculumLinks(b,null,v.flightNamespace)])),e.filter(Boolean)}),[null==b?void 0:b.length]),n=!!e,d=a.a.useGetFetch(),r.useEffect((function(){n&&t.length&&t.forEach((function(e){d(e)}))}),[t.length])}},68610:(e,t,n)=>{n.d(t,{Z:()=>b});var r=n(95685),a=n.n(r),i=n(32735),l=n(80638),o=n(36177),s=n(46304),c=n(11425),u=n(74512);const d=(0,c.Z)("h4");d.displayName="DivStyledAsH4";const m=i.forwardRef((({className:e,bsPrefix:t,as:n=d,...r},i)=>(t=(0,s.vE)(t,"alert-heading"),(0,u.jsx)(n,{ref:i,className:a()(e,t),...r}))));m.displayName="AlertHeading";const v=m;var f=n(67901);const p=i.forwardRef((({className:e,bsPrefix:t,as:n=f.Z,...r},i)=>(t=(0,s.vE)(t,"alert-link"),(0,u.jsx)(n,{ref:i,className:a()(e,t),...r}))));p.displayName="AlertLink";const h=p;var g=n(45256),y=n(99125);const E=i.forwardRef(((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:c,className:d,children:m,variant:v="primary",onClose:f,dismissible:p,transition:h=g.Z,...E}=(0,l.Ch)(e,{show:"onClose"}),b=(0,s.vE)(n,"alert"),A=(0,o.Z)((e=>{f&&f(!1,e)})),k=!0===h?g.Z:h,C=(0,u.jsxs)("div",{role:"alert",...k?void 0:E,ref:t,className:a()(d,b,v&&`${b}-${v}`,p&&`${b}-dismissible`),children:[p&&(0,u.jsx)(y.Z,{onClick:A,"aria-label":i,variant:c}),m]});return k?(0,u.jsx)(k,{unmountOnExit:!0,...E,ref:void 0,in:r,children:C}):r?C:null}));E.displayName="Alert";const b=Object.assign(E,{Link:h,Heading:v})}}]);
|