@clickview/streamable-learning 0.3.0 → 0.3.1-rc.1

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 (81) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{985-streamable-learning-5b24c1851a.chunk.css → 163-streamable-learning-02ddf096ae.chunk.css} +8 -5
  3. package/dist/css/{677-streamable-learning-078d160389.chunk.css → 290-streamable-learning-b31ef33a85.chunk.css} +1 -1
  4. package/dist/css/{888-streamable-learning-c0a46eda1a.chunk.css → 377-streamable-learning-2f0a2f8eb0.chunk.css} +3 -3
  5. package/dist/css/{154-streamable-learning-75a527f710.chunk.css → 506-streamable-learning-d5d57d157f.chunk.css} +1 -1
  6. package/dist/css/{650-streamable-learning-1b19dfc8dd.chunk.css → 650-streamable-learning-fa6c1f1003.chunk.css} +1 -1
  7. package/dist/css/761-streamable-learning-77ef8960f0.chunk.css +6 -0
  8. package/dist/css/{297-streamable-learning-62f3804bc8.chunk.css → 910-streamable-learning-38dab89c6c.chunk.css} +0 -3
  9. package/dist/css/{streamable-learning-83ee08297c.css → streamable-learning-d37e4c8d60.css} +1 -1
  10. package/dist/languages/en.json +1 -1
  11. package/dist/scripts/{146-19048cc544-streamable-learning.chunk.js → 146-597d7e3082-streamable-learning.chunk.js} +1 -1
  12. package/dist/scripts/163-b982517cc2-streamable-learning.chunk.js +2 -0
  13. package/dist/scripts/{173-740d2207ab-streamable-learning.chunk.js → 173-a501018e4d-streamable-learning.chunk.js} +1 -1
  14. package/dist/scripts/{254-f528666dee-streamable-learning.chunk.js → 254-7849dedd0f-streamable-learning.chunk.js} +1 -1
  15. package/dist/scripts/290-c62b5b5155-streamable-learning.chunk.js +1 -0
  16. package/dist/scripts/308-512464c006-streamable-learning.chunk.js +1 -0
  17. package/dist/scripts/376-1e5979c2a1-streamable-learning.chunk.js +2 -0
  18. package/dist/scripts/377-52d1a0c1cd-streamable-learning.chunk.js +2 -0
  19. package/dist/scripts/482-b6d04c79bd-streamable-learning.chunk.js +1 -0
  20. package/dist/scripts/487-3a9cad0ec2-streamable-learning.chunk.js +1 -0
  21. package/dist/scripts/500-54fb1362fb-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/506-d2c98b1917-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/{513-f30722c6d3-streamable-learning.chunk.js → 513-0decd08fd9-streamable-learning.chunk.js} +1 -1
  24. package/dist/scripts/596-9712ebc581-streamable-learning.chunk.js +1 -0
  25. package/dist/scripts/65-d7f708e85f-streamable-learning.chunk.js +2 -0
  26. package/dist/scripts/650-bb8e2b11d8-streamable-learning.chunk.js +1 -0
  27. package/dist/scripts/707-e610ec6f00-streamable-learning.chunk.js +1 -0
  28. package/dist/scripts/761-4a9bd152fc-streamable-learning.chunk.js +2 -0
  29. package/dist/scripts/761-4a9bd152fc-streamable-learning.chunk.js.LICENSE.txt +1 -0
  30. package/dist/scripts/771-fe40769986-streamable-learning.chunk.js +1 -0
  31. package/dist/scripts/{872-e21bb81933-streamable-learning.chunk.js → 872-7642dabb85-streamable-learning.chunk.js} +1 -1
  32. package/dist/scripts/910-3b6bc5bb83-streamable-learning.chunk.js +1 -0
  33. package/dist/scripts/933-743cfeb04b-streamable-learning.chunk.js +1 -0
  34. package/dist/scripts/{934-83c6e5f3a1-streamable-learning.chunk.js → 934-944fb24dbc-streamable-learning.chunk.js} +1 -1
  35. package/dist/scripts/937-72d3082716-streamable-learning.chunk.js +1 -0
  36. package/dist/scripts/{176-46cdc42b54-streamable-learning.chunk.js → 993-640ab6fbe1-streamable-learning.chunk.js} +1 -1
  37. package/dist/scripts/bundle-bfe4f999c9.min.js +2 -0
  38. package/dist/scripts/{pdf.worker.entry-0b35cddafa.min.worker.js → pdf.worker.entry-5059106716.min.worker.js} +1 -1
  39. package/package.json +1 -1
  40. package/dist/css/21-streamable-learning-a9c96622d9.chunk.css +0 -2
  41. package/dist/scripts/154-5a195cb74f-streamable-learning.chunk.js +0 -1
  42. package/dist/scripts/21-a5cffdcc0f-streamable-learning.chunk.js +0 -1
  43. package/dist/scripts/262-d0129c71af-streamable-learning.chunk.js +0 -2
  44. package/dist/scripts/297-35c42f36d2-streamable-learning.chunk.js +0 -1
  45. package/dist/scripts/542-3197a59d9e-streamable-learning.chunk.js +0 -1
  46. package/dist/scripts/561-dcf206b282-streamable-learning.chunk.js +0 -1
  47. package/dist/scripts/587-233c1a5b6a-streamable-learning.chunk.js +0 -1
  48. package/dist/scripts/596-8ca72f24b2-streamable-learning.chunk.js +0 -1
  49. package/dist/scripts/639-ec1b4101eb-streamable-learning.chunk.js +0 -1
  50. package/dist/scripts/65-afa26c23fb-streamable-learning.chunk.js +0 -2
  51. package/dist/scripts/650-07d551c90e-streamable-learning.chunk.js +0 -1
  52. package/dist/scripts/677-82fcf92ce8-streamable-learning.chunk.js +0 -1
  53. package/dist/scripts/680-e666641b3b-streamable-learning.chunk.js +0 -1
  54. package/dist/scripts/838-59433153e5-streamable-learning.chunk.js +0 -1
  55. package/dist/scripts/853-f1bdff4b42-streamable-learning.chunk.js +0 -1
  56. package/dist/scripts/888-a9ec631497-streamable-learning.chunk.js +0 -2
  57. package/dist/scripts/912-dc417b8ba7-streamable-learning.chunk.js +0 -1
  58. package/dist/scripts/933-09bf5050c2-streamable-learning.chunk.js +0 -1
  59. package/dist/scripts/974-ab1d535355-streamable-learning.chunk.js +0 -1
  60. package/dist/scripts/985-e1fd10c61f-streamable-learning.chunk.js +0 -2
  61. package/dist/scripts/bundle-5f6c5c509a.min.js +0 -2
  62. /package/dist/css/{561-streamable-learning-87571ab68f.chunk.css → 487-streamable-learning-87571ab68f.chunk.css} +0 -0
  63. /package/dist/css/{838-streamable-learning-b5d226bbb6.chunk.css → 500-streamable-learning-b5d226bbb6.chunk.css} +0 -0
  64. /package/dist/scripts/{888-a9ec631497-streamable-learning.chunk.js.LICENSE.txt → 163-b982517cc2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  65. /package/dist/scripts/{284-bc28ced024-streamable-learning.chunk.js → 284-6c7dcea81d-streamable-learning.chunk.js} +0 -0
  66. /package/dist/scripts/{262-d0129c71af-streamable-learning.chunk.js.LICENSE.txt → 376-1e5979c2a1-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  67. /package/dist/scripts/{985-e1fd10c61f-streamable-learning.chunk.js.LICENSE.txt → 377-52d1a0c1cd-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  68. /package/dist/scripts/{446-cea6b4d373-streamable-learning.chunk.js → 446-1a2f2109f9-streamable-learning.chunk.js} +0 -0
  69. /package/dist/scripts/{498-8608aa0951-streamable-learning.chunk.js → 498-0309bc3a47-streamable-learning.chunk.js} +0 -0
  70. /package/dist/scripts/{50-b87d4b42b6-streamable-learning.chunk.js → 50-3a07bf6e83-streamable-learning.chunk.js} +0 -0
  71. /package/dist/scripts/{518-4c184dafa4-streamable-learning.chunk.js → 518-96cb1fb356-streamable-learning.chunk.js} +0 -0
  72. /package/dist/scripts/{65-afa26c23fb-streamable-learning.chunk.js.LICENSE.txt → 65-d7f708e85f-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  73. /package/dist/scripts/{662-ff56331fc6-streamable-learning.chunk.js → 662-1d6f5bf387-streamable-learning.chunk.js} +0 -0
  74. /package/dist/scripts/{87-86296e48af-streamable-learning.chunk.js → 87-ddd86d3a91-streamable-learning.chunk.js} +0 -0
  75. /package/dist/scripts/{877-082a559e39-streamable-learning.chunk.js → 877-45cd37056a-streamable-learning.chunk.js} +0 -0
  76. /package/dist/scripts/{895-e3e70ec6d4-streamable-learning.chunk.js → 895-d4c2379a1d-streamable-learning.chunk.js} +0 -0
  77. /package/dist/scripts/{925-17933662aa-streamable-learning.chunk.js → 925-1a8f304da0-streamable-learning.chunk.js} +0 -0
  78. /package/dist/scripts/{934-83c6e5f3a1-streamable-learning.chunk.js.LICENSE.txt → 934-944fb24dbc-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  79. /package/dist/scripts/{958-4cea4aa543-streamable-learning.chunk.js → 958-53d80abeb0-streamable-learning.chunk.js} +0 -0
  80. /package/dist/scripts/{bundle-5f6c5c509a.min.js.LICENSE.txt → bundle-bfe4f999c9.min.js.LICENSE.txt} +0 -0
  81. /package/dist/scripts/{pdf.worker.entry-0b35cddafa.min.worker.js.LICENSE.txt → pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[308],{78417:(e,n,t)=>{var i;t.d(n,{r:()=>i}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},25925:(e,n,t)=>{var i;t.d(n,{R:()=>i}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(i||(i={}))},78479:(e,n,t)=>{var i;t.d(n,{f:()=>i}),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.HeroBanner="hero_banner",e.HeroBannerSmall="hero_banner_small",e.HeroThumbnailSmall="hero_thumbnail_small",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.Heading="heading",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.OnboardingSteps="onboarding_steps",e.ThumbnailVerticalList="thumbnail_vertical_list",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(i||(i={}))},42308:(e,n,t)=>{var i;t.d(n,{z:()=>i}),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(i||(i={}))},65294:(e,n,t)=>{t.d(n,{Y:()=>a});var i=t(10288);function r(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function a(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.prevent,l=t.rootMargin,o=t.triggerOnce,s=void 0===o||o,c=(e=i.YD({triggerOnce:s,rootMargin:l}),n=3,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,a,l,o=[],s=!0,c=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(i=a.call(t)).done)&&(o.push(i.value),o.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],d=c[1],f=c[2];return!0!==a&&void 0!==window.IntersectionObserver||(d=!0,u=null),{ref:u,inView:d,initialized:!!f}}},73275:(e,n,t)=>{var i,r,a,l;t.d(n,{VH:()=>u,OL:()=>r,GL:()=>m.GL,ku:()=>m.ku,Yv:()=>m.Yv,Z9:()=>i,l9:()=>o}),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(i||(i={})),function(e){e.LatestReleases="latest-releases",e.ExploreAllTopics="explore-all-topics",e.ClassificationLatestReleases="classification-latest-releases"}(r||(r={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="subject",e.Company="company"}(a||(a={})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(l||(l={}));var o,s,c,u,d,f,m=t(75902);!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(o||(o={})),function(e){e[e.None=1]="None",e[e.All=2]="All",e[e.Learner=3]="Learner",e[e.Teacher=4]="Teacher"}(s||(s={})),function(e){e[e.Holiday=0]="Holiday",e[e.SportingEvent=1]="SportingEvent",e[e.Observance=2]="Observance",e[e.NaturalDisaster=3]="NaturalDisaster",e[e.HistoricalEvent=4]="HistoricalEvent",e[e.BreakingNews=5]="BreakingNews",e[e.Informal=6]="Informal",e[e.ReligiousEvent=7]="ReligiousEvent",e[e.Webinar=8]="Webinar",e[e.Other=255]="Other"}(c||(c={})),function(e){e[e.Classification=0]="Classification",e[e.Webinar=1]="Webinar"}(u||(u={})),function(e){e[e.Regular=0]="Regular",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly",e[e.Yearly=4]="Yearly"}(d||(d={})),function(e){e[e.Owner=1]="Owner",e[e.Teacher=2]="Teacher",e[e.Student=3]="Student"}(f||(f={}))},75902:(e,n,t)=>{var i,r,a,l;t.d(n,{GL:()=>a,Yv:()=>r,ku:()=>l}),function(e){e.Any="Any",e.Level_1="Level_1",e.Level_2="Level_2",e.Level_3="Level_3",e.Level_4="Level_4"}(i||(i={})),function(e){e.Any="Any",e.Staff="Staff",e.Learner="Learner"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(a||(a={})),function(e){e.Discover="discover",e.Classification="classification",e.MoviesAndTv="movies-and-tv",e.Company="company"}(l||(l={}))},49542:(e,n,t)=>{t.d(n,{d:()=>d});var i,r=t(32735),a=t(65858);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(i||(i={}));var l,o=t(78479),s=t(42308),c=t(73275);function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(l||(l={}));var d={getSliderAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:a.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Title}},useGetContent:function(e,n){return r.useMemo((function(){var t;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var i,r=null!==(t=null==n?void 0:n.reduce((function(e,n){return e[n.id]=n,e}),{}))&&void 0!==t?t:{},a=function(e){if(Array.isArray(e))return u(e)}(i=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):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.")}(),l=a.sort((function(e,n){var t,i,l,o,s=null!==(i=null===(t=r[e.id])||void 0===t?void 0:t.index)&&void 0!==i?i:a.findIndex((function(n){return n.id===e.id})),c=null!==(o=null===(l=r[n.id])||void 0===l?void 0:l.index)&&void 0!==o?o:a.findIndex((function(e){return e.id===n.id}));return s<c?-1:s>c?1:0}));return{content:l.filter((function(e){var n;return!(null===(n=r[e.id])||void 0===n?void 0:n.hidden)})),unfilteredContent:l}}),[e,n])},getCustomAppLink:function(e){var n,t,i,r,a,l;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===c.OL.LatestReleases?null===(i=null===(t=e.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===i?void 0:i.call(t):(null===(r=e.metadata)||void 0===r?void 0:r.appLink)===c.OL.ExploreAllTopics?null===(l=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===l?void 0:l.call(a,e.presentation.id):null},getWidgetStatus:function(e){var n=e.status;if("string"==typeof n)switch(n){case l.Archived:n=i.Archived;break;case l.Published:n=i.Published;break;case l.Draft:n=i.Draft}return n},formatResponseData:function(e,n){var t=e.content;if(!t)return e;switch("data"in t?e.content=t.data:Array.isArray(t)||(e.content=[t]),e.widgetId){case s.z.ClassificationSeries:e.content=e.content.filter((function(e){var n;return!!(null===(n=e.tallPoster)||void 0===n?void 0:n.id)}));break;case s.z.ClassificationPlaylists:e.content=e.content.filter((function(e){var n;return!!(null===(n=e.cover)||void 0===n?void 0:n.id)}));break;case s.z.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case s.z.Presentations:e.content=e.content.filter((function(e){var t;return e.id.toString()!==(null===(t=null==n?void 0:n.id)||void 0===t?void 0:t.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===s.z.Blurb},canDisplayOnScreenSize:function(e,n,t){return n!==s.z.Blurb||t!==o.f.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case s.z.CompanyLatestReleasedVideo:case s.z.CompanyVideos:return!0;default:return!1}}}},69454:(e,n,t)=>{t.d(n,{T:()=>d});var i=t(75896),r=t(1048),a=t(55171);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}var o=/\d/,s=function(e){var n,t,r=i.m.first(e),a=i.m.last(e);return r.name===a.name?r.name:"Advanced"===a.name?"lower"===(n=r.name.split(" "),t=1,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,r,a,l,o=[],s=!0,c=!1;try{if(a=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(i=a.call(t)).done)&&(o.push(i.value),o.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw r}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):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.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},c=/([0-9]+)/gi,u=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,n){var t=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return n.filter((function(e){return t.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var n,t,r,l="";switch(+i.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];l=function(e){var n=e.map((function(e){return e.name})).join(" "),t=n.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],i=n.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!o.test(e.name)})),a=i.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(a+="s"),r&&t.length)return"".concat(a," ").concat(r.name.charAt(0)," - ").concat(t.pop());var l=function(e){var n,t,i,r,a=!1,l=[];for(e=e.sort((function(e,n){return e-n})),i=0;i<e.length;i++)r=i+1,a||(n=e[i]),t=e[r],e[i]+1===t?a=!0:a?(l.push("".concat(n," - ").concat(e[i])),a=!1):(l.push("".concat(e[i])),a=!1);return l}(t);return"".concat(a," ").concat(l.join(", "))}(e);break;case a.e.PresentationIds.SCOTLAND_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_PRIMARY:case a.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];l=function(e){var n=e.map((function(e){return e.name})),t={};n.forEach((function(e,n){if(0!==n){var i=e.split(" ");Object.keys(t).forEach((function(e){i.includes(e)||delete t[e]}))}else e.split(" ").forEach((function(e,n){t[e]=0===n?"start":"end"}))}));var i=Object.keys(t)[0],r=t[i];if(!i)return e[0].name;var a=e[0].name,l=e[e.length-1].name,o=function(e){return e.split(i)[0]},s="".concat(o(a)," - ").concat(o(l));return"start"===r?"".concat(i," ").concat(s):"".concat(s," ").concat(i)}(e);break;case a.e.PresentationIds.ENGLISH_SECONDARY:l=s(e);break;case a.e.PresentationIds.SCOTLAND_SECONDARY:n=e,t=i.m.first(n),r=i.m.last(n),l=t.name===r.name?t.name:"Senior Phase"===r.name?"".concat(t.name," - Senior"):"Third - Fourth Level";break;case a.e.PresentationIds.ENGLAND_PRIMARY:l=function(e){var n=i.m.first(e),t=i.m.last(e),r=i.m.first(n.name.split(" ")),a=i.m.first(t.name.split(" ")),l=n.name.split(" ").find((function(e){return!isNaN(+e)})),o=t.name.split(" ").find((function(e){return!isNaN(+e)}));if(n===t)return"Key"===r||"Reception"===r?n.name:"".concat(r," KS").concat(l);var s="",c="";return s="Reception"===r?"R":"KS".concat(l),c="KS".concat(o),"Lower"===r&&"Upper"===a?"L ".concat(s," - U ").concat(c):("Lower"===r&&(s="Lower ".concat(s)),"Upper"===a&&(c="Upper ".concat(c)),"Key"===a&&(c=t.name),"".concat(s," - ").concat(c))}(e);case a.e.PresentationIds.US_MIDDLE:case a.e.PresentationIds.US_HIGH:}return l?{name:l}:null},sortMembersWithDuplicateNamesByAudience:function(e){var n=function(e){return e.length?(e.forEach((function(e){var r=+i.m.first(e.name.match(c));if(!n)return n=e,void(t=r);r<t&&(n=e)})),n):null;var n,t},t={},r=[];return e.forEach((function(e){if(!t[e.name])return t[e.name]=1,void r.push(e);r.push(e),t[e.name]++;var i=r.splice(r.length-t[e.name]).sort((function(e,t){var i=n(e.subjectPresentationAudiences.data),r=n(t.subjectPresentationAudiences.data);if(!i&&r)return 1;if(!r)return-1;var a=i.name.localeCompare(r.name);return 0===a?a:a>0?-1:1}));r=r.concat(i)})),r},getActiveAudiencesFromParams:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(n)&&!r.t.isEmpty(n)&&e&&e.length&&d.shouldShowAudiences(e)){var t=n.a;if(t){"string"==typeof t&&(t=[t]);var i=function(e){return e.replace(u,"").toLowerCase()},a=t.reduce((function(e,n){return e[i(n)]=n,e}),{});return e.filter((function(e){return a[i(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}}},31700:(e,n,t)=>{t.d(n,{g:()=>a});var i=t(97395),r=t(25925),a={streamablePresentation:function(){return{url:i._.urlBuilder("/api/subjects/presentations/available",{type:r.R.StreamableLearning}),key:"streamable:learning:presentations",bootstrapName:"availablePresentations",formatData:function(e){return e[0]},normalizeOptions:{namespace:"internal:presentation"}}}}}}]);