@clickview/lite 0.36.0 → 0.36.1
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-13e6b164f0-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-ec17878d18.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-ec17878d18.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3836,5041],{86877:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(23481);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===o(i)?i:String(i)),r)}var i}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(f,e);var t,n,u,l,s=(u=f,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(u);if(l){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,e)}return t=f,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:r.T.getPhrase(this.lang,"heading"),text:r.T.getPhrase(this.lang,"body"),buttons:[{text:r.T.getPhrase(this.lang,"okay"),className:"btn btn-dark",success:!0},{text:r.T.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n(47663).S)},25041:(e,t,n)=>{n.r(t),n.d(t,{BaseVideoUploadService:()=>G,LearningResourceUploadService:()=>X,SubtitleUploadService:()=>$,UploadType:()=>W});var r,o=n(48088),i=n(39479),a=n(46865),c=n(79976),u=n(37433),l=n(54149),s=n(71365),f=n(23481),p=n(70794),d=n(81886),y=n(49985),h=n(65858),g=n(29555);!function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(r||(r={}));var v=n(86877),b=n(6339),m=n(52003),O=n(60735),S=n(53301),w=n(47663);function P(e){return P="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},P(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===P(o)?o:String(o)),r)}var o}function U(e,t){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},U(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var E="upload.internetConnectivityError",T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(r);if(o){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,f.T.getPhrase(E,"title"))}return t=a,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:f.T.getPhrase(E,"heading"),text:f.T.getPhrase(E,"body"),buttons:[{text:f.T.getPhrase(E,"okay"),className:"btn",success:!0}]}}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(w.S),R=n(44331);function _(e){return _="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},_(e)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===_(o)?o:String(o)),r)}var o}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var x=[],A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(l,e);var t,n,r,a,c,u=(a=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(a);if(c){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),u.call(this,e)}return t=l,n=[{key:"name",get:function(){return"DropzoneWrapper"}},{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=o.Radio.channel(e.channelName),r=this;this.dropzone=new S(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(i.each(x,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,o){var i=o/e.size*100;n.trigger("progress",r.getId(e),i,o)})),this.on("success",(function(e){var t=e.upload.chunks,r=i.last(t),o=r.xhr;o||(o=r.file.xhr);var a=JSON.parse(o.response);e.cvUpload.fileId=a.id,n.trigger("upload:success",e,a)})),this.on("error",(function(e,t,n){n&&0===n.status?d.Q.Ry.throw(new T):"canceled"!==e.status&&d.Q.Ry.throw(new R.n(f.T.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}}],r=[{key:"isValidFile",value:function(e,t){return S.isValidFile(e,t)}}],n&&I(t.prototype,n),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(d.Q.t6);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,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function z(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===D(t)?t:String(t)}function M(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Q(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Y(e);if(t){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var W,Z=function(e){M(n,e);var t=q(n);function n(){var e;return V(this,n),(e=t.call(this,{dataProvider:s.u.getInstance(u.R.Ajax),cache:s.u.getInstance(a.p.Fifo),alertService:s.u.getInstance(c.P.ALERT)})).incrementingUploadId=0,e}return z(n,[{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}},{key:"requestUploads",value:function(e,t,n,r,o){var a=this,c=this.chain();i.each(t,(function(t){a.incrementingUploadId++,c.create({resource:e,eventPrefix:"request:upload:".concat(a.incrementingUploadId),data:a.getFileUploadRequest(t,n),callback:function(e){r(t,e)},errorHandler:a.alertService.error("Something went wrong while we were uploading your video. Please try again.")})})),c.func((function(){o()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){s.u.releaseInstance(u.R.Ajax).releaseInstance(a.p.Fifo)}}]),n}(l.B);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(W||(W={}));var K=F(F(F({},W.Video,"video/*"),W.LearningResource,b.l.RESOURCES),W.Subtitle,b.l.SUBTITLES),H=F(F(F({},W.Video,m.Q4.VIDEO_UPLOAD),W.LearningResource,m.Q4.RESOURCE_UPLOAD),W.Subtitle,m.Q4.SUBTITLE_UPLOAD),J=function(e){M(n,e);var t=q(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V(this,n),t.call(this,Object.assign({uploadUrl:"/api/upload"},e))}return z(n,[{key:"initialize",value:function(){this.uploadDataService=new Z,this.progressViewModel=p.r.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"channelName",get:function(){return H[this.uploadType]}},{key:"lang",get:function(){return"uploadShared.services"}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new A({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new d.Q.FE),this.collection}},{key:"setOverallProgress",value:function(){var e=this,t=0,n=0,r=this.getCollection();if(r.length){r.each((function(e){t+=e.get("totalUploaded")||0,n+=e.get("file").size||0}));var o=t/n*100,i=o>=100,a=function(){e.progressViewModel.set({progress:i?100:o,done:i})};i?window.setTimeout(a,2e3):a()}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return A.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;i.any(e,(function(e){return!n.isValidFile(e)}))?d.Q.Ry.throw(new v.Z(f.T.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),i=this.getCollection();this.uploadDataService.requestUploads(this.options.uploadUrl,e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===W.Video&&(r=r.replace(/\.[^/.]+$/,"")),i.add(Object.assign({id:n.uploader.getId(e),file:e,name:r},n.getAdditionalFileInfo(e,t)),{at:i.length-1})}),(function(){t&&y.k.logUserAction({uploadCount:e.length},t),o.Radio.channel(n.channelName).trigger(g.S.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var i=r.get("file");this.uploader.removeFile(i),n.remove(r),this.uploadDataService.cancelUpload(i.cvUpload.uploadId,i.cvUpload.ingestUrl,(function(){y.k.logUserAction(r.toJSON(),{entity:h.py.Video,actionType:h.Vw.Upload,workflowPhase:h.eu.Discard,descriptor:h.yh.Single,location:h.LZ.MyUploads}),o.Radio.channel(t.channelName).trigger(g.S.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),y.k.logUserAction({id:e.cvUpload.uploadId},{entity:h.py.Video,actionType:h.Vw.Upload,workflowPhase:h.eu.Complete,descriptor:h.yh.Single,location:h.LZ.VideoUpload}),o.Radio.channel(this.channelName).trigger(g.S.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));i.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return K[this.uploadType]}},{key:"getAdditionalFileInfo",value:function(e,t){return{}}}]),n}(d.Q.t6),G=function(e){M(n,e);var t=q(n);function n(){return V(this,n),t.apply(this,arguments)}return z(n,[{key:"uploadType",get:function(){return W.Video}},{key:"name",get:function(){return O.D.VideoUpload}},{key:"fileLifestyle",get:function(){return r.Temporary}}]),n}(J),$=function(e){M(n,e);var t=q(n);function n(){return V(this,n),t.apply(this,arguments)}return z(n,[{key:"uploadType",get:function(){return W.Subtitle}},{key:"name",get:function(){return O.D.SubtitleUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(J),X=function(e){M(n,e);var t=q(n);function n(){return V(this,n),t.apply(this,arguments)}return z(n,[{key:"uploadType",get:function(){return W.LearningResource}},{key:"name",get:function(){return O.D.ResourceUpload}},{key:"fileLifestyle",get:function(){return r.Permanent}}]),n}(J)},6339:(e,t,n)=>{n.d(t,{l:()=>p,v:()=>d});var r=n(39479),o=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],a=["csv","txt"],c=["xls","xlt","xlsx"],u=["jpg","tif","png","bmp","gif","jpeg"],l=["zip","rar"],s=["ppt","pot","pps","pptx"],f=["srt"],p={IMAGES:".".concat(u.join(",.")),RESOURCES:".".concat([].concat(i,c,s,o,a,u,l).join(",.")),SUBTITLES:".".concat(f.join(",."))},d={getResourceType:function(e){var t=e.toLowerCase();return r.contains(i,t)?"document":r.contains(c,t)?"excel":r.contains(s,t)?"powerpoint":r.contains(o,t)?"pdf":r.contains(a,t)?"text":r.contains(u,t)?"image":r.contains(l,t)?"archive":r.contains(f,t)?"subtitle":""}}},3836:(e,t,n)=>{n.r(t),n.d(t,{VideoUploadService:()=>U});var r,o=n(48088),i=n(79976),a=n(60139),c=n(71365),u=n(23481),l=n(29555),s=n(25041);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(r||(r={}));var f,p,d=n(65728);!function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(f||(f={})),function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(p||(p={}));var y=n(75795),h=n(14070),g=n(97291),v=n(57322),b=n(16800);function m(e){return m="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},m(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===m(o)?o:String(o)),r)}var o}function S(){return S="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=P(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},S.apply(this,arguments)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var k=u.T.encloseNamespace("upload.services"),U=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(j,e);var t,n,u,s,U=(u=j,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(u);if(s){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function j(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,j),U.call(this,e)}return t=j,(n=[{key:"initialize",value:function(){S(P(j.prototype),"initialize",this).call(this),this.videoUploadDataService=c.u.getInstance(v.O.VideoUpload,this),this.pendingItemsService=c.u.getInstance(v.K.PendingItems,this),this.userDataService=c.u.getInstance(v.O.FlightUser,this),this.alertService=c.u.getInstance(i.P.ALERT,this),this.listenTo(this.channelName,l.S.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,l.S.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,l.S.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:a.NK.Success,heading:k("startUploadAlertHeading"),message:1===e.length?k("startUploadSingleAlertBody",{videoName:e[0].name}):k("startUploadMultipleAlertBody",{uploadCount:e.length})},n=y.O.getCurrentContext().appLink;!!b.Y.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=k("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:g.O.MY_VIDEOS,action:h.e.MyVideos.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||o.Radio.channel(this.channelName).trigger(l.S.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(o){n.userDataService.getCustomerSettings(o.customerId,(function(i){n.userDataService.getWorkspace((function(a){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:o.id,customerId:o.customerId,libraryId:a.id,categoryId:e.get("categoryId")||null,pendingProcessOrigin:r.Upload,origin:p.Lite,fileId:t.id,subtitleOptions:{subtitleExtractOptions:f.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")},autoCaption:!!i[d.E.AutoCaptioning].value},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;S(P(j.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}},{key:"getAdditionalFileInfo",value:function(e,t){var n=y.O.getCurrentRoute().appLink;return n.application!==g.O.MY_VIDEOS||n.action!==h.e.MyVideos.MY_VIDEOS_FOLDER?{}:{categoryId:+n.args[0]}}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),j}(s.BaseVideoUploadService)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3848],{93262:(t,e,r)=>{var n=r(93861),i=r(11576);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(s,t);var e,r,n,l,f=(n=s,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=a(n);if(l){var r=a(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function s(t,e){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(r=f.call(this,t,e)).update(),r}return e=s,r=[{key:"update",value:function(){this.options_.activityStatus===i.T.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.getToggledActivityStatus(),this.update(),this.options_.clickHandler){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.options_.clickHandler.call(this,e)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}},{key:"getToggledActivityStatus",value:function(){return this.options_.activityStatus===i.T.None||this.options_.activityStatus===i.T.Incomplete?i.T.Complete:this.options_.activityStatus===i.T.Complete?i.T.Incomplete:void 0}}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(n.Z.getComponent("Button"));function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function 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,(void 0,i=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===f(i)?i:String(i)),n)}var i}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}l.prototype.controlText_="Complete";var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(u,t);var e,r,n,i,o=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(n);if(i){var r=y(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),o.apply(this,arguments)}return e=u,(r=[{key:"setActivityStatus",value:function(t,e){var r=this;t!==this.activityStatus&&(this.activityStatus=t,this.onToggleStatus=e,this.player.ready((function(){r.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button)}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("activityStatusPlugin",h)},16852:(t,e,r)=>{var n=r(93861);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===i(o)?o:String(o)),n)}var o}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},u.apply(this,arguments)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(y,t);var e,r,f,s,p=(f=y,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(f);if(s){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}(this,t)});function y(t,e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),r=p.call(this,t),void 0===e.startTime)throw Error("Invalid clip start");if(void 0===e.endTime)throw Error("Invalid clip end");if(e.startTime>e.endTime)throw Error("Clip start cannot be greater than clip end");return r._clipStart=parseFloat(e.startTime.toPrecision(4)),r._clipEnd=parseFloat(e.endTime.toPrecision(4)),r.playerEndedFn=r.player.ended.bind(t),r.playerDurationFn=r.player.duration.bind(t),r.playerCurrentTimeFn=r.player.currentTime.bind(t),r.playerbufferedFn=r.player.buffered.bind(t),r.player.ended=r.ended.bind(a(r)),r.player.duration=r.duration.bind(a(r)),r.player.currentTime=r.currentTime.bind(a(r)),r.player.buffered=r.buffered.bind(a(r)),r.initialize(),r.player.ready((function(){r.player.trigger("durationchange")})),r}return e=y,r=[{key:"clipStart",get:function(){var t=this.playerDurationFn();return this._clipStart>t?t:this._clipStart}},{key:"clipEnd",get:function(){var t=this.playerDurationFn();return t<=0?this._clipEnd:this._clipEnd>t?t:this._clipEnd}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange"),u(l(y.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay)}},{key:"onPlay",value:function(){this._isEnded&&this.player.currentTime(0)}},{key:"onTimeUpdate",value:function(){var t=this.getCurrentTime(!1);t>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,t<this.clipStart-10&&this.playerCurrentTimeFn(this.clipStart,!0))}},{key:"ended",value:function(){return this.getCurrentTime(!1)>this.clipEnd}},{key:"duration",value:function(t){return t&&t>0&&(this.playerDurationFn()?console.info("The duration of the player has already been set. This is a no-op."):this.playerDurationFn(t)),this.clipEnd-this.clipStart}},{key:"currentTime",value:function(t){if("number"!=typeof t)return this.getCurrentTime(!0);for(var e=t+this.clipStart,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.playerCurrentTimeFn(e,n)}},{key:"getCurrentTime",value:function(t){var e=this.playerCurrentTimeFn(),r=0;return e>=this.clipStart&&(r=e-this.clipStart),this.player.getCache().currentTime=r,t?r:e}},{key:"buffered",value:function(){for(var t=this.playerbufferedFn(),e=[],r=0;r<t.length;r++)e[r]=[Math.max(0,t.start(r)-this.clipStart),Math.min(Math.max(0,t.end(r)-this.clipStart),this.player.duration())];return n.Z.createTimeRanges(e)}}],r&&o(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(n.Z.getPlugin("plugin"));n.Z.registerPlugin("clipPlugin",f)},14735:(t,e,r)=>{r.d(e,{Z:()=>b});var n=r(44645),i=r(93861);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,i=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(i)?i:String(i)),n)}var i}function a(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},l.apply(this,arguments)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var h=function(t){f(r,t);var e=p(r);function r(t,n){return u(this,r),e.call(this,t,n)}return a(r,[{key:"dispose",value:function(){var t=this;setImmediate((function(){var e;null===(e=t.root)||void 0===e||e.unmount()})),l(y(r.prototype),"dispose",this).call(this)}}]),r}(i.Z.getComponent("Component")),d={tagName:"div"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(!t)throw new Error("componentCtor is required");var r=function(r){f(c,r);var o=p(c);function c(){return u(this,c),o.apply(this,arguments)}return a(c,[{key:"createEl",value:function(){var r=i.Z.dom.createEl(e.tagName,e.properties,e.attributes),o=(0,n.s)(r);return o.render(t(this.player_,this.options_)),this.root=o,r}}]),c}(h);return r}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3966],{33966:(e,t,n)=>{n.r(t),n.d(t,{BrazeAnalyticsClient:()=>w});var r=n(63093),i=n(71365),o=n(49985),a=n(41268),l=n(65858),u=n(99746),c=n(99504),s=n(97291),v=n(57322);function f(e){return f="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},f(e)}function y(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(b,e);var t,n,a,d,w,g=(d=b,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(d);if(w){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}(this,e)});function b(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=g.call(this,e)).client=i.u.getInstance(v.K.BrazeClient,E(t)),t}return t=b,a=[{key:"eventWhitelist",get:function(){return y(y(y(y(y(y({},l.Vw.SendEmail,b.isInviteEvent),l.Vw.Download,b.isResourceDownloadEvent),l.Vw.Share,b.isShareEvent),l.Vw.Stream,b.isStreamEvent),l.Vw.Click,b.isSupportedClickEvent),l.Vw.PageView,b.isPageViewEvent)}},{key:"isPageViewEvent",value:function(e){if(e.type!==l.Vw.PageView)return!1;var t=e.data;return!(null==t?void 0:t.isError)}},{key:"isSupportedClickEvent",value:function(e){return!!b.isExploreTopicsEvent(e)||!!b.isSearchClickThrough(e)||!!b.isBookACallEvent(e)}},{key:"isExploreTopicsEvent",value:function(e){return e.type===l.Vw.Click&&e.actionContext.entity===l.py.Classification}},{key:"isSearchClickThrough",value:function(e){var t;return e.type===l.Vw.Click&&e.actionContext.productArea===(0,o.c)(s.O.SEARCH)&&!Array.isArray(e.data)&&!!(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.search)}},{key:"isBookACallEvent",value:function(e){return e.type===l.Vw.Click&&e.actionContext.entity===l.py.Url&&e.actionContext.descriptor===l.HS.BookACall}},{key:"isStreamEvent",value:function(e){return e.type===l.Vw.Stream}},{key:"isShareEvent",value:function(e){return e.type===l.Vw.Share&&e.actionContext.workflowPhase!==l.eu.Start}},{key:"isResourceDownloadEvent",value:function(e){return e.type===l.Vw.Download&&e.actionContext.entity===l.py.Resource}},{key:"isInviteEvent",value:function(e){return e.type===l.Vw.SendEmail&&e.actionContext.descriptor===l.Yu.InviteColleague}},{key:"enrichEvent",value:function(e,t,n){if(t&&n){var r=(null==e?void 0:e.data)||{};r[t]=n,e.data=r}}}],(n=[{key:"name",get:function(){return"BrazeAnalyticsClient"}},{key:"initialize",value:function(e){(null==e?void 0:e.logUtmParameters)&&(this.utmParameters=c.F.getUtmParameters()),(null==e?void 0:e.logOriginalReferrer)&&(this.originalReferrer=u.N.getReferrerParameter())}},{key:"shouldLog",value:function(e){if(!e)return!1;var t=b.eventWhitelist[e.type];return"function"==typeof t&&t(e)}},{key:"logEvent",value:function(e){this.utmParameters&&b.enrichEvent(e,"utms",this.utmParameters),this.originalReferrer&&b.enrichEvent(e,"originalReferrer",this.originalReferrer),this.client.logEvent(e)}},{key:"log",value:function(e){var t,n;if(this.client){var i=e.data;b.isPageViewEvent(e)?this.logEvent({type:r.PageEvent.PageView,data:{isAddressable:i.isAddressable,actionContext:null===(t=i.appLink)||void 0===t?void 0:t.action,url:i.url}}):b.isStreamEvent(e)?this.logEvent({type:r.ProductEvent.Stream,data:{id:null==i?void 0:i.id,entity:e.actionContext.entity,name:null==i?void 0:i.name}}):b.isExploreTopicsEvent(e)?this.logEvent({type:r.ProductEvent.ExploreTopics,data:{id:null==i?void 0:i.id,name:null==i?void 0:i.name}}):b.isSearchClickThrough(e)?this.logEvent({type:r.ProductEvent.SearchClickthrough,data:{query:null===(n=null==i?void 0:i.search)||void 0===n?void 0:n.query}}):b.isBookACallEvent(e)?this.logEvent({type:r.ProductEvent.ClickBookACall}):b.isShareEvent(e)?this.logEvent({type:r.ProductEvent.Share,data:{id:null==i?void 0:i.id,entity:e.actionContext.entity,name:null==i?void 0:i.name}}):b.isResourceDownloadEvent(e)?this.logEvent({type:r.ProductEvent.DownloadResource,data:{id:null==i?void 0:i.id,name:null==i?void 0:i.name,video_name:null==i?void 0:i.videoName}}):b.isInviteEvent(e)&&this.logEvent({type:r.ProductEvent.Invite,data:{user_count:null==i?void 0:i.emailCount}})}}},{key:"isType",value:function(e){return e===b.type}}])&&p(t.prototype,n),a&&p(t,a),Object.defineProperty(t,"prototype",{writable:!1}),b}(a.z);w.type="BrazeAnalyticsClient"}}]);
|