@clickview/streamable-learning 0.31.0 → 0.31.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
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.US_ELEMENTARY:case a.e.PresentationIds.AU_PRIMARY: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
+ "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}}}}]);