@clickview/streamable-learning 0.32.1 → 0.34.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 (64) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{999-streamable-learning-6ffd6ea55a.chunk.css → 5003-streamable-learning-b38d2ddbbe.chunk.css} +2 -3
  3. package/dist/css/{streamable-learning-ff2b622d70.css → streamable-learning-dd0c1095d5.css} +2 -1
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/1269-2d0b903343-streamable-learning.chunk.js +2 -0
  6. package/dist/scripts/2676-c842ec7e8d-streamable-learning.chunk.js +2 -0
  7. package/dist/scripts/{3057-4310511056-streamable-learning.chunk.js → 3057-731a8ca978-streamable-learning.chunk.js} +1 -1
  8. package/dist/scripts/{3186-9ded9c4ee8-streamable-learning.chunk.js → 3186-d1a6ccffde-streamable-learning.chunk.js} +1 -1
  9. package/dist/scripts/3322-33c015dec9-streamable-learning.chunk.js +1 -0
  10. package/dist/scripts/3838-4a38f33dc2-streamable-learning.chunk.js +1 -0
  11. package/dist/scripts/{4254-f3f34acc63-streamable-learning.chunk.js → 4254-ef581b8105-streamable-learning.chunk.js} +1 -1
  12. package/dist/scripts/4607-36e8f52a55-streamable-learning.chunk.js +2 -0
  13. package/dist/scripts/{4772-6540b98896-streamable-learning.chunk.js → 4772-3cb280f959-streamable-learning.chunk.js} +1 -1
  14. package/dist/scripts/4951-df701c6a8d-streamable-learning.chunk.js +1 -0
  15. package/dist/scripts/5003-c23dd99aad-streamable-learning.chunk.js +2 -0
  16. package/dist/scripts/{6017-1630c158c2-streamable-learning.chunk.js → 6017-5bd6f9bf7a-streamable-learning.chunk.js} +1 -1
  17. package/dist/scripts/{6979-6fffeca793-streamable-learning.chunk.js → 6979-ef9a3931a2-streamable-learning.chunk.js} +2 -2
  18. package/dist/scripts/7347-e2b82be015-streamable-learning.chunk.js +1 -0
  19. package/dist/scripts/7570-cd4f70ff52-streamable-learning.chunk.js +2 -0
  20. package/dist/scripts/8496-1b2519f9fd-streamable-learning.chunk.js +2 -0
  21. package/dist/scripts/8601-37783cf18b-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/8819-2a50dd6a9b-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/9390-0f988af378-streamable-learning.chunk.js +1 -0
  24. package/dist/scripts/{9766-19226a0faa-streamable-learning.chunk.js → 9766-7c34cab592-streamable-learning.chunk.js} +2 -2
  25. package/dist/scripts/{9842-9643a38d47-streamable-learning.chunk.js → 9842-3add7f20d0-streamable-learning.chunk.js} +1 -1
  26. package/dist/scripts/{9899-71bc5a6f02-streamable-learning.chunk.js → 9899-ca1a1a08c4-streamable-learning.chunk.js} +1 -1
  27. package/dist/scripts/bundle-91983aeacb.min.js +2 -0
  28. package/package.json +1 -1
  29. package/dist/scripts/2676-2e8a501091-streamable-learning.chunk.js +0 -2
  30. package/dist/scripts/3322-7380367b8e-streamable-learning.chunk.js +0 -1
  31. package/dist/scripts/3838-3bccb5f2a8-streamable-learning.chunk.js +0 -1
  32. package/dist/scripts/4951-4fadd0a4e3-streamable-learning.chunk.js +0 -1
  33. package/dist/scripts/5155-404cbf5d81-streamable-learning.chunk.js +0 -1
  34. package/dist/scripts/5212-da42d2c902-streamable-learning.chunk.js +0 -2
  35. package/dist/scripts/6856-012ec61ca6-streamable-learning.chunk.js +0 -2
  36. package/dist/scripts/7347-d429c9be75-streamable-learning.chunk.js +0 -1
  37. package/dist/scripts/7570-f9114ba9ef-streamable-learning.chunk.js +0 -2
  38. package/dist/scripts/8496-6c749f822b-streamable-learning.chunk.js +0 -2
  39. package/dist/scripts/8601-0bc0d3340c-streamable-learning.chunk.js +0 -1
  40. package/dist/scripts/8946-9b41fa1dee-streamable-learning.chunk.js +0 -1
  41. package/dist/scripts/9390-e6641286fe-streamable-learning.chunk.js +0 -1
  42. package/dist/scripts/999-c0994e758e-streamable-learning.chunk.js +0 -2
  43. package/dist/scripts/bundle-43c662686f.min.js +0 -2
  44. package/dist/css/{6856-streamable-learning-a12c4ebc99.chunk.css → 1269-streamable-learning-a12c4ebc99.chunk.css} +0 -0
  45. package/dist/css/{5212-streamable-learning-266b0b5d0b.chunk.css → 4607-streamable-learning-2605302fc2.chunk.css} +1 -1
  46. /package/dist/scripts/{103-045fbeec6b-streamable-learning.chunk.js → 103-aceced8961-streamable-learning.chunk.js} +0 -0
  47. /package/dist/scripts/{2676-2e8a501091-streamable-learning.chunk.js.LICENSE.txt → 1269-2d0b903343-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  48. /package/dist/scripts/{1457-836d537d71-streamable-learning.chunk.js → 1457-899f40d09a-streamable-learning.chunk.js} +0 -0
  49. /package/dist/scripts/{2334-98962067f5-streamable-learning.chunk.js → 2334-00b028191d-streamable-learning.chunk.js} +0 -0
  50. /package/dist/scripts/{4772-6540b98896-streamable-learning.chunk.js.LICENSE.txt → 2676-c842ec7e8d-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  51. /package/dist/scripts/{5212-da42d2c902-streamable-learning.chunk.js.LICENSE.txt → 4607-36e8f52a55-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  52. /package/dist/scripts/{6017-1630c158c2-streamable-learning.chunk.js.LICENSE.txt → 4772-3cb280f959-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{6856-012ec61ca6-streamable-learning.chunk.js.LICENSE.txt → 5003-c23dd99aad-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  54. /package/dist/scripts/{5088-2297cf88f0-streamable-learning.chunk.js → 5088-2e09e1ba6e-streamable-learning.chunk.js} +0 -0
  55. /package/dist/scripts/{5565-9f5fa3e04b-streamable-learning.chunk.js → 5565-224d86dc1b-streamable-learning.chunk.js} +0 -0
  56. /package/dist/scripts/{6979-6fffeca793-streamable-learning.chunk.js.LICENSE.txt → 6017-5bd6f9bf7a-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  57. /package/dist/scripts/{7570-f9114ba9ef-streamable-learning.chunk.js.LICENSE.txt → 6979-ef9a3931a2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  58. /package/dist/scripts/{7317-6d501d1b82-streamable-learning.chunk.js → 7317-6b7186c85d-streamable-learning.chunk.js} +0 -0
  59. /package/dist/scripts/{8496-6c749f822b-streamable-learning.chunk.js.LICENSE.txt → 7570-cd4f70ff52-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  60. /package/dist/scripts/{8058-995937c0ad-streamable-learning.chunk.js → 8058-5333f0f01b-streamable-learning.chunk.js} +0 -0
  61. /package/dist/scripts/{9766-19226a0faa-streamable-learning.chunk.js.LICENSE.txt → 8496-1b2519f9fd-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  62. /package/dist/scripts/{9899-71bc5a6f02-streamable-learning.chunk.js.LICENSE.txt → 9766-7c34cab592-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  63. /package/dist/scripts/{999-c0994e758e-streamable-learning.chunk.js.LICENSE.txt → 9899-ca1a1a08c4-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  64. /package/dist/scripts/{bundle-43c662686f.min.js.LICENSE.txt → bundle-91983aeacb.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/streamable-learning",
3
- "version": "0.32.1",
3
+ "version": "0.34.0",
4
4
  "description": "Streamable Learning",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "scripts": {
@@ -1,2 +0,0 @@
1
- /*! For license information please see 2676-2e8a501091-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2676],{92676:(t,e,n)=>{n.r(e),n.d(e,{BrazeClientService:()=>g,BrazeNewIamEvent:()=>b});var r=n(63093),i=n(81886),o=n(72688),a=n(99504),u=n(52003),s=n(60735);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var s=r&&r.prototype instanceof u?r:u,l=Object.create(s.prototype);return f(l,"_invoke",function(n,r,i){var o,u,s,l=0,c=i||[],f=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,n){return o=e,u=0,s=t,p.n=n,a}};function v(n,r){for(u=n,s=r,e=0;!f&&l&&!i&&e<c.length;e++){var i,o=c[e],v=p.p,h=o[2];n>3?(i=h===r)&&(s=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=v&&((i=n<2&&v<o[1])?(u=0,p.v=r,p.n=o[1]):v<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,p.n=h,u=0))}if(i||n>1)return a;throw f=!0,r}return function(i,c,h){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&v(c,h),u=c,s=h;(e=u<2?t:s)||!f;){o||(u?u<3?(u>1&&(p.n=-1),v(u,s)):p.n=s:p.v=s);try{if(l=2,o){if(u||(i="next"),e=o[i]){if(!(e=e.call(o,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,u<2&&(u=0)}else 1===u&&(e=o.return)&&e.call(o),u<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((e=(f=p.n<0)?s:n.call(r,p))!==a)break}catch(e){o=t,u=1,s=e}finally{l=1}}return{value:e,done:f}}}(n,i,o),!0),l}var a={};function u(){}function s(){}function l(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(f(e={},r,function(){return this}),e),v=l.prototype=u.prototype=Object.create(p);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,f(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=l,f(v,"constructor",l),f(l,"constructor",s),s.displayName="GeneratorFunction",f(l,i,"GeneratorFunction"),f(v),f(v,i,"Generator"),f(v,r,function(){return this}),f(v,"toString",function(){return"[object Generator]"}),(c=function(){return{w:o,m:h}})()}function f(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}f=function(t,e,n,r){if(e)i?i(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n;else{var o=function(e,n){f(t,e,function(t){return this._invoke(e,n,t)})};o("next",0),o("throw",1),o("return",2)}},f(t,e,n,r)}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,v(r.key),r)}}function v(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var b="braze:new:iam",g=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=y(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(i=[{key:"name",get:function(){return s.D.BrazeClient}},{key:"channelName",get:function(){return u.Q4.BRAZE}},{key:"clientInstance",get:function(){if(this.ready)return this.brazeClient}},{key:"initialize",value:function(){var t,e;(null===(t=this.options.eventOptions)||void 0===t?void 0:t.logUtmParameters)&&(this.utmParameters=a.F.getUtmParameters()),(null===(e=this.options.eventOptions)||void 0===e?void 0:e.logAttributionData)&&(this.attributionData=o.N.getDecodedAttributionData()),this.setup()}},{key:"isReady",get:function(){return this.ready&&this.options.client.shouldInitialize}},{key:"setup",value:function(){var t,e=this,n=this.options.context;if(this.iamQueue=[],this.brazeClient=new r.BrazeClient({apiOptions:this.getInstanceOptions(),allowAnonymous:!1,shouldInitialize:this.options.client.shouldInitialize,subscriptions:{subscribeToInAppMessage:function(t){return e.subscribeToInAppMessage(t)}}}),n.user.isAuthenticated&&this.options.client.shouldInitialize){var i=this.getBrazeUser(n.user);(null===(t=this.options.geoLocation)||void 0===t?void 0:t.countryCode)&&(i.country=this.options.geoLocation.countryCode),this.setUser(i)}this.ready=!0}},{key:"setUser",value:function(t){this.brazeClient.setUser(t)}},{key:"setUserInit",value:function(t){this.brazeClient.setUserInit(t)}},{key:"getBrazeUser",value:function(t){return{email:t.email,firstName:t.givenName,lastName:t.familyName,custom:{masterId:t.id}}}},{key:"getInstanceOptions",value:function(){return{productName:this.options.client.productName,productVersion:this.options.client.version,apiKey:this.options.client.apiKey,baseUrl:this.options.client.baseUrl,enableLogging:!1,automaticallyShowInAppMessages:!1,allowUserSuppliedJavascript:!0}}},{key:"subscribeToInAppMessage",value:function(t){var e,n;if((null===(n=null===(e=this.options)||void 0===e?void 0:e.subscriptions)||void 0===n?void 0:n.inAppMessage)&&!t.isControl){var r=this.getChannel();this.iamQueue.push(t),r.trigger(b)}}},{key:"getContentCards",value:function(){var t,e,n,r,i;return e=this,n=void 0,r=void 0,i=c().m(function e(){return c().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,null===(t=this.brazeClient.card)||void 0===t?void 0:t.getContentCards();case 1:return e.a(2,e.v)}},e,this)}),new(r||(r=Promise))(function(t,o){function a(t){try{s(i.next(t))}catch(t){o(t)}}function u(t){try{s(i.throw(t))}catch(t){o(t)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r(function(t){t(n)})).then(a,u)}s((i=i.apply(e,n||[])).next())})}},{key:"logContentCardDismissal",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logDismissal(t)}},{key:"logContentCardClick",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logClick(t)}},{key:"logContentCardImpressions",value:function(t){var e;return null===(e=this.brazeClient.card)||void 0===e?void 0:e.logImpressions(t)}},{key:"logFormEvent",value:function(t){var e=this.hydrateAdditionalData(t);this.brazeClient.event.logForm(e)}},{key:"logAnalyticsEvent",value:function(t){var e=this.hydrateAdditionalData(t);this.brazeClient.event.logAnalytics(e)}},{key:"logEvent",value:function(t){var e=this.hydrateAdditionalData(t);return this.brazeClient.event.log(e)}},{key:"showInAppMessage",value:function(t,e,n){return this.brazeClient.bam.show(t,e,n)}},{key:"handleInAppMessages",value:function(t){if(this.iamQueue.length)for(;this.iamQueue.length;){var e=this.iamQueue.pop();if(!e)return;t(e)}}},{key:"hydrateAdditionalData",value:function(t){var e,n,r=t.additionalData||{};return this.utmParameters&&(r.utms=this.utmParameters),(null===(e=this.attributionData)||void 0===e?void 0:e.originalReferrer)&&(r.original_referrer=this.attributionData.originalReferrer),(null===(n=this.attributionData)||void 0===n?void 0:n.internalReferrer)&&(r.internal_referrer=this.attributionData.internalReferrer),Object.assign(Object.assign({},t),{additionalData:r})}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.t6)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3322],{1809:(e,a,t)=>{t.d(a,{S:()=>s});var n=t(32735),i=t(68050),r=t(69111),c=t(9977),o=t(79967);const l={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return n.createElement(n.Fragment,null,Array(e.numVideos).fill(null).map(function(a,t){return n.createElement("div",{className:"d-flex",key:t},e.allowBulkActions&&n.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),n.createElement(d,Object.assign({},e)))}))}function d(e){var a=(0,o.k)(),t="sm"===c.O.getSize(a,"md"),s=e.withReordering&&!a.xs;return n.createElement(i.Z,{className:"".concat(t?"":"py-2"," flex-grow-1")},n.createElement(r.Z,Object.assign({},c.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(t?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),n.createElement(i.Z,null,!!s&&n.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},n.createElement("div",{className:"partial-loading-background ".concat(l.partialDragHandle)})),n.createElement(r.Z,{xs:c.O.getThumbnailColSize(s)},n.createElement("div",{className:"partial-loading-background ".concat(t?"rounded":"rounded-3"," ").concat(l.partialThumbnail)})))),n.createElement(r.Z,Object.assign({},c.O.getDetailsColumns(),{className:t?"pb-2":"px-2"}),n.createElement("div",{className:"partial-loading-background mb-1 ".concat(l.partialName)}),n.createElement("div",{className:"partial-loading-background ".concat(l.partialDescription)})))}s.defaultProps={numVideos:15}},80889:(e,a,t)=>{t.d(a,{_:()=>b});var n=t(99940),i=t(97395),r=t(75896),c=t(1048),o=t(49542),l=t(55171),s=t(78479),d=t(45778);function u(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,a){if(e){if("string"==typeof e)return m(e,a);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)?m(e,a):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 m(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var g=new Set([].concat(u(Object.values(l.e.Classifications.Twig.EnglandSecondary)),u(Object.values(l.e.Classifications.Twig.InternationalSecondary)),u(Object.values(l.e.Classifications.Twig.ScotlandSecondary)),u(Object.values(l.e.Classifications.Twig.NewZealandSecondary)))),f=new Set([].concat(u(Object.values(l.e.Classifications.Tigtag.EnglandPrimary)),u(Object.values(l.e.Classifications.Tigtag.InternationalPrimary)),u(Object.values(l.e.Classifications.Tigtag.ScotlandPrimary)),u(Object.values(l.e.Classifications.Tigtag.NewZealandPrimary))));function v(e){return Object.keys(e).map(function(a){return e[a]}).join(":")}function p(e){return v(c.t.pick(e,["audienceId"]))}var b={classificationDashboard:function(e,a,t,n){var c={target:"classification:".concat(e),status:t,userType:a};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:"classification:dashboard:".concat(e,":").concat(a,":").concat(n,":").concat(null==t?void 0:t.join(":")),formatData:function(e){var a;return n?null===(a=e.data)||void 0===a?void 0:a.find(function(e){return e.id.toString()===n.toString()}):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),a),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),a),key:"widget:".concat(e,":").concat(v(a)),formatData:function(e){var a=o.d.formatResponseData(e,n);if(!r.hideTigTag&&!r.hideTwig)return a;if(Array.isArray(a.content)){var t=a.content.filter(function(e){return!(d.G.isClassification(e)&&(f.has(e.id)?r.hideTigTag:g.has(e.id)&&r.hideTwig))});a.content=t}return a},normalizeOptions:{namespace:p(a)},normalize:t!==s.f.EditableCoverFixedPillListSmall}},getDashboard:function(e,a,t,n,c,o){var l={target:t,status:a,userType:e};(null==n?void 0:n.length)&&(l["widgets.curriculum"]=n);var s="dashboard:".concat(t,":").concat(e,":").concat(c,":").concat(a.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",l),publicUrl:i._.urlBuilder("/api/discover/dashboards",l),key:s,formatData:function(e){var a;return c?null===(a=e.data)||void 0===a?void 0:a.find(function(e){return e.id.toString()===c.toString()}):r.m.first(e.data)},success:o}},updateWidgetPreferences:function(e,a,t){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:n.k.PUT,data:{userId:t.id,customerId:t.customerId,metadata:a}}}}},7068:(e,a,t)=>{t.r(a),t.d(a,{DashboardWidgetView:()=>h});var n=t(32735),i=t(20354),r=t(87347),c=t(51365),o=t(25925),l=t(89454),s=t(80889),d=t(79612),u=t(31700),m=t(58321),g=t(49433),f=t(65751),v=t(1809);const p={partialHeading:"yLlYt"};function b(){return n.createElement("div",{className:"px-3"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(p.partialHeading)}),n.createElement(v.S,null))}function h(e){var a,t=(0,m.U)().commonVideoProps,v=i.a.useBasicFetch(u.g.streamablePresentation()),p=i.a.useBasicFetch(s._.dashboardWidgetContent(e.widgetId)),h=i.a.useBasicFetch(v.data&&l.O.presentationAudiences(v.data.id,o.R.StreamableLearning)),y=(0,g.V)("video-list");return(0,d.M)({title:null===(a=p.data)||void 0===a?void 0:a.name}),v.hasCompleted&&p.hasCompleted&&h.hasCompleted?n.createElement(c.M.Provider,{value:{getVideoActions:y}},n.createElement("div",{className:"px-3"},n.createElement("h1",{className:"h2 mb-2"},p.data.name),n.createElement(r.E4,{videos:p.data.content,getVideoAppLink:f.y.videoType,presentationAudiences:h.data,getPreviewQuestionsAppLink:function(){return null},hasPermissions:function(){return!1},commonVideoProps:t}))):n.createElement(b,null)}},49433:(e,a,t)=>{t.d(a,{V:()=>i});var n=t(65858);function i(e){return function(a){return a.id,a.name,"video-list"===e?n.LZ.VideoListItem:n.LZ.PlayPage,[]}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3838],{78259:(e,t,n)=>{n.d(t,{O:()=>c});var a=n(58176),r=n.n(a),i=n(21161),o={className:"info-link",defaultProtocol:"https"},c={linkifyText:function(e,t){if(e){var n=t?i.extend({},o,t):o;return r()(e,n)}}}},61115:(e,t,n)=>{n.d(t,{b:()=>w});var a=n(32735),r=n(110),i=n(78259),o=n(28400),c=n(92582),l=n(65858),s=n(79070),u=n(12324),d=n(42735),m=n(28825),p=n(87611),v=n(83914),f=n(83345),g=n(2284),y=n(69454),b=n(35223);const h={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};var E="shared.specialEventListItem";function w(e){var t,n,w,k,D,C,L,T,O=e.getAppLink(e.event.content,o.m.slugify(e.event.name)),S=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),x=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),M=null===(w=e.getBannerUrl)||void 0===w?void 0:w.call(e,e.event.content),N=!!e.event.endDate,P=e.event.content.status===g.W.ComingSoon,A=null===(k=e.getStartTime)||void 0===k?void 0:k.call(e,e.event.content),Y=null===(D=e.getActionLabel)||void 0===D?void 0:D.call(e),I=null===(C=e.isPastEvent)||void 0===C?void 0:C.call(e,e.event.content),j={actionType:l.Vw.Click,entity:l.py.SpecialEvent,location:e.inPopup?l.LZ.CalendarPopup:l.LZ.CalendarDay},R={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:r.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return a.createElement("div",null,A&&a.createElement("h6",null,A),a.createElement("div",{onClick:function(){P&&c.k.logUserAction(R,j)}},a.createElement(m.F,{appLink:!P&&O,className:"".concat(P?"":"cursor-pointer"," text-decoration-none mb-2"),onClick:e.onClick,analyticsOptions:j,analyticsData:R},a.createElement("div",{className:"banner rounded-3 position-relative position-relative ".concat(h.banner),style:{backgroundColor:S,backgroundImage:"url('".concat(M,"')")}},I&&a.createElement("div",{className:"bg-white w-100 h-100 opacity-50 position-absolute top-0 left-0 z-0"}),a.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},a.createElement("div",{className:"d-flex align-items-center z-1"},x&&a.createElement("div",{className:"".concat(h.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},a.createElement(p.Z,{data:x})),a.createElement("div",null,P&&a.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(h.pill)}),I&&a.createElement("div",{className:"d-inline-block rounded-pill bg-light-green mb-1"},a.createElement(v.x,{svgName:b.vn.CalendarCheck}),a.createElement("p",{className:"d-inline ms-1 mb-0"},a.createElement(f.x,{namespace:E,phrase:"pastEvent"}))),N&&a.createElement("p",{className:"text-white text-shadow mb-1"},u.T.getDisplayDate(e.event.startDate,e.event.endDate)),a.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),a.createElement("div",{className:"d-none d-sm-block flex-shrink-0 z-1"},!P&&a.createElement(d.K,{className:"btn ".concat(I?"btn-outline-dark":"btn-dark"," fw-semibold")},Y))))),a.createElement("div",{className:"pre-wrap text-break mb-3",dangerouslySetInnerHTML:{__html:i.O.linkifyText(e.event.description||e.event.content.description)}}),"audiences"in(T=e.event.content)&&"endDateTime"in T&&"startDateTime"in T&&a.createElement("div",{className:"d-flex mb-3"},a.createElement("div",{className:"rounded-pill border border-dark px-2 bg-white d-inline-block me-2"},null===(L=y.T.getMergedPresentationAudienceString(e.event.content.audiences))||void 0===L?void 0:L.name),a.createElement("div",{className:"rounded-pill fw-semibold bg-dark text-white d-inline-block px-2"},"".concat(r.O.diffBetween(e.event.content.endDateTime,e.event.content.startDateTime,"minutes"),"m")))))}},32529:(e,t,n)=>{n.d(t,{D:()=>u});var a=n(32735),r=n(39202),i=n(23481),o=n(65858),c=n(83665);const l={pillTab:"Vrjid"};var s="streamable.header";function u(e){var t,n,u,d,m,p,v=[{name:i.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(s,"heading"),url:r.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"livestreams"),appLink:null===(u=e.appLinks)||void 0===u?void 0:u.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(s,"livestreams"),url:r.C$.getHref(null===(d=e.appLinks)||void 0===d?void 0:d.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"partners"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(s,"partners"),url:r.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return a.createElement("div",{className:"py-3 text-center"},a.createElement(c.r,{tabs:v,className:l.pillTab}))}},54168:(e,t,n)=>{n.d(t,{d:()=>c});var a=n(32735),r=n(40290),i=n(83914),o=n(35223);function c(){var e;return a.createElement("div",null,a.createElement(i.x,{svgName:o.vn.Globe}),a.createElement("span",{className:"ms-1"},null===(e=r.F[r.r.ET])||void 0===e?void 0:e.name))}},18559:(e,t,n)=>{n.d(t,{C:()=>h,g:()=>u});var a,r=n(32735),i=n(23481),o=n(31453),c=n(83914),l=n(25005),s=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(a||(a={}));var u,d=n(93264),m=n(26361),p=n(35223),v=n(81993),f=n(49500),g=i.T.encloseNamespace("shared.badges");!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(u||(u={}));var y={xs:c.S.ExtraSmall,sm:c.S.Small,std:c.S.Standard,lg:c.S.Large},b={xs:"badge-xs",sm:"badge-sm",std:"badge-std",lg:"badge-lg"};function h(e){var t=e.type,n=e.data,i=e.size,h=void 0===i?"std":i;if(!function(e,t){var n,a;return"boolean"==typeof t?!!t:e===u.Rating?t&&!!t.value:e===u.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===u.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===u.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var E=function(e,t,n){var r,i=b[n],c="";if(e===u.DurationApproximate&&(c="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===u.DurationExact&&(c="duration-badge"),e===u.Interactive&&(c="interactive-badge"),e===u.Rating&&(c="rating-badge text-shadow ".concat(v.u.mapRatingToClass(t.value))),e===u.ProductionYear&&(c="production-year-badge text-shadow"),e===u.Captions)return"p-0";if(e===u.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===u.Trending)return"trending-badge px-1 d-flex align-items-center ".concat(i);if(e===u.Count&&(c="count-badge px-1 rounded"),e===u.Restriction){var l=m.l.mapRestrictionToClass(t.restrictions);return(0,o.A)("restriction-badge rounded-pill px-2 d-flex align-items-center",l)}return e===u.Source&&(c=(r=t).includes(a.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(f.Z.streamable):r.includes(a.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":r.includes(a.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":r.includes(a.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),(0,o.A)("badge",c)}(t,n,h);E="".concat(E," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var w=function(e,t,n){if(e===u.Interactive)return g("interactive");if(e===u.DurationApproximate)return d.T.ToDisplayDurationNewStyle(t);if(e===u.DurationExact)return d.T.ToDisplayDuration(t);if(e===u.Rating)return t.code;if(e===u.ProductionYear)return t;if(e===u.Captions)return r.createElement(c.x,{svgName:p.vn.CloseCaptionBadge});if(e===u.Status)return s.X[t];if(e===u.Trending)return r.createElement(r.Fragment,null,r.createElement(c.x,{svgName:p.vn.Trending,size:y[n]}),r.createElement("span",{className:"ps-1"},t));if(e===u.Count)return t;if(e===u.Restriction)return r.createElement(r.Fragment,null,r.createElement(c.x,{svgName:m.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,m.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===u.Source){var i=t;return i.includes(a.Streamable)?"streamable":i.includes(a.MoviesAndTv)?"movies + tv":i.includes(a.Exchange)?"exchange":i.includes(a.Twig)?"twig":"-"}}(t,n,h),k=function(e,t){return e===u.Rating?{title:t.name,placement:"top"}:null}(t,n),D=e.inline&&"d-inline-block";return k?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(l.u,Object.assign({},k,{spanHack:!0,spanHackClassName:D}),r.createElement("span",{className:E},w))):r.createElement("span",{className:"".concat(E," badge-wrapper")},w)}},87611:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(32735),r=n(1048),i=n(28825),o=n(40320),c=n(54610),l=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,n="";return e.imageType===c.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===c.__.TallPosters&&(n=s.tallPoster),e.imageType===c.__.Covers&&(n=s.cover),e.imageType===c.__.Banners&&(n=s.banner),e.imageType===c.__.Posters&&(n=s.poster),e.imageType===c.__.Pdf&&(n=s.pdf),e.imageType===c.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function d(e){var t=e.data,n=e.imageOptions,c=e.appLink,s=e.preload,d=e.preventLoad,m=e.analyticsOptions,p=e.analyticsData,v=e.imageClassName,f=e.alt,g="";"string"==typeof t?g=t:r.t.isObject(t)&&(g=t.url);var y=g&&n?l.j.createUrl(g,n):g;return a.createElement("div",{className:u(e),style:e.imageStyle},a.createElement(i.F,{appLink:c,analyticsData:p,analyticsOptions:m,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName},e.children,y&&a.createElement(o.w,{src:y,alt:f,forceLoad:s,preventLoad:d,extraClasses:v,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})))}},83665:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),r=n(92582),i=n(28825),o=n(18559),c=n(11607),l=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(l.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map(function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n ")},a.createElement(u,{tab:e})):a.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(u,{tab:e})))})))}d.defaultProps={borderRadius:"lg"}},63112:(e,t,n)=>{n.d(t,{o:()=>i});var a=n(32735),r=n(2096),i=a.memo(function(e){var t=e.tagClass,n="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(r.Z.partialTag);return a.createElement("div",{className:"mt-1"},a.createElement("span",{className:n}," "))})},30699:(e,t,n)=>{n.d(t,{a:()=>i});var a=n(32735),r=n(16035);function i(e){var t=e.selectedItems.find(function(t){return t.id===e.data.id})?"bg-gray-900 text-white":"bg-light";return a.createElement(r.z,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," lh-1"),onClick:function(){return e.onClick(e.data)}})}},5960:(e,t,n)=>{var a,r;n.d(t,{H:()=>r,X:()=>a}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},1164:(e,t,n)=>{var a;n.d(t,{L:()=>a}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(a||(a={}))},5345:(e,t,n)=>{var a;n.d(t,{c:()=>a}),function(e){e.Custom="custom",e.User="year_group"}(a||(a={}))},89454:(e,t,n)=>{n.d(t,{O:()=>i});var a=n(97395),r=n(25925),i={presentationAudiences:function(e,t){var n=t||r.R.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:a._.urlBuilder("{gateway}/v1/users/me/audiences",i),publicUrl:a._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),i),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"{gateway}/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:a._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:r.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}}},81514:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(86764),r=n(3747);function i(){var e=(0,r.a)(a.r.XS),t=(0,r.a)(a.r.SM),n=(0,r.a)(a.r.MD),i=(0,r.a)(a.r.LG),o=(0,r.a)(a.r.XL),c=(0,r.a)(a.r.XXL),l=a.r.LG;return e&&(l=a.r.XS),t&&(l=a.r.SM),n&&(l=a.r.MD),i&&(l=a.r.LG),o&&(l=a.r.XL),c&&(l=a.r.XXL),l}},93264:(e,t,n)=>{n.d(t,{T:()=>i});var a=n(21161),r=function(e,t,n){var a=t-(e=e.toString()).length;return a<=0?e:new Array(a+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!a.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=r(n.getUTCMinutes(),2,"0"),c=r(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!a.isNumber(e))return"";var n=new Date(e),r=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((r>0||i>0)&&o>=30&&(i+=1),r>0){var c=r>1?"hrs":"hr";return i>0?t&&o>0?"".concat(r).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(r).concat(c," ").concat(i,"m "):"".concat(r," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},26361:(e,t,n)=>{n.d(t,{l:()=>f});var a=n(23481),r=n(110),i=n(49500),o=n(5345),c=n(35223);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(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}var u=a.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,i.Z.restrictionBadgeCustom),o.c.User,i.Z.restrictionBadgeUser),m=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),v=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=f.getWeightedRestriction(e.value);return m[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var a=f.getWeightedRestriction(e.value),r=t.find(function(e){return e.value===a.yearGroup}),i=p[a.type];if(a.type===o.c.User)return null===a.yearGroup?u("restrictionStaff"):r?1===t.length?u("restrictionStudents"):u(i,{yearGroup:r.name}):"";if(a.type===o.c.Custom){var c=f.getRestrictionDuration(a);return c?u(i,{duration:c,smartCount:c}):u("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce(function(e,n){var a=v[e.type],r=v[n.type];return"highest"===t&&a>r||"lowest"===t&&a<r?e:n})},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],a=e._restrictions.value.filter(function(e){return n.includes(e.type)});return f.getWeightedRestriction(a)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},81993:(e,t,n)=>{n.d(t,{u:()=>u});var a=n(23481),r=n(96560),i=n(1164),o=n(35223);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return a.T.getPhrase(s,"exchange");case r.r.Workspace:return a.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-blue";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=l(l(l(l(l(l(l({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return a.T.getPhrase(s,"pdf");case i.L.Image:return a.T.getPhrase(s,"image");case i.L.Document:return a.T.getPhrase(s,"document");case i.L.Excel:return a.T.getPhrase(s,"spreadsheet");case i.L.PowerPoint:return a.T.getPhrase(s,"presentation");case i.L.Zip:return a.T.getPhrase(s,"zipArchive");case i.L.File:return a.T.getPhrase(s,"file");default:return""}}}},26255:(e,t,n)=>{n.d(t,{y:()=>i});var a=n(110),r=n(59795),i={getStartTime:function(e){return a.O.format(r.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&a.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)},isPastEvent:function(e){return a.O.isBefore(e.endDateTime,new Date)}}},75361:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>Pe,sanitizeCalendarViewParams:()=>Ne});var a=n(32735),r=n(23481),i=n(57900),o=n(2948),c=n(20354),l=n(110),s=n(1048),u=n(80247),d=n(15543),m=n(8316);const p={wrapper:"WRLhh",weekend:"mF0ka"};function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function f(e){var t,n,r,i=e.date,o=e.notCurrentMonth,c=(n=a.useState(0),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],f="position-relative border ".concat(e.theme.border," ").concat(p.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(i)&&(f+=" ".concat(p.weekend)),o&&(f+="opacity-50");var g=(null===(t=e.events)||void 0===t?void 0:t.filter(function(t){return l.O.isSame(e.date,t.startDate)}))||[],y=Object.assign(Object.assign({},e),{eventsOnDay:g,sliderStep:s,setSliderStep:u});return a.createElement("td",{className:f},(null==g?void 0:g.length)>0?a.createElement(m.K,{hoverableComponent:d.X,componentProps:y,hoverScale:1.35}):a.createElement(d.X,Object.assign({},y,{isHovering:!1})))}var g=n(12324),y=n(79967),b=n(28825),h=n(90383),E=n(83345),w="specialEvent.eventsEmptyState",k=r.T.encloseNamespace(w);function D(e){return a.createElement(E.D.Provider,{value:w},a.createElement(h.u,null,a.createElement(h.u.Image,{src:e.imageUrl,altText:k("info")}),a.createElement(h.u.Heading,null,e.heading||a.createElement(E.x,{phrase:"heading"})),e.appLink&&a.createElement(h.u.Info,null,a.createElement(a.Fragment,null,a.createElement(E.x,{namespace:w,phrase:"info"}),a.createElement(b.F,{appLink:e.appLink},a.createElement("span",{className:"text-info"},k("link")))))))}var C=n(28400),L=n(61115);const T={date:"k2lLG",first:"E18Bv"};function O(e){var t={};e.events.forEach(function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]});var n=Object.keys(t);return n.sort(function(e,t){return l.O.isBefore(e,t)?-1:0}),a.createElement("div",{className:"py-1"},n.map(function(n,r){var i="",o="";return a.createElement("div",{key:n},a.createElement("div",{className:"h4 mt-4 ".concat(T.date," ").concat(0===r?T.first:"")},g.T.getOrdinalDate(n)),t[n].map(function(t){var n;return i=o,o=null===(n=e.getStartTime)||void 0===n?void 0:n.call(e,t.content),a.createElement(L.b,{key:t.content.id,getAppLink:function(t,n){return e.appLink(t,C.m.slugify(n))},event:t,presentationId:e.presentationId,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:function(){return e.getActionLabel(t.content)},getStartTime:e.getStartTime&&i!==o?e.getStartTime:null,isPastEvent:e.isPastEvent})}))}))}const S={header:"sTIcQ",thead:"ekxZd"};function x(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 a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function N(e){var t,n=e.appLinks,r=e.imageUrls,i=(0,y.k)(),o=g.T.getEventsInMonth(e.events||[],e.viewingMonth),c=x(a.useState(!1),2),l=c[0],s=c[1],d=x(a.useState(null),2),m=d[0],p=d[1];return e.eventsLoaded&&!(null==o?void 0:o.length)?a.createElement(D,{imageUrl:r.emptyState,appLink:null===(t=n.emptyStateRedirect)||void 0===t?void 0:t.call(n),heading:e.emptyStateHeading}):"list"===e.viewMode||i.xs||i.sm||i.md?e.eventsLoaded?a.createElement(O,{events:o,presentationId:e.presentationId,appLink:e.appLinks.event,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:e.getActionLabel,getStartTime:e.getStartTime,isPastEvent:e.isPastEvent}):a.createElement("div",{className:"d-flex justify-content-center align-items-center mb-4"},a.createElement(u.Z,{as:"div",animation:"border",role:"status"})):a.createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},a.createElement("thead",{className:"border ".concat(e.theme.border," ").concat(S.thead)},a.createElement("tr",{className:"fw-semibold ".concat(e.theme.background," ").concat(S.header)},e.weekDaysHeader.map(function(e){return a.createElement("th",{key:e,className:"px-2 h4",scope:"col"},e)}))),a.createElement("tbody",null,e.weekDays.map(function(t){return a.createElement("tr",{key:t[0].toString()},t.map(function(t){return a.createElement(f,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInitialized:l,setHasInitialized:s,presentationId:e.presentationId,hoveredEvent:m,theme:e.theme,setHoveredEvent:p,getEventsListAppLink:function(){return e.appLinks.eventList(e.monthQuery,t,e.presentationId)},getTopicAppLink:function(t,n){return e.appLinks.event(t,n)},getIconUrl:e.getIconUrl,getBackgroundColor:e.getBackgroundColor,getCoverUrl:e.getCoverUrl,getHardCodedEvent:e.getHardCodedEvent,fadePastEvents:e.fadePastEvents,timezone:e.timezone})}))})))}N.defaultProps={theme:{border:"border-light-blue",background:"bg-light-blue"}};var P=n(81886),A=n(65858),Y=n(75896),I=new Date("2023-01-01"),j=12;function R(e,t){for(var n=l.O.startOf(e,"month"),a=l.O.getWeekday(n),r=[],i=t?0===a?6:a-1:a,o=t?1:0;o<=i;o++){var c=n,s=l.O.weekday(c,a-o);r.push(Object.assign(s,{notCurrentMonth:!0}))}return r.reverse()}function U(e,t){for(var n=l.O.endOf(e,"month"),a=l.O.getWeekday(n),r=[],i=t?7-(0===a?7:a):7-a,o=1;o<=i;o+=1){var c=l.O.add(n,o,"days");r.push(Object.assign(c,{notCurrentMonth:!0}))}return r}function F(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:Y.m.first(R(e,!0))}function B(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:Y.m.last(U(e,!0))}function _(e){return[F(e),B(e)]}function H(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=new Date,z=n(74097),G=n(83914),W=n(35223);const Z={chevron:"U_GAM",left:"t_wDz",right:"KgpGw",viewModeContainer:"csNfk"};var q="specialEventCalendar.calendarNav";function X(e){return a.createElement("div",{className:"".concat(Z.viewModeContainer," d-none d-lg-block")},a.createElement(z.h,{svgName:W.vn.Calendar,className:"".concat("calendar"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-start rounded-end-0 border-end-0 px-3 h-100"),onClick:function(){return e.setViewMode("calendar")},analyticsData:{},analyticsOptions:{entity:A.py.AppLink,actionType:A.Vw.Click,descriptor:A.Jf.Calendar,location:A.LZ.CalendarNav}}),a.createElement(z.h,{svgName:W.vn.TableOfContents,className:"".concat("list"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-end rounded-start-0 border-start-0 px-3 h-100"),onClick:function(){return e.setViewMode("list")},analyticsData:{},analyticsOptions:{entity:A.py.AppLink,actionType:A.Vw.Click,descriptor:A.Jf.List,location:A.LZ.CalendarNav}}))}function $(e){var t="previous"===e.action?W.vn.ChevronLeft:W.vn.ChevronRight,n="previous"===e.action?Z.left:Z.right;return a.createElement(b.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"".concat(Z.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:function(){P.Q.C$.trigger(e.appLink),e.onClick()}},a.createElement(G.x,{svgName:t,size:G.S.Medium,className:"svg-container d-inline-block ".concat(Z.svg)}))}var Q=new Date;function J(e){var t=e.appLinks,n=(0,y.k)();function i(n){var a,r,i=l.O.format(n,"MMMM").toLocaleLowerCase(),o=t.month(i),c={};if(n){var s=(new Date).getFullYear(),u=n.getFullYear();s!==u&&(c.year=u)}return(null===(a=e.queryParams)||void 0===a?void 0:a.classification)&&(c.classification=e.queryParams.classification),(null===(r=e.queryParams)||void 0===r?void 0:r.yearGroup)&&(c.yearGroup=e.queryParams.yearGroup),o.params=c,o}var o,c,s=(o=e.monthDate,c=l.O.diffBetween(l.O.startOf(o,"month"),l.O.startOf(V,"month"),"months"),{showPrev:l.O.isAfter(o,I,"month"),showNext:c<j}),u=s.showPrev,d=s.showNext,m={actionType:A.Vw.Click,entity:A.py.SpecialEvent,location:A.LZ.CalendarNav};function p(e){return l.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{className:"d-flex flex-wrap gap-3 justify-content-end align-items-center"},a.createElement("h1",{className:"mb-0 h2 me-auto"},l.O.format(e.monthDate,n.xs?"MMM YYYY":"MMMM YYYY")),e.children,e.setViewMode&&a.createElement(X,{viewMode:e.viewMode,setViewMode:e.setViewMode}),a.createElement("div",{className:"d-flex gap-3"},u&&a.createElement($,{appLink:i(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)},analyticsOptions:m,analyticsData:{action:"previous",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}}),a.createElement(b.F,{appLink:i(),className:"".concat(Z.todayWrapper," btn btn-outline-dark fw-semibold"),onClick:function(){l.O.format(Q,"M YY")!==l.O.format(e.monthDate,"M YY")&&e.setViewingMonthDate()},analyticsOptions:m,analyticsData:{action:"today",date:p(l.O.startOf(Q,"month"))}},r.T.getPhrase(q,"today")),d&&a.createElement($,{appLink:i(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),analyticsOptions:m,analyticsData:{action:"next",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))},action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}})))}var K="specialEvent.eventsErrorState",ee=r.T.encloseNamespace(K);function te(e){return a.createElement(E.D.Provider,{value:K},a.createElement(h.u,null,a.createElement(h.u.Image,{src:e.imageUrl}),a.createElement(h.u.Heading,null,a.createElement(E.x,{phrase:"heading"})),a.createElement(h.u.Info,null,a.createElement(E.x,{namespace:K,phrase:"info"}),a.createElement("br",null),a.createElement(b.F,{appLink:e.appLink},a.createElement("span",{className:"text-info"},ee("link"))))))}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ae=new Date;function re(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae,r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map(function(e){return l.O.format(l.O.weekday(n,e),"ddd")})}(i),c=a.useRef({}),s=(e=a.useState([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],m=l.O.format(n,"YYYY-MM");a.useEffect(function(){var e=c.current[m];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],a={},r=R(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],a=1;a<=t;a++){var r=l.O.set(e,"date",a);n.push(Object.assign(r,{notCurrentMonth:!1}))}return n}(e)).concat(U(e,t)),i=function(e){var t=r.slice(o,o+7);t.forEach(function(t,n){a[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}}),n.push(t),e++,c=e},o=0,c=0;o<r.length;o+=7)i(c);return{datePositionMap:a,weeksTable:n}}(n,i),a=t.weeksTable,r=t.datePositionMap;c.current[m]={weeksTable:a,datePositionMap:r},d(a)}},[l.O.format(n,"YYYY-MM")]);var p=Y.m.first(Y.m.first(u)),v=Y.m.last(Y.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(m!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),a=(new Date).getFullYear(),i=n.getFullYear(),o=r.month(t);a!==i&&(o.params={year:i}),P.Q.C$.trigger(o)}}else P.Q.C$.trigger(r.calendar())},startDate:p,endDate:v}}var ie=n(4198),oe=n(32529),ce=n(54168),le=n(40290),se=n(54610),ue=n(16714),de=n(25925),me=n(89454),pe=n(21750),ve=n(22902),fe=n(79612),ge=n(67453),ye=n(25301),be=n(41760),he=n(31700),Ee=n(6117),we=n(55941);function ke(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ce(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 De(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 a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||Ce(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 Ce(e,t){if(e){if("string"==typeof e)return Le(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)?Le(e,t):void 0}}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Te=n(26255),Oe=n(323),Se=n(27051);function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Me=r.T.encloseNamespace("livestreamCalendar.calendarView");function Ne(e){return e?s.t.pick(e,["year","classification","yearGroup"]):{}}function Pe(e){var t,n,r,u,d,m=(u=(0,o.D)("calendar:mode",{viewMode:"calendar"},{storage:i.Z1.LocalStorage}),d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(u,d)||function(e,t){if(e){if("string"==typeof e)return xe(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)?xe(e,t):void 0}}(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0].viewMode,v=m[1],f=(0,(0,ve.T)().hasPermissions)(ue.C.StudentExperience),y=c.a.useBasicFetch(he.g.streamablePresentation()),b=c.a.useBasicFetch(y.data&&me.O.presentationAudiences(y.data.id,de.R.StreamableLearning)),h=c.a.useBasicFetch(y.data&&pe.x.topicsFromAllAvailablePresentations([y.data.id])),E=function(e){if(!e)return!0;var t=H(e);if(!l.O.formatIsValid(t,"MMMM-YYYY",!0))return!1;var n=l.O.parseDateString(t,"MMMM-YYYY");return l.O.isSame(n,I,"month")||l.O.isAfter(n,I,"month")}(e.month),w=function(e){if(!e)return l.O.parseDateString();var t=H(e);return l.O.parseDateString(t,"MMMM-YYYY")}(e.month),k=re(w,(0,Oe.C)()),D=k.monthDate,C=k.setMonthDate,L=k.weekDays,T=k.weekDaysHeader,O=k.startDate,S=k.endDate,x=function(e,t){var n=De(_(e),2),a=n[0],r=n[1],i=De(_(l.O.add(e,1,"month")),2),o=i[0],s=i[1],u=De(_(l.O.subtract(e,1,"month")),2),d=u[0],m=u[1],p={};t.yearGroup&&(p.audienceId=t.yearGroup),t.classification&&(p.topicId=t.classification,p.includeChildrenTopics=!0);var v=c.a.useBasicFetch(a&&r&&we.H.calendarLivestreams(Object.assign({from:l.O.format(a,"YYYY-MM-DD"),to:l.O.format(r,"YYYY-MM-DD")},p))),f=c.a.useBasicFetch(o&&s&&we.H.calendarLivestreams(Object.assign({from:l.O.format(o,"YYYY-MM-DD"),to:l.O.format(s,"YYYY-MM-DD")},p))),g=c.a.useBasicFetch(d&&m&&we.H.calendarLivestreams(Object.assign({from:l.O.format(d,"YYYY-MM-DD"),to:l.O.format(m,"YYYY-MM-DD")},p)));return{events:Y.m.uniq([].concat(ke(g.data||[]),ke(v.data||[]),ke(f.data||[])),function(e){return e.id}),loaded:v.hasCompleted}}(w,e.queryParams),M=x.events,P=x.loaded,A=l.O.format(D,"MMMM YYYY");if((0,fe.M)(ye.CG.getDefaultMetadata({title:A,phraseContext:{phraseHandler:Me,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Ee.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:!0,product:be.L.PRODUCT_NAME})),null!==e.month&&!E)return a.createElement(te,{imageUrl:(0,Oe.j)().errorState,appLink:(0,Se.h)().calendar});var j,R,U,F,B,V=[{id:"classification",name:Me("subjectFilter"),options:null===(t=h.data)||void 0===t?void 0:t.topics.map(function(e){return{name:e.name,id:e.topicIds.join(":")}}),type:"checkbox",compatibleIndices:[]},{id:"yearGroup",name:Me("gradeFilter"),type:"checkbox",options:null===(n=b.data)||void 0===n?void 0:n.map(function(e){return{name:e.name,id:e.masterId}}),compatibleIndices:[]}];return a.createElement("div",{className:"bg-white px-4"},a.createElement(oe.D,{appLinks:(0,Se.h)(),active:"calendar"}),a.createElement(J,{monthDate:D,setViewingMonthDate:C,appLinks:(0,Oe.C)(),queryParams:e.queryParams,viewMode:p,setViewMode:function(e){return v({viewMode:e})}},a.createElement("div",{className:"mx-n1 order-1 order-sm-0"},a.createElement(ie.J,{queryParams:s.t.omit(e.queryParams,["year"]),mainFilters:V,appLink:(j=l.O.format(D,"MMMM").toLocaleLowerCase(),R=(new Date).getFullYear(),U=D.getFullYear(),F=(0,Oe.C)().month(j),B={},R!==U&&(B.year=U),e.queryParams.classification&&(B.classification=e.queryParams.classification),e.queryParams.yearGroup&&(B.yearGroup=e.queryParams.yearGroup),F),isFetchingOptions:!h.data||!y.data||!b.data,alignResetButtonLeft:!0,hideDivider:!0,hideHeading:!0,hideCaret:!1}))),a.createElement("div",{className:"position-relative mt-3 ".concat("list"===p?"":"mt-lg-0")},a.createElement("div",{className:"d-block ".concat("list"===p?"":"d-lg-none"," position-absolute top-0 end-0 mt-2")},a.createElement(ce.d,null)),a.createElement(N,{weekDays:L,weekDaysHeader:T,events:M,monthQuery:{from:null==O?void 0:O.toString(),to:null==S?void 0:S.toString()},viewingMonth:w,eventsLoaded:P,presentationId:null===(r=y.data)||void 0===r?void 0:r.id,appLinks:(0,Oe.C)(),imageUrls:(0,Oe.j)(),viewMode:p,getActionLabel:function(e){return Me(function(e){return f||l.O.isBefore(e.endDateTime,new Date)?"pastActionLabel":"actionLabel"}(e))},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:se.h2.Large})},getIconUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:se.h2.Small})},getStartTime:Te.y.getStartTime,theme:{background:"bg-light-green",border:"border-light-green"},emptyStateHeading:function(){if(!g.T.getEventsInMonth(M||[],w).length&&(e.queryParams.yearGroup||e.queryParams.classification))return Me("emptyStateText")}(),fadePastEvents:!0,timezone:le.r.ET,isPastEvent:Te.y.isPastEvent})))}Pe.defaultProps={queryParams:{}}},323:(e,t,n)=>{n.d(t,{C:()=>c,j:()=>o});var a=n(99742),r=n(96359),i=n(41135);function o(){return{emptyState:a.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:a.W.EmptyStates.CALENDAR.INVALID_DATE}}function c(){return{calendar:function(){return{application:i.O.CALENDAR,action:r.e.Calendar.CALENDAR}},month:function(e){return{application:i.O.CALENDAR,action:r.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:i.O.LIVESTREAMS,action:r.e.Livestreams.LIVESTREAM,args:[e.id,t]}},eventList:function(e,t,n){return{application:i.O.CALENDAR,action:r.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>c});var a=n(96359),r=n(41135),i=n(65751);function o(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationDirectory:function(){return i.y.classificationDirectory(e)},series:function(){return null},latestReleases:function(){return null},classificationLatestReleases:function(){return null},playlist:function(){return null},onboardingAppLinks:function(){return null},onboardingStep:function(){return null},watchHistory:function(){return null},widgetWizard:function(){return null}})}function c(){return{discover:{application:r.O.DASHBOARD,action:a.e.Dashboard.HOME},calendar:{application:r.O.CALENDAR,action:a.e.Calendar.CALENDAR},partners:{application:r.O.DASHBOARD,action:a.e.Dashboard.CONTENT_PARTNERS}}}},55941:(e,t,n)=>{n.d(t,{H:()=>c});var a=n(97395),r=n(110),i=n(59795),o=n(5960),c={livestream:function(e){return{url:a._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map(function(t){return"".concat(t,":").concat(e[t])}).join(":");return{url:a._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:o.X.Published,limit:100,query:"audiences"},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map(function(e){return{id:e.id,startDate:r.O.format(i.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})}}}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var a=n(39202),r=n(14292),i=n(97395);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||a.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce(function(e,t){return Object.assign(Object.assign({},e),(n={},r=!0,(a=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(a=t))in n?Object.defineProperty(n,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[a]=r,n));var n,a,r},{});return Object.keys(e).reduce(function(t,a){return a in n&&(t[a]=e[a]),t},{})}(n.params,e.allowedParams),l=a.C$.getHref(Object.assign(Object.assign({},n),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),i._.safeUrlConcat(t,l)}}},49500:(e,t,n)=>{n.d(t,{Z:()=>a});const a={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4951],{40320:(e,t,n)=>{n.d(t,{w:()=>o});var r=n(32735),i=n(65294);const a="fVSzb";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}var o=r.memo(function(e){var t,n,o=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,m=e.errorFallbackImageSrc,u=e.preventLoad,p=void 0!==u&&u,v=e.errorFallbackImageClassName,d=e.src,f=e.alt,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),A=(0,i.Y)({rootMargin:"500px"}),h=A.ref,b=A.inView,E=(t=r.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,c,o=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw i}}return o}}(t,n)||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}}(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.")}()),I=E[0],R=E[1];function _(){return I&&m?m:e.src}if(r.useEffect(function(){if((o||b)&&!p){var e=new Image;return e.onerror=function(){R(!0),m&&(e.src=m)},e.src=d,function(){return e.onerror=null}}},[b,p]),I&&!m)return r.createElement(r.Fragment,null);if(!h)return r.createElement("img",Object.assign({className:"".concat(a," ").concat(s," ").concat(I&&v||""),alt:f,src:_()},g));var w=Object.assign(Object.assign({alt:f},g),!b&&!o||p?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:_()});return o||(w.ref=h),r.createElement("img",Object.assign({className:"".concat(a," ").concat(s," ").concat(I&&v||"")},w))})},55171:(e,t,n)=>{n.d(t,{e:()=>r});var r={PublicTranscriptVideoIds:["78902422","8139055","32102562","36875667","3713657","9900524","48278572","39424302","3712691","54504550","23852726","3713563","3714027","51281358","58785149","7322586","3716774","36554689","54192890","6689791","10749459","3712691","81764158","43772092","43974358","48091365","6430651","3713735","54096131","57977558","78840166","57738254","51666370","49858722"],SpecialEvents:{dlL00b3:{id:"dlL00b3",iconUrl:"https://img.clickviewapp.com/v2/covers/PGbNp0"}},Classifications:{Twig:{EnglandSecondary:{HUB:"yrg5vYN"},ScotlandSecondary:{HUB:"Y69j14M"},InternationalSecondary:{HUB:"MYM6GGM"},NewZealandSecondary:{HUB:"agNmRd9"}},Tigtag:{EnglandPrimary:{HUB:"D1218zx",TIGTAG_HUB:"odldxPJ",TIGTAG_JUNIOR_HUB:"nENExnL"},ScotlandPrimary:{HUB:"JjAONbj",TIGTAG_HUB:"3bNAGl1",TIGTAG_JUNIOR_HUB:"K6GKp43"},InternationalPrimary:{HUB:"W1xqbk2",TIGTAG_HUB:"ek3dJr8",TIGTAG_JUNIOR_HUB:"PGyKzpn"},NewZealandPrimary:{HUB:"odnkREE",TIGTAG_HUB:"kZJ4RPa",TIGTAG_JUNIOR_HUB:"zMg80DR"}}},PresentationIds:{DEFAULT:1,DEFAULT_CURRICULUM:10,AU_PRIMARY:18,AU_SECONDARY:9,AU_TERTIARY:81,US_ELEMENTARY:13,US_MIDDLE:14,US_HIGH:15,STREAMABLE_LEARNING:68,ENG_PRIMARY:16,ENG_SECONDARY:47,SCT_PRIMARY:12,SCT_SECONDARY:24,UK_TERTIARY:82,INT_PRIMARY:19,INT_SECONDARY:21,NZ_PRIMARY:96,NZ_SECONDARY:97},Libraries:{LICENCED_CONTENT_COLLECTION:"3700633",AU_PRIMARY:"10066675",AU_SECONDARY:"59401330",AU_TERTIARY:"5836680",US_ELEMENTARY:"38693445",US_MIDDLE:"39642303",US_HIGH:"38693435",STREAMABLE_LEARNING:"78688869",ENG_PRIMARY:"35340580",ENG_SECONDARY:"59889793",SCT_PRIMARY:"33386791",SCT_SECONDARY:"59856733",UK_TERTIARY:"5815036",INT_PRIMARY:"3706428",INT_SECONDARY:"3706459",NZ_PRIMARY:"3705693",NZ_SECONDARY:"3705710",NZ_MTV:"26989676",TWIG:"88117784",TIGTAG:"80333935"},Rostering:{sources:{0:{name:"Unknown",iconUrl:""},1:{name:"Clever",iconUrl:"https://img.clickviewapp.com/v2/logos/LqlKgd"},2:{name:"ClassLink",iconUrl:"https://img.clickviewapp.com/v2/logos/ZA2ew5"},3:{name:"Google",iconUrl:"https://img.clickviewapp.com/v2/logos/l5x0jL"},4:{name:"Microsoft",iconUrl:"https://img.clickviewapp.com/v2/logos/xAxGPP"},5:{name:"Schoology",iconUrl:"https://img.clickviewapp.com/v2/logos/kZNEyz"},6:{name:"PowerSchool",iconUrl:"https://img.clickviewapp.com/v2/logos/m6aDmR"}}},Images:{Level_1:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/dlM73E",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/WAe8MP",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/raRm7E",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/3kzeZ2"},Level_2:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/WAeKvP",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/9DAZJv",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/eKG2bq",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/xyn5eP"},Level_3:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/dl1d0g",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/R0Pz7A",TOPIC_TALL_POSTER:"https://img.clickviewapp.com/v2/tallposters/8LYZ9R",NEW_RELEASES_BANNER:"https://img.clickviewapp.com/v2/banners/nKDyRj"},Level_4:{TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/vYJPP5",TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/PGPLLP"},TOPIC_DEFAULT_BANNER:"https://img.clickviewapp.com/v2/banners/yKvoG0",STREAMABLE_TOPIC_BANNER:"https://img.clickviewapp.com/v2/banners/q6gnOn",STREAMABLE_TOPIC_COVER:"https://img.clickviewapp.com/v2/covers/age95g"},Onboarding:{Playlist:{COVER_FILE_ID:"G149g3",BANNER_FILE_ID:"bmPLkn"},LOADING_THUMBNAILS:["https://img.clickviewapp.com/v2/thumbnails/7m34ne","https://img.clickviewapp.com/v2/thumbnails/W1bjqJ","https://img.clickviewapp.com/v2/thumbnails/G14M1e","https://img.clickviewapp.com/v2/thumbnails/2mnv5x","https://img.clickviewapp.com/v2/thumbnails/xAEG91","https://img.clickviewapp.com/v2/thumbnails/agnbyg","https://img.clickviewapp.com/v2/thumbnails/W13emP","https://img.clickviewapp.com/v2/thumbnails/Y6j2vy","https://img.clickviewapp.com/v2/thumbnails/W1MJGE","https://img.clickviewapp.com/v2/thumbnails/OqDJqG","https://img.clickviewapp.com/v2/thumbnails/1My9Wn","https://img.clickviewapp.com/v2/thumbnails/G14MRe","https://img.clickviewapp.com/v2/thumbnails/5bgKpl","https://img.clickviewapp.com/v2/thumbnails/agnbp9","https://img.clickviewapp.com/v2/thumbnails/G147R1","https://img.clickviewapp.com/v2/thumbnails/5bgMz5","https://img.clickviewapp.com/v2/thumbnails/G14Me5","https://img.clickviewapp.com/v2/thumbnails/5bEovE","https://img.clickviewapp.com/v2/thumbnails/odY4oZ","https://img.clickviewapp.com/v2/thumbnails/yrqwqD","https://img.clickviewapp.com/v2/thumbnails/K6pOmR","https://img.clickviewapp.com/v2/thumbnails/vYK3w4","https://img.clickviewapp.com/v2/thumbnails/agnD88","https://img.clickviewapp.com/v2/thumbnails/4rKmp7","https://img.clickviewapp.com/v2/thumbnails/0wM4r3","https://img.clickviewapp.com/v2/thumbnails/69A2jO","https://img.clickviewapp.com/v2/thumbnails/7m3Z3e","https://img.clickviewapp.com/v2/thumbnails/3bGL94","https://img.clickviewapp.com/v2/thumbnails/Y6jwLo","https://img.clickviewapp.com/v2/thumbnails/1MyPby"]}}},65294:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(34152);function i(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 a(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.prevent,c=n.rootMargin,o=n.triggerOnce,l=void 0===o||o,s=(e=(0,r.YD)({triggerOnce:l,rootMargin:c}),t=3,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,i,a,c,o=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(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.")}()),m=s[0],u=s[1],p=s[2];return!0!==a&&void 0!==window.IntersectionObserver||(u=!0,m=null),{ref:m,inView:u,initialized:!!p}}},69454:(e,t,n)=>{n.d(t,{T:()=>p});var r=n(75896),i=n(1048),a=n(55171);function c(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,i,a,c,o=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){s=!0,i=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(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 o(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 l=/\d/,s={yearsAndGradesBuilder:function(e){var t=e.map(function(e){return e.name}).join(" "),n=t.split(" ").filter(function(e){return!isNaN(+e)}).map(function(e){return+e})||[],r=t.split(" ").filter(function(e){return isNaN(+e)})||[],i=e.find(function(e){return!l.test(e.name)}),a=r.find(function(e){return e!==(null==i?void 0:i.name)});if(e.length>1&&(a+="s"),i&&n.length)return"".concat(a," ").concat(i.name.charAt(0)," - ").concat(n.pop());var c=function(e){var t,n,r,i,a=!1,c=[];for(e=e.sort(function(e,t){return e-t}),r=0;r<e.length;r++)i=r+1,a||(t=e[r]),n=e[i],e[r]+1===n?a=!0:a?(c.push("".concat(t," - ").concat(e[r])),a=!1):(c.push("".concat(e[r])),a=!1);return c}(n);return"".concat(a," ").concat(c.join(", "))},internationalSecondaryBuilder:function(e){return s.englandSecondaryBuilder(e)},scotlandPrimaryBuilder:function(e){var t=r.m.first(e),n=r.m.last(e),i=c(t.name.split(" "),1)[0],a=c(n.name.split(" "),1)[0];return"First"===i&&(i="1st"),"First"===a&&(a="1st"),"Second"===i&&(i="2nd"),"Second"===a&&(a="2nd"),i===a?"".concat(i," Level"):"".concat(i," - ").concat(a," Level")},internationalPrimaryBuilder:function(e){var t=r.m.first(e),n=r.m.last(e);if(t.name===n.name)return t.name;var i=c(t.name.split(" "),1)[0],a=c(n.name.split(" "),1)[0];return"Lower"===i&&(i="Low"),"Lower"===a&&(a="Low"),"Middle"===i&&(i="Mid"),"Middle"===a&&(a="Mid"),"".concat(i," - ").concat(a," Pri")},englandSecondaryBuilder:function(e){var t=r.m.first(e),n=r.m.last(e);return t.name===n.name?t.name:"Advanced"===n.name?"lower"===c(t.name.split(" "),1)[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},scotlandSecondaryBuilder:function(e){var t=r.m.first(e),n=r.m.last(e);return t.name===n.name?t.name:"Senior Phase"===n.name?"".concat(t.name," - Senior"):"Third - Fourth Level"},englandPrimaryBuilder:function(e){var t=r.m.first(e),n=r.m.last(e),i=r.m.first(t.name.split(" ")),a=r.m.first(n.name.split(" ")),c=t.name.split(" ").find(function(e){return!isNaN(+e)}),o=n.name.split(" ").find(function(e){return!isNaN(+e)});if(t===n)return"Key"===i||"Reception"===i?t.name:"".concat(i," KS").concat(c);var l="",s="";return l="Reception"===i?"R":"KS".concat(c),s="KS".concat(o),"Lower"===i&&"Upper"===a?"L ".concat(l," - U ").concat(s):("Lower"===i&&(l="Lower ".concat(l)),"Upper"===a&&(s="Upper ".concat(s)),"Key"===a&&(s=n.name),"".concat(l," - ").concat(s))}},m=/([0-9]+)/gi,u=/\s|\+/gi,p={getSortedPresentationAudiences:function(e,t){var n=e.filter(function(e){return!!e}).map(function(e){return e.id.toString()});return t.filter(function(e){return n.includes(e.masterId.toString())})},getMergedPresentationAudienceString:function(e){var t="";switch(+r.m.first(e).presentationId){case a.e.PresentationIds.DEFAULT:case a.e.PresentationIds.AU_SECONDARY:case a.e.PresentationIds.AU_PRIMARY:case a.e.PresentationIds.NZ_PRIMARY:case a.e.PresentationIds.NZ_SECONDARY:case a.e.PresentationIds.US_ELEMENTARY:case a.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];t=s.yearsAndGradesBuilder(e);break;case a.e.PresentationIds.INT_SECONDARY:if(1===e.length)return e[0];t=s.internationalSecondaryBuilder(e);break;case a.e.PresentationIds.INT_PRIMARY:t=s.internationalPrimaryBuilder(e);break;case a.e.PresentationIds.SCT_PRIMARY:t=s.scotlandPrimaryBuilder(e);break;case a.e.PresentationIds.ENG_SECONDARY:t=s.englandSecondaryBuilder(e);break;case a.e.PresentationIds.SCT_SECONDARY:t=s.scotlandSecondaryBuilder(e);break;case a.e.PresentationIds.ENG_PRIMARY:t=s.englandPrimaryBuilder(e);case a.e.PresentationIds.US_MIDDLE:case a.e.PresentationIds.US_HIGH:case a.e.PresentationIds.AU_TERTIARY:case a.e.PresentationIds.UK_TERTIARY:}return t?{name:t}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach(function(e){var i=+r.m.first(e.name.match(m));if(!t)return t=e,void(n=i);i<n&&(t=e)}),t):null;var t,n},n={},i=[];return e.forEach(function(e){if(!n[e.name])return n[e.name]=1,void i.push(e);i.push(e),n[e.name]++;var r=i.splice(i.length-n[e.name]).sort(function(e,n){var r=t(e.subjectPresentationAudiences.data),i=t(n.subjectPresentationAudiences.data);if(!r&&i)return 1;if(!i)return-1;var a=r.name.localeCompare(i.name);return 0===a?a:a>0?-1:1});i=i.concat(r)}),i},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i.t.isObject(t)&&!i.t.isEmpty(t)&&e&&e.length&&p.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var r=function(e){return e.replace(u,"").toLowerCase()},a=n.reduce(function(e,t){return e[r(t)]=t,e},{});return e.filter(function(e){return a[r(e.name)]})}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map(function(e){return e.name})}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[5155],{31453:(e,i,n)=>{function t(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];if(!i.length)return"";var t=i.filter(function(e){return!!e});return t.length?t.join(" "):""}n.d(i,{A:()=>t})},43306:(e,i,n)=>{n.d(i,{H:()=>v});var t=n(23481),a=n(65858),o=n(19476),r=n(19808),s=n(72639),d=n(65728),l=n(87114),c=JSON.parse('{"9":{"JpZ05O1":{"name":"English","videoIds":["12293130","30361411","56866418","58438459","47329278","33204878"]},"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"]},"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"]},"0OZyLGy":{"name":"Technologies","videoIds":["3714027","6863817","3716153","34149622","22733300","10345707"]},"0OZyLYy":{"name":"The Arts","videoIds":["3713730","3716727","3937998","32102569","3716167","32998073"]},"Jp6k7by":{"name":"Aboriginal and Torres Strait Islander Studies","videoIds":["39653785","56866418","3713730","3716831","35848459","3716863"]},"4GRgpve":{"name":"Careers and Vocational Education","videoIds":["8191834","8194999","8194478","8686941","8696292","16168801"]},"Rb4dbm1":{"name":"Civics and Citizenship","videoIds":["5803343","37938448","13106949","22372922","47303205","1521314"]},"DdKR5WL":{"name":"Earth and Space Sciences","videoIds":["3716182","5803343","3716621","4006484","3716170","21148006"]},"0wOxDvl":{"name":"Physical Education","videoIds":["3714278","3714277","3714263","3714261","7709983","3714262"]},"7m2JLPq":{"name":"Psychology","videoIds":["3714892","3714373","3714890","3714891","6590889","3717555"]},"nENmdK1":{"name":"Sociology","videoIds":["3714506","50807954","3714583","38169050","6590951","57771705"]}},"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"]},"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"]},"Yv56NaM":{"name":"Biological Systems","videoIds":["3779793","3713221","3713363","3713562","3713236","3716289"]},"8Lv5Na0":{"name":"Citizenship","videoIds":["3959296","3713237","62336","7586599","48522943","22372630"]},"v4MYJ94":{"name":"Forces, Electricity and Waves","videoIds":["3713221","3713695","3713298","3713562","3713342","3713279"]},"1d5Opwv":{"name":"Materials and Substances","videoIds":["3713221","3713562","3716289","7334569","3713286","3716279"]},"raqjNz4":{"name":"Music","videoIds":["50466237","49808227","38134895","30324910","49535315","6412547"]},"eKp93yo":{"name":"People, Past Events and Societies","videoIds":["52436848","8139170","48666851","49159889","54092899","51668932"]},"2jlKbrd":{"name":"People, Place and Environment","videoIds":["50800706","16206702","81764274","80349361","51668517","37938665"]},"xA2zYyP":{"name":"Planet Earth and Space","videoIds":["3713858","3716170","48022455","3713237","3713221","3713761"]},"3bNnxmn":{"name":"Study and Research Skills","videoIds":["3715013","5952919","5892164","8999934","219449","51724289"]}},"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"]},"8LnP7p8":{"name":"Social and Emotional Learning","videoIds":["39451488","48235859","39337317","40964136","42314985","39382748"]},"4Gl1DaK":{"name":"World Languages","videoIds":["40919719","40919802","40919815","40919186","40915325","49858537"]},"Jpy1EP2":{"name":"Civics and Government","videoIds":["50807954","50800622","57355287","38945573","40919591","57978641"]},"ZAl67rb":{"name":"Earth and Space Science","videoIds":["7336963","3713237","3713761","3712190","3779809","39414730"]},"ze5PRD9":{"name":"Economics","videoIds":["57978515","52673893","39386335","80309108","52673959","80309197"]},"GxAzYW1":{"name":"Geography","videoIds":["39382727","39430086","39342430","40919446","79131743","57200758"]},"R0L3j6g":{"name":"History","videoIds":["57948887","84615538","49690616","40911809","51668864","50735582"]},"9DPWnaO":{"name":"Life Science","videoIds":["3713236","7335448","3713268","53044818","50976630","50977361"]},"nKzp19Y":{"name":"Physical Science","videoIds":["3713221","3713695","3713298","38945712","39382930","84609116"]},"7P7n8AR":{"name":"Religion","videoIds":["50800564","38945207","38945680","54093273","50180383","49159058"]}},"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"]},"xyLWk6w":{"name":"Social and Emotional Learning","videoIds":["40964136","53746175","48172750","48171641","50417923","50418083"]},"DdaRGrq":{"name":"World Languages","videoIds":["40915666","40915325","42486037","40915698","40915345","48040254"]},"yrKZA3y":{"name":"Careers and Technical Education","videoIds":["48172750","52328920","22422792","47488746","51187200","84960065"]},"R0LRx1g":{"name":"Chemical Science","videoIds":["7334569","50876056","52318636","58196676","50837270","47251669"]},"7P7y5bR":{"name":"Civics and Government","videoIds":["50800622","54089250","40919577","81573693","53737737","57978641"]},"g42ENM9":{"name":"Earth and Space Science","videoIds":["39430086","39414730","39414759","50875964","40919857","51264326"]},"LqGREZL":{"name":"Economics","videoIds":["57978515","53737737","51408524","51409809","51779414","48463897"]},"obMmqy5":{"name":"Geography","videoIds":["48234876","81930059","39931606","71810304","47321866","48236170"]},"ZAlrZ11":{"name":"Life Science","videoIds":["48022455","3713236","36554448","9203166","40914938","51863288"]},"obMmqWk":{"name":"Physical Science","videoIds":["3713695","3713298","3713342","3713279","7345732","48233477"]},"5ROzG0o":{"name":"Religion and Ethics","videoIds":["57377971","57355136","57375306","57379661","39904894","78287556"]},"nEN5zAj":{"name":"Science and Engineering Practices","videoIds":["3713221","51724079","50876282","3713711","9203166","40917307"]},"xyLWk4p":{"name":"U.S. History","videoIds":["50168351","53577428","53551209","54090633","49690616","69402165"]},"p3yr17b":{"name":"World History","videoIds":["51415052","51668932","81936739","40913381","50917975","82655889"]}},"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"]},"ze5d6l9":{"name":"Social and Emotional Learning","videoIds":["48171596","48171968","48171765","50418083","50418241","48235802"]},"KAERnDz":{"name":"World Languages","videoIds":["42486037","48234348","40919186","40919098","40918945","40915898"]},"7P7p05W":{"name":"Business and Economics","videoIds":["51407674","57978515","77649088","51100707","58123778","51407769"]},"laYDvoG":{"name":"Chemistry","videoIds":["48233332","40916556","52318636","58196676","52948049","52938235"]},"LqGrPEj":{"name":"Civics and Government","videoIds":["50800622","50871477","40919577","81574026","77829152","80399681"]},"wLj3A04":{"name":"Earth and Space Science","videoIds":["39927128","40919857","39926995","40915159","51292616","51264452"]},"4GldpJG":{"name":"Geography","videoIds":["51264452","40914544","48449463","81930059","51182016","51240873"]},"dleKgE2":{"name":"Life Sciences","videoIds":["40909818","40910549","50834178","40919211","40908887","50834330"]},"2jre2Oe":{"name":"Physics","videoIds":["6762513","40913948","85029481","81269747","82339649","82340162"]},"W12y493":{"name":"Psychology","videoIds":["40908799","81539973","40908929","81539825","77911442","81540071"]},"yKZ432M":{"name":"Religion and Philosophy","videoIds":["57377971","57375306","57379661","57379674","39904894","78287556"]},"69xJOgr":{"name":"Science and Engineering Practices","videoIds":["50876282","9203166","40917307","57355599","39592894","50962824"]},"jl7Elwx":{"name":"Sociology","videoIds":["81389320","81388819","77911225","47329600","47329600","36508642"]},"Ax2KeMo":{"name":"U.S. History","videoIds":["53487293","50168351","77827742","50793077","50168007","51168977"]},"laYDvwm":{"name":"World History","videoIds":["78902422","39394547","52993554","50917975","51414677","38907954"]}},"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"]},"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"]},"KAmPJqP":{"name":"Technologies","videoIds":["26619390","4131606","38132678","50720784","57230386","51181861"]},"MgOve7k":{"name":"The Arts","videoIds":["50466237","6412334","8100020","3716220","49808227","32787298"]},"NqkJ495":{"name":"Biological Sciences","videoIds":["3713221","3713363","3711972","5321193","45248896","51271242"]},"NqkJ4xy":{"name":"Chemical Sciences","videoIds":["3712073","48022232","3712074","50800545","50720770","50962883"]},"KAmPJOL":{"name":"Earth and Space Sciences","videoIds":["3716182","34591272","34590945","6683633","6683711","3713739"]},"p0Nm2AY":{"name":"Personal Development and Health","videoIds":["23645932","7593792","7593365","36875667","7587057","9900524"]},"D12Mz8e":{"name":"Physical Education","videoIds":["81770378","38132665","58025996","82328353","47219168","53093878"]},"Oz83dm5":{"name":"Physical Sciences","videoIds":["36554689","3713221","3713695","3713298","84609116","36554677"]}},"24":{"qdarDYp":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"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"]},"eKnGDdP":{"name":"Religious, Moral and Philosophical Education","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"2jDd3kx":{"name":"Technologies","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]},"4GRN4Eq":{"name":"Biology","videoIds":["3714819","3716182","5803343","3716265","4683666","3779793"]},"6wma2KO":{"name":"Career Education and Skills for Work","videoIds":["8191834","8194999","8686941","8696292","8687327","9312222"]},"LqAlv96":{"name":"Chemistry","videoIds":["3713221","3717296","3716700","3717051","3716289","7334569"]},"8LOYpZR":{"name":"Computing and ICT","videoIds":["3716153","26619390","58307508","26618525","48490433","51731678"]},"3b9r3ka":{"name":"Law","videoIds":["3714675","22372859","5270400","36503787","22220755","57828397"]},"Gx5kpRO":{"name":"Media Studies","videoIds":["3716135","3716275","47244475","3716274","47244664","47244504"]},"6w5zqYO":{"name":"Modern Studies","videoIds":["3716292","5803343","3716190","3713994","3713237","47366972"]},"g78nMPW":{"name":"Physics","videoIds":["6746382","9831360","3716170","6812332","34941552","6762513"]},"3ko2eAw":{"name":"Psychology","videoIds":["6590889","3714392","3714377","39438648","3717555","6590951"]}},"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"]},"nKvyqe1":{"name":"Technology","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]},"la7z0eL":{"name":"Biology","videoIds":["3714819","3716182","5803343","4683666","3779793","3716169"]},"wLKkGZY":{"name":"Chemistry","videoIds":["5795485","3717296","3716700","6737003","6737780","9030741"]},"r4YknOP":{"name":"Citizenship","videoIds":["5803343","3716190","3716293","79799081","3716210","79620772"]},"4GzZbpL":{"name":"Computing and ICT","videoIds":["58308441","58307508","48490433","48490093","48611300","59323845"]},"yKjEMbw":{"name":"Law","videoIds":["22372859","54577039","79799081","79620772","5270400","79799099"]},"6wGZWer":{"name":"Media Studies","videoIds":["33204878","47283314","3716275","47244475","3716274","47283102"]},"YvJbwpe":{"name":"Physics","videoIds":["6746382","9831360","6812332","34941552","6762513","37711980"]},"2jak8l9":{"name":"Psychology","videoIds":["38169050","3717591","57771705","6599207","3717590","57771703"]},"8ymN4z8":{"name":"Sociology","videoIds":["6590951","15923455","6599693","3714530","36503787","36508642"]}},"81":{"K6nGJr9":{"name":"Arts and Design","videoIds":["32998073","10916108","3714100","32102569","67277770","3714465"]},"2m2bo9d":{"name":"Business and Marketing","videoIds":["18654895","8973838","12955878","3715697","47583323","22563804"]},"AOe31wj":{"name":"Careers and Work","videoIds":["8194999","8973940","3715805","38132141","45692655","52874679"]},"xA28NqR":{"name":"Community and Youth Services","videoIds":["58155906","3714331","3714510","4144817","43307103","80005094"]},"vY2odPv":{"name":"Education and Training","videoIds":["3715013","49093031","3714891","24103433","3714590","51181808"]},"Jj7AgRb":{"name":"Events, Hospitality, Retail and Tourism","videoIds":["3713992","34061952","52183441","35409925","3716333","77936874"]},"nEeNnbE":{"name":"Foundation Skills and Personal Development","videoIds":["33174549","42500607","9264932","5952919","22713942","48155206"]},"m6eW7Nr":{"name":"Health and Healthcare","videoIds":["3714892","9375166","3714611","3714331","4144817","3714592"]},"kZWnqG6":{"name":"Information and Communications Technology","videoIds":["3716153","7897881","10584560","7869408","58308441","58307508"]},"xA28NgY":{"name":"Mathematics","videoIds":["26063133","3715838","3715050","23853803","23848364","25658497"]},"OqMG72A":{"name":"Science","videoIds":["38041517","38043803","22232723","6812332","3714819","3714462"]},"8ymN5wd":{"name":"Services, Trades and Engineering","videoIds":["52874679","39319138","26063133","20290415","3715837","3715359"]},"Jj7Agyy":{"name":"Society and Culture","videoIds":["18569471","3714314","3714937","49306628","3714486","45334884"]}},"82":{"vY2o59g":{"name":"Arts and Design","videoIds":["32102504","12598560","32998073","83017577","23740459","3716167"]},"Jj7AK52":{"name":"Business and Finance","videoIds":["50247134","8973838","18654895","12598127","71418012","51623323"]},"l5vPyNm":{"name":"Careers and Work","videoIds":["9312222","8191834","45664204","8973940","47579402","52251343"]},"r42NqxG":{"name":"Community and Youth Services","videoIds":["53259063","16132648","47207659","3714506","63984885","57771705"]},"l5vPybd":{"name":"Computing, Technology and Digital","videoIds":["33204878","3716153","35046405","10345707","58308441","48611300"]},"odelM2D":{"name":"Construction, Trades and Services","videoIds":["26063133","48689684","10565525","4146135","3715345","23988515"]},"dqgkNyd":{"name":"Education and Training","videoIds":["3715013","9080279","3714506","3714892","57771705","42500607"]},"7m0271k":{"name":"Engineering, Manufacturing and Electrotechnology","videoIds":["58308441","39319138","26066739","20290415","20306169","3716293"]},"vY2oqWG":{"name":"English Literature and Language","videoIds":["33204878","31993108","9227475","49066628","60059964","5790748"]},"Eol2zjR":{"name":"Functional Skills and Personal Development","videoIds":["9312222","9316945","42515350","5668137","9560804","5952919"]},"4rp97l9":{"name":"Health and Care","videoIds":["10896257","58127362","59279784","49948105","45818245","47198490"]},"yr33MLG":{"name":"Hospitality and Food","videoIds":["22733300","3714027","52183441","23853803","35409925","35410496"]},"G1Ea5n5":{"name":"Languages","videoIds":["9227475","45258243","82093433","82093931","60060323","82092337"]},"3b9N8dE":{"name":"Mathematics","videoIds":["26158674","26444801","48155206","52415295","50288809","51005229"]},"4rppnP7":{"name":"Retail and Sales","videoIds":["7181915","22552850","3715808","22710596","7183122","3716322"]},"RbG4Dm1":{"name":"Science","videoIds":["4683666","45819014","26686718","57887823","13023269","6812332"]},"W19xRxz":{"name":"Social Sciences","videoIds":["47575902","3715869","36220305","5270400","50269716","3714426"]},"8ymNvoR":{"name":"Sport and Leisure","videoIds":["3714261","7609298","57736364","32051772","3714278","3714126"]},"l5vPyM3":{"name":"Travel and Tourism","videoIds":["77720073","3716190","3713902","3716136","78706124","39406754"]}},"96":{"jlvNeWR":{"name":"Continuity and Change","videoIds":["86615390","3713876","3713847","47221954","54089199","54093263"]},"g7nMm5W":{"name":"English","videoIds":["80158955","81989077","83846323","9227475","3716165","41906817"]},"xAz6MEr":{"name":"Health","videoIds":["84954526","81072555","3713123","47177036","47106673","53093908"]},"ek8mbq8":{"name":"Identity, Culture and Organisation","videoIds":["85058309","33204878","16574869","42463035","47303205","3716220"]},"xAz6MMz":{"name":"Learning Languages","videoIds":["42463035","6820509","36689369","37642890","6810760","47076421"]},"zMgokW2":{"name":"Living World","videoIds":["84615984","3713221","3713363","45248896","7735364","51271242"]},"3br3wk2":{"name":"Material World","videoIds":["3713221","7334569","50877364","64098768","41939159","50877778"]},"PGlOJd7":{"name":"Mathematics and Statistics","videoIds":["80553902","25923580","43936635","48278518","42636988","48155955"]},"p0PjPqO":{"name":"Physical Education","videoIds":["84301769","53093878","38133887","51731303","49580107","50652578"]},"Nzm0ZmN":{"name":"Physical World","videoIds":["87005330","3713297","3713298","48022996","3713279","48117006"]},"l53E1xJ":{"name":"Place and Environment","videoIds":["81074045","3716795","3713237","51474669","51444188","38071125"]},"vYz6PzG":{"name":"Planet Earth and Beyond","videoIds":["84733189","7336963","3713212","47303205","48117006","50800584"]},"odnWyjD":{"name":"Religion and Philosophy","videoIds":["16574869","3715985","16630757","16588366","16611019","41056701"]},"5b4Aa90":{"name":"Study and Research Skills","videoIds":["83894192","83894453","8985721","47241826","47146893","51724079"]},"jlvNy46":{"name":"Technology","videoIds":["80734963","26619390","26617482","3716155","10584560","7391744"]},"zMgoGJR":{"name":"The Arts","videoIds":["3716727","32998073","3713842","3716220","49582171","38133111"]},"2mgJG06":{"name":"The Economic World","videoIds":["80309108","80309197","22372745","53428624","35629137","52197899"]}},"97":{"ZJv1MwP":{"name":"Agricultural and Horticultural Science","videoIds":["3714041","3714045","58745804","35226384","35396244","35312243"]},"2mgJOwe":{"name":"Biology","videoIds":["86393409","5803343","4683666","3779793","38041517","26340757"]},"8yRAlM5":{"name":"Business Studies","videoIds":["8191834","18654895","8973838","8973352","45664204","12955878"]},"JjaxboE":{"name":"Chemistry","videoIds":["86392392","3717296","45727359","57887823","22232723","7889149"]},"zMgolY5":{"name":"Earth and Space Science","videoIds":["86393854","80477860","3716170","7336963","3715871","23614105"]},"2mgJOn6":{"name":"Economics","videoIds":["3716292","47366972","3716149","42604877","50217751","50247062"]},"l53Eo7W":{"name":"English","videoIds":["82359369","3716185","5596313","3716233","9560804","23851791"]},"K6aqKL9":{"name":"Geography","videoIds":["80484980","84539107","86393854","5803343","3716200","3922246"]},"69zDgGr":{"name":"Health Education","videoIds":["83101516","3714819","58673657","42500607","3716135","3713123"]},"vYz6rr4":{"name":"History","videoIds":["81504973","3716774","3926454","3716189","4984056","18569471"]},"ek8mdr8":{"name":"Learning Languages","videoIds":["84613432","42463035","5449905","6820509","47075377","6810442"]},"PGlOK4n":{"name":"Legal Studies","videoIds":["80660282","81504973","81504911","47303205","78731895","53708941"]},"W1Epqgz":{"name":"Mathematics and Statistics","videoIds":["79705668","86387151","3715870","3714976","26066739","26158674"]},"p0Pvw1Y":{"name":"Media Studies","videoIds":["84603846","33204878","3716529","3937998","60034238","3716275"]},"69zDexn":{"name":"Physical Education","videoIds":["79061490","84301775","79062447","3714278","3714261","57736364"]},"vYz6wzo":{"name":"Physics","videoIds":["86392981","86014106","6746382","6747369","6812332","11746875"]},"kZJ8w49":{"name":"Psychology","videoIds":["42500607","3714892","42500587","42500472","39438648","16132408"]},"3br3vDa":{"name":"Religion and Philosophy","videoIds":["16574869","3716175","16630757","16588366","3715102","41056701"]},"g7nML2K":{"name":"Social Studies","videoIds":["80660282","7707302","5216877","3716210","22372922","67277770"]},"vYz6wdN":{"name":"Sociology","videoIds":["6590951","57771705","6605596","15923455","57771703","36503891"]},"0wzWnml":{"name":"Study and Research Skills","videoIds":["83894192","85464744","8985721","5952919","77911106","80399453"]},"K6aqWxL":{"name":"Technology","videoIds":["83017625","3714027","3716153","26617069","7897881","10550689"]},"agN12dl":{"name":"The Arts","videoIds":["32998073","10916108","3716167","3716192","3716206","3716220"]},"wNzd0gG":{"name":"Vocational Education and Careers","videoIds":["85795501","8191834","16168801","16237850","45664204","47241826"]}}}'),u={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!c[e.preferredPresentation.id])}},m=t.T.encloseNamespace("onboarding.constants"),v={"welcome-video":{id:"welcome-video",getPageTitle:function(){return m("welcomeVideoPageTitle")},predicate:function(e){return!!o.m.shouldRedirectToOnboarding(e.masterUser,e.customer,e.hasPermissions,e.presentations)&&e.instanceRegion===r.b.US},setting:d.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:a.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return m("selectRoleHeading")},getWidgetDescription:function(){return m("selectRoleMessage")}},"select-role":{id:"select-role",getPageTitle:function(){return m("selectRolePageTitle")},predicate:function(e){var i,n;return!o.m.hasNonBdmTrial(e.hasPermissions)||!e.jobTitle||!!(null===(n=null===(i=e.userSettings)||void 0===i?void 0:i[d.E.HasCompletedOnboardingStepSelectRole])||void 0===n?void 0:n.value)},setting:d.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:a.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return m("selectRoleHeading")},getWidgetDescription:function(){return m("selectRoleMessage")}},"usage-intention":{id:"usage-intention",getPageTitle:function(){return m("usageIntentionPageTitle")},predicate:function(){return!0},setting:d.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:a.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return m("usageIntentionHeading")},getWidgetDescription:function(){return m("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",getPageTitle:function(){return m("subjectsSummaryPageTitle")},predicate:function(e){var i,n,t,a,o,r,s;return!!(null===(i=e.preferredSubjects)||void 0===i?void 0:i.length)&&!((null===(t=null===(n=e.userSettings)||void 0===n?void 0:n[d.E.HasCompletedOnboardingStepSubjects])||void 0===t?void 0:t.value)||(null===(o=null===(a=e.userSettings)||void 0===a?void 0:a[d.E.HasCompletedOnboardingStepSelectCurriculum])||void 0===o?void 0:o.value)||(null===(s=null===(r=e.userSettings)||void 0===r?void 0:r[d.E.HasCompletedOnboardingStepSchoolLevel])||void 0===s?void 0:s.value))},setting:d.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:a.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return m("subjectsHeading")},getWidgetDescription:function(){return m("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",getPageTitle:function(){return m("schoolLevelPageTitle")},predicate:function(e){var i,n;return!(v["subjects-summary"].predicate(e)||(null===(i=e.presentations)||void 0===i?void 0:i.length)<2||(null===(n=e.presentations)||void 0===n?void 0:n.some(function(e){return l.i.getMappedPresentationLevel(e.learningLevel)===s.p.Level_4})))},setting:d.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:a.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!v["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return m(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return m(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",getPageTitle:function(){return m("selectCurriculumPageTitle")},predicate:function(e){var i;return!(v["subjects-summary"].predicate(e)||(null===(i=e.curriculums)||void 0===i?void 0:i.length)<2)},setting:d.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:a.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!v["subjects-summary"].predicate(e)},getWidgetHeading:function(){return m("selectCurriculumHeading")},getWidgetDescription:function(){return m("selectCurriculumMessage")}},subjects:{id:"subjects",getPageTitle:function(){return m("subjectsPageTitle")},predicate:function(e){return!v["subjects-summary"].predicate(e)},setting:d.E.HasCompletedOnboardingStepSubjects,analyticsLocation:a.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!v["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return m(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return m("subjectsMessage")}},"select-videos":{id:"select-videos",getPageTitle:function(){return m("selectVideosPageTitle")},predicate:u.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:a.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return m("selectVideosHeading")},getWidgetDescription:function(e){return m(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",getPageTitle:function(){return m("createPlaylistPageTitle")},predicate:u.CreatePlaylist,setting:d.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:a.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return m("createPlaylistHeading")},getWidgetDescription:function(){return m("createPlaylistMessage")}}}},19476:(e,i,n)=>{n.d(i,{m:()=>y});var t=n(75896),a=n(110),o=n(43306),r=n(55171),s=n(16714),d=n(87792),l=n(64818),c=n(57900),u="onboarding:persona",m="onboarding:had:job:title";function v(e,i){return e?"".concat(e,":").concat(i):i}function g(e,i){var n=c.SG.get(i),t=v(e,i);return null!==n&&(c.SG.remove(i),c.SG.set(t,n)),c.SG.get(t)}function f(e,i,n){c.SG.set(v(e,i),n)}var p=function(e,i){var n=l.l.getPersonaFromJobTitle(i);f(e,u,n||"teacher")};function h(e,i){(null==i||i>e.length)&&(i=e.length);for(var n=0,t=Array(i);n<i;n++)t[n]=e[n];return t}var y={getOnboardingPathway:function(e){var i=e.jobTitle,n=e.userSettings,t=e.presentations,a=e.curriculums,r=e.preferredPresentation,s=e.preferredSubjects,c=e.hasPlaylist,m=e.appLink,v=e.appLinks,f=e.masterUser,h=e.customer,I=e.currentUser,C=e.hasPermissions,S=g(null==I?void 0:I.id,u);!S&&i&&p(null==I?void 0:I.id,i),S&&S!==l.l.getPersonaFromJobTitle(i)&&p(null==I?void 0:I.id,i);var b={jobTitle:i,hasPlaylist:c,masterUser:f,customer:h,presentations:t||[],curriculums:a||[],preferredPresentation:r,preferredSubjects:s,instanceRegion:null==I?void 0:I.instanceRegion,hasPermissions:C,userSettings:n},P=y.getCurrentScreen(m,v),_=Object.values(o.H),L={},T=null,E=null,A=0,M=0,R=!0;return _.forEach(function(e){var i;if(e.predicate(b)){E||(E=e.id);var t=d.x.get(n,e.setting);t||(R=!1),P||t||(P=e.id),A++,L[e.id]={isComplete:t,next:null,previous:T,number:A,includeInProgressBar:!1},e.includeInProgressBar(b)&&(M++,L[e.id].progressBarNumber=M,L[e.id].includeInProgressBar=!0),(null===(i=e.branches)||void 0===i?void 0:i.length)&&e.branches.forEach(function(i){L[i]={next:e.id,previous:e.id,includeInProgressBar:!1}}),T&&(L[T].next=e.id),T=e.id}}),P||R||(P=E),{screens:L,currentScreen:P,totalScreens:A,totalScreensInProgressBar:M,hasCompletedAllSteps:R}},getNextAppLink:function(e,i){var n=e.screens[e.currentScreen],t=null==n?void 0:n.next;return t?i[t]:null},getPreviousAppLink:function(e,i){var n=e.screens[e.currentScreen],t=null==n?void 0:n.previous;return t?i[t]:null},getCurrentScreen:function(e,i){var n=Object.entries(i).find(function(i){return(n=i,t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,i){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,a,o,r,s=[],d=!0,l=!1;try{if(o=(n=n.call(e)).next,0===i){if(Object(n)!==n)return;d=!1}else for(;!(d=(t=o.call(n)).done)&&(s.push(t.value),s.length!==i);d=!0);}catch(e){l=!0,a=e}finally{try{if(!d&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(l)throw a}}return s}}(n,t)||function(e,i){if(e){if("string"==typeof e)return h(e,i);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)?h(e,i):void 0}}(n,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.")}())[1].action===e.action;var n,t});return n?t.m.first(n):null},getProgress:function(e){var i,n,t,a=null===(i=e.screens[e.currentScreen])||void 0===i?void 0:i.number,o=null===(n=e.screens[e.currentScreen])||void 0===n?void 0:n.progressBarNumber,r=e.totalScreens,s=e.totalScreensInProgressBar,d=o/s*100,l=(a-1)/r*100;return{showProgressBar:null===(t=e.screens[e.currentScreen])||void 0===t?void 0:t.includeInProgressBar,currentStepNumber:a,currentStepProgressBarNumber:o,totalScreens:r,totalScreensInProgressBar:s,progressBarPercentage:d,overallPercentage:l}},hasNonBdmTrial:function(e){return e(s.C.ViewTrialUpgrade)},getOnboardingScreenStates:function(e){var i=[],n=[];return Object.keys(e.screens).forEach(function(t){e.screens[t].isComplete?i.push(t):n.push(t)}),{completedScreens:i,incompleteScreens:n}},shouldRedirectToOnboarding:function(e,i,n,t){var o,s,d,l;return(null==e?void 0:e.dateCreated)>=function(e,i){var n="2024-03-26";return e.some(function(e){return e.id.toString()===r.e.PresentationIds.AU_TERTIARY.toString()||e.id.toString()===r.e.PresentationIds.UK_TERTIARY.toString()})?"2024-11-28":a.O.isBefore(null==i?void 0:i.dateCreated,n)?"2024-12-11":n}(t,i)||!!y.hasNonBdmTrial(n)&&(d=null==e?void 0:e.id,l=null===(s=null===(o=null==e?void 0:e.userProfile)||void 0===o?void 0:o.metadata)||void 0===s?void 0:s.jobTitle,"boolean"!=typeof g(d,m)&&f(d,m,!!l),!g(d,m))}}},31015:(e,i,n)=>{n.d(i,{u:()=>p});var t,a=n(75896),o=n(110),r=n(43306),s=n(43500),d=n(65728),l=n(78479),c=n(42308),u=n(57401),m=n(21366);function v(e){return v="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},v(e)}function g(e,i,n){return(i=function(e){var i=function(e){if("object"!=v(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(i)?i:i+""}(i))in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function f(e,i){(null==i||i>e.length)&&(i=e.length);for(var n=0,t=Array(i);n<i;n++)t[n]=e[n];return t}var p=(g(g(g(g(g(g(g(g(g(g(t={},c.z.CuratedMedia,{getCustomParams:function(){return{}}}),c.z.PlaylistMedia,{getCustomParams:function(){return{}}}),c.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 n;return null===(n=null==e?void 0:e.series)||void 0===n?void 0:n.call(e,a.m.first(i))}}),c.z.ClassificationMedia,{getCustomParams:function(){return{}}}),c.z.LatestReleasedVideos,{getCustomParams:function(){return m.S.getLatestReleasedTimeRange()}}),c.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)}}),c.z.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),c.z.CompanyVideos,{getCustomParams:function(){return{}}}),c.z.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),c.z.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),g(g(g(g(g(g(g(g(g(g(t,c.z.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),c.z.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),c.z.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),c.z.CuratedClassifications,{getCustomParams:function(){return{}}}),c.z.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),c.z.Classifications,{getCustomParams:function(e,i){if(i===u.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{}}}),c.z.ClassificationLatestReleasedVideos,{getCustomParams:function(){return m.S.getLatestReleasedTimeRange()}}),c.z.SpecialEventClassifications,{getCustomParams:function(){return{from:o.O.format(new Date,"YYYY-MM-DD")}}}),c.z.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),c.z.CuratedSeries,{getCustomParams:function(){return{}}}),g(g(g(g(g(g(g(g(g(g(t,c.z.CuratedPlaylists,{getCustomParams:function(){return{}}}),c.z.Blurb,{getCustomParams:function(){return{}}}),c.z.DynamicBlurb,{getCustomParams:function(e){return e===l.f.OnboardingSteps?{customerSetting:[d.E.HasNewOnboarding],userSettings:[].concat((i=Object.values(r.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 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)?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.")}()),[d.E.HasCompletedOnboardingV2,d.E.HasExitedOnboarding])}:{};var i}}),c.z.AuthorReviewer,{getCustomParams:function(){return{}}}),c.z.Faq,{getCustomParams:function(){return{}}}),c.z.CuratedCompanies,{getCustomParams:function(){return{}}}),c.z.Ratings,{getCustomParams:function(){return{}}}),c.z.Presentations,{getCustomParams:function(){return{}}}),c.z.UpcomingLivestreams,{getCustomParams:function(){return{from:o.O.format(new Date,"YYYY-MM-DD")}}}),c.z.CuratedMultimedia,{getCustomParams:function(){return{}}}),g(g(g(g(g(g(g(g(g(g(t,c.z.ClassificationPlaylists,{getCustomParams:function(){return{}}}),c.z.ClassificationSeries,{getCustomParams:function(){return{}}}),c.z.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),c.z.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),c.z.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),c.z.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}),c.z.SearchRelevantTopics,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchRelevantTopics],type:[s.ZE.Classification]})}}),c.z.SearchCompanies,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchCompanies],type:[s.ZE.Company]})}}),c.z.SearchSeries,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchSeries],type:[s.ZE.Series]})}}),c.z.SearchPlaylists,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchPlaylists],type:[s.ZE.Playlist]})}}),g(g(g(g(g(g(g(g(g(g(t,c.z.SearchMyVideosFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchMyVideosFolder],source:[s.fi.MyVideos]})}}),c.z.SearchMySchoolLibraryFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchMySchoolLibraryFolder],source:[s.fi.School]})}}),c.z.SearchMyVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchMyVideos],source:[s.fi.MyVideos]})}}),c.z.SearchMySchoolLibraryVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchMySchoolLibraryVideos],source:[s.fi.School]})}}),c.z.SearchExchangeArchive,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[c.z.SearchExchangeArchive],source:[s.fi.ExchangeArchive]})}}),c.z.SearchRelatedResults,{getCustomParams:function(){return{}}}),c.z.SearchTopResults,{getCustomParams:function(){return{}}}),c.z.ClassificationCurriculumMedia,{getCustomParams:function(){return{}}}),c.z.SearchTags,{getCustomParams:function(){return{}}}),c.z.SearchCurriculumCode,{getCustomParams:function(){return{}}}),g(t,c.z.SearchSuggestions,{getCustomParams:function(){return{}}}))},85594:(e,i,n)=>{var t;n.d(i,{A:()=>t}),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(t||(t={}))},78417:(e,i,n)=>{var t;n.d(i,{r:()=>t}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(t||(t={}))},72639:(e,i,n)=>{var t;n.d(i,{p:()=>t}),function(e){e[e.Level_1=1]="Level_1",e[e.Level_2=2]="Level_2",e[e.Level_3=3]="Level_3",e[e.Level_4=4]="Level_4"}(t||(t={}))},44829:(e,i,n)=>{var t,a;n.d(i,{Q:()=>t}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(t||(t={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(a||(a={}))},78479:(e,i,n)=>{var t;n.d(i,{f:()=>t}),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.ThumbnailFixedListMediaSmall="thumbnail_fixed_list_media_small",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.ThumbnailFixedListFolderSmall="thumbnail_fixed_list_folder_small",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.CurriculumResourcesAccordion="curriculum_resources_accordion",e.CurriculumCodeSearchResults="curriculum_code_search_results",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.PosterFixedListLarge="poster_fixed_list_large",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",e.TagSlidingList="tag_sliding_list",e.SearchSuggestionsBlurb="search_suggestions_blurb"}(t||(t={}))},42308:(e,i,n)=>{var t;n.d(i,{z:()=>t}),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.ClassificationCurriculumMedia="classification_curriculum_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",e.SearchRelevantTopics="search_relevant_topics",e.SearchCompanies="search_companies",e.SearchTopResults="search_top_results",e.SearchSeries="search_series",e.SearchPlaylists="search_playlists",e.SearchMyVideosFolder="search_my_videos_folders",e.SearchMySchoolLibraryFolder="search_my_school_library_folders",e.SearchMyVideos="search_my_videos",e.SearchMySchoolLibraryVideos="search_my_school_library_videos",e.SearchExchangeArchive="search_exchange_archive",e.SearchRelatedResults="search_related_results",e.SearchTags="search_tags",e.SearchCurriculumCode="search_curriculum_code",e.SearchSuggestions="search_suggestions"}(t||(t={}))},21366:(e,i,n)=>{n.d(i,{S:()=>d});var t=n(75896),a=n(110),o=n(31015),r=(n(76881),n(86613),n(42308)),s=n(57401),d={onSelectCuratedObject:function(e,i){var n=Object.assign(Object.assign({},i.values.data),{objectIds:t.m.addOrRemoveImmutable(i.values.data.objectIds||[],e.id)});i.setFieldValue("data",n),i.setTouched(Object.assign(Object.assign({},i.touched),{data:{objectIds:!0}}))},onRemoveCuratedObject:function(e,i){var n=Object.assign(Object.assign({},i.values.data),{objectIds:i.values.data.objectIds.filter(function(i){return i!==e})});i.setFieldValue("data",n)},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.ClassificationCurriculum?"classification:".concat(e.classificationId,":curriculum"):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,n=e.companyId,t=e.targetType,a=e.classificationId;return t===s.ku.Discover?d.getDashboardTarget({targetType:s.ku.Discover,presentationId:i}):t===s.ku.MoviesAndTv?d.getDashboardTarget({targetType:s.ku.MoviesAndTv,presentationId:i}):t===s.ku.Company?d.getDashboardTarget({targetType:s.ku.Company,presentationId:i,companyId:n}):t===s.ku.Classification?d.getDashboardTarget({targetType:s.ku.Classification,classificationId:a}):t===s.ku.ClassificationDirectory?d.getDashboardTarget({targetType:s.ku.ClassificationDirectory,classificationId:a}):t===s.ku.ClassificationCurriculum?d.getDashboardTarget({targetType:s.ku.ClassificationCurriculum,classificationId:a}):void 0},getDashboardTargetInfo:function(e){var i,n=d.getDashboardTargetType(e),t=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.split(":");return n===s.ku.Discover?{targetType:s.ku.Discover,presentationId:t[2]}:n===s.ku.Classification?{targetType:s.ku.Classification,classificationId:t[1]}:n===s.ku.ClassificationDirectory?{targetType:s.ku.ClassificationDirectory,classificationId:t[1]}:n===s.ku.ClassificationCurriculum?{targetType:s.ku.ClassificationCurriculum,classificationId:t[1]}:n===s.ku.MoviesAndTv?{targetType:s.ku.MoviesAndTv,presentationId:t[2]}:n===s.ku.Company?{targetType:s.ku.Company,companyId:t[1],presentationId:t[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("curriculum")?s.ku.ClassificationCurriculum:s.ku.Classification:e.target.startsWith("moviesAndTv")?s.ku.MoviesAndTv:e.target.startsWith("company")?s.ku.Company:null:null},isType:function(e,i){return d.getDashboardTargetType(e)===i},isCuratedDashboard:function(e){var i=e,n=d.getDashboardTargetType(i);return n===s.ku.Discover||n===s.ku.Classification||n===s.ku.ClassificationDirectory||n===s.ku.ClassificationCurriculum||n===s.ku.MoviesAndTv||n===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,n,t,a){var s={};return t&&(s.audienceId=t),e===r.z.ClassificationCurriculumMedia&&(s.curriculumPresentationId=a),Object.assign(Object.assign({},s),o.u[e].getCustomParams(i,n))},isSystemGeneratedDashboard:function(e){var i=new Set([r.z.ClassificationFeaturedVideo,r.z.ClassificationPinnedVideos,r.z.ClassificationPlaylists,r.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.ClassificationCurriculum].includes(null==e?void 0:e.targetType)}}},45778:(e,i,n)=>{n.d(i,{G:()=>a});var t=n(4594),a={isType:function(e,i){var n;return(null==e?void 0:e.typeId)?e.typeId===i:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===t.E[i].toLowerCase()},isResource:function(e){return a.isType(e,t.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},49542:(e,i,n)=>{n.d(i,{d:()=>f});var t,a=n(32735),o=n(75896),r=n(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(t||(t={}));var s,d=n(78479),l=n(42308),c=n(57401),u=n(31015),m=n(4594),v=n(45778);function g(e,i){(null==i||i>e.length)&&(i=e.length);for(var n=0,t=Array(i);n<i;n++)t[n]=e[n];return t}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(s||(s={}));var f={getSliderAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:r.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:r.Vw.Click,location:r.LZ.SlidingList,entity:r.py.Widget,descriptor:r._S.Title}},useGetContent:function(e,i,n,t,o){return a.useMemo(function(){var a;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var r,s=null!==(a=null==t?void 0:t.reduce(function(e,i){return e[i.id]=i,e},{}))&&void 0!==a?a:{},d=o.reduce(function(e,i){return e[i]=!0,e},{}),l=function(e){if(Array.isArray(e))return g(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 g(e,i);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)?g(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.")}(),c=l.sort(function(e,i){var n,t,a,o;if(!("id"in e)||!("id"in i))return 0;var r=null!==(t=null===(n=s[e.id])||void 0===n?void 0:n.index)&&void 0!==t?t:l.findIndex(function(i){return"id"in i&&i.id===e.id}),d=null!==(o=null===(a=s[i.id])||void 0===a?void 0:a.index)&&void 0!==o?o:l.findIndex(function(e){return"id"in e&&e.id===i.id});return r<d?-1:r>d?1:0});if(f.isBelowContentMinimum(c,i)&&!n)return{content:[],unfilteredContent:c};var u=c.filter(function(e){var i;return!(null===(i=s["id"in e&&e.id])||void 0===i?void 0:i.hidden)&&!d["id"in e&&e.id]});return{content:u,unfilteredContent:c}},[e,t])},isBelowContentMinimum:function(e,i){var n,t=(null===(n=u.u[i])||void 0===n?void 0:n.minContent)||0;return(null==e?void 0:e.length)<t},getCustomAppLink:function(e){var i,n,t,a,o,r;return"metadata"in e&&"appLinks"in e&&"appLink"in e.metadata?(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===c.OL.LatestReleases&&"latestReleases"in e.appLinks?null===(t=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===t?void 0:t.call(n):(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===c.OL.ExploreAllTopics&&"allTopics"in e.appLinks&&"presentation"in e?null===(r=null===(o=e.appLinks)||void 0===o?void 0:o.allTopics)||void 0===r?void 0:r.call(o,e.presentation.id):null:null},getWidgetStatus:function(e){var i=e.status;if("string"==typeof i)switch(i){case s.Archived:i=t.Archived;break;case s.Published:i=t.Published;break;case s.Draft:i=t.Draft}return i},formatResponseData:function(e,i){var n=e.content;if(!n)return e;if("author"in n)return e.content=[n],e;switch("data"in n?e.content=n.data:Array.isArray(n)||(e.content=[n]),e.widgetId){case l.z.ClassificationSeries:e.content=e.content.filter(function(e){var i;return"tallPoster"in e&&!!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)});break;case l.z.ClassificationPlaylists:e.content=e.content.filter(function(e){var i;return"cover"in e&&!!(null===(i=e.cover)||void 0===i?void 0:i.id)});break;case l.z.ContinueWatching:e.content=e.content.map(function(e){return"object"in e&&e.object});default:break;case l.z.Presentations:e.content=e.content.filter(function(e){var n;return"id"in e&&e.id.toString()!==(null===(n=null==i?void 0:i.id)||void 0===n?void 0:n.toString())})}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===l.z.Blurb},canDisplayOnScreenSize:function(e,i,n){return i!==l.z.Blurb||n!==d.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case l.z.CompanyLatestReleasedVideo:case l.z.CompanyVideos:case l.z.UpcomingLivestreams:return!0;default:return!1}},getVideoContent:function(e){var i=o.m.first(e);return v.G.isType(i,m.E.Series)?i.videos.data:e},showRemoveButton:function(e){return e===l.z.ContinueWatching}}},87114:(e,i,n)=>{n.d(i,{i:()=>v});var t,a=n(23481);!function(e){e.Root="root"}(t||(t={}));var o=n(55171),r=n(52641),s=n(85594),d=n(24598),l=n(72639),c=n(44829),u=n(57401),m=a.T.encloseNamespace("subjects.utils"),v={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===s.A.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?l.p[e]:e},getMappedPresentationBackgroundColourClass:function(e){switch(v.getMappedPresentationLevel(e)){case l.p.Level_1:return"bg-indigo";case l.p.Level_3:return"bg-blue";case l.p.Level_4:return"bg-navy";default:case l.p.Level_2:return"bg-green"}},getMappedPresentationBackgroundColourCode:function(e){switch(v.getMappedPresentationLevel(e)){case l.p.Level_1:return"#7A76E8";case l.p.Level_3:return"#38A2E8";case l.p.Level_4:return"#1B2D71";default:case l.p.Level_2:return"#5DC786"}},getPresentationLevelImage:function(e,i){switch(v.getMappedPresentationLevel(e)){case l.p.Level_1:if("topic-banner"===i)return o.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===i)return o.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===i)return o.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===i)return o.e.Images.Level_1.TOPIC_TALL_POSTER;case l.p.Level_2:if("topic-banner"===i)return o.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===i)return o.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===i)return o.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===i)return o.e.Images.Level_2.TOPIC_TALL_POSTER;default:case l.p.Level_3:if("topic-banner"===i)return o.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===i)return o.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===i)return o.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===i)return o.e.Images.Level_3.TOPIC_TALL_POSTER;case l.p.Level_4:if("topic-banner"===i)return o.e.Images.Level_4.TOPIC_BANNER;if("cover"===i)return o.e.Images.Level_4.TOPIC_COVER}},getExploreAllTopicsTitle:function(e,i){return i<r._.MULTI_PRESENTATION_THRESHOLD?m("exploreAllTopicsHeading"):m("exploreAllTopicsDynamicHeading",{presentationName:e})},getExploreAllTopicsBreadcrumb:function(e,i){return i<r._.MULTI_PRESENTATION_THRESHOLD?m("exploreAllTopicsHeading"):e},isFollowing:function(e){var i,n;return 1===(null===(n=null===(i=null==e?void 0:e.followers)||void 0===i?void 0:i.data)||void 0===n?void 0:n.length)},isTopLevelTopic:function(e){var i;return!!(null===(i=null==e?void 0:e.parentIds)||void 0===i?void 0:i.includes(t.Root))},canHaveVideoListTab:function(e){var i;return null===(i=null==e?void 0:e.widgets)||void 0===i?void 0:i.some(function(e){var i;return null===(i=e.metadata)||void 0===i?void 0:i.showInTableOfContents})},getActiveTopicTab:function(e,i){return v.isTopLevelTopic(e)?i===u.ku.Classification?"new-releases":"all-topics":i===u.ku.Classification?"curated-topic":"curriculum"},getCounts:function(e){var i,n,t=null!==(n=null===(i=null==e?void 0:e.metadata)||void 0===i?void 0:i.childClassificationCount)&&void 0!==n?n:0;return(null==e?void 0:e.externalMetadata)?{childClassificationCount:t,dashboardVideoCount:e.externalMetadata.dashboardVideoCount||0,childDashboardVideoCount:e.externalMetadata.childDashboardVideoCount||0,dashboardResourceCount:e.externalMetadata.dashboardResourceCount||0,childDashboardResourceCount:e.externalMetadata.childDashboardResourceCount||0,dashboardNewVideosCount:e.externalMetadata.dashboardNewVideosCount||0,childDashboardNewVideoCount:e.externalMetadata.childDashboardNewVideoCount||0}:{childClassificationCount:t,dashboardVideoCount:0,childDashboardVideoCount:0,dashboardResourceCount:0,childDashboardResourceCount:0,dashboardNewVideosCount:0,childDashboardNewVideoCount:0}},isTertiary:function(e){return(null==e?void 0:e.toString())===o.e.PresentationIds.AU_TERTIARY.toString()||(null==e?void 0:e.toString())===o.e.PresentationIds.UK_TERTIARY.toString()},isNewZealandTopic:function(e){return(null==e?void 0:e.toString())===o.e.PresentationIds.NZ_PRIMARY.toString()||(null==e?void 0:e.toString())===o.e.PresentationIds.NZ_SECONDARY.toString()},isInternationalTopic:function(e){return(null==e?void 0:e.toString())===o.e.PresentationIds.INT_PRIMARY.toString()||(null==e?void 0:e.toString())===o.e.PresentationIds.INT_SECONDARY.toString()},isMtv:function(e){var i;return!!(null===(i=null==e?void 0:e.tags)||void 0===i?void 0:i.data)&&e.tags.data.some(function(e){return e.tagType===c.Q.Curation&&e.name===d.b.MOVIES_AND_TV})},sortByLearningLevel:function(e,i,n){var t=n.find(function(i){var n;return(null==i?void 0:i.id.toString())===(null===(n=null==e?void 0:e.presentationId)||void 0===n?void 0:n.toString())}),a=n.find(function(e){var n;return(null==e?void 0:e.id.toString())===(null===(n=null==i?void 0:i.presentationId)||void 0===n?void 0:n.toString())});return l.p[null==t?void 0:t.learningLevel]-l.p[null==a?void 0:a.learningLevel]}}}}]);