@clickview/lite 0.32.6-rc.8 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{1366-lite-6f12312543.chunk.css → 1366-lite-69969922c3.chunk.css} +1 -1
- package/dist/css/{1781-lite-f09d44460a.chunk.css → 1781-lite-62db879d64.chunk.css} +1 -1
- package/dist/css/{1820-lite-bfdd587934.chunk.css → 1820-lite-e06465f5de.chunk.css} +1 -1
- package/dist/css/{6159-lite-19c8fc320e.chunk.css → 2469-lite-68f17d6ccb.chunk.css} +1 -1
- package/dist/css/{275-lite-62b59223b1.chunk.css → 275-lite-4f19640eb7.chunk.css} +1 -1
- package/dist/css/{9744-lite-3a9ef7f2f7.chunk.css → 3091-lite-1acf740394.chunk.css} +1 -1
- package/dist/css/{3446-lite-2c16f76a70.chunk.css → 3446-lite-de70566195.chunk.css} +2 -2
- package/dist/css/{3755-lite-6f3f0f2a8d.chunk.css → 3755-lite-0da0cc9d62.chunk.css} +1 -1
- package/dist/css/{4145-lite-1cb96b833b.chunk.css → 4145-lite-10dcae6491.chunk.css} +1 -1
- package/dist/css/{4373-lite-f7cda08fb2.chunk.css → 4373-lite-70e0bc4a9c.chunk.css} +1 -1
- package/dist/css/{8556-lite-e4688ef686.chunk.css → 4380-lite-161e1f072a.chunk.css} +1 -1
- package/dist/css/{4405-lite-e41a479008.chunk.css → 4405-lite-d4ae59eb2d.chunk.css} +1 -1
- package/dist/css/4423-lite-58a7760b53.chunk.css +2 -0
- package/dist/css/{4441-lite-c7934b39ef.chunk.css → 4441-lite-332f7e59e1.chunk.css} +1 -1
- package/dist/css/{5151-lite-e41a479008.chunk.css → 5151-lite-d4ae59eb2d.chunk.css} +1 -1
- package/dist/css/{5171-lite-72725120a3.chunk.css → 5171-lite-67352d5f48.chunk.css} +1 -1
- package/dist/css/{5313-lite-3b29b667e1.chunk.css → 5313-lite-956df10919.chunk.css} +2 -2
- package/dist/css/{5406-lite-364b761033.chunk.css → 5406-lite-9e36d56735.chunk.css} +2 -2
- package/dist/css/{5659-lite-a0b3cf04dc.chunk.css → 5555-lite-0ad79a4f81.chunk.css} +1 -1
- package/dist/css/{5611-lite-a0b3cf04dc.chunk.css → 5611-lite-0ad79a4f81.chunk.css} +1 -1
- package/dist/css/{5555-lite-a0b3cf04dc.chunk.css → 5659-lite-0ad79a4f81.chunk.css} +1 -1
- package/dist/css/{6154-lite-5b46992519.chunk.css → 6154-lite-9de6d937cb.chunk.css} +1 -1
- package/dist/css/{2469-lite-ce3c019eae.chunk.css → 6159-lite-9521293351.chunk.css} +1 -1
- package/dist/css/{4247-lite-b76d20bd63.chunk.css → 637-lite-91dd88a8e6.chunk.css} +3 -3
- package/dist/css/{6407-lite-720e76a514.chunk.css → 6407-lite-23f29cce3d.chunk.css} +1 -1
- package/dist/css/{6702-lite-31d475bc5d.chunk.css → 6702-lite-7caa0be777.chunk.css} +1 -1
- package/dist/css/{6822-lite-e6009d7a35.chunk.css → 6822-lite-2c4dbd6721.chunk.css} +1 -1
- package/dist/css/{6957-lite-82cdc84d20.chunk.css → 6957-lite-d486456f1e.chunk.css} +1 -1
- package/dist/css/{7286-lite-140c0a1d94.chunk.css → 7286-lite-871baa523e.chunk.css} +1 -1
- package/dist/css/{7484-lite-ebedea81cd.chunk.css → 7484-lite-bef9094c58.chunk.css} +1 -1
- package/dist/css/{7564-lite-74c6e57468.chunk.css → 7564-lite-d60de6c7e1.chunk.css} +1 -1
- package/dist/css/{817-lite-b3b6e03570.chunk.css → 817-lite-d4b875a3bb.chunk.css} +1 -1
- package/dist/css/{4380-lite-e4688ef686.chunk.css → 8556-lite-161e1f072a.chunk.css} +1 -1
- package/dist/css/{9714-lite-5e35963ae2.chunk.css → 9714-lite-ac0b76a84c.chunk.css} +1 -1
- package/dist/css/{3091-lite-3a9ef7f2f7.chunk.css → 9744-lite-1acf740394.chunk.css} +1 -1
- package/dist/css/lite-app-14ad0170f5.css +52 -0
- package/dist/scripts/{1316-d5b8851ba4-lite.chunk.js → 1316-8029134995-lite.chunk.js} +1 -1
- package/dist/scripts/{1366-edb781eea5-lite.chunk.js → 1366-86d2d6169c-lite.chunk.js} +1 -1
- package/dist/scripts/1818-59579cc811-lite.chunk.js +1 -0
- package/dist/scripts/{1820-01e1f93cef-lite.chunk.js → 1820-588830f999-lite.chunk.js} +1 -1
- package/dist/scripts/1837-61e05c29a8-lite.chunk.js +1 -0
- package/dist/scripts/3514-909af9cb44-lite.chunk.js +1 -0
- package/dist/scripts/{3789-e3924e640f-lite.chunk.js → 3789-80c07aba3d-lite.chunk.js} +2 -2
- package/dist/scripts/{3848-0c6b5bba24-lite.chunk.js → 3848-a3b274c11c-lite.chunk.js} +1 -1
- package/dist/scripts/4145-9bf0b08568-lite.chunk.js +1 -0
- package/dist/scripts/{420-a72d8002a3-lite.chunk.js → 420-464f249a92-lite.chunk.js} +1 -1
- package/dist/scripts/{4441-77b74058ed-lite.chunk.js → 4441-4f4ac51a39-lite.chunk.js} +2 -2
- package/dist/scripts/5776-f79f4eff07-lite.chunk.js +1 -0
- package/dist/scripts/637-a6644887c9-lite.chunk.js +2 -0
- package/dist/scripts/7293-0fa4387eda-lite.chunk.js +1 -0
- package/dist/scripts/{7855-23c0238091-lite.chunk.js → 7855-eaae706a6d-lite.chunk.js} +1 -1
- package/dist/scripts/{8564-3933aea256-lite.chunk.js → 8564-1ac0cccfd7-lite.chunk.js} +1 -1
- package/dist/scripts/9038-af17e380bd-lite.chunk.js +1 -0
- package/dist/scripts/bundle-507ffe47c4.min.js +2 -0
- package/package.json +2 -2
- package/dist/css/4423-lite-bb4ec49419.chunk.css +0 -2
- package/dist/css/lite-app-8d8f4ad920.css +0 -52
- package/dist/scripts/1818-aba96da353-lite.chunk.js +0 -1
- package/dist/scripts/1837-dbf7be19c2-lite.chunk.js +0 -1
- package/dist/scripts/3514-7b6fb85714-lite.chunk.js +0 -1
- package/dist/scripts/4145-ae427dbea9-lite.chunk.js +0 -1
- package/dist/scripts/4247-dc809645d8-lite.chunk.js +0 -2
- package/dist/scripts/5776-9125db9e9b-lite.chunk.js +0 -1
- package/dist/scripts/7293-19e2046720-lite.chunk.js +0 -1
- package/dist/scripts/9038-2d8954c8c7-lite.chunk.js +0 -1
- package/dist/scripts/bundle-391cbeb561.min.js +0 -2
- /package/dist/scripts/{1366-edb781eea5-lite.chunk.js.LICENSE.txt → 1366-86d2d6169c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1781-946f4b8fb3-lite.chunk.js → 1781-d0fee9044d-lite.chunk.js} +0 -0
- /package/dist/scripts/{2469-cf86bf02a1-lite.chunk.js → 2469-cdd2ba267e-lite.chunk.js} +0 -0
- /package/dist/scripts/{275-b84920fdaa-lite.chunk.js → 275-a52bc95dae-lite.chunk.js} +0 -0
- /package/dist/scripts/{3091-2bc7ec2740-lite.chunk.js → 3091-9c582fd07c-lite.chunk.js} +0 -0
- /package/dist/scripts/{3446-2376eb4fa9-lite.chunk.js → 3446-65529fdeac-lite.chunk.js} +0 -0
- /package/dist/scripts/{3755-4b03f310b4-lite.chunk.js → 3755-3aa08e75c5-lite.chunk.js} +0 -0
- /package/dist/scripts/{3789-e3924e640f-lite.chunk.js.LICENSE.txt → 3789-80c07aba3d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4373-2c2d309a37-lite.chunk.js → 4373-eb074d6218-lite.chunk.js} +0 -0
- /package/dist/scripts/{4380-7788844011-lite.chunk.js → 4380-17b9432c8a-lite.chunk.js} +0 -0
- /package/dist/scripts/{4423-547e7ba89a-lite.chunk.js → 4423-795c5de532-lite.chunk.js} +0 -0
- /package/dist/scripts/{4247-dc809645d8-lite.chunk.js.LICENSE.txt → 4441-4f4ac51a39-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5151-52804fdb52-lite.chunk.js → 5151-06852b21e0-lite.chunk.js} +0 -0
- /package/dist/scripts/{5171-337dac49f0-lite.chunk.js → 5171-9397f19578-lite.chunk.js} +0 -0
- /package/dist/scripts/{5313-1726b205ec-lite.chunk.js → 5313-53738e308f-lite.chunk.js} +0 -0
- /package/dist/scripts/{5406-442903b9c5-lite.chunk.js → 5406-161aca5797-lite.chunk.js} +0 -0
- /package/dist/scripts/{5555-65878f0f6e-lite.chunk.js → 5555-e108aa8893-lite.chunk.js} +0 -0
- /package/dist/scripts/{5611-3b60432523-lite.chunk.js → 5611-52b5b25aee-lite.chunk.js} +0 -0
- /package/dist/scripts/{5659-2936917276-lite.chunk.js → 5659-7f669b538e-lite.chunk.js} +0 -0
- /package/dist/scripts/{6154-57ca7aa428-lite.chunk.js → 6154-b2f0db4086-lite.chunk.js} +0 -0
- /package/dist/scripts/{6159-fee89fd7ad-lite.chunk.js → 6159-dd02247da8-lite.chunk.js} +0 -0
- /package/dist/scripts/{4441-77b74058ed-lite.chunk.js.LICENSE.txt → 637-a6644887c9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6407-bac161c9bf-lite.chunk.js → 6407-44cd69b87c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6702-fbfcd760dc-lite.chunk.js → 6702-d8752ffa1d-lite.chunk.js} +0 -0
- /package/dist/scripts/{6822-5ca8d9e231-lite.chunk.js → 6822-22379e0863-lite.chunk.js} +0 -0
- /package/dist/scripts/{6957-25f7997744-lite.chunk.js → 6957-f69a655009-lite.chunk.js} +0 -0
- /package/dist/scripts/{7286-ffca0a4472-lite.chunk.js → 7286-b3d20d94b0-lite.chunk.js} +0 -0
- /package/dist/scripts/{7484-09c29a9633-lite.chunk.js → 7484-ea19d74c69-lite.chunk.js} +0 -0
- /package/dist/scripts/{7564-051927b273-lite.chunk.js → 7564-cd98a82dea-lite.chunk.js} +0 -0
- /package/dist/scripts/{817-e8b456fce6-lite.chunk.js → 817-297e0f95e8-lite.chunk.js} +0 -0
- /package/dist/scripts/{8556-c96b0b41cf-lite.chunk.js → 8556-5ee493d87f-lite.chunk.js} +0 -0
- /package/dist/scripts/{9714-54e41b046c-lite.chunk.js → 9714-1d934660c4-lite.chunk.js} +0 -0
- /package/dist/scripts/{9744-bdfe4cb49c-lite.chunk.js → 9744-585b42dc19-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-391cbeb561.min.js.LICENSE.txt → bundle-507ffe47c4.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1818],{89043:(e,a,t)=>{t.d(a,{p:()=>L,v:()=>x});var n=t(32735),r=t(110),i=t(12788),o={renderInPortalIfExists:function(e,a){return a?(0,i.createPortal)(e,a):e}},s=t(84963),c=t(73679),l=t(83657),d=t(23481),m=t(36848),u=t(83914),p=t(35223),v="shared.backButton";function g(e){var a=Object.assign({textShadow:!0},e),t=a.backToName,r=a.appLink,i=a.color,o=a.extraClasses,s=a.textShadow,c=t?d.T.getPhrase(v,"backTo",{backToName:t}):d.T.getPhrase(v,"back"),l="black"===i?"":"text-white",g=s?"text-shadow":"";return n.createElement(m.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(l," ").concat(g)},n.createElement(u.x,{svgName:p.vn.ChevronLeft,size:u.S.Medium}),n.createElement("span",{className:"ms-1"},c))}g.defaultProps={color:"black",extraClasses:""};var b=t(83345),h=t(10587),f=t(94232),E=t(54610),y=t(79967),C=t(67453);const k={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var N="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function w(e){return e.length<160?"h1":k.headingLarge}var L=n.memo((function(e){var a,t=e.heading,i=e.banner,d=e.imageCdnUrl,m=e.actions,u=e.sortComponent,p=e.blockColourClass,v=e.specialEvent,h=n.useContext(f.n),L=(0,y.k)().xxl?1920:1200,x=n.useMemo((function(){if(!v||e.showComingSoon)return!1;var a=r.O.format(new Date,"YYYY-MM-DD");return v.endDate?v.startDate<=a&&v.endDate>=a:v.startDate===a}),[v]),S=e.imageOptions||{width:L,ratio:N,resizeType:E.Nq.Cover},T=!!i&&!!d&&C.j.createBannerUrl(i,{fallbackBaseUrl:d,fallbackCategoryName:t,type:E.__.Banners},S),I={className:"banner banner-header",style:T?{backgroundImage:"url('".concat(T,"')")}:{}};!i&&p&&(delete I.style,I.className+=" ".concat(p));var D=e.detailsComponent;return o.renderInPortalIfExists(n.createElement("header",Object.assign({},I),n.createElement("div",{className:"container ".concat(k.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(g,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(k.bannerContent)},!!v&&n.createElement("div",{className:"position-relative ".concat(k.specialEventContainer)},n.createElement(c.s,{body:{type:v.endDate?"range":"day",text:v.endDate?"".concat(r.O.format(v.startDate,"DD"),"-").concat(r.O.format(v.endDate,"DD")):r.O.format(v.startDate,"DD")},month:r.O.format(v.startDate,"MMMM")})),n.createElement("div",null,x&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(b.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("h1",{className:"text-white text-shadow ".concat(k.heading," ").concat(w(t))},t,D&&n.createElement(D,null))),!!m&&n.createElement("div",{className:k.actionsContainer},n.createElement(l.e,{actions:m,sortComponent:u,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(a=e.logo)||void 0===a?void 0:a.url)&&n.createElement("div",{className:k.logoContainer},n.createElement("img",{src:C.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==h?void 0:h.container)}),(function(e,a){var t,n;return e.actions===a.actions&&e.heading===a.heading&&(null===(t=e.logo)||void 0===t?void 0:t.url)===(null===(n=a.logo)||void 0===n?void 0:n.url)}));function x(){var e=n.useContext(f.n);return o.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(k.banner)}),null==e?void 0:e.container)}},49935:(e,a,t)=>{t.d(a,{Oo:()=>m,b2:()=>u});var n=t(32735),r=t(36848),i=t(86764),o=t(3747),s=t(5859),c=t(35223),l=t(83914),d=function(e){var a=e.breadcrumb,t=a.name,i=a.appLink,o=a.active,s=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?n.createElement("strong",null,t):n.createElement(r.F,{appLink:i},s&&n.createElement(l.x,{svgName:c.vn.ChevronLeft,size:l.S.Small}),n.createElement("span",{className:s?"ms-2":""},t)))},m=function(e){var a=e.breadcrumbs,t=(0,o.a)(i.r.XS),r=null==a?void 0:a.length;return!r||t&&r<2?n.createElement(n.Fragment,null):t?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(d,{breadcrumb:a[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},a.map((function(e,a){return n.createElement(d,{key:a,breadcrumb:e})}))))},u=n.memo((function(e){var a=e.numItems,t=void 0===a?3:a;return(0,o.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},s.u.getPartialLoadingItems({numItems:t}).map((function(e,a){var t=e.width;return n.createElement("li",{key:a,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},56520:(e,a,t)=>{t.d(a,{R0:()=>p,_N:()=>m,eR:()=>u});var n=t(23481),r=t(97395),i=t(20354),o=t(42617),s=t(4594),c=t(39151),l=t(31949),d=n.T.encloseNamespace("shared.hooks");function m(e,a,t,n){var i=r._.safeUrlConcat(e,"manage"),o=r._.safeUrlConcat(e,"exchange"),c=function(e,a,t){return r._.safeUrlConcat(e,"".concat(a,"/").concat(t))};switch(a){case s.E.Subject:return r._.safeUrlConcat(i,"subjects/presentations/".concat(n,"/classifications/").concat(t,"/edit"));case s.E.Video:return c(i,"videos",t);case s.E.Playlist:return c(i,"playlists",t);case s.E.Series:return c(i,"series",t);case s.E.Company:return c(i,"companies",t);case s.E.Interactive:return c(i,"interactives",t);case s.E.Clip:return c(i,"clips",t);case s.E.Category:return c(o,"categories",t)}}function u(){return d("openInCurationStudio")}function p(){var e,a,t=i.a.useBasicFetch(l.N.currentUser()),n=i.a.useBasicFetch((null===(e=t.data)||void 0===e?void 0:e.id)&&l.N.groups(null===(a=t.data)||void 0===a?void 0:a.id)).data,r=i.a.useBasicFetch(c.L.config()),s=[o.j.Curator,o.j.Content,o.j.Developer];return{openInCurationStudioLabel:u(),isUserCurator:s.some((function(e){return null==n?void 0:n.data.find((function(a){return a.name===e}))})),getOpenInCurationStudioLink:function(e,a,t){var n;return m(null===(n=r.data)||void 0===n?void 0:n.curatorUrl,e,a,t)}}}},41818:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>J});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),s=t(28400),c=t(65858),l=t(75896),d=t(23232),m=t(83345),u=t(76177),p=t(98758),v=t(35223),g="moviesAndTv.companyDashboardEmptyState",b=r.T.encloseNamespace(g);function h(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===p.GL.Archived;return n.createElement(d.u,null,n.createElement(d.u.Image,{src:e.imageUrl,altText:b("info")}),n.createElement(d.u.Heading,null,n.createElement(m.x,{namespace:g,phrase:"heading"})),n.createElement(d.u.Info,null,n.createElement(m.x,{namespace:g,phrase:"info"})),n.createElement(u.u,{title:i?r.T.getPhrase(g,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(d.u.Cta,{text:r.T.getPhrase(g,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:v.vn.Plus,disabled:i})))}var f=t(89043),E=t(49935),y=t(84619),C=t(7733),k=t(16714),N=t(22902),w=t(21366),L=t(9085);function x(e){var a,t,r,i=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),o=(0,(0,N.T)().hasPermissions)(k.C.StudentExperience);function s(a,t,n){var r=w.S.getWidgetParams(t,n,w.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(a,r)}var c=e.isReadonly&&!(null==i?void 0:i.length);return n.createElement(n.Fragment,null,!!i.length&&n.createElement(n.Fragment,null,e.company?n.createElement(f.p,{heading:e.company.name,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,L.x)(e.company.name,C.o),actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(f.v,null),n.createElement("div",{className:"py-3 mb-3 border-bottom"},n.createElement(E.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)})),n.createElement("div",{className:"mt-3"},i.map((function(a){return n.createElement(y.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:s,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,showVideoGuidance:!o,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions})})))),c&&n.createElement(h,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var S=t(183),T=t(67058),I=t(21750),D=t(39151),P=t(80889),B=t(56520),A=t(97037),O=t(79612),_=t(37802),M=t(67753),U=t(14070),F=t(97291),j=t(97395),R={company:function(e){var a={query:"banner"};return{url:j._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:j._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}}},W=t(82817),H=t(7179),q=t(23737),G=t(56017),V=t(33192),Y=t(8389),z=r.T.encloseNamespace("moviesAndTv.companyDashboard"),X={videoType:function(e,a){return M.W.getAppLink(e,{moviesAndTv:!0,context:S.Q.Widget,contextId:a})},series:function(e){return{application:F.O.SERIES,action:U.e.Series.SERIES,args:e?[e.id,s.m.slugify(e.name)]:[]}},playlist:function(e){return{application:F.O.PLAYLISTS,action:U.e.Playlists.PLAYLIST,args:[e.id,s.m.slugify(e.name)]}}};function J(e){var a,t,r=o.a.useBasicFetch(D.L.config()),s=o.a.useBasicFetch(R.company(e.companyId)),l=(0,B.R0)(),d=l.openInCurationStudioLabel,m=l.isUserCurator,u=l.getOpenInCurationStudioLink,v=(0,_.r)(null),g=v.hasNewMoviesAndTv,b=v.isLoadingSettings,h=(0,A.c)(c.LZ.ExpandableVideoThumbnail),f=h.setFavourite,E=h.canFavourite,y=(0,N.T)(),C=y.hasPermissions,k=y.hasLocalPermissions,w=(0,q.y)({targetType:p.ku.Company,queryParams:e.queryParams,presentationSlug:e.presentationSlug,companyId:e.companyId}),L=w.dashboard,S=w.presentation,M=w.isPreviewing;(0,O.M)(G.C.getDefaultMetadata({title:null===(a=s.data)||void 0===a?void 0:a.name,phraseContext:{phraseHandler:z,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:V.f.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:!1}));var j=(0,W.M)().activeCurriculum;return(0,H.P)({id:e.companyId,app:"studios"}),n.useEffect((function(){!b&&L.hasCompleted&&(g&&L.data||i.Q.C$.trigger({application:F.O.DASHBOARD,action:U.e.Dashboard.HOME},{replace:!0}))}),[g,b,L.data,L.hasCompleted]),n.useEffect((function(){L.hasCompleted&&!L.data&&i.Q.Ry.throw(new T.d)}),[L.data,L.hasCompleted]),n.createElement("div",{className:"position-relative px-4"},!(!M||!L.data)&&n.createElement(Y.a,{status:L.data.status,type:"company"}),n.createElement(x,{company:s.data,dashboard:L.data,getWidgetContentRequest:P._.dashboardWidgetContent,getBannerActions:function(){var e,a;return m?[{label:d,href:u(null===(e=s.data)||void 0===e?void 0:e.typeId,null===(a=s.data)||void 0===a?void 0:a.id),openInNewTab:!0}]:[]},curriculum:j,getCurriculumLinksRequest:function(e){return I.x.curriculumLinks(e,null==j?void 0:j.id)},imageCdnUrl:null===(t=r.data)||void 0===t?void 0:t.imageCdnUrl,presentation:S,widgetAppLinks:X,setFavourite:f,canFavourite:E,getBreadcrumbs:function(){return s.hasCompleted?[{name:z("moviesAndTv"),appLink:{application:F.O.MOVIES_AND_TV,action:U.e.MoviesAndTv.HOME}},{name:s.data.name,active:!0}]:[]},hasPermissions:C,hasLocalPermissions:k}))}},8389:(e,a,t)=>{t.d(a,{a:()=>E});var n,r=t(32735),i=t(23481),o=t(75902),s=t(35223);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,a,t){return(a=function(e){var a=function(e,a){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(a)?a:String(a)}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var d=(l(n={},o.GL.Archived,{svgName:s.vn.Archive,svgColorClassName:"text-muted",actionName:"Archive",statusName:"Archived"}),l(n,o.GL.Draft,{svgName:s.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),l(n,o.GL.Published,{svgName:s.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),n),m=t(83914),u=t(98758);const p={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function v(e){var a="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(p.badge);switch(e.status){case u.GL.Published:a+=" ".concat(p.published);break;case u.GL.Archived:a+=" ".concat(p.archived);break;case u.GL.Draft:a+=" ".concat(e.darkMode?p.draftDark:p.draftLight)}return e.wrapperClassName&&(a+=" ".concat(e.wrapperClassName)),a}function g(e){var a=d[e.status],t=a.statusName,n=a.svgName;return r.createElement("div",{className:v(e)},r.createElement(m.x,{svgName:n}),r.createElement("div",null,t))}var b=t(98364);const h={stickyWrapper:"HM54F",badgeWrapper:"fbMeX",badge:"iu0xw"};var f=i.T.encloseNamespace("subjects.classificationPreviewBanner");function E(e){return r.createElement("div",{className:"".concat(h.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},r.createElement("div",{className:"position-absolute d-flex ".concat(h.badgeWrapper)},r.createElement(g,{status:e.status,wrapperClassName:"".concat(h.badge),darkMode:!0})),r.createElement("div",{className:"flex-grow-1"},r.createElement("h1",{className:"text-center my-3 h5"},r.createElement(b.V,{emoji:"👀"}),f("topic"===e.type?"topicTitle":"companyTitle"))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[1837],{33766:(e,t,r)=>{r.r(t),r.d(t,{AddStudentsToClassroomView:()=>R});var n=r(32735),a=r(70680),o=r(23481),l=r(97395),s=r(20354),c=r(49985),i=r(7855),u=r(36848),d=r(9111),m=r(13876),f=r(83345),p=r(40424),h=r(16714),y=r(76881),g=r(39151),v=r(31949),S=r(69883),b=r(22902),E=r(99742),C=r(14070),w=r(97291),A=r(88630);function I(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,a,o,l,s=[],c=!0,i=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){i=!0,a=e}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(i)throw a}}return s}}(e,t)||T(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 T(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}function U(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 k="classrooms.addStudentsToClassroom",P=o.T.encloseNamespace(k),N={application:w.O.USER_MANAGER,action:C.e.UserManager.STUDENTS};function R(e){var t=I(n.useState(!1),2),r=t[0],o=t[1],C=I(n.useState([]),2),w=C[0],R=C[1],F=s.a.useBasicFetch(v.N.currentUser()),L=s.a.useBasicFetch(g.L.config()),_=s.a.useBasicFetch(v.N.token()),O=s.a.useBasicFetch(F.data&&A.F.getClassroom(e.classroomId,F.data.id)),j=(0,a.I0)(),x=(0,S.Z)(),B=(0,b.T)().hasPermissions,M=!!(_.data&&O.data&&L.data&&F.data);return n.createElement(d.G,{title:P("title"),closePopup:e.closePopup,showLoadingSpinner:!M},M&&n.createElement(n.Fragment,null,n.createElement("div",{className:"pb-3"},n.createElement(i.R,{placeholder:P("placeholder"),getRemoteUrl:function(){return l._.safeUrlConcat(L.data.gatewayApiUrl,"/v3/search")},getRemotePostBody:function(t){var r;return function(e,t,r,n){return{userId:n,customerId:r,query:e,searchType:"user",filters:{excludeClassroom:t,userType:[y.Y.Learner],userProfile:{status:["".concat(p.w.Active.toLowerCase()),"".concat(p.w.Inactive.toLowerCase())],customerId:r}},indices:["user"],limit:i.d}}(t,e.classroomId,F.data.customerId,null===(r=F.data)||void 0===r?void 0:r.id)},requestHeaders:{authorization:"Bearer ".concat(_.data.value)},selections:w,formatRemoteSuggestions:function(e){return e.results},onSuggestionSelected:function(e){return R([].concat(function(e){if(Array.isArray(e))return U(e)}(t=w)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||T(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]));var t},removeSelection:function(e){return R(w.filter((function(t){return t.id!==e.id})))},imageCdnUrl:L.data.imageCdnUrl,activationLength:2,debounceTime:200,errorStateImageUrl:E.W.TYPEAHEAD_ERROR,emptyStateImageUrl:E.W.EmptyStates.TYPEAHEAD_RESULTS})),B(h.C.ManageUsers)&&n.createElement("p",null,n.createElement(f.x,{namespace:k,phrase:"createNewStudent"}),n.createElement(u.F,{className:"info-link",onClick:e.closePopup,appLink:N},n.createElement(f.x,{namespace:k,phrase:"studentManager"}))),n.createElement(m.u,null,n.createElement(m.u.Cancel,{onClick:e.closePopup}),n.createElement(m.u.Submit,{onClick:function(){(null==w?void 0:w.length)&&(o(!0),s.a.fetch(j,A.F.addStudents(w.map((function(e){return e.id})),e.classroomId,(function(){o(!1),c.k.logUserAction({id:e.classroomId,userCount:w.length},e.analyticsOptions),x.success(P("success",{smartCount:w.length,classroomName:O.data.name,escapeText:!0})),e.closePopup()}),(function(){o(!1),x.error(P("error",{smartCount:w.length,classroomName:O.data.name})),e.closePopup()}))))},variant:"dark",text:P("add"),showSpinner:r,disabled:!(null==w?void 0:w.length)}))))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3514],{73514:(e,a,t)=>{t.r(a),t.d(a,{MoviesAndTvView:()=>j});var n=t(32735),i=t(23481),r=t(81886),s=t(20354),o=t(75896),l=t(28400),d=t(65858),c=t(98364),u=t(83345),m=t(84619),p=t(16714),g=t(22902),v=t(98758),h=t(21366),T=t(23232),A=t(76177),f=t(35223),E="moviesAndTv.dashboardEmptyState",L=i.T.encloseNamespace(E);function C(e){var a,t,r=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===v.GL.Archived;return n.createElement(T.u,null,n.createElement(T.u.Image,{src:e.imageUrl,altText:L("info")}),n.createElement(T.u.Heading,null,n.createElement(u.x,{namespace:E,phrase:"heading"})),n.createElement(T.u.Info,null,n.createElement(u.x,{namespace:E,phrase:"info"})),n.createElement(A.u,{title:r?i.T.getPhrase(E,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(T.u.Cta,{text:i.T.getPhrase(E,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:f.vn.Plus,disabled:r})))}const S={icon:"Kmx7z",title:"Hw1qq"};var b="moviesAndTv.dashboard";function k(e){var a,t=o.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),r=(0,(0,g.T)().hasPermissions)(p.C.StudentExperience);function s(a,t,n){var i=h.S.getWidgetParams(t,n,h.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(a,i)}var l=e.isReadonly&&!(null==t?void 0:t.length);return n.createElement("div",{className:"px-4"},e.showPreviewingBanner&&n.createElement("div",{className:"rounded p-2 bg-light-blue mt-3 text-center fw-semibold text-blue"},n.createElement(c.V,{emoji:"🔎"},n.createElement(u.x,{namespace:b,phrase:"banner"}))),n.createElement("div",{className:"d-flex align-items-center"},n.createElement("div",{style:{backgroundImage:"url(".concat(e.moviesAndTvIconUrl,")")},className:"".concat(S.icon)}),n.createElement("h1",{className:"h2 ".concat(S.title)},i.T.getPhrase(b,"heading"))),n.createElement("hr",{className:"mt-2"}),t.map((function(a,t){return n.createElement(m.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:s,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,lazyLoad:e.lazyLoad,dashboardTarget:v.ku.MoviesAndTv,widgetIndex:t,showVideoGuidance:!r,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions})})),l&&n.createElement(C,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var y=t(17475),P=t(183),I=t(21750),w=t(39151),x=t(80889),O=t(31949),M=t(97037),N=t(79612),R=t(37802),D=t(67753),F=t(99742),H=t(14070),U=t(97291),W=t(82817),V=t(7179),_=t(23737),q=t(30241),B=t(56017),z=t(33192),G=i.T.encloseNamespace("moviesAndTV.moviesAndTV"),Y={rating:function(e,a){return{application:U.O.SEARCH,action:H.e.Search.HOME,params:{moviesAndTv:!0,rating:y.S.getFrontendParamValue([o.m.first(a),e])}}},classification:function(e){return{application:U.O.SUBJECT,action:H.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,l.m.slugify(null==e?void 0:e.name)],params:{mtv:!0}}},videoType:function(e,a){return D.W.getAppLink(e,{moviesAndTv:!0,context:P.Q.Widget,contextId:a})},series:function(e){return{application:U.O.SERIES,action:H.e.Series.SERIES,args:e?[e.id,l.m.slugify(e.name)]:[],params:{mtv:!0}}},playlist:function(e){return{application:U.O.PLAYLISTS,action:H.e.Playlists.PLAYLIST,args:[e.id,l.m.slugify(e.name)],params:{mtv:!0}}},company:function(e){return{application:U.O.MOVIES_AND_TV,action:H.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,l.m.slugify(e.name)]}}};function j(e){var a,t,i=(0,g.T)(),o=i.hasPermissions,l=i.hasLocalPermissions,c=(0,R.r)(null),u=c.hasNewMoviesAndTv,m=c.isLoadingSettings,h=s.a.useBasicFetch(w.L.config()),T=s.a.useBasicFetch(O.N.currentUser()),A=(0,M.c)(d.LZ.ExpandableVideoThumbnail),f=A.setFavourite,E=A.canFavourite,L=(0,W.M)().activeCurriculum,C=(0,_.y)({targetType:v.ku.MoviesAndTv,queryParams:e.queryParams,presentationSlug:e.presentationSlug}),S=C.dashboard,b=C.presentation;return(0,V.P)({app:"movies-and-tv"}),(0,N.M)(B.C.getDefaultMetadata({title:null==b?void 0:b.name,phraseContext:{phraseHandler:G,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:z.f.getCanonicalLink(),hrefLang:z.f.getStaticRouteHrefLang(null==b?void 0:b.learningLevel,(function(){return{application:U.O.MOVIES_AND_TV,action:H.e.MoviesAndTv.HOME}}),q.XA),allowIndexing:z.f.allowIndexing()})),n.useEffect((function(){!m&&S.hasCompleted&&(u&&S.data||r.Q.C$.trigger({application:U.O.DASHBOARD,action:H.e.Dashboard.HOME},{replace:!0}))}),[u,m,S.data,S.hasCompleted]),n.createElement(k,{dashboard:S.data,currentUser:T.data,getWidgetContentRequest:x._.dashboardWidgetContent,imageCdnUrl:null===(a=h.data)||void 0===a?void 0:a.imageCdnUrl,presentation:b,curriculum:L,getCurriculumLinksRequest:function(e){return I.x.curriculumLinks(e,null==L?void 0:L.id)},showPreviewingBanner:(null===(t=T.data)||void 0===t?void 0:t.isAuthenticated)&&!o(p.C.StudentExperience),moviesAndTvIconUrl:F.W.MoviesAndTv.DASHBOARD_ICON,widgetAppLinks:Y,canFavourite:E,setFavourite:f,hasPermissions:o,hasLocalPermissions:l})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4145],{54644:(e,t,n)=>{n.d(t,{v:()=>r});var a=n(97395),r={getContentUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:t,to:n,limit:6,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/presentations/".concat(e,"/content-updates"),{from:t,to:n,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){return{url:a._.urlBuilder("/api/domain/v1/subjects",{id:e,query:"banner"}),publicUrl:a._.urlBuilder("/api/subjects/classifications",{id:e,query:"banner"}),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),publicUrl:"/api/subjects/classifications/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,n){return{url:a._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/classifications/".concat(e,"/content-updates"),{from:t,to:n,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(n)}},getContentUpdateVideos:function(e,t){return{url:a._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),publicUrl:a._.urlBuilder("/api/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},3278:(e,t,n)=>{n.d(t,{z:()=>f});var a=n(32735),r=n(39202),i=n(23481),o=n(65858),l=n(38502),c=n(83345),s=n(98758);const u={pillTab:"bMJM0"};var d="discover.header";function f(e){var t,n,f,p,m,v;if(!e.type)return a.createElement(a.Fragment,null);if(e.type===s.Yv.Learner||e.hasStudentExperience)return a.createElement("div",{className:"py-3"},a.createElement("h1",{className:"h2 mb-0"},a.createElement(c.x,{namespace:d,phrase:"heading"})));var y=[{name:i.T.getPhrase(d,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(d,"forYou"),url:r.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(d,"whatsNew"),appLink:null===(f=e.appLinks)||void 0===f?void 0:f.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(d,"whatsNew"),url:r.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.whatsNew)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return e.showCalendar&&y.push({name:i.T.getPhrase(d,"calendar"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(d,"calendar"),url:r.C$.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}),a.createElement("div",{className:"py-3 text-center"},a.createElement(l.r,{tabs:y,className:u.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>s});var a=n(32735),r=n(49985),i=n(36848),o=n(76246),l=n(11607),c=n(87432);function s(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(c.Z.pillTabSelector)},e.tabs.map((function(e){return a.createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?a.createElement(i.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(c.Z.pillItem)},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))):a.createElement(l.L,{className:"".concat(c.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))))}))))}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),r=n(68050),i=n(69111),o=n(9977),l=n(79967);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement(a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a.createElement(u,Object.assign({key:n},e))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(r.Z,{className:"".concat(n?"":"py-2")},a.createElement(i.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-2":"mb-1 px-2")}),a.createElement(r.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(i.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(i.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},39902:(e,t,n)=>{n.d(t,{f:()=>c});var a=n(32735),r=n(70680),i=n(20354);function o(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}}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){var n,c,s=(n=a.useState([]),c=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,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}}(n,c)||o(n,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];a.useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(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.")}()}(u);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[e?e.join(","):null]);var f=(0,r.I0)(),p=(0,r.v9)((function(e){return e}));if(a.useEffect((function(){u.forEach((function(e){var n=t(e);i.a.getResponse(p,n.key).shouldFetch&&i.a.fetch(f,n)}))}),[null==u?void 0:u.length]),!(null==u?void 0:u.length))return{items:null,isFetching:!1};var m={},v={};return u.forEach((function(e,n){var a=t(e),r=i.a.getResponse(p,a.key);v[n]=r,r.data&&r.data.forEach((function(e){return m[e.id]=e}))})),{items:Object.keys(v).some((function(e){return!!v[e].data}))?m:null,isFetching:!!Object.keys(v).some((function(e){return v[e].isFetching}))}}},74590:(e,t,n)=>{n.d(t,{N:()=>h});var a,r=n(32735),i=n(35242),o=n(20354),l=n(27022),c=n(72639),s=n(31949),u=n(37802),d=n(10144),f=n(86698);function p(e){return p="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},p(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 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}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(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 v(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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==p(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(y(a={},l.t.AU,[c.p.Level_1]),y(a,l.t.US,[c.p.Level_1]),y(a,l.t.UK,[c.p.Level_1]),y(a,l.t.SCOT,[c.p.Level_1]),y(a,l.t.NZ,[]),y(a,l.t.GLOBAL,[]),a);function h(){var e,t=(0,u.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,l=(0,f.y)({redirectOnError:!0}).activePresentation,c=o.a.useBasicFetch(s.N.currentUser()),p=b[null===(e=c.data)||void 0===e?void 0:e.contentRegion],v=d.i.getMappedPresentationLevel(null==l?void 0:l.learningLevel),y=!(null==p?void 0:p.find((function(e){return e.toString()===v.toString()}))),h=!a&&!n,g=m(r.useState(!h&&!y),2),w=g[0],E=g[1],k=m(r.useState(a||!(null==l?void 0:l.id)),2),S=k[0],C=k[1];return r.useEffect((function(){h||y?E(!1):S||E(!0),C(a||!(null==l?void 0:l.id))}),[n,null==l?void 0:l.id,S]),i.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:w,isLoading:S}}},37808:(e,t,n)=>{n.d(t,{aq:()=>v,YW:()=>b});var a=n(32735),r=n(36848),i=n(83345),o=n(80247),l=n(57900),c=n(2948),s=n(10874),u=n(38143),d=n(35223);const f={banner:"B7jhq"};function p(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 m="contentUpdates.classificationBanner";function v(e){var t,n,v=e.classification,y=e.backgroundUrl,b=e.followed,h=e.follow,g=e.showFollowSpinner,w=(t=(0,c.D)(u.g.AUDIENCE_FILTER,void 0,{storage:l.Z1.SessionStorage}),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 p(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)?p(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];return a.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(f.banner),style:{backgroundImage:"url('".concat(y,"')")}},a.createElement(r.F,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(v,w)},a.createElement("h2",{className:"h3 mb-0"},v.name)),e.canFollow&&a.createElement(s.h,{className:"btn follow-btn ".concat(b?"btn-outline-dark":"btn-dark"),svgName:b?d.vn.Check:d.vn.Bell,onClick:function(){return h(v.id,v.name,!b)}},g?a.createElement(o.Z,{as:"span",animation:"border",role:"status",size:"sm"}):a.createElement(i.x,{namespace:m,phrase:b?"unfollow":"follow"})))}var y="playlists.liteClassificationUpdateBreadcrumbs";function b(e){var t=e.classification;return a.createElement(a.Fragment,null,a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb p-0 mb-0"},a.createElement("li",{className:"breadcrumb-item"},a.createElement(r.F,{appLink:e.dashboardAppLink},a.createElement(i.x,{namespace:y,phrase:"dashboard"}))),a.createElement("li",{className:"breadcrumb-item"},a.createElement(r.F,{appLink:e.contentUpdatesAppLink},a.createElement(i.x,{namespace:y,phrase:"whatsNew"}))),a.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}},80004:(e,t,n)=>{n.r(t),n.d(t,{ContentUpdatesView:()=>Q});var a=n(32735),r=n(70680),i=n(53806),o=n(23481),l=n(20354),c=n(49985),s=n(65858),u=n(54644),d=n(3278),f=n(36848),p=n(83345),m=n(51365),v=n(16714),y=n(39151),b=n(1666),h=n(61699),g=n(31949),w=n(69883),E=n(39902),k=n(97037),S=n(22902),C=n(79612),N=n(98758),L=n(14070),j=n(97291),O=n(65986),A=n(41063),T=n(86698),F=n(44110),U=n(97816),x=n(56017),I=n(33192),P=n(74590),D=n(4632),B=n(54610),M=n(67453),_=n(37808),Y="contentUpdates.contentUpdatesView";function V(e){var t=e.classification,n=e.videos,r=e.imageCdnUrl,i=e.showMore,o=e.followed;if(!t)return a.createElement(a.Fragment,null);var l=M.j.createBannerUrl(t.banner,{fallbackBaseUrl:r,fallbackCategoryName:t.name,type:B.__.Banners},{size:B.h2.Medium,resizeType:B.Nq.Cover});return a.createElement("div",{className:"mb-3"},a.createElement(_.aq,{classification:t,backgroundUrl:l,getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:o,follow:e.follow,canFollow:e.canFollow,showFollowSpinner:e.showFollowSpinner}),a.createElement(D.E4,{videos:n,yearGroups:e.yearGroups,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences}),i&&a.createElement("div",{className:"show-more"},a.createElement(f.F,{className:"info-link",appLink:e.appLinks.getClassificationUpdateAppLink(t)},a.createElement(p.x,{namespace:Y,phrase:"showMore",options:{classificationName:t.name}}))))}var Z=n(74696);const q={partialBanner:"bxaA6"};function R(){return a.createElement(a.Fragment,null,Array(4).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"mb-3"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat(q.partialBanner)}),a.createElement(Z.S,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 z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==H(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==H(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===H(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(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 $=5,W="contentUpdates.contentUpdatesView",J=o.T.encloseNamespace(W);function Q(e){var t,n,o,D,B,M,_,Y=(M=a.useState({}),_=2,function(e){if(Array.isArray(e))return e}(M)||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}}(M,_)||function(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}(M,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Z=Y[0],q=Y[1],H=(0,r.I0)(),Q=(0,w.Z)(),K=(0,S.T)().hasPermissions,X=K(v.C.FollowSubjects),ee=i().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),te=i().endOf("day").format("YYYY-MM-DD"),ne=l.a.useBasicFetch(y.L.config()),ae=l.a.useBasicFetch(g.N.currentUser()),re=l.a.useBasicFetch((null===(t=ae.data)||void 0===t?void 0:t.isAuthenticated)&&b.h.yearGroups(ae.data.customerId)),ie=(0,T.y)({redirectOnError:!0}).activePresentation;(0,C.M)(x.C.getDefaultMetadata({title:null==ie?void 0:ie.name,phraseContext:{phraseHandler:J,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:I.f.getCanonicalLink(),allowIndexing:I.f.allowIndexing(),hrefLang:I.f.getStaticRouteHrefLang(null==ie?void 0:ie.learningLevel,(function(){return{application:j.O.CONTENT_UPDATES,action:L.e.ContentUpdates.CONTENT_UPDATES}}))}));var oe=u.v.getContentUpdates(null==ie?void 0:ie.id,ee,te),le=l.a.useBasicFetch(ie&&oe),ce=l.a.useBasicFetch(X&&h.o.mySubjectPreferences()),se=(0,F.i)(),ue=[],de=[];le.data&&le.data.forEach((function(e){ue.push(e.id),de=de.concat(e.videos)}));var fe=(0,E.f)(ue,(function(e){return u.v.getClassifications(e)})).items,pe=(0,O._)(O.i.VideoItem);(0,U.V)(de,{hasCurriculumLinks:!0,flightNamespace:null===(n=oe.normalizeOptions)||void 0===n?void 0:n.namespace});var me=(0,k.c)(s.LZ.VideoThumbnail,null===(o=oe.normalizeOptions)||void 0===o?void 0:o.namespace),ve=me.setFavourite,ye=me.canFavourite;function be(e,t,n){q((function(t){return Object.assign(Object.assign({},t),z({},e,!0))}));var a=function(){var a;q((function(t){return Object.assign(Object.assign({},t),z({},e,!1))})),c.k.logUserAction({id:e,name:t},{location:s.LZ.ContentUpdatesClassificationBanner,workflowPhase:s.eu.Complete,descriptor:n?s.DL.On:s.DL.Off,actionType:s.Vw.Follow,entity:s.py.Classification}),Q.success(J(n?"followed":"unfollowed",{classification:null===(a=fe[e])||void 0===a?void 0:a.name,escapeText:!0}))},r=function(){q((function(t){return Object.assign(Object.assign({},t),z({},e,!1))})),Q.error(J("error"))},i=n?h.o.followSubjects([e],a,r):h.o.unfollowSubjects([e],a,r);l.a.fetch(H,i)}var he=(0,P.N)(),ge=he.showCalendar,we=he.isLoading,Ee=!(!(le.hasCompleted&&ne.hasCompleted&&se.hasCompleted)||X&&!ce.hasCompleted||!fe||we),ke=function(e,t){return e&&t?e.map((function(e){return{showMore:e.videos.length>$,classification:t[e.id],videos:e.videos.slice(0,$).map((function(e){return e.classification=t[e.id],e})).filter((function(e){return e}))}})).filter((function(e){return e.classification})):null}(le.data,fe),Se=null!==(B=null===(D=ce.data)||void 0===D?void 0:D.map((function(e){return e.id})))&&void 0!==B?B:[],Ce=K(v.C.ManageSubjectPreferences),Ne=(0,A.b)();return a.createElement(m.M.Provider,{value:pe},a.createElement("div",{className:"bg-white px-3"},!we&&a.createElement(d.z,{type:N.Yv.Staff,appLinks:{forYou:e.appLinks.dashboardAppLink,whatsNew:e.appLinks.whatsNewAppLink,calendar:e.appLinks.calendarAppLink},showCalendar:ge,active:"whatsNew"}),a.createElement("h1",null,a.createElement(p.x,{namespace:W,phrase:"heading"})),(Ce||Ne)&&a.createElement("p",null,Ce&&a.createElement(a.Fragment,null,a.createElement(p.x,{namespace:W,phrase:"onlyRelevant"})," ",a.createElement(f.F,{className:"info-link",appLink:{application:j.O.SETTINGS,action:L.e.Settings.TOPIC_PREFERENCES}},a.createElement(p.x,{namespace:W,phrase:"updatePreferences"}))),Ne&&a.createElement("span",{className:"d-block"},a.createElement(f.F,{className:"info-link",appLink:{application:j.O.SETTINGS,action:L.e.Settings.CONTENT_REVIEW}},a.createElement(p.x,{namespace:W,phrase:"contentReview"})))),Ee?a.createElement(a.Fragment,null,ke.map((function(t,n){var r,i;return a.createElement(V,{key:n,classification:t.classification,videos:t.videos,yearGroups:re.data,imageCdnUrl:ne.data.imageCdnUrl,showMore:t.showMore,appLinks:e.appLinks,followed:Se.includes(null===(r=t.classification)||void 0===r?void 0:r.id),follow:be,showFollowSpinner:Z[null===(i=t.classification)||void 0===i?void 0:i.id],canFollow:X,setFavourite:ve,canFavourite:ye,audiences:se.data})}))):a.createElement(R,null)))}},87821:(e,t,n)=>{n.d(t,{p:()=>r});var a=n(53806),r={userVideoHistory:function(e,t,n,r){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=a.utc(e.lastTimeWatched).local().format(),n=a(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:r}},videoHistory:function(e,t,n,a,r){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:a,always:r}}}},41063:(e,t,n)=>{n.d(t,{b:()=>o});var a=n(16714),r=n(22902),i=n(37802);function o(){var e=(0,r.T)().hasPermissions;return(0,i.r)(null).manageVideoAccess&&e(a.C.ManageVideoAccess)}},44110:(e,t,n)=>{n.d(t,{i:()=>o});var a=n(20354),r=n(89454),i=n(86698),o=function(){var e=(0,i.y)({redirectOnError:!0}).activePresentation;return a.a.useBasicFetch(!!e&&r.O.presentationAudiences(e.id))}},97816:(e,t,n)=>{n.d(t,{V:()=>p});var a=n(32735),r=n(20354),i=n(21750),o=n(63419),l=n(31949),c=n(1575),s=n(87821);function u(e){return function(e){if(Array.isArray(e))return d(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 d(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)?d(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 d(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 f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function p(e){var t,n,d,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=Object.assign(Object.assign({},f),p),v=m.ratings,y=m.favourites,b=m.watchHistory,h=m.hasCurriculumLinks,g=r.a.useBasicFetch(l.N.currentUser()),w=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),E=g.data;t=a.useMemo((function(){if(!(null==E?void 0:E.isAuthenticated))return[];var e=[];return v&&(e=[].concat(u(e),[!!(null==w?void 0:w.length)&&c.R.videoRatings(w,p.flightNamespace)])),y&&(e=[].concat(u(e),[!!(null==w?void 0:w.length)&&E&&o.P.isFavourited(E.id,w,p.flightNamespace)])),b&&(e=[].concat(u(e),[!!(null==w?void 0:w.length)&&E&&s.p.videoHistory(w,p.flightNamespace)])),h&&(e=[].concat(u(e),[!!(null==w?void 0:w.length)&&i.x.hasCurriculumLinks(w,null,p.flightNamespace)])),e.filter(Boolean)}),[null==w?void 0:w.length]),n=!!e,d=r.a.useGetFetch(),a.useEffect((function(){n&&t.length&&t.forEach((function(e){d(e)}))}),[t.length])}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 4247-dc809645d8-lite.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4247],{29711:(e,t,n)=>{n.d(t,{X:()=>S});var a=n(32735),i=n(110),r=n(23481),o=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(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 s=r.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=i.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var r,u,d=(r=(0,o.L)({delay:250}),u=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(r,u)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(r,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1];return a.createElement("div",{className:"".concat(n," ").concat(p?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},i.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var d=n(49985),m=n(65858),p=n(84963),v=n(12324),f=n(36848),g=n(11607),h=n(44435),y=n(83914),b=n(55171),E=n(2284),k=n(54610),w=n(67453),L=n(35223);const O={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function x(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){var t,n,r,o,l=e.sliderStep,c=e.setSliderStep,s=e.eventsOnDay.length>1,C=e.eventsOnDay.find((function(e,t){return t===l})),N=!!C.endDate,S=C.content.metadata.backgroundColor,j=b.e.SpecialEvents[C.content.id],D=j?w.j.createUrl(j.iconUrl,{size:k.h2.Medium}):w.j.createUrl(null===(t=C.content.icon)||void 0===t?void 0:t.url,{size:k.h2.Small}),T=w.j.createUrl(null===(n=C.content.cover)||void 0===n?void 0:n.url,{size:k.h2.Small}),A=C.content.status===E.W.ComingSoon,I=(r=a.useState(e.hasInitialized?O.appear:""),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(r,o)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}(r,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.")}()),M=I[0],F=I[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){F(O.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(C)}),[e.isHovering,C]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===C.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,C]);var P=function(){var t={date:i.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return s?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=C.specialEventId,t.topicId=C.content.id,t.eventStatus=C.content.status),t}(),V={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function Y(e){return i.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{onClick:function(){A&&d.k.logUserAction(P,V)}},a.createElement(f.F,{appLink:function(){var t,n;return s?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):A?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,C.content.id,C.name)}(),className:"d-flex justify-content-end",analyticsOptions:V,analyticsData:P},a.createElement("div",{className:"".concat(O.tagWrap," p-1")},A&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(O.tag," ").concat(M),onlyIcon:!0})),!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(O.date," ").concat(M),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(O.wrapper)},a.createElement("div",{style:{backgroundColor:S},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(O.eventCard," ").concat(M," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?O.multiEventFilter:""," ").concat(e.className)},a.createElement("div",{style:{backgroundImage:"url('".concat(D||T,"')")},className:"".concat(j?"".concat(O.hardcodedCover," position-absolute"):O.backgroundImage," ").concat(D?"":O.cover," ").concat(A?O.comingSoon:""," ").concat(M," ").concat(e.hasInitialized?O.noAnimation:""," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?O.multiEventFilter:""," ").concat(e.className)}),N&&a.createElement("div",{className:"".concat(O.displayDate)},v.T.getDisplayDate(C.startDate,C.endDate)),a.createElement("div",{className:"text-center ".concat(O.title," ").concat(s?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(O.titleText," ").concat(e.isHovering?"":"clamp-2"," ").concat(e.isHovering?"mb-0":""," h6"),title:C.name},C.name)),s&&0!==l&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e-1})),d.k.logUserAction({date:Y(e.date),action:"previous",eventCount:e.eventsOnDay.length},V)}},a.createElement(y.x,{svgName:L.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),s&&l!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(O.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e+1})),d.k.logUserAction({date:Y(e.date),action:"next",eventCount:e.eventsOnDay.length},V)}},a.createElement(y.x,{svgName:L.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(O.arrow)}))),s&&a.createElement("div",{className:"d-flex ".concat(O.bottomBar," ").concat(s?"":O.bottomPlaceholder)},a.createElement(h.e,{sliderStep:l,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){c(t),d.k.logUserAction({date:Y(e.date),action:"jump",eventCount:e.eventsOnDay.length},V)}}))))))}const N={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function S(e){var t,n,r=a.useMemo((function(){var t,n,a,r;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!i.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&i.O.isBetween(i.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(r=e.hoveredEvent)||void 0===r?void 0:r.endDate)}),[e.hoveredEvent]),o=null===(t=e.hoveredEvent)||void 0===t?void 0:t.content.metadata.backgroundColor;return a.createElement("div",{className:"".concat(N.cell," fw-semibold")},!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),r&&a.createElement("div",{style:{backgroundColor:o},className:N.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(C,Object.assign({},e,{isMultiEventDate:r})))}},84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),i=n(23481),r=n(83914),o=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(o.u,{title:i.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(r.x,{svgName:l.vn.Timer}),!e.onlyIcon&&i.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(36848);const r={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t;return a.createElement(i.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 border-light-blue rounded-3 d-block fw-semibold ".concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(r.dateItem)},a.createElement("div",{className:"bg-light-blue py-1 ".concat(r.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 r.bodyRange;case"day":return r.bodyDay;case"month":return r.bodyMonth}}()," ").concat(r.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(r.month)},e.month)))}},12324:(e,t,n)=>{n.d(t,{T:()=>i});var a=n(110),i={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.localeData().ordinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},98364:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>w});var a=n(32735),i=n(80247),r=n(80130),o=n(92802),l=n(79014),c=n(1048),s=n(36848),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};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-muted fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(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 b=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},E="shared.formField";function k(e){var t,n,r=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),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,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],v=d[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function w(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,w=e.formSize,L=e.showOptionalLabel,O=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,o.u6)(),C=x.errors,N=x.touched,S=function(){};if("checkbox"===O.type){var j=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(j.onChange=S),a.createElement(d,Object.assign({},j))}var D=Object.assign(Object.assign({},O),{className:v.w.getCustomFormControlClassName(C,N,O.name,w,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=S),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:O.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!O.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:O.name,limit:O.maxLength}))),a.createElement(k,Object.assign({},D)),!!y&&a.createElement(r.Z.Text,{className:"text-muted"},y),a.createElement(o.Bc,{name:O.name},(function(e){return a.createElement(r.Z.Control.Feedback,{type:"invalid"},e)})))}k.defaultProps={autoComplete:"off"},w.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(79014),o=n(1048);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}var c=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};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||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}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},17808:(e,t,n)=>{n.d(t,{Q:()=>c});var a=n(32735),i=n(20455),r=n(95339),o=n(67445);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){var t,n,c=(t=a.useState(null),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,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||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}}(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.")}()),s=c[0],u=c[1],d=(0,i.Dy)((0,i.VT)(i.we,{activationConstraint:{distance:10}}),(0,i.VT)(i.Lg,{coordinateGetter:o.is}));return e.disabled?a.createElement(a.Fragment,null,e.children):a.createElement(i.LB,{sensors:d,collisionDetection:i.pE,onDragStart:function(t){var n;u(t.active.id),null===(n=e.onSortStart)||void 0===n||n.call(e,t)},onDragEnd:function(t){u(null),e.onSortEnd(t)},modifiers:e.vertical?[r.DL]:[]},a.createElement(o.Fo,{items:e.ids,strategy:e.vertical?o.qw:o.U2},e.children),a.createElement(i.y9,{dropAnimation:e.dropAnimation},s?e.getDragOverlay(s):null))}c.defaultProps={dropAnimation:{duration:250,easing:"ease"},vertical:!0}},1287:(e,t,n)=>{n.d(t,{W:()=>o});var a=n(32735),i=n(67445),r=n(17592);function o(e){var t=(0,i.nB)({id:e.id}),n=t.setNodeRef,o=t.transform,l=t.transition,c=t.isSorting,s=t.listeners,u=t.attributes,d=t.activeIndex,m=t.overIndex,p=t.index,v={transform:r.ux.Transform.toString(o),transition:l,touchAction:"none",position:"relative"};c&&p===d&&(v.visibility="hidden");var f=e.childComponent,g=function(e,t,n){return t!==e?null:n>t?"down":n<t?"up":null}(p,d,m);return a.createElement(f,Object.assign({},e.childProps,{ref:n,style:v,dragListeners:s,dragAttributes:u,dragDirection:g}))}},85784:(e,t,n)=>{n.d(t,{Q:()=>l});var a=n(32735),i=n(79014),r=n(83657),o=n(51365);function l(e){var t=a.useContext(o.M);if(!i.q.isFunction(t))return a.createElement(a.Fragment,null);var n=t(e.video,{analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions});return a.createElement(r.e,{actions:n,className:"float-end mt-n1",actionsDropdownClassName:"btn btn-link ms-1"})}},70872:(e,t,n)=>{n.d(t,{u:()=>c});var a=n(32735),i=n(65858),r=n(36848),o=n(38647),l=n(31908);function c(e){var t,n,c,s=l.M.getCanBeConsumed(e.video).canNavigate,u=l.M.getTitle(e.video),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.video)||void 0===t?void 0:t.id,name:null===(n=e.video)||void 0===n?void 0:n.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:i.Vw.Click,descriptor:i._S.Title}),p=e.textClassName||"m-0 text-truncate mb-n1 pb-1 align-middle ".concat("md"===e.size?"h4":"h6");return a.createElement(r.F,{className:e.linkClassName,appLink:s?e.appLink:null,analyticsOptions:m,analyticsData:d},a.createElement("h5",{className:p,title:null!==(c=e.video.name)&&void 0!==c?c:""},u,a.createElement(o.m,{size:e.size,video:e.video,yearGroups:e.yearGroups})))}},84619:(e,t,n)=>{n.d(t,{L:()=>Ln});var a=n(32735),i=n(79014),r=n(20354),o=n(5281),l=n(65858),c=n(36848),s=n(7733),u=n(54610),d=n(9085),m=n(67453);var p=function(e){var t,n,i,r=m.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,d.x)(e.data.name,s.o),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),v=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.CircleLogoSlidingListWidget,actionType:l.Vw.Click,entity:l.py.Company});return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:p,analyticsOptions:v},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))},v=n(58704),f=n(98758);function g(e){var t;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Companies,collection:e.content,childComponent:p,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var h=n(55827),y=n(79967);var b=n(47770),E=n(68050),k=n(69111),w=n(9513),L=n(92802),O=n(23481),x=n(98364),C=n(23201),N=n(38365),S=n(82644),j=n(10874),D=n(83345),T=n(69883),A=n(35223),I=n(5173),M=I.Ry().shape({feedbackInput:I.Z_().max(5e3,(function(){return O.T.getPhrase("shared.feedbackForm","tooLong")}))});const F={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function P(e){return P="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},P(e)}function V(){V=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(T([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=h.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function C(t,n,a){var i=m;return function(r,o){if(i===v)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(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 D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(P(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=T,D.prototype={constructor:D,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 n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:T(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Y(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 R=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},z="shared.feedbackForm";function B(e){var t,n,r=(t=a.useState("prompt"),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,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Y(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)?Y(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.")}()),o=r[0],l=r[1],c=(0,T.Z)();function s(t,n){return R(this,void 0,void 0,V().mark((function a(){return V().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(O.T.getPhrase(z,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:F.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(F.text)},a.createElement(x.V,{emoji:"🔎"},a.createElement(D.x,{namespace:z,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(j.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:A.vn.ThumbsUp},a.createElement(D.x,{namespace:z,phrase:"yes"})),a.createElement(j.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:A.vn.ThumbsDown},a.createElement(D.x,{namespace:z,phrase:"no"})))):"yes"===o?a.createElement(S.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(L.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(x.V,{emoji:"👏"},a.createElement(D.x,{namespace:z,phrase:"happyFeedback"}))),a.createElement(N.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:O.T.getPhrase(z,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:z,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:O.T.getPhrase(z,"sendFeedback")})))):"no"===o?a.createElement(S.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(L.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(x.V,{emoji:"😢"},a.createElement(D.x,{namespace:z,phrase:"unhappyFeedback"}))),a.createElement(N.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:O.T.getPhrase(z,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:z,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:O.T.getPhrase(z,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(x.V,{emoji:"🙌"},a.createElement(D.x,{namespace:z,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const H="MtcB3",Z="Geg0V";function W(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(H," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(E.Z,{className:"mb-2 ".concat(Z)},e.content.map((function(t){var n,i,r,o=m.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(k.Z,{key:t.id,xs:12,sm:6,lg:4},a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat("ZMjnx"," me-2")},a.createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(B,{onSubmit:e.onSubmitFeedback}))}var U=n(98981),_=n(94495),G={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function X(e){return a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(U.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),G)}))}))))}var q=n(16450),$=n(43741);function K(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 Q(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function J(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ee(e){var t,n,i=function(e,t){var n;if((null===(n=e.metadata)||void 0===n?void 0:n.appLink)===f.OL.ClassificationLatestReleases)return{id:"classification-latest-releases",name:"All new releases",cover:{url:m.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:Q(t)}}(e,e.content),r=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===f.OL.ClassificationLatestReleases;return a.createElement(q.e,{collection:i?[i].concat((n=e.content,function(e){if(Array.isArray(e))return K(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return K(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)?K(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:r?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}: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)},childComponent:w.Vz,partialLoadingComponent:$.Q,heading:e.name,getSubtitle:r?J:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var te=n(65163),ne=n(98269),ae=n(1048),ie=n(49985),re=n(11607),oe=n(17808),le=n(1287),ce=n(2102),se=n(83914),ue=n(83523),de=n(92038),me="shared.subjectWidgetItem",pe=a.forwardRef((function(e,t){var n;return"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(de.Z.widgetItem," ").concat(de.Z.draggingItem),style:ae.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(de.Z.widgetItem),style:ae.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(de.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-muted","\n ")},e.dragAttributes,e.dragListeners),a.createElement(se.x,{svgName:A.vn.Hamburger})),a.createElement("div",{className:"px-3 text-center d-flex flex-column justify-content-center text-nowrap text-truncate"},a.createElement("h3",{className:"".concat(de.Z.name," h6 text-truncate mb-0 mt-1 pb-1 ").concat(e.isVisible?"":"text-muted")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(ue.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?O.T.getPhrase(me,e.isVisible?"hideFromDashboard":"showOnDashboard"):O.T.getPhrase(me,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ve=n(91028),fe=n(16714),ge=n(54569),he=n(49542);function ye(e){return ye="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},ye(e)}function be(){be=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(T([])));w&&w!==n&&a.call(w,o)&&(E=w);var L=b.prototype=h.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ye(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function C(t,n,a){var i=m;return function(r,o){if(i===v)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(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 D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(ye(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},O(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},O(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=T,D.prototype={constructor:D,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 n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:T(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(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)?ke(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 ke(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 we="shared.editableCoverFixedPillListSmall";function Le(e){var t,n,i=Ee(a.useState(!1),2),r=i[0],o=i[1],c=Ee(a.useState(!1),2),s=c[0],u=c[1],d=a.useMemo((function(){var t,n;return null!==(n=null===(t=e.preferences)||void 0===t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{}}),[e.preferences]),m=Ee(a.useState(d),2),p=m[0],v=m[1],f=Ee(a.useState(d),2),g=f[0],h=f[1],y=he.d.useGetContent(e.unfilteredContent,Object.values(g)),b=y.content,w=y.unfilteredContent,L=r?w:b,x=(0,T.Z)();a.useEffect((function(){o(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=a.useMemo((function(){return!(r||!L.length)&&Object.values(g).some((function(e){return e.hidden}))}),[r,g]);function N(e){return g[e.id]?g[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function S(e){var t;return!(null===(t=g[e.id])||void 0===t?void 0:t.hidden)}function j(e){var t=Object.assign({},g),n=S(e);t[e.id]={id:e.id,hidden:n,index:N(e)},ie.k.logUserAction({id:e.id,name:e.name},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Hide,descriptor:n?l.DL.On:l.DL.Off}),h(t)}var I=a.useMemo((function(){return!ae.t.isEqual(d,g)}),[d,g]),M={id:e.presentation.id,name:O.T.getPhrase(we,"exploreAll"),cover:e.presentation.cover},F=e.hasLocalPermissions(fe.E.ManageDiscoverPreferences);return L.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between ".concat(e.description||r?"":"mb-1")},a.createElement("div",null,a.createElement("div",{className:"d-flex no-wrap flex-row"},a.createElement("h2",{className:"h4 mb-2 align-self-end flex-shrink-0"},r?O.T.getPhrase(we,"updating"):e.name),!r&&F&&a.createElement(re.L,{className:"ms-1 align-self-end mb-2",onClick:function(){return o(!0)}},a.createElement(se.x,{svgName:A.vn.Edit}))),!!e.description&&!r&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),r&&a.createElement("p",{className:"description mb-2"},a.createElement(D.x,{namespace:we,phrase:"editingDescription"}))),r&&F&&a.createElement("div",{className:"mb-2 d-flex align-items-start"},a.createElement(ne.Z,{variant:"link",className:"me-2",onClick:function(){h(p),o(!1)}},a.createElement(D.x,{namespace:we,phrase:"cancel"})),a.createElement(ce.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=be().mark((function t(){return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u(!0),e.updatePreferences(e.id,Object.values(g)).then((function(){v(g),u(!1),o(!1)})).catch((function(){u(!1),x.error(O.T.getPhrase(we,"error"))}));case 2:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:s,disabled:!I},a.createElement(D.x,{namespace:we,phrase:"update"})))),a.createElement(E.Z,{className:"mx-n1 mb-n2"},C&&a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(ve.V,{data:M,getChildAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.allTopics,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),a.createElement(oe.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(pe,{data:t,onToggleVisibility:j,isVisible:S(t),isDragging:!0,canToggle:!0}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));ie.k.logUserAction({id:t.id,name:t.name,index:n},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=N({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},g);ge.l.reorder(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!S(e)}})),h(o),ie.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Complete})}}},vertical:!1},L.map((function(t){return a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,r?a.createElement(le.W,{id:t.id,childComponent:pe,childProps:{data:t,onToggleVisibility:j,isVisible:S(t),isDragging:!1,canToggle:!S(t)||e.content.length>1}}):a.createElement(ve.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,multiline:!0})))}))))):a.createElement(a.Fragment,null)}var Oe=n(110),xe=n(11518),Ce=n(29711),Ne=n(73679);const Se={dateItemContainer:"Hrx2m",container:"k2Xse"};var je=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};function De(e){return a.createElement("div",{className:"".concat(Se.container," position-relative flex-shrink-0 bg-light-yellow")},a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none m-2 rounded-3 d-block position-relative",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:e.data.specialEventId,name:e.data.name,startDate:e.data.startDate,endDate:e.data.endDate,classificationId:e.data.content.id,classificationName:e.data.content.name}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})},a.createElement(Ce.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",hasInitialized:!0,hideDay:!0})))}function Te(e){var t=e.data,n=je(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Se.container," ").concat(Se.dateItemContainer," flex-shrink-0 bg-light-yellow position-relative")},a.createElement(Ne.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Url,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget}),className:"m-2"})):a.createElement(De,Object.assign({},n,{data:t}))}function Ae(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ie(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 Ie(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}}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}var Fe=O.T.encloseNamespace("widgets.eventIconSlidingList");function Pe(e){var t,n,i=a.useMemo((function(){return function(e){var t=Ae(e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),n=new Date,a=Oe.O.format(n,"YYYY-MM-DD"),i=Oe.O.format(Oe.O.add(a,1,"day"),"YYYY-MM-DD"),r=Oe.O.format(Oe.O.add(Oe.O.startOf(n,"week"),8,"days"),"YYYY-MM-DD"),o=Oe.O.format(Oe.O.add(r,6,"days"),"YYYY-MM-DD"),l=Oe.O.format(Oe.O.startOf(n,"month"),"YYYY-MM-DD"),c=Oe.O.format(Oe.O.endOf(n,"month"),"YYYY-MM-DD"),s=Oe.O.format(Oe.O.startOf(Oe.O.add(n,1,"month"),"month"),"YYYY-MM-DD"),u=Oe.O.format(Oe.O.endOf(Oe.O.add(n,1,"month"),"month"),"YYYY-MM-DD"),d=Oe.O.format(Oe.O.startOf(Oe.O.add(n,2,"month"),"month"),"YYYY-MM-DD"),m=Oe.O.format(Oe.O.endOf(Oe.O.add(n,2,"month"),"month"),"YYYY-MM-DD"),p=new Map;function v(e){if(p.has(e.group)){var t=p.get(e.group);p.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ae(t.events),[e.event])}))}else p.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}t.forEach((function(e){if(e.startDate<=a)v({group:"today",startDate:a,endDate:null,event:e,body:{text:Oe.O.format(a,"DD"),type:"day"},monthLabel:Oe.O.format(e.startDate,"MMMM"),label:Fe("today")});else if(e.startDate!==i)if(e.startDate>i&&e.startDate<r){var t=Oe.O.format(e.startDate,"dddd");v({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:Oe.O.format(e.startDate,"MMMM"),body:{text:Oe.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=r&&e.startDate<=o?v({group:"nextWeek",startDate:r,endDate:o,event:e,monthLabel:Oe.O.isSame(r,o,"month")?Oe.O.format(r,"MMMM"):"".concat(Oe.O.format(r,"MMM")," - ").concat(Oe.O.format(o,"MMM")),body:{text:"".concat(Oe.O.format(r,"DD"),"-").concat(Oe.O.format(o,"DD")),type:"range"},label:Fe("nextWeek")}):e.startDate>=l&&e.startDate<=c?v({group:"thisMonth",startDate:l,endDate:c,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("thisMonth")}):e.startDate>=s&&e.startDate<=u?v({group:"nextMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("nextMonth")}):e.startDate>=d&&e.startDate<=m&&v({group:"later",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:Oe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("later")});else v({group:"tomorrow",startDate:i,endDate:null,event:e,body:{text:Oe.O.format(i,"DD"),type:"day"},monthLabel:Oe.O.format(e.startDate,"MMMM"),label:Fe("tomorrow")})}));var f,g=[],h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ie(e))){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}(p.values());try{for(h.s();!(f=h.n()).done;){var y=f.value,b={label:y.label,body:y.body,month:y.monthLabel,appLinkMonth:Oe.O.format(y.startDate,"MMMM"),appLinkYear:Oe.O.format(y.startDate,"YYYY"),type:"date-widget-item"};g.push(b),y.events.forEach((function(e){g.push(e)}))}}catch(e){h.e(e)}finally{h.f()}return g}(e.content)}),[e.content]);return a.createElement(xe.kM,{name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:f.l9.Row,contents:v.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t.content)},collection:i,childComponent:Te,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var Ve=n(39202),Ye=n(58564),Re=n(49439);function ze(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 Be=a.memo((function(e){var t,n,i=e.data,r=e.seriesAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Re.L)({className:"lZsTl",style:{transform:"scale(".concat((null==o?void 0:o.type)===f.l9.LargeRow?1.1:1.15,")")}}),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,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ze(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)?ze(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.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="lcmBu";return o.type===f.l9.LargeRow&&(m="iVL1A"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("CmXOx")},a.createElement(Ye.u,{video:i,type:"expandable",appLink:e.getAppLink(i),seriesAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d}))}));const He="eSMIx",Ze="layDP";function We(e){var t,n,i=he.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(c.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(He," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":Ze),analyticsData:{url:Ve.C$.getHref(i)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(o.k,{type:f.l9.Row,contents:v.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t)},collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var Ue=n(81993);const _e={rowWidth:"TzZuL"};function Ge(e){return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"".concat(_e.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Rating,actionType:l.Vw.Click,location:l.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(Ue.u.mapRatingToClass(e.data.value)," py-3 rounded-3 ")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},a.createElement(se.x,{svgName:A.vn.Search,size:se.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}function Xe(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return a.createElement(a.Fragment,null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Ratings,getChildAppLink:function(n){var a,i;return null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===i?void 0:i.call(a,n,t)},collection:t,childComponent:Ge,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:t.length},prefetched:!0}))}function qe(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 $e(e){return a.createElement("div",null,a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}var Ke=n(75896);const Qe={banner:"iCyo4",bannerContent:"cgv_6",cta:"BXwH2"};function Je(e){var t,n,i,r,o,s,d=(0,y.k)(),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:function(){var t,n,a=Ke.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Qe.banner),style:{backgroundImage:"url('".concat((s=Ke.m.first(e.content),m.j.createBannerUrl(s.banner,{fallbackBaseUrl:"",fallbackCategoryName:s.name,type:u.__.Banners},{size:u.h2.Large})),"')")}},e.name&&a.createElement("div",{className:Qe.bannerContent},a.createElement("h2",{className:(o="text-white clamp-2",d.xs||d.sm?o+=" h4":d.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:Qe.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function et(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Qe.banner)},a.createElement("div",{className:"".concat(Qe.bannerContent)}))}var tt=n(42308);const nt={bannerContent:"lkPfM",cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR"};function at(e){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(nt.banner)},a.createElement("div",{className:"".concat(nt.bannerImage," ").concat(nt.blurb),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(nt.bannerContent," ").concat(e.widgetTypeId===tt.z.Blurb?nt.blurb:"")},a.createElement("h2",{className:"h6 mb-0"},e.name))))}function it(e){var t,n,i,r,o,s,d=Ke.m.first(e.content),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,d),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(nt.banner)},a.createElement("div",{className:nt.bannerImage,style:{backgroundImage:"url('".concat(m.j.createBannerUrl(d.banner,{fallbackBaseUrl:"",fallbackCategoryName:d.name,type:u.__.Banners},{size:u.h2.Large}),"')")}},e.name&&a.createElement("div",{className:nt.bannerContent},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text)&&a.createElement("div",{className:nt.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)))))}function rt(e){var t=e.hasPermissions(fe.C.ManageSubjectPreferences)||e.hasLocalPermissions(fe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Presentation,actionType:l.Vw.Click,location:l.LZ.HeroBannerSmallWidget});return a.createElement(c.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:s},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(nt.banner)},a.createElement("div",{className:"".concat(nt.bannerImage," ").concat(nt.presentations),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(nt.bannerContent," ").concat(nt.presentations)},a.createElement("h2",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Ke.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function ot(e){switch(e.widgetTypeId){case tt.z.Blurb:return a.createElement(at,Object.assign({},e));case tt.z.Presentations:return a.createElement(rt,Object.assign({},e));default:return a.createElement(it,Object.assign({},e))}}function lt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(nt.banner)},a.createElement("div",{className:"".concat(nt.bannerContent)}))}function ct(e){var t,n,i,r,o,s,d=Ke.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("LPw_x")},a.createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:f},e.name&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),a.createElement("div",{className:"btn btn-outline-dark me-3"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||O.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):a.createElement(ot,Object.assign({},e))}function st(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var ut=n(68626),dt=n(80143),mt=n(31908);var pt=a.memo((function(e){var t,n=e.data,i=e.getSeriesAppLink,r=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,dt.n)(s,c),d=(0,y.k)(),m="JSM4l";return r.type===f.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Ye.u,{type:d.xs?"static":"popout",textPosition:ut.z.Below,video:n,appLink:e.getAppLink(n),seriesAppLink:mt.M.isVideo(n)&&mt.M.hasSeries(n)?null==i?void 0:i(n.series):void 0,imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:u,hideRating:!!u,hideDuration:!1,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,hideTitle:e.hideTitle,hideSeries:e.hideSeries,showVideoGuidance:e.showVideoGuidance}))}));function vt(e){var t,n,i,r,l,c,s,u;return a.createElement(o.k,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:pt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.series,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(l=e.metadata)||void 0===l?void 0:l.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest},getChildAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function ft(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function gt(e){var t,n,i,r,l,c,s,u,d,m,p,g=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name);return e.widgetTypeId===tt.z.ContinueWatching&&(null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)&&(g=null===(l=null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)||void 0===l?void 0:l.call(r)),a.createElement(o.k,{name:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:pt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSeriesAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.series,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(d=e.metadata)||void 0===d?void 0:d.hideObjectTitle,hideSeries:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,yearGroups:e.yearGroups},getChildAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:g})}const ht={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function yt(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 bt=n(34004);function Et(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Series,descriptor:l._S.TallPoster});return a.createElement(c.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?ht.smallSeriesItem:ht.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(bt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}function kt(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Series,collection:e.content,childComponent:Et,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const wt={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var Lt=function(e){return a.createElement("div",{className:"".concat(e.type===f.l9.Row?wt.slidingSubjectSmall:wt.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(wt.partialLoading," partial-loading-background rounded-3")}))};function Ot(e){for(var t,n,i=(t=e.type,(n=(0,y.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===f.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Lt,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(h.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var xt=n(78276),Ct=n(5465);function Nt(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Classification,actionType:l.Vw.Click,descriptor:l._S.TallPoster});return a.createElement("div",{className:(t=wt.posterContainer,e.context.type===f.l9.Row?t+=" ".concat(wt.slidingSubjectSmall):t+=" ".concat(wt.slidingSubjectLarge),t)},a.createElement(xt.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:i,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(Ct.oy,{type:Ct.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(wt.heading)},n.name)))}function St(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Subjects,collection:e.content,childComponent:Nt,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)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function jt(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 Dt="explore-all-topics";function Tt(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===f.OL.ExploreAllTopics?Dt:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),i=he.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(o.k,{name:e.name,appLink:i,description:e.description,type:f.l9.Row,contents:v.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return jt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return jt(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)?jt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:Nt,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===Dt?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function At(e){var t;return a.createElement("div",null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.SmallSeries,collection:e.content,childComponent:Et,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function It(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Mt(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(It,null),a.createElement(It,null))}var Ft=n(3626);function Pt(e){var t,n,i,r,o=e.content[0];return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(Ft.J,{video:o,presentationAudiences:e.audiences,videoAppLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,o),seriesAppLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.series)||void 0===r?void 0:r.call(i,o.series),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:e.showVideoGuidance,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}))}function Vt(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 Yt=n(2284);const Rt="OZATG",zt="hcAU2",Bt="Tbieu",Ht="mGGrd",Zt="VtzxT",Wt="jrY7R",Ut="yAgR6",_t="RjJ7O",Gt="TJ7Sl",Xt="yzmvY",qt="hGi43";function $t(e){var t,n,i,r=m.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=m.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(i=e.data.metadata)||void 0===i?void 0:i.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(zt," ").concat(e.isLarge?Bt:Ht),style:l},a.createElement("div",{className:"".concat(Zt)},a.createElement("div",{className:"".concat(Wt)},a.createElement("h3",{className:"".concat(Ut," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start ".concat(_t)},a.createElement("p",{className:Xt},e.data.description))),e.isLarge&&a.createElement("div",{className:qt},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},O.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&a.createElement("div",{className:"".concat(Gt),style:{backgroundImage:"url('".concat(r,"')")}}))}var Kt=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===Yt.W.ComingSoon,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name,presentationId:null===(r=e.data)||void 0===r?void 0:r.presentationId,comingSoon:!!o}),u=Object.assign(Object.assign({location:l.LZ.ClassificationListItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return e.appLink?a.createElement(c.F,{className:Rt,appLink:e.appLink,analyticsData:s,analyticsOptions:u},a.createElement($t,Object.assign({},e))):a.createElement($t,Object.assign({},e))}));function Qt(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},a.createElement(Kt,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const Jt="HwejH";var en=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},tn=n(22843),nn=n(47325),an=n(90927),rn=n(78479);const on={guidance:"uCRU1"};function ln(e){var t,n,i,r,o,c=mt.M.isVideo(e.video)&&mt.M.hasSeries(e.video),s=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),d=c?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.series)||void 0===r?void 0:r.call(i,e.video.series):null,m=a.useRef(null),p={actionType:l.Vw.Click,entity:mt.M.getAnalyticsEntity(e.video),location:l.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:l._S.Thumbnail},v=(0,dt.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:m},a.createElement(Ye.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),p),video:e.video,appLink:s,seriesAppLink:d,imageOptions:{size:u.h2.Medium},textPosition:ut.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:v,hideRating:!!v})),a.createElement(tn.h,{video:e.video,appLink:s,seriesAppLink:d,yearGroups:e.yearGroups}),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex justify-content-start align-items-center pt-1 ".concat(on.guidance)},a.createElement(an.N,{video:e.video,containerRef:m,widgetTemplate:rn.f.ThumbnailFixedListMediaLarge,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(nn.I,{video:e.video,containerRef:m,widgetTemplate:rn.f.ThumbnailFixedListMediaLarge,imageCdnUrl:e.imageCdnUrl})))}function cn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(ln,Object.assign({key:t.id,video:t},e))}))))}function sn(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 un(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},a.createElement(Kt,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function dn(e){var t,n,i,r,o,s,d=Ke.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(a.Fragment,null,a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:f},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},d.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||O.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(Je,Object.assign({},e))}var mn=n(96022),pn=n(38647);function vn(e){var t,n,i,r,o,s,d,m,p,v=e.content[0],f=a.useRef(),g=(0,dt.n)(null===(t=v.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),h=mt.M.hasSeries(v),y=ie.k.mergeOptions(e.analyticsOptions,{actionType:l.Vw.Click,entity:mt.M.getAnalyticsEntity(v),location:l.LZ.ThumbnailHeroMediaWidget}),b=mt.M.getCanBeConsumed(v).canNavigate;return v?a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{ref:f},a.createElement(Ye.u,{video:v,imageOptions:{size:u.h2.Large},type:"static",textPosition:ut.z.Independent,analyticsOptions:y,audience:g,hideRating:!!g,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===i?void 0:i.call(n,v),seriesAppLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.series)||void 0===o?void 0:o.call(r,function(e){if(mt.M.isVideo(e))return e.series}(v)),setFavourite:e.setFavourite,canFavourite:e.canFavourite})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,mt.M.isVideo(v)&&h&&a.createElement(mn.M,{video:v,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.series)||void 0===d?void 0:d.call(s,v.series),analyticsOptions:y,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:h?"":"mt-2"},a.createElement(c.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,v),analyticsData:{id:v.id,name:v.name},analyticsOptions:Object.assign(Object.assign({},y),{descriptor:l._S.Title}),className:"d-inline-block ".concat(b?"":"cursor-default text-decoration-none disabled"),disabled:!b},a.createElement("h3",{className:"h4 mb-0"},v.name,a.createElement(pn.m,{video:v,yearGroups:e.yearGroups}))))),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},a.createElement(an.N,{containerRef:f,widgetTemplate:rn.f.ThumbnailHeroMedia,video:v,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(nn.I,{containerRef:f,widgetTemplate:rn.f.ThumbnailHeroMedia,video:v,imageCdnUrl:e.imageCdnUrl})))):a.createElement(a.Fragment,null)}function fn(e){var t,n,i;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}function gn(e){var t,n,i;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var hn;function yn(e){return yn="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},yn(e)}function bn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==yn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==yn(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En=(bn(hn={},rn.f.ThumbnailHeroMedia,{getComponent:function(){return vn},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Mt,null))))},icon:A.vn.WidgetTemplateThumbnailHeroMedia,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),bn(hn,rn.f.PosterSlidingListLarge,{getComponent:function(){return kt},partialLoading:function(){var e,t,n=(e=(0,y.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return yt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return yt(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)?yt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(ht.partialLoading," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplatePosterSlidingListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.PosterSlidingListMedium,{getComponent:function(){return St},partialLoading:function(){return a.createElement(Ot,{type:f.l9.LargeRow})},icon:A.vn.WidgetTemplatePosterSlidingListMedium,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case tt.z.CuratedClassifications:return Tt;case tt.z.CuratedSeries:return At;default:return Tt}},partialLoading:function(){return a.createElement(Ot,{type:f.l9.Row})},icon:A.vn.WidgetTemplatePosterSlidingListSmall,getTargets:function(e){switch(e){case tt.z.CuratedClassifications:return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv];case tt.z.CuratedSeries:return[f.ku.MoviesAndTv,f.ku.Company];default:return[]}},className:""}),bn(hn,rn.f.ThumbnailFeaturedMedia,{getComponent:function(){return Pt},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(E.Z,null,a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Mt,null))))))},icon:A.vn.WidgetTemplateThumbnailFeaturedMedia,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),bn(hn,rn.f.CoverFixedPillListLarge,{getComponent:function(){return b.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(E.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(w.Ml,null)))}))))},icon:A.vn.WidgetTemplateCoverFixedPillListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),bn(hn,rn.f.CoverFixedPillListXSmall,{getComponent:function(){return W},partialLoading:function(){return a.createElement("div",{className:"".concat(H," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(E.Z,{className:"mb-2 ".concat(Z)},Array(8).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:A.vn.WidgetTemplateCoverFixedPillListXSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),bn(hn,rn.f.CoverSlidingPillListSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(te.QL,{partialLoadingComponent:w.Qh}))},icon:A.vn.WidgetTemplateCoverSlidingPillListSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.CoverFixedTileList,{getComponent:function(){return X},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(U.YA,{itemClassName:"columns-of-five"}))},icon:A.vn.WidgetTemplateCoverFixedTileList,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),bn(hn,rn.f.FeaturedThumbnailSlidingList,{getComponent:function(){return We},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(He," ").concat(Ze," mb-1 ")}),a.createElement(xe.j7,{hideDescription:!0,hideHeading:!0}))},icon:A.vn.WidgetTemplateFeaturedThumbnailSlidingList,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),bn(hn,rn.f.HeroBanner,{getComponent:function(){return Je},partialLoading:et,icon:A.vn.WidgetTemplateHeroBanner,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),bn(hn,rn.f.HeroBannerSmall,{getComponent:function(){return ot},partialLoading:lt,icon:A.vn.WidgetTemplateHeroBannerSmall,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:""}),bn(hn,rn.f.HeroThumbnailSmall,{getComponent:function(){return ct},partialLoading:function(){return a.createElement(lt,null)},icon:A.vn.WidgetTemplateHeroThumbnailSmall,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.ThumbnailFixedListXLarge,{getComponent:function(){return dn},partialLoading:function(){return a.createElement(et,null)},icon:A.vn.WidgetTemplateThumbnailFixedListXLarge,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.ThumbnailFixedListLarge,{getComponent:function(){return Qt},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Vt(e)}(e=Array(2))||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 Vt(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)?Vt(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.")}();return a.createElement("div",null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(k.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplateThumbnailFixedListLarge,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.ThumbnailFixedListSmall,{getComponent:function(){return un},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return sn(e)}(e=Array(3))||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 sn(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)?sn(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.")}();return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(k.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplateThumbnailFixedListSmall,getTargets:function(){return[f.ku.Discover,f.ku.Classification,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Le},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(E.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(w.Qh,null)))}))))},icon:A.vn.WidgetTemplateEditableCoverFixedPillListSmall,getTargets:function(){return[f.ku.Discover]},className:""}),bn(hn,rn.f.Heading,{getComponent:function(){return $e},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:A.vn.WidgetTemplateHeading,getTargets:function(){return[f.ku.Classification,f.ku.Discover]},className:"heading-widget-template"}),bn(hn,rn.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return cn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Jt," partial-loading-background rounded-3")}),a.createElement(en,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Mt,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Jt," partial-loading-background rounded-3")}),a.createElement(en,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Mt,null)))))},icon:A.vn.WidgetTemplateThumbnailFixedListMediaLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.Company]},className:""}),bn(hn,rn.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return vt},partialLoading:function(){return a.createElement(xe.j7,{size:"lg",childComponent:st})},icon:A.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,getTargets:function(){return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return gt},partialLoading:function(){return a.createElement(xe.j7,{size:"sm",childComponent:ft})},icon:A.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,getTargets:function(){return[f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company]},className:""}),bn(hn,rn.f.FilterSlidingPillListSmall,{getComponent:function(){return Xe},partialLoading:function(){var e,t=(0,y.k)();return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(e=Array(t.xs||t.sm?3:t.md||t.lg?4:5),function(e){if(Array.isArray(e))return qe(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 qe(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)?qe(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 a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:A.vn.WidgetTemplateFilterSlidingPillListSmall,getTargets:function(){return[f.ku.MoviesAndTv]},className:""}),bn(hn,rn.f.CircleLogoSlidingList,{getComponent:function(){return g},partialLoading:function(){var e=8,t=(0,y.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:A.vn.WidgetTemplateCircleLogoSlidingList,getTargets:function(){return[f.ku.MoviesAndTv]},className:""}),bn(hn,rn.f.EventIconSlidingList,{getComponent:function(){return Pe},partialLoading:function(){var e,t=(e=(0,y.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:e.xl||e.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:A.vn.WidgetTemplateEventIconSlidingList,getTargets:function(){return[f.ku.Discover]},className:""}),bn(hn,rn.f.ThumbnailSlidingListSmall,{getComponent:function(){return gn},partialLoading:xe.j7,icon:A.vn.WidgetTemplateThumbnailSlidingListSmall,getTargets:function(){return[]},className:""}),bn(hn,rn.f.ThumbnailSlidingListLarge,{getComponent:function(){return fn},partialLoading:function(){return a.createElement(xe.j7,{size:"lg"})},icon:A.vn.WidgetTemplateThumbnailSlidingListLarge,getTargets:function(){return[]},className:""}),hn),kn=n(65294);const wn={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ln(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,u=(0,kn.Y)({prevent:!s}),d=u.ref,m=u.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=he.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),g=f.content,h=f.unfilteredContent,b=(0,y.k)(),E=function(e,t){return!(he.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,g),k=!he.d.canDisplayOnScreenSize(b,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E||k)}),[v.hasCompleted,E,k,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var w=e.appLinks?Object.assign({},e.appLinks):null;(null==w?void 0:w.videoType)&&(w.videoType=function(t){var n;return null===(n=e.appLinks)||void 0===n?void 0:n.videoType(t,e.id)});var L=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),O=p&&!v.hasCompleted||e.isEditing&&E,x=En[e.templateId].partialLoading,C=En[e.templateId].getComponent(e.widgetTypeId),N=En[e.templateId].className;return O||!E&&!k?a.createElement("div",{id:e.widgetTypeId===tt.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(N," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(wn.widgetHighlight," py-2 px-3 rounded-3"):""},he.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(wn.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),O?a.createElement("div",{ref:d},a.createElement(x,null)):a.createElement(C,Object.assign({},e,{appLinks:w,content:g,unfilteredContent:h,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:L,showHighlight:e.isScrollToTargetWidget})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(94495),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(r.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(16450);n(14244)},51365:(e,t,n)=>{n.d(t,{M:()=>a});var a=n(32735).createContext(null)},81514:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(86764),i=n(3747);function r(){var e=(0,i.a)(a.r.XS),t=(0,i.a)(a.r.SM),n=(0,i.a)(a.r.MD),r=(0,i.a)(a.r.LG),o=(0,i.a)(a.r.XL),l=(0,i.a)(a.r.XXL),c=a.r.LG;return e&&(c=a.r.XS),t&&(c=a.r.SM),n&&(c=a.r.MD),r&&(c=a.r.LG),o&&(c=a.r.XL),l&&(c=a.r.XXL),c}},73814:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,i),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(40841),i=n.n(a),r=n(32735),o=n(46304),l=n(74512);const c=r.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},r)=>{const c=(0,o.vE)(e,"row"),s=(0,o.pi)(),u=(0,o.zG)(),d=`${c}-cols`,m=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const i=e!==u?`-${e}`:"";null!=n&&m.push(`${d}${i}-${n}`)})),(0,l.jsx)(n,{ref:r,...a,className:i()(t,c,...m)})}));c.displayName="Row";const s=c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[5776],{3278:(e,t,n)=>{n.d(t,{z:()=>p});var a=n(32735),r=n(39202),i=n(23481),o=n(65858),c=n(38502),l=n(83345),s=n(98758);const u={pillTab:"bMJM0"};var d="discover.header";function p(e){var t,n,p,m,f,v;if(!e.type)return a.createElement(a.Fragment,null);if(e.type===s.Yv.Learner||e.hasStudentExperience)return a.createElement("div",{className:"py-3"},a.createElement("h1",{className:"h2 mb-0"},a.createElement(l.x,{namespace:d,phrase:"heading"})));var b=[{name:i.T.getPhrase(d,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(d,"forYou"),url:r.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(d,"whatsNew"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(d,"whatsNew"),url:r.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.whatsNew)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return e.showCalendar&&b.push({name:i.T.getPhrase(d,"calendar"),appLink:null===(f=e.appLinks)||void 0===f?void 0:f.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(d,"calendar"),url:r.C$.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}),a.createElement("div",{className:"py-3 text-center"},a.createElement(c.r,{tabs:b,className:u.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>s});var a=n(32735),r=n(49985),i=n(36848),o=n(76246),c=n(11607),l=n(87432);function s(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(l.Z.pillTabSelector)},e.tabs.map((function(e){return a.createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?a.createElement(i.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(l.Z.pillItem)},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))):a.createElement(c.L,{className:"".concat(l.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.count}))))}))))}},74590:(e,t,n)=>{n.d(t,{N:()=>g});var a,r=n(32735),i=n(35242),o=n(20354),c=n(27022),l=n(72639),s=n(31949),u=n(37802),d=n(10144),p=n(86698);function m(e){return m="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},m(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(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 v(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 b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==m(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(b(a={},c.t.AU,[l.p.Level_1]),b(a,c.t.US,[l.p.Level_1]),b(a,c.t.UK,[l.p.Level_1]),b(a,c.t.SCOT,[l.p.Level_1]),b(a,c.t.NZ,[]),b(a,c.t.GLOBAL,[]),a);function g(){var e,t=(0,u.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,c=(0,p.y)({redirectOnError:!0}).activePresentation,l=o.a.useBasicFetch(s.N.currentUser()),m=y[null===(e=l.data)||void 0===e?void 0:e.contentRegion],v=d.i.getMappedPresentationLevel(null==c?void 0:c.learningLevel),b=!(null==m?void 0:m.find((function(e){return e.toString()===v.toString()}))),g=!a&&!n,h=f(r.useState(!g&&!b),2),S=h[0],T=h[1],E=f(r.useState(a||!(null==c?void 0:c.id)),2),C=E[0],A=E[1];return r.useEffect((function(){g||b?T(!1):C||T(!0),A(a||!(null==c?void 0:c.id))}),[n,null==c?void 0:c.id,C]),i.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:S,isLoading:C}}},5776:(e,t,n)=>{n.r(t),n.d(t,{CuratedDiscoverView:()=>ne});var a=n(32735),r=n(23481),i=n(57900),o=n(20354),c=n(2948),l=n(49985),s=n(65858),u=n(75896),d=n(3278),p=n(84619),m=n(16714),f=n(22902),v=n(98758),b=n(21366),y=n(23232),g=n(83345),h=n(76177),S=n(35223),T="subjects.discoverDashboardEmptyState",E=r.T.encloseNamespace(T);function C(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===v.GL.Archived;return a.createElement(y.u,null,a.createElement(y.u.Image,{src:e.imageUrl,altText:E("info")}),a.createElement(y.u.Heading,null,a.createElement(g.x,{namespace:T,phrase:"heading"})),a.createElement(y.u.Info,null,a.createElement(g.x,{namespace:T,phrase:"info"})),a.createElement(h.u,{title:i?r.T.getPhrase(T,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(y.u.Cta,{text:r.T.getPhrase(T,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:S.vn.Plus,disabled:i})))}function A(e){var t,n,r=u.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,(0,f.T)().hasPermissions)(m.C.StudentExperience);function o(t,n,a){var r=b.S.getWidgetParams(n,a,b.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,r,e.presentation)}var c=e.isReadonly&&!(null==r?void 0:r.length);return a.createElement(a.Fragment,null,a.createElement(d.z,{type:null===(n=e.dashboard)||void 0===n?void 0:n.userType,appLinks:e.headerAppLinks,hasStudentExperience:e.hasStudentExperience,showCalendar:e.showCalendar,active:"forYou"}),r.map((function(t,n){return a.createElement(p.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:o,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,onSubmitFeedback:e.onSubmitFeedback,updatePreferences:e.updatePreferences,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,lazyLoad:e.lazyLoad,dashboardTarget:v.ku.Discover,widgetIndex:n,showVideoGuidance:!i})})),c&&a.createElement(C,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var L=n(38143),k=n(72639),O=n(21750),D=n(39151),I=n(1666),N=n(80889),w=n(31949),P=n(97037),U=n(87348),F=n(79612),R=n(69454),x=n(10874),_=n(99742),j=n(14070),H=n(97291);const M={banner:"Vqx6B"};var B="shared.upgradeVideoBanner";function V(){return a.createElement("div",{className:"py-4 px-3 rounded h4 ".concat(M.banner," border"),style:{backgroundImage:'url("'.concat(_.W.Upgrade.VIDEO_BANNER,'")')}},a.createElement(g.x,{namespace:B,phrase:"message"}),a.createElement(x.h,{svgName:S.vn.Play,appLink:{application:H.O.DEFAULT,action:j.e.Default.LITE_UPGRADE_VIDEO},className:"btn btn-outline-dark ms-3 align-middle"},a.createElement(g.x,{namespace:B,phrase:"button"})))}var W=n(52333),Y=n(82817),Z=n(23737),q=n(56017),G=n(33192),z=n(74590),$=n(28400),J=n(17475),K=n(183),Q=n(67753),X="classification-latest-releases";function ee(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 te=r.T.encloseNamespace("dashboard.dashboard");function ne(e){var t,n,r,d,p,b=o.a.useBasicFetch(D.L.config()),y=o.a.useBasicFetch(w.N.currentUser()),g=(0,f.T)(),h=g.hasLocalPermissions,S=g.hasPermissions,T=o.a.useBasicFetch(h(m.E.ManageDiscoverPreferences)&&y.data&&I.h.customer(y.data.customerId)),E=o.a.useBasicFetch((null===(t=y.data)||void 0===t?void 0:t.isAuthenticated)&&I.h.yearGroups(y.data.customerId)),C=(0,Y.M)().activeCurriculum,x=(0,Z.y)({targetType:v.ku.Discover,queryParams:e.queryParams,presentationSlug:e.presentationSlug}),_=x.dashboard,M=x.presentation,B=x.audiences,ne=(0,U.Q)(),ae=o.a.useGetFetchAsync(),re=(0,P.c)(s.LZ.Dashboard),ie=re.setFavourite,oe=re.canFavourite,ce=(d=(0,c.D)(L.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),p=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,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return c}}(d,p)||function(e,t){if(e){if("string"==typeof e)return ee(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)?ee(e,t):void 0}}(d,p)||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],le=(r=R.T.getAudienceParams(ce),{classification:function(e){return{application:H.O.SUBJECT,action:j.e.Subjects.CLASSIFICATION,args:[null==e?void 0:e.id,$.m.slugify(null==e?void 0:e.name)],params:r||{}}},classificationTopics:function(){return{application:H.O.SUBJECT,action:j.e.Subjects.CLASSIFICATION_TOPICS,params:r||{}}},videoType:function(e,t){return Q.W.getAppLink(e,{context:K.Q.Widget,contextId:t})},series:function(e){return{application:H.O.SERIES,action:j.e.Series.SERIES,args:e?[e.id,$.m.slugify(e.name)]:[]}},playlist:function(e){return{application:H.O.PLAYLISTS,action:j.e.Playlists.PLAYLIST,args:[e.id,$.m.slugify(e.name)]}},latestReleases:function(){return{application:H.O.CONTENT_UPDATES,action:j.e.ContentUpdates.CONTENT_UPDATES}},allTopics:function(){return{application:H.O.SUBJECT,action:j.e.Subjects.CLASSIFICATION_ALL}},classificationLatestReleases:function(e){return e.id===X?{application:H.O.CONTENT_UPDATES,action:j.e.ContentUpdates.CONTENT_UPDATES}:{application:H.O.CONTENT_UPDATES,action:j.e.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,$.m.slugify(e.name)]}},widgetVideoList:function(e,t){return{application:H.O.DASHBOARD,action:j.e.Dashboard.DASHBOARD,args:[e,$.m.slugify(t)]}},watchHistory:function(){return{application:H.O.WATCH_HISTORY,action:j.e.WatchHistory.HOME}},rating:function(e,t){return{application:H.O.SEARCH,action:j.e.Search.HOME,params:{moviesAndTv:!0,rating:J.S.getFrontendParamValue([u.m.first(t),e])}}},company:function(e){return{application:H.O.MOVIES_AND_TV,action:j.e.MoviesAndTv.COMPANY_DASHBOARD,args:[e.id,$.m.slugify(e.name)]}},discover:function(){return{application:H.O.DASHBOARD,action:j.e.Dashboard.HOME}},calendar:function(){return{application:H.O.CALENDAR,action:j.e.Calendar.CALENDAR}},calendarMonth:function(e,t){var n={application:H.O.CALENDAR,action:j.e.Calendar.CALENDAR_MONTH,args:[e.toLowerCase()]};return t&&(n.params={year:t}),n}}),se=function(e){return+k.p[null==e?void 0:e.learningLevel]===k.p.Level_1?"VariantOne":"VariantTwo"}(M);(0,F.M)(q.C.getDiscoverMetadata({content:M,phraseContext:{phraseHandler:te,titlePhrase:"pageTitle".concat(se),descriptionPhrase:"pageDescription".concat(se)},canonicalLink:G.f.getCanonicalLink(),allowIndexing:G.f.allowIndexing(),hrefLang:G.f.getStaticRouteHrefLang(null==M?void 0:M.learningLevel,le.discover)}));var ue=(0,z.N)().showCalendar;return a.createElement("div",{className:"bg-white px-4"},ne.isUpgrading&&(null===(n=_.data)||void 0===n?void 0:n.userType)===v.Yv.Staff&&a.createElement(V,null),a.createElement(A,{currentUser:y.data,dashboard:_.data,widgetAppLinks:le,headerAppLinks:{forYou:{application:H.O.DASHBOARD,action:j.e.Dashboard.HOME},whatsNew:{application:H.O.CONTENT_UPDATES,action:j.e.ContentUpdates.CONTENT_UPDATES},calendar:{application:H.O.CALENDAR,action:j.e.Calendar.CALENDAR}},presentation:M,curriculum:C,getCurriculumLinksRequest:function(e){return O.x.curriculumLinks(e,null==C?void 0:C.id)},imageCdnUrl:b.data.imageCdnUrl,getWidgetContentRequest:N._.dashboardWidgetContent,setFavourite:ie,audiences:B.data,canFavourite:oe,updatePreferences:function(e,t){return ae(N._.updateWidgetPreferences(e,t,y.data))},hasPermissions:S,hasLocalPermissions:h,onSubmitFeedback:S(m.C.CanSubmitFeedback)&&function(e){var t=ae(W.n.sendDiscoverFooterFeedback(e,y.data,T.data,M,_.data,S(m.C.StudentExperience)));return l.k.logUserAction({feedbackType:e.type,content:e.content,presentationId:M.id,dashboardId:_.data.id},{actionType:s.Vw.Submit,location:s.LZ.DiscoverFooter,entity:s.py.Feedback,workflowPhase:s.eu.Complete}),t},hasStudentExperience:S(m.C.StudentExperience),yearGroups:E.data,lazyLoad:!G.f.isBot(),showCalendar:ue}))}},52333:(e,t,n)=>{n.d(t,{n:()=>c});var a=n(99940),r=n(19808),i=n(86613);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 c={sendDiscoverFooterFeedback:function(e,t,n,a,r,i){var o=e.content.split("\n").join("<br />");return l("Discover Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Discover Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Dashboard:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n ").concat(s(t,n,i),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(o,"\n "),t,["discover",i?"student":"staff"])},sendTopicFooterFeedback:function(e,t,n,a,r,i,o){var c=e.content.split("\n").join("<br />");return l("Topic Footer Feedback","\n <b>Type:</b> ".concat("positive"===e.type?"Positive":"Negative","\n <br />\n <b>Location:</b> Topic Footer\n <br />\n <b>Presentation:</b> ").concat(a.description," (ID: ").concat(a.id,")\n <br />\n <b>Classification:</b> ").concat(r.name," (ID: ").concat(r.id,")\n <br />\n <b>Dashboard:</b> ").concat(i.name," (ID: ").concat(i.id,")\n <br />\n ").concat(s(t,n,o),"\n <br />\n <b>Feedback:</b>\n <br />\n ").concat(c,"\n "),t,["topics",o?"student":"staff"])}};function l(e,t,n,c){var l,s=["new product","in product feedback"].concat(function(e){if(Array.isArray(e))return o(e)}(l=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(l)||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}}(l)||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.")}());n.role===i.i.Admin&&s.push("administrator");var u=function(e){switch(e){case r.b.AU:return"au";case r.b.NZ:return"nz";case r.b.UK:return"uk";case r.b.US:return"us"}}(n.instanceRegion);return u&&s.push(u),{url:"/api/productboard/notes",key:"productboard:feedback",data:{title:e,content:t,user:{email:n.emailVerified?n.email:""},tags:s},type:a.k.POST}}function s(e,t,n){return"\n <b>User:</b>\n <br />\n <li>ID: ".concat(e.id,"</li>\n <li>Username: ").concat(e.username,"</li>\n <li>Email: ").concat(e.email,"</li>\n <li>User Type / Role: ").concat(function(e,t){return t?"Learner":e.role===i.i.Admin?"Admin":"Staff"}(e,n),"</li>\n <li>Customer ID: ").concat(e.customerId,"</li>\n <li>CVC ID: ").concat(t.crmId,"</li>\n <li>Customer Name: ").concat(t.name,"</li>\n <li>Instance Region: ").concat(e.instanceRegion,"</li>\n <li>Content Region: ").concat(e.contentRegion,"</li>\n ")}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7293],{91200:(e,t,a)=>{a.d(t,{Y:()=>c});var n=a(32735),r=a(68050),i=a(69111),l=a(84231);function o(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 c(e){var t,a=function(e){if(Array.isArray(e))return o(e)}(t=Array(e.numItems))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.Z.partialHeading," mb-1 partial-loading-background")}),n.createElement(r.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(i.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(c," px-1 pb-2")},n.createElement("div",{className:"".concat(l.Z.playlistItem," partial-loading-background rounded-3")}))}))))}c.defaultProps={numItems:8}},48745:(e,t,a)=>{a.d(t,{t:()=>A});var n=a(32735),r=a(82602),i=a(23481),l=a(110),o=a(65858),c=a(83345);const s={fontSmall:"OYBRp"};var u="playlists.playlistCount";function m(e){var t=function(e){var t,a,n,r,i,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(r=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==r?r:0)+(null!==(l=null===(i=e.clips)||void 0===i?void 0:i.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:s.fontSmall},n.createElement(c.x,{namespace:u,phrase:"count",options:{smartCount:t}}))}var d=a(20789),v=a(89725),f=a(55452);function p(e){var t,a,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewPlaylist)||void 0===t?void 0:t.value)return n.createElement(v.F,null);if(!(null==i?void 0:i.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return n.createElement(d.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:f.l.getInitials(i.name,i.surname)})}var g=a(36848),y=a(40955),h=a(78276),b=a(5465),w=a(54610),E=a(80143),C=a(9085),S=a(67453),N=a(84231),j="playlists.playlistList";function A(e){var t,a,c=S.j.createUrl(e.data.cover&&e.data.cover.url,{size:w.h2.Medium,resizeType:w.Nq.Cover}),s=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,u=(0,E.n)(s,e.presentationAudiences),d=N.Z.playlistItem,v=!!c||!!e.showFallbackImage;v&&(d+=" ".concat(N.Z.playlistItemGradient)),!v&&e.bgColourClassNames&&(d+=" ".concat(N.Z.playlistItem," ").concat((0,C.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(d+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(d+=" rounded-start-lg overflow-hidden");var f=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),A=Object.assign(Object.assign({},e.analyticsOptions),{entity:o.py.Playlist});return n.createElement(g.F,{appLink:e.appLink,analyticsData:f,analyticsOptions:A,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewPlaylist)||void 0===t?void 0:t.value)?"":i.T.getPhrase(j,"lastUpdated",{timeago:(0,r.WU)(l.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(h.Z,{data:c,alt:e.data.name,className:d},!!e.showFallbackImage&&n.createElement(b.oy,{type:b.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(N.Z.playlistMetadata)},!!e.showCount&&n.createElement(m,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"clamp-2"},e.data.name)),!!s&&!!s.length&&!!u&&n.createElement(y.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:u,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:N.Z.ownerAvatarContainer},n.createElement(p,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}A.defaultProps={itemStyle:"square"}},31273:(e,t,a)=>{a.d(t,{P:()=>s});var n=a(32735),r=a(68050),i=a(69111),l=a(65858),o=a(48745),c={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function s(e){return n.createElement(r.Z,{className:"mx-n1"},e.extraPlaylistItem&&n.createElement(i.Z,{key:"extra-playlist-item",xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},e.extraPlaylistItem),e.playlists.map((function(t){return n.createElement(i.Z,{key:t.id,xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},n.createElement(o.t,{data:t,appLink:e.getPlaylistAppLink(t),imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,presentationAudiences:e.presentationAudiences,bgColourClassNames:e.bgColourClassNames,showCount:e.showCount,showOwner:e.showOwner,showFallbackImage:e.showFallbackImage,titleClassName:e.itemTitleClassName,itemStyle:e.itemStyle,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),c)}))})))}},98981:(e,t,a)=>{a.d(t,{YA:()=>n.Y,tN:()=>r.t});var n=a(91200),r=(a(31273),a(48745))},3626:(e,t,a)=>{a.d(t,{J:()=>S});var n=a(32735),r=a(68050),i=a(69111),l=a(49985),o=a(65858),c=a(40955),s=a(76246),u=a(17464),m=a(96022),d=a(58564),v=a(47325),f=a(90927),p=a(85784),g=a(70872),y=a(54610),h=a(68626),b=a(78479),w=a(80143),E=a(31908);const C={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",description:"zejMP",details:"MRyVe"};function S(e){var t,a=e.video,S=e.presentationAudiences,N=e.videoAppLink,j=e.seriesAppLink,A=e.hideInteractiveBadge,O=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,x=(0,w.n)(O,S),I=(null==a?void 0:a.series)&&!!(null==a?void 0:a.series.id),T=l.k.mergeOptions(e.analyticsOptions,{location:o.LZ.ClassificationHero,entity:E.M.getAnalyticsEntity(a)}),k=n.useRef();return a?n.createElement(r.Z,null,n.createElement(i.Z,{xs:12,md:6},n.createElement("div",{ref:k},n.createElement(d.u,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:N,seriesAppLink:I?j:null,imageOptions:{size:y.h2.Medium},textPosition:h.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?x:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!x}))),n.createElement(i.Z,{xs:12,md:6,className:"".concat(C.details," position-relative")},n.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:T,video:a}),I&&n.createElement(m.M,{analyticsData:e.analyticsData,analyticsOptions:T,video:a,appLink:j,className:"text-reset"}),n.createElement(g.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:T,appLink:N,linkClassName:"d-inline-block",textClassName:"h4",yearGroups:e.yearGroups}),"info-panel"===e.badgePosition&&n.createElement(u.c,{className:"pb-1"},!A&&n.createElement(s.C,{type:s.g.Interactive,data:a.interactives}),n.createElement(s.C,{type:s.g.Rating,data:a.rating}),n.createElement(s.C,{type:s.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:C.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(c.P,{audience:x,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement("div",{className:"d-flex ".concat(C.guidance)},n.createElement(f.N,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),n.createElement(v.I,{containerRef:k,widgetTemplate:b.f.ThumbnailFeaturedMedia,video:a,imageCdnUrl:e.imageCdnUrl})))):n.createElement(n.Fragment,null)}S.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},34004:(e,t,a)=>{a.d(t,{r:()=>v});var n=a(32735),r=a(40955),i=a(76246),l=a(78276),o=a(5465),c=a(54610),s=a(49439),u=a(80143);const m={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",largeHoverDescription:"Uh4gM",smallHoverDescription:"TiqqV"};function d(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 v(e){var t,a,v=(t=(0,s.L)({className:m.hoverActive}),a=2,function(e){if(Array.isArray(e))return e}(t)||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}}(t,a)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(t,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.")}()),f=v[0],p=v[1],g=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],y=(0,u.n)(g,e.presentationAudiences),h=!!(g&&g.length&&y);return n.createElement("div",{ref:f},p&&n.createElement("div",{className:"py-3 text-white text-center mb-3 ".concat(m.mask)},n.createElement("h3",{className:"fw-semibold ".concat(m.hoverTitle," ").concat(e.isSmall?m.smallHoverTitle:m.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(m.hoverDescription," ").concat(e.isSmall?m.smallHoverDescription:m.largeHoverDescription," mb-0")},e.series.description)),n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:c.__.TallPosters,preload:e.preloadImage,imageOptions:{size:c.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},n.createElement(o.oy,{type:o.mS.Series}),n.createElement("div",{className:"position-absolute text-white ".concat(m.labelContainer)},h?n.createElement(r.P,{audience:y,border:"white"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},87648:(e,t,a)=>{a.d(t,{$:()=>i});var n=a(32735);function r(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 i=function(e){var t,a,i=(t=n.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(t)||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}}(t,a)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}(t,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.")}()),l=i[0],o=i[1];return n.useEffect((function(){o(!!e)}),[e]),{active:l,setActive:o}}},47721:(e,t,a)=>{a.d(t,{j:()=>m});var n=a(32735),r=a(98495),i=a(83914),l=a(79967),o=a(92310);const c={header:"kiea4",icon:"C3rvx"};function s(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 u=52;function m(e){var t,a,m,d,v=(m=n.useState(!1),d=2,function(e){if(Array.isArray(e))return e}(m)||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}}(m,d)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(m,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=v[0],p=v[1],g=(0,l.k)(),y=null===(a=null===(t=e.containerRef)||void 0===t?void 0:t.current)||void 0===a?void 0:a.getBoundingClientRect(),h=o.w.getMaxHeight(y,e.widgetTemplate,g),b=o.w.getWidth(y,e.widgetTemplate,g);return n.createElement("div",{className:"bg-white rounded-3 box-shadow overflow-hidden",style:Object.assign({maxHeight:h},b)},n.createElement("div",{className:"".concat(c.header," d-flex align-items-center px-3 py-2 ").concat(f?"box-shadow":"")},n.createElement("div",{className:"".concat(c.icon," bg-").concat(e.iconVariant," text-white rounded-circle")},n.createElement(i.x,{svgName:e.svgName,size:i.S.Large})),n.createElement("h2",{className:"h6 mb-0 ps-2"},e.heading)),n.createElement(r.ZP,{onUpdate:function(e){var t=e.top;f&&0===t?p(!1):!f&&t>0&&p(!0)},autoHeight:!0,autoHeightMax:h-u},n.createElement("div",{className:"pb-3 px-3"},e.children)))}},956:(e,t,a)=>{a.d(t,{C:()=>u});var n=a(32735),r=a(12788),i=a(79967),l=a(49439),o=a(92310);function c(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)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(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 s(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 u=n.forwardRef((function(e,t){var a=c(n.useState(!1),2),s=a[0],u=a[1],m=c(n.useState(null),2),d=m[0],v=m[1],f=n.useRef(),p=c((0,l.X)(),2),g=p[0],y=p[1],h=(0,i.k)(),b=n.useCallback((function(){y||e.show||e.tagIsHovering?u(!0):(u(!1),v(null))}),[y,e.show,e.tagIsHovering]),w=n.useCallback((function(){var a,n,r,i,l=null===(a=f.current)||void 0===a?void 0:a.getBoundingClientRect(),c=null===(n=t.current)||void 0===n?void 0:n.getBoundingClientRect(),s=null===(i=null===(r=e.containerRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.getBoundingClientRect();if(l){var u=o.w.getPositionStyles(e.widgetTemplate,l,s,c,h);v(u)}}),[f.current,t.current,e.containerRef,e.widgetTemplate,h]);if(n.useEffect((function(){var e=setTimeout(b,150),t=setTimeout(w,200);return function(){clearTimeout(e),clearTimeout(t)}}),[b,w]),!t.current)return n.createElement(n.Fragment,null);var E=e.childComponent;return s?(0,r.createPortal)(n.createElement("div",{ref:g,className:"gZ3Ae",style:d},n.createElement(E,Object.assign({ref:f,isShowing:s&&d},e.childProps))),document.body):n.createElement(n.Fragment,null)}))},47325:(e,t,a)=>{a.d(t,{I:()=>g});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(75931),u=l.T.encloseNamespace("shared.whatsIncluded"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"blue",heading:u("whatsIncluded"),svgName:c.vn.Video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.V,{video:e.video,imageCdnUrl:e.imageCdnUrl,isShowing:e.isShowing})))})),d=a(6296),v=a(49439),f=a(31908);function p(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 g(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||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}}(t,a)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(t,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.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,g=s.setActive;return n.useMemo((function(){return f.M.showWhatsIncluded(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.V,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,imageCdnUrl:e.imageCdnUrl,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},show:u,ref:o,setActive:g,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,tagIsHovering:c})):n.createElement(n.Fragment,null)}},90927:(e,t,a)=>{a.d(t,{N:()=>g});var n=a(32735),r=a(956),i=a(87648),l=a(23481),o=a(47721),c=a(35223),s=a(38803),u=l.T.encloseNamespace("shared.whyThisVideo"),m=n.forwardRef((function(e,t){return n.createElement("div",{ref:t},n.createElement(o.j,{iconVariant:"navy",heading:u("whyThisVideo"),svgName:c.vn.StarOutline,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate},n.createElement(s.p,{video:e.video,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest})))})),d=a(16226),v=a(49439),f=a(31908);function p(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 g(e){var t,a,l=(t=(0,v.L)({delay:50}),a=2,function(e){if(Array.isArray(e))return e}(t)||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}}(t,a)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(t,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.")}()),o=l[0],c=l[1],s=(0,i.$)(c),u=s.active,g=s.setActive;return n.useMemo((function(){return f.M.showWhyThisVideo(e.video)}),[e.video])?n.createElement(n.Fragment,null,n.createElement(d.A,{ref:o,active:u}),n.createElement(r.C,{childComponent:m,childProps:{video:e.video,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest},show:u,ref:o,setActive:g,tagIsHovering:c,containerRef:e.containerRef,widgetTemplate:e.widgetTemplate})):n.createElement(n.Fragment,null)}},2192:(e,t,a)=>{a.d(t,{Q:()=>f});var n=a(32735),r=a(45157),i=a(36848),l=a(5465),o=a(83345),c=a(54610),s=a(67453),u=a(92038),m=function(e){var t=e.name,a=e.multiline,r="".concat(u.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),i="";return a?i+=" ".concat(u.Z.clamped," clamp-2"):(r+=" text-nowrap",i+=" text-truncate"),n.createElement("div",{className:r},n.createElement("small",{className:"text-muted"},n.createElement(o.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),n.createElement("p",{className:"".concat(u.Z.name," h6")},n.createElement("span",{className:i},t)))},d=function(e){var t=e.name,a=e.multiline,r=e.subtitle,i="px-3 d-flex flex-column justify-content-center",l="".concat(u.Z.name," h6");return a?l+=" clamp-2 text-start":(i+=" text-nowrap text-truncate",l+=" text-truncate mb-0 pb-1"),n.createElement("div",{className:i},r&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(u.Z.text)},r),n.createElement("div",{className:l,title:a?"":t},t))};function v(e){var t=s.j.createUrl(e.coverUrl,{size:e.isLarge?c.h2.Medium:c.h2.Small}),a={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return n.createElement("div",{className:"border d-flex position-relative ".concat(u.Z.widgetItem),id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},n.createElement("div",{className:"".concat(u.Z.imagePanel," ").concat(e.isLarge?u.Z.large:"")},n.createElement("div",{className:u.Z.image,style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),n.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?u.Z.large:""})),e.isComingSoon?n.createElement(m,Object.assign({},a)):n.createElement(d,Object.assign({},a)))}function f(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(i.F,{className:u.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(v,Object.assign({},e))):n.createElement(v,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>c});var n=a(32735),r=a(45157),i=a(5465),l=a(92038);function o(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 c=function(){var e,t,a=(e=n.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,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)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:l.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:"".concat(l.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject,extraClasses:l.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>c});var n=a(32735),r=a(65858),i=a(2192),l=a(52641),o=a(2284),c=n.memo((function(e){var t,a,c,s,u,m=(null===(t=e.data)||void 0===t?void 0:t.status)===o.W.ComingSoon,d=function(e,t){var a;if((null==t?void 0:t.length)>=l._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),v=Object.assign(Object.assign({},e.analyticsData),{id:null===(a=e.data)||void 0===a?void 0:a.id,name:null===(c=e.data)||void 0===c?void 0:c.name,presentationId:e.data.presentationId,comingSoon:!!m}),f=Object.assign(Object.assign({location:r.LZ.ClassificationListItem},e.analyticsOptions),{actionType:r.Vw.Click,entity:r.py.Classification,descriptor:r._S.Cover});return n.createElement(i.Q,Object.assign({},e,{analyticsData:v,analyticsOptions:f,coverUrl:null===(s=e.data.cover)||void 0===s?void 0:s.url,subtitle:(null===(u=e.getSubtitle)||void 0===u?void 0:u.call(e,e.data))||d,isComingSoon:m}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>n.V});var n=a(91028),r=a(43741),i=(a(32735),a(65858));a(36848),a(83914),a(83345),a(35223),a(92038),i.Vw.Click,i.py.UserSetting,i._S.Tile,a(2786),i.Vw.Click,i.py.Url,i._S.Tile},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},92310:(e,t,a)=>{a.d(t,{w:()=>i});var n=a(78479),r=function(e){return e.xs||e.sm},i={getPositionStyles:function(e,t,a,i,l){var o={padding:"".concat(10,"px 0"),visibility:"visible"},c=i.top-a.bottom;if(r(l)){var s=t.height+c+20,u=document.documentElement.clientWidth-a.right+10,m=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:m,right:u,height:s})}switch(e){case n.f.ThumbnailHeroMedia:var d=t.height+(c+20),v=document.documentElement.clientWidth-a.right+10,f=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:f,right:v,height:d});case n.f.ThumbnailFeaturedMedia:var p=t.height+20,g=document.documentElement.clientWidth-a.right-t.width-20,y=a.bottom+window.scrollY-t.height-i.height-20;return Object.assign(Object.assign({},o),{top:y,right:g,height:p});case n.f.ThumbnailFixedListMediaLarge:var h=a.height+c,b=document.documentElement.clientWidth-a.right+10,w=a.bottom+window.scrollY-t.height-20;return Object.assign(Object.assign({},o),{top:w,right:b,height:h})}},getMaxHeight:function(e,t,a){return r(a)?(null==e?void 0:e.height)-20:t===n.f.ThumbnailFeaturedMedia?(null==e?void 0:e.height)-52+20:(null==e?void 0:e.height)-20},getWidth:function(e,t,a){if(r(a))return{width:e.width-20};switch(t){case n.f.ThumbnailHeroMedia:return{width:480,maxWidth:e.width-20};case n.f.ThumbnailFeaturedMedia:return{width:null==e?void 0:e.width};case n.f.ThumbnailFixedListMediaLarge:return{width:(null==e?void 0:e.width)-20}}}}},84231:(e,t,a)=>{a.d(t,{Z:()=>n});const n={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},92038:(e,t,a)=>{a.d(t,{Z:()=>n});const n={appLink:"fFjKN",name:"A_by9",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}},82602:(e,t,a)=>{a.d(t,{WU:()=>s});var n=["second","minute","hour","day","week","month","year"],r=["秒","分钟","小时","天","周","个月","年"],i={},l=function(e,t){i[e]=t},o=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var s=function(e,t,a){var n=function(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),r=0;e>=o[r]&&r<o.length;r++)e/=o[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,n)[a].replace("%s",e.toString())}(n,function(e){return i[e]||i.en_US}(t))};l("en_US",(function(e,t){if(0===t)return["just now","right now"];var a=n[Math.floor(t/2)];return e>1&&(a+="s"),[e+" "+a+" ago","in "+e+" "+a]})),l("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=r[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9038],{11140:(e,t,r)=>{r.r(t),r.d(t,{AddTeachersToClassroomView:()=>x});var a=r(32735),n=r(70680),o=r(23481),c=r(97395),s=r(20354),l=r(49985),i=r(65858),u=r(7855),m=r(36848),d=r(9111),f=r(13876),p=r(83345),h=r(40424),y=r(16714),g=r(76881),E=r(39151),b=r(31949),v=r(69883),S=r(22902),C=r(99742),A=r(14070),w=r(97291),T=r(88630);function k(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 a,n,o,c,s=[],l=!0,i=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){i=!0,n=e}finally{try{if(!l&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(i)throw n}}return s}}(e,t)||U(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 U(e,t){if(e){if("string"==typeof e)return I(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)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}var P="classrooms.addTeachersToClassroom",N=o.T.encloseNamespace(P);function x(e){var t=k(a.useState(!1),2),r=t[0],o=t[1],x=k(a.useState([]),2),F=x[0],R=x[1],_=s.a.useBasicFetch(b.N.currentUser()),L=s.a.useBasicFetch(E.L.config()),j=s.a.useBasicFetch(b.N.token()),B=s.a.useBasicFetch(_.data&&T.F.getClassroom(e.id,_.data.id)),O=(0,n.I0)(),M=(0,v.Z)(),D=(0,S.T)().hasPermissions,H={application:w.O.USER_MANAGER,action:A.e.UserManager.STAFF},W=!!(j.data&&B.data&&L.data&&_.data);return a.createElement(d.G,{closePopup:e.closePopup,title:N("title")},W&&a.createElement(a.Fragment,null,a.createElement("div",{className:"pb-3"},a.createElement(u.R,{placeholder:N("placeholder"),getRemoteUrl:function(){return c._.safeUrlConcat(L.data.gatewayApiUrl,"/v3/search")},getRemotePostBody:function(t){return function(e,t,r,a){return{userId:a,customerId:r,query:e,searchType:"user",filters:{excludeClassroom:t,userType:[g.Y.Staff],userProfile:{status:["".concat(h.w.Active.toLowerCase()),"".concat(h.w.Inactive.toLowerCase())],customerId:r}},indices:["user"],limit:u.d}}(t,e.id,_.data.customerId,_.data.id)},requestHeaders:{authorization:"Bearer ".concat(j.data.value)},selections:F,formatRemoteSuggestions:function(e){return e.results},onSuggestionSelected:function(e){return R([].concat(function(e){if(Array.isArray(e))return I(e)}(t=F)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||U(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]));var t},removeSelection:function(e){return R(F.filter((function(t){return t.id!==e.id})))},imageCdnUrl:L.data.imageCdnUrl,activationLength:2,debounceTime:200,errorStateImageUrl:C.W.TYPEAHEAD_ERROR,emptyStateImageUrl:C.W.EmptyStates.TYPEAHEAD_RESULTS})),a.createElement("div",{className:"pb-3 d-flex flex-column align-items-center"},a.createElement("img",{className:"img-fluid w-25 pb-2 pt-1",src:C.W.EmptyStates.Classrooms.ADD_TEACHERS}),a.createElement("p",{className:"mb-0 text-center"},a.createElement(p.x,{namespace:P,phrase:"info"})),D(y.C.ManageUsers)&&a.createElement("p",{className:"mb-0 text-center"},a.createElement(p.x,{namespace:P,phrase:"createStaff"})," ",a.createElement(m.F,{appLink:H,onClick:e.closePopup,className:"info-link"},a.createElement(p.x,{namespace:P,phrase:"staffManager"})))),a.createElement(f.u,null,a.createElement(f.u.Cancel,{onClick:e.closePopup}),a.createElement(f.u.Submit,{variant:"dark",onClick:function(){(null==F?void 0:F.length)&&(o(!0),s.a.fetch(O,T.F.addInvitees(F.map((function(e){return e.id})),e.id,(function(){o(!1),l.k.logUserAction({id:e.id,userCount:F.length},{actionType:i.Vw.Associate,entity:i.py.Classroom,location:i.LZ.Popup,descriptor:i.iF.User,workflowPhase:i.eu.Complete}),M.success(N("success",{smartCount:F.length,classroomName:B.data.name,escapeText:!0})),e.closePopup()}),(function(){o(!1),M.error(N("error",{smartCount:F.length,classroomName:B.data.name})),e.closePopup()}))))},text:N("addTeachers"),disabled:!(null==F?void 0:F.length),showSpinner:r}))))}}}]);
|