@clickview/lite 0.50.0-rc.2 → 0.50.0-rc.3
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/{355-lite-7e76df6ab5.chunk.css → 355-lite-e474c8ddce.chunk.css} +1 -1
- package/dist/css/{7715-lite-671ee43c49.chunk.css → 7715-lite-25809cdd3d.chunk.css} +1 -1
- package/dist/css/{8139-lite-10c11c0722.chunk.css → 8139-lite-5511af77bf.chunk.css} +1 -1
- package/dist/css/{8960-lite-d45f2332e6.chunk.css → 8960-lite-a80ad92ea7.chunk.css} +1 -1
- package/dist/css/{9395-lite-01ed62af75.chunk.css → 9395-lite-e7ca0b1320.chunk.css} +1 -1
- package/dist/css/lite-app-f2595ac365.css +53 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{355-81c86415d9-lite.chunk.js → 355-eaf55dc95f-lite.chunk.js} +1 -1
- package/dist/scripts/{355-81c86415d9-lite.chunk.js.map → 355-eaf55dc95f-lite.chunk.js.map} +1 -1
- package/dist/scripts/{4395-2e9e72a400-lite.chunk.js → 4395-322f459cb0-lite.chunk.js} +2 -2
- package/dist/scripts/4395-322f459cb0-lite.chunk.js.map +1 -0
- package/dist/scripts/{5562-42375ce894-lite.chunk.js → 5562-09db6be3de-lite.chunk.js} +3 -3
- package/dist/scripts/{5562-42375ce894-lite.chunk.js.map → 5562-09db6be3de-lite.chunk.js.map} +1 -1
- package/dist/scripts/{6480-06435aaa46-lite.chunk.js → 6480-60a0ad2ff5-lite.chunk.js} +1 -1
- package/dist/scripts/{6480-06435aaa46-lite.chunk.js.map → 6480-60a0ad2ff5-lite.chunk.js.map} +1 -1
- package/dist/scripts/{679-a58b19729d-lite.chunk.js → 679-51a0b936e0-lite.chunk.js} +2 -2
- package/dist/scripts/{679-a58b19729d-lite.chunk.js.map → 679-51a0b936e0-lite.chunk.js.map} +1 -1
- package/dist/scripts/{6863-562ff82f45-lite.chunk.js → 6863-670092eaa5-lite.chunk.js} +1 -1
- package/dist/scripts/{6863-562ff82f45-lite.chunk.js.map → 6863-670092eaa5-lite.chunk.js.map} +1 -1
- package/dist/scripts/{6948-8c8d9131eb-lite.chunk.js → 6948-e7a16d8c0b-lite.chunk.js} +2 -2
- package/dist/scripts/{6948-8c8d9131eb-lite.chunk.js.map → 6948-e7a16d8c0b-lite.chunk.js.map} +1 -1
- package/dist/scripts/{7052-32d8266e82-lite.chunk.js → 7052-a4d79c9f20-lite.chunk.js} +3 -3
- package/dist/scripts/{7052-32d8266e82-lite.chunk.js.map → 7052-a4d79c9f20-lite.chunk.js.map} +1 -1
- package/dist/scripts/{7715-e5380d1440-lite.chunk.js → 7715-634be84dc5-lite.chunk.js} +2 -2
- package/dist/scripts/{7715-e5380d1440-lite.chunk.js.map → 7715-634be84dc5-lite.chunk.js.map} +1 -1
- package/dist/scripts/{8055-f4de552821-lite.chunk.js → 8055-a6d102b953-lite.chunk.js} +3 -3
- package/dist/scripts/{8055-f4de552821-lite.chunk.js.map → 8055-a6d102b953-lite.chunk.js.map} +1 -1
- package/dist/scripts/{8139-37635f8bcd-lite.chunk.js → 8139-2a36098eae-lite.chunk.js} +3 -3
- package/dist/scripts/{8139-37635f8bcd-lite.chunk.js.map → 8139-2a36098eae-lite.chunk.js.map} +1 -1
- package/dist/scripts/{8419-70c7a44baa-lite.chunk.js → 8419-510dc22a69-lite.chunk.js} +1 -1
- package/dist/scripts/{8419-70c7a44baa-lite.chunk.js.map → 8419-510dc22a69-lite.chunk.js.map} +1 -1
- package/dist/scripts/{9395-181720391d-lite.chunk.js → 9395-77dfcbad18-lite.chunk.js} +2 -2
- package/dist/scripts/{9395-181720391d-lite.chunk.js.map → 9395-77dfcbad18-lite.chunk.js.map} +1 -1
- package/dist/scripts/{bundle-541e1ff041.min.js → bundle-0187039e1a.min.js} +3 -3
- package/dist/scripts/{bundle-541e1ff041.min.js.map → bundle-0187039e1a.min.js.map} +1 -1
- package/package.json +1 -1
- package/dist/css/lite-app-5b9f4761e1.css +0 -53
- package/dist/scripts/4395-2e9e72a400-lite.chunk.js.map +0 -1
- /package/dist/scripts/{5562-42375ce894-lite.chunk.js.LICENSE.txt → 5562-09db6be3de-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7052-32d8266e82-lite.chunk.js.LICENSE.txt → 7052-a4d79c9f20-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8055-f4de552821-lite.chunk.js.LICENSE.txt → 8055-a6d102b953-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8139-37635f8bcd-lite.chunk.js.LICENSE.txt → 8139-2a36098eae-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9395-181720391d-lite.chunk.js.LICENSE.txt → 9395-77dfcbad18-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-541e1ff041.min.js.LICENSE.txt → bundle-0187039e1a.min.js.LICENSE.txt} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 8139-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8139],{50690:(e,t,n)=>{n.d(t,{b:()=>r});var a=n(12788),r={renderInPortalIfExists:function(e,t){return t?(0,a.createPortal)(e,t):e}}},7870:(e,t,n)=>{n.d(t,{N:()=>c});var a=n(97395),r=n(75896),i=n(110),o=n(40424),c={calendarEvents:function(e,t,n){return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/content",{from:e,to:t,presentationId:n}),publicUrl:a._.urlBuilder("/api/discover/special-events/content",{from:e,to:t,presentationId:n}),key:"presentation:".concat(n,":events:from:").concat(e,":to").concat(t)}},nextTopicSpecialEvent:function(e,t){var n={presentationId:t,limit:1,from:i.O.format(new Date,"YYYY-MM-DD"),objectType:o.VH.Classification};return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/object/".concat(e,"/next-events"),n),publicUrl:a._.urlBuilder("/api/discover/special-events/object/".concat(e,"/next-events"),n),key:"presentation:".concat(t,":events:classification:").concat(e),formatData:function(e){return r.m.first(e)}}}}},69395:(e,t,n)=>{n.d(t,{e:()=>o});var a=n(32735),r=n(91967);const i={disabled:"pERi4",disabledHighlighted:"AxyWm"};function o(e){var t=e.audience,n=e.highlight,o=e.setAudience,c=e.isDisabled,s=e.extraClasses,l=function(e,t){return e?t?"".concat(i.disabledHighlighted," text-light"):"bg-info text-light":t?"".concat(i.disabled," text-secondary"):"bg-light"}(n,c),u="rounded-pill d-inline-block me-1 user-select-none ".concat(c?"cursor-default":"cursor-pointer"," ").concat(l," ").concat(s);return a.createElement("span",{className:u,onClick:function(){!c&&r.q.isFunction(o)&&o(t,!n)},role:"checkbox","aria-checked":n},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}o.defaultProps={extraClasses:""}},14875:(e,t,n)=>{n.d(t,{a:()=>y});var a=n(32735),r=n(23481),i=n(75902),o=n(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 s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=c(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=s(s(s({},i.GL.Archived,{svgName:o.vn.Archive,svgColorClassName:"text-secondary",actionName:"Archive",statusName:"Archived"}),i.GL.Draft,{svgName:o.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),i.GL.Published,{svgName:o.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),u=n(83914),d=n(40424);const m={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function f(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(m.badge);switch(e.status){case d.GL.Published:t+=" ".concat(m.published);break;case d.GL.Archived:t+=" ".concat(m.archived);break;case d.GL.Draft:t+=" ".concat(e.darkMode?m.draftDark:m.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function p(e){var t=l[e.status],n=t.statusName,r=t.svgName;return a.createElement("div",{className:f(e)},a.createElement(u.x,{svgName:r}),a.createElement("div",null,n))}var v=n(98364);const g={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var b=r.T.encloseNamespace("shared.classificationPreviewBanner");function y(e){return a.createElement("div",{className:"".concat(g.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},a.createElement("div",{className:"position-absolute d-flex ".concat(g.badgeWrapper)},a.createElement(p,{status:e.status,wrapperClassName:"".concat(g.badge),darkMode:!0})),a.createElement("div",{className:"flex-grow-1"},a.createElement("h1",{className:"text-center my-3 h5"},a.createElement(v.V,{emoji:"👀"}),b("topic"===e.type?"topicTitle":"companyTitle"))))}},28046:(e,t,n)=>{n.d(t,{l:()=>f,v:()=>p});var a=n(39479),r=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],o=["csv","txt"],c=["xls","xlt","xlsx"],s=["jpg","tif","png","bmp","gif","jpeg"],l="video/*",u=["zip","rar"],d=["ppt","pot","pps","pptx"],m=["srt"],f={IMAGES:".".concat(s.join(",.")),VIDEO:l,MIXED_MEDIA:".".concat(s.join(",."),",").concat(l),RESOURCES:".".concat([].concat(i,c,d,r,o,s,u).join(",.")),SUBTITLES:".".concat(m.join(",."))},p={getResourceType:function(e){var t=e.toLowerCase();return a.contains(i,t)?"document":a.contains(c,t)?"excel":a.contains(d,t)?"powerpoint":a.contains(r,t)?"pdf":a.contains(o,t)?"text":a.contains(s,t)?"image":a.contains(u,t)?"archive":a.contains(m,t)?"subtitle":""}}},44522:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>T});var a=n(32735),r=n(110),i=n(50690),o=n(84963),c=n(73679),s=n(83657),l=n(23481),u=n(36848),d=n(83914),m=n(35223),f="shared.backButton";function p(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,c=t.textShadow,s=n?l.T.getPhrase(f,"backTo",{backToName:n}):l.T.getPhrase(f,"back"),p="black"===i?"":"text-white",v=c?"text-shadow":"";return a.createElement(u.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(p," ").concat(v)},a.createElement(d.x,{svgName:m.vn.ChevronLeft,size:d.S.Medium}),a.createElement("span",{className:"ms-1"},s))}p.defaultProps={color:"black",extraClasses:""};var v=n(36518),g=n(83345),b=n(10587),y=n(94232),h=n(54610),w=n(79967),E=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var k="".concat(b.y[h.__.Banners].width,":").concat(b.y[h.__.Banners].height);function I(e){return e.length<160?"h1":S.headingLarge}var C=a.memo((function(e){var t,n,l,u,d=e.heading,m=e.banner,f=e.imageCdnUrl,b=e.actions,C=e.sortComponent,T=e.blockColourClass,L=e.specialEvent,x=a.useContext(y.n),N=(0,w.k)().xxl?1920:1200,O=a.useMemo((function(){if(!L||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return L.endDate?L.startDate<=t&&L.endDate>=t:L.startDate===t}),[L]),A=e.imageOptions||{width:N,ratio:k,resizeType:h.Nq.Cover},P=!!m&&!!f&&E.j.createBannerUrl(m,{fallbackBaseUrl:f,fallbackCategoryName:d,type:h.__.Banners},A),j={className:"banner banner-header ".concat(e.bannerClassName),style:P?{backgroundImage:"url('".concat(P,"')")}:{}};!m&&T&&(delete j.style,j.className+=" ".concat(T));var F=e.detailsComponent;return i.b.renderInPortalIfExists(a.createElement("header",Object.assign({},j),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(p,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(S.bannerContent," px-2 ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?S.bannerContentWithLogo:""))},!!L&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:L.endDate?"range":"day",text:L.endDate?"".concat(r.O.format(L.startDate,"DD"),"-").concat(r.O.format(L.endDate,"DD")):r.O.format(L.startDate,"DD")},month:r.O.format(L.startDate,"MMMM"),theme:e.calendarTheme})),a.createElement("div",null,O&&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(o.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&a.createElement("div",{className:"".concat(S.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(n=e.logo)||void 0===n?void 0:n.url)&&a.createElement(v.w,{src:E.j.createUrl(null===(l=e.logo)||void 0===l?void 0:l.url,{size:h.h2.Small})})),a.createElement("h1",{className:"text-white text-shadow pe-3 ".concat(S.heading," ").concat(I(d)," ").concat(e.alignLogoLeft?"w-50":"")},d,F&&a.createElement(F,null)))),!!b&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:b,sortComponent:C,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(u=e.logo)||void 0===u?void 0:u.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:E.j.createUrl(e.logo.url,{size:h.h2.Small}),className:"rounded-circle"})))),null==x?void 0:x.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 T(){var e=a.useContext(y.n);return i.b.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>m});var a=n(32735),r=n(36848),i=n(86764),o=n(3747),c=n(5859),s=n(35223),l=n(83914),u=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active,c=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?a.createElement("strong",null,n):a.createElement(r.F,{appLink:i},c&&a.createElement(l.x,{svgName:s.vn.ChevronLeft,size:l.S.Small}),a.createElement("span",{className:c?"ms-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(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})}))))},m=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,o.a)(i.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},c.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:" "}}))}))))}))},38502:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),r=n(49985),i=n(36848),o=n(18559),c=n(11607),s=n(83914),l=n(87432);function u(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(s.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(l.Z.pillTabSelector,"\n ").concat(e.borderRadius?l.Z.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(l.Z.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?l.Z.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(l.Z.tabLink,"\n ")},a.createElement(u,{tab:e})):a.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(l.Z.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},75838:(e,t,n)=>{n.d(t,{w:()=>u});var a=n(32735),r=n(92869),i=n(49985),o=n(65858),c=n(36848),s=n(11607);const l={itemsWrapper:"m6mGm",anchorWrapper:"QptZj",default:"_AZa8",selectedItem:"Nuiel",disabled:"WIzWJ",floatIcon:"ARudn",arrowIcon:"tEF5Q",listIcon:"Ql2wi"};function u(e){var t={actionType:o.Vw.Click,entity:o.py.Widget,location:o.LZ.TableOfContents};return a.createElement("div",{className:"".concat(l.itemsWrapper)},e.items.map((function(n,o){return e.localState?a.createElement(s.L,{key:n.id,className:"".concat(l.anchorWrapper," ").concat(e.activeId===n.id?l.selectedItem:""),onClick:function(){r.t.preventScrollTop(),e.setControlledId(n.id),function(n){i.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),t)}(n)}},a.createElement("div",{className:"".concat(e.activeId||0!==o?"":l.default," ")},n.name)):a.createElement(c.F,{key:n.id,appLink:e.getAppLink(n),appLinkOptions:{replace:!0},className:"".concat(l.anchorWrapper," ").concat(e.activeId===n.id?l.selectedItem:""),onClick:function(){r.t.preventScrollTop(),e.setControlledId(n.id)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),analyticsOptions:t},a.createElement("div",{className:"".concat(e.activeId||0!==o?"":l.default," ")},n.name))})))}},17101:(e,t,n)=>{var a;n.d(t,{n:()=>a}),function(e){e[e.Other=0]="Other",e[e.SuggestImprovement=1]="SuggestImprovement",e[e.ReportBug=2]="ReportBug",e[e.RequestVideo=3]="RequestVideo",e[e.RaiseIssue=4]="RaiseIssue",e[e.GivePraise=5]="GivePraise",e[e.Footer=6]="Footer"}(a||(a={}))},94644:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(50242),r=n(81886),i=n(67058),o=n(14553),c=n(49267),s=n(49075),l={notFound:i.d,forbidden:{rating:o.q,yearLevel:o.q,region:c.a,privacy:o.q},badRequest:s._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},l),t);i&&r.Q.Ry.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?n.badRequest||r.Q.Ry.throw(new o.badRequest):n.forbidden||r.Q.Ry.throw(new o.forbidden.privacy):n.notFound||r.Q.Ry.throw(new o.notFound))}}},7198:(e,t,n)=>{n.d(t,{f:()=>r});var a=n(99940),r={submitFeedback:function(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:a.k.POST,data:Object.assign(Object.assign({},e),t)}}}},25665:(e,t,n)=>{n.d(t,{k:()=>s});var a=n(99940),r=n(97395);function i(e){return function(e){if(Array.isArray(e))return o(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 o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e){return r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},s={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(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollow:function(e,t,n){return{url:c(e),key:"unfollow:".concat(e.join(",")),type:a.k.DELETE,success:t,error:n,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var a=n(32735),r=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,a.useEffect)((function(){o.forEach((function(e){(0,r.r)(e.statusCode,t,n)}))}),[i(o),t,n])}},94631:(e,t,n)=>{n.d(t,{D:()=>r});var a=n(32735);function r(e){var t=a.useRef();return a.useEffect((function(){t.current=e})),t.current}},65332:(e,t,n)=>{n.d(t,{D:()=>i});var a,r=n(32735),i=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,o=e.setControlledId,c=r.useRef(0);r.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(a=window.setTimeout((function(){o("")}),800));if(e.isIntersecting)t(e.target.id),c.current=window.scrollY;else{var r=c.current-window.scrollY>0,s=n.findIndex((function(t){return t.id===e.target.id})),l=n[s-1];r&&(null==l?void 0:l.id)&&t(null==l?void 0:l.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){a&&window.clearTimeout(a),e.disconnect()}}),[t,n.length,i])}},76196:(e,t,n)=>{n.d(t,{P:()=>o});var a=n(32735),r=n(94631);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var o=function(e,t){var n,o,c=(n=a.useState(!1),o=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,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(n,o)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],l=c[1],u=(0,r.D)(t),d=t;a.useLayoutEffect((function(){if(!s||u!==d){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===d}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),s||l(!0)}}}),[e,u,d,s])}},52167:(e,t,n)=>{n.d(t,{m:()=>l});var a=n(53301),r=n.n(a),i=n(28046),o=n(19808),c=n(86613);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var l={getUserInfo:function(e,t){return{id:e.id,username:e.username,email:e.email,userType:e.role===c.i.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion}},mapInstanceRegionToTag:function(e){switch(e){case o.b.AU:return"au";case o.b.NZ:return"nz";case o.b.UK:return"uk";case o.b.US:return"us"}},getTags:function(e,t,n,a){var r,i=[t].concat(function(e){if(Array.isArray(e))return s(e)}(r=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i.push(n?"student":"staff"),e.role===c.i.Admin&&i.push("administrator");var o=l.mapInstanceRegionToTag(e.instanceRegion);return o&&i.push(o),i},categorizeFiles:function(e){return e.reduce((function(e,t){var n=t.get("fileInfo");return r().isValidFile(t.get("file"),i.l.VIDEO)?e.videoUrls.push(null==n?void 0:n.url):e.imageUrls.push(null==n?void 0:n.url),e}),{imageUrls:[],videoUrls:[]})}}},4399:(e,t,n)=>{n.d(t,{$7:()=>o,Dp:()=>c});var a=n(28400),r=n(14070),i=n(97291),o=function(e){return function(t){return{application:i.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION,args:t?[t.id,a.m.slugify(t.name)]:[],params:e||{}}}},c=function(e){return{application:i.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION_ALL,params:e?{presentationId:e}:{}}}},68139:(e,t,n)=>{n.r(t),n.d(t,{CuratedClassificationView:()=>gt});var a=n(32735),r=n(23481),i=n(20354),o=n(28400),c=n(49985),s=n(65858),l=n(7870),u=n(23232),d=n(83345),m=n(76177),f=n(40424),p=n(35223),v="subjects.curatedClassificationEmptyState",g=r.T.encloseNamespace(v);function b(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===f.GL.Archived;return a.createElement(d.D.Provider,{value:v},a.createElement(u.u,null,a.createElement(u.u.Image,{src:e.imageUrl,altText:g("headingForNP")}),e.isReadonly?a.createElement(a.Fragment,null,a.createElement(u.u.Heading,null,a.createElement(d.x,{namespace:v,phrase:"headingForCurator"})),a.createElement(u.u.Info,null,a.createElement(d.x,{namespace:v,phrase:"info"})),a.createElement(m.u,{title:i?r.T.getPhrase(v,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(u.u.Cta,{text:r.T.getPhrase(v,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:p.vn.Plus,disabled:i}))):a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"headingForNP"}))))}var y=n(81886),h=n(75838);const w={container:"k1iOO"};function E(e){return a.createElement("div",{className:"".concat(w.container," ps-3")},a.createElement("h2",{className:"h5"},e.title),a.createElement(h.w,{items:e.widgets,activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:function(e){var t=y.Q.C$.getCurrentAppLink(),n=t.params?Object.assign({},t.params):{};return n.tocId=e.id,Object.assign(Object.assign({},t),{params:n})}}))}var S="subjects.teacherOnlyEmptyState",k=r.T.encloseNamespace(S);function I(e){var t;return a.createElement(d.D.Provider,{value:S},a.createElement(u.u,null,a.createElement(u.u.Image,{src:e.imageUrl,altText:k("heading")}),a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"heading"})),a.createElement(u.u.Info,null,a.createElement(d.x,{phrase:"info"})),a.createElement(u.u.Cta,{text:k("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var C=n(75896),T=n(42308),L=n(80889),x=n(21366),N=n(44522),O=n(13231),A=n(88513),P=n(97717),j=n(86764),F=n(78479),D=n(3747),B=n(65332),U=n(76196),R=n(42735),_="subjects.classificationComingSoon",G=r.T.encloseNamespace(_);function W(e){var t,n,r=!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);return a.createElement(d.D.Provider,{value:_},a.createElement(u.u,{className:"pt-0"},a.createElement(u.u.Image,{src:e.imageUrl,altText:G("comingSoon")}),a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"comingSoon"})),a.createElement(u.u.Info,null,a.createElement(d.x,{phrase:"info"})),e.canFollowSubjects&&a.createElement(R.K,{svgName:r?p.vn.Check:p.vn.Bell,onClick:function(){var t;null===(t=e.onToggleFollow)||void 0===t||t.call(e)},showSpinner:e.showFollowButtonSpinner,className:"btn follow-btn me-2 ".concat(r?"btn-outline-dark":"btn-dark")},a.createElement(d.x,{phrase:r?"unfollow":"follow"}))))}var V=n(49935),M=n(79967),H=n(69454),q=n(57900),z=n(2948),Z=n(1048),Q=n(69395),Y=n(11607),J=n(38143),$=n(5859);function X(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ee="subjects.audienceFilter";function te(e){var t,n,r=e.audiences,i=e.activeAudiences,o=e.disabled,c=e.appLink,s=(t=(0,z.D)(J.g.AUDIENCE_FILTER,void 0,{storage:q.Z1.SessionStorage}),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,r,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(t,n)||X(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.")}())[1];function l(e,t){var n,a,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(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.")}()}(null!==(n=null==i?void 0:i.map((function(e){return e.name})))&&void 0!==n?n:[]),[e.name]):i.map((function(e){return e.name})).filter((function(t){return t!==e.name}));y.Q.C$.trigger(Object.assign(Object.assign({},c),{params:(a=Z.t.omit(c.params,["a"]),r.length?Object.assign({},a,{a:r}):a)}),{replace:!0})}return a.useEffect((function(){e.disablePersist||s(i)}),[i]),r&&r.length?a.createElement("div",{className:"d-flex flex-wrap row-gap-2"},r.map((function(e){return a.createElement(Q.e,{key:e.masterId,audience:e,highlight:!!(null==i?void 0:i.find((function(t){return t.masterId===e.masterId}))),setAudience:l,isDisabled:o})})),!!i&&!!Object.keys(i).length&&a.createElement(Y.L,{className:"info-link d-inline-block fw-semibold ms-1",onClick:function(){var e=Z.t.omit(c.params,["a"]);y.Q.C$.trigger(Object.assign(Object.assign({},c),{params:e}),{replace:!0})}},a.createElement(d.x,{namespace:ee,phrase:"clear"}))):a.createElement(a.Fragment,null)}var ne=$.u.getPartialLoadingItems({numItems:6}),ae=function(){return a.createElement("div",{className:"d-flex flex-wrap row-gap-2"},ne.map((function(e,t){var n=e.width;return a.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:" "},style:{width:n}})})))};function re(e){return a.createElement(te,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist})}var ie=n(38502),oe="shared.classificationDashboard";function ce(e){var t,n,i,o,c,l,u,d,m=(0,M.k)(),f=m.lg||m.xl||m.xxl||m.xs;return a.createElement(ie.r,{borderRadius:"sm",className:m.xs?"w-100":"",listClassName:"d-flex flex-nowrap",tabs:[{name:f?r.T.getPhrase(oe,"newReleases"):"",appLink:e.isReadonly?null:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,e.classification),active:"new-releases"===e.activeTab,svgName:p.vn.Sparkle,analyticsData:{id:"new-releases",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:r.T.getPhrase(oe,"newReleases"),url:y.Q.C$.getHref(null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,e.classification))},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.MagicTabs},className:m.xs?"w-100":""},{name:f?r.T.getPhrase(oe,"allTopics"):"",appLink:e.isReadonly?null:null===(l=null===(c=e.appLinks)||void 0===c?void 0:c.classificationTopics)||void 0===l?void 0:l.call(c,e.classification),active:"all-topics"===e.activeTab,svgName:p.vn.Grid,analyticsData:{id:"all-topics",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:r.T.getPhrase(oe,"allTopics"),url:y.Q.C$.getHref(null===(d=null===(u=e.appLinks)||void 0===u?void 0:u.classificationTopics)||void 0===d?void 0:d.call(u,e.classification))},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.MagicTabs},className:m.xs?"w-100":""}]})}function se(e){var t,n,r,i,o,c,s,l=(0,M.k)(),u=(i=e.audiences,o=e.activeAudiences,c=e.isEmpty,!!e.isComingSoon||!(!c||(null==o?void 0:o.length))||!H.T.shouldShowAudiences(i));return a.createElement("div",{className:(s="d-flex flex-column py-3 mb-3",e.isComingSoon||(s+=" border-bottom"),!e.canViewDirectory&&!u||l.xs?s+" row-gap-3":s)},a.createElement("div",{className:function(){var e="";return u&&(e+="d-flex align-items-center justify-content-between"),l.xs&&(e+=" row-gap-3"),e}()},a.createElement(V.Oo,{breadcrumbs:null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e)}),e.canViewDirectory&&u&&a.createElement(ce,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})),a.createElement("div",{className:function(){var e="d-flex align-items-end justify-content-between";return l.xs&&(e+=" row-gap-3 flex-wrap"),e}()},!u&&a.createElement(re,{audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(r=(n=e.appLinks).audience)||void 0===r?void 0:r.call(n),isReadonly:e.isReadonly,disablePersist:!e.isViewingCurrentPresentation}),e.canViewDirectory&&!u&&a.createElement(ce,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})))}function le(e){return le="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},le(e)}function ue(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=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(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 de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var me="shared.classificationDashboard";function fe(e){return e.widgetId===T.z.Blurb&&e.templateId===F.f.Heading}function pe(e){var t,n=function(e,t){var n,r,o,c,s=a.useMemo((function(){return e?{isSystemGeneratedDashboard:x.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===T.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=s.isSystemGeneratedDashboard,u=s.systemGeneratedVideoWidget,d=i.a.useBasicFetch(!!u&&L._.dashboardWidgetContent(null==u?void 0:u.id,x.S.getWidgetParams(u.widgetId,u.templateId,x.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==u?void 0:u.templateId));return l?{widgets:null!==(r=null===(n=null==e?void 0:e.widgets)||void 0===n?void 0:n.filter((function(e){return e.widgetId!==T.z.ClassificationPinnedVideos})))&&void 0!==r?r:[],videoList:null!==(c=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==c?c:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:C.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),o=n.widgets,c=n.videoList,l=n.videoListWidgetId,u=(0,D.a)(j.r.LGDown),d=a.useRef(new Set),m=a.useMemo((function(){return o.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==o?void 0:o.length]),p=ue(a.useState(m),2),v=p[0],g=p[1],y=ue(a.useState(window.location.hash.slice(1)||""),2),h=y[0],w=y[1],S=ue(a.useState(""),2),k=S[0],F=S[1],R=Array.from(d.current);function _(t,n,a){var r,i=x.S.getWidgetParams(n,a,x.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,i,a)}(0,U.P)(R,e.tableOfContentsId),(0,B.D)({setActiveId:F,headingElements:R,controlledId:h,setControlledId:w});var G=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===f.GL.Archived&&!e.isReadonly||e.dashboard.status===f.GL.Draft&&!e.isPreviewing||!(null==o?void 0:o.length)||(!c||!c.length)&&Object.values(v).every((function(e){return!!e})));a.useEffect((function(){G&&g(m)}),[null==o?void 0:o.length]);var V=a.useCallback((function(e,t){if(v[e]!==t){for(var n,a=(Object.assign(Object.assign({},v),(u={},m=t,(d=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=le(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}(d=e))in u?Object.defineProperty(u,d,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[d]=m,u))),r=0;r<o.length;){var i=o[r];if(fe(i)){for(var c=!0,s=r+1;c&&s<o.length;){var l=o[s];if(fe(l))break;a[l.id]||(n=l).widgetId===T.z.CuratedClassifications||n.widgetId===T.z.Classifications||(c=!1),s++}r=s,a[i.id]=c}else r++}g(a)}var u,d,m}),[v,o]);function M(e){return fe(e)&&v[e.id]}var H=o.filter((function(e){var t;return!M(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),q=H.length>=2&&!u;return a.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},a.createElement(N.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),a.createElement(se,{classification:e.classification,presentation:e.presentation,appLinks:e.appLinks,activeTab:e.tab,audiences:e.audiences,activeAudiences:e.activeAudiences,getBreadcrumbs:e.getBreadcrumbs,canViewDirectory:e.canViewDirectory,isComingSoon:e.isComingSoon,isEmpty:G,isViewingCurrentPresentation:e.isViewCurrentPresentation,isReadonly:e.isReadonly}),e.isComingSoon&&a.createElement(W,{imageUrl:e.comingSoonImageUrl,data:e.classification,canFollowSubjects:e.canFollowSubjects,showFollowButtonSpinner:e.showFollowButtonSpinner,onToggleFollow:function(){return e.onToggleFollow(e.classification,s.LZ.ClassificationComingSoon)}}),!e.isComingSoon&&a.createElement("div",{className:"".concat(q?"row no-wrap":"")},a.createElement("div",{className:q?"col-9":""},o.map((function(t,n){return M(t)?a.createElement(a.Fragment,{key:t.id}):a.createElement(P.L,{headingElementRef:d,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:_,setIsEmpty:V,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,presentation:e.presentation,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,isBot:e.isBot,hasTableOfContents:q,lazyLoad:e.lazyLoad,dashboardTarget:x.S.getDashboardTargetType(e.dashboard),widgetIndex:n,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,contentType:e.contentType,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,preferences:t.preferences,onToggleFollowClassification:e.onToggleFollow,isPlugin:e.isPlugin})}))),q&&a.createElement("aside",{className:"col-3"},a.createElement(E,{widgets:H,title:e.classification.name,activeId:k,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:w})),!!(null==c?void 0:c.length)&&a.createElement(a.Fragment,null,a.createElement(A.B,{name:r.T.getPhrase(me,"videos"),description:""}),a.createElement(O.E4,{videos:c,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:l}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions,isPlugin:e.isPlugin}))),G&&a.createElement(b,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&a.createElement(I,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}function ve(){return a.createElement("div",{className:"bg-white px-4"},a.createElement(N.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(V.b2,null),a.createElement(ae,null)))}pe.defaultProps={appLinks:{}};var ge=n(14875),be=n(51365),ye=n(2284),he=n(17101),we=n(4594),Ee=n(16714),Se=n(12754),ke=n(89454),Ie=n(21750),Ce=n(39151),Te=n(1666),Le=n(7198),xe=n(25665),Ne=n(31949),Oe=n(69883),Ae=n(56520),Pe=n(91286),je=n(22902),Fe=n(79612),De=n(52167),Be=n(76753),Ue=n(10144),Re=n(99742),_e=n(14070),Ge=n(97291),We=n(51855),Ve=n(10671),Me=n(7179),He=n(27638),qe=n(86698),ze=n(33192),Ze=n(64364);function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function Ye(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Je(a.key),a)}}function Je(e){var t=function(e,t){if("object"!=Qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Qe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}function $e(e,t,n){return t=Ke(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xe()?Reflect.construct(t,n||[],Ke(e).constructor):t.apply(e,n))}function Xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xe=function(){return!!e})()}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function et(e,t){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},et(e,t)}var tt="subjects.topicNotFoundError",nt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$e(this,t,["Topic doesn't exist"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return r.T.getPhrase(tt,"heading")}},{key:"description",get:function(){return r.T.getPhrase(tt,"description")}},{key:"cta",get:function(){return{text:r.T.getPhrase(tt,"cta"),appLink:{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_ALL}}}}])&&Ye(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Ze.H),at=n(37802),rt=n(23737),it=n(183),ot=n(22490),ct=n(82431),st=n(4399),lt=r.T.encloseNamespace("subjects.classification");const ut={followButton:"HlRXj"};function dt(e){return dt="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},dt(e)}function mt(){mt=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),c=new O(a||[]);return r(o,"_invoke",{value:T(e,n,c)}),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",f="suspendedYield",p="executing",v="completed",g={};function b(){}function y(){}function h(){}var w={};l(w,o,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==n&&a.call(S,o)&&(w=S);var k=h.prototype=b.prototype=Object.create(w);function I(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,i,o,c){var s=d(e[r],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==dt(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=m;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var c=a.delegate;if(c){var s=L(c,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var l=d(t,n,a);if("normal"===l.type){if(r=a.done?v:f,l.arg===g)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r=v,a.method="throw",a.arg=l.arg)}}}function L(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.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 x(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(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 r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(dt(t)+" is not iterable")}return y.prototype=h,r(k,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:y,configurable:!0}),y.displayName=l(h,s,"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,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},I(C.prototype),l(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},I(k),l(k,s,"Generator"),l(k,o,(function(){return this})),l(k,"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=A,O.prototype={constructor:O,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(N),!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 r(a,r){return c.type="throw",c.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.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),N(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 r=a.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var pt=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))};gt.defaultProps={queryParams:{}};var vt=r.T.encloseNamespace("subjects.classification");function gt(e){var t,n,r,u,d,m,v,g,b,y,h,w,E,S,k=(E=a.useState(!1),S=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,r,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(E,S)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}(E,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=k[0],C=k[1],T=(0,Oe.Z)(),x=i.a.useGetFetchAsync(),N=(0,je.T)(),O=N.hasPermissions,A=N.hasLocalPermissions,P=(0,We.G)().isPlugin,F=i.a.useBasicFetch(Ce.L.config()),B=i.a.useBasicFetch(Ne.N.currentUser()),U=(0,Ae.R0)(),R=U.openInCurationStudioLabel,_=U.isUserCurator,G=U.getOpenInCurationStudioLink,W=i.a.useBasicFetch(O(Ee.C.CanSubmitFeedback)&&B.data&&Te.h.customer(B.data.customerId)),V=i.a.useBasicFetch(Ie.x.classification(e.id,null===(t=B.data)||void 0===t?void 0:t.id)),M=i.a.useBasicFetch(V.data&&Ie.x.presentationById(V.data.presentationId)),q=i.a.useBasicFetch(V.data&&ke.O.audiencesByPresentationId(V.data.presentationId)),z=i.a.useBasicFetch(V.data&&l.N.nextTopicSpecialEvent(e.id,V.data.presentationId)),Q=(0,qe.y)(),Y=Q.activePresentation,J=Q.availablePresentations,$=Q.canAccessPresentation,X=i.a.useBasicFetch((null===(n=B.data)||void 0===n?void 0:n.isAuthenticated)&&Te.h.yearGroups(B.data.customerId)),K=i.a.useBasicFetch(Ie.x.path(e.id)),ee=function(e,t,n){var a=(0,at.r)(null).hasTopicDirectories,r=(0,rt.y)({classificationId:e,queryParams:t,targetType:f.ku.Classification}),i=r.dashboard,o=r.isPreviewing,c=r.isTeacherOnly,s=(0,rt.y)({classificationId:e,queryParams:t,targetType:f.ku.ClassificationDirectory}).dashboard;return{dashboard:n===f.ku.Classification?i:s,canViewDirectory:a&&!!s.data,isTeacherOnly:c,isPreviewing:o}}(e.id,e.queryParams,e.targetType),te=ee.dashboard,ne=ee.canViewDirectory,ae=ee.isPreviewing,re=ee.isTeacherOnly,ie=i.a.useBasicFetch(Ie.x.regionAlternatives(e.id));(0,Fe.M)(Be.CG.getClassificationMetadata({content:V.data,phraseContext:{phraseHandler:vt,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:ze.f.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:ze.f.allowIndexing(),hrefLang:ze.f.getContentHrefLang(ie.data,(function(e,t){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[e,o.m.slugify(t)]}}))})),(0,Pe.v)(V,{notFound:nt}),(0,Me.P)({id:e.id,app:"topics"});var oe=(null==Y?void 0:Y.id)===(null===(r=M.data)||void 0===r?void 0:r.id),ce=(0,D.a)(j.r.MDDown),se=(0,D.a)(j.r.SMDown),le=(0,He.u)(s.LZ.ExpandableVideoThumbnail),ue=le.setFavourite,de=le.canFavourite,me=(0,Ve._)({location:Ve.i.VideoItem}),fe=O(Ee.C.FollowSubjects),Ze=(null===(u=V.data)||void 0===u?void 0:u.status)===ye.W.ComingSoon&&!ae,Qe=H.T.getActiveAudiencesFromParams(q.data,e.queryParams),Ye=null!==(d=null==Qe?void 0:Qe.map((function(e){return e.masterId})))&&void 0!==d?d:[];function Je(e,t){var n,a;if(fe&&V){var r=e.id.toString()===(null===(a=null===(n=V.data)||void 0===n?void 0:n.id)||void 0===a?void 0:a.toString());r&&C(!0);var i=Ue.i.isFollowing(e),o=i?xe.k.unfollow:xe.k.follow;x(o([e.id])).then((function(){c.k.logUserAction(et,{location:t,actionType:s.Vw.Follow,workflowPhase:s.eu.Complete,descriptor:i?s.DL.Off:s.DL.On,entity:s.py.Classification}),r||T.success(vt(i?"unfollowed":"followed",{name:e.name}))})).finally((function(){r&&C(!1)}))}}var $e,Xe,Ke=($e=V.data,Xe=e.queryParams,{audience:function(){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[$e.id,o.m.slugify($e.name)],params:Xe}},classification:function(e){var t=e||$e;return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[t.id,o.m.slugify(t.name)],params:Z.t.omit(Xe,["preview","dashboardId","skipPrompt"])}},classificationTopics:function(e){var t=e||$e;return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_TOPICS,args:[t.id,o.m.slugify(t.name)],params:Z.t.omit(Xe,["preview","dashboardId","skipPrompt"])}},videoType:function(e,t){return ot.W.getAppLink(e,Object.assign(Object.assign({},t),{context:it.Q.Widget,moviesAndTv:Xe.mtv}))},allTopics:function(e){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_ALL,params:{presentationId:e}}},series:function(e){return ct.j.getSeriesAppLink(e,{classificationId:$e.id,mtv:!!Xe.mtv||void 0})},subText:function(e){return ct.j.getSeriesAppLink(e.series,{classificationId:$e.id,mtv:!!Xe.mtv||void 0})},playlist:function(e){return{application:Ge.O.PLAYLISTS,action:_e.e.Playlists.PLAYLIST,args:[e.id,o.m.slugify(e.name)],params:{classificationId:$e.id,mtv:!!Xe.mtv||void 0}}},resource:function(e,t,n){return n?{application:Ge.O.VIDEOS,action:_e.e.Videos.PREVIEW_PDF,args:[e.id],params:{videoId:t}}:{application:Ge.O.SIGN_UP,action:_e.e.SignUp.SIGN_UP}}}),et={presentationId:null===(m=M.data)||void 0===m?void 0:m.id,presentationName:null===(v=M.data)||void 0===v?void 0:v.name,currentClassificationId:null===(g=V.data)||void 0===g?void 0:g.id,currentClassificationName:null===(b=V.data)||void 0===b?void 0:b.name,followingCurrentClassification:!!(null===(w=null===(h=null===(y=V.data)||void 0===y?void 0:y.followers)||void 0===h?void 0:h.data)||void 0===w?void 0:w.length),activeAudienceNames:(null==Qe?void 0:Qe.length)?Qe.map((function(e){return e.name})):null,activeAudienceIds:Ye.length?Ye:null};return F.data&&te.hasCompleted&&V.data&&M.data&&K.data&&J&&q.data&&z.hasCompleted?a.createElement(be.M.Provider,{value:me},a.createElement("div",{className:"position-relative"},!(!ae||!te.data)&&a.createElement(ge.a,{status:te.data.status,type:"topic"}),a.createElement(pe,{dashboard:te.data,classification:V.data,getWidgetContentRequest:L._.dashboardWidgetContent,getBreadcrumbs:function(){var t;if($(null===(t=M.data)||void 0===t?void 0:t.id))return function(){return function(e){var t=e.classification,n=e.path,a=e.presentation,r=e.availablePresentations,i=e.appLinks;if(e.queryParams.mtv){var o=[{name:lt("moviesAndTv"),appLink:{application:Ge.O.MOVIES_AND_TV,action:_e.e.MoviesAndTv.HOME}}];return n.slice(1,n.length).forEach((function(e){o.push({name:e.name,appLink:i.classification(e),active:e.name===t.name})})),o}var c=[{name:Ue.i.getExploreAllTopicsTitle(null==a?void 0:a.name,null==r?void 0:r.length),appLink:(0,st.Dp)(null==a?void 0:a.id)}];return n.forEach((function(e){c.push({name:e.name,appLink:i.classification(e),active:e.name===t.name})})),c}({appLinks:Ke,availablePresentations:J,classification:V.data,path:K.data,presentation:M.data,queryParams:e.queryParams})}}(),hasPermissions:O,hasLocalPermissions:A,presentation:M.data,onToggleFollow:Je,getBannerActions:function(){var e,t,n,a,r,i=!!(null===(n=null===(t=null===(e=V.data)||void 0===e?void 0:e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);if(!fe||Ze)return[];var o=[{label:se?"":vt(i?"unfollow":"follow"),onClick:function(){return Je(V.data,s.LZ.Banner)},svgName:i?p.vn.Check:p.vn.Bell,className:"btn follow-btn me-2 ".concat(i?"btn-outline-dark":"btn-dark"," ").concat(ut.followButton),button:!0,tooltip:i||ce?void 0:vt("followBtnTooltip"),showSpinner:I}];return _&&o.push({label:R,href:G(we.E.Subject,null===(a=V.data)||void 0===a?void 0:a.id,null===(r=M.data)||void 0===r?void 0:r.id),openInNewTab:!0}),o},audiences:e.queryParams.mtv?null:q.data,activeAudiences:Qe,analyticsData:et,imageCdnUrl:F.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:Re.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:re?Re.W.EmptyStates.Topics.TEACHER_ONLY:Re.W.EmptyStates.Topics.TOPIC,isComingSoon:Ze,showFollowButtonSpinner:I,comingSoonImageUrl:Re.W.EmptyStates.Topics.COMING_SOON,appLinks:Ke,isPreviewing:ae,setFavourite:ue,canFavourite:de,isViewCurrentPresentation:oe,canFollowSubjects:fe,onSubmitFeedback:O(Ee.C.CanSubmitFeedback)&&function(e){return pt(this,void 0,void 0,mt().mark((function t(){var n;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x(Le.f.submitFeedback({type:he.n.Footer,user:De.m.getUserInfo(B.data,W.data),tags:De.m.getTags(B.data,Se.x.Primary,O(Ee.C.StudentExperience),["topics","in product feedback"])},{reaction:e.type,feedback:e.content,location:"Topic Footer",presentationName:M.data.description,presentationId:M.data.id,dashboardName:te.data.name,dashboardId:te.data.id,classificationName:V.data.name,classificationId:V.data.id}));case 2:return n=t.sent,c.k.logUserAction({feedbackType:e.type,content:e.content,presentationId:M.data.id,classificationId:V.data.id,dashboardId:te.data.id},{actionType:s.Vw.Submit,location:s.LZ.ClassificationFooter,entity:s.py.Feedback,workflowPhase:s.eu.Complete}),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))},tableOfContentsId:e.queryParams.tocId,yearGroups:X.data,lazyLoad:!ze.f.isBot(),moviesAndTv:e.queryParams.mtv,isTeacherOnly:re,specialEvent:z.data,isBot:ze.f.isBot(),canViewDirectory:ne,tab:e.targetType===f.ku.Classification?"new-releases":"all-topics",isPlugin:P}))):a.createElement(ve,null)}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"}}}]);
|
|
3
|
-
//# sourceMappingURL=8139-
|
|
1
|
+
/*! For license information please see 8139-2a36098eae-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[8139],{50690:(e,t,n)=>{n.d(t,{b:()=>r});var a=n(12788),r={renderInPortalIfExists:function(e,t){return t?(0,a.createPortal)(e,t):e}}},7870:(e,t,n)=>{n.d(t,{N:()=>c});var a=n(97395),r=n(75896),i=n(110),o=n(40424),c={calendarEvents:function(e,t,n){return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/content",{from:e,to:t,presentationId:n}),publicUrl:a._.urlBuilder("/api/discover/special-events/content",{from:e,to:t,presentationId:n}),key:"presentation:".concat(n,":events:from:").concat(e,":to").concat(t)}},nextTopicSpecialEvent:function(e,t){var n={presentationId:t,limit:1,from:i.O.format(new Date,"YYYY-MM-DD"),objectType:o.VH.Classification};return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/object/".concat(e,"/next-events"),n),publicUrl:a._.urlBuilder("/api/discover/special-events/object/".concat(e,"/next-events"),n),key:"presentation:".concat(t,":events:classification:").concat(e),formatData:function(e){return r.m.first(e)}}}}},69395:(e,t,n)=>{n.d(t,{e:()=>o});var a=n(32735),r=n(91967);const i={disabled:"pERi4",disabledHighlighted:"AxyWm"};function o(e){var t=e.audience,n=e.highlight,o=e.setAudience,c=e.isDisabled,s=e.extraClasses,l=function(e,t){return e?t?"".concat(i.disabledHighlighted," text-light"):"bg-blue text-light":t?"".concat(i.disabled," text-secondary"):"bg-light"}(n,c),u="rounded-pill d-inline-block me-1 user-select-none ".concat(c?"cursor-default":"cursor-pointer"," ").concat(l," ").concat(s);return a.createElement("span",{className:u,onClick:function(){!c&&r.q.isFunction(o)&&o(t,!n)},role:"checkbox","aria-checked":n},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}o.defaultProps={extraClasses:""}},14875:(e,t,n)=>{n.d(t,{a:()=>y});var a=n(32735),r=n(23481),i=n(75902),o=n(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 s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=c(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=s(s(s({},i.GL.Archived,{svgName:o.vn.Archive,svgColorClassName:"text-secondary",actionName:"Archive",statusName:"Archived"}),i.GL.Draft,{svgName:o.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),i.GL.Published,{svgName:o.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),u=n(83914),d=n(40424);const m={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function f(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(m.badge);switch(e.status){case d.GL.Published:t+=" ".concat(m.published);break;case d.GL.Archived:t+=" ".concat(m.archived);break;case d.GL.Draft:t+=" ".concat(e.darkMode?m.draftDark:m.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function p(e){var t=l[e.status],n=t.statusName,r=t.svgName;return a.createElement("div",{className:f(e)},a.createElement(u.x,{svgName:r}),a.createElement("div",null,n))}var v=n(98364);const g={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var b=r.T.encloseNamespace("shared.classificationPreviewBanner");function y(e){return a.createElement("div",{className:"".concat(g.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},a.createElement("div",{className:"position-absolute d-flex ".concat(g.badgeWrapper)},a.createElement(p,{status:e.status,wrapperClassName:"".concat(g.badge),darkMode:!0})),a.createElement("div",{className:"flex-grow-1"},a.createElement("h1",{className:"text-center my-3 h5"},a.createElement(v.V,{emoji:"👀"}),b("topic"===e.type?"topicTitle":"companyTitle"))))}},28046:(e,t,n)=>{n.d(t,{l:()=>f,v:()=>p});var a=n(39479),r=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],o=["csv","txt"],c=["xls","xlt","xlsx"],s=["jpg","tif","png","bmp","gif","jpeg"],l="video/*",u=["zip","rar"],d=["ppt","pot","pps","pptx"],m=["srt"],f={IMAGES:".".concat(s.join(",.")),VIDEO:l,MIXED_MEDIA:".".concat(s.join(",."),",").concat(l),RESOURCES:".".concat([].concat(i,c,d,r,o,s,u).join(",.")),SUBTITLES:".".concat(m.join(",."))},p={getResourceType:function(e){var t=e.toLowerCase();return a.contains(i,t)?"document":a.contains(c,t)?"excel":a.contains(d,t)?"powerpoint":a.contains(r,t)?"pdf":a.contains(o,t)?"text":a.contains(s,t)?"image":a.contains(u,t)?"archive":a.contains(m,t)?"subtitle":""}}},44522:(e,t,n)=>{n.d(t,{p:()=>C,v:()=>T});var a=n(32735),r=n(110),i=n(50690),o=n(84963),c=n(73679),s=n(83657),l=n(23481),u=n(36848),d=n(83914),m=n(35223),f="shared.backButton";function p(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,c=t.textShadow,s=n?l.T.getPhrase(f,"backTo",{backToName:n}):l.T.getPhrase(f,"back"),p="black"===i?"":"text-white",v=c?"text-shadow":"";return a.createElement(u.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(p," ").concat(v)},a.createElement(d.x,{svgName:m.vn.ChevronLeft,size:d.S.Medium}),a.createElement("span",{className:"ms-1"},s))}p.defaultProps={color:"black",extraClasses:""};var v=n(36518),g=n(83345),b=n(10587),y=n(94232),h=n(54610),w=n(79967),E=n(67453);const S={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var k="".concat(b.y[h.__.Banners].width,":").concat(b.y[h.__.Banners].height);function I(e){return e.length<160?"h1":S.headingLarge}var C=a.memo((function(e){var t,n,l,u,d=e.heading,m=e.banner,f=e.imageCdnUrl,b=e.actions,C=e.sortComponent,T=e.blockColourClass,L=e.specialEvent,x=a.useContext(y.n),N=(0,w.k)().xxl?1920:1200,O=a.useMemo((function(){if(!L||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return L.endDate?L.startDate<=t&&L.endDate>=t:L.startDate===t}),[L]),A=e.imageOptions||{width:N,ratio:k,resizeType:h.Nq.Cover},P=!!m&&!!f&&E.j.createBannerUrl(m,{fallbackBaseUrl:f,fallbackCategoryName:d,type:h.__.Banners},A),j={className:"banner banner-header ".concat(e.bannerClassName),style:P?{backgroundImage:"url('".concat(P,"')")}:{}};!m&&T&&(delete j.style,j.className+=" ".concat(T));var F=e.detailsComponent;return i.b.renderInPortalIfExists(a.createElement("header",Object.assign({},j),a.createElement("div",{className:"container ".concat(S.container," position-relative inner-banner")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(p,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(S.bannerContent," px-2 ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?S.bannerContentWithLogo:""))},!!L&&a.createElement("div",{className:"position-relative ".concat(S.specialEventContainer)},a.createElement(c.s,{body:{type:L.endDate?"range":"day",text:L.endDate?"".concat(r.O.format(L.startDate,"DD"),"-").concat(r.O.format(L.endDate,"DD")):r.O.format(L.startDate,"DD")},month:r.O.format(L.startDate,"MMMM"),theme:e.calendarTheme})),a.createElement("div",null,O&&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(o.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),a.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&a.createElement("div",{className:"".concat(S.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(n=e.logo)||void 0===n?void 0:n.url)&&a.createElement(v.w,{src:E.j.createUrl(null===(l=e.logo)||void 0===l?void 0:l.url,{size:h.h2.Small})})),a.createElement("h1",{className:"text-white text-shadow pe-3 ".concat(S.heading," ").concat(I(d)," ").concat(e.alignLogoLeft?"w-50":"")},d,F&&a.createElement(F,null)))),!!b&&a.createElement("div",{className:S.actionsContainer},a.createElement(s.e,{actions:b,sortComponent:C,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(u=e.logo)||void 0===u?void 0:u.url)&&a.createElement("div",{className:S.logoContainer},a.createElement("img",{src:E.j.createUrl(e.logo.url,{size:h.h2.Small}),className:"rounded-circle"})))),null==x?void 0:x.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 T(){var e=a.useContext(y.n);return i.b.renderInPortalIfExists(a.createElement("div",{className:"partial-banner partial-loading-background ".concat(S.banner)}),null==e?void 0:e.container)}},49935:(e,t,n)=>{n.d(t,{Oo:()=>d,b2:()=>m});var a=n(32735),r=n(36848),i=n(86764),o=n(3747),c=n(5859),s=n(35223),l=n(83914),u=function(e){var t=e.breadcrumb,n=t.name,i=t.appLink,o=t.active,c=e.withBackIcon;return a.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?a.createElement("strong",null,n):a.createElement(r.F,{appLink:i},c&&a.createElement(l.x,{svgName:s.vn.ChevronLeft,size:l.S.Small}),a.createElement("span",{className:c?"ms-2":""},n)))},d=function(e){var t=e.breadcrumbs,n=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||n&&r<2?a.createElement(a.Fragment,null):n?a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(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})}))))},m=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return(0,o.a)(i.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},c.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:" "}}))}))))}))},38502:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),r=n(49985),i=n(36848),o=n(18559),c=n(11607),s=n(83914),l=n(87432);function u(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(s.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(l.Z.pillTabSelector,"\n ").concat(e.borderRadius?l.Z.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(l.Z.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?l.Z.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(l.Z.tabLink,"\n ")},a.createElement(u,{tab:e})):a.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(l.Z.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},75838:(e,t,n)=>{n.d(t,{w:()=>u});var a=n(32735),r=n(92869),i=n(49985),o=n(65858),c=n(36848),s=n(11607);const l={itemsWrapper:"m6mGm",anchorWrapper:"QptZj",default:"_AZa8",selectedItem:"Nuiel",disabled:"WIzWJ",floatIcon:"ARudn",arrowIcon:"tEF5Q",listIcon:"Ql2wi"};function u(e){var t={actionType:o.Vw.Click,entity:o.py.Widget,location:o.LZ.TableOfContents};return a.createElement("div",{className:"".concat(l.itemsWrapper)},e.items.map((function(n,o){return e.localState?a.createElement(s.L,{key:n.id,className:"".concat(l.anchorWrapper," ").concat(e.activeId===n.id?l.selectedItem:""),onClick:function(){r.t.preventScrollTop(),e.setControlledId(n.id),function(n){i.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),t)}(n)}},a.createElement("div",{className:"".concat(e.activeId||0!==o?"":l.default," ")},n.name)):a.createElement(c.F,{key:n.id,appLink:e.getAppLink(n),appLinkOptions:{replace:!0},className:"".concat(l.anchorWrapper," ").concat(e.activeId===n.id?l.selectedItem:""),onClick:function(){r.t.preventScrollTop(),e.setControlledId(n.id)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),analyticsOptions:t},a.createElement("div",{className:"".concat(e.activeId||0!==o?"":l.default," ")},n.name))})))}},17101:(e,t,n)=>{var a;n.d(t,{n:()=>a}),function(e){e[e.Other=0]="Other",e[e.SuggestImprovement=1]="SuggestImprovement",e[e.ReportBug=2]="ReportBug",e[e.RequestVideo=3]="RequestVideo",e[e.RaiseIssue=4]="RaiseIssue",e[e.GivePraise=5]="GivePraise",e[e.Footer=6]="Footer"}(a||(a={}))},94644:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(50242),r=n(81886),i=n(67058),o=n(14553),c=n(49267),s=n(49075),l={notFound:i.d,forbidden:{rating:o.q,yearLevel:o.q,region:c.a,privacy:o.q},badRequest:s._};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var i;i="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},l),t);i&&r.Q.Ry.isStatusCodeError(i)&&(i!==a.o.NotFound?i!==a.o.Forbidden?n.badRequest||r.Q.Ry.throw(new o.badRequest):n.forbidden||r.Q.Ry.throw(new o.forbidden.privacy):n.notFound||r.Q.Ry.throw(new o.notFound))}}},7198:(e,t,n)=>{n.d(t,{f:()=>r});var a=n(99940),r={submitFeedback:function(e,t){return{url:"{gateway}/v1/feedback",key:"submit:feedback",type:a.k.POST,data:Object.assign(Object.assign({},e),t)}}}},25665:(e,t,n)=>{n.d(t,{k:()=>s});var a=n(99940),r=n(97395);function i(e){return function(e){if(Array.isArray(e))return o(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 o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e){return r._.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},s={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(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollow:function(e,t,n){return{url:c(e),key:"unfollow:".concat(e.join(",")),type:a.k.DELETE,success:t,error:n,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var a=n(32735),r=n(94644);function i(e){return e.map((function(e){return e.statusCode})).join(":")}function o(e,t,n){var o=Array.isArray(e)?e:[e];(0,a.useEffect)((function(){o.forEach((function(e){(0,r.r)(e.statusCode,t,n)}))}),[i(o),t,n])}},94631:(e,t,n)=>{n.d(t,{D:()=>r});var a=n(32735);function r(e){var t=a.useRef();return a.useEffect((function(){t.current=e})),t.current}},65332:(e,t,n)=>{n.d(t,{D:()=>i});var a,r=n(32735),i=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,o=e.setControlledId,c=r.useRef(0);r.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(a=window.setTimeout((function(){o("")}),800));if(e.isIntersecting)t(e.target.id),c.current=window.scrollY;else{var r=c.current-window.scrollY>0,s=n.findIndex((function(t){return t.id===e.target.id})),l=n[s-1];r&&(null==l?void 0:l.id)&&t(null==l?void 0:l.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){a&&window.clearTimeout(a),e.disconnect()}}),[t,n.length,i])}},76196:(e,t,n)=>{n.d(t,{P:()=>o});var a=n(32735),r=n(94631);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var o=function(e,t){var n,o,c=(n=a.useState(!1),o=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,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(n,o)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],l=c[1],u=(0,r.D)(t),d=t;a.useLayoutEffect((function(){if(!s||u!==d){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===d}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),s||l(!0)}}}),[e,u,d,s])}},52167:(e,t,n)=>{n.d(t,{m:()=>l});var a=n(53301),r=n.n(a),i=n(28046),o=n(19808),c=n(86613);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var l={getUserInfo:function(e,t){return{id:e.id,username:e.username,email:e.email,userType:e.role===c.i.Admin?"Admin":"Staff",customerId:e.customerId,cvcId:t.crmId,customerName:t.name,instanceRegion:e.instanceRegion,contentRegion:e.contentRegion}},mapInstanceRegionToTag:function(e){switch(e){case o.b.AU:return"au";case o.b.NZ:return"nz";case o.b.UK:return"uk";case o.b.US:return"us"}},getTags:function(e,t,n,a){var r,i=[t].concat(function(e){if(Array.isArray(e))return s(e)}(r=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());i.push(n?"student":"staff"),e.role===c.i.Admin&&i.push("administrator");var o=l.mapInstanceRegionToTag(e.instanceRegion);return o&&i.push(o),i},categorizeFiles:function(e){return e.reduce((function(e,t){var n=t.get("fileInfo");return r().isValidFile(t.get("file"),i.l.VIDEO)?e.videoUrls.push(null==n?void 0:n.url):e.imageUrls.push(null==n?void 0:n.url),e}),{imageUrls:[],videoUrls:[]})}}},4399:(e,t,n)=>{n.d(t,{$7:()=>o,Dp:()=>c});var a=n(28400),r=n(14070),i=n(97291),o=function(e){return function(t){return{application:i.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION,args:t?[t.id,a.m.slugify(t.name)]:[],params:e||{}}}},c=function(e){return{application:i.O.SUBJECT,action:r.e.Subjects.CLASSIFICATION_ALL,params:e?{presentationId:e}:{}}}},68139:(e,t,n)=>{n.r(t),n.d(t,{CuratedClassificationView:()=>gt});var a=n(32735),r=n(23481),i=n(20354),o=n(28400),c=n(49985),s=n(65858),l=n(7870),u=n(23232),d=n(83345),m=n(76177),f=n(40424),p=n(35223),v="subjects.curatedClassificationEmptyState",g=r.T.encloseNamespace(v);function b(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===f.GL.Archived;return a.createElement(d.D.Provider,{value:v},a.createElement(u.u,null,a.createElement(u.u.Image,{src:e.imageUrl,altText:g("headingForNP")}),e.isReadonly?a.createElement(a.Fragment,null,a.createElement(u.u.Heading,null,a.createElement(d.x,{namespace:v,phrase:"headingForCurator"})),a.createElement(u.u.Info,null,a.createElement(d.x,{namespace:v,phrase:"info"})),a.createElement(m.u,{title:i?r.T.getPhrase(v,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(u.u.Cta,{text:r.T.getPhrase(v,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:p.vn.Plus,disabled:i}))):a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"headingForNP"}))))}var y=n(81886),h=n(75838);const w={container:"k1iOO"};function E(e){return a.createElement("div",{className:"".concat(w.container," ps-3")},a.createElement("h2",{className:"h5"},e.title),a.createElement(h.w,{items:e.widgets,activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:function(e){var t=y.Q.C$.getCurrentAppLink(),n=t.params?Object.assign({},t.params):{};return n.tocId=e.id,Object.assign(Object.assign({},t),{params:n})}}))}var S="subjects.teacherOnlyEmptyState",k=r.T.encloseNamespace(S);function I(e){var t;return a.createElement(d.D.Provider,{value:S},a.createElement(u.u,null,a.createElement(u.u.Image,{src:e.imageUrl,altText:k("heading")}),a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"heading"})),a.createElement(u.u.Info,null,a.createElement(d.x,{phrase:"info"})),a.createElement(u.u.Cta,{text:k("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var C=n(75896),T=n(42308),L=n(80889),x=n(21366),N=n(44522),O=n(13231),A=n(88513),P=n(97717),j=n(86764),F=n(78479),D=n(3747),B=n(65332),U=n(76196),R=n(42735),_="subjects.classificationComingSoon",G=r.T.encloseNamespace(_);function W(e){var t,n,r=!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);return a.createElement(d.D.Provider,{value:_},a.createElement(u.u,{className:"pt-0"},a.createElement(u.u.Image,{src:e.imageUrl,altText:G("comingSoon")}),a.createElement(u.u.Heading,null,a.createElement(d.x,{phrase:"comingSoon"})),a.createElement(u.u.Info,null,a.createElement(d.x,{phrase:"info"})),e.canFollowSubjects&&a.createElement(R.K,{svgName:r?p.vn.Check:p.vn.Bell,onClick:function(){var t;null===(t=e.onToggleFollow)||void 0===t||t.call(e)},showSpinner:e.showFollowButtonSpinner,className:"btn follow-btn me-2 ".concat(r?"btn-outline-dark":"btn-dark")},a.createElement(d.x,{phrase:r?"unfollow":"follow"}))))}var V=n(49935),M=n(79967),H=n(69454),q=n(57900),z=n(2948),Z=n(1048),Q=n(69395),Y=n(11607),J=n(38143),$=n(5859);function X(e,t){if(e){if("string"==typeof e)return K(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ee="subjects.audienceFilter";function te(e){var t,n,r=e.audiences,i=e.activeAudiences,o=e.disabled,c=e.appLink,s=(t=(0,z.D)(J.g.AUDIENCE_FILTER,void 0,{storage:q.Z1.SessionStorage}),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,r,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(t,n)||X(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.")}())[1];function l(e,t){var n,a,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||X(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.")}()}(null!==(n=null==i?void 0:i.map((function(e){return e.name})))&&void 0!==n?n:[]),[e.name]):i.map((function(e){return e.name})).filter((function(t){return t!==e.name}));y.Q.C$.trigger(Object.assign(Object.assign({},c),{params:(a=Z.t.omit(c.params,["a"]),r.length?Object.assign({},a,{a:r}):a)}),{replace:!0})}return a.useEffect((function(){e.disablePersist||s(i)}),[i]),r&&r.length?a.createElement("div",{className:"d-flex flex-wrap row-gap-2"},r.map((function(e){return a.createElement(Q.e,{key:e.masterId,audience:e,highlight:!!(null==i?void 0:i.find((function(t){return t.masterId===e.masterId}))),setAudience:l,isDisabled:o})})),!!i&&!!Object.keys(i).length&&a.createElement(Y.L,{className:"info-link d-inline-block fw-semibold ms-1",onClick:function(){var e=Z.t.omit(c.params,["a"]);y.Q.C$.trigger(Object.assign(Object.assign({},c),{params:e}),{replace:!0})}},a.createElement(d.x,{namespace:ee,phrase:"clear"}))):a.createElement(a.Fragment,null)}var ne=$.u.getPartialLoadingItems({numItems:6}),ae=function(){return a.createElement("div",{className:"d-flex flex-wrap row-gap-2"},ne.map((function(e,t){var n=e.width;return a.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:" "},style:{width:n}})})))};function re(e){return a.createElement(te,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist})}var ie=n(38502),oe="shared.classificationDashboard";function ce(e){var t,n,i,o,c,l,u,d,m=(0,M.k)(),f=m.lg||m.xl||m.xxl||m.xs;return a.createElement(ie.r,{borderRadius:"sm",className:m.xs?"w-100":"",listClassName:"d-flex flex-nowrap",tabs:[{name:f?r.T.getPhrase(oe,"newReleases"):"",appLink:e.isReadonly?null:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,e.classification),active:"new-releases"===e.activeTab,svgName:p.vn.Sparkle,analyticsData:{id:"new-releases",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:r.T.getPhrase(oe,"newReleases"),url:y.Q.C$.getHref(null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,e.classification))},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.MagicTabs},className:m.xs?"w-100":""},{name:f?r.T.getPhrase(oe,"allTopics"):"",appLink:e.isReadonly?null:null===(l=null===(c=e.appLinks)||void 0===c?void 0:c.classificationTopics)||void 0===l?void 0:l.call(c,e.classification),active:"all-topics"===e.activeTab,svgName:p.vn.Grid,analyticsData:{id:"all-topics",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:r.T.getPhrase(oe,"allTopics"),url:y.Q.C$.getHref(null===(d=null===(u=e.appLinks)||void 0===u?void 0:u.classificationTopics)||void 0===d?void 0:d.call(u,e.classification))},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.MagicTabs},className:m.xs?"w-100":""}]})}function se(e){var t,n,r,i,o,c,s,l=(0,M.k)(),u=(i=e.audiences,o=e.activeAudiences,c=e.isEmpty,!!e.isComingSoon||!(!c||(null==o?void 0:o.length))||!H.T.shouldShowAudiences(i));return a.createElement("div",{className:(s="d-flex flex-column py-3 mb-3",e.isComingSoon||(s+=" border-bottom"),!e.canViewDirectory&&!u||l.xs?s+" row-gap-3":s)},a.createElement("div",{className:function(){var e="";return u&&(e+="d-flex align-items-center justify-content-between"),l.xs&&(e+=" row-gap-3"),e}()},a.createElement(V.Oo,{breadcrumbs:null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e)}),e.canViewDirectory&&u&&a.createElement(ce,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})),a.createElement("div",{className:function(){var e="d-flex align-items-end justify-content-between";return l.xs&&(e+=" row-gap-3 flex-wrap"),e}()},!u&&a.createElement(re,{audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(r=(n=e.appLinks).audience)||void 0===r?void 0:r.call(n),isReadonly:e.isReadonly,disablePersist:!e.isViewingCurrentPresentation}),e.canViewDirectory&&!u&&a.createElement(ce,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})))}function le(e){return le="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},le(e)}function ue(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=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(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 de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var me="shared.classificationDashboard";function fe(e){return e.widgetId===T.z.Blurb&&e.templateId===F.f.Heading}function pe(e){var t,n=function(e,t){var n,r,o,c,s=a.useMemo((function(){return e?{isSystemGeneratedDashboard:x.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===T.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=s.isSystemGeneratedDashboard,u=s.systemGeneratedVideoWidget,d=i.a.useBasicFetch(!!u&&L._.dashboardWidgetContent(null==u?void 0:u.id,x.S.getWidgetParams(u.widgetId,u.templateId,x.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==u?void 0:u.templateId));return l?{widgets:null!==(r=null===(n=null==e?void 0:e.widgets)||void 0===n?void 0:n.filter((function(e){return e.widgetId!==T.z.ClassificationPinnedVideos})))&&void 0!==r?r:[],videoList:null!==(c=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==c?c:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:C.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),o=n.widgets,c=n.videoList,l=n.videoListWidgetId,u=(0,D.a)(j.r.LGDown),d=a.useRef(new Set),m=a.useMemo((function(){return o.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==o?void 0:o.length]),p=ue(a.useState(m),2),v=p[0],g=p[1],y=ue(a.useState(window.location.hash.slice(1)||""),2),h=y[0],w=y[1],S=ue(a.useState(""),2),k=S[0],F=S[1],R=Array.from(d.current);function _(t,n,a){var r,i=x.S.getWidgetParams(n,a,x.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,i,a)}(0,U.P)(R,e.tableOfContentsId),(0,B.D)({setActiveId:F,headingElements:R,controlledId:h,setControlledId:w});var G=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===f.GL.Archived&&!e.isReadonly||e.dashboard.status===f.GL.Draft&&!e.isPreviewing||!(null==o?void 0:o.length)||(!c||!c.length)&&Object.values(v).every((function(e){return!!e})));a.useEffect((function(){G&&g(m)}),[null==o?void 0:o.length]);var V=a.useCallback((function(e,t){if(v[e]!==t){for(var n,a=(Object.assign(Object.assign({},v),(u={},m=t,(d=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=le(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}(d=e))in u?Object.defineProperty(u,d,{value:m,enumerable:!0,configurable:!0,writable:!0}):u[d]=m,u))),r=0;r<o.length;){var i=o[r];if(fe(i)){for(var c=!0,s=r+1;c&&s<o.length;){var l=o[s];if(fe(l))break;a[l.id]||(n=l).widgetId===T.z.CuratedClassifications||n.widgetId===T.z.Classifications||(c=!1),s++}r=s,a[i.id]=c}else r++}g(a)}var u,d,m}),[v,o]);function M(e){return fe(e)&&v[e.id]}var H=o.filter((function(e){var t;return!M(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),q=H.length>=2&&!u;return a.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},a.createElement(N.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),a.createElement(se,{classification:e.classification,presentation:e.presentation,appLinks:e.appLinks,activeTab:e.tab,audiences:e.audiences,activeAudiences:e.activeAudiences,getBreadcrumbs:e.getBreadcrumbs,canViewDirectory:e.canViewDirectory,isComingSoon:e.isComingSoon,isEmpty:G,isViewingCurrentPresentation:e.isViewCurrentPresentation,isReadonly:e.isReadonly}),e.isComingSoon&&a.createElement(W,{imageUrl:e.comingSoonImageUrl,data:e.classification,canFollowSubjects:e.canFollowSubjects,showFollowButtonSpinner:e.showFollowButtonSpinner,onToggleFollow:function(){return e.onToggleFollow(e.classification,s.LZ.ClassificationComingSoon)}}),!e.isComingSoon&&a.createElement("div",{className:"".concat(q?"row no-wrap":"")},a.createElement("div",{className:q?"col-9":""},o.map((function(t,n){return M(t)?a.createElement(a.Fragment,{key:t.id}):a.createElement(P.L,{headingElementRef:d,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:_,setIsEmpty:V,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,presentation:e.presentation,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,isBot:e.isBot,hasTableOfContents:q,lazyLoad:e.lazyLoad,dashboardTarget:x.S.getDashboardTargetType(e.dashboard),widgetIndex:n,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,contentType:e.contentType,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,preferences:t.preferences,onToggleFollowClassification:e.onToggleFollow,isPlugin:e.isPlugin})}))),q&&a.createElement("aside",{className:"col-3"},a.createElement(E,{widgets:H,title:e.classification.name,activeId:k,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:w})),!!(null==c?void 0:c.length)&&a.createElement(a.Fragment,null,a.createElement(A.B,{name:r.T.getPhrase(me,"videos"),description:""}),a.createElement(O.E4,{videos:c,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:l}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions,isPlugin:e.isPlugin}))),G&&a.createElement(b,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&a.createElement(I,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}function ve(){return a.createElement("div",{className:"bg-white px-4"},a.createElement(N.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(V.b2,null),a.createElement(ae,null)))}pe.defaultProps={appLinks:{}};var ge=n(14875),be=n(51365),ye=n(2284),he=n(17101),we=n(4594),Ee=n(16714),Se=n(12754),ke=n(89454),Ie=n(21750),Ce=n(39151),Te=n(1666),Le=n(7198),xe=n(25665),Ne=n(31949),Oe=n(69883),Ae=n(56520),Pe=n(91286),je=n(22902),Fe=n(79612),De=n(52167),Be=n(76753),Ue=n(10144),Re=n(99742),_e=n(14070),Ge=n(97291),We=n(51855),Ve=n(10671),Me=n(7179),He=n(27638),qe=n(86698),ze=n(33192),Ze=n(64364);function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function Ye(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Je(a.key),a)}}function Je(e){var t=function(e,t){if("object"!=Qe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Qe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}function $e(e,t,n){return t=Ke(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xe()?Reflect.construct(t,n||[],Ke(e).constructor):t.apply(e,n))}function Xe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xe=function(){return!!e})()}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ke(e)}function et(e,t){return et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},et(e,t)}var tt="subjects.topicNotFoundError",nt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$e(this,t,["Topic doesn't exist"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&et(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return r.T.getPhrase(tt,"heading")}},{key:"description",get:function(){return r.T.getPhrase(tt,"description")}},{key:"cta",get:function(){return{text:r.T.getPhrase(tt,"cta"),appLink:{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_ALL}}}}])&&Ye(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Ze.H),at=n(37802),rt=n(23737),it=n(183),ot=n(22490),ct=n(82431),st=n(4399),lt=r.T.encloseNamespace("subjects.classification");const ut={followButton:"HlRXj"};function dt(e){return dt="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},dt(e)}function mt(){mt=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),c=new O(a||[]);return r(o,"_invoke",{value:T(e,n,c)}),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",f="suspendedYield",p="executing",v="completed",g={};function b(){}function y(){}function h(){}var w={};l(w,o,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==n&&a.call(S,o)&&(w=S);var k=h.prototype=b.prototype=Object.create(w);function I(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,i,o,c){var s=d(e[r],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==dt(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,c)}),(function(e){n("throw",e,o,c)})):t.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=m;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var c=a.delegate;if(c){var s=L(c,a);if(s){if(s===g)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var l=d(t,n,a);if("normal"===l.type){if(r=a.done?v:f,l.arg===g)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(r=v,a.method="throw",a.arg=l.arg)}}}function L(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.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 x(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(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 r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(dt(t)+" is not iterable")}return y.prototype=h,r(k,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:y,configurable:!0}),y.displayName=l(h,s,"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,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},I(C.prototype),l(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},I(k),l(k,s,"Generator"),l(k,o,(function(){return this})),l(k,"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=A,O.prototype={constructor:O,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(N),!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 r(a,r){return c.type="throw",c.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.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),N(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 r=a.arg;N(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var pt=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{s(a.next(e))}catch(e){i(e)}}function c(e){try{s(a.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,c)}s((a=a.apply(e,t||[])).next())}))};gt.defaultProps={queryParams:{}};var vt=r.T.encloseNamespace("subjects.classification");function gt(e){var t,n,r,u,d,m,v,g,b,y,h,w,E,S,k=(E=a.useState(!1),S=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,r,i,o,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return c}}(E,S)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}(E,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=k[0],C=k[1],T=(0,Oe.Z)(),x=i.a.useGetFetchAsync(),N=(0,je.T)(),O=N.hasPermissions,A=N.hasLocalPermissions,P=(0,We.G)().isPlugin,F=i.a.useBasicFetch(Ce.L.config()),B=i.a.useBasicFetch(Ne.N.currentUser()),U=(0,Ae.R0)(),R=U.openInCurationStudioLabel,_=U.isUserCurator,G=U.getOpenInCurationStudioLink,W=i.a.useBasicFetch(O(Ee.C.CanSubmitFeedback)&&B.data&&Te.h.customer(B.data.customerId)),V=i.a.useBasicFetch(Ie.x.classification(e.id,null===(t=B.data)||void 0===t?void 0:t.id)),M=i.a.useBasicFetch(V.data&&Ie.x.presentationById(V.data.presentationId)),q=i.a.useBasicFetch(V.data&&ke.O.audiencesByPresentationId(V.data.presentationId)),z=i.a.useBasicFetch(V.data&&l.N.nextTopicSpecialEvent(e.id,V.data.presentationId)),Q=(0,qe.y)(),Y=Q.activePresentation,J=Q.availablePresentations,$=Q.canAccessPresentation,X=i.a.useBasicFetch((null===(n=B.data)||void 0===n?void 0:n.isAuthenticated)&&Te.h.yearGroups(B.data.customerId)),K=i.a.useBasicFetch(Ie.x.path(e.id)),ee=function(e,t,n){var a=(0,at.r)(null).hasTopicDirectories,r=(0,rt.y)({classificationId:e,queryParams:t,targetType:f.ku.Classification}),i=r.dashboard,o=r.isPreviewing,c=r.isTeacherOnly,s=(0,rt.y)({classificationId:e,queryParams:t,targetType:f.ku.ClassificationDirectory}).dashboard;return{dashboard:n===f.ku.Classification?i:s,canViewDirectory:a&&!!s.data,isTeacherOnly:c,isPreviewing:o}}(e.id,e.queryParams,e.targetType),te=ee.dashboard,ne=ee.canViewDirectory,ae=ee.isPreviewing,re=ee.isTeacherOnly,ie=i.a.useBasicFetch(Ie.x.regionAlternatives(e.id));(0,Fe.M)(Be.CG.getClassificationMetadata({content:V.data,phraseContext:{phraseHandler:vt,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:ze.f.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:ze.f.allowIndexing(),hrefLang:ze.f.getContentHrefLang(ie.data,(function(e,t){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[e,o.m.slugify(t)]}}))})),(0,Pe.v)(V,{notFound:nt}),(0,Me.P)({id:e.id,app:"topics"});var oe=(null==Y?void 0:Y.id)===(null===(r=M.data)||void 0===r?void 0:r.id),ce=(0,D.a)(j.r.MDDown),se=(0,D.a)(j.r.SMDown),le=(0,He.u)(s.LZ.ExpandableVideoThumbnail),ue=le.setFavourite,de=le.canFavourite,me=(0,Ve._)({location:Ve.i.VideoItem}),fe=O(Ee.C.FollowSubjects),Ze=(null===(u=V.data)||void 0===u?void 0:u.status)===ye.W.ComingSoon&&!ae,Qe=H.T.getActiveAudiencesFromParams(q.data,e.queryParams),Ye=null!==(d=null==Qe?void 0:Qe.map((function(e){return e.masterId})))&&void 0!==d?d:[];function Je(e,t){var n,a;if(fe&&V){var r=e.id.toString()===(null===(a=null===(n=V.data)||void 0===n?void 0:n.id)||void 0===a?void 0:a.toString());r&&C(!0);var i=Ue.i.isFollowing(e),o=i?xe.k.unfollow:xe.k.follow;x(o([e.id])).then((function(){c.k.logUserAction(et,{location:t,actionType:s.Vw.Follow,workflowPhase:s.eu.Complete,descriptor:i?s.DL.Off:s.DL.On,entity:s.py.Classification}),r||T.success(vt(i?"unfollowed":"followed",{name:e.name}))})).finally((function(){r&&C(!1)}))}}var $e,Xe,Ke=($e=V.data,Xe=e.queryParams,{audience:function(){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[$e.id,o.m.slugify($e.name)],params:Xe}},classification:function(e){var t=e||$e;return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION,args:[t.id,o.m.slugify(t.name)],params:Z.t.omit(Xe,["preview","dashboardId","skipPrompt"])}},classificationTopics:function(e){var t=e||$e;return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_TOPICS,args:[t.id,o.m.slugify(t.name)],params:Z.t.omit(Xe,["preview","dashboardId","skipPrompt"])}},videoType:function(e,t){return ot.W.getAppLink(e,Object.assign(Object.assign({},t),{context:it.Q.Widget,moviesAndTv:Xe.mtv}))},allTopics:function(e){return{application:Ge.O.SUBJECT,action:_e.e.Subjects.CLASSIFICATION_ALL,params:{presentationId:e}}},series:function(e){return ct.j.getSeriesAppLink(e,{classificationId:$e.id,mtv:!!Xe.mtv||void 0})},subText:function(e){return ct.j.getSeriesAppLink(e.series,{classificationId:$e.id,mtv:!!Xe.mtv||void 0})},playlist:function(e){return{application:Ge.O.PLAYLISTS,action:_e.e.Playlists.PLAYLIST,args:[e.id,o.m.slugify(e.name)],params:{classificationId:$e.id,mtv:!!Xe.mtv||void 0}}},resource:function(e,t,n){return n?{application:Ge.O.VIDEOS,action:_e.e.Videos.PREVIEW_PDF,args:[e.id],params:{videoId:t}}:{application:Ge.O.SIGN_UP,action:_e.e.SignUp.SIGN_UP}}}),et={presentationId:null===(m=M.data)||void 0===m?void 0:m.id,presentationName:null===(v=M.data)||void 0===v?void 0:v.name,currentClassificationId:null===(g=V.data)||void 0===g?void 0:g.id,currentClassificationName:null===(b=V.data)||void 0===b?void 0:b.name,followingCurrentClassification:!!(null===(w=null===(h=null===(y=V.data)||void 0===y?void 0:y.followers)||void 0===h?void 0:h.data)||void 0===w?void 0:w.length),activeAudienceNames:(null==Qe?void 0:Qe.length)?Qe.map((function(e){return e.name})):null,activeAudienceIds:Ye.length?Ye:null};return F.data&&te.hasCompleted&&V.data&&M.data&&K.data&&J&&q.data&&z.hasCompleted?a.createElement(be.M.Provider,{value:me},a.createElement("div",{className:"position-relative"},!(!ae||!te.data)&&a.createElement(ge.a,{status:te.data.status,type:"topic"}),a.createElement(pe,{dashboard:te.data,classification:V.data,getWidgetContentRequest:L._.dashboardWidgetContent,getBreadcrumbs:function(){var t;if($(null===(t=M.data)||void 0===t?void 0:t.id))return function(){return function(e){var t=e.classification,n=e.path,a=e.presentation,r=e.availablePresentations,i=e.appLinks;if(e.queryParams.mtv){var o=[{name:lt("moviesAndTv"),appLink:{application:Ge.O.MOVIES_AND_TV,action:_e.e.MoviesAndTv.HOME}}];return n.slice(1,n.length).forEach((function(e){o.push({name:e.name,appLink:i.classification(e),active:e.name===t.name})})),o}var c=[{name:Ue.i.getExploreAllTopicsTitle(null==a?void 0:a.name,null==r?void 0:r.length),appLink:(0,st.Dp)(null==a?void 0:a.id)}];return n.forEach((function(e){c.push({name:e.name,appLink:i.classification(e),active:e.name===t.name})})),c}({appLinks:Ke,availablePresentations:J,classification:V.data,path:K.data,presentation:M.data,queryParams:e.queryParams})}}(),hasPermissions:O,hasLocalPermissions:A,presentation:M.data,onToggleFollow:Je,getBannerActions:function(){var e,t,n,a,r,i=!!(null===(n=null===(t=null===(e=V.data)||void 0===e?void 0:e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);if(!fe||Ze)return[];var o=[{label:se?"":vt(i?"unfollow":"follow"),onClick:function(){return Je(V.data,s.LZ.Banner)},svgName:i?p.vn.Check:p.vn.Bell,className:"btn follow-btn me-2 ".concat(i?"btn-outline-dark":"btn-dark"," ").concat(ut.followButton),button:!0,tooltip:i||ce?void 0:vt("followBtnTooltip"),showSpinner:I}];return _&&o.push({label:R,href:G(we.E.Subject,null===(a=V.data)||void 0===a?void 0:a.id,null===(r=M.data)||void 0===r?void 0:r.id),openInNewTab:!0}),o},audiences:e.queryParams.mtv?null:q.data,activeAudiences:Qe,analyticsData:et,imageCdnUrl:F.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:Re.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:re?Re.W.EmptyStates.Topics.TEACHER_ONLY:Re.W.EmptyStates.Topics.TOPIC,isComingSoon:Ze,showFollowButtonSpinner:I,comingSoonImageUrl:Re.W.EmptyStates.Topics.COMING_SOON,appLinks:Ke,isPreviewing:ae,setFavourite:ue,canFavourite:de,isViewCurrentPresentation:oe,canFollowSubjects:fe,onSubmitFeedback:O(Ee.C.CanSubmitFeedback)&&function(e){return pt(this,void 0,void 0,mt().mark((function t(){var n;return mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x(Le.f.submitFeedback({type:he.n.Footer,user:De.m.getUserInfo(B.data,W.data),tags:De.m.getTags(B.data,Se.x.Primary,O(Ee.C.StudentExperience),["topics","in product feedback"])},{reaction:e.type,feedback:e.content,location:"Topic Footer",presentationName:M.data.description,presentationId:M.data.id,dashboardName:te.data.name,dashboardId:te.data.id,classificationName:V.data.name,classificationId:V.data.id}));case 2:return n=t.sent,c.k.logUserAction({feedbackType:e.type,content:e.content,presentationId:M.data.id,classificationId:V.data.id,dashboardId:te.data.id},{actionType:s.Vw.Submit,location:s.LZ.ClassificationFooter,entity:s.py.Feedback,workflowPhase:s.eu.Complete}),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))},tableOfContentsId:e.queryParams.tocId,yearGroups:X.data,lazyLoad:!ze.f.isBot(),moviesAndTv:e.queryParams.mtv,isTeacherOnly:re,specialEvent:z.data,isBot:ze.f.isBot(),canViewDirectory:ne,tab:e.targetType===f.ku.Classification?"new-releases":"all-topics",isPlugin:P}))):a.createElement(ve,null)}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"}}}]);
|
|
3
|
+
//# sourceMappingURL=8139-2a36098eae-lite.chunk.js.map
|