@clickview/lite 0.40.11 → 0.40.12

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "appBundle": "bundle-74309f2bab.min.js",
2
+ "appBundle": "bundle-6330221939.min.js",
3
3
  "cssBundle": "lite-app-d963cb909e.css",
4
4
  "polyfillBundle": "polyfills-a424e31154.min.js"
5
5
  }
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7115],{84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),o=n(83914),i=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>i});var a=n(32735),r=n(36848);const o={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function i(e){var t;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 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(o.dateItem)},a.createElement("div",{className:"bg-light-blue py-1 ".concat(o.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 o.bodyRange;case"day":return o.bodyDay;case"month":return o.bodyMonth}}()," ").concat(o.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(o.month)},e.month)))}},83657:(e,t,n)=>{n.d(t,{e:()=>s});var a=n(32735),r=n(91967),o=n(10874),i=n(76177),l=n(42735),c=n(86509);function s(e){var t=a.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],s=[];t.forEach((function(e){e.button?n.push(e):s.push(e)}));var u="d-flex";return e.className&&(u+=" ".concat(e.className)),n.length||s.length?a.createElement("div",{className:u},a.createElement(a.Fragment,null,a.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return a.createElement(a.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return a.createElement(a.Fragment,null,e.label)};return a.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var n=a.createElement(o.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?a.createElement(i.u,{title:e.tooltip,spanHack:!0},n):n}())})):a.createElement(a.Fragment,null),e.sortComponent&&e.sortComponent,s.length?a.createElement(c.m,{actions:s,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize}):a.createElement(a.Fragment,null)))):a.createElement(a.Fragment,null)}},86509:(e,t,n)=>{n.d(t,{m:()=>v});var a=n(32735),r=n(91967),o=n(81886),i=n(45157),l=n(49985),c=n(36848),s=n(83914),u=n(76177),m=n(35223);const d={dropdownToggle:"UCAnJ"};function p(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return a.createElement(a.Fragment,null,e.action.label)};if(e.action.appLink)return a.createElement(c.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:p(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function n(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&l.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&o.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?a.createElement("a",{className:p(e.action.className),onClick:n,href:e.action.href},t()):a.createElement("span",{className:"cursor-pointer ".concat(p(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(e)}},t())}function v(e){if(!e.actions||!e.actions.length)return a.createElement(a.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var n="actions-dropdown-".concat(i.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(d.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),a.createElement("div",{className:t},a.createElement("button",{className:r,type:"button",id:n,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},a.createElement(s.x,{svgName:m.vn.More,size:e.dropdownToggleSvgSize})),a.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":n},e.actions.map((function(e,t){return e.tooltip?a.createElement(u.u,{key:t,title:e.tooltip,spanHack:!0},a.createElement(f,{action:e})):a.createElement(f,{key:t,action:e})}))))}v.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:s.S.Small}},89043:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>I});var a=n(32735),r=n(110),o=n(12788),i={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},l=n(84963),c=n(73679),s=n(83657),u=n(23481),m=n(36848),d=n(83914),p=n(35223),f="shared.backButton";function v(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,o=t.color,i=t.extraClasses,l=t.textShadow,c=n?u.T.getPhrase(f,"backTo",{backToName:n}):u.T.getPhrase(f,"back"),s="black"===o?"":"text-white",v=l?"text-shadow":"";return a.createElement(m.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i," ").concat(s," ").concat(v)},a.createElement(d.x,{svgName:p.vn.ChevronLeft,size:d.S.Medium}),a.createElement("span",{className:"ms-1"},c))}v.defaultProps={color:"black",extraClasses:""};var g=n(83345),b=n(10587),h=n(94232),y=n(54610),E=n(79967),N=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var k="".concat(b.y[y.__.Banners].width,":").concat(b.y[y.__.Banners].height);function w(e){return e.length<160?"h1":S.headingLarge}var C=a.memo((function(e){var t,n=e.heading,o=e.banner,u=e.imageCdnUrl,m=e.actions,d=e.sortComponent,p=e.blockColourClass,f=e.specialEvent,b=a.useContext(h.n),C=(0,E.k)().xxl?1920:1200,I=a.useMemo((function(){if(!f||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return f.endDate?f.startDate<=t&&f.endDate>=t:f.startDate===t}),[f]),L=e.imageOptions||{width:C,ratio:k,resizeType:y.Nq.Cover},A=!!o&&!!u&&N.j.createBannerUrl(o,{fallbackBaseUrl:u,fallbackCategoryName:n,type:y.__.Banners},L),x={className:"banner banner-header ".concat(e.bannerClassName),style:A?{backgroundImage:"url('".concat(A,"')")}:{}};!o&&p&&(delete x.style,x.className+=" ".concat(p));var O=e.detailsComponent;return i.renderInPortalIfExists(a.createElement("header",Object.assign({},x),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(v,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(S.bannerContent)},!!f&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:f.endDate?"range":"day",text:f.endDate?"".concat(r.O.format(f.startDate,"DD"),"-").concat(r.O.format(f.endDate,"DD")):r.O.format(f.startDate,"DD")},month:r.O.format(f.startDate,"MMMM")})),a.createElement("div",null,I&&a.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},a.createElement(g.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&a.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("h1",{className:"text-white text-shadow ".concat(S.heading," ").concat(w(n))},n,O&&a.createElement(O,null))),!!m&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:m,sortComponent:d,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:N.j.createUrl(e.logo.url,{size:y.h2.Small}),className:"rounded-circle"})))),null==b?void 0:b.container)}),(function(e,t){var n,a;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(a=t.logo)||void 0===a?void 0:a.url)}));function I(){var e=a.useContext(h.n);return i.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>m,b2:()=>d});var a=n(32735),r=n(36848),o=n(86764),i=n(3747),l=n(5859),c=n(35223),s=n(83914),u=function(e){var t=e.breadcrumb,n=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(r.F,{appLink:o},l&&a.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:l?"ms-2":""},n)))},m=function(e){var t=e.breadcrumbs,n=(0,i.a)(o.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(u,{key:t,breadcrumb:e})}))))},d=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,i.a)(o.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),o=n(69111),i=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(i.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(o.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)},2192:(e,t,n)=>{n.d(t,{M:()=>g,Q:()=>b});var a=n(32735),r=n(45157),o=n(36848),i=n(60376),l=n(5465),c=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),p=n(92038),f=function(e){var t=e.name,n=e.multiline,r="".concat(p.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),o="";return n?o+=" ".concat(p.Z.clamped," clamp-2"):(r+=" text-nowrap",o+=" text-truncate"),a.createElement("div",{className:r},a.createElement("small",{className:"text-muted"},a.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),a.createElement("p",{className:"".concat(p.Z.name," h6")},a.createElement("span",{className:o},t)))},v=function(e){var t=e.name,n=e.multiline,r=e.subtitle,o="px-3 d-flex flex-column justify-content-center",i="".concat(p.Z.name," h6");return n?i+=" clamp-3 text-start":(o+=" text-nowrap text-truncate",i+=" text-truncate mb-0 pb-1"),a.createElement("div",{className:o},r&&a.createElement("div",{className:"text-secondary clamp-1 ".concat(p.Z.text)},r),a.createElement("div",{className:i,title:t},t))};function g(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return a.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(p.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&a.createElement("div",{className:"".concat(p.Z.selectedMask," border-2")}),a.createElement("div",{className:"".concat(p.Z.imagePanel," ").concat(e.isLarge?p.Z.large:"")},e.isSelected&&!e.hideCheckmark&&a.createElement("div",{className:p.Z.selected},a.createElement(i.f,{svgName:d.vn.Check,svgSize:c.S.Large,textVariant:"white",variant:"green"})),a.createElement("div",{className:"".concat(p.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&a.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?p.Z.large:""})),e.isComingSoon?a.createElement(f,Object.assign({},n)):a.createElement(v,Object.assign({},n)))}function b(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return a.createElement(a.Fragment,null,n?a.createElement(o.F,{className:p.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},a.createElement(g,Object.assign({},e))):a.createElement(g,Object.assign({},e)))}},43741:(e,t,n)=>{n.d(t,{M:()=>s,Q:()=>c});var a=n(32735),r=n(45157),o=n(5465),i=n(92038);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(){var e,t,n=(e=a.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}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.")}())[0];return a.createElement("div",{className:"border d-flex position-relative me-2 ".concat(i.Z.widgetItem)},a.createElement("div",{className:i.Z.imagePanel}),a.createElement("div",{className:"px-2",style:{width:n}}),a.createElement("div",{className:i.Z.partialIcon},a.createElement(o.oy,{type:o.mS.Subject})))},s=function(){return a.createElement("div",{className:"border d-flex position-relative me-2 ".concat(i.Z.widgetItem)},a.createElement("div",{className:"".concat(i.Z.partialLargeImage)}),a.createElement("div",{className:"px-2"}),a.createElement("div",{className:i.Z.partialIcon},a.createElement(o.oy,{type:o.mS.Subject,extraClasses:i.Z.partialLargeFallback})))}},91028:(e,t,n)=>{n.d(t,{V:()=>c});var a=n(32735),r=n(65858),o=n(2192),i=n(52641),l=n(2284),c=a.memo((function(e){var t,n,c,s,u,m=(null===(t=e.data)||void 0===t?void 0:t.status)===l.W.ComingSoon,d=function(e,t){var n;if((null==t?void 0:t.length)>=i._.MULTI_PRESENTATION_THRESHOLD)return null===(n=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===n?void 0:n.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.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 a.createElement(o.Q,Object.assign({},e,{analyticsData:p,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,n)=>{n.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>a.V});var a=n(91028),r=n(43741),o=(n(32735),n(65858));n(36848),n(83914),n(83345),n(35223),n(92038),o.Vw.Click,o.py.UserSetting,o._S.Tile,n(2786),o.Vw.Click,o.py.Url,o._S.Tile},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},25665:(e,t,n)=>{n.d(t,{k:()=>c});var a=n(99940),r=n(97395);function o(e){return function(e){if(Array.isArray(e))return i(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 i(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)?i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=function(e){return r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},c={follow:function(e,t,n){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:".concat(e.join(",")),type:a.k.POST,data:e,success:t,error:n,invalidationKeys:[].concat(o(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollow:function(e,t,n){return{url:l(e),key:"unfollow:".concat(e.join(",")),type:a.k.DELETE,success:t,error:n,invalidationKeys:[].concat(o(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}}}},81514:(e,t,n)=>{n.d(t,{V:()=>o});var a=n(86764),r=n(3747);function o(){var e=(0,r.a)(a.r.XS),t=(0,r.a)(a.r.SM),n=(0,r.a)(a.r.MD),o=(0,r.a)(a.r.LG),i=(0,r.a)(a.r.XL),l=(0,r.a)(a.r.XXL),c=a.r.LG;return e&&(c=a.r.XS),t&&(c=a.r.SM),n&&(c=a.r.MD),o&&(c=a.r.LG),i&&(c=a.r.XL),l&&(c=a.r.XXL),c}},69454:(e,t,n)=>{n.d(t,{T:()=>m});var a=n(75896),r=n(1048),o=n(55171);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=/\d/,c=function(e){var t,n,r=a.m.first(e),o=a.m.last(e);return r.name===o.name?r.name:"Advanced"===o.name?"lower"===(t=r.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,r,i="";switch(+a.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:case o.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!l.test(e.name)})),o=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(o+="s"),r&&n.length)return"".concat(o," ").concat(r.name.charAt(0)," - ").concat(n.pop());var i=function(e){var t,n,a,r,o=!1,i=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,o||(t=e[a]),n=e[r],e[a]+1===n?o=!0:o?(i.push("".concat(t," - ").concat(e[a])),o=!1):(i.push("".concat(e[a])),o=!1);return i}(n);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var o=e[0].name,i=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(o)," - ").concat(l(i));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=c(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=a.m.first(t),r=a.m.last(t),i=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),o=a.m.first(n.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(i);var c="",s="";return c="Reception"===r?"R":"KS".concat(i),s="KS".concat(l),"Lower"===r&&"Upper"===o?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=n.name),"".concat(c," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(s));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var o=a.name.localeCompare(r.name);return 0===o?o:o>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&m.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(u,"").toLowerCase()},o=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return o[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},4399:(e,t,n)=>{n.d(t,{$7:()=>i,Dp:()=>l});var a=n(28400),r=n(14070),o=n(97291),i=function(e){return function(t){return{application:o.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION,args:t?[t.id,a.m.slugify(t.name)]:[],params:e||{}}}},l=function(e){return{application:o.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION_ALL,params:e?{presentationId:e}:{}}}},63191:(e,t,n)=>{n.r(t),n.d(t,{ClassificationsView:()=>Y,getBannerActions:()=>Z});var a=n(32735),r=n(70680),o=n(23481),i=n(57900),l=n(20354),c=n(2948),s=n(65858),u=n(89043),m=n(49935),d=n(47770),p=n(65163),f=n(9513),v=n(38143),g=n(2284),b=n(54610),h=n(86764),y=n(78479),E=n(42308),N=n(21750),S=n(39151),k=n(25665),w=n(31949),C=n(3747),I=n(79612),L=n(69454),A=n(35223),x=n(10144),O=n(99742),T=n(14070),D=n(97291),j=n(7179),P=n(86698),M=n(33192),F=n(4399);const U={classificationPane:"kx1WX"};function R(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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(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 _(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=o.T.encloseNamespace("subjects.classifications");function Z(e,t,n,a){var r,o;if(!(null==e?void 0:e.id))return[];var i=!!(null===(o=null===(r=e.followers)||void 0===r?void 0:r.data)||void 0===o?void 0:o.length);return[{label:B(i?"unfollow":"follow"),onClick:t,svgName:i?A.vn.Check:A.vn.Bell,className:"btn follow-btn ".concat(i?"btn-outline-dark":"btn-dark"," me-2"),button:!0,tooltip:i||a?void 0:B("followBtnTooltip"),showSpinner:n}]}function Y(e){var t,n,o,A,_,Y,H,z,X,V=e.id,J=e.presentationId,K=R(a.useState(),2),Q=K[0],$=K[1],G=(0,r.I0)(),W=l.a.useBasicFetch(w.N.currentUser()),q=l.a.useBasicFetch(S.L.config()),ee=(0,P.y)(),te=ee.availablePresentations,ne=ee.hasPresentationsLoaded,ae=ee.canAccessPresentation,re=l.a.useBasicFetch(J&&N.x.presentationById(J)),oe=re.hasCompleted&&ne,ie=function(e,t,n,a){var r=l.a.useBasicFetch(n&&N.x.classification(n,a));return n?null==r?void 0:r.data:{name:x.i.getExploreAllTopicsTitle(null==e?void 0:e.name,t),banner:{url:x.i.getPresentationLevelImage(null==e?void 0:e.learningLevel,"topic-banner")}}}(null==re?void 0:re.data,null==te?void 0:te.length,V,null===(t=W.data)||void 0===t?void 0:t.id),le=V?N.x.children(V):N.x.topLevelTopics(J||(null===(n=re.data)||void 0===n?void 0:n.id)),ce=l.a.useBasicFetch(oe&&le),se=function(e){var t=l.a.useBasicFetch(e&&N.x.path(e));return e?null==t?void 0:t.data:[]}(V),ue=R((0,c.D)(v.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),1)[0],me=V?B("pageTitleTopic",{title:null==ie?void 0:ie.name}):B("pageTitleSubject",{title:null===(o=re.data)||void 0===o?void 0:o.name});(0,I.M)({title:me,description:B("pageDescription",{title:V?null==ie?void 0:ie.name:null===(A=re.data)||void 0===A?void 0:A.name}),canonicalLink:M.f.getCanonicalLink(),allowIndexing:M.f.allowIndexing()}),(0,j.P)({id:V,app:"topics"});var de=(0,F.$7)(L.T.getAudienceParams(ue));a.useEffect((function(){$(!1)}),[null===(Y=null===(_=null==ie?void 0:ie.followers)||void 0===_?void 0:_.data)||void 0===Y?void 0:Y.length]);var pe=(0,C.a)(h.r.MDDown);var fe=(!V||!!ie)&&!!q.data&&!!te&&ce.data,ve=!!te&&!!se,ge=ae(null===(H=re.data)||void 0===H?void 0:H.id),be={presentationId:null===(z=re.data)||void 0===z?void 0:z.id,presentationName:null===(X=re.data)||void 0===X?void 0:X.name,currentClassificationName:null==ie?void 0:ie.name,widgetId:E.z.Classifications,templateId:y.f.CoverFixedPillListLarge},he=(null==ie?void 0:ie.status)===g.W.ComingSoon;return a.createElement("main",{className:"bg-white px-3"},fe?a.createElement(u.p,{heading:null==ie?void 0:ie.name,banner:null==ie?void 0:ie.banner,imageCdnUrl:q.data.imageCdnUrl,actions:he?[]:Z(ie,(function(){var e,t;$(!0);var n=(null===(t=null===(e=null==ie?void 0:ie.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?k.k.unfollow:k.k.follow;l.a.fetch(G,n([null==ie?void 0:ie.id]))}),Q,pe),imageOptions:!V&&{size:b.h2.Large}}):a.createElement(u.v,null),a.createElement("div",{className:"py-3 mb-3 ".concat(ge?"border-bottom":"")},ge?ve?a.createElement(m.Oo,{breadcrumbs:function(){var e,t=[{name:B("discover"),appLink:{application:D.O.DASHBOARD,action:T.e.Dashboard.HOME}},{name:x.i.getExploreAllTopicsTitle(null===(e=re.data)||void 0===e?void 0:e.name,null==te?void 0:te.length),appLink:{application:D.O.SUBJECT,action:T.e.Subjects.CLASSIFICATION_ALL},active:!V}];return se.forEach((function(e){t.push({name:e.name,appLink:de(e)})})),V&&t.push({name:B("subview"),active:!0}),t}()}):a.createElement(m.b2,null):a.createElement(a.Fragment,null)),a.createElement("div",{className:U.classificationPane},fe?a.createElement(d.K,{analyticsData:be,content:null==ce?void 0:ce.data,analyticsOptions:{location:s.LZ.SlidingListItem},appLinks:{classification:de},imageCdnUrl:q.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:O.W.Fallbacks.RESOURCE_THUMBNAIL}):a.createElement(p.QL,{partialLoadingComponent:f.Qh})))}},92038:(e,t,n)=>{n.d(t,{Z:()=>a});const a={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(95685),r=n.n(a),o=n(32735),i=n(46304),l=n(74512);const c=o.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},o)=>{const c=(0,i.vE)(e,"row"),s=(0,i.pi)(),u=(0,i.zG)(),m=`${c}-cols`,d=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r=e!==u?`-${e}`:"";null!=n&&d.push(`${m}${r}-${n}`)})),(0,l.jsx)(n,{ref:o,...a,className:r()(t,c,...d)})}));c.displayName="Row";const s=c}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7115],{84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),o=n(83914),i=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>i});var a=n(32735),r=n(36848);const o={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function i(e){var t;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 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(o.dateItem)},a.createElement("div",{className:"bg-light-blue py-1 ".concat(o.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 o.bodyRange;case"day":return o.bodyDay;case"month":return o.bodyMonth}}()," ").concat(o.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(o.month)},e.month)))}},83657:(e,t,n)=>{n.d(t,{e:()=>s});var a=n(32735),r=n(91967),o=n(10874),i=n(76177),l=n(42735),c=n(86509);function s(e){var t=a.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),n=[],s=[];t.forEach((function(e){e.button?n.push(e):s.push(e)}));var u="d-flex";return e.className&&(u+=" ".concat(e.className)),n.length||s.length?a.createElement("div",{className:u},a.createElement(a.Fragment,null,a.createElement("span",{className:"d-flex align-items-center"},n.length?n.map((function(e,t){return a.createElement(a.Fragment,{key:t},function(){if(e.label){var t=r.q.isFunction(e.label)?e.label:function(){return a.createElement(a.Fragment,null,e.label)};return a.createElement(l.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var n=a.createElement(o.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?a.createElement(i.u,{title:e.tooltip,spanHack:!0},n):n}())})):a.createElement(a.Fragment,null),e.sortComponent&&e.sortComponent,s.length?a.createElement(c.m,{actions:s,dropdownToggleClassName:e.actionsDropdownClassName,dropdownToggleSvgSize:e.dropdownToggleSvgSize}):a.createElement(a.Fragment,null)))):a.createElement(a.Fragment,null)}},86509:(e,t,n)=>{n.d(t,{m:()=>v});var a=n(32735),r=n(91967),o=n(81886),i=n(45157),l=n(49985),c=n(36848),s=n(83914),u=n(76177),m=n(35223);const d={dropdownToggle:"UCAnJ"};function p(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function f(e){var t=r.q.isFunction(e.action.label)?e.action.label:function(){return a.createElement(a.Fragment,null,e.action.label)};if(e.action.appLink)return a.createElement(c.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:p(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function n(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&l.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),r.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&o.Q.Ab.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?a.createElement("a",{className:p(e.action.className),onClick:n,href:e.action.href},t()):a.createElement("span",{className:"cursor-pointer ".concat(p(e.action.className)),onClick:n,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(e)}},t())}function v(e){if(!e.actions||!e.actions.length)return a.createElement(a.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var n="actions-dropdown-".concat(i.Y.getRandomInt()),r="dropdown-toggle px-0 ".concat(d.dropdownToggle);return e.dropdownToggleClassName&&(r+=" ".concat(e.dropdownToggleClassName)),a.createElement("div",{className:t},a.createElement("button",{className:r,type:"button",id:n,"data-bs-toggle":"dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},a.createElement(s.x,{svgName:m.vn.More,size:e.dropdownToggleSvgSize})),a.createElement("div",{className:"dropdown-menu dropdown-menu-end dropdown-menu-right","aria-labelledby":n},e.actions.map((function(e,t){return e.tooltip?a.createElement(u.u,{key:t,title:e.tooltip,spanHack:!0},a.createElement(f,{action:e})):a.createElement(f,{key:t,action:e})}))))}v.defaultProps={dropdownToggleClassName:"btn btn-light",dropdownToggleSvgSize:s.S.Small}},89043:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>I});var a=n(32735),r=n(110),o=n(12788),i={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},l=n(84963),c=n(73679),s=n(83657),u=n(23481),m=n(36848),d=n(83914),p=n(35223),f="shared.backButton";function v(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,o=t.color,i=t.extraClasses,l=t.textShadow,c=n?u.T.getPhrase(f,"backTo",{backToName:n}):u.T.getPhrase(f,"back"),s="black"===o?"":"text-white",v=l?"text-shadow":"";return a.createElement(m.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i," ").concat(s," ").concat(v)},a.createElement(d.x,{svgName:p.vn.ChevronLeft,size:d.S.Medium}),a.createElement("span",{className:"ms-1"},c))}v.defaultProps={color:"black",extraClasses:""};var g=n(83345),b=n(10587),h=n(94232),y=n(54610),E=n(79967),N=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",container:"M51HJ",logoContainer:"vkeJk",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var k="".concat(b.y[y.__.Banners].width,":").concat(b.y[y.__.Banners].height);function w(e){return e.length<160?"h1":S.headingLarge}var C=a.memo((function(e){var t,n=e.heading,o=e.banner,u=e.imageCdnUrl,m=e.actions,d=e.sortComponent,p=e.blockColourClass,f=e.specialEvent,b=a.useContext(h.n),C=(0,E.k)().xxl?1920:1200,I=a.useMemo((function(){if(!f||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return f.endDate?f.startDate<=t&&f.endDate>=t:f.startDate===t}),[f]),L=e.imageOptions||{width:C,ratio:k,resizeType:y.Nq.Cover},A=!!o&&!!u&&N.j.createBannerUrl(o,{fallbackBaseUrl:u,fallbackCategoryName:n,type:y.__.Banners},L),x={className:"banner banner-header ".concat(e.bannerClassName),style:A?{backgroundImage:"url('".concat(A,"')")}:{}};!o&&p&&(delete x.style,x.className+=" ".concat(p));var O=e.detailsComponent;return i.renderInPortalIfExists(a.createElement("header",Object.assign({},x),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(v,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(S.bannerContent)},!!f&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:f.endDate?"range":"day",text:f.endDate?"".concat(r.O.format(f.startDate,"DD"),"-").concat(r.O.format(f.endDate,"DD")):r.O.format(f.startDate,"DD")},month:r.O.format(f.startDate,"MMMM")})),a.createElement("div",null,I&&a.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},a.createElement(g.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&a.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("h1",{className:"text-white text-shadow ".concat(S.heading," ").concat(w(n))},n,O&&a.createElement(O,null))),!!m&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:m,sortComponent:d,actionsDropdownClassName:e.actionsDropdownClassName}))),!!(null===(t=e.logo)||void 0===t?void 0:t.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:N.j.createUrl(e.logo.url,{size:y.h2.Small}),className:"rounded-circle"})))),null==b?void 0:b.container)}),(function(e,t){var n,a;return e.actions===t.actions&&e.heading===t.heading&&(null===(n=e.logo)||void 0===n?void 0:n.url)===(null===(a=t.logo)||void 0===a?void 0:a.url)}));function I(){var e=a.useContext(h.n);return i.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>m,b2:()=>d});var a=n(32735),r=n(36848),o=n(86764),i=n(3747),l=n(5859),c=n(35223),s=n(83914),u=function(e){var t=e.breadcrumb,n=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(r.F,{appLink:o},l&&a.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:l?"ms-2":""},n)))},m=function(e){var t=e.breadcrumbs,n=(0,i.a)(o.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(u,{key:t,breadcrumb:e})}))))},d=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,i.a)(o.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),o=n(69111),i=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(i.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(o.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)},2192:(e,t,n)=>{n.d(t,{M:()=>g,Q:()=>b});var a=n(32735),r=n(45157),o=n(36848),i=n(60376),l=n(5465),c=n(83914),s=n(83345),u=n(54610),m=n(67453),d=n(35223),p=n(92038),f=function(e){var t=e.name,n=e.multiline,r="".concat(p.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),o="";return n?o+=" ".concat(p.Z.clamped," clamp-2"):(r+=" text-nowrap",o+=" text-truncate"),a.createElement("div",{className:r},a.createElement("small",{className:"text-muted"},a.createElement(s.x,{namespace:"shared.subjectWidgetItem",phrase:"comingSoon"})),a.createElement("p",{className:"".concat(p.Z.name," h6")},a.createElement("span",{className:o},t)))},v=function(e){var t=e.name,n=e.multiline,r=e.subtitle,o="px-3 d-flex flex-column justify-content-center",i="".concat(p.Z.name," h6");return n?i+=" clamp-3 text-start":(o+=" text-nowrap text-truncate",i+=" text-truncate mb-0 pb-1"),a.createElement("div",{className:o},r&&a.createElement("div",{className:"text-secondary clamp-1 ".concat(p.Z.text)},r),a.createElement("div",{className:i,title:t},t))};function g(e){var t=m.j.createUrl(e.coverUrl,{size:e.isLarge?u.h2.Medium:u.h2.Small}),n={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle};return a.createElement("div",{className:"border d-flex position-relative ".concat(e.className," ").concat(p.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""),id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&a.createElement("div",{className:"".concat(p.Z.selectedMask," border-2")}),a.createElement("div",{className:"".concat(p.Z.imagePanel," ").concat(e.isLarge?p.Z.large:"")},e.isSelected&&!e.hideCheckmark&&a.createElement("div",{className:p.Z.selected},a.createElement(i.f,{svgName:d.vn.Check,svgSize:c.S.Large,textVariant:"white",variant:"green"})),a.createElement("div",{className:"".concat(p.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(t,"')")}:{}}),!e.hideFallback&&a.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?p.Z.large:""})),e.isComingSoon?a.createElement(f,Object.assign({},n)):a.createElement(v,Object.assign({},n)))}function b(e){var t,n=e.getChildAppLink?e.getChildAppLink(e.data):null;return a.createElement(a.Fragment,null,n?a.createElement(o.F,{className:p.Z.appLink,appLink:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},a.createElement(g,Object.assign({},e))):a.createElement(g,Object.assign({},e)))}},43741:(e,t,n)=>{n.d(t,{M:()=>s,Q:()=>c});var a=n(32735),r=n(45157),o=n(5465),i=n(92038);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(){var e,t,n=(e=a.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}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.")}())[0];return a.createElement("div",{className:"border d-flex position-relative me-2 ".concat(i.Z.widgetItem)},a.createElement("div",{className:i.Z.imagePanel}),a.createElement("div",{className:"px-2",style:{width:n}}),a.createElement("div",{className:i.Z.partialIcon},a.createElement(o.oy,{type:o.mS.Subject})))},s=function(){return a.createElement("div",{className:"border d-flex position-relative me-2 ".concat(i.Z.widgetItem)},a.createElement("div",{className:"".concat(i.Z.partialLargeImage)}),a.createElement("div",{className:"px-2"}),a.createElement("div",{className:i.Z.partialIcon},a.createElement(o.oy,{type:o.mS.Subject,extraClasses:i.Z.partialLargeFallback})))}},91028:(e,t,n)=>{n.d(t,{V:()=>c});var a=n(32735),r=n(65858),o=n(2192),i=n(52641),l=n(2284),c=a.memo((function(e){var t,n,c,s,u,m=(null===(t=e.data)||void 0===t?void 0:t.status)===l.W.ComingSoon,d=function(e,t){var n;if((null==t?void 0:t.length)>=i._.MULTI_PRESENTATION_THRESHOLD)return null===(n=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===n?void 0:n.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.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 a.createElement(o.Q,Object.assign({},e,{analyticsData:p,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,n)=>{n.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>a.V});var a=n(91028),r=n(43741),o=(n(32735),n(65858));n(36848),n(83914),n(83345),n(35223),n(92038),o.Vw.Click,o.py.UserSetting,o._S.Tile,n(2786),o.Vw.Click,o.py.Url,o._S.Tile},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},25665:(e,t,n)=>{n.d(t,{k:()=>c});var a=n(99940),r=n(97395);function o(e){return function(e){if(Array.isArray(e))return i(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 i(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)?i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=function(e){return r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},c={follow:function(e,t,n){return{url:"/api/domain/v1/subjects/classifications/following",key:"follow:".concat(e.join(",")),type:a.k.POST,data:e,success:t,error:n,invalidationKeys:[].concat(o(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollow:function(e,t,n){return{url:l(e),key:"unfollow:".concat(e.join(",")),type:a.k.DELETE,success:t,error:n,invalidationKeys:[].concat(o(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}}}},81514:(e,t,n)=>{n.d(t,{V:()=>o});var a=n(86764),r=n(3747);function o(){var e=(0,r.a)(a.r.XS),t=(0,r.a)(a.r.SM),n=(0,r.a)(a.r.MD),o=(0,r.a)(a.r.LG),i=(0,r.a)(a.r.XL),l=(0,r.a)(a.r.XXL),c=a.r.LG;return e&&(c=a.r.XS),t&&(c=a.r.SM),n&&(c=a.r.MD),o&&(c=a.r.LG),i&&(c=a.r.XL),l&&(c=a.r.XXL),c}},69454:(e,t,n)=>{n.d(t,{T:()=>m});var a=n(75896),r=n(1048),o=n(55171);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=/\d/,c=function(e){var t,n,r=a.m.first(e),o=a.m.last(e);return r.name===o.name?r.name:"Advanced"===o.name?"lower"===(t=r.name.split(" "),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].toLowerCase()?"Lower Sec - Adv":"Upper Sec - Adv":"Lower - Upper Sec"},s=/([0-9]+)/gi,u=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,t){var n=e.filter((function(e){return!!e})).map((function(e){return e.id.toString()}));return t.filter((function(e){return n.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){var t,n,r,i="";switch(+a.m.first(e).presentationId){case o.e.PresentationIds.DEFAULT:case o.e.PresentationIds.AU_SECONDARY:case o.e.PresentationIds.US_ELEMENTARY:case o.e.PresentationIds.AU_PRIMARY:case o.e.PresentationIds.STREAMABLE_LEARNING:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})).join(" "),n=t.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=t.split(" ").filter((function(e){return isNaN(+e)}))||[],r=e.find((function(e){return!l.test(e.name)})),o=a.find((function(e){return e!==(null==r?void 0:r.name)}));if(e.length>1&&(o+="s"),r&&n.length)return"".concat(o," ").concat(r.name.charAt(0)," - ").concat(n.pop());var i=function(e){var t,n,a,r,o=!1,i=[];for(e=e.sort((function(e,t){return e-t})),a=0;a<e.length;a++)r=a+1,o||(t=e[a]),n=e[r],e[a]+1===n?o=!0:o?(i.push("".concat(t," - ").concat(e[a])),o=!1):(i.push("".concat(e[a])),o=!1);return i}(n);return"".concat(o," ").concat(i.join(", "))}(e);break;case o.e.PresentationIds.SCOTLAND_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_PRIMARY:case o.e.PresentationIds.INTERNATIONAL_SECONDARY:if(1===e.length)return e[0];i=function(e){var t=e.map((function(e){return e.name})),n={};t.forEach((function(e,t){if(0!==t){var a=e.split(" ");Object.keys(n).forEach((function(e){a.includes(e)||delete n[e]}))}else e.split(" ").forEach((function(e,t){n[e]=0===t?"start":"end"}))}));var a=Object.keys(n)[0],r=n[a];if(!a)return e[0].name;var o=e[0].name,i=e[e.length-1].name,l=function(e){return e.split(a)[0]},c="".concat(l(o)," - ").concat(l(i));return"start"===r?"".concat(a," ").concat(c):"".concat(c," ").concat(a)}(e);break;case o.e.PresentationIds.ENGLISH_SECONDARY:i=c(e);break;case o.e.PresentationIds.SCOTLAND_SECONDARY:t=e,n=a.m.first(t),r=a.m.last(t),i=n.name===r.name?n.name:"Senior Phase"===r.name?"".concat(n.name," - Senior"):"Third - Fourth Level";break;case o.e.PresentationIds.ENGLAND_PRIMARY:i=function(e){var t=a.m.first(e),n=a.m.last(e),r=a.m.first(t.name.split(" ")),o=a.m.first(n.name.split(" ")),i=t.name.split(" ").find((function(e){return!isNaN(+e)})),l=n.name.split(" ").find((function(e){return!isNaN(+e)}));if(t===n)return"Key"===r||"Reception"===r?t.name:"".concat(r," KS").concat(i);var c="",s="";return c="Reception"===r?"R":"KS".concat(i),s="KS".concat(l),"Lower"===r&&"Upper"===o?"L ".concat(c," - U ").concat(s):("Lower"===r&&(c="Lower ".concat(c)),"Upper"===o&&(s="Upper ".concat(s)),"Key"===o&&(s=n.name),"".concat(c," - ").concat(s))}(e);case o.e.PresentationIds.US_MIDDLE:case o.e.PresentationIds.US_HIGH:}return i?{name:i}:null},sortMembersWithDuplicateNamesByAudience:function(e){var t=function(e){return e.length?(e.forEach((function(e){var r=+a.m.first(e.name.match(s));if(!t)return t=e,void(n=r);r<n&&(t=e)})),t):null;var t,n},n={},r=[];return e.forEach((function(e){if(!n[e.name])return n[e.name]=1,void r.push(e);r.push(e),n[e.name]++;var a=r.splice(r.length-n[e.name]).sort((function(e,n){var a=t(e.subjectPresentationAudiences.data),r=t(n.subjectPresentationAudiences.data);if(!a&&r)return 1;if(!r)return-1;var o=a.name.localeCompare(r.name);return 0===o?o:o>0?-1:1}));r=r.concat(a)})),r},getActiveAudiencesFromParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.t.isObject(t)&&!r.t.isEmpty(t)&&e&&e.length&&m.shouldShowAudiences(e)){var n=t.a;if(n){"string"==typeof n&&(n=[n]);var a=function(e){return e.replace(u,"").toLowerCase()},o=n.reduce((function(e,t){return e[a(t)]=t,e}),{});return e.filter((function(e){return o[a(e.name)]}))}}},getAudienceParams:function(e){return(null==e?void 0:e.length)?{a:e.map((function(e){return e.name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},4399:(e,t,n)=>{n.d(t,{$7:()=>i,Dp:()=>l});var a=n(28400),r=n(14070),o=n(97291),i=function(e){return function(t){return{application:o.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION,args:t?[t.id,a.m.slugify(t.name)]:[],params:e||{}}}},l=function(e){return{application:o.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION_ALL,params:e?{presentationId:e}:{}}}},63191:(e,t,n)=>{n.r(t),n.d(t,{ClassificationsView:()=>Y,getBannerActions:()=>Z});var a=n(32735),r=n(70680),o=n(23481),i=n(57900),l=n(20354),c=n(2948),s=n(65858),u=n(89043),m=n(49935),d=n(47770),p=n(65163),f=n(9513),v=n(38143),g=n(2284),b=n(54610),h=n(86764),y=n(78479),E=n(42308),N=n(21750),S=n(39151),k=n(25665),w=n(31949),C=n(3747),I=n(79612),L=n(69454),A=n(35223),x=n(10144),O=n(99742),T=n(14070),D=n(97291),j=n(7179),P=n(86698),M=n(33192),F=n(4399);const U={classificationPane:"kx1WX"};function R(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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.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&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _(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)?_(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 _(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=o.T.encloseNamespace("subjects.classifications");function Z(e,t,n,a){var r,o;if(!(null==e?void 0:e.id))return[];var i=!!(null===(o=null===(r=e.followers)||void 0===r?void 0:r.data)||void 0===o?void 0:o.length);return[{label:B(i?"unfollow":"follow"),onClick:t,svgName:i?A.vn.Check:A.vn.Bell,className:"btn follow-btn ".concat(i?"btn-outline-dark":"btn-dark"," me-2"),button:!0,tooltip:i||a?void 0:B("followBtnTooltip"),showSpinner:n}]}function Y(e){var t,n,o,A,_,Y,H,z,X,V=e.id,J=e.presentationId,K=R(a.useState(),2),Q=K[0],$=K[1],G=(0,r.I0)(),W=l.a.useBasicFetch(w.N.currentUser()),q=l.a.useBasicFetch(S.L.config()),ee=(0,P.y)(),te=ee.availablePresentations,ne=ee.activePresentation,ae=ee.hasPresentationsLoaded,re=ee.canAccessPresentation,oe=J||(null==ne?void 0:ne.id),ie=l.a.useBasicFetch(oe&&N.x.presentationById(oe)),le=ie.hasCompleted&&ae,ce=function(e,t,n,a){var r=l.a.useBasicFetch(n&&N.x.classification(n,a));return n?null==r?void 0:r.data:{name:x.i.getExploreAllTopicsTitle(null==e?void 0:e.name,t),banner:{url:x.i.getPresentationLevelImage(null==e?void 0:e.learningLevel,"topic-banner")}}}(null==ie?void 0:ie.data,null==te?void 0:te.length,V,null===(t=W.data)||void 0===t?void 0:t.id),se=V?N.x.children(V):N.x.topLevelTopics(oe||(null===(n=ie.data)||void 0===n?void 0:n.id)),ue=l.a.useBasicFetch(le&&se),me=function(e){var t=l.a.useBasicFetch(e&&N.x.path(e));return e?null==t?void 0:t.data:[]}(V),de=R((0,c.D)(v.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),1)[0],pe=V?B("pageTitleTopic",{title:null==ce?void 0:ce.name}):B("pageTitleSubject",{title:null===(o=ie.data)||void 0===o?void 0:o.name});(0,I.M)({title:pe,description:B("pageDescription",{title:V?null==ce?void 0:ce.name:null===(A=ie.data)||void 0===A?void 0:A.name}),canonicalLink:M.f.getCanonicalLink(),allowIndexing:M.f.allowIndexing()}),(0,j.P)({id:V,app:"topics"});var fe=(0,F.$7)(L.T.getAudienceParams(de));a.useEffect((function(){$(!1)}),[null===(Y=null===(_=null==ce?void 0:ce.followers)||void 0===_?void 0:_.data)||void 0===Y?void 0:Y.length]);var ve=(0,C.a)(h.r.MDDown);var ge=(!V||!!ce)&&!!q.data&&!!te&&ue.data,be=!!te&&!!me,he=re(null===(H=ie.data)||void 0===H?void 0:H.id),ye={presentationId:null===(z=ie.data)||void 0===z?void 0:z.id,presentationName:null===(X=ie.data)||void 0===X?void 0:X.name,currentClassificationName:null==ce?void 0:ce.name,widgetId:E.z.Classifications,templateId:y.f.CoverFixedPillListLarge},Ee=(null==ce?void 0:ce.status)===g.W.ComingSoon;return a.createElement("main",{className:"bg-white px-3"},ge?a.createElement(u.p,{heading:null==ce?void 0:ce.name,banner:null==ce?void 0:ce.banner,imageCdnUrl:q.data.imageCdnUrl,actions:Ee?[]:Z(ce,(function(){var e,t;$(!0);var n=(null===(t=null===(e=null==ce?void 0:ce.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?k.k.unfollow:k.k.follow;l.a.fetch(G,n([null==ce?void 0:ce.id]))}),Q,ve),imageOptions:!V&&{size:b.h2.Large}}):a.createElement(u.v,null),a.createElement("div",{className:"py-3 mb-3 ".concat(he?"border-bottom":"")},he?be?a.createElement(m.Oo,{breadcrumbs:function(){var e,t=[{name:B("discover"),appLink:{application:D.O.DASHBOARD,action:T.e.Dashboard.HOME}},{name:x.i.getExploreAllTopicsTitle(null===(e=ie.data)||void 0===e?void 0:e.name,null==te?void 0:te.length),appLink:{application:D.O.SUBJECT,action:T.e.Subjects.CLASSIFICATION_ALL},active:!V}];return me.forEach((function(e){t.push({name:e.name,appLink:fe(e)})})),V&&t.push({name:B("subview"),active:!0}),t}()}):a.createElement(m.b2,null):a.createElement(a.Fragment,null)),a.createElement("div",{className:U.classificationPane},ge?a.createElement(d.K,{analyticsData:ye,content:null==ue?void 0:ue.data,analyticsOptions:{location:s.LZ.SlidingListItem},appLinks:{classification:fe},imageCdnUrl:q.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:O.W.Fallbacks.RESOURCE_THUMBNAIL}):a.createElement(p.QL,{partialLoadingComponent:f.Qh})))}},92038:(e,t,n)=>{n.d(t,{Z:()=>a});const a={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}},68050:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(95685),r=n.n(a),o=n(32735),i=n(46304),l=n(74512);const c=o.forwardRef((({bsPrefix:e,className:t,as:n="div",...a},o)=>{const c=(0,i.vE)(e,"row"),s=(0,i.pi)(),u=(0,i.zG)(),m=`${c}-cols`,d=[];return s.forEach((e=>{const t=a[e];let n;delete a[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const r=e!==u?`-${e}`:"";null!=n&&d.push(`${m}${r}-${n}`)})),(0,l.jsx)(n,{ref:o,...a,className:r()(t,c,...d)})}));c.displayName="Row";const s=c}}]);