@clickview/streamable-learning 0.15.1-rc.1 → 0.16.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.
Files changed (24) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/{2215-9a0bd573d8-streamable-learning.chunk.js → 2215-71ae9c9e39-streamable-learning.chunk.js} +2 -2
  4. package/dist/scripts/{3093-dc5701881b-streamable-learning.chunk.js → 3093-c91e44e996-streamable-learning.chunk.js} +1 -1
  5. package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js +2 -0
  6. package/dist/scripts/{487-20924d38f3-streamable-learning.chunk.js → 487-5aafa404c6-streamable-learning.chunk.js} +1 -1
  7. package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js +2 -0
  8. package/dist/scripts/7303-b05c17cd62-streamable-learning.chunk.js +2 -0
  9. package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js +2 -0
  10. package/dist/scripts/{9861-d9334d38b7-streamable-learning.chunk.js → 9861-77231bbf72-streamable-learning.chunk.js} +2 -2
  11. package/dist/scripts/bundle-c9e29b5bcd.min.js +2 -0
  12. package/package.json +1 -1
  13. package/dist/scripts/4018-9c3a893cd9-streamable-learning.chunk.js +0 -2
  14. package/dist/scripts/719-d7e4c6456e-streamable-learning.chunk.js +0 -2
  15. package/dist/scripts/7303-c6d37c3ad8-streamable-learning.chunk.js +0 -2
  16. package/dist/scripts/7694-7fdcc5dc43-streamable-learning.chunk.js +0 -2
  17. package/dist/scripts/bundle-992dd782bb.min.js +0 -2
  18. /package/dist/scripts/{2215-9a0bd573d8-streamable-learning.chunk.js.LICENSE.txt → 2215-71ae9c9e39-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  19. /package/dist/scripts/{4018-9c3a893cd9-streamable-learning.chunk.js.LICENSE.txt → 4018-d20660c121-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  20. /package/dist/scripts/{719-d7e4c6456e-streamable-learning.chunk.js.LICENSE.txt → 719-9c019a490c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  21. /package/dist/scripts/{7303-c6d37c3ad8-streamable-learning.chunk.js.LICENSE.txt → 7303-b05c17cd62-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  22. /package/dist/scripts/{7694-7fdcc5dc43-streamable-learning.chunk.js.LICENSE.txt → 7694-9633b20fb9-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  23. /package/dist/scripts/{9861-d9334d38b7-streamable-learning.chunk.js.LICENSE.txt → 9861-77231bbf72-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  24. /package/dist/scripts/{bundle-992dd782bb.min.js.LICENSE.txt → bundle-c9e29b5bcd.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
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 +1 @@
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(){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}}}}]);
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}}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 719-9c019a490c-streamable-learning.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[719],{63112:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(32735),o=r(86319),i=n.memo((function(e){var t=e.tagClass,r="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(o.Z.partialTag);return n.createElement("div",{className:"mt-1"},n.createElement("span",{className:r}," "))}))},65163:(e,t,r)=>{"use strict";r.d(t,{QL:()=>n.Q,eb:()=>n.e});var n=r(72861);r(14244)},61699:(e,t,r)=>{"use strict";r.d(t,{o:()=>u});var n=r(99940),o=r(97395);function i(e){return function(e){if(Array.isArray(e))return a(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 a(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)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(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=r(62803).v.CLASSIFICATION_COLLECTION,l=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},u={availablePresentations:function(e){return{url:l(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,r,o){return{url:(i=e.id,"/api/domain/v1/subjects/presentations/".concat(i)),key:"set:".concat(t,":presentation"),type:n.k.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentation:".concat(t.toLocaleLowerCase()),"subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences","widgets:v3","content:update:videos","content:updates"],success:r,error:o};var i},allSubjectPreferences:function(){return{url:"/api/domain/v1/subjects/preferences?query=".concat(c,"&type=subject"),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:"/api/domain/v1/subjects/classifications/following?query=".concat(c),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,r,o){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:subjects",data:e,type:n.k.POST,success:t,error:r,always:o,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])}},unfollowSubjects:function(e,t,r,a){return{url:(c=e,o._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:c})),key:"unfollow:subjects",type:n.k.DELETE,success:t,error:r,always:a,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications","content:updates"])};var c},allLevelPreferences:function(){return{url:"/api/domain/v1/subjects/audiences?type=subject",key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:"/api/domain/v1/subjects/audiences/following",key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,r,o){return{url:"/api/domain/v1/subjects/audiences/following",key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){n.find((function(t){return t.masterId===e.masterId}))||n.push(e)})),{"my:level:preferences":n}}},type:n.k.POST,success:t,error:r,always:o}},unfollowLevels:function(e,t,r,a){return{url:(c=e.map((function(e){return e.masterId})),o._.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:c})),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var r,n=null!==(r=t["my:level:preferences"])&&void 0!==r?r:[];return e.forEach((function(e){if(n.find((function(t){return t.masterId===e.masterId}))){var t=n.findIndex((function(t){return t.masterId===e.masterId}));n=[].concat(i(n.slice(0,t)),i(n.slice(t+1)))}})),{"my:level:preferences":n}}},type:n.k.DELETE,success:t,error:r,always:a};var c}}},32397:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VideoGuidanceClassroomGuideView:()=>je});var n=r(32735),o=r(81886),i=r(20354),a=r(28400),c=r(92582),l=r(65858),u=r(42648),s=r(23481),f=r(75896),d=r(72189),p=r(38496),m=r(83345),v=r(85597);const y={curriculumSubject:"i4D3h",curriculumSet:"WCdf9",areaLeafSet:"o8H8s",closeButton:"McsPs",leafDescriptionOnly:"xmEEo"};function h(e){return h="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},h(e)}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(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 w=/(.*)\s\((.*)?\)/i,E="shared.curriculumLinks",k="text-nowrap font-size-normal rounded-pill py-1 px-2 my-0 d-inline-block fw-semibold";function C(e){function t(){var t=k+" bg-white border";return!e.leaf.name&&e.uiContainsCodes?t+" border-secondary text-secondary":t+" border-dark"}var r=n.useRef();return n.useEffect((function(){if(r.current){var t=r.current.getBoundingClientRect().width;e.trySetMaxCodeWidth(t)}}),[r.current]),n.createElement("div",{className:"d-flex"},e.leaf.description?!e.leaf.name&&e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},n.createElement(m.x,{namespace:E,phrase:"noCode"}))),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):e.leaf.name||e.uiContainsCodes?n.createElement(n.Fragment,null,n.createElement("div",{className:"me-1 align-self-start",style:{minWidth:e.codeWidth?"".concat(e.codeWidth,"px"):"auto"}},n.createElement("h5",{ref:r,className:t()},e.leaf.name)),n.createElement("p",{className:"m-0 align-self-center",dangerouslySetInnerHTML:{__html:e.leaf.description}})):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.description}}):n.createElement("p",{className:"m-0",dangerouslySetInnerHTML:{__html:e.leaf.name}}))}function S(e){var t,r,o,i={},a=!1;function c(e){var t="mb-2";return e.name||a?t:t+" ms-4 "+y.leafDescriptionOnly}return e.linkSet.areasAndLeaves.forEach((function(e){var t=e[v.k.Area].map((function(e){return e.name})).join(" - ");i[t]?e[v.k.Leaf].forEach((function(e){i[t].find((function(t){return t.name===e.name}))||(i[t].push(e),e.name&&(a=!0))})):i[t]=e[v.k.Leaf]})),n.createElement(n.Fragment,null,n.createElement("h3",{className:"".concat(k," text-white bg-dark-blue fw-normal me-1 mb-2")},(t=e.linkSet[v.k.Audience].name,r=e.linkSet[v.k.Subject].name,(o=t.match(w))?"".concat(o[1]," • ").concat(o[2]," • ").concat(r):"".concat(t," • ").concat(r))),n.createElement("div",{className:"me-2 ".concat(y.curriculumSubject)},Object.keys(i).map((function(t,r){return n.createElement("div",{key:r,className:y.areaLeafSet},t&&n.createElement("h4",{className:"mb-1 font-size-normal"},t),n.createElement("ul",{className:"list-unstyled"},i[t].map((function(t){return n.createElement("li",{key:t.id,className:c(t)},n.createElement(C,{leaf:t,codeWidth:e.codeWidth,trySetMaxCodeWidth:e.trySetMaxCodeWidth,uiContainsCodes:a}))}))))}))))}function O(e){var t,r,o,i=(r=n.useState(0),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}(r,o)||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.")}()),a=i[0],c=i[1];function l(e){c((function(t){return t>=e?t:e}))}var u=n.useMemo((function(){var t={};return e.curriculumLinks.forEach((function(e){var r=null,n=null,o=[],i=[];e.forEach((function(e){switch(e.type){case v.k.Subject:r=e;break;case v.k.Audience:n=e;break;case v.k.Area:o.push(e);break;case v.k.Leaf:i.push(e)}}));var a="".concat(r.id,":").concat(n.id);t[a]?t[a].areasAndLeaves.push(g(g({},v.k.Area,o),v.k.Leaf,i)):t[a]=g(g(g({},v.k.Subject,r),v.k.Audience,n),"areasAndLeaves",[g(g({},v.k.Area,o),v.k.Leaf,i)])})),t}),[e.curriculumLinks]);return e.curriculumLinks?(null===(t=e.curriculumLinks)||void 0===t?void 0:t.length)?n.createElement("ul",{className:"list-unstyled m-0"},Object.keys(u).map((function(e,t){return n.createElement("li",{key:"linkset-".concat(t),className:y.curriculumSet},n.createElement(S,{linkSet:u[e],trySetMaxCodeWidth:l,codeWidth:a}))}))):n.createElement(p.p,{emptyStateUrl:e.emptyStateUrl}):n.createElement(d.Z,null)}var j=r(11607),x=r(54610),L=r(67453),P=r(90125),I=s.T.encloseNamespace("shared.curriculumLinks");function T(e){var t,r=e.data;return n.createElement(j.L,{key:r.id,className:"p-1 pe-2 rounded-pill d-inline-flex align-items-center cursor-pointer ".concat(P.Z.tag," ").concat(e.selected?P.Z.selected:""),onClick:function(){return e.onChangeCurriculum(r.id.toString())},"aria-label":"".concat(I("ariaFilter")," ").concat(r.name)},(null===(t=r.cover)||void 0===t?void 0:t.url)&&n.createElement("div",{className:"bg-white ".concat(P.Z.cover," rounded-circle border")},n.createElement("img",{src:L.j.createUrl(r.cover.url,{size:x.h2.Small}),alt:r.name,className:"rounded-circle"})),n.createElement("div",{className:"ms-2"},r.name))}var A=r(63112),N=r(65163);function _(e){var t,r,o;return n.createElement(N.eb,{collection:(null===(t=e.selectedCurriculum)||void 0===t?void 0:t.id)?e.curriculums.nonEmptyCurriculums:null,childClassName:"flex-shrink-0",childComponent:function(t){var r,o;return n.createElement(T,Object.assign({},t,{selected:(null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString())===t.data.id.toString(),onChangeCurriculum:e.onChangeCurriculum}))},partialLoadingComponent:function(){return n.createElement(A.o,null)},widgetDataDeps:[null===(o=null===(r=e.selectedCurriculum)||void 0===r?void 0:r.id)||void 0===o?void 0:o.toString(),e.onChangeCurriculum],noNegativePadding:e.noNegativePadding})}var V=r(59087),D=r.n(V),R=r(93264),M=r(16367),U=r(34468),G=r(73758);const H={learningIntention:"MHM6O",highlightPoi:"U7Q6x",icon:"H1xbT"};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 B=/\[\]\(cv:\/\/poi\?id=\d+\)\n*/g;const z={poiEntry:"vr6R9",poiText:"znHZF",public:"v0BZ9",poiTimeStamp:"AdKwe",wideBadge:"YR2Hh"};function W(e){var t=R.T.ToDisplayDuration(1e3*e.poi.startTime),r=function(e,t){var r=(0,n.useRef)();function o(){e&&G.n.trigger("glance:poi:mouseover",e)}function i(){G.n.trigger("glance:poi:mouseleave")}return(0,U.R)("player:poi:mouseover",(function(t){var n,o,i;(null==t?void 0:t.id)&&(null===(n=null==e?void 0:e.id)||void 0===n?void 0:n.toString())===(null===(o=null==t?void 0:t.id)||void 0===o?void 0:o.toString())&&(null===(i=r.current)||void 0===i||i.classList.add(H.highlightPoi))}),null,t),(0,U.R)("player:poi:mouseleave",(function(){var e;null===(e=r.current)||void 0===e||e.classList.remove(H.highlightPoi)}),null,t),(0,n.useEffect)((function(){var e,n;if(r.current&&t)return null===(e=r.current)||void 0===e||e.addEventListener("mouseover",o),null===(n=r.current)||void 0===n||n.addEventListener("mouseleave",i),function(){var e,t;null===(e=r.current)||void 0===e||e.removeEventListener("mouseover",o),null===(t=r.current)||void 0===t||t.removeEventListener("mouseleave",i)}}),[r.current]),r}(e.poi,!e.suppressInteractivity);return e.suppressInteractivity?n.createElement("div",{className:"d-flex ".concat(z.poiEntry," mb-2")},n.createElement("span",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"".concat(z.public," ms-2")},e.poi.description)):n.createElement(j.L,{key:e.poi.startTime,className:"d-flex ".concat(z.poiEntry," mb-2 cursor-pointer"),onClick:function(){return e.onClickPoiItem(e.poi.startTime)},ref:r},n.createElement("div",{className:"d-flex rounded-pill justify-content-center align-items-center fw-semibold text-info bg-light-blue ".concat(z.poiTimeStamp," ").concat(e.wideBadge?z.wideBadge:"")},t),n.createElement("div",{className:"ms-2 ".concat(z.poiText)},e.poi.description))}var Z="shared.pointsOfInterestList";function $(e){var t=e.pointsOfInterest.sort((function(e,t){return e.startTime-t.startTime})),r=t.some((function(e){return e.startTime>=3600}));return n.createElement("div",null,n.createElement("h2",{className:"h6 my-2"},n.createElement(m.x,{namespace:Z,phrase:"heading"})),n.createElement("div",null,t.map((function(t){return n.createElement(W,{key:t.startTime,poi:t,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:e.onClickPoiItem,wideBadge:r})}))))}var Q=r(83914),K=r(87311),Y=r(91743),q=r(64444),X=r(44829),J=r(35223),ee=r(40370);function te(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 re="shared.videoAtAGlanceV2",ne=s.T.encloseNamespace(re),oe=365;function ie(e){return e.hideScrollbar?n.createElement(n.Fragment,null,e.children):n.createElement("div",{className:"rounded border mb-4 bg-white"},n.createElement(u.ZP,{autoHeight:!0,autoHeightMax:oe},n.createElement("div",{className:"px-3 px-3 pt-3 pb-2"},e.children)))}function ae(e){var t,r,o,i=function(e,t){var r,o,i,a=(o=(0,n.useState)(""),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(o,i)||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}}(o,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=a[0],l=a[1];return(0,n.useEffect)((function(){if(t){var r=(n=e.glance,o=n.content.replace(B,""),M(o));l(r)}var n,o}),[null===(r=e.glance)||void 0===r?void 0:r.content,t]),c}(e.video,e.canViewGlance),a=(r=n.useState(""),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return te(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)?te(e,t):void 0}}(r,o)||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=a[0],s=a[1],f=function(){var t,r,n,o;return ee.M.isInteractive(e.video)||!(null===(r=null===(t=e.video.tags)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)?null:null===(o=null===(n=e.video.tags)||void 0===n?void 0:n.data)||void 0===o?void 0:o.filter((function(e){return e.tagType===X.Q.Pedagogy||e.tagType===X.Q.Skill}))}(),d=n.useRef(null);return n.useEffect((function(){var e;(null===(e=d.current)||void 0===e?void 0:e.innerText)&&s(d.current.innerText)}),[null===(t=d.current)||void 0===t?void 0:t.innerText]),e.canViewGlance?n.createElement("section",{className:"play-page-section"},n.createElement(ie,{hideScrollbar:e.hideScrollbar},n.createElement("h2",{className:"h6 mb-2"},n.createElement(m.x,{namespace:re,phrase:"learningIntention"})),n.createElement("div",{className:"mb-3 ".concat(H.learningIntention)},n.createElement(q.u,{title:ne("copy"),spanHack:!0,spanHackClassName:H.icon},n.createElement(D(),{text:u},n.createElement(Q.x,{className:"svg-container me-1 cursor-pointer",svgName:J.vn.Copy,size:Q.S.Small,onClick:function(){var t={id:e.video.glance.id,name:e.video.glance.name,videoId:e.video.id,videoName:e.video.name,learningIntention:u},r={actionType:l.Vw.Copy,entity:l.py.Glance,location:l.LZ.PlayPage};c.k.logUserAction(t,r)}}))),n.createElement("div",{dangerouslySetInnerHTML:{__html:i},className:"d-inline",ref:d})),!!(null==f?void 0:f.length)&&n.createElement("div",{className:"mb-1"},n.createElement(Y.P,Object.assign({tags:f},K.G.getTagActionProps(e.getTagAppLink,e.onClickTag,e.suppressInteractivity),{className:"mt-2"}))),!!e.pointsOfInterest.length&&n.createElement($,{pointsOfInterest:e.pointsOfInterest,suppressInteractivity:e.suppressInteractivity,onClickPoiItem:function(t){e.setStartTime(t)}}))):n.createElement(n.Fragment,null)}var ce=r(58960),le=r(13876),ue=r(69883);function se(e){return se="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},se(e)}function fe(){fe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new I(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",m="executing",v="completed",y={};function h(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(T([])));k&&k!==r&&n.call(k,a)&&(w=k);var C=b.prototype=h.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==se(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=d;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=x(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function x(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function L(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 I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(se(t)+" is not iterable")}return g.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,I.prototype={constructor:I,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 r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function de(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 pe=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function c(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}l((n=n.apply(e,t||[])).next())}))},me=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 o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ve="shared.videoGuidanceClassroomGuidePopup",ye=350;function he(e){var t,r,i,a,p,v,y,h=(v=n.useState(),y=2,function(e){if(Array.isArray(e))return e}(v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(v,y)||function(e,t){if(e){if("string"==typeof e)return de(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)?de(e,t):void 0}}(v,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],b=h[1],w=(0,ue.Z)();n.useEffect((function(){if(!e.isLoading&&e.curriculums&&!g){var t=e.curriculums.activeCurriculum?e.curriculums.activeCurriculum:f.m.first(e.curriculums.availableCurriculums);b(t)}}),[e.isLoading,null===(r=null===(t=e.curriculums)||void 0===t?void 0:t.activeCurriculum)||void 0===r?void 0:r.id]);var E=e.canViewCurriculumLinks&&(null===(i=e.curriculums)||void 0===i?void 0:i.customerHasCurriculumLinks);return n.createElement(ce.G,{closePopup:e.onClickClose,showLoadingSpinner:e.isLoading,title:s.T.getPhrase(ve,"classroomGuide"),size:"lg"},!e.isLoading&&n.createElement(n.Fragment,null,n.createElement(u.ZP,{autoHeightMax:ye,autoHeightMin:ye,autoHeight:!0,className:"pb-3",renderThumbVertical:function(e){var t=e.style,r=me(e,["style"]);return n.createElement("div",Object.assign({},r,{style:Object.assign(Object.assign({},t),{borderRadius:"inherit",backgroundColor:"rgba(0, 0, 0, 0.2)",zIndex:5}),className:"thumb-vertical"}))}},n.createElement("div",{className:E?"mb-4":""},n.createElement(ae,{video:e.video,pointsOfInterest:e.pointsOfInterest,setStartTime:function(t){o.Q.C$.trigger(e.getVideoAppLink(e.video,{t})),e.closePopup()},getTagAppLink:e.getTagAppLink,suppressInteractivity:e.canViewPublicLayout,onClickTag:e.closePopup,canViewGlance:e.canViewGlance,hideScrollbar:!0})),E&&n.createElement(n.Fragment,null,n.createElement("h2",{className:"h6"},n.createElement(m.x,{namespace:ve,phrase:"curriculumLinks"})),n.createElement("div",{className:"mb-2"},n.createElement(_,{curriculums:e.curriculums,selectedCurriculum:g,onChangeCurriculum:function(t){var r,n,o;return pe(this,void 0,void 0,fe().mark((function i(){var a;return fe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(null==(a=e.curriculums.availableCurriculums.find((function(e){return e.id.toString()===t})))?void 0:a.id){i.next=3;break}return i.abrupt("return",!1);case 3:if((null===(n=null===(r=e.curriculums.activeCurriculum)||void 0===r?void 0:r.id)||void 0===n?void 0:n.toString())!==(null===(o=null==a?void 0:a.id)||void 0===o?void 0:o.toString())){i.next=5;break}return i.abrupt("return",!1);case 5:return b(a),i.prev=6,i.next=9,e.curriculums.updateCurriculum(a);case 9:c.k.logUserAction({id:a.id,name:a.id,description:a.description,videoId:e.video.id,videoName:e.video.name},{entity:l.py.Presentation,actionType:l.Vw.Select,descriptor:l.kD.Curriculum,location:l.LZ.ClassroomGuidancePopup}),i.next=16;break;case 12:i.prev=12,i.t0=i.catch(6),b(g),w.error(s.T.getPhrase(ve,"updateCurriculumFailed"));case 16:case"end":return i.stop()}}),i,null,[[6,12]])})))},noNegativePadding:!0})),(null===(a=e.curriculums)||void 0===a?void 0:a.hasLoaded)?n.createElement(O,{curriculumLinks:null===(p=e.curriculums)||void 0===p?void 0:p.curriculumLinks,emptyStateUrl:e.curriculumLinksEmptyStateUrl}):n.createElement(d.Z,null))),n.createElement(le.u,null,n.createElement(le.u.Cancel,{onClick:e.onClickClose,text:s.T.getPhrase(ve,"close")}),n.createElement(le.u.Submit,{text:s.T.getPhrase(ve,"viewVideo"),variant:"dark",onClick:e.onClickViewVideo}))))}var ge=r(31949),be=r(11565),we=r(99742),Ee=r(96359),ke=r(41135),Ce=r(65751),Se=r(89758),Oe=r(50933);function je(e){var t,r=i.a.useBasicFetch(be.R.video(e.id)),u=(0,Oe.l)(e.id),s=(0,Se.M)(e.id,!0),f=i.a.useBasicFetch(ge.N.currentUser());return n.createElement(he,{isLoading:!r.hasCompleted||!u.hasCompleted,video:r.data,pointsOfInterest:u.items,curriculums:s,onClickClose:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.Close}),e.closePopup()},onClickViewVideo:function(){c.k.logUserAction({id:r.data.id,name:r.data.name},{entity:l.py.Video,location:l.LZ.ClassroomGuidancePopup,actionType:l.Vw.Click,descriptor:l.od.ViewVideo}),o.Q.C$.trigger({application:ke.O.VIDEOS,action:Ee.e.Videos.PLAY_VIDEO,args:[r.data.id,a.m.slugify(r.data.name)]}),e.closePopup()},curriculumLinksEmptyStateUrl:we.W.EmptyStates.CURRICULUM_LINKS,getVideoAppLink:Ce.y.videoType,getTagAppLink:Ce.y.tag,canViewCurriculumLinks:!0,canViewPublicLayout:!(null===(t=f.data)||void 0===t?void 0:t.isAuthenticated),canViewGlance:!0,closePopup:e.closePopup})}},91969:(e,t,r)=>{"use strict";var n=r(47033),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,i,a,c,l,u,s=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),c=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return s}},44818:(e,t,r)=>{"use strict";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)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(r(32735)),i=c(r(91969)),a=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,r,c,l,v=(c=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(c);if(l){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function y(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(d(e=v.call.apply(v,[this].concat(r))),"onClick",(function(t){var r=e.props,n=r.text,a=r.onCopy,c=r.children,l=r.options,u=o.default.Children.only(c),s=(0,i.default)(n,l);a&&a(n,s),u&&u.props&&"function"==typeof u.props.onClick&&u.props.onClick(t)})),e}return t=y,(r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,a),n=o.default.Children.only(t);return o.default.cloneElement(n,u(u({},r),{},{onClick:this.onClick}))}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.default.PureComponent);t.CopyToClipboard=v,m(v,"defaultProps",{onCopy:void 0,options:void 0})},59087:(e,t,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},47033:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},34152:(e,t,r)=>{"use strict";r.d(t,{YD:()=>u});var n=r(32735),o=(Object.defineProperty,new Map),i=new WeakMap,a=0,c=void 0;function l(e,t,r={},n=c){if(void 0===window.IntersectionObserver&&void 0!==n){const o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:l,observer:u,elements:s}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(i.has(r)||(a+=1,i.set(r,a.toString())),i.get(r)):"0"):e[t]}`;var r})).toString()}(e);let r=o.get(t);if(!r){const n=new Map;let i;const a=new IntersectionObserver((t=>{t.forEach((t=>{var r;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=n.get(t.target))||r.forEach((e=>{e(o,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:n},o.set(t,r)}return r}(r),f=s.get(e)||[];return s.has(e)||s.set(e,f),f.push(t),u.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(s.delete(e),u.unobserve(e)),0===s.size&&(u.disconnect(),o.delete(l))}}function u({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:c,initialInView:u,fallbackInView:s,onChange:f}={}){var d;const[p,m]=n.useState(null),v=n.useRef(),[y,h]=n.useState({inView:!!u,entry:void 0});v.current=f,n.useEffect((()=>{if(c||!p)return;let n;return n=l(p,((e,t)=>{h({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:i,rootMargin:o,threshold:e,trackVisibility:r,delay:t},s),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,p,i,o,a,c,r,s,t]);const g=null==(d=y.entry)?void 0:d.target,b=n.useRef();p||!g||a||c||b.current===g||(b.current=g,h({inView:!!u,entry:void 0}));const w=[m,y.inView,y.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}n.Component}}]);