@clickview/streamable-learning 0.7.10 → 0.8.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{74-streamable-learning-eef5570d48.chunk.css → 122-streamable-learning-c067c7cc15.chunk.css} +1 -1
- package/dist/css/{1-streamable-learning-f20ec89d45.chunk.css → 177-streamable-learning-ced7ccbc48.chunk.css} +2 -2
- package/dist/css/{301-streamable-learning-47a3703051.chunk.css → 301-streamable-learning-b344f90d44.chunk.css} +1 -1
- package/dist/css/{397-streamable-learning-bdccad4ad8.chunk.css → 397-streamable-learning-abf107d19e.chunk.css} +1 -1
- package/dist/css/{596-streamable-learning-9a6ffe7d8b.chunk.css → 596-streamable-learning-2c51a5f976.chunk.css} +1 -1
- package/dist/css/{628-streamable-learning-d787f3ce8d.chunk.css → 784-streamable-learning-4df822d203.chunk.css} +0 -1
- package/dist/css/{631-streamable-learning-1eacc6b846.chunk.css → 862-streamable-learning-76d0adfd6b.chunk.css} +1 -1
- package/dist/css/{streamable-learning-607c12faad.css → streamable-learning-fe153c88cc.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/109-781cd6f6e5-streamable-learning.chunk.js +1 -0
- package/dist/scripts/122-f55f499ffb-streamable-learning.chunk.js +2 -0
- package/dist/scripts/177-cd182510b9-streamable-learning.chunk.js +2 -0
- package/dist/scripts/253-fb7fbaf6f4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/254-b58032e762-streamable-learning.chunk.js +1 -0
- package/dist/scripts/301-a14b0ed7ce-streamable-learning.chunk.js +1 -0
- package/dist/scripts/397-b3a7600d26-streamable-learning.chunk.js +1 -0
- package/dist/scripts/423-b748f59e02-streamable-learning.chunk.js +1 -0
- package/dist/scripts/542-428be5f14b-streamable-learning.chunk.js +1 -0
- package/dist/scripts/546-9dd6f0111c-streamable-learning.chunk.js +1 -0
- package/dist/scripts/689-3d3106a994-streamable-learning.chunk.js +1 -0
- package/dist/scripts/784-9fbf1b5ab2-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{790-c02c7ae373-streamable-learning.chunk.js → 790-bb3aab5247-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/843-b0a9a525f0-streamable-learning.chunk.js +2 -0
- package/dist/scripts/862-e2ed05b2f4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{358-c3bf2dcecb-streamable-learning.chunk.js → 872-7e55909784-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{725-620e9a2948-streamable-learning.chunk.js → 881-acf48eef73-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{933-ddc6b46d6f-streamable-learning.chunk.js → 933-ca4f584716-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/954-7459c079cb-streamable-learning.chunk.js +1 -0
- package/dist/scripts/983-79462b2013-streamable-learning.chunk.js +1 -0
- package/dist/scripts/987-7f87266445-streamable-learning.chunk.js +1 -0
- package/dist/scripts/bundle-fbecf66caa.min.js +2 -0
- package/jest.config.js +11 -11
- package/package.json +33 -33
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/intersection-observer.d.ts +82 -82
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +28 -28
- package/typings/utils/imports.d.ts +11 -11
- package/dist/css/4-streamable-learning-9da2021bc1.chunk.css +0 -3
- package/dist/css/462-streamable-learning-c35496c339.chunk.css +0 -4
- package/dist/css/streamable-learning-7ed2c2658c.css +0 -21
- package/dist/css/streamable-learning-ec218883b1.css +0 -21
- package/dist/scripts/1-926bea21d1-streamable-learning.chunk.js +0 -2
- package/dist/scripts/109-94b4e994bf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/121-db697ff092-streamable-learning.chunk.js +0 -1
- package/dist/scripts/163-d59bf09a1e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/249-08770d26cb-streamable-learning.chunk.js +0 -1
- package/dist/scripts/254-3d47b85397-streamable-learning.chunk.js +0 -1
- package/dist/scripts/301-34b7daad4b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/301-de8d134139-streamable-learning.chunk.js +0 -1
- package/dist/scripts/375-28e0d35508-streamable-learning.chunk.js +0 -1
- package/dist/scripts/397-851bf4387b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4-d802a23c24-streamable-learning.chunk.js +0 -2
- package/dist/scripts/423-96b50bd266-streamable-learning.chunk.js +0 -1
- package/dist/scripts/462-1142942169-streamable-learning.chunk.js +0 -1
- package/dist/scripts/502-6aea2c04ee-streamable-learning.chunk.js +0 -1
- package/dist/scripts/513-7b415e3526-streamable-learning.chunk.js +0 -1
- package/dist/scripts/546-0bc49c36b3-streamable-learning.chunk.js +0 -1
- package/dist/scripts/546-c757147b1d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/559-689f0690fd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/569-c0c1890705-streamable-learning.chunk.js +0 -1
- package/dist/scripts/586-07c874aa24-streamable-learning.chunk.js +0 -1
- package/dist/scripts/628-85fad78d8d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/631-b0acdd0712-streamable-learning.chunk.js +0 -1
- package/dist/scripts/74-27f2fc95ef-streamable-learning.chunk.js +0 -2
- package/dist/scripts/74-d9b3213e70-streamable-learning.chunk.js +0 -2
- package/dist/scripts/74-d9b3213e70-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/843-21c9f1d83e-streamable-learning.chunk.js +0 -2
- package/dist/scripts/843-21c9f1d83e-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/954-8945e2a15b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/bundle-3a85424e55.min.js +0 -2
- package/dist/scripts/bundle-6e8aaae5f6.min.js +0 -2
- package/dist/scripts/bundle-6e8aaae5f6.min.js.LICENSE.txt +0 -108
- package/dist/scripts/bundle-96657620ba.min.js +0 -2
- package/dist/scripts/bundle-96657620ba.min.js.LICENSE.txt +0 -108
- /package/dist/css/{163-streamable-learning-edac0e9a90.chunk.css → 983-streamable-learning-edac0e9a90.chunk.css} +0 -0
- /package/dist/css/{249-streamable-learning-b5d226bbb6.chunk.css → 987-streamable-learning-b5d226bbb6.chunk.css} +0 -0
- /package/dist/scripts/{1-926bea21d1-streamable-learning.chunk.js.LICENSE.txt → 122-f55f499ffb-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4-d802a23c24-streamable-learning.chunk.js.LICENSE.txt → 177-cd182510b9-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{596-3afa41f875-streamable-learning.chunk.js → 596-28b2828908-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{74-27f2fc95ef-streamable-learning.chunk.js.LICENSE.txt → 843-b0a9a525f0-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-3a85424e55.min.js.LICENSE.txt → bundle-fbecf66caa.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[301],{79878:(e,t,n)=>{n.d(t,{r:()=>m});var a=n(32735),r=n(23481),i=n(83914),o=n(64444),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function m(e){return a.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},39880:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(57408);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},64887:(e,t,n)=>{n.d(t,{e:()=>y});var a=n(32735),r=n(91967),i=n(63855),o=n(64444),l=n(42735),c=n(81886),s=n(45157),m=n(92582),d=n(57408),u=n(83914),g=n(35223);const p={dropdownToggle:"UCAnJ"};function b(){return a.createElement(a.Fragment,null,a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"8rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"12rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"11rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"9rem"}})))}function v(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return a.createElement(a.Fragment,null,e.action.label)};if(e.action.appLink)return a.createElement(d.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:v(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),a.createElement("span",{className:"align-middle"},t()));function n(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&m.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&c.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?a.createElement("a",{className:v(e.action.className),onClick:n,href:e.action.href},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),a.createElement("span",{className:"align-middle"},t())):a.createElement("span",{className:"cursor-pointer ".concat(v(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(e)}},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2"}),t())}function h(e){if(!e.actions||!e.actions.length)return a.createElement(a.Fragment,null);var t=e.actions.some((function(e){return e.lazyPlaceholder})),n="dropdown";e.className&&(n+=" ".concat(e.className));var r,i="actions-dropdown-".concat(s.Y.getRandomInt()),l="dropdown-toggle px-0 ".concat(p.dropdownToggle);return e.dropdownToggleClassName&&(l+=" ".concat(e.dropdownToggleClassName)),a.createElement("div",{className:n},a.createElement("button",{className:l,type:"button",id:i,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:t?e.fetchMore:null},a.createElement(u.x,{svgName:g.vn.More,size:e.dropdownToggleSvgSize})),a.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":i},t?a.createElement(b,null):e.actions.map((function(e,t){var n=void 0!==r&&r!==e.group;return r=e.group,e.tooltip?a.createElement(a.Fragment,{key:t},n&&a.createElement("hr",{className:"dropdown-divider",role:"separator"}),a.createElement(o.u,{title:e.tooltip,spanHack:!0},a.createElement(f,{action:e}))):a.createElement(a.Fragment,{key:t},n&&a.createElement("hr",{className:"dropdown-divider",role:"separator"}),a.createElement(f,{action:e}))}))))}function y(e){var t=a.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],c=[];t.forEach((function(e){e.button?n.push(e):c.push(e)}));var s="d-flex";return e.className&&(s+=" ".concat(e.className)),n.length||c.length?a.createElement("div",{className:s},a.createElement(a.Fragment,null,a.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return a.createElement(a.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return a.createElement(a.Fragment,null,e.label)};return a.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var n=a.createElement(i.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?a.createElement(o.u,{title:e.tooltip,spanHack:!0},n):n}())})):a.createElement(a.Fragment,null),e.sortComponent&&e.sortComponent,c.length?a.createElement(h,{actions:c,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize,fetchMore:e.fetchMore}):a.createElement(a.Fragment,null)))):a.createElement(a.Fragment,null)}h.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:u.S.Small}},75553:(e,t,n)=>{n.d(t,{p:()=>I,v:()=>L});var a=n(32735),r=n(110),i=n(12788),o={renderInPortalIfExists:function(e,t){return t?(0,i.createPortal)(e,t):e}},l=n(79878),c=n(39880),s=n(64887),m=n(23481),d=n(57408),u=n(83914),g=n(35223),p="shared.backButton";function b(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,l=t.textShadow,c=n?m.T.getPhrase(p,"backTo",{backToName:n}):m.T.getPhrase(p,"back"),s="black"===i?"":"text-white",b=l?"text-shadow":"";return a.createElement(d.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(s," ").concat(b)},a.createElement(u.x,{svgName:g.vn.ChevronLeft,size:u.S.Medium}),a.createElement("span",{className:"ms-1"},c))}b.defaultProps={color:"black",extraClasses:""};var v=n(16107),f=n(83345),h=n(10587),y=n(94232),E=n(54610),N=n(79967),k=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var w="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function C(e){return e.length<160?"h1":S.headingLarge}var I=a.memo((function(e){var t,n,i,m,d=e.heading,u=e.banner,g=e.imageCdnUrl,p=e.actions,h=e.sortComponent,I=e.blockColourClass,L=e.specialEvent,T=a.useContext(y.n),A=(0,N.k)().xxl?1920:1200,x=a.useMemo((function(){if(!L||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return L.endDate?L.startDate<=t&&L.endDate>=t:L.startDate===t}),[L]),F=e.imageOptions||{width:A,ratio:w,resizeType:E.Nq.Cover},O=!!u&&!!g&&k.j.createBannerUrl(u,{fallbackBaseUrl:g,fallbackCategoryName:d,type:E.__.Banners},F),P={className:"banner banner-header ".concat(e.bannerClassName),style:O?{backgroundImage:"url('".concat(O,"')")}:{}};!u&&I&&(delete P.style,P.className+=" ".concat(I));var D=e.detailsComponent;return o.renderInPortalIfExists(a.createElement("header",Object.assign({},P),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(b,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(S.bannerContent," ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?S.bannerContentWithLogo:""))},!!L&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:L.endDate?"range":"day",text:L.endDate?"".concat(r.O.format(L.startDate,"DD"),"-").concat(r.O.format(L.endDate,"DD")):r.O.format(L.startDate,"DD")},month:r.O.format(L.startDate,"MMMM"),theme:e.calendarTheme})),a.createElement("div",null,x&&a.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},a.createElement(f.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&a.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&a.createElement("div",{className:"".concat(S.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(n=e.logo)||void 0===n?void 0:n.url)&&a.createElement(v.w,{src:k.j.createUrl(null===(i=e.logo)||void 0===i?void 0:i.url,{size:E.h2.Small})})),a.createElement("h1",{className:"text-white text-shadow pe-3 ".concat(S.heading," ").concat(C(d)," ").concat(e.alignLogoLeft?"w-50":"")},d,D&&a.createElement(D,null)))),!!p&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:p,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(m=e.logo)||void 0===m?void 0:m.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:k.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==T?void 0:T.container)}),(function(e,t){var n,a;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(a=t.logo)||void 0===a?void 0:a.url)}));function L(){var e=a.useContext(y.n);return o.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>u});var a=n(32735),r=n(57408),i=n(86764),o=n(3747),l=n(5859),c=n(35223),s=n(83914),m=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?a.createElement("strong",null,n):a.createElement(r.F,{appLink:i},l&&a.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:l?"ms-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(m,{breadcrumb:t[r-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(m,{key:t,breadcrumb:e})}))))},u=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,o.a)(i.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},85177:(e,t,n)=>{n.d(t,{oy:()=>u,mS:()=>s});var a=n(32735),r=n(83914),i=n(7733),o=n(9085),l=n(35223);const c={baseFallbackContainer:"ZvbeV",svgFallbackContainer:"atIHN",subjectFallbackContainer:"m20L7",subjectFallbackContainerSmall:"QIbxu",subjectFallbackContainerLarge:"z_sHT",seriesItemFallback:"epoLB",playlistItemFallback:"h1S5T",playlistFallback:"ZbKBN",posterFallback:"I1mTo",subjectFallback:"kNG8Z",fallbackThumbnailImage:"nKsWZ",videoFallback:"LolCW",folderFallback:"mdrT5"};var s,m,d;function u(e){var t,n=e.type,u=e.mediaType,g=e.extraClasses,p=e.containerClassSize;if(n===s.Video)return a.createElement("div",{className:"".concat(c.videoFallback," ").concat(e.extraClasses," bg-light-blue")});if(n===s.Folder)return a.createElement("div",{className:"".concat(c.folderFallback," ").concat(e.extraClasses," ").concat((0,o.x)(e.name,i.o))});var b=function(e){return e===s.SeriesThumbnail?c.seriesItemFallback:e===s.PlaylistThumbnail?c.playlistItemFallback:e===s.Playlist?c.playlistFallback:e===s.Series||e===s.TallSubject?c.posterFallback:e===s.Subject?"".concat(c.subjectFallback," svg-container d-inline-block"):""}(n),v=function(e){return e===s.SeriesThumbnail||e===s.PlaylistThumbnail?l.vn.Play:e===s.Playlist?l.vn.Image:e===s.Series?l.vn.Series:e===s.Subject||e===s.TallSubject?l.vn.Subject:""}(n),f=function(e){return e===s.Subject?r.S.ExtraLarge:r.S.Standard}(n),h="".concat(function(e,t,n){if(t===s.Subject){var a=n===d.Large?c.subjectFallbackContainerLarge:c.subjectFallbackContainerSmall;return"".concat(c.subjectFallbackContainer," ").concat(a)}return e===m.Svg?t===s.SeriesThumbnail||t===s.PlaylistThumbnail?"".concat(c.svgFallbackContainer," rounded-3"):c.svgFallbackContainer:c.baseFallbackContainer}(u,n,p));return g&&(h+=" ".concat(e.extraClasses)),a.createElement("div",{className:h},u===m.Svg?a.createElement(r.x,{svgName:v,className:"".concat(b," ").concat(null!==(t=e.svgContainerClassName)&&void 0!==t?t:""),tagName:"div",size:f}):a.createElement("div",{className:c.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(v,"')")}}))}!function(e){e[e.Playlist=0]="Playlist",e[e.PlaylistThumbnail=1]="PlaylistThumbnail",e[e.Series=2]="Series",e[e.SeriesThumbnail=3]="SeriesThumbnail",e[e.Subject=4]="Subject",e[e.TallSubject=5]="TallSubject",e[e.Video=6]="Video",e[e.Folder=7]="Folder"}(s||(s={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(m||(m={})),function(e){e[e.Large=0]="Large",e[e.Small=1]="Small"}(d||(d={})),u.defaultProps={mediaType:m.Svg,containerClassSize:d.Large}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(66869),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q});var a=n(72861);n(14244)},7733:(e,t,n)=>{n.d(t,{o:()=>a});var a=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},10587:(e,t,n)=>{n.d(t,{y:()=>o});var a=n(54610);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 i(e,t,n){var a;return a=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)}(t),(t="symbol"==r(a)?a:a+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=i(i(i(i(i(i(i(i(i({},a.__.Thumbnails,{width:1280,height:720}),a.__.Banners,{width:1200,height:222}),a.__.Covers,{width:512,height:512}),a.__.Posters,{width:1e3,height:1500}),a.__.TallPosters,{width:1080,height:1920}),a.__.HeroBanners,{width:1920,height:640}),a.__.None,{width:1,height:1}),a.__.Avatars,{width:256,height:256}),a.__.Logos,{width:128,height:128})},69454:(e,t,n)=>{n.d(t,{T:()=>d});var a=n(75896),r=n(1048),i=n(55171);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=/\d/,c=function(e){var t,n,r=a.m.first(e),i=a.m.last(e);return r.name===i.name?r.name:"Advanced"===i.name?"lower"===(t=r.name.split(" "),n=1,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,m=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,r,o="";switch(+a.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:case i.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!l.test(e.name)})),i=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(i+="s"),r&&n.length)return"".concat(i," ").concat(r.name.charAt(0)," - ").concat(n.pop());var o=function(e){var t,n,a,r,i=!1,o=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,i||(t=e[a]),n=e[r],e[a]+1===n?i=!0:i?(o.push("".concat(t," - ").concat(e[a])),i=!1):(o.push("".concat(e[a])),i=!1);return o}(n);return"".concat(i," ").concat(o.join(", "))}(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var i=e[0].name,o=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(i)," - ").concat(l(o));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case i.e.PresentationIds.ENGLISH_SECONDARY:o=c(e);break;case i.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=a.m.first(t),r=a.m.last(t),o=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case i.e.PresentationIds.ENGLAND_PRIMARY:o=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),i=a.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(o);var c="",s="";return c="Reception"===r?"R":"KS".concat(o),s="KS".concat(l),"Lower"===r&&"Upper"===i?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===i&&(s="Upper ".concat(s)),"Key"===i&&(s=n.name),"".concat(c," - ").concat(s))}(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return o?{name:o}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(s));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var i=a.name.localeCompare(r.name);return 0===i?i:i>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&d.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(m,"").toLowerCase()},i=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return i[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},9085:(e,t,n)=>{function a(e,t){return t[e.charCodeAt(0)%t.length]}n.d(t,{x:()=>a})},96150:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationsView:()=>F});var a=n(32735),r=n(23481),i=n(57900),o=n(20354),l=n(2948),c=n(28400),s=n(65858),m=n(75553),d=n(49935),u=n(47770),g=n(65163),p=n(9513),b=n(55171),v=n(38143),f=n(54610),h=n(78479),y=n(42308),E=n(21750),N=n(39151),k=n(31949),S=n(69454),w=n(99742),C=n(96359),I=n(41135),L=n(31700);const T={classificationPane:"kx1WX"};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var x=r.T.encloseNamespace("subjects.classificationsView");function F(e){var t,n,r,F,O,P,D,j,_,R=o.a.useBasicFetch(k.N.currentUser()),M=o.a.useBasicFetch(N.L.config()),B=o.a.useBasicFetch(L.g.streamablePresentation()),U=function(e,t){var n=o.a.useBasicFetch(e&&E.x.classification(e,t));return e?null==n?void 0:n.data:{name:x("exploreAllTopicsHeading"),banner:{url:b.e.Images.STREAMABLE_TOPIC_BANNER}}}(e.id,null===(t=R.data)||void 0===t?void 0:t.id),V=(O=e.id,P=o.a.useBasicFetch(O&&E.x.path(O)),O?null==P?void 0:P.data:[]),z=e.id?E.x.children(e.id):B.data&&E.x.topLevelTopics(null===(n=B.data)||void 0===n?void 0:n.id),H=o.a.useBasicFetch(z),Y=(D=(0,l.D)(v.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),j=1,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(D,j)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.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)?A(e,t):void 0}}(D,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],K=function(e){var t=S.T.getAudienceParams(Y);return{application:I.O.SUBJECTS,action:C.e.Subjects.CLASSIFICATION,args:e?[e.id,c.m.slugify(e.name)]:[],params:t||{}}},Z=(!e.id||!!U)&&!!M.data&&H.data,W=!!V,$={presentationId:null===(r=B.data)||void 0===r?void 0:r.id,presentationName:null===(F=B.data)||void 0===F?void 0:F.name,currentClassificationName:null==U?void 0:U.name,widgetId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge};return a.createElement("main",{className:"bg-white px-3"},Z?a.createElement(m.p,{heading:null==U?void 0:U.name,banner:null==U?void 0:U.banner,imageCdnUrl:M.data.imageCdnUrl,actions:[],imageOptions:!e.id&&{size:f.h2.Large}}):a.createElement(m.v,null),a.createElement("div",{className:"py-3 mb-3 border-bottom"},W?a.createElement(d.Oo,{breadcrumbs:(_=[{name:x("discover"),appLink:{application:I.O.DASHBOARD,action:C.e.Dashboard.HOME}},{name:x("exploreAllTopicsHeading"),appLink:{application:I.O.SUBJECTS,action:C.e.Subjects.CLASSIFICATION_ALL},active:!e.id}],V.forEach((function(e){_.push({name:e.name,appLink:K(e)})})),e.id&&_.push({name:x("subview"),active:!0}),_)}):a.createElement(d.b2,null)),a.createElement("div",{className:T.classificationPane},Z?a.createElement(u.K,{id:e.id,name:"",description:"",metadata:{},analyticsData:$,content:null==H?void 0:H.data,analyticsOptions:{location:s.LZ.SlidingListItem},appLinks:{classification:K},imageCdnUrl:M.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:w.W.Fallbacks.RESOURCE_THUMBNAIL,companyLogoFallbackUrl:w.W.StreamableLearning.LOGO,subTextType:"productionCompany",preferences:[],hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},widgetTypeId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge}):a.createElement(g.QL,{partialLoadingComponent:p.Qh})))}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(95685),r=n.n(a),i=n(32735),o=n(46304),l=n(74512);const c=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},i)=>{const c=(0,o.vE)(e,"row"),s=(0,o.pi)(),m=(0,o.zG)(),d=`${c}-cols`,u=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r=e!==m?`-${e}`:"";null!=n&&u.push(`${d}${r}-${n}`)})),(0,l.jsx)(n,{ref:i,...a,className:r()(t,c,...u)})}));c.displayName="Row";const s=c},34152:(e,t,n)=>{n.d(t,{YD:()=>s});var a=n(32735),r=(Object.defineProperty,new Map),i=new WeakMap,o=0,l=void 0;function c(e,t,n={},a=l){if(void 0===window.IntersectionObserver&&void 0!==a){const r=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}const{id:c,observer:s,elements:m}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=r.get(t);if(!n){const a=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const r=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=a.get(t.target))||n.forEach((e=>{e(r,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:a},r.set(t,n)}return n}(n),d=m.get(e)||[];return m.has(e)||m.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(m.delete(e),s.unobserve(e)),0===m.size&&(s.disconnect(),r.delete(c))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:l,initialInView:s,fallbackInView:m,onChange:d}={}){var u;const[g,p]=a.useState(null),b=a.useRef(),[v,f]=a.useState({inView:!!s,entry:void 0});b.current=d,a.useEffect((()=>{if(l||!g)return;let a;return a=c(g,((e,t)=>{f({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&o&&a&&(a(),a=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},m),()=>{a&&a()}}),[Array.isArray(e)?e.toString():e,g,i,r,o,l,n,m,t]);const h=null==(u=v.entry)?void 0:u.target,y=a.useRef();g||!h||o||l||y.current===h||(y.current=h,f({inView:!!s,entry:void 0}));const E=[p,v.inView,v.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}a.Component}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[301],{79878:(e,t,n)=>{n.d(t,{r:()=>m});var a=n(32735),r=n(23481),i=n(83914),o=n(64444),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function m(e){return a.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},39880:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(57408);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},64887:(e,t,n)=>{n.d(t,{e:()=>y});var a=n(32735),r=n(91967),i=n(63855),o=n(64444),l=n(42735),c=n(81886),s=n(45157),m=n(92582),d=n(57408),u=n(83914),g=n(35223);const p={dropdownToggle:"UCAnJ"};function b(){return a.createElement(a.Fragment,null,a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"8rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"12rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"11rem"}})),a.createElement("div",{style:{padding:"0.53125rem 1rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.0625rem",width:"9rem"}})))}function v(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return a.createElement(a.Fragment,null,e.action.label)};if(e.action.appLink)return a.createElement(d.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:v(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),a.createElement("span",{className:"align-middle"},t()));function n(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&m.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&c.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?a.createElement("a",{className:v(e.action.className),onClick:n,href:e.action.href},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2 align-middle"}),a.createElement("span",{className:"align-middle"},t())):a.createElement("span",{className:"cursor-pointer ".concat(v(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(e)}},e.action.svgName&&a.createElement(u.x,{svgName:e.action.svgName,className:"d-inline-block svg-container me-2"}),t())}function h(e){if(!e.actions||!e.actions.length)return a.createElement(a.Fragment,null);var t=e.actions.some((function(e){return e.lazyPlaceholder})),n="dropdown";e.className&&(n+=" ".concat(e.className));var r,i="actions-dropdown-".concat(s.Y.getRandomInt()),l="dropdown-toggle px-0 ".concat(p.dropdownToggle);return e.dropdownToggleClassName&&(l+=" ".concat(e.dropdownToggleClassName)),a.createElement("div",{className:n},a.createElement("button",{className:l,type:"button",id:i,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:t?e.fetchMore:null},a.createElement(u.x,{svgName:g.vn.More,size:e.dropdownToggleSvgSize})),a.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":i},t?a.createElement(b,null):e.actions.map((function(e,t){var n=void 0!==r&&r!==e.group;return r=e.group,e.tooltip?a.createElement(a.Fragment,{key:t},n&&a.createElement("hr",{className:"dropdown-divider",role:"separator"}),a.createElement(o.u,{title:e.tooltip,spanHack:!0},a.createElement(f,{action:e}))):a.createElement(a.Fragment,{key:t},n&&a.createElement("hr",{className:"dropdown-divider",role:"separator"}),a.createElement(f,{action:e}))}))))}function y(e){var t=a.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],c=[];t.forEach((function(e){e.button?n.push(e):c.push(e)}));var s="d-flex";return e.className&&(s+=" ".concat(e.className)),n.length||c.length?a.createElement("div",{className:s},a.createElement(a.Fragment,null,a.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return a.createElement(a.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return a.createElement(a.Fragment,null,e.label)};return a.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var n=a.createElement(i.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?a.createElement(o.u,{title:e.tooltip,spanHack:!0},n):n}())})):a.createElement(a.Fragment,null),e.sortComponent&&e.sortComponent,c.length?a.createElement(h,{actions:c,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize,fetchMore:e.fetchMore}):a.createElement(a.Fragment,null)))):a.createElement(a.Fragment,null)}h.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:u.S.Small}},75553:(e,t,n)=>{n.d(t,{p:()=>I,v:()=>L});var a=n(32735),r=n(110),i=n(12788),o={renderInPortalIfExists:function(e,t){return t?(0,i.createPortal)(e,t):e}},l=n(79878),c=n(39880),s=n(64887),m=n(23481),d=n(57408),u=n(83914),g=n(35223),p="shared.backButton";function b(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,l=t.textShadow,c=n?m.T.getPhrase(p,"backTo",{backToName:n}):m.T.getPhrase(p,"back"),s="black"===i?"":"text-white",b=l?"text-shadow":"";return a.createElement(d.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(s," ").concat(b)},a.createElement(u.x,{svgName:g.vn.ChevronLeft,size:u.S.Medium}),a.createElement("span",{className:"ms-1"},c))}b.defaultProps={color:"black",extraClasses:""};var v=n(16107),f=n(83345),h=n(10587),y=n(94232),E=n(54610),N=n(79967),k=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var w="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function C(e){return e.length<160?"h1":S.headingLarge}var I=a.memo((function(e){var t,n,i,m,d=e.heading,u=e.banner,g=e.imageCdnUrl,p=e.actions,h=e.sortComponent,I=e.blockColourClass,L=e.specialEvent,T=a.useContext(y.n),A=(0,N.k)().xxl?1920:1200,x=a.useMemo((function(){if(!L||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return L.endDate?L.startDate<=t&&L.endDate>=t:L.startDate===t}),[L]),F=e.imageOptions||{width:A,ratio:w,resizeType:E.Nq.Cover},O=!!u&&!!g&&k.j.createBannerUrl(u,{fallbackBaseUrl:g,fallbackCategoryName:d,type:E.__.Banners},F),P={className:"banner banner-header ".concat(e.bannerClassName),style:O?{backgroundImage:"url('".concat(O,"')")}:{}};!u&&I&&(delete P.style,P.className+=" ".concat(I));var D=e.detailsComponent;return o.renderInPortalIfExists(a.createElement("header",Object.assign({},P),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(b,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(S.bannerContent," ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?S.bannerContentWithLogo:""))},!!L&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:L.endDate?"range":"day",text:L.endDate?"".concat(r.O.format(L.startDate,"DD"),"-").concat(r.O.format(L.endDate,"DD")):r.O.format(L.startDate,"DD")},month:r.O.format(L.startDate,"MMMM"),theme:e.calendarTheme})),a.createElement("div",null,x&&a.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},a.createElement(f.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&a.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&a.createElement("div",{className:"".concat(S.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(n=e.logo)||void 0===n?void 0:n.url)&&a.createElement(v.w,{src:k.j.createUrl(null===(i=e.logo)||void 0===i?void 0:i.url,{size:E.h2.Small})})),a.createElement("h1",{className:"text-white text-shadow pe-3 ".concat(S.heading," ").concat(C(d)," ").concat(e.alignLogoLeft?"w-50":"")},d,D&&a.createElement(D,null)))),!!p&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:p,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(m=e.logo)||void 0===m?void 0:m.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:k.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==T?void 0:T.container)}),(function(e,t){var n,a;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(a=t.logo)||void 0===a?void 0:a.url)}));function L(){var e=a.useContext(y.n);return o.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>u});var a=n(32735),r=n(57408),i=n(86764),o=n(3747),l=n(5859),c=n(35223),s=n(83914),m=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?a.createElement("strong",null,n):a.createElement(r.F,{appLink:i},l&&a.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:l?"ms-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(m,{breadcrumb:t[r-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(m,{key:t,breadcrumb:e})}))))},u=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,o.a)(i.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},85177:(e,t,n)=>{n.d(t,{oy:()=>u,mS:()=>s});var a=n(32735),r=n(83914),i=n(7733),o=n(9085),l=n(35223);const c={baseFallbackContainer:"ZvbeV",svgFallbackContainer:"atIHN",subjectFallbackContainer:"m20L7",subjectFallbackContainerSmall:"QIbxu",subjectFallbackContainerLarge:"z_sHT",seriesItemFallback:"epoLB",playlistItemFallback:"h1S5T",playlistFallback:"ZbKBN",posterFallback:"I1mTo",subjectFallback:"kNG8Z",fallbackThumbnailImage:"nKsWZ",videoFallback:"LolCW",folderFallback:"mdrT5"};var s,m,d;function u(e){var t,n=e.type,u=e.mediaType,g=e.extraClasses,p=e.containerClassSize;if(n===s.Video)return a.createElement("div",{className:"".concat(c.videoFallback," ").concat(e.extraClasses," bg-light-blue")});if(n===s.Folder)return a.createElement("div",{className:"".concat(c.folderFallback," ").concat(e.extraClasses," ").concat((0,o.x)(e.name,i.o))});var b=function(e){return e===s.SeriesThumbnail?c.seriesItemFallback:e===s.PlaylistThumbnail?c.playlistItemFallback:e===s.Playlist?c.playlistFallback:e===s.Series||e===s.TallSubject?c.posterFallback:e===s.Subject?"".concat(c.subjectFallback," svg-container d-inline-block"):""}(n),v=function(e){return e===s.SeriesThumbnail||e===s.PlaylistThumbnail?l.vn.Play:e===s.Playlist?l.vn.Image:e===s.Series?l.vn.Series:e===s.Subject||e===s.TallSubject?l.vn.Subject:""}(n),f=function(e){return e===s.Subject?r.S.ExtraLarge:r.S.Standard}(n),h="".concat(function(e,t,n){if(t===s.Subject){var a=n===d.Large?c.subjectFallbackContainerLarge:c.subjectFallbackContainerSmall;return"".concat(c.subjectFallbackContainer," ").concat(a)}return e===m.Svg?t===s.SeriesThumbnail||t===s.PlaylistThumbnail?"".concat(c.svgFallbackContainer," rounded-3"):c.svgFallbackContainer:c.baseFallbackContainer}(u,n,p));return g&&(h+=" ".concat(e.extraClasses)),a.createElement("div",{className:h},u===m.Svg?a.createElement(r.x,{svgName:v,className:"".concat(b," ").concat(null!==(t=e.svgContainerClassName)&&void 0!==t?t:""),tagName:"div",size:f}):a.createElement("div",{className:c.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(v,"')")}}))}!function(e){e[e.Playlist=0]="Playlist",e[e.PlaylistThumbnail=1]="PlaylistThumbnail",e[e.Series=2]="Series",e[e.SeriesThumbnail=3]="SeriesThumbnail",e[e.Subject=4]="Subject",e[e.TallSubject=5]="TallSubject",e[e.Video=6]="Video",e[e.Folder=7]="Folder"}(s||(s={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(m||(m={})),function(e){e[e.Large=0]="Large",e[e.Small=1]="Small"}(d||(d={})),u.defaultProps={mediaType:m.Svg,containerClassSize:d.Large}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(66869),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q});var a=n(72861);n(14244)},7733:(e,t,n)=>{n.d(t,{o:()=>a});var a=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},10587:(e,t,n)=>{n.d(t,{y:()=>o});var a=n(54610);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 i(e,t,n){var a;return a=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)}(t),(t="symbol"==r(a)?a:a+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=i(i(i(i(i(i(i(i(i({},a.__.Thumbnails,{width:1280,height:720}),a.__.Banners,{width:1200,height:222}),a.__.Covers,{width:512,height:512}),a.__.Posters,{width:1e3,height:1500}),a.__.TallPosters,{width:1080,height:1920}),a.__.HeroBanners,{width:1920,height:640}),a.__.None,{width:1,height:1}),a.__.Avatars,{width:256,height:256}),a.__.Logos,{width:128,height:128})},69454:(e,t,n)=>{n.d(t,{T:()=>d});var a=n(75896),r=n(1048),i=n(55171);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=/\d/,c=function(e){var t,n,r=a.m.first(e),i=a.m.last(e);return r.name===i.name?r.name:"Advanced"===i.name?"lower"===(t=r.name.split(" "),n=1,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(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.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,m=/\s|\+/gi,d={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,r,o="";switch(+a.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:case i.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!l.test(e.name)})),i=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(i+="s"),r&&n.length)return"".concat(i," ").concat(r.name.charAt(0)," - ").concat(n.pop());var o=function(e){var t,n,a,r,i=!1,o=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,i||(t=e[a]),n=e[r],e[a]+1===n?i=!0:i?(o.push("".concat(t," - ").concat(e[a])),i=!1):(o.push("".concat(e[a])),i=!1);return o}(n);return"".concat(i," ").concat(o.join(", "))}(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];o=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var i=e[0].name,o=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(i)," - ").concat(l(o));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case i.e.PresentationIds.ENGLISH_SECONDARY:o=c(e);break;case i.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=a.m.first(t),r=a.m.last(t),o=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case i.e.PresentationIds.ENGLAND_PRIMARY:o=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),i=a.m.first(n.name.split(" ")),o=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(o);var c="",s="";return c="Reception"===r?"R":"KS".concat(o),s="KS".concat(l),"Lower"===r&&"Upper"===i?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===i&&(s="Upper ".concat(s)),"Key"===i&&(s=n.name),"".concat(c," - ").concat(s))}(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return o?{name:o}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(s));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var i=a.name.localeCompare(r.name);return 0===i?i:i>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&d.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(m,"").toLowerCase()},i=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return i[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},9085:(e,t,n)=>{function a(e,t){return t[e.charCodeAt(0)%t.length]}n.d(t,{x:()=>a})},96150:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationsView:()=>F});var a=n(32735),r=n(23481),i=n(57900),o=n(20354),l=n(2948),c=n(28400),s=n(65858),m=n(75553),d=n(49935),u=n(47770),g=n(65163),p=n(9513),b=n(55171),v=n(38143),f=n(54610),h=n(78479),y=n(42308),E=n(21750),N=n(39151),k=n(31949),S=n(69454),w=n(99742),C=n(96359),I=n(41135),L=n(31700);const T={classificationPane:"kx1WX"};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var x=r.T.encloseNamespace("subjects.classificationsView");function F(e){var t,n,r,F,O,P,D,j,_,R=o.a.useBasicFetch(k.N.currentUser()),M=o.a.useBasicFetch(N.L.config()),B=o.a.useBasicFetch(L.g.streamablePresentation()),U=function(e,t){var n=o.a.useBasicFetch(e&&E.x.classification(e,t));return e?null==n?void 0:n.data:{name:x("exploreAllTopicsHeading"),banner:{url:b.e.Images.STREAMABLE_TOPIC_BANNER}}}(e.id,null===(t=R.data)||void 0===t?void 0:t.id),V=(O=e.id,P=o.a.useBasicFetch(O&&E.x.path(O)),O?null==P?void 0:P.data:[]),z=e.id?E.x.children(e.id):B.data&&E.x.topLevelTopics(null===(n=B.data)||void 0===n?void 0:n.id),H=o.a.useBasicFetch(z),Y=(D=(0,l.D)(v.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),j=1,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(D,j)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.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)?A(e,t):void 0}}(D,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],K=function(e){var t=S.T.getAudienceParams(Y);return{application:I.O.SUBJECTS,action:C.e.Subjects.CLASSIFICATION,args:e?[e.id,c.m.slugify(e.name)]:[],params:t||{}}},Z=(!e.id||!!U)&&!!M.data&&H.data,W=!!V,$={presentationId:null===(r=B.data)||void 0===r?void 0:r.id,presentationName:null===(F=B.data)||void 0===F?void 0:F.name,currentClassificationName:null==U?void 0:U.name,widgetId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge};return a.createElement("main",{className:"bg-white px-3"},Z?a.createElement(m.p,{heading:null==U?void 0:U.name,banner:null==U?void 0:U.banner,imageCdnUrl:M.data.imageCdnUrl,actions:[],imageOptions:!e.id&&{resizeType:f.Nq.Cover}}):a.createElement(m.v,null),a.createElement("div",{className:"py-3 mb-3 border-bottom"},W?a.createElement(d.Oo,{breadcrumbs:(_=[{name:x("discover"),appLink:{application:I.O.DASHBOARD,action:C.e.Dashboard.HOME}},{name:x("exploreAllTopicsHeading"),appLink:{application:I.O.SUBJECTS,action:C.e.Subjects.CLASSIFICATION_ALL},active:!e.id}],V.forEach((function(e){_.push({name:e.name,appLink:K(e)})})),e.id&&_.push({name:x("subview"),active:!0}),_)}):a.createElement(d.b2,null)),a.createElement("div",{className:T.classificationPane},Z?a.createElement(u.K,{id:e.id,name:"",description:"",metadata:{},analyticsData:$,content:null==H?void 0:H.data,analyticsOptions:{location:s.LZ.SlidingListItem},appLinks:{classification:K},imageCdnUrl:M.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:w.W.Fallbacks.RESOURCE_THUMBNAIL,companyLogoFallbackUrl:w.W.StreamableLearning.LOGO,subTextType:"productionCompany",preferences:[],hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},widgetTypeId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge}):a.createElement(g.QL,{partialLoadingComponent:p.Qh})))}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(95685),r=n.n(a),i=n(32735),o=n(46304),l=n(74512);const c=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},i)=>{const c=(0,o.vE)(e,"row"),s=(0,o.pi)(),m=(0,o.zG)(),d=`${c}-cols`,u=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r=e!==m?`-${e}`:"";null!=n&&u.push(`${d}${r}-${n}`)})),(0,l.jsx)(n,{ref:i,...a,className:r()(t,c,...u)})}));c.displayName="Row";const s=c},34152:(e,t,n)=>{n.d(t,{YD:()=>s});var a=n(32735),r=(Object.defineProperty,new Map),i=new WeakMap,o=0,l=void 0;function c(e,t,n={},a=l){if(void 0===window.IntersectionObserver&&void 0!==a){const r=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}const{id:c,observer:s,elements:m}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=r.get(t);if(!n){const a=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const r=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=a.get(t.target))||n.forEach((e=>{e(r,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:a},r.set(t,n)}return n}(n),d=m.get(e)||[];return m.has(e)||m.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(m.delete(e),s.unobserve(e)),0===m.size&&(s.disconnect(),r.delete(c))}}function s({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:o,skip:l,initialInView:s,fallbackInView:m,onChange:d}={}){var u;const[g,p]=a.useState(null),b=a.useRef(),[v,f]=a.useState({inView:!!s,entry:void 0});b.current=d,a.useEffect((()=>{if(l||!g)return;let a;return a=c(g,((e,t)=>{f({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&o&&a&&(a(),a=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},m),()=>{a&&a()}}),[Array.isArray(e)?e.toString():e,g,i,r,o,l,n,m,t]);const h=null==(u=v.entry)?void 0:u.target,y=a.useRef();g||!h||o||l||y.current===h||(y.current=h,f({inView:!!s,entry:void 0}));const E=[p,v.inView,v.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}a.Component}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[375],{78259:(e,n,t)=>{t.d(n,{O:()=>o});var r=t(58176),a=t.n(r),i=t(21161),c={className:"info-link",defaultProtocol:"https"},o={linkifyText:function(e,n){if(e){var t=n?i.extend({},c,n):c;return a()(e,t)}}}},85473:(e,n,t)=>{t.d(n,{Z:()=>f});var r=t(32735),a=t(1048),i=t(57408),c=t(16107),o=t(54610),s=t(67453);const u={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function l(e){var n=u.image,t="";return e.imageType===o.__.Thumbnails&&(t="thumbnail ".concat(u.thumbnail)),e.imageType===o.__.TallPosters&&(t=u.tallPoster),e.imageType===o.__.Covers&&(t=u.cover),e.imageType===o.__.Banners&&(t=u.banner),e.imageType===o.__.Posters&&(t=u.poster),e.imageType===o.__.Pdf&&(t=u.pdf),e.imageType===o.__.Link&&(t=u.link),t&&(n+=" ".concat(t)),e.className&&(n+=" ".concat(e.className)),n}function f(e){var n=e.data,t=e.imageOptions,o=e.appLink,u=e.preload,f=e.preventLoad,d=e.analyticsOptions,m=e.analyticsData,p=e.imageClassName,v=e.alt,h="";"string"==typeof n?h=n:a.t.isObject(n)&&(h=n.url);var g=h&&t?s.j.createUrl(h,t):h;return r.createElement("div",{className:l(e),style:e.imageStyle},r.createElement(i.F,{appLink:o,analyticsData:m,analyticsOptions:d,onClick:e.onClick},e.children,g&&r.createElement(c.w,{src:g,alt:v,forceLoad:u,preventLoad:f,extraClasses:p,errorFallbackImageSrc:e.errorFallbackImageSrc})))}},5960:(e,n,t)=>{var r,a;t.d(n,{H:()=>a,X:()=>r}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(a||(a={}))},69454:(e,n,t)=>{t.d(n,{T:()=>f});var r=t(75896),a=t(1048),i=t(55171);function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var o=/\d/,s=function(e){var n,t,a=r.m.first(e),i=r.m.last(e);return a.name===i.name?a.name:"Advanced"===i.name?"lower"===(n=a.name.split(" "),t=1,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,i,c,o=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(r=i.call(t)).done)&&(o.push(r.value),o.length!==n);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw a}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},u=/([0-9]+)/gi,l=/\s|\+/gi,f={getSortedPresentationAudiences:function(e,n){var t=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return n.filter((function(e){return t.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var n,t,a,c="";switch(+r.m.first(e).presentationId){case i.e.PresentationIds.DEFAULT:case i.e.PresentationIds.AU_SECONDARY:case i.e.PresentationIds.US_ELEMENTARY:case i.e.PresentationIds.AU_PRIMARY:case i.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];c=function(e){var n=e.map((function(e){return e.name})).join(" "),t=n.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],r=n.split(" ").filter((function(e){return isNaN(+e)}))||[],a=e.find((function(e){return!o.test(e.name)})),i=r.find((function(e){return e!==(null==a?void 0:a.name)}));if(e.length>1&&(i+="s"),a&&t.length)return"".concat(i," ").concat(a.name.charAt(0)," - ").concat(t.pop());var c=function(e){var n,t,r,a,i=!1,c=[];for(e=e.sort((function(e,n){return e-n})),r=0;r<e.length;r++)a=r+1,i||(n=e[r]),t=e[a],e[r]+1===t?i=!0:i?(c.push("".concat(n," - ").concat(e[r])),i=!1):(c.push("".concat(e[r])),i=!1);return c}(t);return"".concat(i," ").concat(c.join(", "))}(e);break;case i.e.PresentationIds.SCOTLAND_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_PRIMARY:case i.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];c=function(e){var n=e.map((function(e){return e.name})),t={};n.forEach((function(e,n){if(0!==n){var r=e.split(" ");Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}else e.split(" ").forEach((function(e,n){t[e]=0===n?"start":"end"}))}));var r=Object.keys(t)[0],a=t[r];if(!r)return e[0].name;var i=e[0].name,c=e[e.length-1].name,o=function(e){return e.split(r)[0]},s="".concat(o(i)," - ").concat(o(c));return"start"===a?"".concat(r," ").concat(s):"".concat(s," ").concat(r)}(e);break;case i.e.PresentationIds.ENGLISH_SECONDARY:c=s(e);break;case i.e.PresentationIds.SCOTLAND_SECONDARY:n=e,t=r.m.first(n),a=r.m.last(n),c=t.name===a.name?t.name:"Senior Phase"===a.name?"".concat(t.name," - Senior"):"Third - Fourth Level";break;case i.e.PresentationIds.ENGLAND_PRIMARY:c=function(e){var n=r.m.first(e),t=r.m.last(e),a=r.m.first(n.name.split(" ")),i=r.m.first(t.name.split(" ")),c=n.name.split(" ").find((function(e){return!isNaN(+e)})),o=t.name.split(" ").find((function(e){return!isNaN(+e)}));if(n===t)return"Key"===a||"Reception"===a?n.name:"".concat(a," KS").concat(c);var s="",u="";return s="Reception"===a?"R":"KS".concat(c),u="KS".concat(o),"Lower"===a&&"Upper"===i?"L ".concat(s," - U ").concat(u):("Lower"===a&&(s="Lower ".concat(s)),"Upper"===i&&(u="Upper ".concat(u)),"Key"===i&&(u=t.name),"".concat(s," - ").concat(u))}(e);case i.e.PresentationIds.US_MIDDLE:case i.e.PresentationIds.US_HIGH:}return c?{name:c}:null},sortMembersWithDuplicateNamesByAudience:function(e){var n=function(e){return e.length?(e.forEach((function(e){var a=+r.m.first(e.name.match(u));if(!n)return n=e,void(t=a);a<t&&(n=e)})),n):null;var n,t},t={},a=[];return e.forEach((function(e){if(!t[e.name])return t[e.name]=1,void a.push(e);a.push(e),t[e.name]++;var r=a.splice(a.length-t[e.name]).sort((function(e,t){var r=n(e.subjectPresentationAudiences.data),a=n(t.subjectPresentationAudiences.data);if(!r&&a)return 1;if(!a)return-1;var i=r.name.localeCompare(a.name);return 0===i?i:i>0?-1:1}));a=a.concat(r)})),a},getActiveAudiencesFromParams:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a.t.isObject(n)&&!a.t.isEmpty(n)&&e&&e.length&&f.shouldShowAudiences(e)){var t=n.a;if(t){"string"==typeof t&&(t=[t]);var r=function(e){return e.replace(l,"").toLowerCase()},i=t.reduce((function(e,n){return e[r(n)]=n,e}),{});return e.filter((function(e){return i[r(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[397],{71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>L});var a,i=n(23481),r=n(110),o=n(71063);function s(e){return s="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},s(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function c(e,t,n){var a;return a=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==s(a)?a:a+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var u=i.T.encloseNamespace("shared.shared-utils"),p=/^(.*)\s/,d="pageTitle",m="pageDescription",v=c(c(c(c(c(c({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function y(e){return e?e.substring(0,e.length-3)+"...":""}function g(e){var t,n,a=e.title,i=e.phraseContext,r=e.product,o=void 0===r?"ClickView":r;if(!a)return"";if(!i)return u(d,{title:a,product:o});var s=70-(null!==(n=null===(t=i.phraseHandler(i.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=s?u(d,{title:a,product:o}):i.phraseHandler(i.titlePhrase,{title:a})}function f(e){var t,n,a,i,r,o=e.title,s=e.description,l=e.phraseContext,c=y((160,(r=s||o)?r.substring(0,160):""));if(!l)return u(m,{description:c});var d=160-(null!==(n=null===(t=l.phraseHandler(l.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=d)return u(m,{description:c});var v=y(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var i=e.slice(0,a),r=i.match(p);return r?r[1]:i}(s,0,null!==(i=null===(a=l.phraseHandler(l.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==i?i:0));return l.phraseHandler(l.descriptionPhrase,{title:o,description:v})}function h(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,i,r,o=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&o?[].concat(function(e){if(Array.isArray(e))return l(e)}(r=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{"@type":"Place",name:o}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:r.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:h(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var L={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,o=e.hrefLang;return{title:g({title:t,phraseContext:i,product:e.product}),description:f({title:t,description:n,phraseContext:i}),canonicalLink:a,allowIndexing:r,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.regionAlternatives,s=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:a,product:s}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:i,hrefLang:r}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}}}},53983:(e,t,n)=>{n.r(t),n.d(t,{SearchResultsView:()=>pt,namespace:()=>ct});var a=n(32735),i=n(23481),r=n(65858),o=n(68050),s=n(79967),l=n(40370),c=n(69111),u=n(21172);function p(e){var t,n,i,o=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}),s=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(u.Q,Object.assign({},e,{analyticsData:o,analyticsOptions:s,coverUrl:null===(i=e.data.logo)||void 0===i?void 0:i.url}))}function d(e){return a.createElement(c.Z,{sm:6,md:e.useLargeStyle?6:4,lg:e.useLargeStyle?4:3},a.createElement("div",{className:"position-relative px-1 mb-2"},a.createElement(p,{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 m=n(81886),v=n(43500),y=n(57408),g=n(83345),f=n(55577);const h="ZhLPS";function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var L="search.exchangeVideoGroup";function x(e){var t,n,i=e.item.showCount>=3?3:e.item.showCount,o=m.Q.C$.getCurrentAppLink(),s=null!==(t=o.params)&&void 0!==t?t:{},l=null!==(n=null==s?void 0:s.source)&&void 0!==n?n:[];l&&!Array.isArray(l)&&(l=[l]);var c,u=Object.assign(Object.assign({},o),{params:Object.assign(Object.assign({},s),{source:[].concat((c=l,function(e){if(Array.isArray(e))return b(e)}(c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.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}}(c)||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.")}()),[v.fi.ExchangeArchive])})}),p={query:e.queryParams.query,itemIndex:e.itemIndex,pagePositionIndex:e.pagePositionIndex},d={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(y.F,{appLink:u,analyticsData:p,analyticsOptions:d},a.createElement("h2",{className:"h4"},a.createElement(g.x,{namespace:L,phrase:"heading"}))),a.createElement("p",null,a.createElement(g.x,{namespace:L,phrase:"message"})," ",a.createElement(y.F,{appLink:e.appLinks.searchSettings,className:"text-info",analyticsData:p,analyticsOptions:Object.assign(Object.assign({},d),{descriptor:r._S.Settings})},a.createElement(g.x,{namespace:L,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})}))),e.item.videos.length>i&&a.createElement("div",{className:"text-center py-2"},a.createElement(y.F,{className:"text-secondary",appLink:u,analyticsData:p,analyticsOptions:d},a.createElement(g.x,{namespace:L,phrase:"seeMore"}))))}var k=n(43889);function E(e){return a.createElement("div",{className:"pb-3"},a.createElement(k.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:l.M.showVideoGuidance(e.hasPermissions)}))}var A=n(11979),O=n(7733);const S={videoList:"eEZEe"};var C="search.playlistWithVideos";function P(e){var t,n=(t=(0,s.k)()).xl||t.xxl?3:2,i=e.playlist.videos.data.slice(0,n),l={actionType:r.Vw.Click,entity:r.py.Playlist,location:r.LZ.PlaylistWithVideos},u=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(o.Z,{className:"g-0 border border-light rounded-3"},a.createElement(c.Z,{xs:4,lg:3,className:"pe-3"},a.createElement(A.tN,{appLink:e.playlistAppLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},l),{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(c.Z,{xs:8,lg:9},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"pt-3 ".concat(S.videoList)},null==i?void 0:i.map((function(t){var n=Object.assign(Object.assign({},u),{videoId:t.id,videoName:t.name});return a.createElement(f.m,{key:t.id,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})}))),a.createElement("div",{className:"text-end pt-3 pe-3"},a.createElement(y.F,{className:"info-link fw-semibold",appLink:e.playlistAppLink,analyticsData:u,analyticsOptions:Object.assign(Object.assign({},l),{descriptor:r._S.Link})},a.createElement(g.x,{namespace:C,phrase:"seeAllVideos"})))))))}function j(e){return a.createElement("div",{className:"mx-n2"},a.createElement(P,{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}))}var I=n(70580);const T={videoList:"UT8bc"};var F="search.seriesWithVideos";function w(e){var t,n=(t=(0,s.k)()).xl||t.xxl?5:t.lg||t.md?4:3,i=e.series.videos.data.slice(0,n),l={actionType:r.Vw.Click,entity:r.py.Series,location:r.LZ.SeriesWithVideos},u=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(o.Z,{className:"g-0 border border-light rounded-3"},a.createElement(c.Z,{xs:4,lg:3,className:"pe-3"},a.createElement(y.F,{appLink:e.seriesAppLink,className:"position-relative",analyticsData:u,analyticsOptions:Object.assign(Object.assign({},l),{descriptor:r._S.TallPoster})},a.createElement(I.r,{series:e.series,presentationAudiences:e.presentationAudiences,preloadImage:e.preloadImage,imageClass:"rounded-start-lg"}))),a.createElement(c.Z,{xs:8,lg:9},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"pt-3 ".concat(T.videoList)},null==i?void 0:i.map((function(t){var n=Object.assign(Object.assign({},u),{videoId:t.id,videoName:t.name});return t=Object.assign(Object.assign({},t),{series:e.series}),a.createElement(f.m,{key:t.id,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})}))),a.createElement("div",{className:"text-end pt-3 pe-3"},a.createElement(y.F,{className:"info-link fw-semibold",appLink:e.seriesAppLink,analyticsData:u,analyticsOptions:Object.assign(Object.assign({},l),{descriptor:r._S.Link})},a.createElement(g.x,{namespace:F,phrase:"seeAllVideos"})))))))}function _(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}))}var N=n(85177),U=n(54569),q=n(17034),V="search.collectionVideoList";function D(e){var t,n=(t=(0,s.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(y.F,Object.assign({},i,{className:"clamp-1",appLink:e.getVideoAppLink(t)}),r&&a.createElement(a.Fragment,null,a.createElement(q.Q,{video:t})," "),t.name))}))),a.createElement(y.F,Object.assign({},i,{className:"info-link",appLink:e.appLink}),a.createElement(g.x,{namespace:V,phrase:"seeAll"})))}var M=n(64887),R=n(18559),B=n(17464),G=n(85473),Z=n(9977),H=n(54610);const W={overlayContainer:"MnBcv",overlay:"AZSmh"};var Q="search.collectionThumbnail";function Y(e){var t,n,i,o,l=(0,s.k)(),u="sm"===Z.O.getSize(l,"md"),p=!!(null===(n=null===(t=e.collection.videos)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),d=p&&e.collection.videos.data.find((function(e){var t;return!!(null===(t=e.thumbnail)||void 0===t?void 0:t.url)})),m=(o=Object.assign(Object.assign({},e.analyticsData),{id:e.collection.id,name:e.collection.name}),d&&(o.videoId=d.id,o.videoName=d.name),o),v="series"===e.collectionType;return a.createElement("div",{className:"row g-0 ".concat(u?"":"py-2")},a.createElement(c.Z,Object.assign({},Z.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(u?"pb-2 pe-2":"mb-1 px-2")}),a.createElement("div",{className:"position-relative overflow-hidden ".concat(u?"rounded":"rounded-3")},a.createElement(G.Z,{data:null==d?void 0:d.thumbnail,appLink:e.appLink,imageType:H.__.Thumbnails,analyticsData:m,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.Thumbnail})},a.createElement(U.z,{type:e.maskType}),a.createElement(N.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(g.x,{namespace:Q,phrase:"seeAll"}))))),a.createElement(c.Z,Object.assign({},Z.O.getDetailsColumns(),{className:u?"pb-2":"px-2"}),!e.isPlugin&&a.createElement(M.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(y.F,{appLink:e.appLink,analyticsData:m,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))),v&&!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})),p&&a.createElement(D,{collectionId:e.collection.id,videos:e.collection.videos.data,appLink:e.appLink,analyticsData:m,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{descriptor:r._S.Link}),getVideoAppLink:e.getVideoAppLink})))}function $(e){return a.createElement("div",{className:"position-relative ".concat(h)},a.createElement(Y,{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:U.O.Playlist,imageFallbackType:N.mS.PlaylistThumbnail,isPlugin:e.isPlugin,getVideoAppLink:e.appLinks.getVideoAppLink,getCollectionActions:e.appLinks.getCollectionActions}))}function z(e){return a.createElement("div",{className:"position-relative ".concat(h)},a.createElement(Y,{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:U.O.Series,imageFallbackType:N.mS.SeriesThumbnail,hideBadges:!0,isPlugin:e.isPlugin,getVideoAppLink:e.appLinks.getVideoAppLink,getCollectionActions:e.appLinks.getCollectionActions}))}var J=n(9513);function K(e){return a.createElement(c.Z,{sm:6,md:e.useLargeStyle?6:4,lg:e.useLargeStyle?4:3},a.createElement("div",{className:"position-relative px-1 mb-2"},a.createElement(J.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(50333),ee=n(54293);function te(e){var t,n=(t=e.item,l.M.isClip(t)?X.I:l.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}))}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=Object.prototype.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=new Array(t);n<t;n++)a[n]=e[n];return a}var ie=a.memo((function(e){var t,n,i,r,c,u,p,m,v=(0,s.k)(),y=v.xs||v.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 g=[].concat(ne(null!==(c=null===(r=e.companies)||void 0===r?void 0:r.results)&&void 0!==c?c:[]),ne(null!==(p=null===(u=e.topics)||void 0===u?void 0:u.results)&&void 0!==p?p:[])),f=Object.assign({useLargeStyle:g.length<4},e);return a.createElement("div",{className:"position-relative"},!!g.length&&a.createElement(o.Z,{className:"g-0 pb-3 mx-n1"},g.slice(0,8).map((function(e,t){switch(e.type.toLowerCase()){case"company":return a.createElement(d,Object.assign({key:t,item:e,itemIndex:t},f));case"subject":return a.createElement(K,Object.assign({key:t,item:e,itemIndex:t},f))}}))),null===(m=e.results)||void 0===m?void 0:m.map((function(e,t){var n,i,r=g.length?t+1:t;if("isExchangeVideoGroup"in e&&e.isExchangeVideoGroup)return a.createElement(x,Object.assign({key:t,item:e,pagePositionIndex:r},f));switch(null===(n=e.type)||void 0===n?void 0:n.toLowerCase()){case"interactive":case"clip":case"video":return 0===t&&e._featured&&l.M.isVideo(e)?a.createElement(E,Object.assign({key:t,item:e,pagePositionIndex:r},f)):a.createElement(te,Object.assign({key:t,item:e,pagePositionIndex:r},f));case"playlist":return y?a.createElement($,Object.assign({key:t,item:e,pagePositionIndex:r},f)):a.createElement(j,Object.assign({key:t,item:e,pagePositionIndex:r},f));case"series":return y||!(null===(i=e.tallPoster)||void 0===i?void 0:i.id)?a.createElement(z,Object.assign({key:t,item:e,pagePositionIndex:r},f)):a.createElement(_,Object.assign({key:t,item:e,pagePositionIndex:r},f))}})))})),re=n(60954),oe="search.searchSubstitute";function se(e){return e.substitute?a.createElement("p",{className:"mb-3"},a.createElement(g.x,{namespace:oe,phrase:"showingFor"})," ",a.createElement(y.F,{className:"info-link",appLink:e.getAppLink(e.substitute,e.queryParams),appLinkOptions:{replace:!0}},e.substitute)):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(g.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(y.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(80247),pe=n(34152),de=n(83914),me=n(35223);const ve={container:"VwD1b",spinner:"eJ85e"};function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ge(e){var t,n,i=(t=(0,pe.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,o,s=[],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)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n=Object.prototype.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)?ye(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.")}()),r=i[0],o=i[1];return a.useEffect((function(){var t;e.fetchOnScroll&&o&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[o,e.isFetching]),a.createElement("div",{className:"p-3 text-center ".concat(ve.container),ref:r},e.isFetching?a.createElement(ue.Z,{as:"span",animation:"border",role:"status",className:ve.spinner}):a.createElement(de.x,{svgName:me.vn.ChevronDown,className:"svg-container cursor-pointer",size:de.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}ge.defaultProps={fetchOnScroll:!1};var fe=n(51365),he=n(79612),be=n(25301),Le=n(99742),xe=n(96359),ke=n(41760),Ee=n(41135),Ae=n(49433),Oe=n(65751),Se=n(20354),Ce=n(25925),Pe=n(89454),je=n(21750),Ie=n(39151),Te=n(98064),Fe=n(31949),we=n(31700),_e=n(97395),Ne={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,o="search:".concat(e,":").concat(t,":").concat(a);o+=Object.keys(n).map((function(e){return n[e]})).join(";");var s=Object.assign({},Object.assign({index:t,cursor:null!=a?a:void 0,query:e},n));return{url:_e._.urlBuilder("{gateway}/v1/search",s),publicUrl:_e._.urlBuilder("/api/search",s),key:o,success:i,error:r}},schoolLevels:function(e){var t={filterType:"schoolLevels",presentationId:e};return{url:_e._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:_e._.urlBuilder("/api/search/filters",t),key:"school-levels"}}},Ue=n(99940),qe=n(2997),Ve=(n(75896),n(1048)),De=function(e,t){return e.map((function(e){return t?Object.assign(Object.assign({},e),{_maxScore:t}):e}))};function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Re(e){return Re="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},Re(e)}function Be(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,o,s,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===(s=null===(o=u.videos)||void 0===o?void 0:o.data)||void 0===s?void 0:s.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 o=null===(a=r[0])||void 0===a?void 0:a._score;return Object.assign(Object.assign({},e),{results:De(r,o)})}var Ge={searchV4: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="search:v4:".concat(e,":").concat(t,":").concat(a);r+=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.join(";"):t})).join(";");var o=n,s="".concat(qe.w.FILTER_PARAM_PREFIX,"excludeLibraryExclusive"),l=o[s],c=o.isLearner,u=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"===Re(s)?s:s+"","isLearner"]),p={searchType:"content",indices:t.map((function(e){return"video"===e&&l?{index:e,filters:{excludeLibraryExclusive:l}}:{index:e}})),filters:Object.entries(u).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,o,s=[],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)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(n,a)||function(e,t){if(e){if("string"==typeof e)return Me(e,t);var n=Object.prototype.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)?Me(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],o=i[1];return Object.assign(Object.assign({},e),function(e,t,n){var a;return a=function(e,t){if("object"!=Re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Re(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==Re(a)?a:a+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r.replace("filters.",""),o))}),{}),query:e,allowSubstitute:!0,cursor:null!=a?a:void 0,isLearner:!!c,limit:i};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:Ue.k.POST,data:p,key:r,formatData:Be}},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,o=arguments.length>6?arguments[6]:void 0,s="search:".concat(e,":").concat(t,":").concat(a);s+=Object.keys(n).map((function(e){var t=n[e];return Array.isArray(t)?t.join(";"):t})).join(";");var l=Object.assign({},Object.assign({index:t,cursor:null!=a?a:void 0,query:e,allowSubstitute:!0,limit:i},n));return{url:_e._.urlBuilder("{gateway}/v3/search",l),publicUrl:_e._.urlBuilder("/api/search",l),key:s,formatData:Be,success:r,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,o=Object.assign({},Object.assign({index:t,cursor:a,query:e},n));return{url:_e._.urlBuilder("{gateway}/v3/search/tags-and-classifications",o),publicUrl:_e._.urlBuilder("/api/search/tags-and-classifications",o),key:"filter:options:".concat(e,":").concat(t.join(":"),":").concat(a),success:i,error:r,normalize:!1}}},Ze=n(66770),He=n(44909),We=n(2284),Qe=n(85594);var Ye=n(45445),$e=n(55110),ze=n(50242),Je=n(91967),Ke=400,Xe=n(45719);function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function tt(e,t,n,i,r,o){var s,l,c,u,p=(s=(0,a.useState)(0),l=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],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)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(s,l)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n=Object.prototype.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)?et(e,t):void 0}}(s,l)||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=p[0],m=p[1],v=t,y=(0,Xe.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),i,r);return c={fetchNextPage:function(){if(t&&e&&y)return m((function(e){return e+1})),v(y.nextCursor)},hasMore:!!(null==y?void 0:y.nextCursor),isFetching:null==y?void 0:y.isFetching,scrollContainer:o},u=function(){if(!c.isFetching){if(c.scrollContainer){var e=c.scrollContainer;if(e.getBoundingClientRect().height+e.scrollTop<e.scrollHeight-Ke)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-Ke)return;c.fetchNextPage()}},(0,a.useEffect)((function(){var e=Je.q.throttle(u,200),t=c.scrollContainer||window;return c.hasMore&&t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}),[c.hasMore,c.fetchNextPage,c.scrollContainer]),(0,a.useEffect)((function(){y&&y.shouldInitialFetch&&t&&(v(),m((function(e){return e+1})))}),[null==y?void 0:y.shouldInitialFetch,t]),(0,a.useEffect)((function(){var e,t;if((null==y?void 0:y.statusCode)&&Je.q.isFunction(n)){var a=+(null===(t=null===(e=y.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));a!==ze.k.ClientError&&a!==ze.k.ServerError||n(d,y.statusCode)}}),[null==y?void 0:y.statusCode]),{items:null==y?void 0:y.items,hasMore:!!(null==y?void 0:y.nextCursor),nextCursor:null==y?void 0:y.nextCursor,isFetching:null==y?void 0:y.isFetching,totalItems:null==y?void 0:y.totalItems,hasFirstPageCompleted:null==y?void 0:y.hasFirstPageCompleted}}var nt="search.utils",at=n(2948),it=n(38143);function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var ot=n(15800),st="search.searchResultsEmptyState";function lt(e){var t=Le.W.EmptyStates.SEARCH;return a.createElement(g.D.Provider,{value:st},a.createElement(ot.u,null,a.createElement(ot.u.Image,{src:t}),a.createElement(ot.u.Heading,null,e.query?a.createElement(g.x,{phrase:"headingWithQuery",options:{query:e.query}}):a.createElement(g.x,{phrase:"headingWithoutQuery"})),a.createElement(ot.u.Info,null,a.createElement(g.x,{phrase:"info"}),a.createElement(y.F,{className:"info-link",appLink:{application:Ee.O.SUBJECTS,action:xe.e.Subjects.CLASSIFICATION_ALL}},a.createElement(g.x,{phrase:"topicsAppLink"})))))}var ct="search.searchResults",ut=i.T.encloseNamespace(ct);function pt(e){var t,n,o,s,l,c,u,p,d,m=e.queryParams,v=void 0===m?{}:m,y=(0,Ae.V)("video-list"),g=function(e){var t,n,a,i,r,o=Se.a.useBasicFetch(Fe.N.currentUser()),s=Se.a.useBasicFetch(Ie.L.config()),l=Se.a.useBasicFetch(we.g.streamablePresentation()),c=l.data,u=null===(t=Se.a.useBasicFetch(Te.D.streamableLearning()).data)||void 0===t?void 0:t.objectId,p=null==c?void 0:c.id,d=Se.a.useBasicFetch(l.data&&Pe.O.presentationAudiences(l.data.id,Ce.R.StreamableLearning)),m=(r=null===(n=l.data)||void 0===n?void 0:n.id,Se.a.useBasicFetch(r&&Ne.schoolLevels([r]))),v=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=Se.a.useBasicFetch(m.data&&je.x.topicsFromAllAvailablePresentations(v)),g=function(e,t){var n=Ze.qr.buildBackendFilterParams(e,null,[t],!1,[]),a=Ve.t.pick(n,["filters.classification","filters.presentation"]);a["filters.classificationType"]=Qe.A.Subject,a["filters.status"]=We.W.Published,a["filters.presentation"]=t;var i=!Ze.qr.getAppliedIndices(e).includes("classification"),r=Ge.search(He.y.getQuery(e),["classification"],a),o=!i,s=Se.a.useBasicFetch(o&&r);return o?s:null}(e,p),f=function(e,t){var n=Ze.qr.buildBackendFilterParams(e,null,[t],!1,[])||{};n["filters.presentation"]=t;var a=Ge.search(He.y.getQuery(e),["company"],n);return Se.a.useBasicFetch(a)}(e,p);return{queryParams:e,currentUser:o,config:s,audiences:d,schoolLevels:m,availableTopics:y,topics:g,companies:f,currentPresentationId:p,streamableLibraryId:u,hasDataLoaded:d.hasCompleted&&o.hasCompleted&&s.hasCompleted}}(v),f=He.y.getBackendFilters(g),h=(d=f,Se.a.useBasicFetch(d&&Ge.tagsAndClassifications(d.queryParams.query,d.appliedIndices,d.backendFilters))),b=function(e){var t,n,a,r=e.queryParams,o=e.appliedIndices,s=e.backendFilters,l=(0,$e.Z)(),c=Se.a.useGetFetch(),u=Se.a.useGetResponse(null===(t=p())||void 0===t?void 0:t.key);function p(t){return e.hasDataLoaded&&!!(null==o?void 0:o.length)&&Ge.search(r.query,o,s,t)}function d(e){c(p(e))}var m=tt(p,d,(function(e,t){if(1===e)return(0,Ye.r)(t);l.error(i.T.getPhrase(nt,"error"))}),(function(e){return e.results}));return Object.assign(Object.assign({},m),{hasFirstPageCompleted:m.hasFirstPageCompleted||!e.hasDataLoaded||!(null==o?void 0:o.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),g)),L=He.y.getFilters(g,h);(0,he.M)(be.CG.getDefaultMetadata({title:null!==(t=v.query)&&void 0!==t?t:"",phraseContext:{phraseHandler:ut,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},allowIndexing:!1,product:ke.L.PRODUCT_NAME}));var x,k,E,A,O,S,C=g.hasDataLoaded&&L,P=b.hasFirstPageCompleted&&(!g.topics||g.topics.hasCompleted)&&(!g.companies||g.companies.hasCompleted)&&h.hasCompleted&&!!L,j=(null===(n=b.items)||void 0===n?void 0:n.length)||(null===(s=null===(o=g.topics)||void 0===o?void 0:o.data)||void 0===s?void 0:s.totalResults)||(null===(c=null===(l=g.companies)||void 0===l?void 0:l.data)||void 0===c?void 0:c.totalResults);return x=P,O=(0,at.D)(it.g.SHOW_SEARCH_MASK,!0),S=2,k=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,o,s=[],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)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(O,S)||function(e,t){if(e){if("string"==typeof e)return rt(e,t);var n=Object.prototype.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)?rt(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.")}(),E=k[0],A=k[1],a.useEffect((function(){E&&x&&A(!1)}),[x]),C?a.createElement("div",{className:"px-4"},a.createElement(se,{substitute:b.substituteQuery,queryParams:v,getAppLink:Oe.y.search}),!b.substituteQuery&&a.createElement(ce,{suggestions:b.suggestions,queryParams:v,getAppLink:Oe.y.search}),!!g.audiences.data&&!!g.availableTopics.data&&a.createElement(re.J,{queryParams:v,mainFilters:null==L?void 0:L.mainFilters,analyticsOptions:{entity:r.py.SearchResults,location:r.LZ.SearchFilters},appLink:{application:Ee.O.SEARCH,action:xe.e.Search.HOME},isFetchingOptions:h.isFetching}),P&&a.createElement("section",null,j?a.createElement(fe.M.Provider,{value:{getVideoActions:y}},a.createElement(ie,{queryParams:v,results:b.items,topics:null===(u=g.topics)||void 0===u?void 0:u.data,companies:null===(p=g.companies)||void 0===p?void 0:p.data,setFavourite:null,canFavourite:null,audiences:!v.moviesAndTv&&g.audiences.data,currentUser:g.currentUser.data,imageCdnUrl:g.config.data.imageCdnUrl,availablePresentations:null,showActions:!0,yearGroups:null,isPlugin:!1,appLinks:He.y.getAppLinks(),companyLogoFallbackUrl:Le.W.StreamableLearning.LOGO,subTextType:"productionCompany",hasPermissions:function(){return!1}})):a.createElement(lt,{query:v.query}),(b.hasMore||b.isFetching)&&a.createElement(ge,{isFetching:b.isFetching,fetchNext:b.fetchNext,nextCursor:b.nextCursor,fetchOnScroll:!0}))):a.createElement(a.Fragment,null)}},41760:(e,t,n)=>{n.d(t,{L:()=>a});var a={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}},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,[]}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 4-d802a23c24-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4],{1269:(e,t,r)=>{r.d(t,{n:()=>E,W:()=>S});var n=r(32735),o=r(80247),a=r(50132),i=r(92802),c=r(91967),l=r(1048),u=r(57408),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function f(e){var t=e.label,r=e.checkboxLabelClassName,o=e.checkboxLabelFontWeight,i=e.className,c=s(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return n.createElement(a.Z.Group,{className:"form-group"},n.createElement("div",{className:"form-check ".concat(i||"")},n.createElement(E,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},t),e.checkboxAppLink&&e.checkboxAppLinkText&&n.createElement(n.Fragment,null,n.createElement("span",null," "),n.createElement(u.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=r(83914),h=r(83345),p={getCustomFormControlClassName:function(e,t,r,n,o,a){var c="";return c=function(e,t){var r="";return r="select"===e?"form-select":"form-control","sm"===t&&(r+=" ".concat(r,"-sm")),"lg"===t&&(r+=" ".concat(r,"-lg")),r}(a,n),(0,i.u9)(t,r)&&(0,i.u9)(e,r)&&(c+=" is-invalid"),o&&(c+=" ".concat(o)),c}},d=r(35223);function y(e){var t=(0,i.u6)().values[e.fieldName];return"string"!=typeof t?n.createElement(n.Fragment,null):n.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const v={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},w="shared.formField";function E(e){var t,r,a=e.children,u=e.showLoadingSpinner,s=b(e,["children","showLoadingSpinner"]),f=(t=n.useState(e.type),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(t,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.")}()),h=f[0],p=f[1],y=c.q.isFunction(a)?function(e){return a(e)}: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"])),y),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"])),y);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:h,className:"".concat(v.passwordInput," border-0 w-100 h-100 outline-none rounded")}),y),"password"===s.type&&n.createElement(m.x,{svgName:"password"===h?d.vn.VisibleOn:d.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(v.revealPassword),onClick:function(){p("password"===h?"text":"password")}}))}function S(e){var t=e.label,r=e.className,o=e.showCharacterCounter,c=e.showRequiredStar,u=e.infoTooltip,s=e.infoTooltipPlacement,g=e.infoText,S=e.formSize,O=e.showOptionalLabel,L=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,i.u6)(),N=x.errors,C=x.touched,U=function(){};if("checkbox"===L.type){var j=l.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(j.onChange=U),n.createElement(f,Object.assign({},j))}var k=Object.assign(Object.assign({},L),{className:p.getCustomFormControlClassName(N,C,L.name,S,r,"string"==typeof e.as?e.as:null)});return e.disabled&&(k.onChange=U),n.createElement(a.Z.Group,{className:"form-group"},!!t&&n.createElement(a.Z.Label,{htmlFor:L.id,className:"d-flex align-items-center"},t,c&&n.createElement("span",{className:"text-danger"},"*"),u&&n.createElement(m.x,{className:"svg-container text-secondary ".concat(v.infoTooltip),svgName:d.vn.Info,title:u,tooltipPlacement:s,tooltipSpanHack:!0}),O&&n.createElement("span",{className:"text-secondary"}," ",n.createElement(h.x,{namespace:w,phrase:"optional"})),!!o&&!!L.maxLength&&n.createElement("div",{className:"ms-auto"},n.createElement(y,{fieldName:L.name,limit:L.maxLength}))),n.createElement(E,Object.assign({},k)),!!g&&n.createElement(a.Z.Text,{className:"text-secondary"},g),n.createElement(i.Bc,{name:L.name},(function(e){return n.createElement(a.Z.Control.Feedback,{type:"invalid"},e)})))}E.defaultProps={autoComplete:"off"},S.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,r)=>{r.d(t,{b:()=>s,n:()=>u});var n=r(32735),o=r(92802),a=r(91967),i=r(1048);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function u(e){var t=e.castInitialValues,r=e.castValuesOnSubmit,u=e.initialValues,s=e.onSubmit,f=l(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=i.t.deepClone(e);return function e(r){Object.keys(t).forEach((function(n){t.hasOwnProperty(n)&&(i.t.isObject(r[n])?e(r[n]):null===t[n]&&delete t[n])}))}(t),t}(u)):u,h={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(o.J9,Object.assign({enableReinitialize:!0},f,{initialValues:m,onSubmit:function(t,n){var o=n.setSubmitting,a=n.resetForm,i=n.setFieldError,l=r&&e.validationSchema?e.validationSchema.cast(t):t;s(l,(function(){var e,t,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=(e=l[n],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],f=u[1];i(s,f)}o(!1)}))},initialStatus:h}),a.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function s(){return(0,o.u6)()}u.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},56004:(e,t,r)=>{r.r(t),r.d(t,{RegisterPopupView:()=>ue});var n,o=r(32735),a=r(81886),i=r(57408),c=r(58960),l=r(83345),u=r(81041),s=r(30747),f=r(96359),m=r(41135),h=r(63093),p=r(20354),d=r(33003),y=r.n(d);!function(e){e.Lite="lite",e.Auth="auth"}(n||(n={}));var v,g=r(83765);!function(e){e.AU="au",e.NZ="nz",e.UK="uk",e.US="us"}(v||(v={}));var b=["uk","gb","gg","im","je","ie"],w={au:v.AU,nz:v.NZ,us:v.US,uk:v.UK,gb:v.UK,gg:v.UK,im:v.UK,je:v.UK,ie:v.UK,al:v.UK,ad:v.UK,am:v.UK,at:v.UK,az:v.UK,by:v.UK,be:v.UK,ba:v.UK,bg:v.UK,hr:v.UK,cy:v.UK,cz:v.UK,dk:v.UK,ee:v.UK,fi:v.UK,fr:v.UK,de:v.UK,ge:v.UK,gr:v.UK,hu:v.UK,is:v.UK,it:v.UK,lv:v.UK,li:v.UK,lt:v.UK,lu:v.UK,mt:v.UK,md:v.UK,mc:v.UK,me:v.UK,nl:v.UK,mk:v.UK,no:v.UK,pl:v.UK,pt:v.UK,ro:v.UK,ru:v.UK,sm:v.UK,rs:v.UK,sk:v.UK,si:v.UK,es:v.UK,se:v.UK,ch:v.UK,tr:v.UK,ua:v.UK,va:v.UK},E={au:g.M.CvApSoutheast1,uk:g.M.CvEuWest1,us:g.M.CvNaWest1,nz:g.M.CvApSoutheast2},S={getInstanceRegion:function(e){var t=S.getCountryCode(e);return E[t]},getCountryCode:function(e){return w[null==e?void 0:e.toLowerCase()]||v.US},isCountryCodeUK:function(e){return b.includes(e.toLowerCase())},isCountryCodeAU:function(e){return(null==e?void 0:e.toLowerCase())===v.AU},isCountryCodeUS:function(e){return(null==e?void 0:e.toLowerCase())===v.US},isCountryCodeNZ:function(e){return(null==e?void 0:e.toLowerCase())===v.NZ},isSupportedCountryCode:function(e){return Object.keys(w).includes(null==e?void 0:e.toLowerCase())},getLocalizedLocalityPlaceholderPhrase:function(e){if(e)return S.isCountryCodeUK(e)?"E.g. CR0 3RL or 36 Factory Lane":S.isCountryCodeAU(e)||S.isCountryCodeNZ(e)?"E.g. 2212 or Revesby":S.isCountryCodeUS(e)?"E.g. 95826 or Sacramento":void 0},getLocalizedLocalityPlaceholderText:function(e){if(e){var t=S.getLocalizedLocalityPlaceholderPhrase(e);if(t)return t}}};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(){N=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),c=new P(n||[]);return o(i,"_invoke",{value:U(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var m="suspendedStart",h="suspendedYield",p="executing",d="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==r&&n.call(S,i)&&(w=S);var L=b.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,a,i,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==O(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function U(t,r,n){var o=m;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=j(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?d:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function j(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function K(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(O(t)+" is not iterable")}return g.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new C(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(L),u(L,l,"Generator"),u(L,i,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(K),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var 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(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),K(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;K(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function C(e,t,r){var n;return n=function(e,t){if("object"!=O(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==O(n)?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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"},j={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},k=C(C({},n.Auth,"auth.web"),n.Lite,"lite.web"),K={getClient:function(e){var t,r,n,o,a,i;return n=this,o=void 0,a=void 0,i=N().mark((function n(){var o,a,i,c,l,u;return N().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.brazeConfig,a=e.geoLocation,i=e.version,c=o[S.getInstanceRegion(null==a?void 0:a.countryCode)],l=k[e.productName],u=(0,h.getInstance)({baseUrl:c.url,apiKey:c.apiKey,productVersion:i,productName:l,enableLogging:!1,automaticallyShowInAppMessages:!1}),(null===(t=e.geoLocation)||void 0===t?void 0:t.countryCode)&&u.setUserCountry(null===(r=e.geoLocation)||void 0===r?void 0:r.countryCode),n.abrupt("return",u);case 6:case"end":return n.stop()}}),n)})),new(a||(a=Promise))((function(e,t){function r(e){try{l(i.next(e))}catch(e){t(e)}}function c(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,c)}l((i=i.apply(n,o||[])).next())}))},hashedEmail:function(e){var t=e.trim().toLowerCase();return y().hash(t)},removeEmptyKeys:function(e){if(Array.isArray(e))return e;var t=Object.assign({},e);return Object.entries(t).filter((function(e){var t=L(e,2)[1];return null!=t&&!("string"==typeof t&&!t.length)})).reduce((function(e,t){var r=L(t,2),n=r[0],o=r[1];return Object.assign(Object.assign({},e),C({},n,o===Object(o)?K.removeEmptyKeys(o):o))}),{})},getEventTopic:function(){return"Free Trial Request"},getCustomEventType:function(){return h.ProductFormEvent.ProductTrailRequested},getProductFormEventType:function(){return"product_form_submission"},getSchoolType:function(e){if(e){var t=e.toLowerCase();if(!["unknown","other"].includes(t))return U[t]||e}},parseProvince:function(e){return e.length?j[e.toLowerCase()]||e:""}},P=r(39151),A=r(39202),T={countryCode:"us",isFallback:!0},_="streamable.web";var I=r(23481),F=r(15800),G=r(99742);const R={image:"vIjn8"};var q="default.registrationError",z=I.T.encloseNamespace(q);function V(e){var t=e.className,r=void 0===t?"":t,n=e.onTryAgain;return o.createElement(F.u,{className:r},o.createElement(F.u.Image,{className:R.image,src:G.W.General.LOST_MESSAGE_BOTTLE}),o.createElement(F.u.Heading,{className:"w-100"},o.createElement(l.x,{namespace:q,phrase:"errorHeading"})),o.createElement(F.u.Info,{className:"w-100"},o.createElement(l.x,{namespace:q,phrase:"errorMessage"})),o.createElement(F.u.Cta,{text:z("buttonLabel"),className:"btn btn-dark w-100",onClick:n}))}var D=r(92802),Z=r(5173),M=r(1269),W=r(82644),B=r(2102),H="default.registrationForm",$=I.T.encloseNamespace(H),Y=Z.Ry({firstName:Z.Z_().required($("firstNameRequired")),lastName:Z.Z_().required($("lastNameRequired")),email:Z.Z_().email($("emailValid")).required($("emailRequired")),schoolOrDistrict:Z.Z_().required($("schoolOrDistrictRequired"))});function J(e){return o.createElement(W.n,{initialValues:e.initialValues,validationSchema:Y,onSubmit:e.onSubmit},o.createElement(Q,{showSpinner:e.showSpinner}))}function Q(e){var t,r,n,a,i=e.showSpinner,c=(0,W.b)();return o.createElement(D.l0,null,o.createElement(M.W,{label:$("firstName"),name:"firstName",value:null===(t=c.values)||void 0===t?void 0:t.firstName,showRequiredStar:!0,placeholder:$("firstNamePlaceholder")}),o.createElement(M.W,{label:$("lastName"),name:"lastName",value:null===(r=c.values)||void 0===r?void 0:r.lastName,showRequiredStar:!0,placeholder:$("lastNamePlaceholder")}),o.createElement(M.W,{label:$("email"),name:"email",value:null===(n=c.values)||void 0===n?void 0:n.email,showRequiredStar:!0,placeholder:$("emailPlaceholder")}),o.createElement(M.W,{label:$("schoolOrDistrict"),name:"schoolOrDistrict",value:null===(a=c.values)||void 0===a?void 0:a.schoolOrDistrict,showRequiredStar:!0,placeholder:$("schoolOrDistrictPlaceholder")}),o.createElement(B.m,{type:"submit",className:"w-100 mt-3",variant:"dark",showSpinner:i},o.createElement(l.x,{namespace:H,phrase:"registerButton"})))}var X="default.registrationSuccess",ee=I.T.encloseNamespace(X);function te(e){var t=e.className,r=void 0===t?"":t,n=e.onClose;return o.createElement(F.u,{className:r},o.createElement(F.u.Image,{src:G.W.SUCCESS}),o.createElement(F.u.Heading,{className:"w-100"},o.createElement(l.x,{namespace:X,phrase:"successHeading"})),o.createElement(F.u.Info,{className:"w-100"},o.createElement(l.x,{namespace:X,phrase:"successMessage"})),o.createElement(F.u.Cta,{text:ee("buttonLabel"),className:"btn btn-dark w-100",onClick:n}))}const re={logo:"Oe5Ky"};function ne(e){return ne="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},ne(e)}function oe(){oe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),c=new k(n||[]);return o(i,"_invoke",{value:N(e,r,c)}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var m="suspendedStart",h="suspendedYield",p="executing",d="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,i,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(K([])));S&&S!==r&&n.call(S,i)&&(w=S);var O=b.prototype=v.prototype=Object.create(w);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,i,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==ne(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function N(t,r,n){var o=m;return function(a,i){if(o===p)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?d:h,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=d,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function U(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(U,this),this.reset(!0)}function K(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(ne(t)+" is not iterable")}return g.prototype=b,o(O,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(x.prototype),u(x.prototype,c,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new x(s(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(O),u(O,l,"Generator"),u(O,i,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=K,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var 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(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:K(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ie(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ie(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ce=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))},le="default.registerPopup";function ue(e){var t,r,n,d,y=(t=o.useRef(),r=p.a.useBasicFetch(P.L.config()),n=p.a.useBasicFetch(P.L.version()),d=function(){var e,t,r=p.a.useBasicFetch(P.L.geoLocation()),n=null===(t=null===(e=A.Ab.GetQuery())||void 0===e?void 0:e.countryCode)||void 0===t?void 0:t.toLowerCase();return n?{countryCode:n}:r.hasCompleted&&!r.data?T:r.data}(),o.useEffect((function(){if(r.hasCompleted&&n.hasCompleted){var e=S.getInstanceRegion(null==d?void 0:d.countryCode),o=r.data.braze[e],a=(0,h.getInstance)({baseUrl:o.url,apiKey:o.apiKey,productVersion:n,productName:_,enableLogging:!1,automaticallyShowInAppMessages:!1});(null==d?void 0:d.countryCode)&&a.setUserCountry(d.countryCode),a.openSession(),t.current=a}}),[r.hasCompleted,n.hasCompleted]),{setUserContext:function(e){var r;null===(r=t.current)||void 0===r||r.setUser(K.hashedEmail(e))},setUserDetails:function(e){var r,n,o,a=e.email,i=e.firstName,c=e.lastName;a&&(null===(r=t.current)||void 0===r||r.setUserEmail(a)),i&&(null===(n=t.current)||void 0===n||n.setUserFirstName(i)),c&&(null===(o=t.current)||void 0===o||o.setUserLastName(c))},setCustomUserAttributes:function(e){var r;null===(r=t.current)||void 0===r||r.bulkSetCustomUserAttributes(e)},enqueueEvent:function(e){var r;null===(r=t.current)||void 0===r||r.logEvent(e)},flush:function(){return t.current?new Promise((function(e,r){t.current.sendData((function(t){t?e():r(new Error("Failed to flush data"))}))})):Promise.reject(new Error("Client not initialized"))}}),v=ae(o.useState("data-entry"),2),g=v[0],b=v[1],w=ae(o.useState(!1),2),E=w[0],O=w[1],L=ae(o.useState({firstName:"",lastName:"",email:"",schoolOrDistrict:""}),2),x=L[0],N=L[1],C=a.Q.C$.getHref(u.O.getCurrentRoute().appLink),U="/"!==C?{redirectUrl:C}:{};return o.createElement(c.G,{closePopup:e.closePopup,bodyClassName:"p-5"},o.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:e.closePopup}),o.createElement("div",{className:"".concat(re.logo," position-absolute top-0 start-0 m-3")},o.createElement(s.p,null)),"data-entry"===g&&o.createElement(o.Fragment,null,o.createElement("h1",{className:"h2 text-center"},o.createElement(l.x,{namespace:le,phrase:"registerHeading"})),o.createElement("p",{className:"text-center mb-3"},o.createElement(l.x,{namespace:le,phrase:"registerDescription"})),o.createElement(J,{initialValues:x,showSpinner:E,onSubmit:function(e){return ce(this,void 0,void 0,oe().mark((function t(){return oe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,O(!0),N(e),y.setUserContext(e.email),y.setUserDetails({email:e.email,firstName:e.firstName,lastName:e.lastName}),y.enqueueEvent({type:"streamable_registration_form_submit",data:{firstName:e.firstName,lastName:e.lastName,email:e.email,schoolOrDistrict:e.schoolOrDistrict}}),t.next=8,y.flush();case 8:b("success"),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.warn(t.t0),b("error");case 15:return t.prev=15,O(!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[0,11,15,18]])})))}}),o.createElement(i.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:m.O.DEFAULT,action:f.e.Default.LOG_IN,params:U}},o.createElement(l.x,{namespace:le,phrase:"signInLink"}))),"error"===g&&o.createElement(V,{onTryAgain:function(){b("data-entry")}}),"success"===g&&o.createElement(te,{onClose:e.closePopup}))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[423],{49267:(e,t,n)=>{n.d(t,{a:()=>p});var r=n(23481),i=n(64364);function a(e){return a="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},a(e)}function o(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,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var f="shared.regionLockedResourceError",p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,[r.T.getPhrase(f,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return r.T.getPhrase(f,"heading")}},{key:"description",get:function(){return r.T.getPhrase(f,"description")}}])&&o(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.H)},45445:(e,t,n)=>{n.d(t,{r:()=>w});var r=n(50242),i=n(81886),a=n(67058),o=n(23481),c=n(64364);function s(e){return s="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},s(e)}function l(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,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=p(t),function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var y="shared.privateResourceError",b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[o.T.getPhrase(y,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return o.T.getPhrase(y,"heading")}},{key:"description",get:function(){return o.T.getPhrase(y,"description")}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(c.H),v=n(49267),g=n(49075),h={notFound:a.d,forbidden:{rating:b,yearLevel:b,region:v.a,privacy:b},badRequest:g._};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a;a="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},h),t);a&&i.Q.Ry.isStatusCodeError(a)&&(a!==r.o.NotFound?a!==r.o.Forbidden?n.badRequest||i.Q.Ry.throw(new o.badRequest):n.forbidden||i.Q.Ry.throw(new o.forbidden.privacy):n.notFound||i.Q.Ry.throw(new o.notFound))}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(32735),i=n(45445);function a(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){o.forEach((function(e){(0,i.r)(e.statusCode,t,n)}))}),[a(o),t,n])}},56772:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationView:()=>Ce});var r=n(32735),i=n(23481),a=n(20354),o=n(81886),c=n(15800),s=n(83345),l=n(64444),u=n(26154),d=n(35223),f="subjects.curatedClassificationEmptyState",p=i.T.encloseNamespace(f);function m(e){var t,n,a=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===u.GL.Archived;return r.createElement(s.D.Provider,{value:f},r.createElement(c.u,null,r.createElement(c.u.Image,{src:e.imageUrl,altText:p("headingForNP")}),e.isReadonly?r.createElement(r.Fragment,null,r.createElement(c.u.Heading,null,r.createElement(s.x,{namespace:f,phrase:"headingForCurator"})),r.createElement(c.u.Info,null,r.createElement(s.x,{namespace:f,phrase:"info"})),r.createElement(l.u,{title:a?i.T.getPhrase(f,"archivedCtaTooltip"):"",spanHack:!0},r.createElement(c.u.Cta,{text:i.T.getPhrase(f,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:d.vn.Plus,disabled:a}))):r.createElement(c.u.Heading,null,r.createElement(s.x,{phrase:"headingForNP"}))))}var y=n(92869),b=n(65858),v=n(57408);const g={container:"k1iOO",itemsWrapper:"IC4wJ",anchorWrapper:"ciEf6",default:"CJonr",selectedItem:"A9mBx",disabled:"sp1Xl"};function h(e){return r.createElement("div",{className:"".concat(g.container," ps-3")},r.createElement("h2",{className:"h5"},e.title),r.createElement("div",{className:"".concat(g.itemsWrapper)},e.widgets.map((function(t,n){return r.createElement(v.F,{key:t.id,appLink:(i=t,a=o.Q.C$.getCurrentAppLink(),c=a.params?Object.assign({},a.params):{},c.tocId=i.id,Object.assign(Object.assign({},a),{params:c})),appLinkOptions:{replace:!0},className:"".concat(g.anchorWrapper," ").concat(e.clickable?"":g.disabled," ").concat(e.activeId===t.id?g.selectedItem:""),onClick:function(){y.t.preventScrollTop(),e.setControlledId(t.id)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{actionType:b.Vw.Click,entity:b.py.Widget,location:b.LZ.TableOfContents}},r.createElement("div",{className:"".concat(e.activeId||0!==n?"":g.default," ")},t.name));var i,a,c}))))}var w="subjects.teacherOnlyEmptyState",E=i.T.encloseNamespace(w);function O(e){var t;return r.createElement(s.D.Provider,{value:w},r.createElement(c.u,null,r.createElement(c.u.Image,{src:e.imageUrl,altText:E("heading")}),r.createElement(c.u.Heading,null,r.createElement(s.x,{phrase:"heading"})),r.createElement(c.u.Info,null,r.createElement(s.x,{phrase:"info"})),r.createElement(c.u.Cta,{text:E("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var T,S=n(75896),P=n(42308),k=n(80889),C=n(21366),I=n(75553),j=n(49935),L=n(24546),A=n(66869),F=n(78605),R=n(86764),x=n(78479),_=n(67058),N=n(3747),B=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,a=e.setControlledId,o=r.useRef(0);r.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(T=window.setTimeout((function(){a("")}),800));if(e.isIntersecting)t(e.target.id),o.current=window.scrollY;else{var r=o.current-window.scrollY>0,c=n.findIndex((function(t){return t.id===e.target.id})),s=n[c-1];r&&(null==s?void 0:s.id)&&t(null==s?void 0:s.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){T&&window.clearTimeout(T),e.disconnect()}}),[t,n.length,i])};function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var D=function(e,t){var n,i,a,o,c=(a=r.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(a,o)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.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)?U(e,t):void 0}}(a,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],l=c[1],u=(n=t,i=r.useRef(),r.useEffect((function(){i.current=n})),i.current),d=t;r.useLayoutEffect((function(){if(!s||u!==d){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===d}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),s||l(!0)}}}),[e,u,d,s])},W=n(99105),G=n(69454);function V(e){var t;return e.isComingSoon||e.isEmpty&&!(null===(t=e.activeAudiences)||void 0===t?void 0:t.length)?r.createElement(r.Fragment,null):G.T.shouldShowAudiences(e.audiences)?r.createElement(W.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist}):r.createElement(r.Fragment,null)}function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.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)?q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z="shared.classificationDashboard";function Q(e){return e.widgetId===P.z.Blurb&&e.templateId===x.f.Heading}function J(e){var t,n,c,s,l=function(e,t){var n,i,o,c,s=r.useMemo((function(){return e?{isSystemGeneratedDashboard:C.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===P.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=s.isSystemGeneratedDashboard,u=s.systemGeneratedVideoWidget,d=a.a.useBasicFetch(!!u&&k._.dashboardWidgetContent(null==u?void 0:u.id,C.S.getWidgetParams(u.widgetId,u.templateId,C.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==u?void 0:u.templateId));return l?{widgets:null!==(i=null===(n=null==e?void 0:e.widgets)||void 0===n?void 0:n.filter((function(e){return e.widgetId!==P.z.ClassificationPinnedVideos})))&&void 0!==i?i:[],videoList:null!==(c=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==c?c:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:S.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),d=l.widgets,f=l.videoList,p=l.videoListWidgetId,y=(0,N.a)(R.r.LGDown),b=r.useRef(new Set),v=r.useMemo((function(){return d.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==d?void 0:d.length]),g=M(r.useState(v),2),w=g[0],E=g[1],T=M(r.useState(window.location.hash.slice(1)||""),2),x=T[0],U=T[1],W=M(r.useState(""),2),G=W[0],q=W[1],J=Array.from(b.current);function Z(t,n,r){var i,a=C.S.getWidgetParams(n,r,C.S.getDashboardTargetType(e.dashboard),null===(i=e.activeAudiences)||void 0===i?void 0:i.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,a,r)}D(J,e.tableOfContentsId),B({setActiveId:q,headingElements:J,controlledId:x,setControlledId:U});var $=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===u.GL.Archived&&!e.isReadonly||e.dashboard.status===u.GL.Draft&&!e.isPreviewing||!e.isComingSoon&&(!(null==d?void 0:d.length)||(!f||!f.length)&&Object.values(w).every((function(e){return!!e})))),Y=null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e);r.useEffect((function(){$&&E(v)}),[null==d?void 0:d.length]);var X=r.useCallback((function(e,t){if(w[e]!==t){for(var n,r=(Object.assign(Object.assign({},w),(l={},f=t,p=void 0,p=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(u=e),(u="symbol"==H(p)?p:p+"")in l?Object.defineProperty(l,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):l[u]=f,l))),i=0;i<d.length;){var a=d[i];if(Q(a)){for(var o=!0,c=i+1;o&&c<d.length;){var s=d[c];if(Q(s))break;r[s.id]||(n=s).widgetId===P.z.CuratedClassifications||n.widgetId===P.z.Classifications||(o=!1),c++}i=c,r[a.id]=o}else i++}E(r)}var l,u,f,p}),[w,d]);function K(e){return Q(e)&&w[e.id]}var ee=d.filter((function(e){var t;return!K(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),te=ee.length>=2&&!y;return e.isComingSoon&&o.Q.Ry.throw(new _.d),r.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},r.createElement(I.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(n=e.getBannerActions)||void 0===n?void 0:n.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),r.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 ".concat(e.isComingSoon?"":"border-bottom")},r.createElement(j.Oo,{breadcrumbs:Y}),r.createElement(V,{classification:e.classification,audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(s=(c=e.appLinks).audience)||void 0===s?void 0:s.call(c),isEmpty:$,isReadonly:e.isReadonly,isComingSoon:e.isComingSoon,disablePersist:!e.isViewCurrentPresentation})),r.createElement("div",{className:"".concat(te?"row no-wrap":"")},r.createElement("div",{className:te?"col-9":""},d.map((function(t,n){return K(t)?r.createElement(r.Fragment,{key:t.id}):r.createElement(F.L,{headingElementRef:b,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:Z,setIsEmpty:X,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,presentation:e.presentation,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,isBot:e.isBot,hasTableOfContents:te,lazyLoad:e.lazyLoad,dashboardTarget:u.ku.Classification,widgetIndex:n,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,contentType:e.contentType,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,preferences:t.preferences})})),!!(null==f?void 0:f.length)&&r.createElement(r.Fragment,null,r.createElement(A.B,{name:i.T.getPhrase(z,"videos"),description:""}),r.createElement(L.E4,{videos:f,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:p}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions}))),te&&r.createElement("aside",{className:"col-3"},r.createElement(h,{widgets:ee,title:e.classification.name,activeId:G,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:U}))),$&&r.createElement(m,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&r.createElement(O,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}J.defaultProps={appLinks:{}};var Z=n(70275),$=n(51365),Y=n(25925),X=n(89454),K=n(21750),ee=n(39151),te=n(31949),ne=n(91286),re=n(79612),ie=n(25301),ae=n(99742),oe=n(41760),ce=n(31700),se=n(73688),le=n(49433),ue=n(6117),de=n(64364),fe=n(96359),pe=n(41135);function me(e){return me="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},me(e)}function ye(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,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==me(t)?t:t+""}function ve(e,t,n){return t=he(t),function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ge()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ge=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function we(e,t){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},we(e,t)}var Ee="subjects.topicNotFoundError",Oe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ve(this,t,["Topic doesn't exist"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return i.T.getPhrase(Ee,"heading")}},{key:"description",get:function(){return i.T.getPhrase(Ee,"description")}},{key:"cta",get:function(){return{text:i.T.getPhrase(Ee,"cta"),appLink:{application:pe.O.SUBJECTS,action:fe.e.Subjects.CLASSIFICATION_ALL}}}}])&&ye(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(de.H);function Te(){return r.createElement("div",{className:"bg-white px-4"},r.createElement(I.v,null),r.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},r.createElement(j.b2,null),r.createElement(W.N,null)))}var Se=n(65751),Pe=i.T.encloseNamespace("subjects.classificationView"),ke=i.T.encloseNamespace("subjects.classificationView");function Ce(e){var t,n,i,o,c,s,l,d,f,p,m=(0,le.V)("video-list"),y=a.a.useBasicFetch(ee.L.config()),b=a.a.useBasicFetch(te.N.currentUser()),v=a.a.useBasicFetch(ce.g.streamablePresentation()),g=a.a.useBasicFetch(K.x.classification(e.id,null===(t=b.data)||void 0===t?void 0:t.id)),h=(0,se.B)({targetType:u.ku.Classification,dashboardId:null===(n=e.queryParams)||void 0===n?void 0:n.dashboardId,classificationId:e.id}),w=h.dashboard,E=h.isPreviewing;(0,re.M)(ie.CG.getClassificationMetadata({content:g.data,phraseContext:{phraseHandler:ke,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:ue.f.getCanonicalLink(),allowIndexing:!0,product:oe.L.PRODUCT_NAME})),(0,ne.v)(g,{notFound:Oe});var O,T,S=a.a.useBasicFetch(v.data&&X.O.presentationAudiences(v.data.id,Y.R.StreamableLearning)),P=a.a.useBasicFetch(K.x.path(e.id,Y.R.StreamableLearning)),C=G.T.getActiveAudiencesFromParams(S.data,e.queryParams),I=null!==(i=null==C?void 0:C.map((function(e){return e.masterId})))&&void 0!==i?i:[],j={presentationId:null===(o=v.data)||void 0===o?void 0:o.id,presentationName:null===(c=v.data)||void 0===c?void 0:c.name,currentClassificationId:null===(s=g.data)||void 0===s?void 0:s.id,currentClassificationName:null===(l=g.data)||void 0===l?void 0:l.name,followingCurrentClassification:!!(null===(p=null===(f=null===(d=g.data)||void 0===d?void 0:d.followers)||void 0===f?void 0:f.data)||void 0===p?void 0:p.length),activeAudienceNames:(null==C?void 0:C.length)?C.map((function(e){return e.name})):null,activeAudienceIds:I.length?I:null},L=(O=g.data,T=e.queryParams,Object.assign(Object.assign({},Se.y),{classification:function(e){return Se.y.classification(e||O,T)},classificationTopics:function(){return Se.y.classificationTopics(T)},audience:function(){return Se.y.classification(O,T)}}));return y.data&&w.hasCompleted&&g.data&&v.data&&P.data&&S.data?r.createElement($.M.Provider,{value:{getVideoActions:m}},r.createElement("div",{className:"position-relative"},!(!E||!w.data)&&r.createElement(Z.a,{status:w.data.status,type:"topic"}),r.createElement(J,{dashboard:w.data,classification:g.data,getWidgetContentRequest:k._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,n=e.path,r=e.appLinks,i=[{name:Pe("discover"),appLink:{application:pe.O.DASHBOARD,action:fe.e.Dashboard.HOME}},{name:Pe("exploreAllTopicsHeading"),appLink:{application:pe.O.SUBJECTS,action:fe.e.Subjects.CLASSIFICATION_ALL}}];return n.forEach((function(e){i.push({name:e.name,appLink:r.classification(e),active:e.name===t.name})})),i}({appLinks:L,classification:g.data,path:P.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},presentation:v.data,getBannerActions:function(){return[]},audiences:S.data,activeAudiences:C,analyticsData:j,imageCdnUrl:y.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:ae.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:ae.W.EmptyStates.Topics.TOPIC,appLinks:L,isPreviewing:E,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!ue.f.isBot(),isTeacherOnly:!1,companyLogoFallbackUrl:ae.W.StreamableLearning.LOGO,subTextType:"productionCompany",contentType:u.VH.Livestream}))):r.createElement(Te,null)}},49433:(e,t,n)=>{n.d(t,{V:()=>i});var r=n(65858);function i(e){return function(t){return t.id,t.name,"video-list"===e?r.LZ.VideoListItem:r.LZ.PlayPage,[]}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[462],{40861:(e,t,a)=>{a.d(t,{D:()=>v});var n=a(32735),r=a(39202),i=a(23481),l=a(65858),o=a(92582),c=a(57408),s=a(18559),u=a(11607);const d={pillTabSelector:"Hdi6o",pillItem:"hUJx1"};function m(e){var t;return n.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},n.createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(d.pillTabSelector)},e.tabs.map((function(e){return n.createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?n.createElement(c.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(d.pillItem)},e.name,"number"==typeof e.count&&n.createElement("div",{className:"ps-2"},n.createElement(s.C,{type:s.g.Count,data:e.count}))):n.createElement(u.L,{className:"".concat(d.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&n.createElement("div",{className:"ps-2"},n.createElement(s.C,{type:s.g.Count,data:e.count}))))}))))}const p={pillTab:"Vrjid"};var f="streamable.header";function v(e){var t,a,o,c,s,u,d=[{name:i.T.getPhrase(f,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(f,"heading"),url:r.C$.getHref(null===(a=e.appLinks)||void 0===a?void 0:a.discover)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}},{name:i.T.getPhrase(f,"livestreams"),appLink:null===(o=e.appLinks)||void 0===o?void 0:o.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(f,"livestreams"),url:r.C$.getHref(null===(c=e.appLinks)||void 0===c?void 0:c.calendar)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}},{name:i.T.getPhrase(f,"partners"),appLink:null===(s=e.appLinks)||void 0===s?void 0:s.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(f,"partners"),url:r.C$.getHref(null===(u=e.appLinks)||void 0===u?void 0:u.partners)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}}];return n.createElement("div",{className:"py-3 text-center"},n.createElement(m,{tabs:d,className:p.pillTab}))}},5960:(e,t,a)=>{var n,r;a.d(t,{H:()=>r,X:()=>n}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(n||(n={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},25925:(e,t,a)=>{var n;a.d(t,{R:()=>n}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(n||(n={}))},49638:(e,t,a)=>{a.r(t),a.d(t,{ContentPartnersView:()=>N});var n=a(32735),r=a(20354),i=a(28400),l=a(40861),o=a(57408),c=a(83345),s=a(54610),u=a(67453),d=a(96359),m=a(41135),p=a(68317),f=a(31700);const v={logoContainer:"ydlqI"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function b(){return n.createElement(n.Fragment,null,(e=Array(24),function(e){if(Array.isArray(e))return y(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 y(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?y(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.")}()).map((function(e,t){return n.createElement("div",{key:"partial-loading-".concat(t),className:"col-4"},n.createElement("div",{className:"d-flex align-items-center border border-light w-100 h-100 rounded-3 overflow-hidden"},n.createElement("div",{className:"".concat(v.logoContainer," flex-shrink-0 partial-loading-background")}),n.createElement("p",{className:"partial-loading-background fw-semibold ms-3 mb-0 w-50"}," ")))})));var e}var g=a(27051);function h(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(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 k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,o=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(o.push(n.value),o.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return o}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return A(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var S="dashboard.contentPartners",w=50;function N(){var e,t=k(n.useState(""),2),a=t[0],y=t[1],E=k(n.useState([]),2),A=E[0],N=E[1],O=r.a.useBasicFetch(f.g.streamablePresentation()),C=p.h.companies({presentation:null===(e=O.data)||void 0===e?void 0:e.id.toString()},a,w),D=r.a.useBasicFetch(O.data&&C);return n.useEffect((function(){var e,t,a;D.data&&((null===(e=D.data)||void 0===e?void 0:e.results.length)&&N((function(e){return[].concat(h(e),h(D.data.results))})),(null===(t=D.data)||void 0===t?void 0:t.pagination.cursors.next)&&y(null===(a=D.data)||void 0===a?void 0:a.pagination.cursors.next))}),[D.hasCompleted]),n.createElement(n.Fragment,null,n.createElement(l.D,{active:"partners",appLinks:(0,g.h)()}),n.createElement("h1",{className:"h2 mb-3"},n.createElement(c.x,{namespace:S,phrase:"heading"})),n.createElement("div",{className:"row g-3"},A.length?n.createElement(n.Fragment,null,A.map((function(e){return n.createElement(o.F,{appLink:{application:m.O.DASHBOARD,action:d.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,i.m.slugify(e.name)]},className:"col-4",key:e.id},n.createElement("div",{className:"d-flex align-items-center border border-light w-100 h-100 rounded-3 overflow-hidden"},n.createElement("div",{className:"".concat(v.logoContainer," flex-shrink-0 partial-loading-background")},e.logo&&n.createElement("img",{className:"w-100",src:u.j.createUrl(e.logo.url,{size:s.h2.Small}),alt:e.name})),n.createElement("p",{className:"fw-semibold ms-3 mb-0"},e.name)))}))):n.createElement(b,null)))}},27051:(e,t,a)=>{a.d(t,{E:()=>l,h:()=>o});var n=a(96359),r=a(41135),i=a(65751);function l(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationTopics:function(){return i.y.classificationTopics(e)}})}function o(){return{discover:{application:r.O.DASHBOARD,action:n.e.Dashboard.HOME},calendar:{application:r.O.CALENDAR,action:n.e.Calendar.CALENDAR},partners:{application:r.O.DASHBOARD,action:n.e.Dashboard.CONTENT_PARTNERS}}}},68317:(e,t,a)=>{a.d(t,{h:()=>i});var n=a(99940),r=a(97395),i={company:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:r._.urlBuilder("/api/objects/".concat(e),t),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(t),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!0,cursor:null!=t?t:void 0,limit:a,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:n.k.POST,data:i,key:r}}}},31700:(e,t,a)=>{a.d(t,{g:()=>i});var n=a(97395),r=a(25925),i={streamablePresentation:function(){return{url:n._.urlBuilder("/api/subjects/presentations/available",{type:r.R.StreamableLearning}),key:"streamable:learning:presentations",bootstrapName:"availablePresentations",formatData:function(e){return e[0]},normalizeOptions:{namespace:"internal:presentation"}}}}}}]);
|