@clickview/streamable-learning 0.12.0 → 0.12.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{8664-streamable-learning-f0eefa4abe.chunk.css → 1067-streamable-learning-629bbd0a42.chunk.css} +1 -1
- package/dist/css/{1437-streamable-learning-e9b3e621e5.chunk.css → 1437-streamable-learning-5f51fab46d.chunk.css} +1 -1
- package/dist/css/{2568-streamable-learning-ee9378ce96.chunk.css → 4797-streamable-learning-99c0be1b5c.chunk.css} +3 -1
- package/dist/css/{5594-streamable-learning-82a602553e.chunk.css → 5594-streamable-learning-ffb770af33.chunk.css} +3 -3
- package/dist/css/{719-streamable-learning-f53cbbb6cc.chunk.css → 719-streamable-learning-ccc43f6ae0.chunk.css} +1 -1
- package/dist/css/{7303-streamable-learning-b7adc6f6dc.chunk.css → 7303-streamable-learning-eace89e9cc.chunk.css} +5 -5
- package/dist/css/{8069-streamable-learning-b49d0dd7a8.chunk.css → 8069-streamable-learning-37ac0f07b5.chunk.css} +1 -1
- package/dist/css/streamable-learning-6cf570b2e4.css +21 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1067-7f82ade4a9-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1437-76d56b4d4c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{1661-c201fdd00b-streamable-learning.chunk.js → 1661-2fb98bc927-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/262-1c5176a55f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2676-9799905e4b-streamable-learning.chunk.js +2 -0
- package/dist/scripts/2700-49c1bcb970-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{2967-073ef8276e-streamable-learning.chunk.js → 2967-fc7e5dd922-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/2987-151cbbceda-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3093-9218f2dd9a-streamable-learning.chunk.js +1 -0
- package/dist/scripts/339-1ae03fbc50-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/3958-4efeb0bebf-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{4018-79febe5bcb-streamable-learning.chunk.js → 4018-168a7bb0bd-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{4254-355be6131d-streamable-learning.chunk.js → 4254-c97776bd5d-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/4797-8f8e85fe23-streamable-learning.chunk.js +2 -0
- package/dist/scripts/487-aff6b95fc8-streamable-learning.chunk.js +1 -0
- package/dist/scripts/4959-d9342d3256-streamable-learning.chunk.js +2 -0
- package/dist/scripts/520-8734f2e0f7-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5594-63024a37f0-streamable-learning.chunk.js +1 -0
- package/dist/scripts/625-d2dc1ec04f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/6284-738423bef2-streamable-learning.chunk.js +1 -0
- package/dist/scripts/6533-c9404f21a3-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{6909-2740b17e80-streamable-learning.chunk.js → 6909-31e9162346-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/719-759fbcc4bc-streamable-learning.chunk.js +2 -0
- package/dist/scripts/7303-a65a90006e-streamable-learning.chunk.js +2 -0
- package/dist/scripts/7545-aae090520f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7694-1e367e4f68-streamable-learning.chunk.js +2 -0
- package/dist/scripts/8069-598c1883bc-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{8598-80abd9d41d-streamable-learning.chunk.js → 8598-2184349983-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/9908-3c16f6633a-streamable-learning.chunk.js +2 -0
- package/dist/scripts/9908-3c16f6633a-streamable-learning.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/bundle-169c1b2a00.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/streamable-learning-80de1e9260.css +0 -21
- package/dist/scripts/1437-fe853c2920-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2020-6022dd9225-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2206-876c57f924-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2568-f15a06f42e-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2700-bc11c55e61-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-b88afe0360-streamable-learning.chunk.js +0 -1
- package/dist/scripts/339-4d308b4b85-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3933-9081df6e1b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3958-4053217e7e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-0f5693b89a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/520-a33d823ad2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5594-ef43e6cbdf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/625-fa9cd15e25-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6284-1854ac15da-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6533-cfa299a803-streamable-learning.chunk.js +0 -1
- package/dist/scripts/719-2ae6ad3acb-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7303-399f2f4d66-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7545-31217597c7-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7694-4affa05b0f-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8069-9e470ae93e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8664-361731a4c2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9531-32201ab9da-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9908-b22183dac6-streamable-learning.chunk.js +0 -2
- package/dist/scripts/bundle-307ad2277c.min.js +0 -2
- /package/dist/scripts/{2206-876c57f924-streamable-learning.chunk.js.LICENSE.txt → 2676-9799905e4b-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2568-f15a06f42e-streamable-learning.chunk.js.LICENSE.txt → 4018-168a7bb0bd-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4018-79febe5bcb-streamable-learning.chunk.js.LICENSE.txt → 4797-8f8e85fe23-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{719-2ae6ad3acb-streamable-learning.chunk.js.LICENSE.txt → 4959-d9342d3256-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7303-399f2f4d66-streamable-learning.chunk.js.LICENSE.txt → 719-759fbcc4bc-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7694-4affa05b0f-streamable-learning.chunk.js.LICENSE.txt → 7303-a65a90006e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9908-b22183dac6-streamable-learning.chunk.js.LICENSE.txt → 7694-1e367e4f68-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8598-80abd9d41d-streamable-learning.chunk.js.LICENSE.txt → 8598-2184349983-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-307ad2277c.min.js.LICENSE.txt → bundle-169c1b2a00.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[487],{78417:(i,e,t)=>{var n;t.d(e,{r:()=>n}),function(i){i[i.FilterOut=0]="FilterOut",i[i.StripMetadata=1]="StripMetadata"}(n||(n={}))},78479:(i,e,t)=>{var n;t.d(e,{f:()=>n}),function(i){i.ThumbnailHeroMedia="thumbnail_hero_media",i.ThumbnailFeaturedMedia="thumbnail_featured_media",i.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",i.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",i.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",i.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",i.ThumbnailVerticalList="thumbnail_vertical_list",i.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",i.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",i.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",i.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",i.CoverSlidingPillListSmall="cover_sliding_pill_list_small",i.CoverFixedPillListLarge="cover_fixed_pill_list_large",i.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",i.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",i.ThumbnailFixedListLarge="thumbnail_fixed_list_large",i.ThumbnailFixedListSmall="thumbnail_fixed_list_small",i.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",i.HeroBanner="hero_banner",i.HeroThumbnailSmall="hero_thumbnail_small",i.HeroBlockColourSmall="hero_block_colour_small",i.CoverFixedTileList="cover_fixed_tile_list",i.PosterSlidingListLarge="poster_sliding_list_large",i.PosterSlidingListMedium="poster_sliding_list_medium",i.PosterSlidingListSmall="poster_sliding_list_small",i.HeroBannerSmall="hero_banner_small",i.Heading="heading",i.AuthorReviewer="author_reviewer",i.Question="question",i.QuestionAccordion="question_accordion",i.OnboardingSteps="onboarding_steps",i.CircleLogoSlidingList="circle_logo_sliding_list",i.FilterSlidingPillListSmall="filter_sliding_pill_list_small",i.EventIconSlidingList="event_icon_sliding_list"}(n||(n={}))},42308:(i,e,t)=>{var n;t.d(e,{z:()=>n}),function(i){i.CuratedMedia="curated_media",i.PlaylistMedia="playlist_media",i.ClassificationMedia="classification_media",i.LatestReleasedVideos="latest_released_videos",i.ContinueWatching="continue_watching_videos",i.CompanyLatestReleasedVideo="company_latest_released_video",i.CompanyVideos="company_videos",i.ClassificationLatestReleasedVideo="classification_latest_released_video",i.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",i.CompanyClassificationVideos="company_classification_videos",i.ClassificationDashboardMedia="classification_dashboard_media",i.ClassificationDashboardExternalMedia="classification_dashboard_external_media",i.CuratedClassifications="curated_classifications",i.Classifications="classifications",i.ClassificationLatestReleasedVideos="classification_latest_released_videos",i.SpecialEventClassifications="special_event_classifications",i.LatestReleasedClassifications="latest_released_classifications",i.CuratedSeries="curated_series",i.CuratedPlaylists="curated_playlists",i.Blurb="blurb",i.DynamicBlurb="dynamic_blurb",i.AuthorReviewer="author_reviewer",i.Faq="faq",i.CuratedCompanies="curated_companies",i.Ratings="ratings",i.Presentations="presentations",i.UpcomingLivestreams="upcoming_livestreams",i.CuratedMultimedia="curated_multimedia",i.ClassificationPlaylists="classification_playlists",i.ClassificationSeries="classification_series",i.ClassificationFeaturedVideo="classification_featured_video",i.ClassificationPinnedVideos="classification_pinned_videos"}(n||(n={}))},65294:(i,e,t)=>{t.d(e,{Y:()=>l});var n=t(34152);function a(i,e){(null==e||e>i.length)&&(e=i.length);for(var t=0,n=Array(e);t<e;t++)n[t]=i[t];return n}function l(){var i,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=t.prevent,r=t.rootMargin,o=t.triggerOnce,s=void 0===o||o,c=(i=(0,n.YD)({triggerOnce:s,rootMargin:r}),e=3,function(i){if(Array.isArray(i))return i}(i)||function(i,e){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var n,a,l,r,o=[],s=!0,c=!1;try{if(l=(t=t.call(i)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=l.call(t)).done)&&(o.push(n.value),o.length!==e);s=!0);}catch(i){c=!0,a=i}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw a}}return o}}(i,e)||function(i,e){if(i){if("string"==typeof i)return a(i,e);var t={}.toString.call(i).slice(8,-1);return"Object"===t&&i.constructor&&(t=i.constructor.name),"Map"===t||"Set"===t?Array.from(i):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(i,e):void 0}}(i,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=c[0],u=c[1],f=c[2];return!0!==l&&void 0!==window.IntersectionObserver||(u=!0,d=null),{ref:d,inView:u,initialized:!!f}}},26154:(i,e,t)=>{var n,a,l,r,o;t.d(e,{VH:()=>u,R:()=>o,OL:()=>a,NK:()=>l,GL:()=>m.GL,ku:()=>m.ku,Yv:()=>m.Yv,Z9:()=>n,l9:()=>s}),function(i){i[i.MultipleChoice=1]="MultipleChoice",i[i.ShortAnswer=2]="ShortAnswer",i[i.TrueOrFalse=3]="TrueOrFalse",i[i.Annotation=4]="Annotation",i[i.Image=5]="Image",i[i.MissingWord=6]="MissingWord"}(n||(n={})),function(i){i.LatestReleases="latest-releases",i.ExploreAllTopics="explore-all-topics",i.ClassificationLatestReleases="classification-latest-releases"}(a||(a={})),function(i){i.TopicDirectory="topic-directory",i.TopicNewReleases="topic-new-releases",i.CuratedTopic="curated-topic"}(l||(l={})),function(i){i.Video="video",i.Series="series",i.Playlist="playlist",i.Classification="subject",i.Company="company"}(r||(r={})),function(i){i.Pink="colour:0",i.Orange="colour:1",i.Green="colour:2",i.Blue="colour:3",i.Purple="colour:4",i.Indigo="colour:5"}(o||(o={}));var s,c,d,u,f,_,v,m=t(75902);!function(i){i[i.Row=0]="Row",i[i.LargeRow=1]="LargeRow",i[i.Hero=2]="Hero",i[i.ResourcesTile=3]="ResourcesTile"}(s||(s={})),function(i){i[i.None=1]="None",i[i.All=2]="All",i[i.Learner=3]="Learner",i[i.Teacher=4]="Teacher"}(c||(c={})),function(i){i[i.Holiday=0]="Holiday",i[i.SportingEvent=1]="SportingEvent",i[i.Observance=2]="Observance",i[i.NaturalDisaster=3]="NaturalDisaster",i[i.HistoricalEvent=4]="HistoricalEvent",i[i.BreakingNews=5]="BreakingNews",i[i.Informal=6]="Informal",i[i.ReligiousEvent=7]="ReligiousEvent",i[i.Livestream=8]="Livestream",i[i.Other=255]="Other"}(d||(d={})),function(i){i[i.Classification=0]="Classification",i[i.Livestream=1]="Livestream"}(u||(u={})),function(i){i[i.Regular=0]="Regular",i[i.Daily=1]="Daily",i[i.Weekly=2]="Weekly",i[i.Monthly=3]="Monthly",i[i.Yearly=4]="Yearly"}(f||(f={})),function(i){i[i.Owner=1]="Owner",i[i.Teacher=2]="Teacher",i[i.Student=3]="Student"}(_||(_={})),function(i){i[i.Audience=0]="Audience",i[i.Topic=1]="Topic",i[i.Curriculum=2]="Curriculum"}(v||(v={}))},75902:(i,e,t)=>{var n,a,l,r;t.d(e,{GL:()=>l,Yv:()=>a,ku:()=>r}),function(i){i.Any="Any",i.Level_1="Level_1",i.Level_2="Level_2",i.Level_3="Level_3",i.Level_4="Level_4"}(n||(n={})),function(i){i.Any="Any",i.Staff="Staff",i.Learner="Learner"}(a||(a={})),function(i){i.Draft="Draft",i.Published="Published",i.Archived="Archived"}(l||(l={})),function(i){i.Discover="discover",i.Classification="classification",i.ClassificationDirectory="classification-directory",i.ClassificationVideos="classification-videos",i.MoviesAndTv="movies-and-tv",i.Company="company"}(r||(r={}))},49542:(i,e,t)=>{t.d(e,{d:()=>u});var n,a=t(32735),l=t(65858);!function(i){i[i.Draft=0]="Draft",i[i.Published=1]="Published",i[i.Archived=2]="Archived"}(n||(n={}));var r,o=t(78479),s=t(42308),c=t(26154);function d(i,e){(null==e||e>i.length)&&(e=i.length);for(var t=0,n=Array(e);t<e;t++)n[t]=i[t];return n}!function(i){i.Draft="Draft",i.Published="Published",i.Archived="Archived"}(r||(r={}));var u={getSliderAnalyticsOptions:function(){return{actionType:l.Vw.Click,location:l.LZ.SlidingList,entity:l.py.Widget,descriptor:l._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:l.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:l.Vw.Click,location:l.LZ.SlidingList,entity:l.py.Widget,descriptor:l._S.Title}},useGetContent:function(i,e){return a.useMemo((function(){var t;if(!i)return{content:null,unfilteredContent:null};if(!Array.isArray(i))return{content:i,unfilteredContent:i};var n,a=null!==(t=null==e?void 0:e.reduce((function(i,e){return i[e.id]=e,i}),{}))&&void 0!==t?t:{},l=function(i){if(Array.isArray(i))return d(i)}(n=i)||function(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}(n)||function(i,e){if(i){if("string"==typeof i)return d(i,e);var t={}.toString.call(i).slice(8,-1);return"Object"===t&&i.constructor&&(t=i.constructor.name),"Map"===t||"Set"===t?Array.from(i):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?d(i,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=l.sort((function(i,e){var t,n,r,o,s=null!==(n=null===(t=a[i.id])||void 0===t?void 0:t.index)&&void 0!==n?n:l.findIndex((function(e){return e.id===i.id})),c=null!==(o=null===(r=a[e.id])||void 0===r?void 0:r.index)&&void 0!==o?o:l.findIndex((function(i){return i.id===e.id}));return s<c?-1:s>c?1:0}));return{content:r.filter((function(i){var e;return!(null===(e=a[i.id])||void 0===e?void 0:e.hidden)})),unfilteredContent:r}}),[i,e])},getCustomAppLink:function(i){var e,t,n,a,l,r;return(null===(e=i.metadata)||void 0===e?void 0:e.appLink)===c.OL.LatestReleases?null===(n=null===(t=i.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(a=i.metadata)||void 0===a?void 0:a.appLink)===c.OL.ExploreAllTopics?null===(r=null===(l=i.appLinks)||void 0===l?void 0:l.allTopics)||void 0===r?void 0:r.call(l,i.presentation.id):null},getWidgetStatus:function(i){var e=i.status;if("string"==typeof e)switch(e){case r.Archived:e=n.Archived;break;case r.Published:e=n.Published;break;case r.Draft:e=n.Draft}return e},formatResponseData:function(i,e){var t=i.content;if(!t)return i;if("author"in t)return i.content=[t],i;switch("data"in t?i.content=t.data:Array.isArray(t)||(i.content=[t]),i.widgetId){case s.z.ClassificationSeries:i.content=i.content.filter((function(i){var e;return!!(null===(e=i.tallPoster)||void 0===e?void 0:e.id)}));break;case s.z.ClassificationPlaylists:i.content=i.content.filter((function(i){var e;return!!(null===(e=i.cover)||void 0===e?void 0:e.id)}));break;case s.z.ContinueWatching:i.content=i.content.map((function(i){return i.object}));default:break;case s.z.Presentations:i.content=i.content.filter((function(i){var t;return i.id.toString()!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.toString())}))}return i},isWidgetInTableOfContents:function(i){return!!(null==i?void 0:i.showInTableOfContents)},hasNoContent:function(i){return i===s.z.Blurb},canDisplayOnScreenSize:function(i,e,t){return e!==s.z.Blurb||t!==o.f.HeroBannerSmall||!i.xs&&!i.sm},isCompanyWidget:function(i){switch(i){case s.z.CompanyLatestReleasedVideo:case s.z.CompanyVideos:case s.z.UpcomingLivestreams:return!0;default:return!1}}}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 4959-d9342d3256-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4959],{92869:(t,e,r)=>{r.d(e,{t:()=>a});var n=r(43823),o=r(95846),a={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},53374:(t,e,r)=>{r.d(e,{w:()=>a});var n=r(32735);function o(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"}))}var a=n.forwardRef((function(t,e){var r=t.onClickClear,a=t.showClearButton,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["onClickClear","showClearButton"]);return n.createElement("div",{className:"position-relative"},n.createElement("input",Object.assign({},i,{ref:e,className:"".concat(t.className," ").concat("aYpO7")})),(!!t.value||a)&&n.createElement("span",{className:"".concat("ygMgF"," position-absolute cursor-pointer text-secondary"),role:"button",onClick:r},n.createElement("div",{className:"d-inline-block svg-container md"},n.createElement(o,null))))}))},68293:(t,e,r)=>{r.d(e,{B:()=>d});var n=r(32735),o=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal"],a=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],i={au:o,nz:o,uk:["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],us:a},c=r(66122);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||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 u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var s="OTHER";function f(t,e){return e.includes(t)?t:t?s:""}function d(t){var e,r,o=t.error,u=t.onChange,d=(e=t.countryCode,r=null==e?void 0:e.toLowerCase(),i[r]||a),p=f(t.initialValue,d),y=l(n.useState(p),2),m=y[0],h=y[1],v=l(n.useState(p===s?t.initialValue:""),2),g=v[0],b=v[1];n.useEffect((function(){h(f(t.initialValue,d))}),[t.initialValue]);var w=m===s;return n.createElement("div",{className:"form-group"},n.createElement("label",{htmlFor:t.id,className:t.labelClassName},"Job title:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement("div",{className:"mb-2"},n.createElement("select",{id:t.id,name:t.id,className:"form-select ".concat("lg"===t.size?"form-select-lg":""," ").concat(m.length?"text-dark":"text-secondary"," ").concat(!!o&&"is-invalid"),value:m,placeholder:"Role",onChange:function(t){h(t.target.value),b(""),u(t.target.value===s?"":t.target.value)}},n.createElement("option",{value:"",disabled:!0,className:"text-secondary"},t.placeholder?t.placeholder:n.createElement(n.Fragment,null,"What do you do?")),d.map((function(t,e){return n.createElement("option",{value:t,className:"text-dark",key:e},t)})),n.createElement("option",{value:s,className:"text-dark"},"Other")),!!o&&!w&&n.createElement(c.A,{name:t.id},o)),w&&n.createElement("div",{className:"mb-3"},n.createElement("input",{className:"form-control ".concat("lg"===t.size?"form-select-lg":""," ").concat(!!o&&"is-invalid"),type:"text",value:g,placeholder:"What do you do?",autoFocus:!0,onChange:function(t){b(t.target.value),u(t.target.value)}}),!!o&&n.createElement(c.A,{name:t.id},o)))}},47464:(t,e,r)=>{r.d(e,{l:()=>_});var n=r(32735),o=r(65858),a=r(53374),i=r(57900),c=r(45157),l=r(86664),u=r(52214);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t){return new u.aN({apiKey:t.apiKey,version:"weekly",libraries:t.libraries,retries:3})}function p(t){var e={apiKey:t.apiKey,libraries:t.libraries||["places"]},r=s(n.useState(!1),2),o=r[0],a=r[1],i=s(n.useState(d(e)),2),c=i[0],l=i[1];function u(t,r){c?c.loadCallback((function(e){if(e)return a(!1),void(r&&r(e));a(!0),t&&t()})):l(d(e))}return n.useEffect((function(){u()}),[]),{loader:c,scriptLoaded:o,onGoogleApiReady:u}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function m(t){var e,r,o=p({apiKey:t.googleApiKey}).scriptLoaded,a=(e=n.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(e,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.")}()),i=a[0],c=a[1];return n.useEffect((function(){o&&c(new google.maps.places.AutocompleteService)}),[o]),i}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var v="us",g="country:placeholder:text";function b(t){var e,r,o=t.apiKey,a=t.geoLocation,u=t.makeRequest,s=void 0===u||u,f=t.template,d=void 0===f?"E.g. [placeholder]":f,p=t.templateKey,y=void 0===p?"[placeholder]":p,b=m({googleApiKey:o}),w=n.useState((function(){return function(t){var e=l.I.getLocalizedLocalityPlaceholderText(null==t?void 0:t.countryCode);return e||(i.SG.cacheGet("".concat(g,":").concat(null==t?void 0:t.countryCode))||void 0)}(a)})),S=(r=2,function(t){if(Array.isArray(t))return t}(e=w)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(e,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.")}()),E=S[0],O=S[1];function j(t,e){i.SG.cacheSet("".concat(g,":").concat(e),t,86400),O(t)}return n.useEffect((function(){if(!E&&b&&s){var t=(null==a?void 0:a.countryCode)||v,e={input:String.fromCharCode(96+c.Y.getRandomInt(26)),types:["(cities)"],region:t,componentRestrictions:{country:t}};b.getPlacePredictions(e,(function(e,r){return function(t,e,r){if(e===google.maps.places.PlacesServiceStatus.OK&&t){var n=t[c.Y.getRandomInt(t.length)].description;j(d.replace(y,n),r)}else j(l.I.getLocalizedLocalityPlaceholderText(v),r)}(e,r,t)}))}}),[E,b,a,s]),E}var w=r(73525);function S(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return E(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var O={getPlaceDetails:function(t){var e,r,n,o,a,i=t.formatted_address,c=S(t.address_components);try{for(c.s();!(a=c.n()).done;){var l,u=a.value,s=S(u.types);try{for(s.s();!(l=s.n()).done;){var f=l.value;"locality"===f&&(e=u.short_name),"administrative_area_level_1"===f&&(r=u.short_name),"postal_code"===f&&(o=u.short_name),"country"===f&&(n=u.short_name)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){c.e(t)}finally{c.f()}return{locality:i,country:n,postalCode:o,city:e,province:r}}};function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var x={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"},L=r(28329);function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var k=r(11607);function A(){return n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"}))}var N=r(52202);function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(t,e):void 0}}(t,e)||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 I(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function T(t){var e=t.predictions,r=t.getPlaceInfo,o=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," ").concat(o-1===e?N.Z.selected:""),key:t.place_id,onKeyDown:function(e){return"Enter"===e.key&&r(t)},onMouseDown:function(){return r(t)},onClick:function(){return r(t)}},t.description)})))}function _(t){var e,r,i,c,l,u,s=n.useRef(),f=P(n.useState((null===(e=t.data)||void 0===e?void 0:e.schoolLocality)||""),2),d=f[0],y=f[1],h=P(n.useState(!1),2),v=h[0],g=h[1],S=b({apiKey:t.googleMapsApiKey,geoLocation:t.geoLocation}),E=function(t){var e,r,o=t.search,a=t.makePredicition,i=t.geoLocation,c=m({googleApiKey:t.apiKey}),l=(0,L.N)(o,300),u=(e=n.useState(),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return C(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(e,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=u[0],f=u[1];function d(t,e){e===google.maps.places.PlacesServiceStatus.OK&&t?f(t):f(void 0)}return n.useEffect((function(){if(c)if(0!==(null==l?void 0:l.length)&&a){var t=(null==i?void 0:i.countryCode)||"us";c.getPlacePredictions({input:l,componentRestrictions:(null==i?void 0:i.isFallback)?void 0:{country:t},region:t,types:["locality","sublocality","postal_code"]},d)}else f(void 0)}),[l,a,c]),{localityPredicitions:s,getPlaceInfo:function(t,e,r){new google.maps.places.PlacesService(e.current).getDetails({placeId:t.place_id,fields:["geometry","address_components","formatted_address"],region:i.countryCode},(function(t,e){if(e===google.maps.places.PlacesServiceStatus.OK){var n=t.geometry.location.lng(),o=t.geometry.location.lat(),a=O.getPlaceDetails(t),i=a.locality,c=a.country,l=a.postalCode,u=a.city,s=a.province;r({longitude:n,latitude:o,locality:i,country:c,city:u,postalCode:l,province:s})}}))}}}({search:d,makePredicition:v,geoLocation:t.geoLocation,apiKey:t.googleMapsApiKey}),I=E.localityPredicitions,_=E.getPlaceInfo,F=function(t){var e,r,o=(e=n.useState({}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(e,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.")}()),a=o[0],i=o[1],c=p(t).onGoogleApiReady;function l(t){var e=t.coords,r=e.latitude,n=e.longitude,o=new google.maps.LatLng(r,n);(new google.maps.Geocoder).geocode({location:o},(function(t,e){if(e===google.maps.GeocoderStatus.OK){var o=t.find((function(t){return t.types.includes("locality")||t.types.includes("administrative_area_level_2")})),a=O.getPlaceDetails(o);i(Object.assign(Object.assign({},a),{longitude:n,latitude:r}))}}))}function u(e){var r=x[e.code];r||(r="geocoderUnknown"),t.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:a,onClickGetCurrentLocation:function(){c((function(){window.navigator.geolocation.getCurrentPosition(l,u)}))}}}({apiKey:t.googleMapsApiKey,onPositionError:function(t){g(!0),q(t)}}),D=F.placeDetails,G=F.onClickGetCurrentLocation,K=window.navigator.geolocation?1:0,R=(0,w.M)({onSelected:function(t){if(I)if(t!==I.length){var e=I[t];e&&J(e)}else X()},itemCount:null!==(r=(null==I?void 0:I.length)+K)&&void 0!==r?r:0,hideOnBlur:t.hideOnBlur}),Z=R.selectedIndex,M=R.onKeyDown,z=R.containerRef,U=R.hide,B=R.onBlur,V=R.onFocus,$=P(n.useState(),2),H=$[0],q=$[1];function Y(e){var r,n,o;H&&q(void 0),v||g(!0),((null===(r=t.data)||void 0===r?void 0:r.longitude)||(null===(n=t.data)||void 0===n?void 0:n.latitude)||(null===(o=t.data)||void 0===o?void 0:o.schoolLocality))&&t.clearData(),y(e)}function W(e){t.setData({schoolLocality:e.locality,country:e.country,province:e.province,schoolPostCode:e.postalCode,longitude:e.longitude,latitude:e.latitude}),e.locality&&y(e.locality)}function J(t){v&&g(!1),_(t,s,W)}function X(e){var r;null==e||e.preventDefault(),g(!1),G(),null===(r=t.logUserAction)||void 0===r||r.call(t,{},{actionType:o.Vw.Click,descriptor:o.Yu.UseMyLocation})}n.useEffect((function(){W(D)}),[D]);var Q,tt=(null==I?void 0:I.length)&&!(null===(c=null===(i=t.data)||void 0===i?void 0:i.schoolLocality)||void 0===c?void 0:c.length),et=window.navigator.geolocation&&!(null===(u=null===(l=t.data)||void 0===l?void 0:l.schoolLocality)||void 0===u?void 0:u.length),rt=t.labelClassName||"d-block text-center mb-3 fw-normal ".concat(N.Z.baseText),nt="form-group position-relative";return"lg"===t.size&&(nt+=" ".concat(N.Z.large)),n.createElement("div",{className:nt},n.createElement("label",{className:rt,htmlFor:"locality-input"},"ZIP code or city",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{type:"text",value:d,onChange:function(t){return Y(t.currentTarget.value)},id:"locality-input",className:(Q="form-control","lg"===t.size&&(Q+=" form-control-lg"),!tt||U?"".concat(Q," ").concat(N.Z.input):"".concat(Q," ").concat(N.Z.inputFocused)),ref:s,autoComplete:"off",placeholder:S||"Loading...",disabled:t.disabled||!S,autoFocus:null==t?void 0:t.autoFocus,onClickClear:function(){Y(""),s.current.focus()},onKeyDown:M,onFocus:V,onBlur:B}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(N.Z.dropdown," ").concat(U?"d-none":"")},!!tt&&n.createElement("div",{className:N.Z.suggestionContainer,ref:z},n.createElement(T,{predictions:I,getPlaceInfo:J,selectedIndex:Z}),window.navigator.geolocation&&t.useGeoLocationApi&&n.createElement(k.L,{className:"".concat(N.Z.suggestionItem," px-1 ").concat(Z-1===I.length?N.Z.selected:""),onClick:X},n.createElement("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1"},n.createElement(A,null),"Use my current location"))),et&&!tt&&t.useGeoLocationApi&&n.createElement("div",{className:"d-flex ".concat(N.Z.useMyLocation)},n.createElement("button",{onClick:X,className:"btn btn-link info-link bg-white btn-with-icon"},n.createElement(A,null),"Use my current location")),!!H&&n.createElement("div",{className:"text-danger p-2"},H)))}},76530:(t,e,r)=>{r.d(e,{X:()=>A});var n=r(32735),o=r(80247),a=r(53374),i=r(99940);function c(t){return c="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},c(t)}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(u())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&s(o,r.prototype),o}(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,t)},l(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var d=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Error";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=function(t,e,r){return e=f(e),function(t,e){if(e&&("object"==c(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,u()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r))}(this,e,[n])).body=t,r}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&&s(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(l(Error));function p(t){return p="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},p(t)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",m="suspendedYield",h="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(T([])));j&&j!==r&&n.call(j,i)&&(E=j);var x=S.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==p(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=A(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=S,o(x,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(C.prototype),u(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}var m=function(t,e,r,n){return new(r||(r=Promise))((function(o,a){function i(t){try{l(n.next(t))}catch(t){a(t)}}function c(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,c)}l((n=n.apply(t,e||[])).next())}))};function h(t){var e={method:i.k.GET,headers:{"Content-type":"application/json"}};t.method&&(e=Object.assign(Object.assign({},e),{method:t.method})),t.init&&(e=Object.assign(Object.assign({},e),t.init));var r,n,o,a=t.url;return e.method===i.k.GET&&t.data?(r=a,n=t.data,o=r,Object.keys(n).forEach((function(t,e){n[t]&&(o+=0===e?"?":"&",o+="".concat(t,"=").concat(encodeURIComponent(n[t])))})),a=o):t.data&&(e=Object.assign(Object.assign({},e),{body:JSON.stringify(t.data)})),{init:e,url:a}}var v={asyncFetch:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=9;break}return e.next=7,n.json();case 7:throw o=e.sent,new d(o);case 9:if(204!==n.status){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,n.json();case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)})))},asyncFetchPlain:function(t){return m(this,void 0,void 0,y().mark((function e(){var r,n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=h(t),e.next=3,fetch(r.url,r.init);case 3:if((n=e.sent).ok){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n.text();case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))},fetch:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){var e=h(t);return fetch(e.url,e.init).then((function(t){if(204!==t.status)return t.json()})).then((function(e){return t.success&&t.success(e),e})).catch((function(e){return t.error&&t.error(),e})).finally((function(){t.always&&t.always()}))}))};function g(t){return g="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},g(t)}function b(){b=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:k(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",y="executing",m="completed",h={};function v(){}function w(){}function S(){}var E={};u(E,i,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(T([])));j&&j!==r&&n.call(j,i)&&(E=j);var x=S.prototype=v.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==g(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=A(c,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function A(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,A(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(g(e)+" is not iterable")}return w.prototype=S,o(x,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=u(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,u(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},L(C.prototype),u(C.prototype,c,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}var w={search:function(t,e,r,n,o){var a={longitude:e.longitude,latitude:e.latitude};e.query&&(a.query=e.query),v.fetch({url:t,data:a,success:r,error:n,always:o})},create:function(t,e){return r=this,n=void 0,o=void 0,a=b().mark((function r(){return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",v.asyncFetch({url:t.createProspect,method:i.k.POST,data:e}));case 1:case"end":return r.stop()}}),r)})),new(o||(o=Promise))((function(t,e){function i(t){try{l(a.next(t))}catch(t){e(t)}}function c(t){try{l(a.throw(t))}catch(t){e(t)}}function l(e){var r;e.done?t(e.value):(r=e.value,r instanceof o?r:new o((function(t){t(r)}))).then(i,c)}l((a=a.apply(r,n||[])).next())}));var r,n,o,a},getLookups:function(t,e){return v.asyncFetch({url:t.prospectLookups(e)})}},S=r(73525),E=r(11607),O=r(28329),j=r(52202);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(t,e):void 0}}(t,e)||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 L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function C(t){var e=t.filteredSchoolsList,r=t.getSchoolName,o=t.onSchoolSuggestionClick,a=t.selectedIndex;return n.createElement(n.Fragment,null,e.map((function(t,e){return n.createElement(E.L,{className:"".concat(j.Z.suggestionItem," ").concat(a-1===e?j.Z.selected:""),key:t.id,onKeyDown:function(e){return"Enter"===e.key&&o(t)},onMouseDown:function(){return o(t)},onClick:function(){return o(t)}},r(t)," ",n.createElement("br",null),n.createElement("small",{className:"text-secondary"},function(t){var e=[];return t.city&&e.push(t.city.toLowerCase().split(" ").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join(" ")),t.province&&e.push(t.province),t.postCode&&e.push(t.postCode),e.join(" ")}(t)))})))}function k(t){return n.createElement("div",{className:"info-link ".concat(j.Z.suggestionItem," ").concat(j.Z.noSuggestion," ").concat(t.selected?j.Z.selected:""),onClick:t.handleNoSuggestion},"Can't find your school?")}function A(t){var e,r,i=n.useRef(),c=x(n.useState(!0),2),l=c[0],u=c[1],s=x(n.useState(t.data.schoolName&&t.data.schoolPostCode?t.data.schoolName+", "+t.data.schoolPostCode:t.data.schoolName?t.data.schoolName:""),2),f=s[0],d=s[1],p=x(n.useState(),2),y=p[0],m=p[1],h=(0,O.N)(f,250),v=(0,S.M)({onSelected:function(e){if(y||e)if(e!==y.length){var r=y[e];r&&G(r)}else t.onClickNoSuggestions(f)},itemCount:null!==(e=(null==y?void 0:y.length)+1)&&void 0!==e?e:0,hideOnBlur:t.hideOnBlur}),g=v.selectedIndex,b=v.onKeyDown,E=v.containerRef,L=v.hide,A=v.onBlur,N=v.onFocus,P=!!(null===(r=t.data)||void 0===r?void 0:r.prospectId),I=l&&!P,T=!l&&!P&&(null==y?void 0:y.length)<5,_=(null==y?void 0:y.length)&&!P;function F(e){(t.data.schoolName||t.data.prospectId)&&t.clearData(),e!==f&&d(e)}function D(e){if(t.data.latitude||t.data.longitude){u(!0);var r={latitude:t.data.latitude,longitude:t.data.longitude};e&&e.length&&(r.query=e),w.search(t.searchUrl,r,(function(t){return m(t)}),null,(function(){return u(!1)}))}else u(!1)}function G(e){d(K(e)),t.setData({prospectId:e.id,schoolName:e.name,schoolPostCode:e.postCode,schoolType:e.prospectType,province:e.province,city:e.city,country:e.countryCode})}function K(t){return t.name}n.useEffect((function(){P||(h.length?!P&&h.length>1&&h===f&&D(h):D())}),[h,P]);var R=(_||I||T)&&!t.disabled&&!L,Z="form-control ".concat(R?j.Z.inputFocused:j.Z.input),M="form-group position-relative";return"lg"===t.size&&(Z+=" form-control-lg",M+=" ".concat(j.Z.large)),n.createElement("div",{className:M},n.createElement("label",{className:t.labelClassName,htmlFor:"school-input"},"School:",t.required&&n.createElement("span",{className:"text-danger"},"*")),n.createElement(a.w,{id:"school-input",value:f,onChange:function(t){return F(t.currentTarget.value)},ref:i,className:Z,type:"text",autoComplete:"off",placeholder:t.placeholder||"Select your school below",disabled:t.disabled,autoFocus:!0,onClickClear:function(){F(""),i.current.focus()},onKeyDown:b,onFocus:N,onBlur:A}),n.createElement("div",{className:"position-absolute z-1 w-100 ".concat(j.Z.dropdown," ").concat(L?"d-none":"")},n.createElement("div",{className:"".concat(j.Z.suggestionContainer," ").concat(R?"":"d-none"),ref:E},_?n.createElement(C,{filteredSchoolsList:y,onSchoolSuggestionClick:G,getSchoolName:K,selectedIndex:g}):I&&n.createElement("div",{className:"".concat(j.Z.suggestionLoading," py-4 d-flex justify-content-center")},n.createElement(o.Z,{animation:"border"})),!I&&T&&n.createElement(k,{selected:g===y.length+1,handleNoSuggestion:function(){return t.onClickNoSuggestions(f)}}))))}},76153:(t,e,r)=>{r.d(e,{F:()=>f});var n=r(63093),o=r(33003),a=r.n(o);function i(t){return i="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},i(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var u={secondary:"Secondary","primary & secondary":"Primary & Secondary",k12:"Primary & Secondary",primary:"Primary",special:"Special",university:"University",middle:"Middle","fe college":"FE College","high school":"Secondary",elementary:"Primary","middle school":"Middle",tafe:"TAFE",college:"FE College","sixth form college":"Sixth Form College"},s={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},f={hashedEmail:function(t){var e=t.trim().toLowerCase();return a().hash(e)},removeEmptyKeys:function(t){if(Array.isArray(t))return t;var e=Object.assign({},t);return Object.entries(e).filter((function(t){var e=c(t,2)[1];return null!=e&&!("string"==typeof e&&!e.length)})).reduce((function(t,e){var r,n,o,a=c(e,2),l=a[0],u=a[1];return Object.assign(Object.assign({},t),(r={},n=l,o=u===Object(u)?f.removeEmptyKeys(u):u,(n=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r))}),{})},getEventTopic:function(){return"Free Trial Request"},getProductFormEventType:function(){return n.ProductFormEvent.FormSubmission},getSchoolType:function(t){if(t){var e=t.toLowerCase();if(!["unknown","other"].includes(e))return u[e]||t}},parseProvince:function(t){return t.length?s[t.toLowerCase()]||t:""}}},73525:(t,e,r)=>{r.d(e,{M:()=>i});var n=r(32735);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function i(t){var e=o(n.useState(0),2),r=e[0],a=e[1],i=n.useRef(),c=o(n.useState(!1),2),l=c[0],u=c[1];function s(){var t;i.current&&(null===(t=i.current.children[r-1])||void 0===t||t.scrollIntoView({block:"center"}))}return{selectedIndex:r,onKeyDown:function(e){if("ArrowDown"===e.code){e.stopPropagation(),e.preventDefault();var n=r+1;return n>t.itemCount&&(n=1),a(n),void s()}if("ArrowUp"===e.code){e.stopPropagation(),e.preventDefault();var o=r-1;return o<=0&&(o=t.itemCount),a(o),void s()}if("Enter"===e.code&&r>0)return e.stopPropagation(),e.preventDefault(),void t.onSelected(r-1);a(0)},containerRef:i,hide:l,onFocus:function(){t.hideOnBlur&&u(!1)},onBlur:function(){t.hideOnBlur&&u(!0)}}}},66122:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(32735);function o(t){return n.createElement("span",{id:"".concat(t.name,"Error"),className:"".concat(t.className," invalid-feedback d-block"),role:"status"},t.children)}},1269:(t,e,r)=>{r.d(e,{n:()=>S,W:()=>E});var n=r(32735),o=r(80247),a=r(50132),i=r(92802),c=r(91967),l=r(1048),u=r(57408),s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function f(t){var e=t.label,r=t.checkboxLabelClassName,o=t.checkboxLabelFontWeight,i=t.className,c=s(t,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(a.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(S,Object.assign({className:"form-check-input"},c)),n.createElement(a.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===o?"fw-normal":""," \n ").concat(r),htmlFor:c.id},e),t.checkboxAppLink&&t.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:t.checkboxAppLink,className:"info-link"},t.checkboxAppLinkText))))}var d=r(83914),p=r(83345),y={getCustomFormControlClassName:function(t,e,r,n,o,a){var c="";return c=function(t,e){var r="";return r="select"===t?"form-select":"form-control","sm"===e&&(r+=" ".concat(r,"-sm")),"lg"===e&&(r+=" ".concat(r,"-lg")),r}(a,n),(0,i.u9)(e,r)&&(0,i.u9)(t,r)&&(c+=" is-invalid"),o&&(c+=" ".concat(o)),c}},m=r(35223);function h(t){var e=(0,i.u6)().values[t.fieldName];return"string"!=typeof e?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},e.length,"/",t.limit," characters")}const v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var b=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},w="shared.formField";function S(t){var e,r,a=t.children,u=t.showLoadingSpinner,s=b(t,["children","showLoadingSpinner"]),f=(e=n.useState(t.type),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(e,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.")}()),p=f[0],y=f[1],h=c.q.isFunction(a)?function(t){return a(t)}:n.Children.count(a)?a:null;if("password"!==s.type)return u?n.createElement("div",{className:"position-relative"},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h),n.createElement("div",{className:v.spinner},n.createElement(o.Z,{animation:"border",size:"sm"}))):n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize"])),h);var w="position-relative ".concat(v.passwordContainer);return s.className&&(w+=" ".concat(s.className)),s.disabled&&(w+=" ".concat(v.passwordContainerDisabled)),n.createElement("div",{className:w},n.createElement(i.gN,Object.assign({},l.t.omit(s,["formSize","type","className"]),{type:p,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),h),"password"===s.type&&n.createElement(d.x,{svgName:"password"===p?m.vn.VisibleOn:m.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){y("password"===p?"text":"password")}}))}function E(t){var e=t.label,r=t.className,o=t.showCharacterCounter,c=t.showRequiredStar,u=t.infoTooltip,s=t.infoTooltipPlacement,g=t.infoText,E=t.formSize,O=t.showOptionalLabel,j=b(t,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,i.u6)(),L=x.errors,C=x.touched,k=function(){};if("checkbox"===j.type){var A=l.t.omit(t,["formSize","infoTooltipPlacement"]);return t.disabled&&(A.onChange=k),n.createElement(f,Object.assign({},A))}var N=Object.assign(Object.assign({},j),{className:y.getCustomFormControlClassName(L,C,j.name,E,r,"string"==typeof t.as?t.as:null)});return t.disabled&&(N.onChange=k),n.createElement(a.Z.Group,{className:"form-group"},!!e&&n.createElement(a.Z.Label,{htmlFor:j.id,className:"d-flex align-items-center"},e,c&&n.createElement("span",{className:"text-danger"},"*"),u&&n.createElement(d.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:m.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(p.x,{namespace:w,phrase:"optional"})),!!o&&!!j.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(h,{fieldName:j.name,limit:j.maxLength}))),n.createElement(S,Object.assign({},N,{"aria-errormessage":"".concat(j.name,"Error")})),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:j.name},(function(t){return n.createElement(a.Z.Control.Feedback,{id:"".concat(j.name,"Error"),type:"invalid",role:"status"},t)})))}S.defaultProps={autoComplete:"off"},E.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(t,e,r)=>{r.d(e,{b:()=>s,n:()=>u});var n=r(32735),o=r(92802),a=r(91967),i=r(1048);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var l=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function u(t){var e=t.castInitialValues,r=t.castValuesOnSubmit,u=t.initialValues,s=t.onSubmit,f=l(t,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),d=e&&t.validationSchema?t.validationSchema.cast(function(t){if(!t)return{};var e=i.t.deepClone(t);return function t(r){Object.keys(e).forEach((function(n){e.hasOwnProperty(n)&&(i.t.isObject(r[n])?t(r[n]):null===e[n]&&delete e[n])}))}(e),e}(u)):u,p={allowInitialSubmit:t.allowInitialSubmit};return n.createElement(o.J9,Object.assign({enableReinitialize:!0},f,{initialValues:d,onSubmit:function(e,n){var o=n.setSubmitting,a=n.resetForm,i=n.setFieldError,l=r&&t.validationSchema?t.validationSchema.cast(e):e;s(l,(function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.reset&&a(),r.errors)for(var n=0,l=Object.entries(r.errors);n<l.length;n++){var u=(t=l[n],e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(t,e)||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=u[0],f=u[1];i(s,f)}o(!1)}))},initialStatus:p}),a.q.isFunction(t.children)?function(e){return t.children(e)}:n.Children.count(t.children)?t.children:null)}function s(){return(0,o.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7822:(t,e,r)=>{r.d(e,{D:()=>o});var n=r(99940),o={checkEmail:function(t){return{url:"/api/braze/check-email",key:"braze:check:email:".concat(t),type:n.k.POST,data:{email:t}}},prospectLookups:function(t){return{url:"{gateway}/v1/prospects/".concat(t,"/lookups"),key:"prospect:lookup:".concat(t)}}}},6117:(t,e,r)=>{r.d(e,{f:()=>c});var n=r(39202),o=r(14292),a=r(97395);function i(t){return i="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},i(t)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var t=new URLSearchParams(window.location.search);return"true"===(null==t?void 0:t.get("isBot"))},getCanonicalLink:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=o.A.GetCurrentOrigin(),r=(null==t?void 0:t.customAppLink)||n.C$.getCurrentAppLink(),c=function(t,e){if(!(null==e?void 0:e.length)||"string"==typeof t||!t)return{};var r=e.reduce((function(t,e){return Object.assign(Object.assign({},t),(r={},o=!0,(n=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}(n=e))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r));var r,n,o}),{});return Object.keys(t).reduce((function(e,n){return n in r&&(e[n]=t[n]),e}),{})}(r.params,t.allowedParams),l=n.C$.getHref(Object.assign(Object.assign({},r),{params:c}));return"function"==typeof t.hrefTransformer&&(l=t.hrefTransformer(l)),a._.safeUrlConcat(e,l)}}},52202:(t,e,r)=>{r.d(e,{Z:()=>n});const n={baseText:"KL3Q_",inputFocused:"I6wQy",dropdown:"oI3z7",suggestionContainer:"Y78ea",suggestionItem:"magL7",suggestionLoading:"W7rH_",noSuggestion:"XXSnS",large:"b0Mz9",input:"ChY5L",selected:"snnHR",useMyLocation:"dwmvC"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[520],{34468:(e,t,n)=>{n.d(t,{R:()=>i});var r=n(32735),a=n(73758);function i(e,t,n,i){var o=function(){a.n.unsubscribe(e,t)};return(0,r.useEffect)((function(){if(i)return n?a.n.subscribeOnce(e,t):a.n.subscribe(e,t),function(){o()}}),[]),o}},73758:(e,t,n)=>{function r(e){return r="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},r(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{n:()=>o});var o=new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}},t=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var r;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(r=this.listeners[e])&&void 0!==r?r:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var r=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof r&&-1!==r&&(this.listeners[e].splice(r,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(this.listeners[e]){var i=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&i.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(r))})),i.length&&i.forEach((function(n){return t.deregisterListener(e,n)}))}}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}())},38496:(e,t,n)=>{n.d(t,{p:()=>c});var r=n(32735),a=n(23481),i=n(15800),o=n(83345),l="shared.curriculumLinks",u=a.T.encloseNamespace(l);function c(e){return r.createElement(i.u,{className:"pt-3"},r.createElement(i.u.Image,{src:e.emptyStateUrl,altText:u("emptyInfo"),size:"small"}),r.createElement(i.u.Heading,null,r.createElement(o.x,{namespace:l,phrase:"emptyHeading"})),r.createElement(i.u.Info,null,r.createElement(o.x,{namespace:l,phrase:"emptyInfo"})))}},72189:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(32735);var a=function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"partial-loading-background rounded-pill py-1 px-2 d-inline-block me-1 mb-2 ".concat("vDcrq")}),r.createElement("div",null,r.createElement("div",{className:"partial-loading-background mb-1 ".concat("GXhoW")}),r.createElement("div",{className:"mb-2 d-flex"},r.createElement("div",{className:"me-1 align-self-start ".concat("goKaS")},r.createElement("div",{className:"partial-loading-background rounded-pill py-1 px-2 d-inline-block w-100 h-100"})),r.createElement("div",{className:"partial-loading-background ".concat("vFew6")}))))};function i(){return r.createElement("div",null,r.createElement("div",{className:"mb-3"},r.createElement(a,null)),r.createElement("div",{className:"mb-3"},r.createElement(a,null)),r.createElement("div",null,r.createElement(a,null)))}},87311:(e,t,n)=>{n.d(t,{G:()=>a});var r=n(81886),a={getTagActionProps:function(e,t,n){return n?{onClick:function(n){t&&t();var a=e?e(n):null;if(a)return r.Q.C$.trigger(a)}}:{getAppLink:function(t){return e?e(t):null},onClick:t}}}},16035:(e,t,n)=>{n.d(t,{z:()=>c});var r=n(32735),a=n(23481),i=n(57408),o=n(44829),l=n(86319),u=a.T.encloseNamespace("shared.tags");function c(e){var t,n,a=e.tag,c=e.appLink,s=e.onClick,d=e.disabled,f=e.tagClass,m=void 0===f?"tag":f,v=a.name.toLowerCase(),p=null===(t=a.tagType)||void 0===t?void 0:t.toLowerCase(),h=p===o.Q.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),y="rounded-pill py-1 px-2 my-1 me-1 ".concat(m," ").concat(function(e,t){switch(e){case o.Q.Pedagogy:case o.Q.Skill:return"pedagogy-tag text-white";case o.Q.Hidden:return"hidden-tag fw-normal";case o.Q.Normal:return t?"":"bg-gray-100 fw-normal";default:return""}}(p,h));h&&(y+=" text-white"),!c&&!s||d||(y+=" cursor-pointer"),d&&(y+=" "+l.Z.disabled),e.onRemove&&(y+=" "+l.Z.badge),c||(y+=" d-inline-block");var g=h?{backgroundColor:e.themeColours.secondary}:{};return c?r.createElement(i.F,{onClick:s,appLink:c,className:y,title:v,style:g},r.createElement("span",{className:"text-truncate text-nowrap"},v)):r.createElement("button",{onClick:s,className:y,title:v,style:g,"aria-label":"".concat(u("ariaFilter")," ").concat(v)},r.createElement("span",{className:"text-truncate text-nowrap"},v,e.onRemove&&r.createElement("button",{onClick:e.onRemove,className:"".concat(l.Z.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}},91743:(e,t,n)=>{n.d(t,{P:()=>c});var r=n(32735),a=n(16035),i=n(44829),o=n(86319);function l(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 u(e){var t;switch(null===(t=e.tagType)||void 0===t?void 0:t.toLowerCase()){case i.Q.Pedagogy:return 0;case i.Q.Skill:return 1;default:return 2}}function c(e){if(!e.tags)return r.createElement(r.Fragment,null);var t,n=(t=e.tags,function(e){if(Array.isArray(e))return l(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).sort((function(e,t){return u(e)-u(t)}));return r.createElement("div",{className:"".concat(o.Z.tagList," ").concat(e.className)},n.map((function(t){var n="function"==typeof e.getAppLink?e.getAppLink(t):null,i="function"==typeof e.onRemove?function(){return e.onRemove(t)}:null,o="function"==typeof e.onClick?function(){return e.onClick(t)}:null;return r.createElement(a.z,{key:t.id||t.name,tag:t,appLink:n,themeColours:e.themeColours,onRemove:i,onClick:o})})))}},85597:(e,t,n)=>{var r;n.d(t,{k:()=>r}),function(e){e.Subject="CurriculumSubject",e.Audience="CurriculumAudience",e.Area="CurriculumArea",e.Leaf="CurriculumLeaf"}(r||(r={}))},44829:(e,t,n)=>{var r,a;n.d(t,{Q:()=>r}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(r||(r={})),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={}))},45719:(e,t,n)=>{n.d(t,{P:()=>s});var r=n(32735),a=n(70680),i=n(50242),o=n(91967),l=n(20354);function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){function i(e){if(e)return o.q.isFunction(t)?u(t(e)):u(e.data)}function c(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.v9)((0,r.useMemo)((function(){return function(t){if(o.q.isFunction(e)){for(var n=e,r=o.q.isFunction(e)&&n(),a=r&&l.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,m=f,v=a&&a.shouldFetch,p=i(a&&a.data),h=c(a&&a.data),y=function(e){if(e)return null==e?void 0:e.count}(a&&a.data);h&&(a=l.a.getResponse(t,n(h)),s=s||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var g=i(a.data);g&&p.push.apply(p,u(g));var b=c(a.data);h=b===h?null:b}var C={shouldInitialFetch:v,items:p,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f,hasFirstPageCompleted:m};return"number"==typeof y&&(C.totalItems=y),C}}}),[e]))}i.o.Ok},89758:(e,t,n)=>{n.d(t,{M:()=>m});var r=n(57900),a=n(20354),i=n(2948),o=n(75896),l=n(38143),u=n(25925),c=n(21750),s=n(61699),d=n(31949);function f(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 m=function(e){var t,n,m,v,p,h,y=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=a.a.useGetFetchAsync(),b=null===(t=a.a.useBasicFetch(d.N.currentUser()).data)||void 0===t?void 0:t.isAuthenticated,C=a.a.useBasicFetch(c.x.availablePresentations(u.R.Curriculum)),k=(p=(0,i.D)((v=u.R.Curriculum,"".concat(v.toLowerCase(),":").concat(l.g.PRESENTATION_ID)),void 0,{storage:r.Z1.LocalStorage}),h=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(p,h)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(p,h)||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.")}()),E=k[0],w=k[1],S=!isNaN(+E),A=a.a.useBasicFetch(C.hasCompleted&&function(){if(b)return c.x.presentation(u.R.Curriculum);var e=function(){var e;return S?E:null===(e=o.m.first(C.data))||void 0===e?void 0:e.id}();return e&&c.x.presentationById(e)}()),L=null===(n=C.data)||void 0===n?void 0:n.map((function(e){return e.id})),x=a.a.useBasicFetch(e&&(null==L?void 0:L.length)&&c.x.hasCurriculumLinks([e],L)),N=a.a.useBasicFetch(e&&(null==L?void 0:L.length)&&c.x.checkAllCurriculumsLinks(e,L)),F=function(){var e;return y?(null===(e=N.data)||void 0===e?void 0:e.find((function(e){var t;return e.id===(null===(t=A.data)||void 0===t?void 0:t.id)})))?A.data:o.m.first(N.data):A.data}(),I=a.a.useBasicFetch((null==F?void 0:F.id)&&e&&c.x.curriculumLinks(e,null==F?void 0:F.id)),P=null===(m=o.m.first(x.data))||void 0===m?void 0:m._hasCurriculumLinks;return{hasLoaded:!(!C.hasCompleted&&!A.hasCompleted||!(I.hasCompleted&&x.hasCompleted&&N.hasCompleted)),preferredCurriculum:A.data,activeCurriculum:F,curriculumLinks:I.data,availableCurriculums:C.data,nonEmptyCurriculums:N.data,updateCurriculum:function(e,t,n){return b?g(s.o.setPresentation(e,u.R.Curriculum,t,n)):(w(null==e?void 0:e.id),Promise.resolve())},customerHasCurriculumLinks:P}}},50933:(e,t,n)=>{n.d(t,{l:()=>l});var r=n(20354),a=n(11565),i=n(32735),o=n(45719);function l(e){var t=r.a.useGetFetch();function n(t){return a.R.pointsOfInterest(e,t)}return function(e,t){var n=e,r=t,a=(0,o.P)(e&&function(e){return n(e).key});(0,i.useEffect)((function(){a&&a.shouldInitialFetch&&t&&r()}),[null==a?void 0:a.shouldInitialFetch,t]),(0,i.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&t&&r(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,t])}(!!e&&n,!!e&&function(e){t(n(e))}),(0,o.P)(!!e&&function(e){return n(e).key})}},90125:(e,t,n)=>{n.d(t,{Z:()=>r});const r={curriculumSubject:"GvGYH",curriculumSet:"d7RK0",areaLeafSet:"XRTAe",closeButton:"N3l5Q",heading:"hAxR4",leafDescriptionOnly:"h66ke",dropdown:"CsG6G",tag:"rdLqY",cover:"etwaD",active:"aDLMe",selected:"BMrSd"}},86319:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[5594],{63545:(e,t,n)=>{n.d(t,{_:()=>u});var a=n(32735),i=n(80247),r=n(34152),s=n(83914),o=n(35223);const l={container:"VwD1b",spinner:"eJ85e"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function u(e){var t,n,u=(t=(0,r.YD)(),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 a,i,r,s,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)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.")}()),p=u[0],d=u[1];return a.useEffect((function(){var t;e.fetchOnScroll&&d&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[d,e.isFetching]),a.createElement("div",{className:"p-3 text-center ".concat(l.container),ref:p},e.isFetching?a.createElement(i.Z,{as:"span",animation:"border",role:"status",className:l.spinner}):a.createElement(s.x,{svgName:o.vn.ChevronDown,className:"svg-container cursor-pointer",size:s.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},60115:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(50242),r=n(91967),s=400,o=n(45719);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function c(e,t,n,c,u,p){var d,m,g,y,v=(d=(0,a.useState)(0),m=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,s,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(d,m)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(d,m)||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.")}()),f=v[0],h=v[1],b=t,k=(0,o.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),c,u);return g={fetchNextPage:function(){if(t&&e&&k)return h((function(e){return e+1})),b(k.nextCursor)},hasMore:!!(null==k?void 0:k.nextCursor),isFetching:null==k?void 0:k.isFetching,scrollContainer:p},y=function(){if(!g.isFetching){if(g.scrollContainer){var e=g.scrollContainer;if(e.getBoundingClientRect().height+e.scrollTop<e.scrollHeight-s)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-s)return;g.fetchNextPage()}},(0,a.useEffect)((function(){var e=r.q.throttle(y,200),t=g.scrollContainer||window;return g.hasMore&&t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}),[g.hasMore,g.fetchNextPage,g.scrollContainer]),(0,a.useEffect)((function(){k&&k.shouldInitialFetch&&t&&(b(),h((function(e){return e+1})))}),[null==k?void 0:k.shouldInitialFetch,t]),(0,a.useEffect)((function(){var e,t;if((null==k?void 0:k.statusCode)&&r.q.isFunction(n)){var a=+(null===(t=null===(e=k.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));a!==i.k.ClientError&&a!==i.k.ServerError||n(f,k.statusCode)}}),[null==k?void 0:k.statusCode]),{items:null==k?void 0:k.items,hasMore:!!(null==k?void 0:k.nextCursor),nextCursor:null==k?void 0:k.nextCursor,isFetching:null==k?void 0:k.isFetching,totalItems:null==k?void 0:k.totalItems,hasFirstPageCompleted:null==k?void 0:k.hasFirstPageCompleted}}},45719:(e,t,n)=>{n.d(t,{P:()=>u});var a=n(32735),i=n(70680),r=n(50242),s=n(91967),o=n(20354);function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function u(e,t,n){function r(e){if(e)return s.q.isFunction(t)?l(t(e)):l(e.data)}function c(e){var t,a;if(e)return n?n(e):null===(a=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===a?void 0:a.next}return(0,i.v9)((0,a.useMemo)((function(){return function(t){if(s.q.isFunction(e)){for(var n=e,a=s.q.isFunction(e)&&n(),i=a&&o.a.getResponse(t,a),u=i&&i.isFetching,p=i&&i.statusCode,d=i&&i.hasCompleted,m=d,g=i&&i.shouldFetch,y=r(i&&i.data),v=c(i&&i.data),f=function(e){if(e)return null==e?void 0:e.count}(i&&i.data);v&&(i=o.a.getResponse(t,n(v)),u=u||i.isFetching,p=i.statusCode,d=i.hasCompleted,!i.shouldFetch);){var h=r(i.data);h&&y.push.apply(y,l(h));var b=c(i.data);v=b===v?null:b}var k={shouldInitialFetch:g,items:y,nextCursor:v,isFetching:u,statusCode:p,hasCompleted:d,hasFirstPageCompleted:m};return"number"==typeof f&&(k.totalItems=f),k}}}),[e]))}r.o.Ok},14137:(e,t,n)=>{n.r(t),n.d(t,{SearchResultsView:()=>et,namespace:()=>Ye});var a=n(32735),i=n(23481),r=n(65858),s=n(68050),o=n(83345),l=n(79967),c=n(40370),u=n(69111),p=n(2192);function d(e){var t,n,i,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(n=e.data)||void 0===n?void 0:n.name}),o=Object.assign(Object.assign({location:r.LZ.ClassificationListItem},e.analyticsOptions),{actionType:r.Vw.Click,entity:r.py.Company,descriptor:r._S.Cover});return a.createElement(p.Q,Object.assign({},e,{analyticsData:s,analyticsOptions:o,coverUrl:null===(i=e.data.logo)||void 0===i?void 0:i.url}))}function m(e){return a.createElement(u.Z,{as:"li",sm:6,md:e.useLargeStyle?6:4,lg:e.useLargeStyle?4:3},a.createElement("div",{className:"position-relative px-1 mb-2"},a.createElement(d,{data:e.item,getChildAppLink:e.appLinks.getCompanyAppLink,getChildAppLinkOptions:function(){var t,n;return null===(n=(t=e.appLinks).getCompanyAppLinkOptions)||void 0===n?void 0:n.call(t,e.item)},analyticsData:{itemIndex:e.itemIndex,search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:0},isLarge:e.useLargeStyle})))}var g=n(81886),y=n(43500),v=n(57408),f=n(38088);const h="ZhLPS";function b(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 k="search.exchangeVideoGroup";function L(e){var t,n,i=e.item.showCount>=3?3:e.item.showCount,s=g.Q.C$.getCurrentAppLink(),l=null!==(t=s.params)&&void 0!==t?t:{},c=null!==(n=null==l?void 0:l.source)&&void 0!==n?n:[];c&&!Array.isArray(c)&&(c=[c]);var u,p=Object.assign(Object.assign({},s),{params:Object.assign(Object.assign({},l),{source:[].concat((u=c,function(e){if(Array.isArray(e))return b(e)}(u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}(u)||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.")}()),[y.fi.ExchangeArchive])})}),d={query:e.queryParams.query,itemIndex:e.itemIndex,pagePositionIndex:e.pagePositionIndex},m={entity:r.py.SearchResults,location:r.LZ.ExchangeSearchGroupItem,actionType:r.Vw.Click,descriptor:r.Bk.ExchangeArchive};return a.createElement("div",{className:0===e.pagePositionIndex?"border-bottom pb-1 mb-3":"border-top border-bottom pt-3 mt-2 pb-1 mb-3"},a.createElement(v.F,{appLink:p,analyticsData:d,analyticsOptions:m},a.createElement("h2",{className:"h4"},a.createElement(o.x,{namespace:k,phrase:"heading"}))),a.createElement("p",null,a.createElement(o.x,{namespace:k,phrase:"message"})," ",a.createElement(v.F,{appLink:e.appLinks.searchSettings,className:"text-info",analyticsData:d,analyticsOptions:Object.assign(Object.assign({},m),{descriptor:r._S.Settings})},a.createElement(o.x,{namespace:k,phrase:"searchSettings"})),"."),a.createElement("div",{className:"position-relative ".concat(h)},e.item.videos.slice(0,i).map((function(t,n){return a.createElement(f.m,{key:n,video:t,yearGroups:e.yearGroups,getVideoAppLink:e.appLinks.getVideoAppLink,getSubTextAppLink:e.appLinks.getSubTextAppLink,presentationAudiences:e.audiences,setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:{search:{query:e.queryParams.query,score:t._score,maxScore:t._maxScore,featured:t._featured},pagePositionIndex:e.pagePositionIndex},companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,getClassroomGuideAppLink:e.appLinks.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.appLinks.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.appLinks.getInteractiveGuidanceAppLink,isPlugin:e.isPlugin})}))),a.createElement("div",{className:"text-center py-2"},a.createElement(v.F,{className:"text-secondary",appLink:p,analyticsData:d,analyticsOptions:m},a.createElement(o.x,{namespace:k,phrase:"seeMore"}))))}var x=n(43889);function A(e){return a.createElement("div",{className:"pb-3"},a.createElement(x.J,{video:e.item,presentationAudiences:e.audiences,getVideoAppLink:function(t,n){return e.appLinks.getVideoAppLink(t,n)},subTextAppLink:e.appLinks.getSubTextAppLink(e.item),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},hideInteractiveBadge:!0,yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,showVideoGuidance:c.M.showVideoGuidance(e.hasPermissions),imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.appLinks.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.appLinks.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.appLinks.getClassroomGuideAppLink}))}var E=n(75903),O=n(7733);const S={videoList:"eEZEe"};var P="search.playlistWithVideos";function C(e){var t,n=(t=(0,l.k)()).xl||t.xxl?3:2,i=e.playlist.videos.data.slice(0,n),c={actionType:r.Vw.Click,entity:r.py.Playlist,location:r.LZ.PlaylistWithVideos},p=Object.assign(Object.assign({},e.analyticsData),{id:e.playlist.id,name:e.playlist.name});return a.createElement("div",{className:"ps-2 py-2"},a.createElement(s.Z,{className:"g-0 border border-light rounded-3"},a.createElement(u.Z,{xs:4,lg:3,className:"pe-3"},a.createElement(E.tN,{appLink:e.playlistAppLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},c),{descriptor:r._S.Cover}),data:e.playlist,presentationAudiences:e.presentationAudiences,bgColourClassNames:O.o,itemStyle:"round-left",imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,showCount:!1,showOwner:!0})),a.createElement(u.Z,{xs:8,lg:9},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"pt-3 mb-n2 ".concat(S.videoList)},null==i?void 0:i.map((function(t){var n=Object.assign(Object.assign({},p),{videoId:t.id,videoName:t.name});return a.createElement("div",{key:t.id,className:"mb-2"},a.createElement(f.m,{video:t,getSubTextAppLink:e.getSubTextAppLink,canFavourite:function(){return!1},setFavourite:null,getVideoAppLink:e.getVideoAppLink,analyticsData:n,analyticsOptions:{entity:r.py.Video,location:r.LZ.PlaylistWithVideos},size:"sm",yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,isPlugin:e.isPlugin,hideVideoGuidance:!0}))}))),a.createElement("div",{className:"text-end pt-3 pe-3"},a.createElement(v.F,{className:"info-link fw-semibold",appLink:e.playlistAppLink,analyticsData:p,analyticsOptions:Object.assign(Object.assign({},c),{descriptor:r._S.Link})},a.createElement(o.x,{namespace:P,phrase:"seeAllVideos"})))))))}function j(e){return a.createElement("div",{className:"mx-n2"},a.createElement(C,{playlist:e.item,yearGroups:e.yearGroups,playlistAppLink:e.appLinks.getPlaylistAppLink(e.item),presentationAudiences:e.audiences,analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,preloadImage:!0,getSubTextAppLink:e.appLinks.getSubTextAppLink,getVideoAppLink:e.appLinks.getVideoAppLink,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,isPlugin:e.isPlugin}))}var F=n(70580);const I={videoList:"UT8bc"};var T="search.seriesWithVideos";function w(e){var t,n=(t=(0,l.k)()).xl||t.xxl?5:t.lg||t.md?4:3,i=e.series.videos.data.slice(0,n),c={actionType:r.Vw.Click,entity:r.py.Series,location:r.LZ.SeriesWithVideos},p=Object.assign(Object.assign({},e.analyticsData),{id:e.series.id,name:e.series.name});return a.createElement("div",{className:"ps-2 py-2"},a.createElement(s.Z,{className:"g-0 border border-light rounded-3"},a.createElement(u.Z,{xs:4,lg:3,className:"pe-3"},a.createElement(v.F,{appLink:e.seriesAppLink,className:"position-relative",analyticsData:p,analyticsOptions:Object.assign(Object.assign({},c),{descriptor:r._S.TallPoster})},a.createElement(F.r,{series:e.series,presentationAudiences:e.presentationAudiences,preloadImage:e.preloadImage,imageClass:"rounded-start-lg"}))),a.createElement(u.Z,{xs:8,lg:9},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"pt-3 mb-n2 ".concat(I.videoList)},null==i?void 0:i.map((function(t){var n=Object.assign(Object.assign({},p),{videoId:t.id,videoName:t.name});return t=Object.assign(Object.assign({},t),{series:e.series}),a.createElement("div",{key:t.id,className:"mb-2"},a.createElement(f.m,{video:t,getSubTextAppLink:e.subTextAppLink,canFavourite:function(){return!1},setFavourite:null,getVideoAppLink:e.getVideoAppLink,analyticsData:n,analyticsOptions:{entity:r.py.Video,location:r.LZ.SeriesWithVideos},size:"sm",yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,isPlugin:e.isPlugin,hideVideoGuidance:!0}))}))),a.createElement("div",{className:"text-end pt-3 pe-3"},a.createElement(v.F,{className:"info-link fw-semibold",appLink:e.seriesAppLink,analyticsData:p,analyticsOptions:Object.assign(Object.assign({},c),{descriptor:r._S.Link})},a.createElement(o.x,{namespace:T,phrase:"seeAllVideos"})))))))}function N(e){return a.createElement("div",{className:"mx-n2"},a.createElement(w,{yearGroups:e.yearGroups,presentationAudiences:e.audiences,series:e.item,seriesAppLink:e.appLinks.getSeriesAppLink(e.item),subTextAppLink:e.appLinks.getSubTextAppLink,getVideoAppLink:e.appLinks.getVideoAppLink,analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},preloadImage:!0,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,isPlugin:e.isPlugin}))}var q=n(85177),_=n(54569),V=n(17034),U="search.collectionVideoList";function D(e){var t,n=(t=(0,l.k)()).xs?2:t.sm?1:3,i={analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions};return a.createElement(a.Fragment,null,a.createElement("ul",{className:"list-unstyled my-1"},e.videos.slice(0,n).map((function(t){var n,r=!!t.episodeNumber&&!!(null===(n=t.season)||void 0===n?void 0:n.id);return a.createElement("li",{key:"".concat(e.collectionId,":").concat(t.id),className:"d-flex align-items-center"},a.createElement(v.F,Object.assign({},i,{className:"clamp-1",appLink:e.getVideoAppLink(t)}),r&&a.createElement(a.Fragment,null,a.createElement(V.Q,{video:t})," "),t.name))}))),a.createElement(v.F,Object.assign({},i,{className:"info-link",appLink:e.appLink}),a.createElement(o.x,{namespace:U,phrase:"seeAll"})))}var G=n(64887),R=n(18559),B=n(17464),Z=n(85473),M=n(9977),Q=n(54610);const W={overlayContainer:"MnBcv",overlay:"AZSmh"};var H="search.collectionThumbnail";function $(e){var t,n,i,s,c=(0,l.k)(),p="sm"===M.O.getSize(c,"md"),d=!!(null===(n=null===(t=e.collection.videos)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),m=d&&e.collection.videos.data.find((function(e){var t;return!!(null===(t=e.thumbnail)||void 0===t?void 0:t.url)})),g=(s=Object.assign(Object.assign({},e.analyticsData),{id:e.collection.id,name:e.collection.name}),m&&(s.videoId=m.id,s.videoName=m.name),s),y="series"===e.collectionType;return a.createElement("div",{className:"row g-0 ".concat(p?"":"py-2")},a.createElement(u.Z,Object.assign({},M.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(p?"pb-2 pe-2":"mb-1 px-2")}),a.createElement("div",{className:"position-relative overflow-hidden ".concat(p?"rounded":"rounded-3")},a.createElement(Z.Z,{data:null==m?void 0:m.thumbnail,appLink:e.appLink,imageType:Q.__.Thumbnails,analyticsData:g,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.Thumbnail})},a.createElement(_.z,{type:e.maskType}),a.createElement(q.oy,{type:e.imageFallbackType}),a.createElement("div",{className:"d-flex flex-column align-items-center justify-content-center text-white h-100 ".concat(W.overlay)},a.createElement(o.x,{namespace:H,phrase:"seeAll"}))))),a.createElement(u.Z,Object.assign({},M.O.getDetailsColumns(),{className:p?"pb-2":"px-2"}),!e.isPlugin&&a.createElement(G.e,{actions:e.getCollectionActions(e.collection,e.showActions,e.collectionType,e.analyticsOptions),className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"}),a.createElement(v.F,{appLink:e.appLink,analyticsData:g,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.Title})},a.createElement("h5",{className:"m-0 mb-1"},a.createElement("span",{className:"clamp-1"},e.collection.name))),y&&!e.hideBadges&&a.createElement(B.c,null,a.createElement(R.C,{type:R.g.Rating,data:e.collection.rating}),a.createElement(R.C,{type:R.g.ProductionYear,data:null===(i=e.collection.metadata)||void 0===i?void 0:i.year})),d&&a.createElement(D,{collectionId:e.collection.id,videos:e.collection.videos.data,appLink:e.appLink,analyticsData:g,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.Link}),getVideoAppLink:e.getVideoAppLink})))}function z(e){return a.createElement("div",{className:"position-relative ".concat(h)},a.createElement($,{analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},analyticsOptions:{entity:r.py.Playlist,actionType:r.Vw.Click,location:r.LZ.PlaylistListItem},appLink:e.appLinks.getPlaylistAppLink(e.item),showActions:e.showActions,collection:e.item,collectionType:"playlist",maskType:_.O.Playlist,imageFallbackType:q.mS.PlaylistThumbnail,isPlugin:e.isPlugin,getVideoAppLink:e.appLinks.getVideoAppLink,getCollectionActions:e.appLinks.getCollectionActions}))}function J(e){return a.createElement("div",{className:"position-relative ".concat(h)},a.createElement($,{analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},analyticsOptions:{entity:r.py.Series,actionType:r.Vw.Click,location:r.LZ.SeriesListItem},appLink:e.appLinks.getSeriesAppLink(e.item),collectionType:"series",collection:e.item,showActions:e.showActions,maskType:_.O.Series,imageFallbackType:q.mS.SeriesThumbnail,hideBadges:!0,isPlugin:e.isPlugin,getVideoAppLink:e.appLinks.getVideoAppLink,getCollectionActions:e.appLinks.getCollectionActions}))}var K=n(9513);function Y(e){return a.createElement(u.Z,{as:"li",sm:6,md:e.useLargeStyle?6:4,lg:e.useLargeStyle?4:3},a.createElement("div",{className:"position-relative px-1 mb-2"},a.createElement(K.Vz,{data:e.item,getChildAppLink:e.appLinks.getClassificationAppLink,getChildAppLinkOptions:function(){var t,n;return null===(n=(t=e.appLinks).getClassificationAppLinkOptions)||void 0===n?void 0:n.call(t,e.item)},availablePresentations:e.availablePresentations,analyticsData:{itemIndex:e.itemIndex,search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:0},isLarge:e.useLargeStyle})))}var X=n(61087),ee=n(54293);function te(e){var t,n=(t=e.item,c.M.isClip(t)?X.I:c.M.isInteractive(t)?ee.H:f.m);return a.createElement("div",{className:"position-relative ".concat(h)},a.createElement(n,{video:e.item,yearGroups:e.yearGroups,getVideoAppLink:e.appLinks.getVideoAppLink,getSubTextAppLink:e.appLinks.getSubTextAppLink,getPreviewQuestionsAppLink:e.appLinks.getPreviewQuestionsAppLink,presentationAudiences:e.audiences,setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:{search:{query:e.queryParams.query,score:e.item._score,maxScore:e.item._maxScore,featured:e.item._featured},pagePositionIndex:e.pagePositionIndex},companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,hasPermissions:e.hasPermissions,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getClassroomGuideAppLink:e.appLinks.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.appLinks.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.appLinks.getInteractiveGuidanceAppLink}))}function ne(e){return function(e){if(Array.isArray(e))return ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ae(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)?ae(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(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 ie=a.memo((function(e){var t,n,i,r,u,p,d,g,y=(0,l.k)(),v=y.xs||y.sm;if(!(null===(t=e.results)||void 0===t?void 0:t.length)&&!(null===(n=e.topics)||void 0===n?void 0:n.totalResults)&&!(null===(i=e.companies)||void 0===i?void 0:i.totalResults))return a.createElement(a.Fragment,null);var f=[].concat(ne(null!==(u=null===(r=e.companies)||void 0===r?void 0:r.results)&&void 0!==u?u:[]),ne(null!==(d=null===(p=e.topics)||void 0===p?void 0:p.results)&&void 0!==d?d:[])),h=Object.assign({useLargeStyle:f.length<4},e);return a.createElement("div",{className:"position-relative"},a.createElement("p",{role:"status",className:"visually-hidden"},a.createElement(o.x,{namespace:"shared.mixedSearchResults",phrase:"ariaSearch"})),!!f.length&&a.createElement(s.Z,{as:"ul",className:"list-unstyled g-0 pb-3 mx-n1"},f.slice(0,8).map((function(e,t){switch(e.type.toLowerCase()){case"company":return a.createElement(m,Object.assign({key:t,item:e,itemIndex:t},h));case"subject":return a.createElement(Y,Object.assign({key:t,item:e,itemIndex:t},h))}}))),null===(g=e.results)||void 0===g?void 0:g.map((function(e,t){var n,i,r=f.length?t+1:t;if("isExchangeVideoGroup"in e&&e.isExchangeVideoGroup)return a.createElement(L,Object.assign({key:t,item:e,pagePositionIndex:r},h));switch(null===(n=e.type)||void 0===n?void 0:n.toLowerCase()){case"interactive":case"clip":case"video":return 0===t&&e._featured&&c.M.isVideo(e)?a.createElement(A,Object.assign({key:t,item:e,pagePositionIndex:r},h)):a.createElement(te,Object.assign({key:t,item:e,pagePositionIndex:r},h));case"playlist":return v?a.createElement(z,Object.assign({key:t,item:e,pagePositionIndex:r},h)):a.createElement(j,Object.assign({key:t,item:e,pagePositionIndex:r},h));case"series":return v||!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)?a.createElement(J,Object.assign({key:t,item:e,pagePositionIndex:r},h)):a.createElement(N,Object.assign({key:t,item:e,pagePositionIndex:r},h))}})))})),re=n(56909),se="search.searchSubstitute";function oe(e){return e.substitute?a.createElement("div",{className:"pb-3"},a.createElement("p",{className:"mb-1 h6"},a.createElement(o.x,{namespace:se,phrase:"showingFor"})," ",a.createElement(v.F,{className:"info-link",appLink:e.getAppLink(e.substitute,e.queryParams),appLinkOptions:{replace:!0}},e.substitute)),a.createElement("p",{className:"mb-0 h6 fw-normal"},a.createElement(o.x,{namespace:se,phrase:"searchInsteadFor"}),a.createElement(v.F,{className:"info-link",appLink:e.getAppLink(e.queryParams.query,Object.assign(Object.assign({},e.queryParams),{allowSubstitute:"false"}))},e.queryParams.query),a.createElement(o.x,{namespace:se,phrase:"endOriginal"}))):a.createElement(a.Fragment,null)}var le="search.searchSuggestions";function ce(e){var t;return(null===(t=e.suggestions)||void 0===t?void 0:t.length)?a.createElement("div",{className:"d-flex align-items-center mb-3"},a.createElement(o.x,{namespace:le,phrase:"didYouMean"})," ",e.suggestions.map((function(t,n){return a.createElement(a.Fragment,{key:"".concat(t,":").concat(n)},0!==n&&a.createElement("span",{className:"mx-1"},"•"),a.createElement(v.F,{className:"info-link",appLink:e.getAppLink(t,e.queryParams),appLinkOptions:{replace:!0}},t))}))):a.createElement(a.Fragment,null)}ce.defaultProps={suggestions:[],queryParams:{}};var ue=n(63545),pe=n(51365),de=n(79612),me=n(25301),ge=n(99742),ye=n(96359),ve=n(41760),fe=n(41135),he=n(49433),be=n(65751),ke=n(20354),Le=n(25925),xe=n(89454),Ae=n(21750),Ee=n(39151),Oe=n(98064),Se=n(31949),Pe=n(31700),Ce=n(97395),je={search:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,s="search:".concat(e,":").concat(t,":").concat(a);s+=Object.keys(n).map((function(e){return n[e]})).join(";");var o=Object.assign({},Object.assign({index:t,cursor:null!=a?a:void 0,query:e},n));return{url:Ce._.urlBuilder("{gateway}/v1/search",o),publicUrl:Ce._.urlBuilder("/api/search",o),key:s,success:i,error:r}},schoolLevels:function(e){var t={filterType:"schoolLevels",presentationId:e};return{url:Ce._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:Ce._.urlBuilder("/api/search/filters",t),key:"school-levels"}}},Fe=n(99940),Ie=n(2997),Te=(n(75896),n(1048)),we=function(e,t){return e.map((function(e){return t?Object.assign(Object.assign({},e),{_maxScore:t}):e}))};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}function qe(e){return qe="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},qe(e)}function _e(e){var t,n,a,i=e.totalResults,r=null!==(n=null===(t=null==e?void 0:e.results)||void 0===t?void 0:t.filter((function(e){var t,n,a,r,s,o,l,c;if("series"!==e._index&&"playlist"!==e._index)return!0;if("playlist"===e._index){var u=e;return!!((null===(n=null===(t=u.clips)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)||(null===(r=null===(a=u.interactives)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)||(null===(o=null===(s=u.videos)||void 0===s?void 0:s.data)||void 0===o?void 0:o.length))||(i--,!1)}return 0!==(null===(c=null===(l=e.videos)||void 0===l?void 0:l.data)||void 0===c?void 0:c.length)||(i--,!1)})))&&void 0!==n?n:[];e.results=r,e.totalResults=i;var s=null===(a=r[0])||void 0===a?void 0:a._score;return Object.assign(Object.assign({},e),{results:we(r,s)})}var Ve={searchV4:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,s="search:v4:".concat(e,":").concat(a,":").concat(t,":").concat(i);s+=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.join(";"):t})).join(";");var o=n,l="".concat(Ie.w.FILTER_PARAM_PREFIX,"excludeLibraryExclusive"),c=o[l],u=o.isLearner,p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(o,["symbol"===qe(l)?l:l+"","isLearner"]),d={searchType:"content",indices:t.map((function(e){return"video"===e&&c?{index:e,filters:{excludeLibraryExclusive:c}}:{index:e}})),filters:Object.entries(p).reduce((function(e,t){var n,a,i=(a=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,s,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(n,a)||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}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],s=i[1];return Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=qe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.replace("filters.",""),s))}),{}),query:e,allowSubstitute:a,cursor:null!=i?i:void 0,isLearner:!!u,limit:r};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:Fe.k.POST,data:d,key:s,formatData:_e}},search:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,o=arguments.length>7?arguments[7]:void 0,l="search:".concat(e,":").concat(a,":").concat(t,":").concat(i);l+=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.join(";"):t})).join(";");var c=Object.assign({},Object.assign({index:t,cursor:null!=i?i:void 0,query:e,allowSubstitute:a,limit:r},n));return{url:Ce._.urlBuilder("{gateway}/v3/search",c),publicUrl:Ce._.urlBuilder("/api/search",c),key:l,formatData:_e,success:s,error:o}},tagsAndClassifications:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,s=Object.assign({},Object.assign({index:t,cursor:a,query:e},n));return{url:Ce._.urlBuilder("{gateway}/v3/search/tags-and-classifications",s),publicUrl:Ce._.urlBuilder("/api/search/tags-and-classifications",s),key:"filter:options:".concat(e,":").concat(t.join(":"),":").concat(a),success:i,error:r,normalize:!1}}},Ue=n(66770),De=n(44909),Ge=n(2284),Re=n(85594);var Be=n(45445),Ze=n(69883),Me=n(60115),Qe="search.utils",We=n(2948),He=n(38143);function $e(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 ze=n(15800),Je="search.searchResultsEmptyState";function Ke(e){var t=ge.W.EmptyStates.SEARCH;return a.createElement(o.D.Provider,{value:Je},a.createElement(ze.u,null,a.createElement(ze.u.Image,{src:t}),a.createElement(ze.u.Heading,null,e.query?a.createElement(o.x,{phrase:"headingWithQuery",options:{query:e.query}}):a.createElement(o.x,{phrase:"headingWithoutQuery"})),a.createElement(ze.u.Info,null,a.createElement(o.x,{phrase:"info"}),a.createElement(v.F,{className:"info-link",appLink:{application:fe.O.SUBJECTS,action:ye.e.Subjects.CLASSIFICATION_ALL}},a.createElement(o.x,{phrase:"topicsAppLink"})))))}var Ye="search.searchResults",Xe=i.T.encloseNamespace(Ye);function et(e){var t,n,s,o,l,c,u,p,d,m=e.queryParams,g=void 0===m?{}:m,y=(0,he.V)("video-list"),v=function(e){var t,n,a,i,r,s=ke.a.useBasicFetch(Se.N.currentUser()),o=ke.a.useBasicFetch(Ee.L.config()),l=ke.a.useBasicFetch(Pe.g.streamablePresentation()),c=l.data,u=null===(t=ke.a.useBasicFetch(Oe.D.streamableLearning()).data)||void 0===t?void 0:t.objectId,p=null==c?void 0:c.id,d=ke.a.useBasicFetch(l.data&&xe.O.presentationAudiences(l.data.id,Le.R.StreamableLearning)),m=(r=null===(n=l.data)||void 0===n?void 0:n.id,ke.a.useBasicFetch(r&&je.schoolLevels([r]))),g=null===(i=null===(a=m.data)||void 0===a?void 0:a.schoolLevels)||void 0===i?void 0:i.map((function(e){return e.id})),y=ke.a.useBasicFetch(m.data&&Ae.x.topicsFromAllAvailablePresentations(g)),v=function(e,t){var n=Ue.qr.buildBackendFilterParams(e,null,[t],!1,[]),a=Te.t.pick(n,["filters.classification","filters.presentation"]);a["filters.classificationType"]=Re.A.Subject,a["filters.status"]=Ge.W.Published,a["filters.presentation"]=t;var i=!Ue.qr.getAppliedIndices(e).includes("classification"),r=Ve.search(De.y.getQuery(e),["classification"],a,"false"!==e.allowSubstitute),s=!i,o=ke.a.useBasicFetch(s&&r);return s?o:null}(e,p),f=function(e,t){var n=Ue.qr.buildBackendFilterParams(e,null,[t],!1,[])||{};n["filters.presentation"]=t;var a=Ve.search(De.y.getQuery(e),["company"],n,"false"!==e.allowSubstitute);return ke.a.useBasicFetch(a)}(e,p);return{queryParams:e,currentUser:s,config:o,audiences:d,schoolLevels:m,availableTopics:y,topics:v,companies:f,currentPresentationId:p,streamableLibraryId:u,hasDataLoaded:d.hasCompleted&&s.hasCompleted&&o.hasCompleted}}(g),f=De.y.getBackendFilters(v),h=(d=f,ke.a.useBasicFetch(d&&Ve.tagsAndClassifications(d.queryParams.query,d.appliedIndices,d.backendFilters))),b=function(e){var t,n,a,r=e.queryParams,s=e.appliedIndices,o=e.backendFilters,l=(0,Ze.Z)(),c=ke.a.useGetFetch(),u=ke.a.useGetResponse(null===(t=p())||void 0===t?void 0:t.key);function p(t){return e.hasDataLoaded&&!!(null==s?void 0:s.length)&&Ve.search(r.query,s,o,"false"!==r.allowSubstitute,t)}function d(e){c(p(e))}var m=(0,Me.K)(p,d,(function(e,t){if(1===e)return(0,Be.r)(t);l.error(i.T.getPhrase(Qe,"error"))}),(function(e){return e.results}));return Object.assign(Object.assign({},m),{hasFirstPageCompleted:m.hasFirstPageCompleted||!e.hasDataLoaded||!(null==s?void 0:s.length),fetchNext:d,substituteQuery:null===(n=u.data)||void 0===n?void 0:n.substituteQuery,suggestions:null===(a=u.data)||void 0===a?void 0:a.suggestions})}(Object.assign(Object.assign({},f),v)),k=De.y.getFilters(v,h);(0,de.M)(me.CG.getDefaultMetadata({title:null!==(t=g.query)&&void 0!==t?t:"",phraseContext:{phraseHandler:Xe,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},allowIndexing:!1,product:ve.L.PRODUCT_NAME}));var L,x,A,E,O,S,P=v.hasDataLoaded&&k,C=b.hasFirstPageCompleted&&(!v.topics||v.topics.hasCompleted)&&(!v.companies||v.companies.hasCompleted)&&h.hasCompleted&&!!k,j=(null===(n=b.items)||void 0===n?void 0:n.length)||(null===(o=null===(s=v.topics)||void 0===s?void 0:s.data)||void 0===o?void 0:o.totalResults)||(null===(c=null===(l=v.companies)||void 0===l?void 0:l.data)||void 0===c?void 0:c.totalResults);return L=C,O=(0,We.D)(He.g.SHOW_SEARCH_MASK,!0),S=2,x=function(e){if(Array.isArray(e))return e}(O)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,s,o=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=r.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}(O,S)||function(e,t){if(e){if("string"==typeof e)return $e(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)?$e(e,t):void 0}}(O,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),A=x[0],E=x[1],a.useEffect((function(){A&&L&&E(!1)}),[L]),P?a.createElement("div",{className:"px-4"},a.createElement(oe,{substitute:b.substituteQuery,queryParams:g,getAppLink:be.y.search}),!b.substituteQuery&&a.createElement(ce,{suggestions:b.suggestions,queryParams:g,getAppLink:be.y.search}),!!v.audiences.data&&!!v.availableTopics.data&&a.createElement(re.J,{queryParams:g,mainFilters:null==k?void 0:k.mainFilters,analyticsOptions:{entity:r.py.SearchResults,location:r.LZ.SearchFilters},appLink:{application:fe.O.SEARCH,action:ye.e.Search.HOME},isFetchingOptions:h.isFetching}),C&&a.createElement("section",null,j?a.createElement(pe.M.Provider,{value:{getVideoActions:y}},a.createElement(ie,{queryParams:g,results:b.items,topics:null===(u=v.topics)||void 0===u?void 0:u.data,companies:null===(p=v.companies)||void 0===p?void 0:p.data,setFavourite:null,canFavourite:null,audiences:!g.moviesAndTv&&v.audiences.data,currentUser:v.currentUser.data,imageCdnUrl:v.config.data.imageCdnUrl,availablePresentations:null,showActions:!0,yearGroups:null,isPlugin:!1,appLinks:De.y.getAppLinks(),companyLogoFallbackUrl:ge.W.StreamableLearning.LOGO,subTextType:"productionCompany",hasPermissions:function(){return!1}})):a.createElement(Ke,{query:g.query}),(b.hasMore||b.isFetching)&&a.createElement(ue._,{isFetching:b.isFetching,fetchNext:b.fetchNext,nextCursor:b.nextCursor,fetchOnScroll:!0}))):a.createElement(a.Fragment,null)}},49433:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(65858);function i(e){return function(t){return t.id,t.name,"video-list"===e?a.LZ.VideoListItem:a.LZ.PlayPage,[]}}}}]);
|