@clickview/streamable-learning 0.16.1 → 0.16.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/bundles.json +0 -4
- package/dist/css/1067-streamable-learning-629bbd0a42.chunk.css +0 -8
- package/dist/css/1437-streamable-learning-4e8b60a4ff.chunk.css +0 -12
- package/dist/css/2146-streamable-learning-2d8c1745cf.chunk.css +0 -13
- package/dist/css/2967-streamable-learning-a004e2d423.chunk.css +0 -4
- package/dist/css/2987-streamable-learning-b5d226bbb6.chunk.css +0 -5
- package/dist/css/3498-streamable-learning-8c9306617b.chunk.css +0 -2
- package/dist/css/4018-streamable-learning-e5335c9805.chunk.css +0 -6
- package/dist/css/4109-streamable-learning-8f682301c6.chunk.css +0 -1
- package/dist/css/4254-streamable-learning-e493f4a027.chunk.css +0 -2
- package/dist/css/5594-streamable-learning-18a676a2f8.chunk.css +0 -48
- package/dist/css/6533-streamable-learning-57edcfcad7.chunk.css +0 -6
- package/dist/css/719-streamable-learning-7133f6f383.chunk.css +0 -10
- package/dist/css/7272-streamable-learning-ca6ff5e866.chunk.css +0 -3
- package/dist/css/7303-streamable-learning-cf56e2be0a.chunk.css +0 -88
- package/dist/css/7545-streamable-learning-16b4fe0f3a.chunk.css +0 -22
- package/dist/css/7694-streamable-learning-35adffc1e3.chunk.css +0 -9
- package/dist/css/7730-streamable-learning-55cdf7ecba.chunk.css +0 -2
- package/dist/css/8069-streamable-learning-d400800d3e.chunk.css +0 -32
- package/dist/css/9638-streamable-learning-9e6986fa70.chunk.css +0 -5
- package/dist/css/9861-streamable-learning-7ae7bbdf80.chunk.css +0 -78
- package/dist/css/9908-streamable-learning-850d8debe8.chunk.css +0 -13
- package/dist/css/streamable-learning-9f5a620058.css +0 -21
- package/dist/languages/en.json +0 -1
- package/dist/scripts/1067-8f45d4c0c4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1437-aced338a12-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1661-b235a2d101-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js +0 -2
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/2012-3194a5bd39-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2146-05b86ba590-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2700-15cd0e4a48-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2861-e66f927434-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2967-4209d1c930-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-66f91261bd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3093-c91e44e996-streamable-learning.chunk.js +0 -1
- package/dist/scripts/339-75d7ad2471-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3498-2099b4714e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/370-cc0e747219-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3958-7d615280bd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js +0 -2
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/4064-5f3be1a2ea-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4109-fdf1494406-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4254-5cb6b89e64-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-5aafa404c6-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5173-a67ee71a21-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5446-588d118d63-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5594-8fc2f58dcd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/625-654fffada2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js +0 -2
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js.LICENSE.txt +0 -105
- package/dist/scripts/6533-1921070558-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6909-31e9162346-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7102-c2772fda5e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js +0 -2
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7272-c7d7094d8c-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7303-b05c17cd62-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7303-b05c17cd62-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7545-9045e9952b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7730-af616f4052-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7897-83ecf29c44-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7925-28c7dfa1ff-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8069-f88756e557-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8352-2c3d85bae1-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js.LICENSE.txt +0 -32
- package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9531-6e0529dcb6-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9638-617862d0d0-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9861-9c6a96ddd0-streamable-learning.chunk.js +0 -2
- package/dist/scripts/9861-9c6a96ddd0-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js +0 -2
- package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/bundle-c4b42f88a5.min.js +0 -2
- package/dist/scripts/bundle-c4b42f88a5.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 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[339],{75903:(e,t,a)=>{a.d(t,{YA:()=>o,tN:()=>_});var n=a(32735),i=a(68050),r=a(69111);const l={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function o(e){var t,a=function(e){if(Array.isArray(e))return c(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 c(e,t);var a={}.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)?c(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.")}(),o=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.partialHeading," mb-1 partial-loading-background")}),n.createElement(i.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(r.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(o," px-1 pb-2")},n.createElement("div",{className:"".concat(l.playlistItem," partial-loading-background rounded-3")}))}))))}o.defaultProps={numItems:8};var s=a(65858),d=["second","minute","hour","day","week","month","year"],m=["秒","分钟","小时","天","周","个月","年"],u={},v=function(e,t){u[e]=t},p=[60,60,24,7,365/7/12,12];function g(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 y=function(e,t,a){var n=function(e,t){return(+(t?g(t):new Date)-+g(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),i=0;e>=p[i]&&i<p.length;i++)e/=p[i];return(e=Math.floor(e))>(0==(i*=2)?9:1)&&(i+=1),t(e,i,n)[a].replace("%s",e.toString())}(n,function(e){return u[e]||u.en_US}(t))};v("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]})),v("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=m[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}));var f=a(23481),b=a(110),h=a(83345),C="playlists.playlistCount";function E(e){var t=function(e){var t,a,n,i,r,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(i=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==i?i:0)+(null!==(l=null===(r=e.clips)||void 0===r?void 0:r.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:"text-shadow font-size-sm"},n.createElement(h.x,{namespace:C,phrase:"count",options:{smartCount:t}}))}var N=a(91374),S=a(2786);const w={avatar:"_N1vT"};function x(){return n.createElement("div",{className:w.avatar},n.createElement(S.Sd,null))}var k=a(64818);function A(e){var t,a,i,r=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return n.createElement(x,null);if(!(null==r?void 0:r.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(r.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof r.avatar?r.avatar:null===(i=r.avatar)||void 0===i?void 0:i.url;return n.createElement(N.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:k.l.getInitials(r.name,r.surname)})}var I=a(57408),O=a(70498),L=a(85473),j=a(85177),P=a(54610),D=a(80143),T=a(9085),U=a(67453),Z="playlists.playlistList";function _(e){var t,a,i=U.j.createUrl(e.data.cover&&e.data.cover.url,{size:P.h2.Medium,resizeType:P.Nq.Cover}),r=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,c=(0,D.n)(r,e.presentationAudiences),o=l.playlistItem,d=!!i||!!e.showFallbackImage;d&&(o+=" ".concat(l.playlistItemGradient)),!d&&e.bgColourClassNames&&(o+=" ".concat(l.playlistItem," ").concat((0,T.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(o+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(o+=" rounded-start-lg overflow-hidden");var m=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}),u=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Playlist});return n.createElement(I.F,{appLink:e.appLink,analyticsData:m,analyticsOptions:u,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":f.T.getPhrase(Z,"lastUpdated",{timeago:y(b.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(L.Z,{data:i,alt:e.data.name,className:o},!!e.showFallbackImage&&n.createElement(j.oy,{type:j.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(l.playlistMetadata)},!!e.showCount&&n.createElement(E,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"text-shadow clamp-2"},e.data.name)),!!r&&!!r.length&&!!c&&n.createElement(O.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:c,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:l.ownerAvatarContainer},n.createElement(A,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}_.defaultProps={itemStyle:"square"},s.Vw.Click,s.py.Playlist,s.LZ.PlaylistListItem,s._S.Cover},43889:(e,t,a)=>{a.d(t,{J:()=>E});var n=a(32735),i=a(68050),r=a(69111),l=a(92582),c=a(65858),o=a(70498),s=a(18559),d=a(17464),m=a(57825),u=a(99131),v=a(85784),p=a(70872),g=a(17034),y=a(54610),f=a(68626),b=a(80143),h=a(40370);const C={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",responsiveGuidance:"s3W_4",description:"zejMP",details:"MRyVe"};function E(e){var t,a=e.video,E=e.presentationAudiences,N=e.getVideoAppLink,S=e.subTextAppLink,w=e.hideInteractiveBadge,x=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,k=(0,b.n)(x,E),A=l.k.mergeOptions(e.analyticsOptions,{location:c.LZ.ClassificationHero,entity:h.M.getAnalyticsEntity(a)}),I=n.useRef();return a?n.createElement(i.Z,null,n.createElement(r.Z,{xs:12,md:6},n.createElement("div",{ref:I},n.createElement(m.u,{analyticsData:e.analyticsData,analyticsOptions:A,video:a,appLink:null==N?void 0:N(e.video,{}),imageOptions:{size:y.h2.Medium},textPosition:f.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?k:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!k,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin}))),n.createElement(r.Z,{xs:12,md:6,className:"".concat(C.details," position-relative")},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement("div",null,n.createElement(g.$,{type:e.subTextType,analyticsData:e.analyticsData,analyticsOptions:A,video:a,appLink:S,className:"text-reset"}),n.createElement(p.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:A,appLink:null==N?void 0:N(e.video,{}),textClassName:"h4",yearGroups:e.yearGroups})),n.createElement(v.Q,{analyticsData:e.analyticsData,analyticsOptions:A,video:a})),"info-panel"===e.badgePosition&&n.createElement(d.c,{className:"pb-1"},!w&&n.createElement(s.C,{type:s.g.Interactive,data:a.interactives}),n.createElement(s.C,{type:s.g.Rating,data:a.rating}),n.createElement(s.C,{type:s.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:C.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(o.P,{audience:k,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement(u.u,{getClassroomGuideAppLink:e.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,video:a,analyticsData:e.analyticsData,analyticsOptions:A,containerClassName:"d-flex ".concat(C.guidance),responsiveClassName:C.responsiveGuidance}))):n.createElement(n.Fragment,null)}E.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},6474:(e,t,a)=>{a.d(t,{f:()=>l});var n=a(32735),i=a(83914);const r={circle:"Uxnsl",img:"BQ87Y"};function l(e){var t;return e.imageUrl||e.svgName?e.imageUrl?n.createElement("div",{className:"".concat(r.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n.createElement("div",{className:"".concat(r.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},n.createElement(i.x,{svgName:e.svgName,size:e.svgSize})):n.createElement(n.Fragment,null)}l.defaultProps={textVariant:"white"}},70580:(e,t,a)=>{a.d(t,{r:()=>p});var n=a(32735),i=a(70498),r=a(18559),l=a(85473),c=a(85177),o=a(54610),s=a(49439),d=a(80143);const m={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",description:"jnkdI",largeHoverDescription:"Uh4gM",hasTableOfContents:"RdHkK",smallHoverDescription:"TiqqV"};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function v(e){return n.createElement("div",{className:"py-3 mx-2 px-2 rounded bg-white text-center ".concat(m.mask," d-flex flex-column align-items-center")},n.createElement("h3",{className:"fw-semibold mb-0 ".concat(m.hoverTitle," ").concat(e.isSmall?m.smallHoverTitle:m.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(e.hasTableOfContents?m.hasTableOfContents:""," ").concat(m.hoverDescription," ").concat(e.isSmall?m.smallHoverDescription:m.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?n.createElement(i.P,{audience:e.mergedAudience,border:"dark",className:"mt-2 w-fit"}):n.createElement(r.C,{type:r.g.Rating,data:e.series.rating,className:"mt-2"}))}function p(e){var t,a,p=(t=(0,s.L)({className:m.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,i,r,l,c=[],o=!0,s=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=r.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw i}}return c}}(t,a)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(e,t):void 0}}(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.")}()),g=p[0],y=p[1],f=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],b=(0,d.n)(f,e.presentationAudiences),h=!!(f&&f.length&&b);return n.createElement("div",{ref:g},n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:o.__.TallPosters,preload:e.preloadImage,imageOptions:{size:o.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},y&&n.createElement(v,{isSmall:e.isSmall,series:e.series,mergedAudience:f&&f.length?b:null,hasTableOfContents:e.hasTableOfContents}),n.createElement(c.oy,{type:c.mS.Series}),n.createElement("div",{className:"position-absolute text-white text-shadow ".concat(m.labelContainer)},h?n.createElement(i.P,{audience:b,border:"white"}):n.createElement(r.C,{type:r.g.Rating,data:e.series.rating}))))}},2192:(e,t,a)=>{a.d(t,{Q:()=>h});var n=a(32735),i=a(45157),r=a(57408),l=a(6474),c=a(85177),o=a(83914),s=a(83345),d=a(54610),m=a(67453),u=a(45778),v=a(35223),p=a(29309),g="shared.subjectWidgetItem",y=function(e){var t=e.name,a=e.multiline,i=e.noUnderLine,r="".concat(p.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),l="";return a?l+=" ".concat(p.Z.clamped," clamp-2"):(r+=" text-nowrap",l+=" text-truncate"),n.createElement("div",{className:r},n.createElement("small",{className:"text-secondary"},n.createElement(s.x,{namespace:g,phrase:"comingSoon"})),n.createElement("p",{className:"".concat(i?"":p.Z.name," h6")},n.createElement("span",{className:l},t)))},f=function(e){var t=e.name,a=e.multiline,i=e.subtitle,r=e.noUnderLine,l=e.newVideosCount,c="px-3 d-flex flex-column justify-content-center",o="".concat(r?"":p.Z.name," h6");return a?o+=" ".concat(l?"clamp-2":"clamp-3"," text-start"):(c+=" text-nowrap text-truncate",o+=" text-truncate mb-0"),n.createElement("div",{className:c},i&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(p.Z.text)},i),n.createElement("div",{className:o,title:t},t),!!l&&n.createElement("div",{className:"fw-semibold d-inline-block rounded-pill px-2 mt-1 bg-light-green w-fit h-fit text-green ".concat(p.Z.newVideos)},n.createElement(s.x,{namespace:g,phrase:"newVideos",options:{smartCount:l}})))};function b(e){var t,a=m.j.createUrl(e.coverUrl,{size:e.isLarge?d.h2.Medium:d.h2.Small}),r=void 0;u.G.isClassification(e.data)&&(r=e.data);var s={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle,noUnderLine:e.highlightOnHover,newVideosCount:e.showNewVideosCount?null===(t=null==r?void 0:r.externalMetadata)||void 0===t?void 0:t.childDashboardNewVideoCount:0};return n.createElement("div",{className:"".concat(e.themeColor?p.Z.hasThemeColor:"border"," d-flex position-relative ").concat(e.className," ").concat(p.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""," ").concat(e.highlightOnHover&&!e.themeColor?"bg-light-blue-hover":""),style:e.themeColor?{"--themeColor":e.themeColor}:{},id:"".concat(e.data.id,"-").concat(i.Y.getRandomInt())},e.isSelected&&n.createElement("div",{className:"".concat(p.Z.selectedMask," border-2")}),n.createElement("div",{className:"".concat(p.Z.imagePanel," ").concat(e.isLarge?p.Z.large:"")},e.isSelected&&!e.hideCheckmark&&n.createElement("div",{className:p.Z.selected},n.createElement(l.f,{svgName:v.vn.Check,svgSize:o.S.Large,textVariant:"white",variant:"green"})),n.createElement("div",{className:"".concat(p.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(a,"')")}:{}}),!e.hideFallback&&n.createElement(c.oy,{type:c.mS.Subject,extraClasses:e.isLarge?p.Z.large:""})),e.isComingSoon?n.createElement(y,Object.assign({},s)):n.createElement(f,Object.assign({},s)))}function h(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(r.F,{className:p.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(b,Object.assign({},e))):n.createElement(b,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>o});var n=a(32735),i=a(45157),r=a(85177),l=a(29309);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var o=function(){var e,t,a=(e=n.useState(i.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,i,r,l,c=[],o=!0,s=!1;try{if(r=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=r.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var a={}.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)?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.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:l.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(r.oy,{type:r.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:"".concat(l.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(r.oy,{type:r.mS.Subject,extraClasses:l.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>o});var n=a(32735),i=a(65858),r=a(2192),l=a(52641),c=a(2284),o=n.memo((function(e){var t,a,o,s,d,m,u,v,p,g,y,f=(null===(t=e.data)||void 0===t?void 0:t.status)===c.W.ComingSoon,b=function(e,t){var a;if((null==t?void 0:t.length)>=l._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),h=Object.assign(Object.assign({},e.analyticsData),{id:(null===(a=e.analyticsData)||void 0===a?void 0:a.id)||(null===(o=e.data)||void 0===o?void 0:o.id),name:null===(s=e.data)||void 0===s?void 0:s.name,presentationId:(null===(d=e.analyticsData)||void 0===d?void 0:d.presentationId)||e.data.presentationId,comingSoon:!!f}),C=Object.assign(Object.assign({location:i.LZ.ClassificationListItem,entity:i.py.Classification},e.analyticsOptions),{actionType:i.Vw.Click,descriptor:i._S.Cover});return n.createElement(r.Q,Object.assign({},e,{analyticsData:h,analyticsOptions:C,coverUrl:null===(m=e.data.cover)||void 0===m?void 0:m.url,subtitle:(null===(u=e.getSubtitle)||void 0===u?void 0:u.call(e,e.data))||b,isComingSoon:f,themeColor:(null===(v=e.shouldHighlight)||void 0===v?void 0:v.call(e,e.data))&&null!==(y=null===(g=null===(p=e.data)||void 0===p?void 0:p.metadata)||void 0===g?void 0:g.backgroundColor)&&void 0!==y?y:""}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>i.M,Qh:()=>i.Q,Vz:()=>n.V});var n=a(91028),i=a(43741),r=(a(32735),a(65858));a(57408),a(83914),a(83345),a(35223),a(29309),r.Vw.Click,r.py.UserSetting,r._S.Tile,a(2786),r.Vw.Click,r.py.Url,r._S.Tile},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},85594:(e,t,a)=>{var n;a.d(t,{A:()=>n}),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(n||(n={}))},29309:(e,t,a)=>{a.d(t,{Z:()=>n});const n={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",hasThemeColor:"DX2ua",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",newVideos:"s61h8",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3498],{96368:(e,t,n)=>{n.d(t,{e:()=>o});var a=n(23481),i=n(16714),s=n(22902),l=n(99742),c=n(96359),r=n(41135),m=a.T.encloseNamespace("settings.hooks");function o(){var e=(0,s.T)().hasPermissions;return[{id:"my-account",imageUrl:l.W.Settings.MY_ACCOUNT,name:m("myAccount"),modules:[{id:"profile-details",name:m("profileDetails"),appLink:{application:r.O.SETTINGS,action:c.e.Settings.PROFILE_DETAILS},permissions:[i.C.EditProfileDetails]},{id:"email-settings",name:m("emailPassword"),appLink:{application:r.O.SETTINGS,action:c.e.Settings.ACCOUNT}}]}].map((function(t){return Object.assign(Object.assign({},t),{modules:t.modules.filter((function(t){var n;return!((null===(n=t.permissions)||void 0===n?void 0:n.length)&&!e(t.permissions))}))})})).filter((function(e){return!!e.modules.length}))}},3498:(e,t,n)=>{n.r(t),n.d(t,{SettingsView:()=>f});var a=n(32735),i=n(23481),s=n(81886),l=n(83345),c=n(67058),r=n(79612),m=n(57408);const o={myAccount:"Olsqt",group:"wCqdk"};function u(e){var t,n=null===(t=e.modules)||void 0===t?void 0:t.filter((function(e){return!e.hide})),i=!!(null==n?void 0:n.length);return a.createElement(m.F,{appLink:e.appLink},a.createElement("div",{className:"row p-3 border border-dark m-0 w-100 h-100 ".concat(o.group)},a.createElement("div",{className:"col-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center h-100"},a.createElement("img",{src:e.imageUrl,alt:"",role:"presentation",className:"my-account"===e.id?"img-fluid ".concat(o.myAccount):"img-fluid"}))),a.createElement("div",{className:"col-9 h-100 ".concat(i?"":"d-flex align-items-center")},a.createElement("h2",{className:"h4"},e.name),i&&a.createElement("ul",{className:"list-unstyled mb-0"},n.map((function(e){return a.createElement("li",{key:e.name,className:"mb-1"},"appLink"in e?a.createElement(m.F,{className:"btn btn-link p-0",appLink:e.appLink},e.name):a.createElement("button",{className:"btn btn-link p-0 text-start",onClick:e.onClick},e.name))}))))))}var p=n(96368);const d={settingsContainer:"wIhgs",groupContainer:"rAJjd"};var g="settings.settings";function f(){(0,r.M)({title:i.T.getPhrase(g,"pageTitle")});var e=(0,p.e)();if(e.length)return a.createElement("div",{className:"px-3"},a.createElement("h1",{className:"h2"},a.createElement(l.x,{namespace:g,phrase:"heading"})),a.createElement("main",{className:"row"},e.map((function(e){return a.createElement("div",{key:e.id,className:"col-md-6 p-0"},a.createElement("div",{className:"h-100 ".concat(d.groupContainer)},a.createElement(u,Object.assign({},e))))}))));s.Q.Ry.throw(new c.d)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[370],{5960:(e,t,i)=>{var n,r;i.d(t,{H:()=>r,X:()=>n}),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"}(n||(n={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},5345:(e,t,i)=>{var n;i.d(t,{c:()=>n}),function(e){e.Custom="custom",e.User="year_group"}(n||(n={}))},11565:(e,t,i)=>{i.d(t,{R:()=>m});var n,r,o=i(99940),a=i(97395),c=i(62803),s=i(5960),u=i(4594),d=i(78417);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(n||(n={})),i(57900),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(r||(r={})),r.RecentlyAdded;var l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:c.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:d.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":c.v.VIDEO_COLLECTION,"query.clip":c.v.CLIP_COLLECTION,"query.interactive":c.v.INTERACTIVE_COLLECTION,id:e})},y=function(e){var t=e.videoId,i=e.context,r=e.collectionId,o=e.moviesAndTv,s={videoId:t,limit:e.limit,query:c.v.VIDEO_COLLECTION};return i&&(i===n.Widget?s["context.widgetId"]=r:(s["context.collectionType"]=i,s["context.collectionId"]=r)),o&&(s["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},m={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:c.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,i,n){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedVideo:function(e,t,i,n){return{url:l(e,t),key:"shared:video:".concat(e),success:i,error:n}},myVideos:function(e,t){var i=c.v.VIDEO_COLLECTION,n=c.v.CLIP_COLLECTION,r=c.v.INTERACTIVE,o="videos[".concat(i,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(n,"]"),v="interactives[".concat(r,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),p={query:"(".concat(o,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:d.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,i,n,r){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:o.k.PUT,data:t,success:i,error:n,always:r}},videoRatings:function(e,t){var i=e.map((function(e){return"id=".concat(e)}));if(i.length)return{url:"/api/domain/v2/objects?query=rating&".concat(i.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:o.k.DELETE,success:t,error:i,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,i,n,r){var a=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(i),"".concat(a)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(i),type:o.k.DELETE,success:n,error:r,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,i=e.context,n=e.collectionId,r=e.moviesAndTv;return{url:y(e),key:"related:videos:".concat(t,":").concat(i,":").concat(n,":").concat(r)}},collectionVideos:function(e,t,i,n,o,u){var l=function(e){switch(e){case r.AtoZ:return"orderby:name";case r.ZtoA:return"orderbydesc:name";case r.Newest:return"orderbydesc:datecreated";case r.Oldest:return"orderby:datecreated";case r.RecentlyAdded:return"orderbydesc:timestamp";case r.Series:return"orderby:seriessort";default:return}}(t),v=c.v.VIDEO_COLLECTION,p=c.v.CLIP_COLLECTION,y=c.v.INTERACTIVE,m="videos[".concat(v,"]"),f="clips[".concat(p,"]"),g="interactives[".concat(y,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),C=Object.assign({query:"(".concat(m,"|").concat(f,"|").concat(g,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:d.r.FilterOut},i?{cursor:i}:{}),b=["folder","videos",e,i,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),C),key:b,success:n,error:o,always:u}},pointsOfInterest:function(e,t,i,n,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:i,error:n,always:r}},regionAlternatives:function(e,t,i,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:i,always:n}}}},26361:(e,t,i)=>{i.d(t,{l:()=>m});var n=i(23481),r=i(110),o=i(86474),a=i(5345),c=i(35223);function s(e){return s="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},s(e)}function u(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=n.T.encloseNamespace("shared.shared-utils"),l=u(u({},a.c.Custom,o.Z.restrictionBadgeCustom),a.c.User,o.Z.restrictionBadgeUser),v=u(u({},a.c.Custom,c.vn.Timer),a.c.User,c.vn.Lock),p=u(u({},a.c.Custom,"restrictionCustom"),a.c.User,"restrictionYearGroup"),y=u(u({},a.c.Custom,200),a.c.User,100),m={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var i=m.getWeightedRestriction(e.value);return l[i.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 i=m.getWeightedRestriction(e.value);return v[i.type]},mapRestrictionToText:function(e,t){var i;if(!(null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.length)||!(null==t?void 0:t.length))return"";var n=m.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===n.yearGroup})),o=p[n.type];if(n.type===a.c.User)return null===n.yearGroup?d("restrictionStaff"):r?d(o,{yearGroup:r.name}):"";if(n.type===a.c.Custom){var c=m.getRestrictionDuration(n);return c?d(o,{duration:c,smartCount:c}):d("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,i){var n=y[e.type],r=y[i.type];return"highest"===t&&n>r||"lowest"===t&&n<r?e:i}))},getRestrictionByType:function(e,t){if(!m.hasRestrictions(e))return null;var i=Array.isArray(t)?t:[t],n=e._restrictions.value.filter((function(e){return i.includes(e.type)}));return m.getWeightedRestriction(n)},getRestrictionDuration:function(e){if(e.type===a.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!m.getRestrictionByType(e,[a.c.Custom])},hasRestrictions:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===i?void 0:i.length)}}},40370:(e,t,i)=>{i.d(t,{M:()=>b});var n,r=i(56050),o=i(23481),a=i(81886),c=i(110),s=i(65858);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(n||(n={}));var u=i(5960),d=i(4594),l=i(5345),v=(i(99940),i(97395)),p=i(62803),y=(i(78417),function(e,t){return{key:"clip:".concat(e,":").concat(t),url:v._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:p.v.CLIP,permissionFilterOption:t})}}),m=i(11565),f=i(26361),g=i(16714),C=o.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===u.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(g.C.StudentExperience)},showInteractivesGuidance:function(e){var t,i;return!(!e||b.isInteractive(e)||!(null===(i=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length))},showResourcesGuidance:function(e){var t,i,n,r;return!(!e||b.isInteractive(e)||!(((null===(i=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length)||0)+((null===(r=null===(n=e.links)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,i;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(i=null==e?void 0:e._videoProgress)||void 0===i?void 0:i.progress:0},getThumbnail:function(e){var t,i,n;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(i=e._parentVideo)||void 0===i?void 0:i.thumbnail)||(null===(n=e._parentClip)||void 0===n?void 0:n.thumbnail):void 0:null},getDuration:function(e){var t,i;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(i=e._parentVideo)||void 0===i?void 0:i.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?s.py.Video:b.isInteractive(e)?s.py.Interactive:b.isClip(e)?s.py.Clip:void 0},getAnalyticsData:function(e){var t,i,n,r,o,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var s=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(s.video={id:null===(i=e._parentVideo)||void 0===i?void 0:i.id,name:e._parentVideo.name}),s}var u=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id)&&(u.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id)&&(u.video={id:null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id,name:null==e?void 0:e._parentVideo.name}),u},getCanBeConsumed:function(e){var t,i;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(i=e._canBeConsumed)||void 0===i?void 0:i.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=b.getCanBeConsumed(e),r=n.canConsume,o=n.canNavigate,a=n.reason,c=function(){return b.isClip(e)?C("clipLoginRequired"):b.isInteractive(e)?C("interactiveLoginRequired"):C("videoLoginRequired")};if(!r&&!o){if(i)return c();switch(a){case"rating-not-allowed":return C("ratingNotAllowed");case"video-deleted":return b.isClip(e)?C("clipParentDeleted"):b.isInteractive(e)?C("interactiveParentDeleted"):C("videoDeleted");case"clickview-private":return C("clickViewPrivate");case"private":default:return C("genericCannotAccess");case"login-required":return c();case"restricted-access":var s=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==s?void 0:s.type)===l.c.Custom?C("awaitingApproval"):C("restrictedAccess")}}return b.isInteractive(e)&&e.status===u.X.Draft?C("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===u.X.Draft?C("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),i=t.canConsume,n=t.reason;return C(i||"private"!==n?i||"video-deleted"!==n?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,i){if(i){switch(t){case d.E.Video:return m.R.sharedVideo(e,i);case d.E.Clip:return function(e,t,i,n){return{key:"shared:clip:".concat(e),url:v._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:p.v.CLIP}),success:i,error:n}}(e,i);case d.E.Interactive:return function(e,t,i,n){return{url:v._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:p.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:i,error:n}}(e,i)}a.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case d.E.Video:return m.R.video(e);case d.E.Clip:return y(e);case d.E.Interactive:return n=e,{url:v._.urlBuilder("{gateway}/v1/objects/".concat(n),{query:p.v.INTERACTIVE,permissionFilterOption:o}),key:"interactive:metadata:".concat(n,":").concat(o)}}var n,o;a.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.systemName===n.Era||e.systemName===n.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===i?void 0:i.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.typeId===d.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},86474:(e,t,i)=>{i.d(t,{Z:()=>n});const n={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3933],{43933:(e,t,n)=>{n.d(t,{X:()=>I});var a=n(32735),r=n(110),o=n(23481),c=n(59795),i=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var u=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function d(e){var t=r.O.isSame(c.t.convertUTCToTimezoneDate((new Date).toISOString(),e.timezone||null),e.date,"day"),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var o,d,v=(o=(0,i.L)({delay:250}),d=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(o,d)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(o,d)||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=v[0],f=v[1];return a.createElement("div",{className:"".concat(n," ").concat(f?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},u("today")))}var v=n(28400),m=n(92582),f=n(65858),p=n(79878),g=n(12324),y=n(57408),h=n(11607),E=n(16107);const b={sliderDot:"fk5o1",sm:"LjGGx",active:"jA0tn",dotContainer:"Lr30e",defaultCursor:"J8mC3"};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function C(e){function t(t,n){t.stopPropagation(),t.preventDefault(),e.onSliderDotClick(n)}function n(t,n){var a,r="".concat(b.sliderDot," rounded-3");return t&&(r+=" ".concat(b.active)),"sm"===e.size&&(r+=" ".concat(b.sm)),(null===(a=e.isDisabled)||void 0===a?void 0:a.call(e,n))&&(r+=" pointer-events-none ".concat(b.defaultCursor)),r}return a.createElement("div",{className:"".concat(e.className," w-100 d-flex justify-content-around")},a.createElement("div",{className:"".concat(b.dotContainer," d-flex")},(r=Array(e.sliderLength),function(e){if(Array.isArray(e))return D(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(r)||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.")}()).map((function(r,o){var c=o===e.sliderStep;return a.createElement(h.L,{key:o,className:n(c,o),onClick:function(e){return null==t?void 0:t(e,o)}})}))));var r}var O=n(83914),M=n(2284),k=n(35223);const w={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function N(e){var t,n,o,c,i,l,s=e.sliderStep,u=e.setSliderStep,b=e.fadePastEvents?e.eventsOnDay.sort((function(e,t){return!W(e)&&W(t)?1:W(e)&&!W(t)?-1:0})):e.eventsOnDay,D=e.eventsOnDay.length>1,N=b.find((function(e,t){return t===s})),S=!!N.endDate,I=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,N.content),A=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,N.content),j=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,N.content),T=null===(c=e.getCoverUrl)||void 0===c?void 0:c.call(e,N.content),Y=N.content.status===M.W.ComingSoon,H=(i=a.useState(e.hasInitialized?w.appear:""),l=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(i,l)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.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)?x(e,t):void 0}}(i,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),L=H[0],z=H[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){z(w.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(N)}),[e.isHovering,N]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===N.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,N]);var U=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return D?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=N.specialEventId,t.topicId=N.content.id,t.eventStatus=N.content.status),t}(),B={actionType:f.Vw.Click,entity:f.py.SpecialEvent,location:f.LZ.CalendarDay};function P(e){return r.O.format(e,"YYYY-MM-DD")}function _(){return"".concat(e.className," ").concat(L," ")+[A?"".concat(w.hardcodedCover," position-absolute"):w.backgroundImage,j?"my-auto":w.cover,Y?w.comingSoon:"",e.hasInitialized?w.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?w.multiEventFilter:"","company"in N.content?"rounded-circle":""].join(" ")}function W(e){return"startDateTime"in e.content&&r.O.isBefore(e.content.startDateTime,new Date)}return a.createElement("div",{onClick:function(){Y&&m.k.logUserAction(U,B)}},a.createElement(y.F,{appLink:function(){var t,n;return D?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):Y?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,N.content,v.m.slugify(N.name))}(),analyticsOptions:B,analyticsData:U,className:"position-absolute top-0 start-0 h-100 w-100 text-shadow ".concat(w.wrapper),labelledBy:"calendarEvent"},a.createElement("div",{className:"".concat(w.tagWrap," p-1")},Y&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(w.tag," ").concat(L),onlyIcon:!0})),!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(w.date," ").concat(L),isHovering:e.isHovering,timezone:e.timezone,hasEvent:!0}),a.createElement("div",{style:{backgroundColor:I},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(w.eventCard," ").concat(L," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?w.multiEventFilter:""," ").concat(e.className," ").concat(!e.isHovering&&W(N)?"opacity-50":"")},j&&a.createElement(E.w,{src:j,alt:N.content.name,className:_()}),T&&!j&&a.createElement("div",{style:{backgroundImage:"url('".concat(T,"')")},className:_()}),S&&a.createElement("div",{className:"".concat(w.displayDate)},g.T.getDisplayDate(N.startDate,N.endDate)),a.createElement("div",{className:"text-center ".concat(w.title," ").concat(D?"mb-1":"mb-2")},a.createElement("p",{id:"calendarEvent",className:"".concat(e.responsiveText?w.titleText:""," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:N.name},N.name)),D&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(w.left)},a.createElement(h.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),u((function(e){return e-1})),m.k.logUserAction({date:P(e.date),action:"previous",eventCount:e.eventsOnDay.length},B)}},a.createElement(O.x,{svgName:k.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(w.arrow)}))),D&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(w.right)},a.createElement(h.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),u((function(e){return e+1})),m.k.logUserAction({date:P(e.date),action:"next",eventCount:e.eventsOnDay.length},B)}},a.createElement(O.x,{svgName:k.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(w.arrow)}))),D&&a.createElement("div",{className:"d-flex ".concat(w.bottomBar," ").concat(D?"":w.bottomPlaceholder)},a.createElement(C,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){u(t),m.k.logUserAction({date:P(e.date),action:"jump",eventCount:e.eventsOnDay.length},B)}})))))}N.defaultProps={responsiveText:!0};const S={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function I(e){var t,n,o=a.useMemo((function(){var t,n,a,o;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(o=e.hoveredEvent)||void 0===o?void 0:o.endDate)}),[e.hoveredEvent]),c=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(S.cell," fw-semibold")},!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,timezone:e.timezone}),o&&a.createElement("div",{style:{backgroundColor:c},className:S.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(N,Object.assign({},e,{isMultiEventDate:o})))}},79878:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),o=n(83914),c=n(64444),i=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(c.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},a.createElement(o.x,{svgName:i.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3958],{49935:(e,t,r)=>{r.d(t,{Oo:()=>b,b2:()=>y});var n=r(32735),a=r(23481),o=r(57408),i=r(86764),l=r(3747),c=r(5859),s=r(35223),u=r(83914);function m(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,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.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)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var d=a.T.encloseNamespace("shared.breadcrumbComponent"),p=n.forwardRef((function(e,t){var r=e.breadcrumb,a=r.name,i=r.appLink,l=r.active,c=e.withBackIcon,m=a,f=null;return m.length>48&&(m=a.slice(0,48)+"...",f=a),n.createElement("li",{className:"breadcrumb-item".concat(l?" active":""),title:f},l?n.createElement("strong",null,m):n.createElement(o.F,{appLink:i,ref:t},c&&n.createElement(u.x,{svgName:s.vn.ChevronLeft,size:u.S.Small}),n.createElement("span",{className:c?"ms-2":""},m)))})),b=function(e){var t=e.breadcrumbs,r=(0,l.a)(i.r.XS),a=(null==t?void 0:t.length)||0,o=m(n.useState(!1),2),c=o[0],s=o[1],u=m(n.useState(!1),2),f=u[0],b=u[1],y=n.useRef();if(n.useEffect((function(){var e,r=null!==(e=null==t?void 0:t.reduce((function(e,t){return e+t.name.length}),0))&&void 0!==e?e:0;a>4&&r>64&&s(!0)}),[null==t?void 0:t.length]),n.useLayoutEffect((function(){var e;f&&(null===(e=y.current)||void 0===e||e.focus())}),[y.current,f]),!a||r&&a<2)return n.createElement(n.Fragment,null);if(r)return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(p,{breadcrumb:t[a-2],withBackIcon:!0})));var v=n.createElement(p,{breadcrumb:t[0]}),g=a>2?n.createElement(p,{breadcrumb:t[1]}):n.createElement(n.Fragment,null),h=a>3?n.createElement(p,{breadcrumb:t[a-2]}):n.createElement(n.Fragment,null),E=a>1?n.createElement(p,{breadcrumb:t[a-1]}):n.createElement(n.Fragment,null),w=t.slice(2,a-2);return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},v,g,c?n.createElement("li",{className:"breadcrumb-item"},n.createElement("button",{className:"btn-link",onClick:function(){s(!1),b(!0)},"aria-label":d("expand")},"...")):w.map((function(e,t){return n.createElement(p,{key:t,breadcrumb:e,ref:0===t?y:null})})),h,E))},y=n.memo((function(e){var t=e.numItems,r=void 0===t?3:t;return(0,l.a)(i.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"},c.u.getPartialLoadingItems({numItems:r}).map((function(e,t){var r=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},23201:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(32735),a=r(92802),o=r(2102),i=r(83345),l=r(33936),c="shared.formButtons";function s(e){var t=(0,a.u6)(),r=(0,l.l)(t);return n.createElement(o.m,{variant:e.variant||"primary",type:"submit",disabled:!r,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?n.createElement(n.Fragment,null,e.submitText):n.createElement(i.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},1269:(e,t,r)=>{r.d(t,{n:()=>w,W:()=>S});var n=r(32735),a=r(80247),o=r(50132),i=r(92802),l=r(91967),c=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,l=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(w,Object.assign({className:"form-check-input"},l)),n.createElement(o.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===a?"fw-normal":""," \n ").concat(r),htmlFor:l.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 l="";return l=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)&&(l+=" is-invalid"),a&&(l+=" ".concat(a)),l}},b=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 v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var h=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="shared.formField";function w(e){var t,r,o=e.children,s=e.showLoadingSpinner,u=h(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,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.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)?g(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=l.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({},c.t.omit(u,["formSize"])),y),n.createElement("div",{className:v.spinner},n.createElement(a.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},c.t.omit(u,["formSize"])),y);var E="position-relative ".concat(v.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(v.passwordContainerDisabled)),n.createElement("div",{className:E},n.createElement(i.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:d,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===u.type&&n.createElement(f.x,{svgName:"password"===d?b.vn.VisibleOn:b.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){p("password"===d?"text":"password")}}))}function S(e){var t=e.label,r=e.className,a=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,g=e.infoText,S=e.formSize,O=e.showOptionalLabel,N=h(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),k=(0,i.u6)(),I=k.errors,T=k.touched,j=function(){};if("checkbox"===N.type){var P=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(P.onChange=j),n.createElement(m,Object.assign({},P))}var x=Object.assign(Object.assign({},N),{className:p.getCustomFormControlClassName(I,T,N.name,S,r,"string"==typeof e.as?e.as:null)});return e.disabled&&(x.onChange=j),n.createElement(o.Z.Group,{className:"form-group"},!!t&&n.createElement(o.Z.Label,{htmlFor:N.id,className:"d-flex align-items-center"},t,l&&n.createElement("span",{className:"text-danger"},"*"),s&&n.createElement(f.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:b.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(d.x,{namespace:E,phrase:"optional"})),!!a&&!!N.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(y,{fieldName:N.name,limit:N.maxLength}))),n.createElement(w,Object.assign({},x,{"aria-errormessage":"".concat(N.name,"Error")})),!!g&&n.createElement(o.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:N.name},(function(e){return n.createElement(o.Z.Control.Feedback,{id:"".concat(N.name,"Error"),type:"invalid",role:"status"},e)})))}w.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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var c=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=c(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,c=r&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&o(),r.errors)for(var n=0,c=Object.entries(r.errors);n<c.length;n++){var s=(e=c[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,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.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)?l(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}},5859:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{u:()=>o});var a={numItems:5,minWidth:50,maxWidth:100},o={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},a),t);return(e=Array(r.numItems),function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.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)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}},81803:(e,t,r)=>{r.d(t,{d:()=>p});var n=r(32735),a=r(81886),o=r(23481),i=r(49935),l=r(22902),c=r(96359),s=r(41135),u=r(96368);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var f="settings.settingsLayout",d=function(e){var t=(0,l.T)().hasPermissions,r=(0,u.e)();if(e)return t(e);var n=a.Q.C$.getCurrentAppLink();return n.application!==s.O.SETTINGS||r.some((function(e){return e.modules.some((function(e){return"appLink"in e&&e.appLink.action===n.action}))}))};function p(e){var t,r=d(e.requiredPermissions);if(n.useEffect((function(){r||a.Q.C$.trigger({application:s.O.SETTINGS,action:c.e.Settings.HOME},{replace:!0})}),[r]),!r)return n.createElement(n.Fragment,null);var l,u=e.breadcrumbs.map((function(t,r){return{name:t,appLink:{application:s.O.SETTINGS,action:c.e.Settings.HOME},active:r===e.breadcrumbs.length-1}}));return n.createElement("div",{className:"px-3"},n.createElement("div",{className:"d-flex align-items-center justify-content-between"},n.createElement("h1",{className:"h2"},e.heading),null===(t=e.headingButton)||void 0===t?void 0:t.call(e)),n.createElement("div",{className:"pb-3"},n.createElement(i.Oo,{breadcrumbs:[{name:o.T.getPhrase(f,"settingsBreadcrumb"),appLink:{application:s.O.SETTINGS,action:c.e.Settings.HOME}}].concat((l=u,function(e){if(Array.isArray(e))return m(e)}(l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r={}.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)?m(e,t):void 0}}(l)||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.")}()))})),e.description&&n.createElement(n.Fragment,null,n.createElement("p",null,e.description),n.createElement("hr",null)),e.children)}},68192:(e,t,r)=>{r.d(t,{N:()=>l});var n=r(99940),a=r(54610);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,r){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={getUser:function(e){return{url:"{gateway}/v1/users/".concat(e,"?query=avatar"),key:"school:users:".concat(e)}},updateUser:function(e,t,r,a,o){var i=["school:users:".concat(e.userId)];return t.toString()===e.userId.toString()&&i.push("currentuser"),{url:"{gateway}/v1/users",key:"edit:user",type:n.k.PUT,data:e,invalidationKeys:["search:aggregation"],success:r,error:a,always:o}},updateAvatar:function(e,t,r,o){return{url:"{gateway}/v1/users/me/avatar",key:"update:avatar",type:n.k.PUT,invalidationKeys:["currentuser","school:users:".concat(t)],data:{fileId:e,fileIdType:a.z9.ImageAPIv2},success:r,error:o}},deleteAvatar:function(e,t,r,a){return{url:"{gateway}/v1/users/me/avatar/".concat(e),key:"delete:avatar",type:n.k.DELETE,updateState:{keys:["school:users:".concat(t),"currentuser"],updateData:function(e){var r=e["school:users:".concat(t)],n=e.currentuser;return r.avatar=null,n.avatar=null,i(i({},"school:users:".concat(t),r),"currentuser",n)}},success:r,error:a}},changeEmail:function(e,t,r,a){return{url:"{gateway}/v1/users/me/email",key:"change:email",type:n.k.PUT,data:{email:e},success:t,error:r,always:a}},changePassword:function(e,t,r,a){return{url:"{gateway}/v1/users/me/password",key:"change:password",type:n.k.PUT,data:{currentPassword:e.currentPassword,newPassword:e.newPassword},success:t,error:r,always:a}},changeUserPassword:function(e,t,r,a,o,i,l){return{url:"{gateway}/v1/users/admin/change-password",key:"change:password:".concat(t,":").concat(e),type:n.k.PUT,data:{userId:e,newPassword:r,changeOnNextLogin:a},success:o,error:i,always:l}},resendActivationEmail:function(e,t,r){return{url:"{gateway}/v1/users/admin/activation",key:"send:activation:email",type:n.k.POST,data:{userId:e},success:t,error:r}},sendPasswordResetEmail:function(e,t,r,a){return{url:"{gateway}/v1/users/admin/account-reminder",key:"send:password:reset:email",type:n.k.POST,data:{userIds:[e],customerId:t},success:r,error:a}},resendVerificationEmail:function(e,t,r,a){return{url:"{gateway}/v1/users/admin/email-verification",key:"send:verification:email",type:n.k.POST,data:{userId:e,customerId:t},success:r,error:a}}}},96368:(e,t,r)=>{r.d(t,{e:()=>u});var n=r(23481),a=r(16714),o=r(22902),i=r(99742),l=r(96359),c=r(41135),s=n.T.encloseNamespace("settings.hooks");function u(){var e=(0,o.T)().hasPermissions;return[{id:"my-account",imageUrl:i.W.Settings.MY_ACCOUNT,name:s("myAccount"),modules:[{id:"profile-details",name:s("profileDetails"),appLink:{application:c.O.SETTINGS,action:l.e.Settings.PROFILE_DETAILS},permissions:[a.C.EditProfileDetails]},{id:"email-settings",name:s("emailPassword"),appLink:{application:c.O.SETTINGS,action:l.e.Settings.ACCOUNT}}]}].map((function(t){return Object.assign(Object.assign({},t),{modules:t.modules.filter((function(t){var r;return!((null===(r=t.permissions)||void 0===r?void 0:r.length)&&!e(t.permissions))}))})})).filter((function(e){return!!e.modules.length}))}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 4018-d20660c121-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4018],{71063:(e,t,n)=>{n.d(t,{M:()=>r});var r={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>E});var r,o=n(23481),a=n(110),i=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,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){return(t=function(e){var t=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)}(e);return"symbol"==l(t)?t:t+""}(t))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"}(r||(r={}));var u=o.T.encloseNamespace("shared.shared-utils"),p=/^(.*)\s/,d="pageTitle",m="pageDescription",f=s(s(s(s(s(s({},"au",r.AU),"gb",r.UK),"us",r.US),r.AU,"au"),r.UK,"gb"),r.US,"us");function h(e){return e?e.substring(0,e.length-3)+"...":""}function v(e){var t,n,r=e.title,o=e.phraseContext,a=e.product,i=void 0===a?"ClickView":a;if(!r)return"";if(!o)return u(d,{title:r,product:i});var l=70-(null!==(n=null===(t=o.phraseHandler(o.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return r.length>=l?u(d,{title:r,product:i}):o.phraseHandler(o.titlePhrase,{title:r})}function g(e){var t,n,r,o,a,i=e.title,l=e.description,c=e.phraseContext,s=h((160,(a=l||i)?a.substring(0,160):""));if(!c)return u(m,{description:s});var d=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==i?void 0:i.length)>=d)return u(m,{description:s});var f=h(function(e,t,n){if(!e)return"";var r=160-n;if(e.length<=r)return e;var o=e.slice(0,r),a=o.match(p);return a?a[1]:o}(l,0,null!==(o=null===(r=c.phraseHandler(c.descriptionPhrase,{title:i,description:""}))||void 0===r?void 0:r.length)&&void 0!==o?o:0));return c.phraseHandler(c.descriptionPhrase,{title:i,description:f})}function y(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var r,o,a=null===(r=f[n.contentRegion])||void 0===r?void 0:r.toUpperCase();return(null===(o=n.id)||void 0===o?void 0:o.toString())===(null==t?void 0:t.toString())&&a?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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}}(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.")}()}(e),[{"@type":"Place",name:a}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var r;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===(r=null==e?void 0:e.thumbnail)||void 0===r?void 0:r.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(i.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(i.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(i.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:y(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var E={getDefaultMetadata:function(e){var t=e.title,n=e.description,r=e.canonicalLink,o=e.phraseContext,a=e.allowIndexing,i=e.hrefLang;return{title:v({title:t,phraseContext:o,product:e.product}),description:g({title:t,description:n,phraseContext:o}),canonicalLink:r,allowIndexing:a,hrefLang:i}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,o=e.allowIndexing,a=e.hrefLang,i=e.regionAlternatives,l=e.product;return{title:v({title:null==t?void 0:t.name,phraseContext:r,product:l}),description:g({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),jsonLd:b(t,n,i),canonicalLink:n,allowIndexing:o,hrefLang:a}},getClipMetadata:function(e){var t,n=e.content,r=e.canonicalLink,o=e.phraseContext,a=e.allowIndexing;return{title:v({title:null==n?void 0:n.name,phraseContext:o}),description:g({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:o}),canonicalLink:r,allowIndexing:a}},getInteractiveMetadata:function(e){var t,n=e.content,r=e.canonicalLink,o=e.phraseContext,a=e.allowIndexing;return{title:v({title:null==n?void 0:n.name,phraseContext:o}),description:g({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:o}),canonicalLink:r,allowIndexing:a}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,o=e.allowIndexing;return{title:v({title:null==t?void 0:t.name,phraseContext:r}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:o}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,o=e.allowIndexing;return{title:v({title:null==t?void 0:t.name,phraseContext:r}),description:g({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),canonicalLink:n,allowIndexing:o}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,o=e.allowIndexing,a=e.hrefLang,i=e.product;return{title:v({title:null==t?void 0:t.name,phraseContext:r,product:i}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:o,hrefLang:a}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,o=e.allowIndexing,a=e.hrefLang,i=e.product;return{title:v({title:null==t?void 0:t.name,phraseContext:r,product:i}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:o,hrefLang:a}}}},83190:(e,t,n)=>{n.r(t),n.d(t,{ContactUsView:()=>ue});var r=n(32735),o=n(63093),a=n(81886),i=n(23481),l=n(92869),c=n(97395),s=n(20354),u=n(76153),p=n(57408),d=n(58960),m=n(83345),f=n(7822),h=n(39151),v=n(79612),g=n(75795),y=n(25301),b=n(30747),E=n(96359),w=n(41760),S=n(41135),x=n(7614),L=n(91975),C=n(93015),N=n(6117),O=n(15800),A=n(99742);const P={image:"pW4DD"};var T="default.contactUsError",k=i.T.encloseNamespace(T);function I(e){var t=e.className,n=void 0===t?"":t,o=e.onTryAgain;return r.createElement(O.u,{className:n},r.createElement(O.u.Image,{className:P.image,src:A.W.General.LOST_MESSAGE_BOTTLE}),r.createElement(O.u.Heading,{className:"w-100"},r.createElement(m.x,{namespace:T,phrase:"errorHeading"})),r.createElement(O.u.Info,{className:"w-100"},r.createElement(m.x,{namespace:T,phrase:"errorMessage"})),r.createElement(O.u.Cta,{text:k("buttonLabel"),className:"btn btn-dark w-100",onClick:o}))}var _=n(92802),j=n(5173),U=n(68293),F=n(47464),M=n(76530),D=n(1269),V=n(82644),R=n(2102),q=n(93824);function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.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)?K(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 K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var W="default.contactUsForm",H=i.T.encloseNamespace(W),B=j.Ry({firstName:j.Z_().required(H("firstNameRequired")),lastName:j.Z_().required(H("lastNameRequired")),email:j.Z_().email(H("emailValid")).required(H("emailRequired")),jobTitle:j.Z_().required(H("jobTitleRequired")),phoneNumber:j.Z_().matches(/^[0-9]+$/,H("phoneNumberValid")),schoolOrDistrict:j.Z_().required(H("schoolOrDistrictRequired"))});function Z(e){return r.createElement(V.n,{initialValues:e.initialValues,validateOnMount:!0,validationSchema:B,onSubmit:e.onSubmit},r.createElement($,{showSpinner:e.showSpinner,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function $(e){var t,n,o,a,i,l,c,s,u=e.showSpinner,p=e.googleMapsApiKey,d=e.searchProspectsUrl,f=(0,V.b)(),h=G(r.useState({}),2),v=h[0],g=h[1],y=G(r.useState(!1),2),b=y[0],E=y[1];function w(){f.setFieldValue("schoolOrDistrict",""),f.setFieldValue("country",""),f.setFieldValue("province",""),f.setFieldValue("prospectId",""),S()}function S(){window.setTimeout((function(){return f.validateForm()}),0)}return r.createElement(_.l0,null,r.createElement(D.W,{label:H("firstName"),name:"firstName",value:null===(t=f.values)||void 0===t?void 0:t.firstName,showRequiredStar:!0,placeholder:H("firstNamePlaceholder")}),r.createElement(D.W,{label:H("lastName"),name:"lastName",value:null===(n=f.values)||void 0===n?void 0:n.lastName,showRequiredStar:!0,placeholder:H("lastNamePlaceholder")}),r.createElement(D.W,{label:H("email"),name:"email",value:null===(o=f.values)||void 0===o?void 0:o.email,showRequiredStar:!0,placeholder:H("emailPlaceholder")}),b?r.createElement(D.W,{label:H("schoolOrDistrict"),name:"schoolOrDistrict",value:null===(a=f.values)||void 0===a?void 0:a.schoolOrDistrict,showRequiredStar:!0,placeholder:H("schoolOrDistrictPlaceholder"),autoFocus:!0}):r.createElement(r.Fragment,null,r.createElement(F.l,{data:v,setData:function(e){g(Object.assign(Object.assign({},v),e)),w()},clearData:function(){g({}),w()},labelClassName:"form-label",geoLocation:{countryCode:"US"},googleMapsApiKey:p,required:!0,hideOnBlur:!0}),r.createElement(M.X,{data:v,setData:function(e){g(Object.assign(Object.assign({},v),e)),f.setFieldValue("schoolOrDistrict",e.schoolName),f.setFieldValue("country",e.country),f.setFieldValue("province",e.province),f.setFieldValue("prospectId",e.prospectId),S()},clearData:function(){g(Object.assign(Object.assign({},v),{prospectId:void 0,schoolName:void 0,schoolPostCode:void 0})),w()},disabled:!v.schoolLocality,searchUrl:d,onClickNoSuggestions:function(e){E(!0),f.setFieldValue("schoolOrDistrict",e),S()},required:!0,placeholder:!v.schoolLocality&&H("schoolPlaceholder"),hideOnBlur:!0})),r.createElement(U.B,{id:"job-title",error:(null===(i=f.touched)||void 0===i?void 0:i.jobTitle)&&(null===(l=f.errors)||void 0===l?void 0:l.jobTitle),countryCode:q.C.US,initialValue:null===(c=f.values)||void 0===c?void 0:c.jobTitle,onChange:function(e){return f.setFieldValue("jobTitle",e,!1)},labelClassName:"form-label",required:!0}),r.createElement(D.W,{label:H("phoneNumber"),name:"phoneNumber",value:null===(s=f.values)||void 0===s?void 0:s.phoneNumber,showRequiredStar:!1,placeholder:H("phoneNumberPlaceholder")}),r.createElement(R.m,{type:"submit",className:"w-100 mt-3",variant:"dark",showSpinner:u,disabled:!f.isValid},r.createElement(m.x,{namespace:W,phrase:"contactUsButton"})))}const Y={image:"ilT9m"};var X="default.contactUsSuccess",J=i.T.encloseNamespace(X);function Q(e){var t=e.className,n=void 0===t?"":t,o=e.onClose;return r.createElement(O.u,{className:n},r.createElement(O.u.Image,{className:Y.image,src:A.W.General.EMAIL_SENT}),r.createElement(O.u.Heading,{className:"w-100"},r.createElement(m.x,{namespace:X,phrase:"successHeading"})),r.createElement(O.u.Info,{className:"w-100"},r.createElement(m.x,{namespace:X,phrase:"successMessage"})),o&&r.createElement(O.u.Cta,{text:J("buttonLabel"),className:"btn btn-dark w-100",onClick:o}))}const z={logo:"jNXAy",pageContainer:"HkwHS"};function ee(e){return ee="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},ee(e)}function te(){te=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,i=Object.create(a.prototype),l=new T(r||[]);return o(i,"_invoke",{value:N(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",m="suspendedYield",f="executing",h="completed",v={};function g(){}function y(){}function b(){}var E={};s(E,i,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(k([])));S&&S!==n&&r.call(S,i)&&(E=S);var x=b.prototype=g.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,a,i,l){var c=p(e[o],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ee(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function N(t,n,r){var o=d;return function(a,i){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=O(l,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var s=p(t,n,r);if("normal"===s.type){if(o=r.done?h:m,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=p(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function A(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function k(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(ee(t)+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},L(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new C(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(x),s(x,c,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,T.prototype={constructor:T,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(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return l.type="throw",l.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return re(e,t);var n={}.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)?re(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 re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oe=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((r=r.apply(e,t||[])).next())}))},ae="default.contactUs",ie=i.T.encloseNamespace(ae);function le(e){return r.createElement(r.Fragment,null,"data-entry"===e.formStage&&r.createElement(r.Fragment,null,r.createElement("h1",{className:"h2 text-center"},r.createElement(m.x,{namespace:ae,phrase:"contactUsHeading"})),r.createElement("p",{className:"text-center mb-3"},r.createElement(m.x,{namespace:ae,phrase:"contactUsDescription"})),r.createElement(Z,{initialValues:e.initialFormValues,showSpinner:e.submitting,onSubmit:e.onSubmit,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}),r.createElement(p.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:S.O.DEFAULT,action:E.e.Default.LOG_IN,params:e.loginParams}},r.createElement(m.x,{namespace:ae,phrase:"signInLink"}))),"error"===e.formStage&&r.createElement(I,{onTryAgain:e.onTryAgain}),"success"===e.formStage&&r.createElement(Q,{onClose:e.closePopup}))}function ce(e){return(0,v.M)(y.CG.getDefaultMetadata({title:"Contact us",phraseContext:{phraseHandler:ie,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:N.f.getCanonicalLink(),allowIndexing:!0,product:w.L.PRODUCT_NAME})),r.createElement("div",{className:"".concat(z.pageContainer," bg-white mt-4 mx-4 mx-sm-auto p-3 mb-3 border border-gray-400 rounded-3 shadow-sm")},r.createElement(le,{formStage:e.formStage,initialFormValues:e.initialFormValues,loginParams:e.loginParams,onSubmit:e.onSubmit,onTryAgain:e.onTryAgain,submitting:e.submitting,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function se(e){function t(){e.closePopup(),l.t.preventScrollTop()}return r.createElement(d.G,{closePopup:t,bodyClassName:"p-5"},r.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:t}),r.createElement("div",{className:"".concat(z.logo," position-absolute top-0 start-0 m-3")},r.createElement(b.p,null)),r.createElement(le,{formStage:e.formStage,initialFormValues:e.initialFormValues,loginParams:e.loginParams,onSubmit:e.onSubmit,onTryAgain:e.onTryAgain,submitting:e.submitting,closePopup:t,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}function ue(e){var t=s.a.useGetFetchAsync(),n=s.a.useBasicFetch(h.L.config()),i=(0,C.k)(),l=ne(r.useState("data-entry"),2),p=l[0],d=l[1],m=ne(r.useState(!1),2),v=m[0],y=m[1],b=ne(r.useState({firstName:"",lastName:"",email:"",schoolOrDistrict:"",jobTitle:"",phoneNumber:"",country:"",province:"",prospectId:""}),2),E=b[0],w=b[1],S=a.Q.C$.getHref(g.O.getCurrentRoute().appLink),N="/"!==S?{redirectUrl:S}:{};if(!n.hasCompleted)return r.createElement(r.Fragment,null);var O={formStage:p,initialFormValues:E,submitting:v,loginParams:N,onSubmit:function(e){var n,r;return oe(this,void 0,void 0,te().mark((function a(){var l,c,s,p;return te().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,y(!0),w(e),a.next=5,t(f.D.checkEmail(e.email));case 5:if(l=a.sent,!e.prospectId){a.next=11;break}return a.next=9,t(f.D.prospectLookups(e.prospectId));case 9:s=a.sent,c=null===(n=null==s?void 0:s.find((function(e){return"crm_id"===e.type})))||void 0===n?void 0:n.externalId;case 11:p={email:e.email,firstName:e.firstName,lastName:e.lastName,phone:e.phoneNumber,custom:{accountAddress:(null==e?void 0:e.province)?{countryCode:null==e?void 0:e.country,province:u.F.parseProvince((null==e?void 0:e.province)||"")}:void 0,accountName:e.schoolOrDistrict,jobTitle:e.jobTitle,syncToCrm:!(null===(r=null==l?void 0:l.users)||void 0===r?void 0:r.length)||void 0,crmId:c||void 0}},i.logFormSubmission({user:p,eventType:o.StreamableFormEvent.ContactUsFormSubmit,source:x._.ContactUs,topic:L.J.ContactUs}),d("success"),a.next=20;break;case 16:a.prev=16,a.t0=a.catch(0),console.warn(a.t0),d("error");case 20:return a.prev=20,y(!1),a.finish(20);case 23:case"end":return a.stop()}}),a,null,[[0,16,20,23]])})))},onTryAgain:function(){d("data-entry")},closePopup:e.closePopup,googleMapsApiKey:n.data.googleMapsApiKey,searchProspectsUrl:c._.safeUrlConcat(n.data.gatewayApiUrl,"/v1/search/prospects")};return e.fromPageLoad?r.createElement(ce,Object.assign({},O)):r.createElement(se,Object.assign({},O))}}}]);
|
|
@@ -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([[4064],{97079:(e,n)=>{n.Z=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return t.some((function(e){var n=e.trim().toLowerCase();return"."===n.charAt(0)?r.toLowerCase().endsWith(n):n.endsWith("/*")?i===n.replace(/\/.*$/,""):o===n}))}return!0}},24064:(e,n,t)=>{t.d(n,{uI:()=>ae});var r=t(32735),o=t(60216),i=t.n(o);function a(e,n,t,r){return new(t||(t=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,c)}u((r=r.apply(e,n||[])).next())}))}function c(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=n.call(e,a)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function u(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function l(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var s=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function f(e,n){var t=function(e){var n=e.name;if(n&&-1!==n.lastIndexOf(".")&&!e.type){var t=n.split(".").pop().toLowerCase(),r=s.get(t);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof t.path){var r=e.webkitRelativePath;Object.defineProperty(t,"path",{value:"string"==typeof n?n:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return t}var p=[".DS_Store","Thumbs.db"];function d(e){return"object"==typeof e&&null!==e}function v(e){return b(e.target.files).map((function(e){return f(e)}))}function m(e){return a(this,void 0,void 0,(function(){return c(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,n.sent().map((function(e){return f(e)}))]}}))}))}function g(e,n){return a(this,void 0,void 0,(function(){var t;return c(this,(function(r){switch(r.label){case 0:return e.items?(t=b(e.items).filter((function(e){return"file"===e.kind})),"drop"!==n?[2,t]:[4,Promise.all(t.map(h))]):[3,2];case 1:return[2,y(w(r.sent()))];case 2:return[2,y(b(e.files).map((function(e){return f(e)})))]}}))}))}function y(e){return e.filter((function(e){return-1===p.indexOf(e.name)}))}function b(e){if(null===e)return[];for(var n=[],t=0;t<e.length;t++){var r=e[t];n.push(r)}return n}function h(e){if("function"!=typeof e.webkitGetAsEntry)return D(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?O(n):D(e)}function w(e){return e.reduce((function(e,n){return l(l([],u(e),!1),u(Array.isArray(n)?w(n):[n]),!1)}),[])}function D(e){var n=e.getAsFile();if(!n)return Promise.reject("".concat(e," is not a File"));var t=f(n);return Promise.resolve(t)}function x(e){return a(this,void 0,void 0,(function(){return c(this,(function(n){return[2,e.isDirectory?O(e):j(e)]}))}))}function O(e){var n=e.createReader();return new Promise((function(e,t){var r=[];!function o(){var i=this;n.readEntries((function(n){return a(i,void 0,void 0,(function(){var i,a,u;return c(this,(function(c){switch(c.label){case 0:if(n.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),t(a),[3,4];case 4:return[3,6];case 5:u=Promise.all(n.map(x)),r.push(u),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){t(e)}))}()}))}function j(e){return a(this,void 0,void 0,(function(){return c(this,(function(n){return[2,new Promise((function(n,t){e.file((function(t){var r=f(t,e.fullPath);n(r)}),(function(e){t(e)}))}))]}))}))}var A=t(97079);function k(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){S(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function P(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||C(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,n){if(e){if("string"==typeof e)return z(e,n);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)?z(e,n):void 0}}function z(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var R=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var n=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:"file-invalid-type",message:"File type must be ".concat(n)}},I=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},T=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},M={code:"too-many-files",message:"Too many files"};function _(e,n){var t="application/x-moz-file"===e.type||(0,A.Z)(e,n);return[t,t?null:R(n)]}function L(e,n,t){if(B(e.size))if(B(n)&&B(t)){if(e.size>t)return[!1,I(t)];if(e.size<n)return[!1,T(n)]}else{if(B(n)&&e.size<n)return[!1,T(n)];if(B(t)&&e.size>t)return[!1,I(t)]}return[!0,null]}function B(e){return null!=e}function K(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function U(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function $(e){e.preventDefault()}function W(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.some((function(n){return!K(e)&&n&&n.apply(void 0,[e].concat(r)),K(e)}))}}function G(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function H(e){return/^.*\.[\w]+$/.test(e)}var q=["children"],N=["open"],Z=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Y=["refKey","onChange","onClick"];function J(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||Q(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,n){if(e){if("string"==typeof e)return V(e,n);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)?V(e,n):void 0}}function V(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){ne(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ne(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function te(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var re=(0,r.forwardRef)((function(e,n){var t=e.children,o=ae(te(e,q)),i=o.open,a=te(o,N);return(0,r.useImperativeHandle)(n,(function(){return{open:i}}),[i]),r.createElement(r.Fragment,null,t(ee(ee({},a),{},{open:i})))}));re.displayName="Dropzone";var oe={disabled:!1,getFilesFromEvent:function(e){return a(this,void 0,void 0,(function(){return c(this,(function(n){return d(e)&&d(e.dataTransfer)?[2,g(e.dataTransfer,e.type)]:d(t=e)&&d(t.target)?[2,v(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,m(e)]:[2,[]];var t}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};re.defaultProps=oe,re.propTypes={children:i().func,accept:i().objectOf(i().arrayOf(i().string)),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,autoFocus:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,onError:i().func,validator:i().func};var ie={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ee(ee({},oe),e),t=n.accept,o=n.disabled,i=n.getFilesFromEvent,a=n.maxSize,c=n.minSize,u=n.multiple,l=n.maxFiles,s=n.onDragEnter,f=n.onDragLeave,p=n.onDragOver,d=n.onDrop,v=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,y=n.onFileDialogOpen,b=n.useFsAccessApi,h=n.autoFocus,w=n.preventDropOnDocument,D=n.noClick,x=n.noKeyboard,O=n.noDrag,j=n.noDragEventsBubbling,A=n.onError,E=n.validator,C=(0,r.useMemo)((function(){return function(e){if(B(e))return Object.entries(e).reduce((function(e,n){var t=P(n,2),r=t[0],o=t[1];return[].concat(k(e),[r],k(o))}),[]).filter((function(e){return G(e)||H(e)})).join(",")}(t)}),[t]),z=(0,r.useMemo)((function(){return function(e){return B(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var n=P(e,2),t=n[0],r=n[1],o=!0;return G(t)||(console.warn('Skipped "'.concat(t,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(H)||(console.warn('Skipped "'.concat(t,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,n){var t=P(n,2),r=t[0],o=t[1];return F(F({},e),{},S({},r,o))}),{})}]:e}(t)}),[t]),R=(0,r.useMemo)((function(){return"function"==typeof y?y:ue}),[y]),I=(0,r.useMemo)((function(){return"function"==typeof g?g:ue}),[g]),T=(0,r.useRef)(null),q=(0,r.useRef)(null),N=J((0,r.useReducer)(ce,ie),2),X=N[0],re=N[1],ae=X.isFocused,le=X.isFileDialogActive,se=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),fe=function(){!se.current&&le&&setTimeout((function(){q.current&&(q.current.files.length||(re({type:"closeDialog"}),I()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",fe,!1),function(){window.removeEventListener("focus",fe,!1)}}),[q,le,I,se]);var pe=(0,r.useRef)([]),de=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),pe.current=[])};(0,r.useEffect)((function(){return w&&(document.addEventListener("dragover",$,!1),document.addEventListener("drop",de,!1)),function(){w&&(document.removeEventListener("dragover",$),document.removeEventListener("drop",de))}}),[T,w]),(0,r.useEffect)((function(){return!o&&h&&T.current&&T.current.focus(),function(){}}),[T,h,o]);var ve=(0,r.useCallback)((function(e){A?A(e):console.error(e)}),[A]),me=(0,r.useCallback)((function(e){var n;e.preventDefault(),e.persist(),Fe(e),pe.current=[].concat(function(e){if(Array.isArray(e))return V(e)}(n=pe.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||Q(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.")}(),[e.target]),U(e)&&Promise.resolve(i(e)).then((function(n){if(!K(e)||j){var t=n.length,r=t>0&&function(e){var n=e.files,t=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,c=e.validator;return!(!i&&n.length>1||i&&a>=1&&n.length>a)&&n.every((function(e){var n=P(_(e,t),1)[0],i=P(L(e,r,o),1)[0],a=c?c(e):null;return n&&i&&!a}))}({files:n,accept:C,minSize:c,maxSize:a,multiple:u,maxFiles:l,validator:E});re({isDragAccept:r,isDragReject:t>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return ve(e)}))}),[i,s,ve,j,C,c,a,u,l,E]),ge=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e);var n=U(e);if(n&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return n&&p&&p(e),!1}),[p,j]),ye=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e);var n=pe.current.filter((function(e){return T.current&&T.current.contains(e)})),t=n.indexOf(e.target);-1!==t&&n.splice(t,1),pe.current=n,n.length>0||(re({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),U(e)&&f&&f(e))}),[T,f,j]),be=(0,r.useCallback)((function(e,n){var t=[],r=[];e.forEach((function(e){var n=J(_(e,C),2),o=n[0],i=n[1],u=J(L(e,c,a),2),l=u[0],s=u[1],f=E?E(e):null;if(o&&l&&!f)t.push(e);else{var p=[i,s];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!u&&t.length>1||u&&l>=1&&t.length>l)&&(t.forEach((function(e){r.push({file:e,errors:[M]})})),t.splice(0)),re({acceptedFiles:t,fileRejections:r,type:"setFiles"}),d&&d(t,r,n),r.length>0&&m&&m(r,n),t.length>0&&v&&v(t,n)}),[re,u,C,c,a,l,d,v,m,E]),he=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),Fe(e),pe.current=[],U(e)&&Promise.resolve(i(e)).then((function(n){K(e)&&!j||be(n,e)})).catch((function(e){return ve(e)})),re({type:"reset"})}),[i,be,ve,j]),we=(0,r.useCallback)((function(){if(se.current){re({type:"openDialog"}),R();var e={multiple:u,types:z};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){be(e,null),re({type:"closeDialog"})})).catch((function(e){var n;(n=e)instanceof DOMException&&("AbortError"===n.name||n.code===n.ABORT_ERR)?(I(e),re({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(se.current=!1,q.current?(q.current.value=null,q.current.click()):ve(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ve(e)}))}else q.current&&(re({type:"openDialog"}),R(),q.current.value=null,q.current.click())}),[re,R,I,b,be,ve,z,u]),De=(0,r.useCallback)((function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),we()))}),[T,we]),xe=(0,r.useCallback)((function(){re({type:"focus"})}),[]),Oe=(0,r.useCallback)((function(){re({type:"blur"})}),[]),je=(0,r.useCallback)((function(){D||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(we,0):we())}),[D,we]),Ae=function(e){return o?null:e},ke=function(e){return x?null:Ae(e)},Ee=function(e){return O?null:Ae(e)},Fe=function(e){j&&e.stopPropagation()},Se=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,t=void 0===n?"ref":n,r=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,u=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=te(e,Z);return ee(ee(ne({onKeyDown:ke(W(i,De)),onFocus:ke(W(a,xe)),onBlur:ke(W(c,Oe)),onClick:Ae(W(u,je)),onDragEnter:Ee(W(l,me)),onDragOver:Ee(W(s,ge)),onDragLeave:Ee(W(f,ye)),onDrop:Ee(W(p,he)),role:"string"==typeof r&&""!==r?r:"presentation"},t,T),o||x?{}:{tabIndex:0}),d)}}),[T,De,xe,Oe,je,me,ge,ye,he,x,O,o]),Pe=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),Ce=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,t=void 0===n?"ref":n,r=e.onChange,o=e.onClick,i=te(e,Y);return ee(ee({},ne({accept:C,multiple:u,type:"file",style:{display:"none"},onChange:Ae(W(r,he)),onClick:Ae(W(o,Pe)),tabIndex:-1},t,q)),i)}}),[q,t,u,he,o]);return ee(ee({},X),{},{isFocused:ae&&!o,getRootProps:Se,getInputProps:Ce,rootRef:T,inputRef:q,open:Ae(we)})}function ce(e,n){switch(n.type){case"focus":return ee(ee({},e),{},{isFocused:!0});case"blur":return ee(ee({},e),{},{isFocused:!1});case"openDialog":return ee(ee({},ie),{},{isFileDialogActive:!0});case"closeDialog":return ee(ee({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ee(ee({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return ee(ee({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections});case"reset":return ee({},ie);default:return e}}function ue(){}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4109],{74109:(e,t,a)=>{a.r(t),a.d(t,{SignInPopupView:()=>k});var n=a(32735),s=a(81886),c=a(57408),l=a(58960),r=a(83914),p=a(83345),i=a(75795),o=a(35223),m=a(30747),u=a(96359),E=a(41135);const g={logo:"MnJyE"};var b="streamableVideos.signInPopup";function k(e){var t=s.Q.C$.getHref(i.O.getCurrentRoute().appLink),a="/"!==t?{redirectUrl:t}:{};return n.createElement(l.G,{closePopup:e.closePopup,bodyClassName:"p-5"},n.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:e.closePopup}),n.createElement("div",{className:"".concat(g.logo," position-absolute top-0 start-0 m-3")},n.createElement(m.p,null)),n.createElement("h1",{className:"h2 text-center"},n.createElement(p.x,{namespace:b,phrase:"signInHeading"})),n.createElement("p",{className:"text-center mb-3"},n.createElement(p.x,{namespace:b,phrase:"signInDescription"})),n.createElement(c.F,{className:"mt-3 btn btn-dark w-100",appLink:{application:E.O.DEFAULT,action:u.e.Default.LOG_IN,params:a}},n.createElement(r.x,{svgName:o.vn.NewWindow}),n.createElement("span",{className:"ms-1"},n.createElement(p.x,{namespace:b,phrase:"signInButton"}))),n.createElement(c.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:E.O.DEFAULT,action:u.e.Default.CONTACT_US_POPUP}},n.createElement(p.x,{namespace:b,phrase:"contactUsLink"})))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4254],{19716:(e,t,n)=>{n.d(t,{D:()=>d});var a=n(32735),i=n(39202),r=n(23481),o=n(65858),l=n(88818);const c={pillTab:"Vrjid"};var s="streamable.header";function d(e){var t,n,d,u,p,m,v=[{name:r.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:r.T.getPhrase(s,"heading"),url:i.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:r.T.getPhrase(s,"livestreams"),appLink:null===(d=e.appLinks)||void 0===d?void 0:d.calendar,active:"calendar"===e.active,analyticsData:{name:r.T.getPhrase(s,"livestreams"),url:i.C$.getHref(null===(u=e.appLinks)||void 0===u?void 0:u.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:r.T.getPhrase(s,"partners"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.partners,active:"partners"===e.active,analyticsData:{name:r.T.getPhrase(s,"partners"),url:i.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return a.createElement("div",{className:"py-3 text-center"},a.createElement(l.r,{tabs:v,className:c.pillTab}))}},88818:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),i=n(92582),r=n(57408),o=n(18559),l=n(11607),c=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function d(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(c.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function u(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(r.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n ")},a.createElement(d,{tab:e})):a.createElement(l.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(d,{tab:e})))}))))}u.defaultProps={borderRadius:"lg"}},71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>L});var a,i=n(23481),r=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,a=Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))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"}(a||(a={}));var d=i.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,i=e.phraseContext,r=e.product,o=void 0===r?"ClickView":r;if(!a)return"";if(!i)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=i.phraseHandler(i.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):i.phraseHandler(i.titlePhrase,{title:a})}function f(e){var t,n,a,i,r,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(r=l||o)?r.substring(0,160):""));if(!c)return d(m,{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(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var i=e.slice(0,a),r=i.match(u);return r?r[1]:i}(l,0,null!==(i=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==i?i:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,i,r=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&r?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.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}}(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.")}()}(e),[{"@type":"Place",name:r}]):e}),[]))&&void 0!==n?n:[]}function y(e,t,n){var a;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===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:r.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 L={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:i,product:e.product}),description:f({title:t,description:n,phraseContext:i}),canonicalLink:a,allowIndexing:r,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:y(t,n,o),canonicalLink:n,allowIndexing:i,hrefLang:r}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),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:i}),canonicalLink:a,allowIndexing:r}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),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:i}),canonicalLink:a,allowIndexing:r}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}}}},14254:(e,t,n)=>{n.r(t),n.d(t,{DashboardView:()=>F});var a=n(32735),i=n(23481),r=n(57900),o=n(20354),l=n(2948),c=n(75896),s=n(19716),d=n(81326),u=n(22902),p=n(26154),m=n(21366),v=n(15800),g=n(83345),h=n(64444),f=n(35223),b="streamable.dashboardEmptyState",y=i.T.encloseNamespace(b);function L(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===p.GL.Archived;return a.createElement(v.u,null,a.createElement(v.u.Image,{src:e.imageUrl,altText:y("info")}),a.createElement(v.u.Heading,null,a.createElement(g.x,{namespace:b,phrase:"heading"})),a.createElement(v.u.Info,null,a.createElement(g.x,{namespace:b,phrase:"info"})),a.createElement(h.u,{title:r?i.T.getPhrase(b,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(v.u.Cta,{text:i.T.getPhrase(b,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:f.vn.Plus,disabled:r})))}function C(e){var t,n=c.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,u.T)(),r=i.hasPermissions,o=i.hasLocalPermissions;function l(t,n,a){var i=m.S.getWidgetParams(n,a,m.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,i,a)}var v=e.isReadonly&&!(null==n?void 0:n.length);return a.createElement(a.Fragment,null,a.createElement(s.D,{active:"discover",appLinks:e.headerAppLinks}),n.map((function(t,n){return a.createElement(d.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:l,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,lazyLoad:e.lazyLoad,dashboardTarget:p.ku.Discover,widgetIndex:n,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"productionCompany",contentType:p.VH.Livestream,resourceThumbnailFallbackImageUrl:"",preferences:t.preferences,hasPermissions:r,hasLocalPermissions:o,preventPopout:!0,isPlugin:!1})})),v&&a.createElement(L,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var E=n(38143),k=n(25925),x=n(89454),S=n(39151),T=n(80889),A=n(79612),w=n(69454),P=n(25301),O=n(99742),I=n(41760),D=n(31700),R=n(73688),U=n(6117),N=n(27051);function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var _=i.T.encloseNamespace("streamableDashboard.dashboard");function F(e){var t,n,i,c=o.a.useBasicFetch(S.L.config()),s=o.a.useBasicFetch(D.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&x.O.presentationAudiences(s.data.id,k.R.StreamableLearning)),u=(0,R.B)({targetType:p.ku.Discover,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}).dashboard,m=(n=(0,l.D)(E.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),i=1,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 a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.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}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],v=(0,N.E)(w.T.getAudienceParams(m));return(0,A.M)(P.CG.getDiscoverMetadata({content:s.data,phraseContext:{phraseHandler:_,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:U.f.getCanonicalLink(),allowIndexing:!0,product:I.L.PRODUCT_NAME})),c.hasCompleted&&u.hasCompleted&&s.hasCompleted&&d.hasCompleted?a.createElement("div",{className:"bg-white px-4"},a.createElement(C,{dashboard:u.data,widgetAppLinks:v,headerAppLinks:(0,N.h)(),presentation:s.data,imageCdnUrl:c.data.imageCdnUrl,getWidgetContentRequest:T._.dashboardWidgetContent,audiences:d.data,lazyLoad:!U.f.isBot(),companyLogoFallbackUrl:O.W.StreamableLearning.LOGO})):a.createElement(a.Fragment,null)}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>l});var a=n(96359),i=n(41135),r=n(65751);function o(e){return Object.assign(Object.assign({},r.y),{classification:function(t){return r.y.classification(t,e)},classificationDirectory:function(){return r.y.classificationDirectory(e)}})}function l(){return{discover:{application:i.O.DASHBOARD,action:a.e.Dashboard.HOME},calendar:{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR},partners:{application:i.O.DASHBOARD,action:a.e.Dashboard.CONTENT_PARTNERS}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[487],{43306:(e,i,t)=>{t.d(i,{H:()=>f});var n=t(23481),a=t(57900),r=t(65858),o=JSON.parse('{"9":{"JpZ05O1":{"name":"English","videoIds":["12293130","30361411","56866418","58438459","47329278","33204878"]},"2jDy2MG":{"name":"Health and Physical Education","videoIds":["7707302","3714120","3714278","3714173","3714263","57736366"]},"nK2le8E":{"name":"Personal Development and Health","videoIds":["8789599","60153074","3713674","15492556","3716135","53092493"]},"yKGO31z":{"name":"Business and Economics","videoIds":["47366972","3715870","18845095","36235981","53428226","51407674"]},"m0LrOj4":{"name":"Geography","videoIds":["67277770","3716182","5803343","21143528","3716292","3922246"]},"WAJk5KZ":{"name":"Earth and Environment","videoIds":["59077564","4006484","21148006","3716170","21143528","3716621"]},"v47nvEK":{"name":"History","videoIds":["3926454","3716774","3713871","3716594","3716183","3713847"]},"j03MPwr":{"name":"Legal Studies","videoIds":["3102514","1980904","1969843","3716210","3714860","2787675"]},"bbJR9Zn":{"name":"Languages","videoIds":["5449905","42463035","6820509","6027576","47076421","5455635"]},"8L21E3O":{"name":"Mathematics","videoIds":["3715870","3715019","51005229","3714949","3716177","3715365"]},"2jDy2M7":{"name":"Religion and Philosophy","videoIds":["3716229","3716171","41056701","16574869","3716175","50917953"]},"qdo988Y":{"name":"Biological Sciences","videoIds":["3714819","3716265","4683666","3715984","38041517","3779793"]},"0OPpqqo":{"name":"Chemical Sciences","videoIds":["52947827","52948049","3715160","4427422","57870424","47323862"]},"dlMrOdE":{"name":"Physical Sciences","videoIds":["11746875","3716307","39316775","6746382","6812332","6344597"]},"3koR9yA":{"name":"Psychology","videoIds":["3714373","3714891","16132648","6599207","3717591","3717555"]},"0OZyLGy":{"name":"Technologies","videoIds":["3714027","6863817","3716153","34149622","22733300","10345707"]},"0OZyLYy":{"name":"The Arts","videoIds":["3713730","3716727","3937998","32102569","3716167","32998073"]}},"12":{"v45P37g":{"name":"Expressive Arts","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"GxyLnJn":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"7PWYrDW":{"name":"Literacy and English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"eKpbY50":{"name":"Numeracy and Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"4GR8pEL":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"k3MlbL9":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"wLDW2LL":{"name":"Religious and Philosophical Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"nKGonKL":{"name":"Sciences","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]},"eKpbEMy":{"name":"Social Studies","videoIds":["38091407","52436848","8139170","8733988","52601783","51668932"]},"MgqLxwk":{"name":"Technologies","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]}},"13":{"GxAzY0z":{"name":"Arts","videoIds":["6412547","53550381","40919555","50977326","53108637","49858623"]},"Jpy1Edb":{"name":"Computer Science and Technology","videoIds":["39382930","40907539","48236013","48233767","48236100","3712674"]},"NqgPKaG":{"name":"English Language Arts","videoIds":["38945464","39388174","52673932","38945448","60062676","48235940"]},"bbJ74ed":{"name":"Health","videoIds":["39430062","40919434","39362080","39383081","58025600","40919494"]},"Dda6pW3":{"name":"Math","videoIds":["49532295","38943192","49532442","39382723","39388252","38944700"]},"j0a4Arj":{"name":"Physical Education","videoIds":["40919406","48235838","50652589","40919430","48236078","50652575"]},"LqG71RA":{"name":"Science","videoIds":["45248852","48235521","52318531","48235464","39383083","51731134"]},"8LnP7p8":{"name":"Social and Emotional Learning","videoIds":["39451488","48235859","39337317","40964136","42314985","39382748"]},"v4qEZDG":{"name":"Social Studies","videoIds":["51666992","39382727","41120130","56997479","57311898","39342430"]},"4Gl1DaK":{"name":"World Languages","videoIds":["40919719","40919802","40919815","40919186","40915325","49858537"]}},"14":{"2jrkdLY":{"name":"Arts","videoIds":["38916908","6412547","40919390","40919482","38817643","38817665"]},"g42EN1v":{"name":"Computer Science and Technology","videoIds":["40919434","38917550","50878197","40907190","40907208","39382881"]},"5ROzG7l":{"name":"English Language Arts","videoIds":["39387902","40912179","60062676","40916580","40919438","48234159"]},"ze5J1AE":{"name":"Health","videoIds":["39362404","39430062","51152651","40919426","40919486","48234499"]},"v4qnrzg":{"name":"Math","videoIds":["39361909","51005193","51730147","48715611","39382600","49532478"]},"1dRa6vd":{"name":"Physical Education","videoIds":["40918377","51617459","49533964","42463003","51182678","50652593"]},"KAE9Kqx":{"name":"Science","videoIds":["50877364","39438561","40907311","51735853","40908561","50878717"]},"xyLWk6w":{"name":"Social and Emotional Learning","videoIds":["40964136","53746175","48172750","48171641","50417923","50418083"]},"8Ln1GA8":{"name":"Social Studies","videoIds":["51666258","38945379","50900368","49690616","45259058","51666231"]},"DdaRGrq":{"name":"World Languages","videoIds":["40915666","40915325","42486037","40915698","40915345","48040254"]}},"15":{"yKZ43dw":{"name":"Arts","videoIds":["38817665","39999270","38808751","40911271","40911232","51581800"]},"p3y82WO":{"name":"Career and Technical Education","videoIds":["52328915","52328920","47488746","47488362","52436904","40917538"]},"KAERnwR":{"name":"Computer Science and Technology","videoIds":["40915847","40916210","51262040","39912587","51250029","58318543"]},"LqGrPwA":{"name":"English Language Arts","videoIds":["40914651","40918236","77544344","51581321","39319556","40912204"]},"8LnamD8":{"name":"Health","videoIds":["51154979","48235793","46984526","39894691","59279809","50996991"]},"Jpyo7W2":{"name":"Math","videoIds":["47595827","51730147","49532658","48715416","48234988","48715584"]},"5RO2ml5":{"name":"Physical Education","videoIds":["49533951","40918509","40918377","51655191","50652593","40908770"]},"obMre0k":{"name":"Science","videoIds":["40915159","51293454","52938790","51291516","39414759","40916620"]},"ze5d6l9":{"name":"Social and Emotional Learning","videoIds":["48171596","48171968","48171765","50418083","50418241","48235802"]},"qd17eke":{"name":"Social Studies","videoIds":["50763143","49690616","53578611","53313159","45286772","39414759"]},"KAERnDz":{"name":"World Languages","videoIds":["42486037","48234348","40919186","40919098","40918945","40915898"]}},"16":{"KAEY5GK":{"name":"Art and Design","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"6wa2YwO":{"name":"Citizenship","videoIds":["57355388","52601783","48522943","22372630","53108585","41992024"]},"R0LK746":{"name":"Computing","videoIds":["26617482","38132678","26619390","36895952","41565288","36895909"]},"9DPkNz6":{"name":"Design and Technology","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]},"2jDnan9":{"name":"Drama","videoIds":["51240522","230268","37018426","41939112","51582282","46916103"]},"E06dg2Z":{"name":"English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"8LnO2Rd":{"name":"Geography","videoIds":["67225999","3713237","4402476","50800706","51666994","48105073"]},"bbJ9Ayb":{"name":"History","videoIds":["52436848","8139170","8733988","48666851","51668932","51731292"]},"Dda4KYL":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"Ax2Jyoa":{"name":"Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"bbJ9Ap0":{"name":"Music","videoIds":["50466237","6412547","49535315","49808227","30324910","64333"]},"NqgMRWy":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"Yvm5eyp":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"8LnO2Je":{"name":"Religious Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"3kmoJ72":{"name":"Science","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]}},"18":{"yKP9gOD":{"name":"Civics and Citizenship","videoIds":["7735265","7735497","50679052","51452628","13106949","13107690"]},"7P6JOYb":{"name":"Economics and Business Studies","videoIds":["53428624","37455700","57355319","53428628","43961148","57966130"]},"j0jRJ1Z":{"name":"English","videoIds":["8416974","8417845","3712691","32127566","6673418","52675027"]},"nKDmYEl":{"name":"Geography","videoIds":["58600977","6980722","34591272","4402447","34597058","51437590"]},"Pk7e2GL":{"name":"Health and Physical Education","videoIds":["7593365","4170133","9900524","36875667","4669690","7593792"]},"WAe601Z":{"name":"History","videoIds":["3713735","6430651","3716829","43772092","51391809","56980377"]},"v4893Yy":{"name":"Languages","videoIds":["5449905","32345978","39623583","6820509","39255442","39254760"]},"nKDmYkl":{"name":"Mathematics","videoIds":["3713828","10749459","32102562","6689791","3713607","48278618"]},"0OeG09l":{"name":"Religion","videoIds":["8740724","8733239","8739706","8734693","8733792","33320133"]},"2jd70bp":{"name":"Science","videoIds":["3712073","36554689","3713561","3713739","7310275","3711972"]},"KAmPJqP":{"name":"Technologies","videoIds":["26619390","4131606","38132678","50720784","57230386","51181861"]},"MgOve7k":{"name":"The Arts","videoIds":["50466237","6412547","8100020","3716220","49808227","32787298"]}},"24":{"qdarDYp":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"3ko2ey4":{"name":"Citizenship","videoIds":["36220305","47575902","3716210","36103171","57771705","5270400"]},"eKnGDa0":{"name":"English","videoIds":["36191688","33204878","36395402","5758602","35997069","23851791"]},"Yv5dzw5":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"ra6m0d1":{"name":"Geography","videoIds":["74135484","9375166","5711759","16206702","3922246","48476601"]},"E0dZqyR":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"9DkAaKy":{"name":"Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"8LOYpl0":{"name":"Numeracy and Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","48091307"]},"m0d5D7r":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"g4WgD5l":{"name":"PSE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"WALeYqE":{"name":"Psychology","videoIds":["57771705","3714373","39438648","3714426","3714891","3717591"]},"eKnGDdP":{"name":"Religious, Moral and Philosophical Education","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"eKnGDdo":{"name":"Sciences","videoIds":["11746875","3779793","4558988","48139884","3713268","3716170"]},"nK2D9Oj":{"name":"Sociology","videoIds":["3716077","3714531","47207659","58441038","63984885","38146645"]},"2jDd3kx":{"name":"Technologies","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}},"47":{"LqKNnNw":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"7PgZvEA":{"name":"Careers","videoIds":["9315247","9312222","47104083","3715120","3714944","47159767"]},"la7zdgw":{"name":"English","videoIds":["53466594","77444242","17989642","30340068","24419904","33204878"]},"wLKkMwD":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"wLKkMEp":{"name":"Geography","videoIds":["74135484","22687577","5711759","16206702","3922246","19105359"]},"OzZ6vg4":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"YvJby7P":{"name":"Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","34497285"]},"v41jLmK":{"name":"Modern Foreign Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"aPG3mRe":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"Gxp3jze":{"name":"PSHE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"qd2K0qY":{"name":"Religion","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"ob31yZ9":{"name":"Science","videoIds":["9375775","11746875","3779793","4558988","48139884","3713268"]},"nKvyqe1":{"name":"Technology","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]}}}'),s=t(46477),l=t(19808),d=t(65728),c={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!o[e.preferredPresentation.id])}},u=n.T.encloseNamespace("onboarding.constants"),m="show-subjects-summary",g="show-job-title-to-trial-user",f={"welcome-video":{id:"welcome-video",predicate:function(e){return!!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&e.instanceRegion===l.b.US},setting:d.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:r.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"select-role":{id:"select-role",predicate:function(e){return!s.m.hasNonBdmTrial(e.hasPermissions)||(e.jobTitle?"boolean"==typeof a.SG.get(g)?a.SG.get(g):(a.SG.set(g,!1),!1):("boolean"!=typeof a.SG.get(g)&&a.SG.set(g,!0),!0))},setting:d.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:r.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectRoleHeading")},getWidgetDescription:function(){return u("selectRoleMessage")}},"usage-intention":{id:"usage-intention",predicate:function(){return!0},setting:d.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:r.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("usageIntentionHeading")},getWidgetDescription:function(){return u("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",predicate:function(e){return"boolean"==typeof a.SG.cacheGet(m)||a.SG.cacheSet(m,!s.m.shouldRedirectToOnboarding(e.masterUser,e.hasPermissions)&&!!(null===(i=e.preferredSubjects)||void 0===i?void 0:i.length),604800),a.SG.cacheGet(m);var i},setting:d.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:r.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.presentations)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:r.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return u(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",predicate:function(e){var i;return!(f["subjects-summary"].predicate(e)||(null===(i=e.curriculums)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:r.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(){return u("selectCurriculumHeading")},getWidgetDescription:function(){return u("selectCurriculumMessage")}},subjects:{id:"subjects",predicate:function(e){return!(f["subjects-summary"].predicate(e)||e.preferredPresentation&&!o[e.preferredPresentation.id])},setting:d.E.HasCompletedOnboardingStepSubjects,analyticsLocation:r.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!f["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return u(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return u("subjectsMessage")}},"select-videos":{id:"select-videos",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:r.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("selectVideosHeading")},getWidgetDescription:function(e){return u(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",predicate:c.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:r.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return u("createPlaylistHeading")},getWidgetDescription:function(){return u("createPlaylistMessage")}}}},46477:(e,i,t)=>{t.d(i,{m:()=>m});var n=t(57900),a=t(75896),r=t(43306),o=t(16714),s=t(64818);function l(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var d="onboarding:persona",c="onboarding:usage:intention",u="onboarding:had:job:title",m={getOnboardingPathway:function(e){var i=e.jobTitle,t=e.userSettings,n=e.presentations,a=e.curriculums,o=e.preferredPresentation,l=e.preferredSubjects,d=e.hasPlaylist,c=e.appLink,u=e.appLinks,g=e.masterUser,f=e.currentUser,v=e.hasPermissions,p=m.getPersona();!p&&i&&m.updatePersona(i),p&&p!==s.l.getPersonaFromJobTitle(i)&&m.updatePersona(i);var y={jobTitle:i,hasPlaylist:d,masterUser:g,presentations:n||[],curriculums:a||[],preferredPresentation:o,preferredSubjects:l,instanceRegion:null==f?void 0:f.instanceRegion,hasPermissions:v},b=m.getCurrentScreen(c,u),h=Object.values(r.H),C={},S=null,I=null,P=0,L=0,_=!0;return h.forEach((function(e){var i;if(e.predicate(y)){I||(I=e.id);var n=function(e,i){var t;return null===(t=null==e?void 0:e[i])||void 0===t?void 0:t.value}(t,e.setting);n||(_=!1),b||n||(b=e.id),P++,C[e.id]={isComplete:n,next:null,previous:S,number:P,includeInProgressBar:!1},e.includeInProgressBar(y)&&(L++,C[e.id].progressBarNumber=L,C[e.id].includeInProgressBar=!0),(null===(i=e.branches)||void 0===i?void 0:i.length)&&e.branches.forEach((function(i){C[i]={next:e.id,previous:e.id,includeInProgressBar:!1}})),S&&(C[S].next=e.id),S=e.id}})),b||_||(b=I),{screens:C,currentScreen:b,totalScreens:P,totalScreensInProgressBar:L,hasCompletedAllSteps:_}},getNextAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.next;return n?i[n]:null},getPreviousAppLink:function(e,i){var t=e.screens[e.currentScreen],n=null==t?void 0:t.previous;return n?i[n]:null},getCurrentScreen:function(e,i){var t=Object.entries(i).find((function(i){return(t=i,n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(t,n)||function(e,i){if(e){if("string"==typeof e)return l(e,i);var t={}.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}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1].action===e.action;var t,n}));return t?a.m.first(t):null},getPersona:function(){return n.SG.get(d)},updatePersona:function(e){var i=s.l.getPersonaFromJobTitle(e);n.SG.set(d,i||"teacher")},getUsageIntention:function(){return n.SG.get(c)},updateUsageIntention:function(e){n.SG.set(c,e)},removeUsageIntention:function(){n.SG.remove(c)},getProgress:function(e){var i,t,n,a=null===(i=e.screens[e.currentScreen])||void 0===i?void 0:i.number,r=null===(t=e.screens[e.currentScreen])||void 0===t?void 0:t.progressBarNumber,o=e.totalScreens,s=e.totalScreensInProgressBar,l=r/s*100,d=(a-1)/o*100;return{showProgressBar:null===(n=e.screens[e.currentScreen])||void 0===n?void 0:n.includeInProgressBar,currentStepNumber:a,currentStepProgressBarNumber:r,totalScreens:o,totalScreensInProgressBar:s,progressBarPercentage:l,overallPercentage:d}},hasNonBdmTrial:function(e){return e(o.C.ViewTrialUpgrade)},getOnboardingScreenStates:function(e){var i=[],t=[];return Object.keys(e.screens).forEach((function(n){e.screens[n].isComplete?i.push(n):t.push(n)})),{completedScreens:i,incompleteScreens:t}},shouldRedirectToOnboarding:function(e,i){var t,a;return(null==e?void 0:e.dateCreated)>="2024-03-26"||!!m.hasNonBdmTrial(i)&&("boolean"!=typeof n.SG.get(u)&&n.SG.set(u,!!(null===(a=null===(t=null==e?void 0:e.userProfile)||void 0===t?void 0:t.metadata)||void 0===a?void 0:a.jobTitle)),!n.SG.get(u))}}},31015:(e,i,t)=>{t.d(i,{u:()=>v});var n,a=t(75896),r=t(110),o=t(43306),s=t(65728),l=t(78479),d=t(42308),c=t(26154),u=t(21366);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function g(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function f(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}var v=(g(g(g(g(g(g(g(g(g(g(n={},d.z.CuratedMedia,{getCustomParams:function(){return{}}}),d.z.PlaylistMedia,{getCustomParams:function(){return{}}}),d.z.SeriesMedia,{getCustomParams:function(e){switch(e){case l.f.ThumbnailFixedListMediaLarge:return{limit:2};case l.f.ThumbnailHeroMedia:case l.f.ThumbnailFeaturedMedia:return{limit:1};default:return{limit:12}}},getCollectionAppLink:function(e,i){var t;return null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.call(e,a.m.first(i))}}),d.z.ClassificationMedia,{getCustomParams:function(){return{}}}),d.z.LatestReleasedVideos,{getCustomParams:function(){return u.S.getLatestReleasedTimeRange()}}),d.z.ContinueWatching,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){var i;return null===(i=null==e?void 0:e.watchHistory)||void 0===i?void 0:i.call(e)}}),d.z.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),d.z.CompanyVideos,{getCustomParams:function(){return{}}}),d.z.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),d.z.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),g(g(g(g(g(g(g(g(g(g(n,d.z.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),d.z.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),d.z.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),d.z.CuratedClassifications,{getCustomParams:function(){return{}}}),d.z.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),d.z.Classifications,{getCustomParams:function(e,i){if(i===c.ku.Discover){if(e===l.f.EditableCoverFixedPillListSmall)return{canBePreferred:!0,isFollowing:!0};if([l.f.PosterSlidingListSmall,l.f.CoverFixedPillListXSmall].includes(e))return{canBePreferred:!0}}return{}}}),d.z.ClassificationLatestReleasedVideos,{getCustomParams:function(){return u.S.getLatestReleasedTimeRange()}}),d.z.SpecialEventClassifications,{getCustomParams:function(){return{from:r.O.format(new Date,"YYYY-MM-DD")}}}),d.z.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),d.z.CuratedSeries,{getCustomParams:function(){return{}}}),g(g(g(g(g(g(g(g(g(g(n,d.z.CuratedPlaylists,{getCustomParams:function(){return{}}}),d.z.Blurb,{getCustomParams:function(){return{}}}),d.z.DynamicBlurb,{getCustomParams:function(e){return e===l.f.OnboardingSteps?{customerSetting:[s.E.HasNewOnboarding],userSettings:[].concat((i=Object.values(o.H).map((function(e){return e.setting})),function(e){if(Array.isArray(e))return f(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,i){if(e){if("string"==typeof e)return f(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,i):void 0}}(i)||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.HasCompletedOnboardingV2,s.E.HasExitedOnboarding])}:{};var i}}),d.z.AuthorReviewer,{getCustomParams:function(){return{}}}),d.z.Faq,{getCustomParams:function(){return{}}}),d.z.CuratedCompanies,{getCustomParams:function(){return{}}}),d.z.Ratings,{getCustomParams:function(){return{}}}),d.z.Presentations,{getCustomParams:function(){return{}}}),d.z.UpcomingLivestreams,{getCustomParams:function(){return{from:r.O.format(new Date,"YYYY-MM-DD")}}}),d.z.CuratedMultimedia,{getCustomParams:function(){return{}}}),g(g(g(g(g(g(n,d.z.ClassificationPlaylists,{getCustomParams:function(){return{}}}),d.z.ClassificationSeries,{getCustomParams:function(){return{}}}),d.z.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),d.z.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),d.z.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),d.z.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}))},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={}))},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.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.ThumbnailVerticalList="thumbnail_vertical_list",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.HeroBanner="hero_banner",e.HeroThumbnailSmall="hero_thumbnail_small",e.HeroBlockColourSmall="hero_block_colour_small",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.HeroBannerSmall="hero_banner_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.OnboardingSteps="onboarding_steps",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.SeriesMedia="series_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.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",e.CompanyClassificationVideos="company_classification_videos",e.ClassificationDashboardMedia="classification_dashboard_media",e.ClassificationDashboardExternalMedia="classification_dashboard_external_media",e.SeasonalClassificationMedia="seasonal_classification_media",e.TrendingClassificationsMedia="trending_classifications_media",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.LatestReleasedClassifications="latest_released_classifications",e.TrendingClassifications="trending_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:()=>r});var n=t(34152);function a(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}function r(){var e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.prevent,o=t.rootMargin,s=t.triggerOnce,l=void 0===s||s,d=(e=(0,n.YD)({triggerOnce:l,rootMargin:o}),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,a,r,o,s=[],l=!0,d=!1;try{if(r=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;l=!1}else for(;!(l=(n=r.call(t)).done)&&(s.push(n.value),s.length!==i);l=!0);}catch(e){d=!0,a=e}finally{try{if(!l&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw a}}return s}}(e,i)||function(e,i){if(e){if("string"==typeof e)return a(e,i);var t={}.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,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=d[0],u=d[1],m=d[2];return!0!==r&&void 0!==window.IntersectionObserver||(u=!0,c=null),{ref:c,inView:u,initialized:!!m}}},26154:(e,i,t)=>{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;t.d(i,{VH:()=>v,R:()=>c,OL:()=>s,NK:()=>l,GL:()=>h.GL,ku:()=>h.ku,Yv:()=>h.Yv,IL:()=>u,Z9:()=>a,l9:()=>m}),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",e[e.Illustration=7]="Illustration"}(a||(a={}));var r,o,s,l,d,c,u=(r={},!0,(o=function(e){var i=function(e,i){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(i)?i:i+""}(o=a.Illustration))in r?Object.defineProperty(r,o,{value:true,enumerable:!0,configurable:!0,writable:!0}):r[o]=true,r);!function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases",e.ClassificationDirectory="classification-directory"}(s||(s={})),function(e){e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(l||(l={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(d||(d={})),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"}(c||(c={}));var m,g,f,v,p,y,b,h=t(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(m||(m={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(g||(g={})),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"}(f||(f={})),function(e){e[e.Classification=0]="Classification",e[e.Livestream=1]="Livestream"}(v||(v={})),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"}(p||(p={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(y||(y={})),function(e){e[e.Audience=0]="Audience",e[e.Topic=1]="Topic",e[e.Curriculum=2]="Curriculum"}(b||(b={}))},75902:(e,i,t)=>{var n,a,r,o;t.d(i,{GL:()=>r,Yv:()=>a,ku:()=>o}),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"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(r||(r={})),function(e){e.Discover="discover",e.Classification="classification",e.ClassificationDirectory="classification-directory",e.ClassificationVideos="classification-videos",e.MoviesAndTv="movies-and-tv",e.Company="company"}(o||(o={}))},21366:(e,i,t)=>{t.d(i,{S:()=>l});var n=t(75896),a=t(110),r=t(31015),o=(t(76881),t(86613),t(42308)),s=t(26154),l={onSelectCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:n.m.addOrRemoveImmutable(i.values.data.objectIds||[],e.id)});i.setFieldValue("data",t),i.setTouched(Object.assign(Object.assign({},i.touched),{data:{objectIds:!0}}))},onRemoveCuratedObject:function(e,i){var t=Object.assign(Object.assign({},i.values.data),{objectIds:i.values.data.objectIds.filter((function(i){return i!==e}))});i.setFieldValue("data",t)},getDashboardTarget:function(e){return e.targetType===s.ku.Discover?"discover:presentation:".concat(e.presentationId):e.targetType===s.ku.Classification?"classification:".concat(e.classificationId):e.targetType===s.ku.ClassificationDirectory?"classification:".concat(e.classificationId,":directory"):e.targetType===s.ku.ClassificationVideos?"classification:".concat(e.classificationId,":videos"):e.targetType===s.ku.MoviesAndTv?"moviesAndTv:presentation:".concat(e.presentationId):e.targetType===s.ku.Company?"company:".concat(e.companyId,":presentation:").concat(e.presentationId):null},getUnknownDashboardTarget:function(e){var i=e.presentationId,t=e.companyId,n=e.targetType,a=e.classificationId;return n===s.ku.Discover?l.getDashboardTarget({targetType:s.ku.Discover,presentationId:i}):n===s.ku.MoviesAndTv?l.getDashboardTarget({targetType:s.ku.MoviesAndTv,presentationId:i}):n===s.ku.Company?l.getDashboardTarget({targetType:s.ku.Company,presentationId:i,companyId:t}):n===s.ku.Classification?l.getDashboardTarget({targetType:s.ku.Classification,classificationId:a}):n===s.ku.ClassificationDirectory?l.getDashboardTarget({targetType:s.ku.ClassificationDirectory,classificationId:a}):n===s.ku.ClassificationVideos?l.getDashboardTarget({targetType:s.ku.ClassificationVideos,classificationId:a}):void 0},getDashboardTargetInfo:function(e){var i,t=l.getDashboardTargetType(e),n=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.split(":");return t===s.ku.Discover?{targetType:s.ku.Discover,presentationId:n[2]}:t===s.ku.Classification?{targetType:s.ku.Classification,classificationId:n[1]}:t===s.ku.ClassificationDirectory?{targetType:s.ku.ClassificationDirectory,classificationId:n[1]}:t===s.ku.ClassificationVideos?{targetType:s.ku.ClassificationVideos,classificationId:n[1]}:t===s.ku.MoviesAndTv?{targetType:s.ku.MoviesAndTv,presentationId:n[2]}:t===s.ku.Company?{targetType:s.ku.Company,companyId:n[1],presentationId:n[3]}:null},getDashboardTargetType:function(e){return(null==e?void 0:e.target)?e.target.startsWith("discover")?s.ku.Discover:e.target.startsWith("classification")?e.target.endsWith("directory")?s.ku.ClassificationDirectory:e.target.endsWith("videos")?s.ku.ClassificationVideos:s.ku.Classification:e.target.startsWith("moviesAndTv")?s.ku.MoviesAndTv:e.target.startsWith("company")?s.ku.Company:null:null},isType:function(e,i){return l.getDashboardTargetType(e)===i},isCuratedDashboard:function(e){var i=e,t=l.getDashboardTargetType(i);return t===s.ku.Discover||t===s.ku.Classification||t===s.ku.ClassificationDirectory||t===s.ku.ClassificationVideos||t===s.ku.MoviesAndTv||t===s.ku.Company},getLatestReleasedTimeRange:function(){var e=new Date;return{from:a.O.format(a.O.endOf(a.O.subtract(e,2,"month"),"day"),"YYYY-MM-DD"),to:a.O.format(a.O.endOf(e,"day"),"YYYY-MM-DD")}},getWidgetParams:function(e,i,t,n){var o={timeOffset:a.O.getTimezoneOffset()};return n&&(o.audienceId=n),Object.assign(Object.assign({},o),r.u[e].getCustomParams(i,t))},isSystemGeneratedDashboard:function(e){var i=new Set([o.z.ClassificationFeaturedVideo,o.z.ClassificationPinnedVideos,o.z.ClassificationPlaylists,o.z.ClassificationSeries]);return null==e?void 0:e.some((function(e){return i.has(e.widgetId)}))},isClassificationDashboard:function(e){return[s.ku.Classification,s.ku.ClassificationDirectory,s.ku.ClassificationVideos].includes(null==e?void 0:e.targetType)}}},45778:(e,i,t)=>{t.d(i,{G:()=>a});var n=t(4594),a={isType:function(e,i){return(null==e?void 0:e.typeId)===i},isResource:function(e){return a.isType(e,n.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},49542:(e,i,t)=>{t.d(i,{d:()=>v});var n,a=t(32735),r=t(75896),o=t(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(n||(n={}));var s,l=t(78479),d=t(42308),c=t(26154),u=t(31015),m=t(4594),g=t(45778);function f(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=Array(i);t<i;t++)n[t]=e[t];return n}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(s||(s={}));var v={getSliderAnalyticsOptions:function(){return{actionType:o.Vw.Click,location:o.LZ.SlidingList,entity:o.py.Widget,descriptor:o._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:o.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:o.Vw.Click,location:o.LZ.SlidingList,entity:o.py.Widget,descriptor:o._S.Title}},useGetContent:function(e,i,t,n){return a.useMemo((function(){var a;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var r,o=null!==(a=null==n?void 0:n.reduce((function(e,i){return e[i.id]=i,e}),{}))&&void 0!==a?a:{},s=function(e){if(Array.isArray(e))return f(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,i){if(e){if("string"==typeof e)return f(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,i):void 0}}(r)||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=s.sort((function(e,i){var t,n,a,r,l=null!==(n=null===(t=o[e.id])||void 0===t?void 0:t.index)&&void 0!==n?n:s.findIndex((function(i){return i.id===e.id})),d=null!==(r=null===(a=o[i.id])||void 0===a?void 0:a.index)&&void 0!==r?r:s.findIndex((function(e){return e.id===i.id}));return l<d?-1:l>d?1:0}));return{content:v.isBelowContentMinimum(l,i)&&!t?[]:l.filter((function(e){var i;return!(null===(i=o[e.id])||void 0===i?void 0:i.hidden)})),unfilteredContent:l}}),[e,n])},isBelowContentMinimum:function(e,i){var t,n=(null===(t=u.u[i])||void 0===t?void 0:t.minContent)||0;return(null==e?void 0:e.length)<n},getCustomAppLink:function(e){var i,t,n,a,r,o;return(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===c.OL.LatestReleases?null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===c.OL.ExploreAllTopics?null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===o?void 0:o.call(r,e.presentation.id):null},getWidgetStatus:function(e){var i=e.status;if("string"==typeof i)switch(i){case s.Archived:i=n.Archived;break;case s.Published:i=n.Published;break;case s.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 d.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 d.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 d.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case d.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===d.z.Blurb},canDisplayOnScreenSize:function(e,i,t){return i!==d.z.Blurb||t!==l.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case d.z.CompanyLatestReleasedVideo:case d.z.CompanyVideos:case d.z.UpcomingLivestreams:return!0;default:return!1}},getVideoContent:function(e){var i=r.m.first(e);return g.G.isType(i,m.E.Series)?i.videos.data:e}}}}]);
|