@clickview/streamable-learning 0.8.0-rc.1 → 0.8.0-rc.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/package.json +1 -1
- package/dist/bundles.json +0 -4
- package/dist/css/109-streamable-learning-8f682301c6.chunk.css +0 -1
- package/dist/css/122-streamable-learning-c067c7cc15.chunk.css +0 -76
- package/dist/css/146-streamable-learning-b32369e5cf.chunk.css +0 -13
- package/dist/css/177-streamable-learning-ced7ccbc48.chunk.css +0 -82
- package/dist/css/254-streamable-learning-8e088350b1.chunk.css +0 -2
- package/dist/css/301-streamable-learning-b344f90d44.chunk.css +0 -12
- package/dist/css/397-streamable-learning-abf107d19e.chunk.css +0 -46
- package/dist/css/423-streamable-learning-1cfeeb77c0.chunk.css +0 -5
- package/dist/css/498-streamable-learning-8c9306617b.chunk.css +0 -2
- package/dist/css/596-streamable-learning-2c51a5f976.chunk.css +0 -2
- package/dist/css/662-streamable-learning-6dc93ba4b5.chunk.css +0 -2
- package/dist/css/784-streamable-learning-4df822d203.chunk.css +0 -4
- package/dist/css/843-streamable-learning-ce0ad8fa07.chunk.css +0 -7
- package/dist/css/862-streamable-learning-76d0adfd6b.chunk.css +0 -23
- package/dist/css/983-streamable-learning-edac0e9a90.chunk.css +0 -28
- package/dist/css/987-streamable-learning-b5d226bbb6.chunk.css +0 -5
- package/dist/css/streamable-learning-fe153c88cc.css +0 -21
- package/dist/languages/en.json +0 -1
- package/dist/scripts/109-781cd6f6e5-streamable-learning.chunk.js +0 -1
- package/dist/scripts/122-f55f499ffb-streamable-learning.chunk.js +0 -2
- package/dist/scripts/122-f55f499ffb-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/146-d2948b12b4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/153-76de89bd09-streamable-learning.chunk.js +0 -1
- package/dist/scripts/173-aaf002a53f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/177-cd182510b9-streamable-learning.chunk.js +0 -2
- package/dist/scripts/177-cd182510b9-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/253-fb7fbaf6f4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/254-b58032e762-streamable-learning.chunk.js +0 -1
- package/dist/scripts/284-22a42065be-streamable-learning.chunk.js +0 -1
- package/dist/scripts/301-a14b0ed7ce-streamable-learning.chunk.js +0 -1
- package/dist/scripts/325-7fdd405869-streamable-learning.chunk.js +0 -1
- package/dist/scripts/367-0ef88760ca-streamable-learning.chunk.js +0 -1
- package/dist/scripts/397-b3a7600d26-streamable-learning.chunk.js +0 -1
- package/dist/scripts/411-fff900b98b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/423-b748f59e02-streamable-learning.chunk.js +0 -1
- package/dist/scripts/446-b6d7d918b3-streamable-learning.chunk.js +0 -1
- package/dist/scripts/498-0309bc3a47-streamable-learning.chunk.js +0 -1
- package/dist/scripts/542-428be5f14b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/546-9dd6f0111c-streamable-learning.chunk.js +0 -1
- package/dist/scripts/596-28b2828908-streamable-learning.chunk.js +0 -1
- package/dist/scripts/598-08223f84bf-streamable-learning.chunk.js +0 -2
- package/dist/scripts/598-08223f84bf-streamable-learning.chunk.js.LICENSE.txt +0 -32
- package/dist/scripts/599-0c51007c46-streamable-learning.chunk.js +0 -1
- package/dist/scripts/65-d7f708e85f-streamable-learning.chunk.js +0 -2
- package/dist/scripts/65-d7f708e85f-streamable-learning.chunk.js.LICENSE.txt +0 -105
- package/dist/scripts/662-cceda2d1a3-streamable-learning.chunk.js +0 -1
- package/dist/scripts/689-3d3106a994-streamable-learning.chunk.js +0 -1
- package/dist/scripts/700-5d29791d74-streamable-learning.chunk.js +0 -1
- package/dist/scripts/784-9fbf1b5ab2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/790-bb3aab5247-streamable-learning.chunk.js +0 -1
- package/dist/scripts/843-b0a9a525f0-streamable-learning.chunk.js +0 -2
- package/dist/scripts/843-b0a9a525f0-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/862-e2ed05b2f4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/87-b48ad637e7-streamable-learning.chunk.js +0 -1
- package/dist/scripts/872-7e55909784-streamable-learning.chunk.js +0 -1
- package/dist/scripts/877-45cd37056a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/881-acf48eef73-streamable-learning.chunk.js +0 -1
- package/dist/scripts/925-1a8f304da0-streamable-learning.chunk.js +0 -1
- package/dist/scripts/933-ca4f584716-streamable-learning.chunk.js +0 -1
- package/dist/scripts/934-944fb24dbc-streamable-learning.chunk.js +0 -2
- package/dist/scripts/934-944fb24dbc-streamable-learning.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/937-72d3082716-streamable-learning.chunk.js +0 -1
- package/dist/scripts/954-7459c079cb-streamable-learning.chunk.js +0 -1
- package/dist/scripts/958-5689104a5b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/979-9406169468-streamable-learning.chunk.js +0 -1
- package/dist/scripts/983-79462b2013-streamable-learning.chunk.js +0 -1
- package/dist/scripts/987-7f87266445-streamable-learning.chunk.js +0 -1
- package/dist/scripts/bundle-fbecf66caa.min.js +0 -2
- package/dist/scripts/bundle-fbecf66caa.min.js.LICENSE.txt +0 -108
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js +0 -2
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt +0 -21
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/*! ./browser */
|
|
2
|
-
|
|
3
|
-
/*! ./functions */
|
|
4
|
-
|
|
5
|
-
/*! ./html */
|
|
6
|
-
|
|
7
|
-
/*! ./image */
|
|
8
|
-
|
|
9
|
-
/*! ./js/init */
|
|
10
|
-
|
|
11
|
-
/*! ./json */
|
|
12
|
-
|
|
13
|
-
/*! ./modal */
|
|
14
|
-
|
|
15
|
-
/*! ./pdf */
|
|
16
|
-
|
|
17
|
-
/*! ./print */
|
|
18
|
-
|
|
19
|
-
/*! ./raw-html */
|
|
20
|
-
|
|
21
|
-
/*! ./sass/index.scss */
|
|
22
|
-
|
|
23
|
-
/*! ./src/index.js */
|
|
24
|
-
|
|
25
|
-
/*! exports provided: addWrapper, capitalizePrint, collectStyles, addHeader, cleanUp, isRawHTML */
|
|
26
|
-
|
|
27
|
-
/*! exports provided: default */
|
|
28
|
-
|
|
29
|
-
/*! no static exports found */
|
|
30
|
-
|
|
31
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
32
|
-
|
|
33
|
-
/*!**********************!*\
|
|
34
|
-
!*** ./src/index.js ***!
|
|
35
|
-
\**********************/
|
|
36
|
-
|
|
37
|
-
/*!***********************!*\
|
|
38
|
-
!*** ./src/js/pdf.js ***!
|
|
39
|
-
\***********************/
|
|
40
|
-
|
|
41
|
-
/*!************************!*\
|
|
42
|
-
!*** ./src/js/html.js ***!
|
|
43
|
-
\************************/
|
|
44
|
-
|
|
45
|
-
/*!************************!*\
|
|
46
|
-
!*** ./src/js/init.js ***!
|
|
47
|
-
\************************/
|
|
48
|
-
|
|
49
|
-
/*!************************!*\
|
|
50
|
-
!*** ./src/js/json.js ***!
|
|
51
|
-
\************************/
|
|
52
|
-
|
|
53
|
-
/*!*************************!*\
|
|
54
|
-
!*** ./src/js/image.js ***!
|
|
55
|
-
\*************************/
|
|
56
|
-
|
|
57
|
-
/*!*************************!*\
|
|
58
|
-
!*** ./src/js/modal.js ***!
|
|
59
|
-
\*************************/
|
|
60
|
-
|
|
61
|
-
/*!*************************!*\
|
|
62
|
-
!*** ./src/js/print.js ***!
|
|
63
|
-
\*************************/
|
|
64
|
-
|
|
65
|
-
/*!***************************!*\
|
|
66
|
-
!*** ./src/js/browser.js ***!
|
|
67
|
-
\***************************/
|
|
68
|
-
|
|
69
|
-
/*!****************************!*\
|
|
70
|
-
!*** ./src/js/raw-html.js ***!
|
|
71
|
-
\****************************/
|
|
72
|
-
|
|
73
|
-
/*!****************************!*\
|
|
74
|
-
!*** multi ./src/index.js ***!
|
|
75
|
-
\****************************/
|
|
76
|
-
|
|
77
|
-
/*!*****************************!*\
|
|
78
|
-
!*** ./src/js/functions.js ***!
|
|
79
|
-
\*****************************/
|
|
80
|
-
|
|
81
|
-
/*!*****************************!*\
|
|
82
|
-
!*** ./src/sass/index.scss ***!
|
|
83
|
-
\*****************************/
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @licstart The following is the entire license notice for the
|
|
87
|
-
* Javascript code in this page
|
|
88
|
-
*
|
|
89
|
-
* Copyright 2020 Mozilla Foundation
|
|
90
|
-
*
|
|
91
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
92
|
-
* you may not use this file except in compliance with the License.
|
|
93
|
-
* You may obtain a copy of the License at
|
|
94
|
-
*
|
|
95
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
96
|
-
*
|
|
97
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
98
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
99
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
100
|
-
* See the License for the specific language governing permissions and
|
|
101
|
-
* limitations under the License.
|
|
102
|
-
*
|
|
103
|
-
* @licend The above is the entire license notice for the
|
|
104
|
-
* Javascript code in this page
|
|
105
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[662],{96138:(e,r,a)=>{a.r(r),a.d(r,{AccountSettingsView:()=>ue});var t,n=a(32735),s=a(70680),i=a(23481),o=a(20354),u=a(92582),l=a(65858),d=a(81886),c=a(75896),m=a(1048),p=a(66770);!function(e){e.Ok="Ok",e.UsernameRequired="UsernameRequired",e.EmailRequired="EmailRequired",e.FirstnameRequired="FirstnameRequired",e.SurnameRequired="SurnameRequired",e.YearGroupRequired="YearGroupRequired",e.EmailAlreadyExisted="EmailAlreadyExisted",e.UsernameAlreadyExisted="UsernameAlreadyExisted",e.UserTypeRequired="UserTypeRequired",e.MasterYearGroupRequired="MasterYearGroupRequired",e.EmptyUserEntity="EmptyUserEntity",e.CustomerIdRequired="CustomerIdRequired",e.CustomerNotFoundInOnline="CustomerNotFoundInOnline",e.EmailTooLong="EmailTooLong",e.UsernameTooLong="UsernameTooLong",e.FirstnameTooLong="FirstnameTooLong",e.SurnameTooLong="SurnameTooLong",e.EmailInvalid="EmailInvalid",e.EmailInUse="EmailInUse",e.UsernameInvalid="UsernameInvalid",e.PasswordTooShort="PasswordTooShort",e.EmailDuplicated="EmailDuplicated",e.UsernameDuplicated="UsernameDuplicated",e.DisplayNameTooLong="DisplayNameTooLong",e.DisplayNameTooShort="DisplayNameTooShort",e.UsernameTooShort="UsernameTooShort",e.FirstnameInvalid="FirstnameInvalid",e.SurnameInvalid="SurnameInvalid",e.UserTypeMismatch="UserTypeMismatch",e.UserCanBeAddedInCustomer="UserCanBeAddedInCustomer",e.UserCanBeCreated="UserCanBeCreated",e.CustomerFoundInOnline="CustomerFoundInOnline",e.UserInCustomerWithOnline="UserInCustomerWithOnline",e.InvalidUserStatus="InvalidUserStatus",e.UserAlreadyExistsInCustomer="UserAlreadyExistsInCustomer",e.Rostered="UserRostered"}(t||(t={}));var f=a(40424),h=a(76881),y=a(86613),v=a(2997);function g(e){return g="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},g(e)}function w(e,r,a){var t;return t=function(e,r){if("object"!=g(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var t=a.call(e,"string");if("object"!=g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r),(r="symbol"==g(t)?t:t+"")in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var E="userManager.utils",b={active:f.w.Active.toLowerCase(),deactivated:f.w.Disabled.toLowerCase(),pending:f.w.Inactive.toLowerCase()},S={filterIdenticalEntries:function(e){var r=function(e){var r,a,t,n,s,i,o,u,l,d,c,m;return[null!==(a=null===(r=e.firstName)||void 0===r?void 0:r.trim())&&void 0!==a?a:"",null!==(n=null===(t=e.surname)||void 0===t?void 0:t.trim())&&void 0!==n?n:"",null!==(i=null===(s=e.masterYearGroup)||void 0===s?void 0:s.id)&&void 0!==i?i:"",null!==(l=null===(u=null===(o=e.username)||void 0===o?void 0:o.toLowerCase())||void 0===u?void 0:u.trim())&&void 0!==l?l:"",null!==(m=null===(c=null===(d=e.email)||void 0===d?void 0:d.toLowerCase())||void 0===c?void 0:c.trim())&&void 0!==m?m:""].join(":")};return e.filter((function(e,a,t){return a===t.findIndex((function(a){return r(a)===r(e)}))}))},getNewDuplicates:function(e){if(!e)return null;var r=[],a=[],n={};e.forEach((function(e){e.username?n[e.username]?n[e.username].push(e):n[e.username]=[e]:a.push(e)})),Object.keys(n).map((function(e){1!==n[e].length?r.push({errorCodes:[t.UsernameAlreadyExisted],users:n[e]}):a.push(n[e][0])}));var s={};return e.forEach((function(e){e.email&&(s[e.email]?s[e.email].push(e):s[e.email]=[e])})),Object.keys(s).map((function(e){if(1!==s[e].length){var a=c.m.first(s[e]).username;if(a&&1!==n[a].length){var i=r.findIndex((function(e){return c.m.first(e.users).username===a}));r[i].errorCodes.push(t.EmailAlreadyExisted)}else r.push({errorCodes:[t.EmailAlreadyExisted],users:s[e]})}})),r},formatCreateOrValidateUserRequest:function(e,r,a){return{users:e.map((function(e){var t={firstName:e.firstName,email:e.email,surname:e.surname,username:e.username,userType:r,customerId:a,masterRole:e.masterRole||y.i.User,requirePasswordChange:!1,generatePassword:!!e.generatePassword,password:e.password,displayName:e.displayName||null};return r===h.Y.Learner&&(t.masterYearGroup=e.masterYearGroup),t.username||delete t.username,t.password||delete t.password,t.password&&t.generatePassword&&(t.generatePassword=!1),e.userId&&(t.userId=e.userId),t}))}},formatEditUserRequest:function(e){return e.displayName||(e.displayName=null),e},formatDeleteRequest:function(e,r,a){var t={customerId:e};if(!r.length){var n=d.Q.Ab.DeserializeQueryParams(d.Q.Ab.GetCurrentQueryString().substring(1));n.query&&(t.searchQuery=n.query);var s=n.status&&(Array.isArray(n.status)?n.status:[n.status]);(null==s?void 0:s.length)&&(t.userStatuses=[],s.forEach((function(e){"active"===e&&t.userStatuses.push(f.w.Active),"deactivated"===e&&t.userStatuses.push(f.w.Disabled),"pending"===e&&t.userStatuses.push(f.w.Inactive)}))),n.yearGroup&&(t.yearGroupValues=Array.isArray(n.yearGroup)?n.yearGroup:[n.yearGroup])}return 1===Object.keys(t).length?t.userIds=r.map((function(e){return e.id})):t.userType=a,t},formatToggleStatusRequest:function(e,r,a){return{customerId:r,users:[{userId:e.id,status:a}]}},getErrorMessages:function(e,r,a,n){var s,o,u={},l=i.T.encloseNamespace("userManager.utils"),d=(w(w(w(w(w(w(w(w(w(w(s={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,l("emailRequired")),t.FirstnameRequired,l("nameRequired")),t.SurnameRequired,l("surnameRequired")),t.YearGroupRequired,l("yearGroupRequired")),t.EmailAlreadyExisted,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameAlreadyExisted,l(a?"usernameExistsShort":"usernameExistsLong")),t.UserTypeRequired,""),t.MasterYearGroupRequired,l("yearGroupRequired")),w(w(w(w(w(w(w(w(w(w(s,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,l("emailExceeds")),t.UsernameTooLong,l("usernameExceeds")),t.FirstnameTooLong,l("nameExceeds")),t.SurnameTooLong,l("surnameExceeds")),t.EmailInvalid,l(a?"emailInvalidShort":"emailInvalidLong")),t.EmailInUse,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameInvalid,l(a?"usernameInvalidShort":"usernameInvalidLong")),w(w(w(w(w(w(w(w(w(w(s,t.PasswordTooShort,l(a?"passwordTooShortShort":"passwordTooShortLong",{minLength:r})),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,l("displayNameExceeds")),t.DisplayNameTooShort,l("displayNameTooShort")),t.UsernameTooShort,l("usernameTooShort")),t.FirstnameInvalid,l("firstNameInvalid")),t.SurnameInvalid,l("surnameInvalid")),t.CustomerFoundInOnline,l("support")),t.UserInCustomerWithOnline,l("support")),w(w(w(w(w(w(s,t.InvalidUserStatus,l("support")),t.UserTypeMismatch,""),t.UserCanBeAddedInCustomer,""),t.UserCanBeCreated,""),t.UserAlreadyExistsInCustomer,""),t.Rostered,"")),c=(w(w(w(w(w(w(w(w(w(w(o={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,"email"),t.FirstnameRequired,"firstName"),t.SurnameRequired,"surname"),t.YearGroupRequired,"masterYearGroup"),t.EmailAlreadyExisted,"email"),t.UsernameAlreadyExisted,"username"),t.UserTypeRequired,""),t.MasterYearGroupRequired,"masterYearGroup"),w(w(w(w(w(w(w(w(w(w(o,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,"email"),t.UsernameTooLong,"username"),t.FirstnameTooLong,"firstName"),t.SurnameTooLong,"surname"),t.EmailInvalid,"email"),t.EmailInUse,"email"),t.UsernameInvalid,"username"),w(w(w(w(w(w(w(w(w(w(o,t.PasswordTooShort,"password"),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,"displayName"),t.DisplayNameTooShort,"displayName"),t.UsernameTooShort,"username"),t.FirstnameInvalid,"firstName"),t.SurnameInvalid,"surname"),t.UserTypeMismatch,"email"),t.UserCanBeAddedInCustomer,"email"),w(w(w(w(w(w(o,t.UserCanBeCreated,"email"),t.CustomerFoundInOnline,"email"),t.UserInCustomerWithOnline,"email"),t.InvalidUserStatus,"email"),t.UserAlreadyExistsInCustomer,"email"),t.Rostered,"email"));return e.forEach((function(e){var r,a,t,s,i=null!==(a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:d[e])&&void 0!==a?a:"";if(i){var o=c[e];o&&(u[o]=null!==(s=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t[o])&&void 0!==s?s:i)}})),u},showEmptyState:function(e,r){var a;if(!e.data)return!1;var t=Object.keys(r).length;return!("results"in e.data)&&!t&&!(null===(a=e.data.data)||void 0===a?void 0:a.length)},getFilters:function(e,r){var a=[p.x$.SortBy(p.qr.getNameSortOptions())];return e===h.Y.Learner&&a.push(p.x$.YearGroup(p.qr.getYearGroupOptions(r))),a.push(p.x$.Status()),e===h.Y.Staff&&a.push(p.x$.IsAdmin()),a},getMinimumPasswordLength:function(e,r,a){var t;if(!e)return 8;var n=null===(t=e.securitySettings)||void 0===t?void 0:t.find((function(e){return e.userRole===a&&e.userType===r}));return n?n.minPasswordLength:a===y.i.Admin?e.defaultAdminMinPasswordLength:e.defaultMinPasswordLength},mapStatusParamsToValue:function(e){if(e){var r=function(e){switch(e){case"active":return f.w.Active;case"deactivated":return f.w.Disabled;case"pending":return f.w.Inactive}};return Array.isArray(e)?e.map(r):[r(e)]}},buildSearchData:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=void 0===n?{}:n,i=S.buildSearchFiltersData(r,t,s),o=S.buildSearchSortData(r,s);return{query:s.query,indices:["user"],searchType:"user",customerIdOverride:r,userId:a,customerId:r,filters:i,sorts:o}},buildSearchDataAndKey:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=e.cursor,i=S.buildSearchData({customerId:r,userId:a||"",userType:t,queryParams:n||{}});s&&(i.cursor=s);var o="search:users:".concat(s||"");return{key:o+=m.t.flattenObjectToString(i),data:i}},buildSearchParams:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=S.buildSearchFiltersObject(e,r,a);return t=Object.keys(t).reduce((function(e,r){return e["".concat(v.w.FILTER_PARAM_PREFIX).concat(r)]=t[r],e}),{}),Object.assign({query:a.query,index:"user",customerIdOverride:e},t)},buildSearchSortData:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={};if(r.sort)switch(r.sort){case"first-name-atoz":a.firstName="asc";break;case"first-name-ztoa":a.firstName="desc";break;case"surname-atoz":a.surname="asc";break;case"surname-ztoa":a.surname="desc";break;case"newest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};break;case"oldest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"asc"}}}else a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};return a},buildSearchFiltersData:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase()};return t.userProfile={customerId:e},"true"===a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),a.yearGroup&&(t.yearGroup={customerId:e},Array.isArray(a.yearGroup)?t.yearGroup.value=a.yearGroup:t.yearGroup.value=[a.yearGroup]),a.status&&(Array.isArray(a.status)?t.userProfile.status=a.status.map((function(e){return b[e]})):t.userProfile.status=[b[a.status]]),a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),t},buildSearchFiltersObject:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase(),customerId:e.toString()};return"true"===a.isAdmin&&(t.userRole=y.i.Admin.toLowerCase()),a.yearGroup&&(Array.isArray(a.yearGroup)?t.yearGroup="".concat(a.yearGroup.join(",")):t.yearGroup=a.yearGroup),a.status&&(Array.isArray(a.status)?t.userProfileStatus=a.status.map((function(e){return b[e]})).join(","):t.userProfileStatus=b[a.status]),t},buildGetUsersQuery:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.yearGroup,t=void 0===a?"":a,n=r.status,s=void 0===n?"":n,i=r.isAdmin,o=void 0===i?"":i,u=r.sort,l=void 0===u?"newest":u,d=["usertype:".concat(e)];if(t&&(Array.isArray(t)?d.push("yeargroups.value:[".concat(t.join(","),"]")):d.push("yeargroups.value:".concat(t))),"true"===o&&d.push("userprofiles.role:".concat(y.i.Admin)),s&&(Array.isArray(s)?d.push("status:[".concat(s.map((function(e){return b[e]})).join(","),"]")):d.push("status:".concat(b[s]))),l)switch(l){case"first-name-atoz":d.push("orderby:name");break;case"first-name-ztoa":d.push("orderbydesc:name");break;case"surname-atoz":d.push("orderby:surname");break;case"surname-ztoa":d.push("orderbydesc:surname");break;case"newest":d.push("orderbydesc:timestamp");break;case"oldest":d.push("orderby:timestamp")}return"{".concat(d.join(","),"}avatar")},shouldDisplayAuthenticationMethods:function(e){var r;if(!(null==e?void 0:e.length))return!1;if(!(null===(r=c.m.first(e).authenticationMethods)||void 0===r?void 0:r.length))return!1;var a=e.find((function(e){var r;return!!(null===(r=e.authenticationMethods)||void 0===r?void 0:r.find((function(e){return!e.local})))}));return!!a},handleAsyncErrors:function(e,r,a,n){var s,o=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.errorCodes;if(!(null==o?void 0:o.length))return!0;var u={};return(o.includes(t.EmailAlreadyExisted)||o.includes(t.EmailInUse))&&(a&&a.email===r.email||(u.email=i.T.getPhrase(E,"emailExistsLong"))),o.includes(t.UsernameAlreadyExisted)&&(a&&a.username===r.username||(u.username=i.T.getPhrase(E,"usernameExistsLong"))),!Object.keys(u).length||(n({errors:u}),!1)}},C=a(86764),I=a(31949),P=a(55110),U=a(3747),T=a(92802),A=a(23201),N=a(1269),x=a(82644),q=a(83345),L=a(5173),R="settings.emailSettings",k=(0,L.Ry)().shape({email:(0,L.Z_)().required((function(){return i.T.getPhrase(R,"emailRequired")})).email((function(){return i.T.getPhrase(R,"emailInvalid")})).trim().default("")}),O=a(91967),D=a(64444),G=a(83914),j="d-inline-block svg-container",F="span";function M(e){var r=e.children,a=e.className,t=void 0===a?j:a,s=e.tagName,i=void 0===s?F:s,o=e.size,u=void 0===o?G.S.Standard:o,l=e.onClick,d=e.title,c=e.tooltipPlacement,m=void 0===c?"right":c,p=i,f={className:"".concat(t," svg-container ").concat(u),onClick:O.q.isFunction(l)?l:null};return d?n.createElement(D.u,{title:d,placement:m},n.createElement(p,Object.assign({},f),r)):n.createElement(p,Object.assign({},f),r)}function z(){return n.createElement(M,null,n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"})))}function Y(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var B="settings.emailSettings",W=i.T.encloseNamespace(B);function V(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return Y(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Y(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1],u=e.currentUser.emailVerified;return n.useEffect((function(){t||i||o(!0)}),[t,i]),n.createElement(q.D.Provider,{value:B},n.createElement("h2",{className:"h4 d-flex align-items-center"},n.createElement(q.x,{phrase:"heading"}),u&&n.createElement("span",{className:"font-size-normal fw-semibold text-primary d-flex align-items-center mb-0 ms-2"},n.createElement(q.x,{phrase:"verified"}),n.createElement(z,null))),u&&n.createElement("p",null,n.createElement(q.x,{phrase:"info",options:{email:e.currentUser.email}})),i?n.createElement(x.n,{initialValues:{email:e.currentUser.email||""},onSubmit:e.onChangeEmail,validationSchema:k},n.createElement(T.l0,null,n.createElement(N.W,{className:"w-75",name:"email",placeholder:W("emailPlaceholder"),autoComplete:"email"}),n.createElement("div",{className:"d-flex justify-content-end w-75 ".concat(t?"ms-n2":"")},t&&n.createElement("button",{type:"button",className:"btn btn-link me-2",onClick:function(){return o(!1)}},n.createElement(q.x,{phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:W(u?"updateEmail":"verifyEmail"),variant:u?"outline-dark":"dark"})))):n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark me-2",onClick:function(){return o(!0)}},n.createElement(q.x,{phrase:"change"})))),n.createElement("p",{className:"mb-0 mt-2"},n.createElement(q.x,{phrase:"note"})))}const _={partialLabel:"aKssR",partialInfo:"ZrKZk",partialInput:"Lvn15",partialSubmit:"TActD",partialNote:"pqp7j"};function Z(){return n.createElement("div",{className:"w-50"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(_.partialLabel)}),n.createElement("div",{className:"partial-loading-background ".concat(_.partialInfo)}),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"partial-loading-background ".concat(_.partialInput)})),n.createElement("div",{className:"partial-loading-background ".concat(_.partialSubmit)}),n.createElement("div",{className:"partial-loading-background mt-2 ".concat(_.partialNote)}))}var Q="shared.changePasswordForm",$=i.T.encloseNamespace(Q);function K(e){var r=(0,T.u6)();return n.createElement(T.l0,null,!e.hideCurrentPassword&&n.createElement(N.W,{className:e.inputWidthClass,name:"currentPassword",label:$("currentPassword"),placeholder:$("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"newPassword",label:$("newPassword"),placeholder:$("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),n.createElement(N.W,{className:e.inputWidthClass,name:"confirmPassword",label:$("confirmPassword"),placeholder:$("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&n.createElement(N.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:$("changeOnNextLogin"),type:"checkbox",checked:r.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&n.createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&n.createElement("button",{type:"button",className:"btn btn-link me-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},n.createElement(q.x,{namespace:Q,phrase:"cancel"})),n.createElement(A.A,{isNew:!1,submitText:e.submitText||$("save"),variant:e.submitVariant,size:e.buttonSize})))}K.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"};var H=i.T.encloseNamespace("settings.passwordSettings"),J=function(e){return(0,L.Ry)().shape({currentPassword:(0,L.Z_)().required((function(){return H("currentPasswordRequired")})).trim().default(""),newPassword:(0,L.Z_)().required((function(){return H("newPasswordRequired")})).min(e,(function(){return H("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,L.Z_)().required((function(){return H("confirmPasswordRequired")})).oneOf([(0,L.iH)("newPassword"),null],(function(){return H("passwordsDontMatch")})).trim().default("")})};function X(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var ee="settings.passwordSettings",re={currentPassword:"",newPassword:"",confirmPassword:""};function ae(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return X(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?X(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=s[0],u=s[1];return n.useEffect((function(){t||o||u(!0)}),[t,o]),n.createElement(q.D.Provider,{value:ee},n.createElement("h2",{className:"h4"},n.createElement(q.x,{phrase:"heading"})),o?n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement(q.x,{phrase:"info"})),n.createElement(x.n,{initialValues:re,onSubmit:function(r,a){e.onChangePassword(r,a,(function(){return a({reset:!0})}))},validationSchema:J(e.minPasswordLength)},n.createElement(K,{onClickCancel:function(){return u(!1)},hideCancelButton:!t,submitText:i.T.getPhrase(ee,"savePassword"),buttonContainerClass:t?"d-flex justify-content-end ms-n2 w-75":"d-flex justify-content-end w-75",inputWidthClass:"w-75"}))):n.createElement("button",{className:"btn btn-outline-dark ",onClick:function(){return u(!0)}},n.createElement(q.x,{phrase:"change"})))}var te=a(81803),ne=a(99940),se={getCustomerSecuritySettings:function(e,r,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:r,error:a}},setCustomerSecuritySettings:function(e,r,a,t){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:ne.k.PUT,normalize:!1,data:r,success:a,error:t}}},ie=a(68192),oe=i.T.encloseNamespace("settings.accountSettings");function ue(){var e,r=(0,s.I0)(),a=(0,P.Z)(),t=(0,U.a)(C.r.MDDown),i=o.a.useBasicFetch(I.N.currentUser()),d=o.a.useBasicFetch(i.data&&ie.N.getUser(i.data.id)),c=o.a.useBasicFetch(i.data&&se.getCustomerSecuritySettings(i.data.customerId)),m=S.getMinimumPasswordLength(c.data,null===(e=d.data)||void 0===e?void 0:e.userType,i.data.role);return n.createElement(te.d,{heading:oe("heading"),breadcrumbs:[oe("breadcrumb")]},n.createElement("div",{className:t?"w-100":"w-50"},i.data?n.createElement(V,{currentUser:i.data,onChangeEmail:function(e,t){o.a.fetch(r,ie.N.changeEmail(e.email,(function(){u.k.logUserAction({id:i.data.id,oldEmail:i.data.email,newEmail:e.email},{actionType:l.Vw.VerifyEmail,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Start}),a.success(oe("changeEmailRequestSuccess",{email:e.email,escapeText:!0}))}),(function(){a.error(oe("changeEmailRequestError"))}),t))}}):n.createElement(Z,null)),n.createElement("hr",null),n.createElement("div",{className:t?"w-100":"w-50"},c.data&&n.createElement(ae,{onChangePassword:function(e,t,n){o.a.fetch(r,ie.N.changePassword(e,(function(){u.k.logUserAction({id:i.data.id,oldPassword:e.currentPassword,newPassword:e.newPassword},{actionType:l.Vw.ChangePassword,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Complete}),a.success(oe("changePasswordSuccess")),n()}),(function(e){var r=e.responseJSON;console.log(r),"user.password-too-short"===r.errorCode?a.error(oe("changePasswordRequirementsError")):"user.invalid-password"===r.errorCode?a.error(oe("changePasswordInvalid")):"user.same-password"===r.errorCode?a.error(oe("changePasswordSame")):"user.locked-out"===r.errorCode?a.error(oe("changePasswordLockedOut")):a.error(oe("changePasswordError"))}),t))},minPasswordLength:m})))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[689],{85473:(e,t,n)=>{n.d(t,{Z:()=>u});var i=n(32735),r=n(1048),a=n(57408),o=n(16107),l=n(54610),c=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function d(e){var t=s.image,n="";return e.imageType===l.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(n=s.tallPoster),e.imageType===l.__.Covers&&(n=s.cover),e.imageType===l.__.Banners&&(n=s.banner),e.imageType===l.__.Posters&&(n=s.poster),e.imageType===l.__.Pdf&&(n=s.pdf),e.imageType===l.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function u(e){var t=e.data,n=e.imageOptions,l=e.appLink,s=e.preload,u=e.preventLoad,p=e.analyticsOptions,v=e.analyticsData,g=e.imageClassName,h=e.alt,m="";"string"==typeof t?m=t:r.t.isObject(t)&&(m=t.url);var f=m&&n?c.j.createUrl(m,n):m;return i.createElement("div",{className:d(e),style:e.imageStyle},i.createElement(a.F,{appLink:l,analyticsData:v,analyticsOptions:p,onClick:e.onClick},e.children,f&&i.createElement(o.w,{src:f,alt:h,forceLoad:s,preventLoad:u,extraClasses:g,errorFallbackImageSrc:e.errorFallbackImageSrc})))}},71063:(e,t,n)=>{n.d(t,{M:()=>i});var i={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},5960:(e,t,n)=>{var i,r;n.d(t,{H:()=>r,X:()=>i}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(i||(i={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},25301:(e,t,n)=>{n.d(t,{CG:()=>y});var i,r=n(23481),a=n(110),o=n(71063);function l(e){return l="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},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t,n){var i;return i=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(i)?i:i+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(i||(i={}));var d=r.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",v="pageDescription",g=s(s(s(s(s(s({},"au",i.AU),"gb",i.UK),"us",i.US),i.AU,"au"),i.UK,"gb"),i.US,"us");function h(e){return e?e.substring(0,e.length-3)+"...":""}function m(e){var t,n,i=e.title,r=e.phraseContext,a=e.product,o=void 0===a?"ClickView":a;if(!i)return"";if(!r)return d(p,{title:i,product:o});var l=70-(null!==(n=null===(t=r.phraseHandler(r.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return i.length>=l?d(p,{title:i,product:o}):r.phraseHandler(r.titlePhrase,{title:i})}function f(e){var t,n,i,r,a,o=e.title,l=e.description,c=e.phraseContext,s=h((160,(a=l||o)?a.substring(0,160):""));if(!c)return d(v,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(v,{description:s});var g=h(function(e,t,n){if(!e)return"";var i=160-n;if(e.length<=i)return e;var r=e.slice(0,i),a=r.match(u);return a?a[1]:r}(l,0,null!==(r=null===(i=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===i?void 0:i.length)&&void 0!==r?r:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:g})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var i,r,a,o=null===(i=g[n.contentRegion])||void 0===i?void 0:i.toUpperCase();return(null===(r=n.id)||void 0===r?void 0:r.toString())===(null==t?void 0:t.toString())&&o?[].concat(function(e){if(Array.isArray(e))return c(e)}(a=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return 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}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{"@type":"Place",name:o}]):e}),[]))&&void 0!==n?n:[]}function C(e,t,n){var i;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(i=null==e?void 0:e.thumbnail)||void 0===i?void 0:i.url,uploadDate:null==e?void 0:e.dateCreated,duration:a.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:b(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var y={getDefaultMetadata:function(e){var t=e.title,n=e.description,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,o=e.hrefLang;return{title:m({title:t,phraseContext:r,product:e.product}),description:f({title:t,description:n,phraseContext:r}),canonicalLink:i,allowIndexing:a,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:l}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:i}),jsonLd:C(t,n,o),canonicalLink:n,allowIndexing:r,hrefLang:a}},getClipMetadata:function(e){var t,n=e.content,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:m({title:null==n?void 0:n.name,phraseContext:r}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:i,allowIndexing:a}},getInteractiveMetadata:function(e){var t,n=e.content,i=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:m({title:null==n?void 0:n.name,phraseContext:r}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:i,allowIndexing:a}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:m({title:null==t?void 0:t.name,phraseContext:i}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:m({title:null==t?void 0:t.name,phraseContext:i}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:i}),canonicalLink:n,allowIndexing:r}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r,hrefLang:a}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,a=e.hrefLang,o=e.product;return{title:m({title:null==t?void 0:t.name,phraseContext:i,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:i}),canonicalLink:n,allowIndexing:r,hrefLang:a}}}},41760:(e,t,n)=>{n.d(t,{L:()=>i});var i={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[700],{99105:(e,t,a)=>{a.d(t,{x:()=>h,N:()=>E});var n=a(32735),r=a(57900),o=a(81886),i=a(2948),l=a(1048),c=a(91967);const s={disabled:"pERi4",disabledHighlighted:"AxyWm"};function m(e){var t=e.audience,a=e.highlight,r=e.setAudience,o=e.isDisabled,i=e.extraClasses,l=function(e,t){return e?t?"".concat(s.disabledHighlighted," text-light"):"bg-info text-light":t?"".concat(s.disabled," text-secondary"):"bg-light"}(a,o),m="rounded-pill d-inline-block me-1 user-select-none ".concat(o?"cursor-default":"cursor-pointer"," ").concat(l," ").concat(i);return n.createElement("span",{className:m,onClick:function(){!o&&c.q.isFunction(r)&&r(t,!a)},role:"checkbox","aria-checked":a},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}m.defaultProps={extraClasses:""};var u=a(11607),d=a(83345),b=a(38143),p=a(5859);function f(e,t){if(e){if("string"==typeof e)return g(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var v="subjects.audienceFilter";function h(e){var t,a,c=e.audiences,s=e.activeAudiences,p=e.disabled,h=e.appLink,y=(t=(0,i.D)(b.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,i,l=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,a)||f(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];function E(e,t){var a,n,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(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.")}()}(null!==(a=null==s?void 0:s.map((function(e){return e.name})))&&void 0!==a?a:[]),[e.name]):s.map((function(e){return e.name})).filter((function(t){return t!==e.name}));o.Q.C$.trigger(Object.assign(Object.assign({},h),{params:(n=l.t.omit(h.params,["a"]),r.length?Object.assign({},n,{a:r}):n)}),{replace:!0})}return n.useEffect((function(){e.disablePersist||y(s)}),[s]),c&&c.length?n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},c.map((function(e){return n.createElement(m,{key:e.masterId,audience:e,highlight:!!(null==s?void 0:s.find((function(t){return t.masterId===e.masterId}))),setAudience:E,isDisabled:p})})),!!s&&!!Object.keys(s).length&&n.createElement(u.L,{className:"info-link d-inline-block fw-semibold ms-1",onClick:function(){var e=l.t.omit(h.params,["a"]);o.Q.C$.trigger(Object.assign(Object.assign({},h),{params:e}),{replace:!0})}},n.createElement(d.x,{namespace:v,phrase:"clear"}))):n.createElement(n.Fragment,null)}var y=p.u.getPartialLoadingItems({numItems:6}),E=function(){return n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},y.map((function(e,t){var a=e.width;return n.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:" "},style:{width:a}})})))}},70275:(e,t,a)=>{a.d(t,{a:()=>h});var n=a(32735),r=a(23481),o=a(75902),i=a(35223);function l(e){return l="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},l(e)}function c(e,t,a){var n;return n=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(n)?n:n+"")in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=c(c(c({},o.GL.Archived,{svgName:i.vn.Archive,svgColorClassName:"text-secondary",actionName:"Archive",statusName:"Archived"}),o.GL.Draft,{svgName:i.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),o.GL.Published,{svgName:i.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),m=a(83914),u=a(26154);const d={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function b(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(d.badge);switch(e.status){case u.GL.Published:t+=" ".concat(d.published);break;case u.GL.Archived:t+=" ".concat(d.archived);break;case u.GL.Draft:t+=" ".concat(e.darkMode?d.draftDark:d.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function p(e){var t=s[e.status],a=t.statusName,r=t.svgName;return n.createElement("div",{className:b(e)},n.createElement(m.x,{svgName:r}),n.createElement("div",null,a))}var f=a(10731);const g={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var v=r.T.encloseNamespace("shared.classificationPreviewBanner");function h(e){return n.createElement("div",{className:"".concat(g.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},n.createElement("div",{className:"position-absolute d-flex ".concat(g.badgeWrapper)},n.createElement(p,{status:e.status,wrapperClassName:"".concat(g.badge),darkMode:!0})),n.createElement("div",{className:"flex-grow-1"},n.createElement("h1",{className:"text-center my-3 h5"},n.createElement(f.V,{emoji:"👀"}),v("topic"===e.type?"topicTitle":"companyTitle"))))}},75553:(e,t,a)=>{a.d(t,{p:()=>L,v:()=>S});var n=a(32735),r=a(110),o=a(12788),i={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},l=a(79878),c=a(39880),s=a(64887),m=a(23481),u=a(57408),d=a(83914),b=a(35223),p="shared.backButton";function f(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,o=t.color,i=t.extraClasses,l=t.textShadow,c=a?m.T.getPhrase(p,"backTo",{backToName:a}):m.T.getPhrase(p,"back"),s="black"===o?"":"text-white",f=l?"text-shadow":"";return n.createElement(u.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i," ").concat(s," ").concat(f)},n.createElement(d.x,{svgName:b.vn.ChevronLeft,size:d.S.Medium}),n.createElement("span",{className:"ms-1"},c))}f.defaultProps={color:"black",extraClasses:""};var g=a(16107),v=a(83345),h=a(10587),y=a(94232),E=a(54610),w=a(79967),N=a(67453);const k={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var C="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function x(e){return e.length<160?"h1":k.headingLarge}var L=n.memo((function(e){var t,a,o,m,u=e.heading,d=e.banner,b=e.imageCdnUrl,p=e.actions,h=e.sortComponent,L=e.blockColourClass,S=e.specialEvent,_=n.useContext(y.n),D=(0,w.k)().xxl?1920:1200,j=n.useMemo((function(){if(!S||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return S.endDate?S.startDate<=t&&S.endDate>=t:S.startDate===t}),[S]),I=e.imageOptions||{width:D,ratio:C,resizeType:E.Nq.Cover},O=!!d&&!!b&&N.j.createBannerUrl(d,{fallbackBaseUrl:b,fallbackCategoryName:u,type:E.__.Banners},I),A={className:"banner banner-header ".concat(e.bannerClassName),style:O?{backgroundImage:"url('".concat(O,"')")}:{}};!d&&L&&(delete A.style,A.className+=" ".concat(L));var P=e.detailsComponent;return i.renderInPortalIfExists(n.createElement("header",Object.assign({},A),n.createElement("div",{className:"container ".concat(k.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(f,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(k.bannerContent," ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?k.bannerContentWithLogo:""))},!!S&&n.createElement("div",{className:"position-relative ".concat(k.specialEventContainer)},n.createElement(c.s,{body:{type:S.endDate?"range":"day",text:S.endDate?"".concat(r.O.format(S.startDate,"DD"),"-").concat(r.O.format(S.endDate,"DD")):r.O.format(S.startDate,"DD")},month:r.O.format(S.startDate,"MMMM"),theme:e.calendarTheme})),n.createElement("div",null,j&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(v.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&n.createElement("div",{className:"".concat(k.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(a=e.logo)||void 0===a?void 0:a.url)&&n.createElement(g.w,{src:N.j.createUrl(null===(o=e.logo)||void 0===o?void 0:o.url,{size:E.h2.Small})})),n.createElement("h1",{className:"text-white text-shadow pe-3 ".concat(k.heading," ").concat(x(u)," ").concat(e.alignLogoLeft?"w-50":"")},u,P&&n.createElement(P,null)))),!!p&&n.createElement("div",{className:k.actionsContainer},n.createElement(s.e,{actions:p,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(m=e.logo)||void 0===m?void 0:m.url)&&n.createElement("div",{className:k.logoContainer},n.createElement("img",{src:N.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==_?void 0:_.container)}),(function(e,t){var a,n;return e.actions===t.actions&&e.heading===t.heading&&(null===(a=e.logo)||void 0===a?void 0:a.url)===(null===(n=t.logo)||void 0===n?void 0:n.url)}));function S(){var e=n.useContext(y.n);return i.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(k.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>u,b2:()=>d});var n=a(32735),r=a(57408),o=a(86764),i=a(3747),l=a(5859),c=a(35223),s=a(83914),m=function(e){var t=e.breadcrumb,a=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,a):n.createElement(r.F,{appLink:o},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ms-2":""},a)))},u=function(e){var t=e.breadcrumbs,a=(0,i.a)(o.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(m,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(m,{key:t,breadcrumb:e})}))))},d=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,i.a)(o.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},10587:(e,t,a)=>{a.d(t,{y:()=>i});var n=a(54610);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,a){var n;return n=function(e,t){if("object"!=r(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==r(n)?n:n+"")in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var i=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[784],{27025:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>Y});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),l=t(75896),c=t(78259),s=t(15800),d=t(83345),u=t(64444),m=t(26154),p=t(35223),y="streamable.companyDashboardEmptyState",g=r.T.encloseNamespace(y);function b(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===m.GL.Archived;return n.createElement(d.D.Provider,{value:y},n.createElement(s.u,null,n.createElement(s.u.Image,{src:e.imageUrl,altText:g("headingForStreamable")}),e.isReadOnly?n.createElement(n.Fragment,null,n.createElement(s.u.Heading,null,n.createElement(d.x,{namespace:y,phrase:"headingForCurator"})),n.createElement(s.u.Info,null,n.createElement(d.x,{namespace:y,phrase:"info"})),n.createElement(u.u,{title:i?r.T.getPhrase(y,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(s.u.Cta,{text:r.T.getPhrase(y,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:p.vn.Plus,disabled:i}))):n.createElement(s.u.Heading,null,n.createElement(d.x,{phrase:"headingForStreamable"}))))}var v=t(99105),f=t(75553),h=t(49935),C=t(2605),E=t(7733),k=t(21366),T=t(9085);function L(e){return L="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},L(e)}function A(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=new Array(a);t<a;t++)n[t]=e[t];return n}function O(e){var a,t,r,i,o,s,d=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),u=n.useMemo((function(){return d.reduce((function(e,a){return e[a.id]=!1,e}),{})}),[null==d?void 0:d.length]),m=(o=n.useState(u),s=2,function(e){if(Array.isArray(e))return e}(o)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(l.push(n.value),l.length!==a);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(o,s)||function(e,a){if(e){if("string"==typeof e)return A(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,a):void 0}}(o,s)||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.")}()),p=m[0],y=m[1];function g(a,t,n){var r,i=k.S.getWidgetParams(t,n,k.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(a,i,n)}var O=n.useCallback((function(e,a){if(p[e]!==a){var t=Object.assign(Object.assign({},p),function(e,a,t){var n;return n=function(e,a){if("object"!=L(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a),(a="symbol"==L(n)?n:n+"")in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}({},e,a));y(t)}}),[p,d]),w=!(null==d?void 0:d.length)||Object.values(p).every((function(e){return!!e}));return n.createElement(n.Fragment,null,!!d.length&&n.createElement(n.Fragment,null,e.company?n.createElement(f.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,T.x)(e.company.name,E.o),actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(f.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(h.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),n.createElement(v.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(i=e.appLinks)||void 0===i?void 0:i.audience()})),e.company.description&&n.createElement("div",{className:"mb-5"},n.createElement("span",{dangerouslySetInnerHTML:{__html:c.O.linkifyText(e.company.description)}})),n.createElement("div",null,d.map((function(a){return n.createElement(C.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:g,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,setIsEmpty:O,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,preferences:a.preferences})})))),w&&n.createElement(b,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var w=t(70275),S=t(25925),I=t(67058),P=t(89454),F=t(39151),U=t(80889),x=t(79612),D=t(69454),B=t(25301),R=t(99742),_=t(96359),j=t(41760),W=t(41135),H=t(97395),N={company:function(e,a){return{url:H._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:H._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}}},M=t(31700),q=t(73688),G=t(65751),z=t(6117),Q=t(28400),V=r.T.encloseNamespace("dashboard.companyDashboard");function Y(e){var a,t,r,l=o.a.useBasicFetch(F.L.config()),c=o.a.useBasicFetch(N.company(e.companyId,{query:"banner,logo"})),s=o.a.useBasicFetch(M.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&P.O.presentationAudiences(s.data.id,S.R.StreamableLearning)),u=D.T.getActiveAudiencesFromParams(d.data,e.queryParams),p=c.data&&function(e,a){return{audience:function(){return{application:W.O.DASHBOARD,action:_.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,Q.m.slugify(e.name)],params:a}}}}(c.data,e.queryParams),y=(0,q.B)({targetType:m.ku.Company,companyId:e.companyId,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}),g=y.dashboard,b=y.isPreviewing;return(0,x.M)(B.CG.getDefaultMetadata({title:null===(t=c.data)||void 0===t?void 0:t.name,phraseContext:{phraseHandler:V,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:z.f.getCanonicalLink(),allowIndexing:!0,product:j.L.PRODUCT_NAME})),n.useEffect((function(){g.hasCompleted&&!g.data&&i.Q.Ry.throw(new I.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&s.hasCompleted&&d.hasCompleted&&c.hasCompleted?n.createElement("div",{className:"position-relative px-4"},!(!b||!g.data)&&n.createElement(w.a,{status:g.data.status,type:"company"}),n.createElement(O,{company:c.data,dashboard:g.data,getWidgetContentRequest:U._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:R.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:s.data,widgetAppLinks:G.y,getBreadcrumbs:function(){return c.hasCompleted?[{name:V("discover"),appLink:{application:W.O.DASHBOARD,action:_.e.Dashboard.HOME}},{name:c.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:R.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:p,emptyImageUrl:R.W.EmptyStates.Topics.TOPIC,lazyLoad:!z.f.isBot()})):n.createElement(n.Fragment,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[790],{16107:(e,i,t)=>{t.d(i,{w:()=>o});var n=t(32735),r=t(65294);const a="fVSzb";function l(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t<i;t++)n[t]=e[t];return n}var o=n.memo((function(e){var i,t,o=e.forceLoad,s=e.extraClasses,u=void 0===s?"":s,c=e.errorFallbackImageSrc,d=e.preventLoad,f=void 0!==d&&d,v=e.src,m=e.alt,_=function(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)i.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","src","alt"]),g=(0,r.Y)({rootMargin:"500px"}),p=g.ref,b=g.inView,y=(i=n.useState(!1),t=2,function(e){if(Array.isArray(e))return e}(i)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,l,o=[],s=!0,u=!1;try{if(a=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=a.call(t)).done)&&(o.push(n.value),o.length!==i);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw r}}return o}}(i,t)||function(e,i){if(e){if("string"==typeof e)return l(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,i):void 0}}(i,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=y[0],L=y[1];function S(){return h&&c?c:e.src}if(n.useEffect((function(){if((o||b)&&!f){var e=new Image;return e.onerror=function(){L(!0),c&&(e.src=c)},e.src=v,function(){return e.onerror=null}}}),[b,f]),h&&!c)return n.createElement(n.Fragment,null);if(!p)return n.createElement("img",Object.assign({className:"".concat(a," ").concat(u),alt:m,src:S()},_));var A=Object.assign(Object.assign({alt:m},_),!b&&!o||f?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:S()});return o||(A.ref=p),n.createElement("img",Object.assign({className:"".concat(a," ").concat(u)},A))}))},78417:(e,i,t)=>{var n;t.d(i,{r:()=>n}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},25925:(e,i,t)=>{var n;t.d(i,{R:()=>n}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(n||(n={}))},78479:(e,i,t)=>{var n;t.d(i,{f:()=>n}),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.HeroBanner="hero_banner",e.HeroBannerSmall="hero_banner_small",e.HeroThumbnailSmall="hero_thumbnail_small",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.OnboardingSteps="onboarding_steps",e.ThumbnailVerticalList="thumbnail_vertical_list",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(n||(n={}))},42308:(e,i,t)=>{var n;t.d(i,{z:()=>n}),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.ClassificationLatestReleasedVideo="classification_latest_released_video",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.AuthorReviewer="author_reviewer",e.Faq="faq",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.UpcomingLivestreams="upcoming_livestreams",e.CuratedMultimedia="curated_multimedia",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(n||(n={}))},65294:(e,i,t)=>{t.d(i,{Y:()=>a});var n=t(34152);function r(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t<i;t++)n[t]=e[t];return n}function a(){var e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.prevent,l=t.rootMargin,o=t.triggerOnce,s=void 0===o||o,u=(e=(0,n.YD)({triggerOnce:s,rootMargin:l}),i=3,function(e){if(Array.isArray(e))return e}(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,a,l,o=[],s=!0,u=!1;try{if(a=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=a.call(t)).done)&&(o.push(n.value),o.length!==i);s=!0);}catch(e){u=!0,r=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw r}}return o}}(e,i)||function(e,i){if(e){if("string"==typeof e)return r(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,i):void 0}}(e,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=u[0],d=u[1],f=u[2];return!0!==a&&void 0!==window.IntersectionObserver||(d=!0,c=null),{ref:c,inView:d,initialized:!!f}}},26154:(e,i,t)=>{var n,r,a,l;t.d(i,{VH:()=>c,OL:()=>r,GL:()=>m.GL,ku:()=>m.ku,Yv:()=>m.Yv,Z9:()=>n,l9:()=>o}),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(n||(n={})),function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases"}(r||(r={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(a||(a={})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(l||(l={}));var o,s,u,c,d,f,v,m=t(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(o||(o={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(s||(s={})),function(e){e[e.Holiday=0]="Holiday",e[e.SportingEvent=1]="SportingEvent",e[e.Observance=2]="Observance",e[e.NaturalDisaster=3]="NaturalDisaster",e[e.HistoricalEvent=4]="HistoricalEvent",e[e.BreakingNews=5]="BreakingNews",e[e.Informal=6]="Informal",e[e.ReligiousEvent=7]="ReligiousEvent",e[e.Livestream=8]="Livestream",e[e.Other=255]="Other"}(u||(u={})),function(e){e[e.Classification=0]="Classification",e[e.Livestream=1]="Livestream"}(c||(c={})),function(e){e[e.Regular=0]="Regular",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(d||(d={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(f||(f={})),function(e){e[e.Audience=0]="Audience",e[e.Topic=1]="Topic",e[e.Curriculum=2]="Curriculum"}(v||(v={}))},75902:(e,i,t)=>{var n,r,a,l;t.d(i,{GL:()=>a,Yv:()=>r,ku:()=>l}),function(e){e.Any="Any",e.Level_1="Level_1",e.Level_2="Level_2",e.Level_3="Level_3",e.Level_4="Level_4"}(n||(n={})),function(e){e.Any="Any",e.Staff="Staff",e.Learner="Learner"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(a||(a={})),function(e){e.Discover="discover",e.Classification="classification",e.MoviesAndTv="movies-and-tv",e.Company="company"}(l||(l={}))},49542:(e,i,t)=>{t.d(i,{d:()=>d});var n,r=t(32735),a=t(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(n||(n={}));var l,o=t(78479),s=t(42308),u=t(26154);function c(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t<i;t++)n[t]=e[t];return n}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(l||(l={}));var d={getSliderAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:a.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Title}},useGetContent:function(e,i){return r.useMemo((function(){var t;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var n,r=null!==(t=null==i?void 0:i.reduce((function(e,i){return e[i.id]=i,e}),{}))&&void 0!==t?t:{},a=function(e){if(Array.isArray(e))return c(e)}(n=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,i){if(e){if("string"==typeof e)return c(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,i):void 0}}(n)||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.")}(),l=a.sort((function(e,i){var t,n,l,o,s=null!==(n=null===(t=r[e.id])||void 0===t?void 0:t.index)&&void 0!==n?n:a.findIndex((function(i){return i.id===e.id})),u=null!==(o=null===(l=r[i.id])||void 0===l?void 0:l.index)&&void 0!==o?o:a.findIndex((function(e){return e.id===i.id}));return s<u?-1:s>u?1:0}));return{content:l.filter((function(e){var i;return!(null===(i=r[e.id])||void 0===i?void 0:i.hidden)})),unfilteredContent:l}}),[e,i])},getCustomAppLink:function(e){var i,t,n,r,a,l;return(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===u.OL.LatestReleases?null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(r=e.metadata)||void 0===r?void 0:r.appLink)===u.OL.ExploreAllTopics?null===(l=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===l?void 0:l.call(a,e.presentation.id):null},getWidgetStatus:function(e){var i=e.status;if("string"==typeof i)switch(i){case l.Archived:i=n.Archived;break;case l.Published:i=n.Published;break;case l.Draft:i=n.Draft}return i},formatResponseData:function(e,i){var t=e.content;if(!t)return e;if("author"in t)return e.content=[t],e;switch("data"in t?e.content=t.data:Array.isArray(t)||(e.content=[t]),e.widgetId){case s.z.ClassificationSeries:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)}));break;case s.z.ClassificationPlaylists:e.content=e.content.filter((function(e){var i;return!!(null===(i=e.cover)||void 0===i?void 0:i.id)}));break;case s.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case s.z.Presentations:e.content=e.content.filter((function(e){var t;return e.id.toString()!==(null===(t=null==i?void 0:i.id)||void 0===t?void 0:t.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===s.z.Blurb},canDisplayOnScreenSize:function(e,i,t){return i!==s.z.Blurb||t!==o.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case s.z.CompanyLatestReleasedVideo:case s.z.CompanyVideos:return!0;default:return!1}}}},31700:(e,i,t)=>{t.d(i,{g:()=>a});var n=t(97395),r=t(25925),a={streamablePresentation:function(){return{url:n._.urlBuilder("/api/subjects/presentations/available",{type:r.R.StreamableLearning}),key:"streamable:learning:presentations",bootstrapName:"availablePresentations",formatData:function(e){return e[0]},normalizeOptions:{namespace:"internal:presentation"}}}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 843-b0a9a525f0-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[843],{92869:(e,t,r)=>{r.d(t,{t:()=>o});var n=r(43823),a=r(95846),o={preventScrollTop:function(){n.Radio.channel(a.G.SHELL).trigger("prevent:scroll:top")}}},40290:(e,t,r)=>{function n(e){return n="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},n(e)}var a;r.d(t,{F:()=>s,r:()=>a}),function(e){e.EST="Eastern Standard Time"}(a||(a={}));var o,i,c,l,s=(o={},c={name:"Eastern Time",timezone:"America/New_York",code:"EST"},l=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i=a.EST),(i="symbol"==n(l)?l:l+"")in o?Object.defineProperty(o,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[i]=c,o)},59795:(e,t,r)=>{r.d(t,{t:()=>o});var n=r(110),a=r(40290),o={convertToUTCString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;return e?n.O.getUtcStringByTimezone(e,a.F[t].timezone):""},convertUTCToTimezoneDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;if(!e)return new Date;var r=e.includes("Z")?e:"".concat(e,"Z"),n=new Date(r),o=new Intl.DateTimeFormat("en-US",{timeZone:a.F[t].timezone,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(n);return new Date(o)}}},1269:(e,t,r)=>{r.d(t,{n:()=>E,W:()=>S});var n=r(32735),a=r(80247),o=r(50132),i=r(92802),c=r(91967),l=r(1048),s=r(57408),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function m(e){var t=e.label,r=e.checkboxLabelClassName,a=e.checkboxLabelFontWeight,i=e.className,c=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(o.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(E,Object.assign({className:"form-check-input"},c)),n.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(r),htmlFor:c.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var f=r(83914),d=r(83345),p={getCustomFormControlClassName:function(e,t,r,n,a,o){var c="";return c=function(e,t){var r="";return r="select"===e?"form-select":"form-control","sm"===t&&(r+=" ".concat(r,"-sm")),"lg"===t&&(r+=" ".concat(r,"-lg")),r}(o,n),(0,i.u9)(t,r)&&(0,i.u9)(e,r)&&(c+=" is-invalid"),a&&(c+=" ".concat(a)),c}},v=r(35223);function y(e){var t=(0,i.u6)().values[e.fieldName];return"string"!=typeof t?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r},w="shared.formField";function E(e){var t,r,o=e.children,s=e.showLoadingSpinner,u=g(e,["children","showLoadingSpinner"]),m=(t=n.useState(e.type),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=m[0],p=m[1],y=c.q.isFunction(o)?function(e){return o(e)}:n.Children.count(o)?o:null;if("password"!==u.type)return s?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y),n.createElement("div",{className:h.spinner},n.createElement(a.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize"])),y);var w="position-relative ".concat(h.passwordContainer);return u.className&&(w+=" ".concat(u.className)),u.disabled&&(w+=" ".concat(h.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(u,["formSize","type","className"]),{type:d,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===u.type&&n.createElement(f.x,{svgName:"password"===d?v.vn.VisibleOn:v.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){p("password"===d?"text":"password")}}))}function S(e){var t=e.label,r=e.className,a=e.showCharacterCounter,c=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,b=e.infoText,S=e.formSize,O=e.showOptionalLabel,N=g(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),j=(0,i.u6)(),A=j.errors,x=j.touched,P=function(){};if("checkbox"===N.type){var k=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(k.onChange=P),n.createElement(m,Object.assign({},k))}var L=Object.assign(Object.assign({},N),{className:p.getCustomFormControlClassName(A,x,N.name,S,r,"string"==typeof e.as?e.as:null)});return e.disabled&&(L.onChange=P),n.createElement(o.Z.Group,{className:"form-group"},!!t&&n.createElement(o.Z.Label,{htmlFor:N.id,className:"d-flex align-items-center"},t,c&&n.createElement("span",{className:"text-danger"},"*"),s&&n.createElement(f.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:v.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(d.x,{namespace:w,phrase:"optional"})),!!a&&!!N.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(y,{fieldName:N.name,limit:N.maxLength}))),n.createElement(E,Object.assign({},L)),!!b&&n.createElement(o.Z.Text,{className:"text-secondary"},b),n.createElement(i.Bc,{name:N.name},(function(e){return n.createElement(o.Z.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},S.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,r)=>{r.d(t,{b:()=>u,n:()=>s});var n=r(32735),a=r(92802),o=r(91967),i=r(1048);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r};function s(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,m=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),f=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(n){t.hasOwnProperty(n)&&(i.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])}))}(t),t}(s)):s,d={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(a.J9,Object.assign({enableReinitialize:!0},m,{initialValues:f,onSubmit:function(t,n){var a=n.setSubmitting,o=n.resetForm,i=n.setFieldError,l=r&&e.validationSchema?e.validationSchema.cast(t):t;u(l,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&o(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var s=(e=l[n],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],m=s[1];i(u,m)}a(!1)}))},initialStatus:d}),o.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function u(){return(0,a.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},16107:(e,t,r)=>{r.d(t,{w:()=>c});var n=r(32735),a=r(65294);const o="fVSzb";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=n.memo((function(e){var t,r,c=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,u=e.errorFallbackImageSrc,m=e.preventLoad,f=void 0!==m&&m,d=e.src,p=e.alt,v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","src","alt"]),y=(0,a.Y)({rootMargin:"500px"}),h=y.ref,b=y.inView,g=(t=n.useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=g[0],E=g[1];function S(){return w&&u?u:e.src}if(n.useEffect((function(){if((c||b)&&!f){var e=new Image;return e.onerror=function(){E(!0),u&&(e.src=u)},e.src=d,function(){return e.onerror=null}}}),[b,f]),w&&!u)return n.createElement(n.Fragment,null);if(!h)return n.createElement("img",Object.assign({className:"".concat(o," ").concat(s),alt:p,src:S()},v));var O=Object.assign(Object.assign({alt:p},v),!b&&!c||f?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:S()});return c||(O.ref=h),n.createElement("img",Object.assign({className:"".concat(o," ").concat(s)},O))}))},49267:(e,t,r)=>{r.d(t,{a:()=>d});var n=r(23481),a=r(64364);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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function l(e,t,r){return t=u(t),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)}(e,s()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var f="shared.regionLockedResourceError",d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),l(this,t,[n.T.getPhrase(f,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,(a=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return n.T.getPhrase(f,"heading")}},{key:"description",get:function(){return n.T.getPhrase(f,"description")}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(a.H)},45445:(e,t,r)=>{r.d(t,{r:()=>w});var n=r(50242),a=r(81886),o=r(67058),i=r(23481),c=r(64364);function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function m(e,t,r){return t=d(t),function(e,t){if(t&&("object"===l(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)}(e,f()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var v="shared.privateResourceError",y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),m(this,t,[i.T.getPhrase(v,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(v,"heading")}},{key:"description",get:function(){return i.T.getPhrase(v,"description")}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H),h=r(49267),b=r(49075),g={notFound:o.d,forbidden:{rating:y,yearLevel:y,region:h.a,privacy:y},badRequest:b._};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},g),t);o&&a.Q.Ry.isStatusCodeError(o)&&(o!==n.o.NotFound?o!==n.o.Forbidden?r.badRequest||a.Q.Ry.throw(new i.badRequest):r.forbidden||a.Q.Ry.throw(new i.forbidden.privacy):r.notFound||a.Q.Ry.throw(new i.notFound))}}},91286:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(32735),a=r(45445);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function i(e,t,r){var i=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){i.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[o(i),t,r])}},65294:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(34152);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.prevent,i=r.rootMargin,c=r.triggerOnce,l=void 0===c||c,s=(e=(0,n.YD)({triggerOnce:l,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],m=s[1],f=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(m=!0,u=null),{ref:u,inView:m,initialized:!!f}}},69454:(e,t,r)=>{r.d(t,{T:()=>m});var n=r(75896),a=r(1048),o=r(55171);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=/\d/,l=function(e){var t,r,a=n.m.first(e),o=n.m.last(e);return a.name===o.name?a.name:"Advanced"===o.name?"lower"===(t=a.name.split(" "),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,t){var r=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return r.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,r,a,i="";switch(+n.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:case o.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})).join(" "),r=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],n=t.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!c.test(e.name)})),o=n.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(o+="s"),a&&r.length)return"".concat(o," ").concat(a.name.charAt(0)," - ").concat(r.pop());var i=function(e){var t,r,n,a,o=!1,i=[];for(e=e.sort((function(e,t){return e-t})),n=0;n<e.length;n++)a=n+1,o||(t=e[n]),r=e[a],e[n]+1===r?o=!0:o?(i.push("".concat(t," - ").concat(e[n])),o=!1):(i.push("".concat(e[n])),o=!1);return i}(r);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})),r={};t.forEach((function(e,t){if(0!==t){var n=e.split(" ");Object.keys(r).forEach((function(e){n.includes(e)||delete r[e]}))}else e.split(" ").forEach((function(e,t){r[e]=0===t?"start":"end"}))}));var n=Object.keys(r)[0],a=r[n];if(!n)return e[0].name;var o=e[0].name,i=e[e.length-1].name,c=function(e){return e.split(n)[0]},l="".concat(c(o)," - ").concat(c(i));return"start"===a?"".concat(n," ").concat(l):"".concat(l," ").concat(n)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=l(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:t=e,r=n.m.first(t),a=n.m.last(t),i=r.name===a.name?r.name:"Senior Phase"===a.name?"".concat(r.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var t=n.m.first(e),r=n.m.last(e),a=n.m.first(t.name.split(" ")),o=n.m.first(r.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),c=r.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===r)return"Key"===a||"Reception"===a?t.name:"".concat(a," KS").concat(i);var l="",s="";return l="Reception"===a?"R":"KS".concat(i),s="KS".concat(c),"Lower"===a&&"Upper"===o?"L ".concat(l," - U ").concat(s):("Lower"===a&&(l="Lower ".concat(l)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=r.name),"".concat(l," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var a=+n.m.first(e.name.match(s));if(!t)return t=e,void(r=a);a<r&&(t=e)})),t):null;var t,r},r={},a=[];return e.forEach((function(e){if(!r[e.name])return r[e.name]=1,void a.push(e);a.push(e),r[e.name]++;var n=a.splice(a.length-r[e.name]).sort((function(e,r){var n=t(e.subjectPresentationAudiences.data),a=t(r.subjectPresentationAudiences.data);if(!n&&a)return 1;if(!a)return-1;var o=n.name.localeCompare(a.name);return 0===o?o:o>0?-1:1}));a=a.concat(n)})),a},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(t)&&!a.t.isEmpty(t)&&e&&e.length&&m.shouldShowAudiences(e)){var r=t.a;if(r){"string"==typeof r&&(r=[r]);var n=function(e){return e.replace(u,"").toLowerCase()},o=r.reduce((function(e,t){return e[n(t)]=t,e}),{});return e.filter((function(e){return o[n(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},92593:(e,t,r)=>{r.r(t),r.d(t,{LivestreamView:()=>ve});var n=r(32735),a=r(95846),o=r(81886),i=r(23481),c=r(92869),l=r(67575),s=r(20354),u=r(110),m=r(28400),f=r(92582),d=r(65858),p=r(40290),v=r(59795),y=r(57408),h=r(85473),b=r(83914),g=r(83345),w=r(69454),E=r(35223);const S={logoContainer:"L5WZ0"};var O="streamable.livestreamDetails";function N(e){var t,r,a;function o(e){return v.t.convertUTCToTimezoneDate(e)}return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center mb-2"},e.logoUrl&&n.createElement(y.F,{appLink:e.companyAppLink},n.createElement("div",{className:"".concat(S.logoContainer," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background me-2")},n.createElement(h.Z,{data:e.logoUrl,alt:e.companyName,preload:!0}))),n.createElement("div",{className:"d-flex flex-column justify-content-between"},e.companyName&&n.createElement(y.F,{appLink:e.companyAppLink,className:"text-uppercase text-wrap d-block text-truncate mb-0",title:e.companyName},e.companyName),n.createElement("h1",{className:"h4 mb-0"},e.eventName))),n.createElement("div",{className:"d-flex gap-2 mb-3"},!!(null===(t=e.audiences)||void 0===t?void 0:t.length)&&n.createElement("div",{className:"rounded-pill border border-dark px-2"},function(){var t;return null===(t=w.T.getMergedPresentationAudienceString(e.audiences))||void 0===t?void 0:t.name}()),n.createElement("div",{className:"rounded-pill fw-semibold bg-dark text-white px-2"},n.createElement("span",{className:"align-middle"},"".concat(u.O.diffBetween(e.endTime,e.startTime,"minutes"),"m")))),e.isPastLivestream&&n.createElement("div",{className:"d-inline-flex align-items-center bg-light-green rounded-pill p-1 pe-2 gap-2 mb-3"},n.createElement(b.x,{svgName:E.vn.Check,className:"svg-container text-white bg-success rounded-circle"}),n.createElement("p",{className:"align-middle mb-0"},n.createElement(g.x,{namespace:O,phrase:"pastLivestream"}))),!e.isPastLivestream&&n.createElement(n.Fragment,null,n.createElement("p",{className:"mb-2"},n.createElement(b.x,{svgName:E.vn.Timer,size:b.S.Small}),n.createElement("span",{className:"ms-1"},(a=e.startTime,u.O.format(o(a),"h:mma")))),n.createElement("p",{className:"mb-2"},n.createElement(b.x,{svgName:E.vn.Calendar,size:b.S.Small}),n.createElement("span",{className:"ms-1"},(r=e.startTime,u.O.format(o(r),"Do MMMM")))),n.createElement("p",{className:"mb-3"},n.createElement(b.x,{svgName:E.vn.Globe,size:b.S.Small}),n.createElement("span",{className:"ms-1"},function(e){var t,r;return"".concat(null===(t=p.F[e])||void 0===t?void 0:t.code," - ").concat(null===(r=p.F[e])||void 0===r?void 0:r.name)}(e.timezone)))),e.description&&n.createElement("p",{className:"mb-3"},e.description))}var j=r(99940),A={createBooking:function(e){return{publicUrl:"/api/integrations/api/v1/bookings",url:"{gateway}/v1/events/booking",key:"streamable:create:booking",type:j.k.POST,data:e}}},x=r(58960),P=r(5960),k=r(67058),L=r(31949),T=r(91286),I=r(35286),C=r(79612),R=r(81041),_=r(25301),F=r(96359),D=r(41760),V=r(41135),U=r(55941),M=r(6117);const z={logo:"mOQW9"};var B="streamable.bookingSuccess";function G(e){var t;return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(z.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement(h.Z,{data:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,alt:e.livestream.company.name,preload:!0})),n.createElement("div",{className:"d-flex align-items-center justify-content-center mb-3 gap-1"},n.createElement(b.x,{svgName:E.vn.CheckCircle,className:"svg-container std text-success"}),n.createElement("h1",{className:"h3 mb-0 fw-semibold"},n.createElement(g.x,{namespace:B,phrase:"booked"}))),n.createElement("div",{className:"my-3"},n.createElement(N,{companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone})),n.createElement("p",null,n.createElement(g.x,{namespace:B,phrase:"emailReminder"})))}var Y=r(99742);const q={image:"dxgov"};var Z="streamable.bookingError";function H(e){return n.createElement("div",{className:"d-flex flex-column justify-content-center"},n.createElement("div",{className:"".concat(q.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement("img",{className:q.image,src:Y.W.General.LOST_MESSAGE_BOTTLE})),n.createElement("h3",{className:"text-center mb-3"},n.createElement(g.x,{namespace:Z,phrase:"heading"})),n.createElement("p",{className:"text-center mb-3"},n.createElement(g.x,{namespace:Z,phrase:"description"})),n.createElement("button",{className:"btn btn-dark",onClick:e.onTryAgain},n.createElement(g.x,{namespace:Z,phrase:"buttonLabel"})))}function W(e){return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(e.className),style:{backgroundImage:"url(".concat(e.coverImageUrl,")")}}))}var Q=r(92802),$=r(5173),K=r(1269),J=r(82644),X="streamable.livestreamView",ee=i.T.encloseNamespace(X),te=$.Ry({firstName:$.Z_().required(ee("firstNameRequired")),lastName:$.Z_().required(ee("lastNameRequired")),email:$.Z_().required(ee("emailRequired")),attendees:$.Z_().required(ee("attendeesRequired"))});function re(e){var t,r,a,o,i=(0,J.b)();return n.createElement(Q.l0,null,n.createElement("div",{className:"row row-gap-2 my-3"},n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(K.W,{label:"First name",name:"firstName",placeholder:"Enter your first name",value:null===(t=i.values)||void 0===t?void 0:t.firstName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(K.W,{label:"Last name",name:"lastName",placeholder:"Enter your last name",value:null===(r=i.values)||void 0===r?void 0:r.lastName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"d-flex flex-column justify-content-start col-12 col-lg-8"},n.createElement(K.W,{label:"Email",name:"email",placeholder:"Enter your email",value:null===(a=i.values)||void 0===a?void 0:a.email,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12 col-lg-4"},n.createElement(K.W,{type:"number",label:"Attendees",name:"attendees",placeholder:"Enter number of attendees",min:0,value:null===(o=i.values)||void 0===o?void 0:o.attendees,showRequiredStar:!0}))),n.createElement("button",{type:"submit",className:"btn btn-dark w-100"},n.createElement(g.x,{namespace:X,phrase:"book"})))}function ne(e){return n.createElement(J.n,{initialValues:e.initialValues,validationSchema:te,onSubmit:e.onSubmit},n.createElement(re,{isAuthenticated:e.isAuthenticated}))}const ae={noRecording:"O0mTQ",coverImage:"G47S2",popup:"DydcO",page:"YxTMr"};function oe(e){return oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oe(e)}function ie(){ie=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),c=new L(n||[]);return a(i,"_invoke",{value:A(e,r,c)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function h(){}function b(){}function g(){}var w={};s(w,i,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(T([])));S&&S!==r&&n.call(S,i)&&(w=S);var O=g.prototype=h.prototype=Object.create(w);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(a,o,i,c){var l=m(e[a],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==oe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function A(t,r,n){var a=f;return function(o,i){if(a===p)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=x(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=p;var s=m(t,r,n);if("normal"===s.type){if(a=n.done?v:d,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function x(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var o=m(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(oe(t)+" is not iterable")}return b.prototype=g,a(O,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:b,configurable:!0}),b.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},N(j.prototype),s(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(O),s(O,l,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;k(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,c=[],l=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var se=function(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{l(n.next(e))}catch(e){o(e)}}function c(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},ue="streamable.livestreamView",me=i.T.encloseNamespace(ue);function fe(e){var t,r={application:V.O.DASHBOARD,action:F.e.Dashboard.COMPANY_DASHBOARD,args:[e.livestream.company.id,m.m.slugify(e.livestream.company.name)]};return n.createElement(n.Fragment,null,!e.success&&!e.error&&n.createElement(n.Fragment,null,n.createElement(N,{logoUrl:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone,description:!e.formStage&&e.livestream.description,isPastLivestream:e.isPastLivestream,companyAppLink:r}),e.formStage&&n.createElement(ne,{initialValues:e.initialValues,isAuthenticated:e.isAuthenticated,onSubmit:e.onSubmit}),!e.isPastLivestream&&!e.formStage&&n.createElement("button",{className:"btn btn-dark w-100",onClick:function(){return e.setFormStage(!0)}},n.createElement(g.x,{namespace:ue,phrase:"book"})),e.isPastLivestream&&!e.livestream.recording&&n.createElement("div",{className:"".concat(ae.noRecording," p-2 rounded")},n.createElement(g.x,{namespace:ue,phrase:"noRecording"})),e.livestream.recording&&n.createElement(y.F,{appLink:{application:V.O.VIDEOS,action:F.e.Videos.PLAY_VIDEO,args:[e.livestream.recording.id,m.m.slugify(e.livestream.recording.name)]}},n.createElement("button",{className:"btn btn-outline-dark w-100"},n.createElement(g.x,{namespace:ue,phrase:"recording"})))),e.success&&n.createElement(G,{livestream:e.livestream}),e.error&&n.createElement(H,{onTryAgain:e.onTryAgain}))}function de(e){var t;function r(){var t;e.closePopup(),c.t.preventScrollTop(),o.Q.C$.trigger(null===(t=R.O.getPreviousRoute())||void 0===t?void 0:t.appLink)}return(0,I.L)(a.G.SHELL,o.Q.Vy.ROUTE,e.closePopup),n.createElement(x.G,{size:"lg",bodyClassName:"rounded-3 overflow-hidden p-0",closePopup:r},n.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:r}),n.createElement("div",{className:"row g-0"},n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(W,{className:"".concat(ae.coverImage," ").concat(ae.popup),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-lg p-4 m-lg-2"},n.createElement(fe,Object.assign({},e)))))}function pe(e){var t;return n.createElement("div",{className:"row g-0 px-3"},n.createElement("div",{className:"col-12 col-md-6 col-lg-5"},n.createElement(W,{className:"".concat(ae.coverImage," ").concat(ae.page," rounded"),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-md px-md-3 pt-2 pt-md-0"},n.createElement(fe,Object.assign({},e))))}function ve(e){var t,r,a,i,c,m=(0,l.useGetFetchAsync)(),p=ce(n.useState(!1),2),v=p[0],y=p[1],h=ce(n.useState(!1),2),b=h[0],g=h[1],w=ce(n.useState(!1),2),E=w[0],S=w[1],O=s.a.useBasicFetch(L.N.currentUser()),N=s.a.useBasicFetch(U.H.livestream(e.id));function j(t){f.k.logUserAction({id:N.data.id,name:N.data.name},{entity:d.py.Livestream,actionType:d.Vw.Submit,location:d.LZ.LivestreamBookingForm,descriptor:e.fromPageLoad?d.Ik.FullPage:d.Ik.Popup,workflowPhase:t})}if((0,C.M)(e.fromPageLoad&&_.CG.getDefaultMetadata({title:null===(t=N.data)||void 0===t?void 0:t.name,description:null===(r=N.data)||void 0===r?void 0:r.description,phraseContext:{phraseHandler:me,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:M.f.getCanonicalLink(),allowIndexing:!0,product:D.L.PRODUCT_NAME})),(0,T.v)(N),n.useEffect((function(){var e;N.data&&(null===(e=N.data)||void 0===e?void 0:e.status)!==P.H.Published&&o.Q.Ry.throw(new k.d)}),[null===(a=N.data)||void 0===a?void 0:a.status]),!N.data)return n.createElement(n.Fragment,null);var x={livestream:N.data,formStage:v,initialValues:(null===(i=O.data)||void 0===i?void 0:i.isAuthenticated)?{firstName:O.data.givenName,lastName:O.data.familyName,email:O.data.email,attendees:""}:{firstName:"",lastName:"",email:"",attendees:""},isAuthenticated:null===(c=O.data)||void 0===c?void 0:c.isAuthenticated,success:b,error:E,isPastLivestream:u.O.isBefore(N.data.endDateTime,new Date),onSubmit:function(e){return se(this,void 0,void 0,ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m(A.createBooking({eventId:N.data.id,eventType:"Livestream",firstName:e.firstName,lastName:e.lastName,email:e.email,attendees:e.attendees,status:1}));case 3:j(d.eu.Complete),g(!0),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(0),S(!0),y(!1);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))},onTryAgain:function(){S(!1),y(!0)},setFormStage:function(){y(!0),j(d.eu.Start)}};return e.fromPageLoad?n.createElement(pe,Object.assign({},x)):n.createElement(de,Object.assign({},x,{closePopup:e.closePopup}))}},55941:(e,t,r)=>{r.d(t,{H:()=>c});var n=r(97395),a=r(110),o=r(59795),i=r(5960),c={livestream:function(e){return{url:n._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:n._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:i.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:a.O.format(o.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}},6117:(e,t,r)=>{r.d(t,{f:()=>c});var n=r(39202),a=r(14292),o=r(97395);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),r=(null==e?void 0:e.customAppLink)||n.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var r=t.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,r){var n;return n=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==i(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,!0))}),{});return Object.keys(e).reduce((function(t,n){return n in r&&(t[n]=e[n]),t}),{})}(r.params,e.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),o._.safeUrlConcat(t,l)}}},34152:(e,t,r)=>{r.d(t,{YD:()=>s});var n=r(32735),a=(Object.defineProperty,new Map),o=new WeakMap,i=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:l,observer:s,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(o.has(r)||(i+=1,o.set(r,i.toString())),o.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=a.get(t);if(!r){const n=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var r;const a=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(r=n.get(t.target))||r.forEach((e=>{e(a,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},a.set(t,r)}return r}(r),m=u.get(e)||[];return u.has(e)||u.set(e,m),m.push(t),s.observe(e),function(){m.splice(m.indexOf(t),1),0===m.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),a.delete(l))}}function s({threshold:e,delay:t,trackVisibility:r,rootMargin:a,root:o,triggerOnce:i,skip:c,initialInView:s,fallbackInView:u,onChange:m}={}){var f;const[d,p]=n.useState(null),v=n.useRef(),[y,h]=n.useState({inView:!!s,entry:void 0});v.current=m,n.useEffect((()=>{if(c||!d)return;let n;return n=l(d,((e,t)=>{h({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&i&&n&&(n(),n=void 0)}),{root:o,rootMargin:a,threshold:e,trackVisibility:r,delay:t},u),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,d,o,a,i,c,r,u,t]);const b=null==(f=y.entry)?void 0:f.target,g=n.useRef();d||!b||i||c||g.current===b||(g.current=b,h({inView:!!s,entry:void 0}));const w=[p,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[862],{23062:(e,t,n)=>{n.d(t,{b:()=>g});var r=n(32735),a=n(110),i=n(92582),o=n(65858),c=n(79878),l=n(12324),s=n(42735),u=n(57408),d=n(85473),m=n(2284),f=n(54610),p=n(67453);const v={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};function g(e){var t,n,g,y,h,b=e.getAppLink(e.event.content.id,e.event.name),w=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),E=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),O=null===(g=e.getBannerUrl)||void 0===g?void 0:g.call(e,e.event.content),k=!!e.event.endDate,D=e.event.content.status===m.W.ComingSoon,C=null===(y=e.getStartTime)||void 0===y?void 0:y.call(e,e.event.content),S=null===(h=e.getActionLabel)||void 0===h?void 0:h.call(e),T={actionType:o.Vw.Click,entity:o.py.SpecialEvent,location:e.inPopup?o.LZ.CalendarPopup:o.LZ.CalendarDay},L={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:a.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return r.createElement("div",null,C&&r.createElement("h6",null,C),r.createElement("div",{onClick:function(){D&&i.k.logUserAction(L,T)}},r.createElement(u.F,{appLink:!D&&b,className:"".concat(D?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:T,analyticsData:L},r.createElement("div",{className:"banner rounded-3 position-relative ".concat(v.banner),style:{backgroundColor:w,backgroundImage:"url('".concat(p.j.createUrl(O,{size:f.h2.Large}),"')")}},r.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},r.createElement("div",{className:"d-flex align-items-center"},E&&r.createElement("div",{className:"".concat(v.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},r.createElement(d.Z,{data:E})),r.createElement("div",{className:"text-white"},D&&r.createElement(c.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(v.pill)}),k&&r.createElement("div",{className:"mb-1"},l.T.getDisplayDate(e.event.startDate,e.event.endDate)),r.createElement("h2",{className:"h4 clamp-1 text-white text-shadow",title:e.event.name},e.event.name))),r.createElement("div",{className:"flex-shrink-0"},!D&&r.createElement(s.K,{className:"btn btn-outline-dark fw-semibold"},S))))),r.createElement("div",{className:"mt-2 mb-3"},e.event.description||e.event.content.description)))}},40861:(e,t,n)=>{n.d(t,{D:()=>v});var r=n(32735),a=n(39202),i=n(23481),o=n(65858),c=n(92582),l=n(57408),s=n(18559),u=n(11607);const d={pillTabSelector:"Hdi6o",pillItem:"hUJx1"};function m(e){var t;return r.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r.createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(d.pillTabSelector)},e.tabs.map((function(e){return r.createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r.createElement(l.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(d.pillItem)},e.name,"number"==typeof e.count&&r.createElement("div",{className:"ps-2"},r.createElement(s.C,{type:s.g.Count,data:e.count}))):r.createElement(u.L,{className:"".concat(d.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&c.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r.createElement("div",{className:"ps-2"},r.createElement(s.C,{type:s.g.Count,data:e.count}))))}))))}const f={pillTab:"Vrjid"};var p="streamable.header";function v(e){var t,n,c,l,s=[{name:i.T.getPhrase(p,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(p,"heading"),url:a.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(p,"livestreams"),appLink:null===(c=e.appLinks)||void 0===c?void 0:c.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(p,"livestreams"),url:a.C$.getHref(null===(l=e.appLinks)||void 0===l?void 0:l.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return r.createElement("div",{className:"py-3 text-center"},r.createElement(m,{tabs:s,className:f.pillTab}))}},54168:(e,t,n)=>{n.d(t,{d:()=>c});var r=n(32735),a=n(40290),i=n(83914),o=n(35223);function c(){var e;return r.createElement("div",null,r.createElement(i.x,{svgName:o.vn.Globe}),r.createElement("span",{className:"ms-1"},null===(e=a.F[a.r.EST])||void 0===e?void 0:e.name))}},40290:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var a;n.d(t,{F:()=>s,r:()=>a}),function(e){e.EST="Eastern Standard Time"}(a||(a={}));var i,o,c,l,s=(i={},c={name:"Eastern Time",timezone:"America/New_York",code:"EST"},l=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o=a.EST),(o="symbol"==r(l)?l:l+"")in i?Object.defineProperty(i,o,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[o]=c,i)},59795:(e,t,n)=>{n.d(t,{t:()=>i});var r=n(110),a=n(40290),i={convertToUTCString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;return e?r.O.getUtcStringByTimezone(e,a.F[t].timezone):""},convertUTCToTimezoneDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.r.EST;if(!e)return new Date;var n=e.includes("Z")?e:"".concat(e,"Z"),r=new Date(n),i=new Intl.DateTimeFormat("en-US",{timeZone:a.F[t].timezone,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(r);return new Date(i)}}},18559:(e,t,n)=>{n.d(t,{C:()=>g,g:()=>s});var r,a=n(32735),i=n(23481),o=n(83914),c=n(64444),l=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(r||(r={}));var s,u=n(93264),d=n(26361),m=n(35223),f=n(81993),p=n(86474),v=i.T.encloseNamespace("shared.badges");function g(e){var t=e.type,n=e.data;if(!function(e,t){var n,r;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===s.Status?"number"==typeof t:!!t}(t,n))return a.createElement(a.Fragment,null);var i=function(e,t){var n,a="";if(e===s.DurationApproximate&&(a="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(a="duration-badge"),e===s.Interactive&&(a="interactive-badge"),e===s.Rating&&(a="rating-badge ".concat(f.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(a="production-year-badge"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case l.X.Published:return"bg-success";case l.X.Archived:case l.X.Rejected:return"bg-danger";case l.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case l.X.Pending:case l.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===s.Count&&(a="count-badge px-1 rounded"),e===s.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===s.Source&&(a=(n=t).includes(r.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(p.Z.streamable):n.includes(r.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(a)}(t,n);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var g=function(e,t){if(e===s.Interactive)return v("interactive");if(e===s.DurationApproximate)return u.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return u.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return a.createElement(o.x,{svgName:m.vn.CloseCaptionBadge});if(e===s.Status)return l.X[t];if(e===s.Trending)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:m.vn.Trending}),a.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var n=t;return n.includes(r.Streamable)?"streamable":n.includes(r.MoviesAndTv)?"movies + tv":n.includes(r.Exchange)?"exchange":n.includes(r.Twig)?"twig":"-"}}(t,n),y=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),h=e.inline&&"d-inline-block";return y?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(c.u,Object.assign({},y,{spanHack:!0,spanHackClassName:h}),a.createElement("span",{className:i},g))):a.createElement("span",{className:"".concat(i," badge-wrapper")},g)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}))},1164:(e,t,n)=>{var r;n.d(t,{L:()=>r}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},5345:(e,t,n)=>{var r;n.d(t,{c:()=>r}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},89454:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(97395),a=n(25925),i={presentationAudiences:function(e,t){var n=t||a.R.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:r._.urlBuilder("/api/domain/v1/subjects/audiences",i),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),i),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:a.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}}},93264:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(21161),a=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=a(n.getUTCMinutes(),2,"0"),c=a(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),a=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((a>0||i>0)&&o>=30&&(i+=1),a>0){var c=a>1?"hrs":"hr";return i>0?t&&o>0?"".concat(a).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(a).concat(c," ").concat(i,"m "):"".concat(a," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},26361:(e,t,n)=>{n.d(t,{l:()=>v});var r=n(23481),a=n(110),i=n(86474),o=n(5345),c=n(35223);function l(e){return l="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},l(e)}function s(e,t,n){var r;return r=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==l(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,i.Z.restrictionBadgeCustom),o.c.User,i.Z.restrictionBadgeUser),m=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),f=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),p=s(s({},o.c.Custom,200),o.c.User,100),v={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=v.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=v.getWeightedRestriction(e.value);return m[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=v.getWeightedRestriction(e.value),a=t.find((function(e){return e.value===r.yearGroup})),i=f[r.type];if(r.type===o.c.User)return null===r.yearGroup?u("restrictionStaff"):a?u(i,{yearGroup:a.name}):"";if(r.type===o.c.Custom){var c=v.getRestrictionDuration(r);return c?u(i,{duration:c,smartCount:c}):u("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=p[e.type],a=p[n.type];return"highest"===t&&r>a||"lowest"===t&&r<a?e:n}))},getRestrictionByType:function(e,t){if(!v.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return v.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=a.O.convertUTCToLocal(e.expiresOn);if(t)return a.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!v.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},81993:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(23481),a=n(96560),i=n(1164),o=n(35223);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t,n){var r;return r=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==c(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return r.T.getPhrase(s,"exchange");case a.r.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-info";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=l(l(l(l(l(l(l({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(s,"pdf");case i.L.Image:return r.T.getPhrase(s,"image");case i.L.Document:return r.T.getPhrase(s,"document");case i.L.Excel:return r.T.getPhrase(s,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(s,"presentation");case i.L.Zip:return r.T.getPhrase(s,"zipArchive");case i.L.File:return r.T.getPhrase(s,"file");default:return""}}}},26255:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(110),a=n(59795),i={getStartTime:function(e){return r.O.format(a.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&r.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)}}},42553:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>Se});var r=n(32735),a=n(23481),i=n(57900),o=n(2948),c=n(20354),l=n(110),s=n(80247),u=n(28400),d=n(43933),m=n(41353);const f={wrapper:"WRLhh",notCurrentMonth:"L0rbf",weekend:"mF0ka"};function p(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 v(e){var t,n,a,i=e.date,o=e.notCurrentMonth,c=(n=r.useState(0),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],v="position-relative border ".concat(e.theme.border," ").concat(f.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(i)&&(v+=" ".concat(f.weekend)),o&&(v+=" ".concat(f.notCurrentMonth));var g=(null===(t=e.events)||void 0===t?void 0:t.filter((function(t){return l.O.isSame(e.date,t.startDate)})))||[],y=Object.assign(Object.assign({},e),{eventsOnDay:g,sliderStep:s,setSliderStep:u});return r.createElement("td",{className:v},(null==g?void 0:g.length)>0?r.createElement(m.K,{hoverableComponent:d.X,componentProps:y,hoverScale:1.35}):r.createElement(d.X,Object.assign({},y,{isHovering:!1})))}var g=n(12324),y=n(79967),h=n(57408),b=n(15800),w=n(83345),E="specialEvent.eventsEmptyState",O=a.T.encloseNamespace(E);function k(e){return r.createElement(w.D.Provider,{value:E},r.createElement(b.u,null,r.createElement(b.u.Image,{src:e.imageUrl,altText:O("info")}),r.createElement(b.u.Heading,null,e.heading||r.createElement(w.x,{phrase:"heading"})),e.appLink&&r.createElement(b.u.Info,null,r.createElement(r.Fragment,null,r.createElement(w.x,{namespace:E,phrase:"info"}),r.createElement(h.F,{appLink:e.appLink},r.createElement("span",{className:"text-blue"},O("link")))))))}var D=n(23062);const C={date:"k2lLG",first:"E18Bv"};function S(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return l.O.isBefore(e,t)?-1:0})),r.createElement("div",{className:"py-1"},n.map((function(n,a){var i="",o="";return r.createElement("div",{key:n},r.createElement("div",{className:"h4 mt-4 ".concat(C.date," ").concat(0===a?C.first:"")},g.T.getOrdinalDate(n)),t[n].map((function(t){var n;return i=o,o=null===(n=e.getStartTime)||void 0===n?void 0:n.call(e,t.content),r.createElement(D.b,{key:t.content.id,getAppLink:function(t,n){return e.appLink(t,u.m.slugify(n))},event:t,presentationId:e.presentationId,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:function(){return e.getActionLabel(t.content)},getStartTime:e.getStartTime&&i!==o?e.getStartTime:null})})))})))}const T={header:"sTIcQ",thead:"ekxZd"};function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(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)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(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 x(e){var t,n=e.appLinks,a=e.imageUrls,i=(0,y.k)(),o=g.T.getEventsInMonth(e.events||[],e.viewingMonth),c=L(r.useState(!1),2),l=c[0],d=c[1],m=L(r.useState(null),2),f=m[0],p=m[1];return"list"===e.viewMode||i.xs||i.sm||i.md?e.eventsLoaded?(null==o?void 0:o.length)?r.createElement(S,{events:o,presentationId:e.presentationId,appLink:e.appLinks.event,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:e.getActionLabel,getStartTime:e.getStartTime}):r.createElement(k,{imageUrl:a.emptyState,appLink:null===(t=n.emptyStateRedirect)||void 0===t?void 0:t.call(n),heading:e.emptyStateHeading}):r.createElement("div",{className:"d-flex justify-content-center align-items-center"},r.createElement(s.Z,{as:"div",animation:"border",role:"status"})):r.createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},r.createElement("thead",{className:"border ".concat(e.theme.border," ").concat(T.thead)},r.createElement("tr",{className:"fw-semibold ".concat(e.theme.background," ").concat(T.header)},e.weekDaysHeader.map((function(e){return r.createElement("th",{key:e,className:"px-2 h4"},e)})))),r.createElement("tbody",null,e.weekDays.map((function(t){return r.createElement("tr",{key:t[0].toString()},t.map((function(t){return r.createElement(v,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInitialized:l,setHasInitialized:d,presentationId:e.presentationId,hoveredEvent:f,theme:e.theme,setHoveredEvent:p,getEventsListAppLink:function(){return e.appLinks.eventList(e.monthQuery,t,e.presentationId)},getTopicAppLink:function(t,n){return e.appLinks.event(t,u.m.slugify(n))},getIconUrl:e.getIconUrl,getBackgroundColor:e.getBackgroundColor,getCoverUrl:e.getCoverUrl,getHardCodedEvent:e.getHardCodedEvent})})))}))))}x.defaultProps={theme:{border:"border-light-blue",background:"bg-light-blue"}};var A=n(65858),N=n(75896),Y=new Date("2023-01-01"),I=12;function P(e,t){for(var n=l.O.startOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?0===r?6:r-1:r,o=t?1:0;o<=i;o++){var c=n,s=l.O.weekday(c,r-o);a.push(Object.assign(s,{notCurrentMonth:!0}))}return a.reverse()}function j(e,t){for(var n=l.O.endOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?7-(0===r?7:r):7-r,o=1;o<=i;o+=1){var c=l.O.add(n,o,"days");a.push(Object.assign(c,{notCurrentMonth:!0}))}return a}function U(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:N.m.first(P(e,!0))}function R(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:N.m.last(j(e,!0))}function F(e){return[U(e),R(e)]}function B(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=new Date,H=n(11607),_=n(63855),Z=n(83914),W=n(35223);const G={chevron:"U_GAM",left:"t_wDz",right:"KgpGw",viewModeContainer:"csNfk"};var q="specialEventCalendar.calendarNav";function z(e){return r.createElement("div",{className:"".concat(G.viewModeContainer," d-none d-lg-block")},r.createElement(_.h,{svgName:W.vn.Calendar,className:"".concat("calendar"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-start rounded-end-0 border-end-0 px-3 h-100"),onClick:function(){return e.setViewMode("calendar")},analyticsData:{},analyticsOptions:{entity:A.py.AppLink,actionType:A.Vw.Click,descriptor:A.Jf.Calendar,location:A.LZ.CalendarNav}}),r.createElement(_.h,{svgName:W.vn.TableOfContents,className:"".concat("list"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-end rounded-start-0 border-start-0 px-3 h-100"),onClick:function(){return e.setViewMode("list")},analyticsData:{},analyticsOptions:{entity:A.py.AppLink,actionType:A.Vw.Click,descriptor:A.Jf.List,location:A.LZ.CalendarNav}}))}function $(e){var t="previous"===e.action?W.vn.ChevronLeft:W.vn.ChevronRight,n="previous"===e.action?G.left:G.right;return r.createElement(H.L,{className:"".concat(G.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:e.onClick},r.createElement(Z.x,{svgName:t,size:Z.S.Medium,className:"svg-container d-inline-block ".concat(G.svg)}))}var X=new Date;function Q(e){var t=e.appLinks,n=(0,y.k)();function i(n){var r,a,i=l.O.format(n,"MMMM").toLocaleLowerCase(),o=t.month(i),c={};if(n){var s=(new Date).getFullYear(),u=n.getFullYear();s!==u&&(c.year=u)}return(null===(r=e.queryParams)||void 0===r?void 0:r.classification)&&(c.classification=e.queryParams.classification),(null===(a=e.queryParams)||void 0===a?void 0:a.yearGroup)&&(c.yearGroup=e.queryParams.yearGroup),o.params=c,o}var o,c,s=(o=e.monthDate,c=l.O.diffBetween(l.O.startOf(o,"month"),l.O.startOf(V,"month"),"months"),{showPrev:l.O.isAfter(o,Y,"month"),showNext:c<I}),u=s.showPrev,d=s.showNext,m={actionType:A.Vw.Click,entity:A.py.SpecialEvent,location:A.LZ.CalendarNav};function f(e){return l.O.format(e,"YYYY-MM-DD")}return r.createElement("div",{className:"d-flex flex-wrap gap-3 justify-content-end align-items-center"},r.createElement("h1",{className:"mb-0 h2 me-auto"},l.O.format(e.monthDate,n.xs?"MMM YYYY":"MMMM YYYY")),e.children,e.setViewMode&&r.createElement(z,{viewMode:e.viewMode,setViewMode:e.setViewMode}),r.createElement("div",{className:"d-flex gap-3"},u&&r.createElement(h.F,{appLink:i(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:m,analyticsData:{action:"previous",date:f(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},r.createElement($,{action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)}})),r.createElement(h.F,{appLink:i(),className:"d-flex",analyticsOptions:m,analyticsData:{action:"today",date:f(l.O.startOf(X,"month"))}},r.createElement(H.L,{className:"".concat(G.todayWrapper," btn btn-outline-dark fw-semibold"),onClick:function(){l.O.format(X,"YYYY-MM-DD")!==l.O.format(e.monthDate,"YYYY-MM-DD")&&e.setViewingMonthDate()}},a.T.getPhrase(q,"today"))),d&&r.createElement(h.F,{appLink:i(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:m,analyticsData:{action:"next",date:f(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},r.createElement($,{action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}}))))}var J="specialEvent.eventsErrorState",K=a.T.encloseNamespace(J);function ee(e){return r.createElement(w.D.Provider,{value:J},r.createElement(b.u,null,r.createElement(b.u.Image,{src:e.imageUrl}),r.createElement(b.u.Heading,null,r.createElement(w.x,{phrase:"heading"})),r.createElement(b.u.Info,null,r.createElement(w.x,{namespace:J,phrase:"info"}),r.createElement("br",null),r.createElement(h.F,{appLink:e.appLink},r.createElement("span",{className:"text-blue"},K("link"))))))}var te=n(81886);function ne(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 re=new Date;function ae(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,a=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return l.O.format(l.O.weekday(n,e),"ddd")}))}(i),c=r.useRef({}),s=(e=r.useState([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],m=l.O.format(n,"YYYY-MM");r.useEffect((function(){var e=c.current[m];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],r={},a=P(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],r=1;r<=t;r++){var a=l.O.set(e,"date",r);n.push(Object.assign(a,{notCurrentMonth:!1}))}return n}(e)).concat(j(e,t)),i=function(e){var t=a.slice(o,o+7);t.forEach((function(t,n){r[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,c=e},o=0,c=0;o<a.length;o+=7)i(c);return{datePositionMap:r,weeksTable:n}}(n,i),r=t.weeksTable,a=t.datePositionMap;c.current[m]={weeksTable:r,datePositionMap:a},d(r)}}),[l.O.format(n,"YYYY-MM")]);var f=N.m.first(N.m.first(u)),p=N.m.last(N.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(m!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),r=(new Date).getFullYear(),i=n.getFullYear(),o=a.month(t);r!==i&&(o.params={year:i}),te.Q.C$.trigger(o)}}else te.Q.C$.trigger(a.calendar())},startDate:f,endDate:p}}var ie=n(60954),oe=n(40861),ce=n(54168),le=n(25925),se=n(89454),ue=n(21750),de=n(79612),me=n(25301),fe=n(41760),pe=n(31700),ve=n(6117),ge=n(55941);function ye(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(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 he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||be(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){if(e){if("string"==typeof e)return we(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)?we(e,t):void 0}}function we(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 Ee=n(26255),Oe=n(323),ke=n(27051);function De(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 Ce=a.T.encloseNamespace("livestreamCalendar.calendarView");function Se(e){var t,n,a,s,u,d=(s=(0,o.D)("calendar:mode",{viewMode:"calendar"},{storage:i.Z1.LocalStorage}),u=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(s,u)||function(e,t){if(e){if("string"==typeof e)return De(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)?De(e,t):void 0}}(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0].viewMode,f=d[1],p=c.a.useBasicFetch(pe.g.streamablePresentation()),v=c.a.useBasicFetch(p.data&&se.O.presentationAudiences(p.data.id,le.R.StreamableLearning)),y=c.a.useBasicFetch(p.data&&ue.x.topicsFromAllAvailablePresentations([p.data.id])),h=function(e){if(!e)return!0;var t=B(e);if(!l.O.formatIsValid(t,"MMMM-YYYY",!0))return!1;var n=l.O.parseDateString(t,"MMMM-YYYY");return l.O.isSame(n,Y,"month")||l.O.isAfter(n,Y,"month")}(e.month),b=function(e){if(!e)return l.O.parseDateString();var t=B(e);return l.O.parseDateString(t,"MMMM-YYYY")}(e.month),w=ae(b,(0,Oe.C)()),E=w.monthDate,O=w.setMonthDate,k=w.weekDays,D=w.weekDaysHeader,C=w.startDate,S=w.endDate,T=function(e,t){var n=he(F(e),2),r=n[0],a=n[1],i=he(F(l.O.add(e,1,"month")),2),o=i[0],s=i[1],u=he(F(l.O.subtract(e,1,"month")),2),d=u[0],m=u[1],f={};t.yearGroup&&(f.audienceId=t.yearGroup),t.classification&&(f.topicId=t.classification);var p=c.a.useBasicFetch(r&&a&&ge.H.calendarLivestreams(Object.assign({from:l.O.format(r,"YYYY-MM-DD"),to:l.O.format(a,"YYYY-MM-DD")},f))),v=c.a.useBasicFetch(o&&s&&ge.H.calendarLivestreams(Object.assign({from:l.O.format(o,"YYYY-MM-DD"),to:l.O.format(s,"YYYY-MM-DD")},f))),g=c.a.useBasicFetch(d&&m&&ge.H.calendarLivestreams(Object.assign({from:l.O.format(d,"YYYY-MM-DD"),to:l.O.format(m,"YYYY-MM-DD")},f)));return{events:N.m.uniq([].concat(ye(g.data||[]),ye(p.data||[]),ye(v.data||[])),(function(e){return e.id})),loaded:p.hasCompleted}}(b,e.queryParams),L=T.events,M=T.loaded,A=l.O.format(E,"MMMM YYYY");if((0,de.M)(me.CG.getDefaultMetadata({title:A,phraseContext:{phraseHandler:Ce,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:ve.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:!0,product:fe.L.PRODUCT_NAME})),null!==e.month&&!h)return r.createElement(ee,{imageUrl:(0,Oe.j)().errorState,appLink:(0,ke.h)().calendar});var I,P,j,U,R,V=[{id:"classification",name:Ce("subjectFilter"),options:null===(t=y.data)||void 0===t?void 0:t.topics.map((function(e){return{name:e.name,id:e.topicIds.join(":")}})),type:"checkbox",compatibleIndices:[]},{id:"yearGroup",name:Ce("gradeFilter"),type:"checkbox",options:null===(n=v.data)||void 0===n?void 0:n.map((function(e){return{name:e.name,id:e.masterId}})),compatibleIndices:[]}];return r.createElement("div",{className:"bg-white px-3"},r.createElement(oe.D,{appLinks:(0,ke.h)(),active:"calendar"}),r.createElement(Q,{monthDate:E,setViewingMonthDate:O,appLinks:(0,Oe.C)(),queryParams:e.queryParams,viewMode:m,setViewMode:function(e){return f({viewMode:e})}},r.createElement("div",{className:"mx-n1 order-1 order-sm-0"},r.createElement(ie.J,{queryParams:e.queryParams,mainFilters:V,appLink:(I=l.O.format(E,"MMMM").toLocaleLowerCase(),P=(new Date).getFullYear(),j=E.getFullYear(),U=(0,Oe.C)().month(I),R={},P!==j&&(R.year=j),e.queryParams.classification&&(R.classification=e.queryParams.classification),e.queryParams.yearGroup&&(R.yearGroup=e.queryParams.yearGroup),U),isFetchingOptions:!y.data||!p.data||!v.data,hideDivider:!0,hideHeading:!0,hideResetButton:!0,hideCaret:!1}))),r.createElement("div",{className:"position-relative mt-3 ".concat("list"===m?"":"mt-lg-0")},r.createElement("div",{className:"d-block ".concat("list"===m?"":"d-lg-none"," position-absolute top-0 end-0 mt-2")},r.createElement(ce.d,null)),r.createElement(x,{weekDays:k,weekDaysHeader:D,events:L,monthQuery:{from:null==C?void 0:C.toString(),to:null==S?void 0:S.toString()},viewingMonth:b,eventsLoaded:M,presentationId:null===(a=p.data)||void 0===a?void 0:a.id,appLinks:(0,Oe.C)(),imageUrls:(0,Oe.j)(),viewMode:m,getActionLabel:function(e){return Ce(function(e){return l.O.isBefore(e.endDateTime,new Date)?"pastActionLabel":"actionLabel"}(e))},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:function(e){var t;return null===(t=e.company.banner)||void 0===t?void 0:t.url},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},getStartTime:Ee.y.getStartTime,theme:{background:"bg-light-green",border:"border-light-green"},emptyStateHeading:function(){if(!g.T.getEventsInMonth(L||[],b).length&&(e.queryParams.yearGroup||e.queryParams.classification))return Ce("emptyStateText")}()})))}Se.defaultProps={queryParams:{}}},323:(e,t,n)=>{n.d(t,{C:()=>c,j:()=>o});var r=n(99742),a=n(96359),i=n(41135);function o(){return{emptyState:r.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:r.W.EmptyStates.CALENDAR.INVALID_DATE}}function c(){return{calendar:function(){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR}},month:function(e){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:i.O.LIVESTREAMS,action:a.e.Livestreams.LIVESTREAM,args:[e,t]}},eventList:function(e,t,n){return{application:i.O.CALENDAR,action:a.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>c});var r=n(96359),a=n(41135),i=n(65751);function o(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationTopics:function(){return i.y.classificationTopics(e)}})}function c(){return{discover:{application:a.O.DASHBOARD,action:r.e.Dashboard.HOME},calendar:{application:a.O.CALENDAR,action:r.e.Calendar.CALENDAR}}}},55941:(e,t,n)=>{n.d(t,{H:()=>c});var r=n(97395),a=n(110),i=n(59795),o=n(5960),c={livestream:function(e){return{url:r._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:r._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:o.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:a.O.format(i.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(39202),a=n(14292),i=n(97395);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)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||r.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){var r;return r=function(e,t){if("object"!=o(e)||!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)}(t),(t="symbol"==o(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{});return Object.keys(e).reduce((function(t,r){return r in n&&(t[r]=e[r]),t}),{})}(n.params,e.allowedParams),l=r.C$.getHref(Object.assign(Object.assign({},n),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),i._.safeUrlConcat(t,l)}}},86474:(e,t,n)=>{n.d(t,{Z:()=>r});const r={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}},34152:(e,t,n)=>{n.d(t,{YD:()=>s});var r=n(32735),a=(Object.defineProperty,new Map),i=new WeakMap,o=0,c=void 0;function l(e,t,n={},r=c){if(void 0===window.IntersectionObserver&&void 0!==r){const a=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:l,observer:s,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=a.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const a=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((e=>{e(a,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},a.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),s.unobserve(e)),0===u.size&&(s.disconnect(),a.delete(l))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:i,triggerOnce:o,skip:c,initialInView:s,fallbackInView:u,onChange:d}={}){var m;const[f,p]=r.useState(null),v=r.useRef(),[g,y]=r.useState({inView:!!s,entry:void 0});v.current=d,r.useEffect((()=>{if(c||!f)return;let r;return r=l(f,((e,t)=>{y({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&o&&r&&(r(),r=void 0)}),{root:i,rootMargin:a,threshold:e,trackVisibility:n,delay:t},u),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,f,i,a,o,c,n,u,t]);const h=null==(m=g.entry)?void 0:m.target,b=r.useRef();f||!h||o||c||b.current===h||(b.current=h,y({inView:!!s,entry:void 0}));const w=[p,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}r.Component}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[87],{2087:(e,a,r)=>{r.r(a),r.d(a,{DevErrorView:()=>x});var l=r(32735),s=r(95685),n=r.n(s),t=r(80638),i=r(36177),c=r(46304),o=r(11425),m=r(74512);const d=(0,o.Z)("h4");d.displayName="DivStyledAsH4";const v=l.forwardRef((({className:e,bsPrefix:a,as:r=d,...l},s)=>(a=(0,c.vE)(a,"alert-heading"),(0,m.jsx)(r,{ref:s,className:n()(e,a),...l}))));v.displayName="AlertHeading";const f=v;var u=r(67901);const h=l.forwardRef((({className:e,bsPrefix:a,as:r=u.Z,...l},s)=>(a=(0,c.vE)(a,"alert-link"),(0,m.jsx)(r,{ref:s,className:n()(e,a),...l}))));h.displayName="AlertLink";const E=h;var b=r(66067),k=r(9619);const w=l.forwardRef(((e,a)=>{const{bsPrefix:r,show:l=!0,closeLabel:s="Close alert",closeVariant:o,className:d,children:v,variant:f="primary",onClose:u,dismissible:h,transition:E=b.Z,...w}=(0,t.Ch)(e,{show:"onClose"}),N=(0,c.vE)(r,"alert"),g=(0,i.Z)((e=>{u&&u(!1,e)})),x=!0===E?b.Z:E,p=(0,m.jsxs)("div",{role:"alert",...x?void 0:w,ref:a,className:n()(d,N,f&&`${N}-${f}`,h&&`${N}-dismissible`),children:[h&&(0,m.jsx)(k.Z,{onClick:g,"aria-label":s,variant:o}),v]});return x?(0,m.jsx)(x,{unmountOnExit:!0,...w,ref:void 0,in:l,children:p}):l?p:null}));w.displayName="Alert";const N=Object.assign(w,{Link:E,Heading:f});var g=r(79612);function x(e){var a=e.error;return(0,g.M)({title:"Dev Error"}),a?l.createElement("div",{className:"px-3"},l.createElement("h1",null,a.name),l.createElement(N,{variant:"danger"},l.createElement("h2",null,a.message)),l.createElement(N,{variant:"warning"},l.createElement("h3",null,"Call stack"),l.createElement("code",null,a.stack))):l.createElement(l.Fragment,null)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[872],{11979:(e,t,a)=>{a.d(t,{YA:()=>s,tN:()=>H});var n=a(32735),r=a(68050),i=a(69111);const l={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"};function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function s(e){var t,a=function(e){if(Array.isArray(e))return o(e)}(t=Array(e.numItems))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.partialHeading," mb-1 partial-loading-background")}),n.createElement(r.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(i.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(s," px-1 pb-2")},n.createElement("div",{className:"".concat(l.playlistItem," partial-loading-background rounded-3")}))}))))}s.defaultProps={numItems:8};var c=a(65858),d=["second","minute","hour","day","week","month","year"],u=["秒","分钟","小时","天","周","个月","年"],m={},p=function(e,t){m[e]=t},v=[60,60,24,7,365/7/12,12];function y(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var g=function(e,t,a){var n=function(e,t){return(+(t?y(t):new Date)-+y(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),r=0;e>=v[r]&&r<v.length;r++)e/=v[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,n)[a].replace("%s",e.toString())}(n,function(e){return m[e]||m.en_US}(t))};p("en_US",(function(e,t){if(0===t)return["just now","right now"];var a=d[Math.floor(t/2)];return e>1&&(a+="s"),[e+" "+a+" ago","in "+e+" "+a]})),p("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=u[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}));var f=a(23481),b=a(110),h=a(83345);const E={fontSmall:"OYBRp"};var C="playlists.playlistCount";function w(e){var t=function(e){var t,a,n,r,i,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(r=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==r?r:0)+(null!==(l=null===(i=e.clips)||void 0===i?void 0:i.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:E.fontSmall},n.createElement(h.x,{namespace:C,phrase:"count",options:{smartCount:t}}))}var N=a(91374),k=a(2786);const A={avatar:"_N1vT"};function S(){return n.createElement("div",{className:A.avatar},n.createElement(k.Sd,null))}var D=a(64818);function P(e){var t,a,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return n.createElement(S,null);if(!(null==i?void 0:i.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return n.createElement(N.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:D.l.getInitials(i.name,i.surname)})}var O=a(57408),T=a(70498),x=a(85473),I=a(85177),L=a(54610),U=a(80143),j=a(9085),_=a(67453),F="playlists.playlistList";function H(e){var t,a,r=_.j.createUrl(e.data.cover&&e.data.cover.url,{size:L.h2.Medium,resizeType:L.Nq.Cover}),i=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,o=(0,U.n)(i,e.presentationAudiences),s=l.playlistItem,d=!!r||!!e.showFallbackImage;d&&(s+=" ".concat(l.playlistItemGradient)),!d&&e.bgColourClassNames&&(s+=" ".concat(l.playlistItem," ").concat((0,j.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(s+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(s+=" rounded-start-lg overflow-hidden");var u=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Playlist});return n.createElement(O.F,{appLink:e.appLink,analyticsData:u,analyticsOptions:m,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":f.T.getPhrase(F,"lastUpdated",{timeago:g(b.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(x.Z,{data:r,alt:e.data.name,className:s},!!e.showFallbackImage&&n.createElement(I.oy,{type:I.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(l.playlistMetadata)},!!e.showCount&&n.createElement(w,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"clamp-2"},e.data.name)),!!i&&!!i.length&&!!o&&n.createElement(T.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:o,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:l.ownerAvatarContainer},n.createElement(P,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}H.defaultProps={itemStyle:"square"},c.Vw.Click,c.py.Playlist,c.LZ.PlaylistListItem,c._S.Cover},43889:(e,t,a)=>{a.d(t,{J:()=>N});var n=a(32735),r=a(68050),i=a(69111),l=a(92582),o=a(65858),s=a(70498),c=a(18559),d=a(17464),u=a(49310),m=a(66190),p=a(77590),v=a(85784),y=a(70872),g=a(17034),f=a(54610),b=a(68626),h=a(80143),E=a(59598),C=a(40370);const w={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",description:"zejMP",details:"MRyVe"};function N(e){var t,a=e.video,N=e.presentationAudiences,k=e.getVideoAppLink,A=e.subTextAppLink,S=e.hideInteractiveBadge,D=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,P=(0,h.n)(D,N),O=l.k.mergeOptions(e.analyticsOptions,{location:o.LZ.ClassificationHero,entity:C.M.getAnalyticsEntity(a)}),T=n.useRef();return a?n.createElement(r.Z,null,n.createElement(i.Z,{xs:12,md:6},n.createElement("div",{ref:T},n.createElement(u.u,{analyticsData:e.analyticsData,analyticsOptions:O,video:a,appLink:k(e.video,{}),imageOptions:{size:f.h2.Medium},textPosition:b.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?P:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!P,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none"}))),n.createElement(i.Z,{xs:12,md:6,className:"".concat(w.details," position-relative")},n.createElement(v.Q,{analyticsData:e.analyticsData,analyticsOptions:O,video:a}),n.createElement(g.$,{type:e.subTextType,analyticsData:e.analyticsData,analyticsOptions:O,video:a,appLink:A,className:"text-reset"}),n.createElement(y.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:O,appLink:k(e.video,{}),linkClassName:"d-inline-block",textClassName:"h4",yearGroups:e.yearGroups}),"info-panel"===e.badgePosition&&n.createElement(d.c,{className:"pb-1"},!S&&n.createElement(c.C,{type:c.g.Interactive,data:a.interactives}),n.createElement(c.C,{type:c.g.Rating,data:a.rating}),n.createElement(c.C,{type:c.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:w.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(s.P,{audience:P,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement("div",{className:"d-flex ".concat(w.guidance)},n.createElement(m.Y,{video:a,appLink:e.getVideoAppLink(a,{scrollToPosition:E.K.Interactives}),analyticsData:e.analyticsData,analyticsOptions:O}),n.createElement(p.x,{video:a,appLink:e.getVideoAppLink(a,{scrollToPosition:E.K.Resources}),analyticsData:e.analyticsData,analyticsOptions:O})))):n.createElement(n.Fragment,null)}N.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},70580:(e,t,a)=>{a.d(t,{r:()=>p});var n=a(32735),r=a(70498),i=a(18559),l=a(85473),o=a(85177),s=a(54610),c=a(49439),d=a(80143);const u={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",largeHoverDescription:"Uh4gM",smallHoverDescription:"TiqqV"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function p(e){var t,a,p=(t=(0,c.L)({className:u.hoverActive}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],s=!0,c=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(c)throw r}}return o}}(t,a)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=p[0],y=p[1],g=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],f=(0,d.n)(g,e.presentationAudiences),b=!!(g&&g.length&&f);return n.createElement("div",{ref:v},y&&n.createElement("div",{className:"py-3 text-white text-center mb-3 ".concat(u.mask)},n.createElement("h3",{className:"fw-semibold ".concat(u.hoverTitle," ").concat(e.isSmall?u.smallHoverTitle:u.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(u.hoverDescription," ").concat(e.isSmall?u.smallHoverDescription:u.largeHoverDescription," mb-0")},e.series.description)),n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:s.__.TallPosters,preload:e.preloadImage,imageOptions:{size:s.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},n.createElement(o.oy,{type:o.mS.Series}),n.createElement("div",{className:"position-absolute text-white ".concat(u.labelContainer)},b?n.createElement(r.P,{audience:f,border:"white"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[877],{22877:(_,e,n)=>{var i=n(6680).qC;e.__esModule=!0,e.composeWithDevTools="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?i:i.apply(null,arguments)},e.devToolsEnhancer="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(_){return _}}}}]);
|