@clickview/streamable-learning 0.12.1-rc.2 → 0.13.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{1437-streamable-learning-5f51fab46d.chunk.css → 1437-streamable-learning-4e8b60a4ff.chunk.css} +2 -2
  3. package/dist/css/{5594-streamable-learning-ffb770af33.chunk.css → 5594-streamable-learning-e57a5a8444.chunk.css} +2 -2
  4. package/dist/css/{719-streamable-learning-2753997e3f.chunk.css → 719-streamable-learning-7133f6f383.chunk.css} +1 -1
  5. package/dist/css/{7303-streamable-learning-339eb189ee.chunk.css → 7303-streamable-learning-24eb7c7729.chunk.css} +2 -2
  6. package/dist/css/{7545-streamable-learning-272e5593aa.chunk.css → 7545-streamable-learning-16b4fe0f3a.chunk.css} +1 -1
  7. package/dist/css/{streamable-learning-6cf570b2e4.css → streamable-learning-585eec14ea.css} +1 -1
  8. package/dist/languages/en.json +1 -1
  9. package/dist/scripts/1067-1ae5cb21b1-streamable-learning.chunk.js +1 -0
  10. package/dist/scripts/1437-fdc66a199a-streamable-learning.chunk.js +1 -0
  11. package/dist/scripts/2861-b10177d969-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/{2967-fc7e5dd922-streamable-learning.chunk.js → 2967-073ef8276e-streamable-learning.chunk.js} +1 -1
  13. package/dist/scripts/2987-66f91261bd-streamable-learning.chunk.js +1 -0
  14. package/dist/scripts/339-95c85b910e-streamable-learning.chunk.js +1 -0
  15. package/dist/scripts/{4254-c97776bd5d-streamable-learning.chunk.js → 4254-355be6131d-streamable-learning.chunk.js} +1 -1
  16. package/dist/scripts/4797-2e2988c896-streamable-learning.chunk.js +2 -0
  17. package/dist/scripts/487-acdf2873c1-streamable-learning.chunk.js +1 -0
  18. package/dist/scripts/{5594-63024a37f0-streamable-learning.chunk.js → 5594-edeedc2cf7-streamable-learning.chunk.js} +1 -1
  19. package/dist/scripts/625-a3948043cc-streamable-learning.chunk.js +1 -0
  20. package/dist/scripts/6533-caa778d5da-streamable-learning.chunk.js +1 -0
  21. package/dist/scripts/7102-e382a2b1e6-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/719-5834e07d0d-streamable-learning.chunk.js +2 -0
  23. package/dist/scripts/7303-833f693f9c-streamable-learning.chunk.js +2 -0
  24. package/dist/scripts/7545-b466a6ba02-streamable-learning.chunk.js +1 -0
  25. package/dist/scripts/7694-43d713c991-streamable-learning.chunk.js +2 -0
  26. package/dist/scripts/9908-9e6a9a4a5e-streamable-learning.chunk.js +2 -0
  27. package/dist/scripts/bundle-25f87c29cd.min.js +2 -0
  28. package/package.json +1 -1
  29. package/dist/scripts/1067-7f82ade4a9-streamable-learning.chunk.js +0 -1
  30. package/dist/scripts/1437-76d56b4d4c-streamable-learning.chunk.js +0 -1
  31. package/dist/scripts/2861-0236ce939f-streamable-learning.chunk.js +0 -1
  32. package/dist/scripts/2987-151cbbceda-streamable-learning.chunk.js +0 -1
  33. package/dist/scripts/339-1ae03fbc50-streamable-learning.chunk.js +0 -1
  34. package/dist/scripts/4797-bdeea198ad-streamable-learning.chunk.js +0 -2
  35. package/dist/scripts/487-aff6b95fc8-streamable-learning.chunk.js +0 -1
  36. package/dist/scripts/625-1200e876e9-streamable-learning.chunk.js +0 -1
  37. package/dist/scripts/6533-c9404f21a3-streamable-learning.chunk.js +0 -1
  38. package/dist/scripts/7102-76f958374d-streamable-learning.chunk.js +0 -1
  39. package/dist/scripts/719-ba682f08a8-streamable-learning.chunk.js +0 -2
  40. package/dist/scripts/7303-921f46556a-streamable-learning.chunk.js +0 -2
  41. package/dist/scripts/7545-aae090520f-streamable-learning.chunk.js +0 -1
  42. package/dist/scripts/7694-1e367e4f68-streamable-learning.chunk.js +0 -2
  43. package/dist/scripts/9908-6393e6dae9-streamable-learning.chunk.js +0 -2
  44. package/dist/scripts/bundle-db6ddc253a.min.js +0 -2
  45. /package/dist/scripts/{4797-bdeea198ad-streamable-learning.chunk.js.LICENSE.txt → 4797-2e2988c896-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  46. /package/dist/scripts/{719-ba682f08a8-streamable-learning.chunk.js.LICENSE.txt → 719-5834e07d0d-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  47. /package/dist/scripts/{7303-921f46556a-streamable-learning.chunk.js.LICENSE.txt → 7303-833f693f9c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  48. /package/dist/scripts/{7694-1e367e4f68-streamable-learning.chunk.js.LICENSE.txt → 7694-43d713c991-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  49. /package/dist/scripts/{9908-6393e6dae9-streamable-learning.chunk.js.LICENSE.txt → 9908-9e6a9a4a5e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  50. /package/dist/scripts/{bundle-db6ddc253a.min.js.LICENSE.txt → bundle-25f87c29cd.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1067],{88818:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),i=n(92582),r=n(57408),o=n(18559),s=n(11607),c=n(83914);const l={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(c.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:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(l.pillTabSelector,"\n ").concat(e.borderRadius?l.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(l.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?l.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(r.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.tabLink,"\n ")},a.createElement(u,{tab:e})):a.createElement(s.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.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var a=n(32735),i=n(45445);function r(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,i.r)(e.statusCode,t,n)}))}),[r(o),t,n])}},22105:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationView:()=>tt});var a=n(32735),i=n(23481),r=n(20354),o=n(65858),s=n(83345),c="subject.classificationHeaderDetails",l=function(e){var t=e.className;return a.createElement("span",{className:t},"•")};function u(e){var t=e.classification,n=t.childDashboardVideoCount,i=t.childDashboardResourceCount,r=t.childClassificationCount;return a.createElement("p",{className:"mb-n1 font-size-normal fw-normal mt-1"},!!r&&a.createElement(s.x,{namespace:c,phrase:"topics",options:{count:r.toLocaleString(),smartCount:r}}),!!n&&a.createElement(a.Fragment,null,a.createElement(l,{className:"mx-2"}),a.createElement(s.x,{namespace:c,phrase:"videos",options:{count:n.toLocaleString(),smartCount:n}})),!!i&&a.createElement(a.Fragment,null,a.createElement(l,{className:"mx-2"}),a.createElement(s.x,{namespace:c,phrase:"resources",options:{count:i.toLocaleString(),smartCount:i}})))}var d=n(15800),p=n(64444),m=n(26154),f=n(35223),v="subjects.curatedClassificationEmptyState",b=i.T.encloseNamespace(v);function g(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===m.GL.Archived;return a.createElement(s.D.Provider,{value:v},a.createElement(d.u,null,a.createElement(d.u.Image,{src:e.imageUrl,altText:b("headingForNP")}),e.isReadonly?a.createElement(a.Fragment,null,a.createElement(d.u.Heading,null,a.createElement(s.x,{namespace:v,phrase:"headingForCurator"})),a.createElement(d.u.Info,null,a.createElement(s.x,{namespace:v,phrase:"info"})),a.createElement(p.u,{title:r?i.T.getPhrase(v,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(d.u.Cta,{text:i.T.getPhrase(v,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:f.vn.Plus,disabled:r}))):a.createElement(d.u.Heading,null,a.createElement(s.x,{phrase:"headingForNP"}))))}var y=n(92582),h=n(63855),w=n(92869),T=n(57408),E=n(11607);const k={itemsWrapper:"m6mGm",anchorWrapper:"QptZj",default:"_AZa8",selectedItem:"Nuiel",disabled:"WIzWJ",floatIcon:"ARudn",arrowIcon:"tEF5Q",listIcon:"Ql2wi"};function L(e){var t={actionType:o.Vw.Click,entity:o.py.Widget,location:o.LZ.TableOfContents};function n(t){var n;w.t.preventScrollTop(),e.setControlledId(t.id),null===(n=e.onItemClick)||void 0===n||n.call(e,t),setTimeout((function(){var e;return null===(e=document.getElementById(t.id))||void 0===e?void 0:e.focus()}))}return a.createElement("div",{className:"".concat(k.itemsWrapper)},e.items.map((function(i,r){return e.localState?a.createElement(E.L,{key:i.id,className:"".concat(k.anchorWrapper," ").concat(e.activeId===i.id?k.selectedItem:""),onClick:function(){n(i)}},a.createElement("div",{className:"".concat(e.activeId||0!==r?"":k.default," ")},i.name)):a.createElement(T.F,{key:i.id,appLink:e.getAppLink(i),appLinkOptions:{replace:!0},className:"".concat(k.anchorWrapper," ").concat(e.activeId===i.id?k.selectedItem:""),onClick:function(){n(i)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:i.id,name:i.name}),analyticsOptions:t},a.createElement("div",{className:"".concat(e.activeId||0!==r?"":k.default," ").concat(i.tocIndentation?"ms-3":"")},i.name))})))}var S=n(75795);const C={container:"k1iOO",mobile:"QwoBj"};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}function A(e){var t,n,i=(t=a.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(t,n)||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}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=i[0],s=i[1];return a.createElement("div",{className:"".concat(C.mobile," d-inline-flex gap-1")},r&&a.createElement("div",{className:"bg-white px-3 pt-3 pb-2 border border-dark rounded-1 ps-3"},a.createElement("h2",{className:"h5"},e.title),a.createElement(L,{items:e.widgets.map((function(e){return{name:e.name,id:e.id,tocIndentation:e.metadata.tocIndentation}})),activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:e.getAppLink,onItemClick:function(){return s(!1)}})),a.createElement("div",{className:C.container},a.createElement(h.h,{className:"btn btn-outline-dark",svgName:f.vn.TableOfContents,onClick:function(){var t;s(!r),t={actionType:r?o.Vw.Hide:o.Vw.Open,entity:o.py.TableOfContents,location:o.LZ.Dashboard},y.k.logUserAction(e.analyticsData,t)}})))}function x(e){return a.createElement("aside",{className:"col-3 order-1"},a.createElement("div",{className:"".concat(C.container," ps-3")},a.createElement("h2",{className:"h5"},e.title),a.createElement(L,{items:e.widgets.map((function(e){return{name:e.name,id:e.id,tocIndentation:e.metadata.tocIndentation}})),activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:e.getAppLink})))}function O(e){function t(e){var t=S.O.getCurrentRoute().appLink,n=t.params?Object.assign({},t.params):{};return n.tocId=e.id,Object.assign(Object.assign({},t),{params:n})}return a.createElement(a.Fragment,null,e.isSmallScreen?a.createElement(A,Object.assign({},e,{getAppLink:t})):a.createElement(x,Object.assign({},e,{getAppLink:t})))}var P="subjects.teacherOnlyEmptyState",N=i.T.encloseNamespace(P);function D(e){var t;return a.createElement(s.D.Provider,{value:P},a.createElement(d.u,null,a.createElement(d.u.Image,{src:e.imageUrl,altText:N("heading")}),a.createElement(d.u.Heading,null,a.createElement(s.x,{phrase:"heading"})),a.createElement(d.u.Info,null,a.createElement(s.x,{phrase:"info"})),a.createElement(d.u.Cta,{text:N("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var j,F=n(75896),R=n(42308),U=n(80889),V=n(21366),B=n(75553),W=n(24546),G=n(66869),H=n(81326),_=n(86764),M=n(16714),z=n(78479),Z=n(3747),Q=function(e){var t=e.setActiveId,n=e.headingElements,i=e.controlledId,r=e.setControlledId,o=a.useRef(0);a.useEffect((function(){var e=new IntersectionObserver((function(e){e.forEach((function(e){if(i)return t(i),void(j=window.setTimeout((function(){r("")}),800));if(e.isIntersecting)t(e.target.id),o.current=window.scrollY;else{var a=o.current-window.scrollY>0,s=n.findIndex((function(t){return t.id===e.target.id})),c=n[s-1];a&&(null==c?void 0:c.id)&&t(null==c?void 0:c.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){j&&window.clearTimeout(j),e.disconnect()}}),[t,n.length,i])};function $(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 q=function(e,t){var n,i,r,o,s=(r=a.useState(!1),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(r,o)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],l=s[1],u=(n=t,i=a.useRef(),a.useEffect((function(){i.current=n})),i.current),d=t;a.useLayoutEffect((function(){if(!c||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"}),c||l(!0)}}}),[e,u,d,c])},J=n(87114),Y=n(42735),K="subjects.classificationComingSoon",X=i.T.encloseNamespace(K);function ee(e){var t,n,i=!!(null===(n=null===(t=e.data.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length);return a.createElement(s.D.Provider,{value:K},a.createElement(d.u,{className:"pt-0"},a.createElement(d.u.Image,{src:e.imageUrl,altText:X("comingSoon")}),a.createElement(d.u.Heading,null,a.createElement(s.x,{phrase:"comingSoon"})),a.createElement(d.u.Info,null,a.createElement(s.x,{phrase:e.showSignUp?"infoAnon":"info"})),e.canFollowSubjects&&a.createElement(Y.K,{svgName:i?f.vn.BellFilled:f.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(i?"btn-outline-dark":"btn-dark")},a.createElement(s.x,{phrase:i?"following":"follow"})),e.showSignUp&&!e.canFollowSubjects&&a.createElement(T.F,{appLink:e.signUpAppLink,className:"btn btn-dark d-none d-lg-inline-block",analyticsOptions:{actionType:o.Vw.Click,location:o.LZ.ClassificationComingSoon,entity:o.py.AppLink,workflowPhase:o.eu.Start,descriptor:o.Yu.SignUp},analyticsData:{},tag:"button"},X("signUp"))))}var te=n(49935),ne=n(79967),ae=n(69454),ie=n(99105);function re(e){return a.createElement(ie.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist})}var oe=n(81886),se=n(88818),ce=a.createContext({setProductTipRef:function(){},cleanUpProductTipRef:function(){},refs:{}}),le=n(2948);function ue(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}const de={curatedTopicTab:"CmVlO",tabTransition:"rX31t"};var pe="shared.classificationDashboard";function me(e,t,n,a){var r,s,c,l,u,d,p,m,v,b,g,y,h,w,T,E,k,L=t.lg||t.xl||t.xxl||t.xs;return J.i.isTopLevelTopic(e.classification)?[{name:L?i.T.getPhrase(pe,"newReleases"):"",appLink:e.isReadonly?null:null===(s=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===s?void 0:s.call(r,e.classification),active:"new-releases"===n,svgName:f.vn.Sparkle,analyticsData:{id:"new-releases",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(pe,"newReleases"),url:oe.Q.C$.getHref(null===(l=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===l?void 0:l.call(c,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?de.tabTransition:"")},{name:L?i.T.getPhrase(pe,"allTopics"):"",appLink:e.isReadonly?null:null===(d=null===(u=e.appLinks)||void 0===u?void 0:u.classificationDirectory)||void 0===d?void 0:d.call(u,e.classification),active:"all-topics"===n,svgName:f.vn.Grid,analyticsData:{id:"all-topics",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(pe,"allTopics"),url:oe.Q.C$.getHref(null===(m=null===(p=e.appLinks)||void 0===p?void 0:p.classificationDirectory)||void 0===m?void 0:m.call(p,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?de.tabTransition:"")}]:[{name:L?i.T.getPhrase(pe,"topic"):"",appLink:e.isReadonly?null:null===(b=null===(v=e.appLinks)||void 0===v?void 0:v.classification)||void 0===b?void 0:b.call(v,e.classification),active:"curated-topic"===n,svgName:f.vn.Rectangles,analyticsData:{id:"curated-topic",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(pe,"topic"),url:oe.Q.C$.getHref(null===(y=null===(g=e.appLinks)||void 0===g?void 0:g.classification)||void 0===y?void 0:y.call(g,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:(k=a?de.tabTransition:"",t.xs?k+" w-100":L?" ".concat(de.curatedTopicTab):k)},{name:L?i.T.getPhrase(pe,"videoList"):"",appLink:e.isReadonly?null:null===(w=null===(h=e.appLinks)||void 0===h?void 0:h.classificationVideos)||void 0===w?void 0:w.call(h,e.classification),active:"video-list"===n,svgName:f.vn.WidgetSeries,analyticsData:{id:"video-list",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(pe,"videoList"),url:oe.Q.C$.getHref(null===(E=null===(T=e.appLinks)||void 0===T?void 0:T.classificationVideos)||void 0===E?void 0:E.call(T,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?de.tabTransition:"")}]}function fe(e){var t,n,i,r,o,s,c,l,u,d,p,m,f=(0,ne.k)(),v=(n={on:!1,tab:(t=e.activeTab)||"new-releases"},p=(0,le.D)("directory:product:tip:switcher",n),m=2,i=function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(p,m)||function(e,t){if(e){if("string"==typeof e)return ue(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)?ue(e,t):void 0}}(p,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=i[0],o=i[1],a.useEffect((function(){t&&o("tab",t)}),[t]),a.useEffect((function(){var e=null;return r.on&&(e=window.setInterval((function(){"new-releases"===r.tab||"all-topics"===r.tab?o("tab","new-releases"===r.tab?"all-topics":"new-releases"):o("tab","curated-topic"===r.tab?"video-list":"curated-topic")}),2e3)),function(){window.clearInterval(e)}}),[r.on,r.tab]),{tab:r.tab,isHighlighting:r.on,start:function(){return o("on",!0)},stop:function(){o({on:!1,tab:t||r.tab})}}),b=v.tab,g=v.isHighlighting,y=(s="topics-directory-tab",c=a.useContext(ce),l=c.setProductTipRef,u=c.cleanUpProductTipRef,d=c.refs,a.useEffect((function(){if(s)return function(){return u(s)}}),[s]),{setProductTipRef:function(e){return l(s,e)},refs:d}).setProductTipRef;return a.createElement(se.r,{borderRadius:"sm",containerRef:function(e){return y(e)},className:f.xs?"w-100":"",listClassName:"d-flex flex-nowrap",tabs:me(e,f,b,g)})}function ve(e){var t,n,i,r,o,s,c,l=(0,ne.k)(),u=(r=e.audiences,o=e.activeAudiences,s=e.isEmpty,!!e.isComingSoon||!(!s||(null==o?void 0:o.length))||!ae.T.shouldShowAudiences(r));function d(){return!(!e.classification||!e.dashboard)&&!V.S.isSystemGeneratedDashboard(e.dashboard.widgets)&&(J.i.isTopLevelTopic(e.classification)?e.hasTopicDirectoryDashboard:!!e.hasTopicVideosDashboard)}return a.createElement("div",{className:(c="d-flex flex-column py-3 mb-3",e.isComingSoon||(c+=" border-bottom"),!d()&&!u||l.xs?c+" row-gap-3":c)},a.createElement("div",{className:function(){if(u)return l.xs?"d-flex flex-column justify-content-between row-gap-3":"d-flex align-items-center justify-content-between";var e="";return e+="d-flex align-items-center justify-content-between mb-1",l.xs&&(e+=" row-gap-3 mb-0"),e}()},a.createElement(te.Oo,{breadcrumbs:null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e)}),d()&&u&&a.createElement(fe,{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===(i=(n=e.appLinks).audience)||void 0===i?void 0:i.call(n),isReadonly:e.isReadonly||e.disableAudiences,disablePersist:!e.isViewingCurrentPresentation}),d()&&!u&&a.createElement(fe,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})))}function be(e){return be="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},be(e)}function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,s=[],c=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(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)?ye(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 ye(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 he="shared.classificationDashboard";function we(e){return e.widgetId===R.z.Blurb&&e.templateId===z.f.Heading}function Te(e){return e.widgetId===R.z.CuratedClassifications||e.widgetId===R.z.Classifications}function Ee(e){var t,n,s,c=function(e,t){var n,i,o,s,c=a.useMemo((function(){return e?{isSystemGeneratedDashboard:V.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===R.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=c.isSystemGeneratedDashboard,u=c.systemGeneratedVideoWidget,d=r.a.useBasicFetch(!!u&&U._.dashboardWidgetContent(null==u?void 0:u.id,V.S.getWidgetParams(u.widgetId,u.templateId,V.S.getDashboardTargetType(e),null==t?void 0:t.map((function(e){return e.masterId}))),null==u?void 0:u.templateId));return l?{widgets:null!==(i=null===(n=null==e?void 0:e.widgets)||void 0===n?void 0:n.filter((function(e){return e.widgetId!==R.z.ClassificationPinnedVideos})))&&void 0!==i?i:[],videoList:null!==(s=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==s?s:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:F.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),l=c.widgets,d=c.videoList,p=c.videoListWidgetId,f=(0,Z.a)(_.r.LGDown),v=a.useRef(new Set),b=a.useMemo((function(){return l.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==l?void 0:l.length]),y=ge(a.useState(b),2),h=y[0],w=y[1],T=ge(a.useState(e.tableOfContentsId),2),E=T[0],k=T[1],L=ge(a.useState(""),2),S=L[0],C=L[1],I=Array.from(v.current);function A(t,n,a){var i,r=V.S.getWidgetParams(n,a,V.S.getDashboardTargetType(e.dashboard),null===(i=e.activeAudiences)||void 0===i?void 0:i.map((function(e){return e.masterId})));return e.getWidgetContentRequest(t,r,a)}q(I,E),Q({setActiveId:C,headingElements:I,controlledId:E,setControlledId:k});var x=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===m.GL.Archived&&!e.isReadonly||e.dashboard.status===m.GL.Draft&&!e.isPreviewing||!(null==l?void 0:l.length)||(!d||!d.length)&&Object.values(h).every((function(e){return!!e})));a.useEffect((function(){x&&w(b)}),[null==l?void 0:l.length]);var P=a.useCallback((function(t,n){if(h[t]!==n){var a=Object.assign(Object.assign({},h),(u={},p=n,(d=function(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=be(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==be(t)?t:t+""}(d=t))in u?Object.defineProperty(u,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[d]=p,u));if(V.S.isType(e.dashboard,m.ku.ClassificationDirectory))w(a);else{for(var i=0;i<l.length;){var r=l[i];if(we(r)){for(var o=!0,s=i+1;o&&s<l.length;){var c=l[s];if(we(c))break;a[c.id]||Te(c)||(o=!1),s++}i=s,a[r.id]=o}else i++}w(a)}}var u,d,p}),[h,l]);function N(e){return we(e)&&h[e.id]}function j(e,t){if(e.widgetId===R.z.ClassificationDashboardExternalMedia){var n=l[t-1];return h[n.id]?e.name.replace("Other videos","Videos"):e.name}return e.name}var z,$=l.filter((function(e){var t;return!N(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),Y=l.every(Te),K=$.length>=2,X=K&&!f,te=e.hasTopicDirectoryDashboard&&J.i.isTopLevelTopic(e.classification);return a.createElement("div",{className:"bg-white px-4 ".concat((z=V.S.getDashboardTargetType(e.dashboard),e.moviesAndTv||z===m.ku.ClassificationVideos?"":"dashboard-spacing-lg"))},a.createElement(B.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,detailsComponent:te?function(){return a.createElement(u,{classification:e.classification})}:null}),a.createElement(ve,{dashboard:e.dashboard,classification:e.classification,presentation:e.presentation,appLinks:e.appLinks,activeTab:e.tab,audiences:e.audiences,activeAudiences:e.activeAudiences,getBreadcrumbs:e.getBreadcrumbs,hasTopicDirectoryDashboard:e.hasTopicDirectoryDashboard,hasTopicVideosDashboard:e.hasTopicVideosDashboard,isComingSoon:e.isComingSoon,isEmpty:x,isViewingCurrentPresentation:e.isViewCurrentPresentation,isReadonly:e.isReadonly,disableAudiences:Y}),e.isComingSoon&&a.createElement(ee,{imageUrl:e.comingSoonImageUrl,data:e.classification,canFollowSubjects:e.canFollowSubjects,showFollowButtonSpinner:e.showFollowButtonSpinner,onToggleFollow:function(){return e.onToggleFollow(e.classification,o.LZ.ClassificationComingSoon)},showSignUp:!e.hasLocalPermissions(M.E.FollowComingSoonTopics),signUpAppLink:null===(s=(n=e.appLinks).signUp)||void 0===s?void 0:s.call(n)}),!e.isComingSoon&&a.createElement("div",{className:"".concat(X?"row no-wrap":"")},K&&a.createElement(O,{widgets:$,title:e.classification.name,activeId:S,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:k,isSmallScreen:f}),a.createElement("div",{className:X?"col-9 order-0":""},l.map((function(t,n){return N(t)?a.createElement(a.Fragment,{key:t.id}):a.createElement(H.L,{headingElementRef:v,key:t.id,id:t.id,name:j(t,n),description:t.description,classification:e.classification,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:A,setIsEmpty:P,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:X,lazyLoad:e.lazyLoad,dashboardTarget:V.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,settings:e.settings})}))),!!(null==d?void 0:d.length)&&a.createElement(a.Fragment,null,a.createElement(G.B,{name:i.T.getPhrase(he,"videos"),description:""}),a.createElement(W.E4,{videos:d,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:p}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions,isPlugin:e.isPlugin,getClassroomGuideAppLink:e.appLinks.classroomGuide,getInteractiveGuidanceAppLink:e.appLinks.interactiveGuidance,getResourceGuidanceAppLink:e.appLinks.resourceGuidance}))),x&&a.createElement(g,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&a.createElement(D,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}Ee.defaultProps={appLinks:{}};var ke=n(70275),Le=n(51365),Se=n(25925),Ce=n(89454),Ie=n(21750),Ae=n(39151),xe=n(31949),Oe=n(91286),Pe=n(79612),Ne=n(25301),De=n(99742),je=n(41760),Fe=n(31700),Re=n(73688),Ue=n(49433),Ve=n(6117),Be=n(64364),We=n(96359),Ge=n(41135);function He(e){return He="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},He(e)}function _e(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,Me(a.key),a)}}function Me(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=He(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==He(t)?t:t+""}function ze(e,t,n){return t=Qe(t),function(e,t){if(t&&("object"==He(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,Ze()?Reflect.construct(t,n||[],Qe(e).constructor):t.apply(e,n))}function Ze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ze=function(){return!!e})()}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qe(e)}function $e(e,t){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$e(e,t)}var qe="subjects.topicNotFoundError",Je=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ze(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&&$e(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return i.T.getPhrase(qe,"heading")}},{key:"description",get:function(){return i.T.getPhrase(qe,"description")}},{key:"cta",get:function(){return{text:i.T.getPhrase(qe,"cta"),appLink:{application:Ge.O.SUBJECTS,action:We.e.Subjects.CLASSIFICATION_ALL}}}}])&&_e(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Be.H);function Ye(){return a.createElement("div",{className:"bg-white px-4"},a.createElement(B.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(te.b2,null),a.createElement(ie.N,null)))}var Ke=n(65751),Xe=i.T.encloseNamespace("subjects.classificationView"),et=i.T.encloseNamespace("subjects.classificationView");function tt(e){var t,n,i,o,s,c,l,u,d,p,f=(0,Ue.V)("video-list"),v=r.a.useBasicFetch(Ae.L.config()),b=r.a.useBasicFetch(xe.N.currentUser()),g=r.a.useBasicFetch(Fe.g.streamablePresentation()),y=r.a.useBasicFetch(Ie.x.classification(e.id,null===(t=b.data)||void 0===t?void 0:t.id)),h=(0,Re.B)({targetType:m.ku.Classification,dashboardId:null===(n=e.queryParams)||void 0===n?void 0:n.dashboardId,classificationId:e.id}),w=h.dashboard,T=h.isPreviewing;(0,Pe.M)(Ne.CG.getClassificationMetadata({content:y.data,phraseContext:{phraseHandler:et,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Ve.f.getCanonicalLink(),allowIndexing:!0,product:je.L.PRODUCT_NAME})),(0,Oe.v)(y,{notFound:Je});var E,k,L=r.a.useBasicFetch(g.data&&Ce.O.presentationAudiences(g.data.id,Se.R.StreamableLearning)),S=r.a.useBasicFetch(Ie.x.path(e.id,Se.R.StreamableLearning)),C=ae.T.getActiveAudiencesFromParams(L.data,e.queryParams),I=null!==(i=null==C?void 0:C.map((function(e){return e.masterId})))&&void 0!==i?i:[],A={presentationId:null===(o=g.data)||void 0===o?void 0:o.id,presentationName:null===(s=g.data)||void 0===s?void 0:s.name,currentClassificationId:null===(c=y.data)||void 0===c?void 0:c.id,currentClassificationName:null===(l=y.data)||void 0===l?void 0:l.name,followingCurrentClassification:!!(null===(p=null===(d=null===(u=y.data)||void 0===u?void 0:u.followers)||void 0===d?void 0:d.data)||void 0===p?void 0:p.length),activeAudienceNames:(null==C?void 0:C.length)?C.map((function(e){return e.name})):null,activeAudienceIds:I.length?I:null},x=(E=y.data,k=e.queryParams,Object.assign(Object.assign({},Ke.y),{classification:function(e){return Ke.y.classification(e||E,k)},classificationDirectory:function(){return Ke.y.classificationDirectory(k)},audience:function(){return Ke.y.classification(E,k)}}));return v.data&&w.hasCompleted&&y.data&&g.data&&S.data&&L.data?a.createElement(Le.M.Provider,{value:{getVideoActions:f}},a.createElement("div",{className:"position-relative"},!(!T||!w.data)&&a.createElement(ke.a,{status:w.data.status,type:"topic"}),a.createElement(Ee,{dashboard:w.data,classification:y.data,getWidgetContentRequest:U._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,n=e.path,a=e.appLinks,i=[{name:Xe("discover"),appLink:{application:Ge.O.DASHBOARD,action:We.e.Dashboard.HOME}},{name:Xe("exploreAllTopicsHeading"),appLink:{application:Ge.O.SUBJECTS,action:We.e.Subjects.CLASSIFICATION_ALL}}];return n.forEach((function(e){i.push({name:e.name,appLink:a.classification(e),active:e.name===t.name})})),i}({appLinks:x,classification:y.data,path:S.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},presentation:g.data,getBannerActions:function(){return[]},audiences:L.data,activeAudiences:C,analyticsData:A,imageCdnUrl:v.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:De.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:De.W.EmptyStates.Topics.TOPIC,appLinks:x,isPreviewing:T,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!Ve.f.isBot(),isTeacherOnly:!1,companyLogoFallbackUrl:De.W.StreamableLearning.LOGO,subTextType:"productionCompany",contentType:m.VH.Livestream,hasTopicDirectoryDashboard:!1,hasTopicVideosDashboard:!1,tab:"curated-topic",isPlugin:!1}))):a.createElement(Ye,null)}},49433:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(65858);function i(e){return function(t){return t.id,t.name,"video-list"===e?a.LZ.VideoListItem:a.LZ.PlayPage,[]}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[1437],{79878:(e,t,a)=>{a.d(t,{r:()=>m});var n=a(32735),r=a(23481),i=a(83914),o=a(64444),l=a(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function m(e){return n.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},n.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},n.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},39880:(e,t,a)=>{a.d(t,{s:()=>o});var n=a(32735),r=a(57408);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,a,o;return n.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(a=e.theme)||void 0===a?void 0:a.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},n.createElement("div",{className:"position-relative ".concat(i.dateItem)},n.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:n.createElement(n.Fragment,null," ")),n.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),n.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},75553:(e,t,a)=>{a.d(t,{p:()=>x,v:()=>L});var n=a(32735),r=a(110),i=a(12788),o={renderInPortalIfExists:function(e,t){return t?(0,i.createPortal)(e,t):e}},l=a(79878),c=a(39880),s=a(64887),m=a(23481),d=a(57408),u=a(83914),v=a(35223),g="shared.backButton";function b(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,l=t.textShadow,c=a?m.T.getPhrase(g,"backTo",{backToName:a}):m.T.getPhrase(g,"back"),s="black"===i?"":"text-white",b=l?"text-shadow":"";return n.createElement(d.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(s," ").concat(b)},n.createElement(u.x,{svgName:v.vn.ChevronLeft,size:u.S.Medium}),n.createElement("span",{className:"ms-1"},c))}b.defaultProps={color:"black",extraClasses:""};var p=a(16107),f=a(83345),h=a(10587),y=a(94232),E=a(54610),C=a(79967),N=a(67453);const w={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var k="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function S(e){return e.length<160?"h1":w.headingLarge}var x=n.memo((function(e){var t,a,i,m,d=e.heading,u=e.banner,v=e.imageCdnUrl,g=e.actions,h=e.sortComponent,x=e.blockColourClass,L=e.specialEvent,I=n.useContext(y.n),O=(0,C.k)().xxl?1920:1200,T=n.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]),D=e.imageOptions||{width:O,ratio:k,resizeType:E.Nq.Cover},j=!!u&&!!v&&N.j.createBannerUrl(u,{fallbackBaseUrl:v,fallbackCategoryName:d,type:E.__.Banners},D),A={className:"banner banner-header ".concat(e.bannerClassName),style:j?{backgroundImage:"url('".concat(j,"')")}:{}};!u&&x&&(delete A.style,A.className+=" ".concat(x));var _=e.detailsComponent;return o.renderInPortalIfExists(n.createElement("header",Object.assign({},A),n.createElement("div",{className:"container ".concat(w.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(b,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),n.createElement("div",{className:"".concat(e.alignLogoLeft?"position-absolute top-50 start-0 translate-middle-y w-100 ps-4":"".concat(w.bannerContent," px-2 ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?w.bannerContentWithLogo:""))},!!L&&n.createElement("div",{className:"position-relative ".concat(w.specialEventContainer)},n.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})),n.createElement("div",null,T&&n.createElement("div",{className:"rounded-pill py-1 px-2 my-1 me-1 fw-semibold bg-light-blue lh-1 d-inline-block"},n.createElement(f.x,{namespace:"shared.bannerHeader",phrase:"onToday"})),e.showComingSoon&&n.createElement(l.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start text-nowrap"}),n.createElement("div",{className:"d-flex align-items-center"},e.alignLogoLeft&&n.createElement("div",{className:"".concat(w.logoContainerLeft," d-none d-md-block partial-loading-background rounded-circle overflow-hidden me-3")},(null===(a=e.logo)||void 0===a?void 0:a.url)&&n.createElement(p.w,{src:N.j.createUrl(null===(i=e.logo)||void 0===i?void 0:i.url,{size:E.h2.Medium})})),n.createElement("h1",{className:"text-white text-shadow pe-3 position-static ".concat(w.heading," ").concat(S(d)," ").concat(e.alignLogoLeft?"w-50":"")},d,_&&n.createElement(_,null)))),!!g&&n.createElement("div",{className:w.actionsContainer},n.createElement(s.e,{actions:g,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(m=e.logo)||void 0===m?void 0:m.url)&&n.createElement("div",{className:w.logoContainer},n.createElement("img",{src:N.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==I?void 0:I.container)}),(function(e,t){var a,n;return e.actions===t.actions&&e.heading===t.heading&&(null===(a=e.logo)||void 0===a?void 0:a.url)===(null===(n=t.logo)||void 0===n?void 0:n.url)}));function L(){var e=n.useContext(y.n);return o.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(w.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>b,b2:()=>p});var n=a(32735),r=a(23481),i=a(57408),o=a(86764),l=a(3747),c=a(5859),s=a(35223),m=a(83914);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var v=r.T.encloseNamespace("shared.breadcrumbComponent"),g=n.forwardRef((function(e,t){var a=e.breadcrumb,r=a.name,o=a.appLink,l=a.active,c=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(l?" active":"")},l?n.createElement("strong",null,r):n.createElement(i.F,{appLink:o,ref:t},c&&n.createElement(m.x,{svgName:s.vn.ChevronLeft,size:m.S.Small}),n.createElement("span",{className:c?"ms-2":""},r)))})),b=function(e){var t=e.breadcrumbs,a=(0,l.a)(o.r.XS),r=(null==t?void 0:t.length)||0,i=d(n.useState(!1),2),c=i[0],s=i[1],m=d(n.useState(!1),2),u=m[0],b=m[1],p=n.useRef();if(n.useEffect((function(){var e,a=null!==(e=null==t?void 0:t.reduce((function(e,t){return e+t.name.length}),0))&&void 0!==e?e:0;r>3&&a>56&&s(!0)}),[null==t?void 0:t.length]),n.useLayoutEffect((function(){var e;u&&(null===(e=p.current)||void 0===e||e.focus())}),[p.current,u]),!r||a&&r<2)return n.createElement(n.Fragment,null);if(a)return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(g,{breadcrumb:t[r-2],withBackIcon:!0})));var f=n.createElement(g,{breadcrumb:t[0]}),h=r>2?n.createElement(g,{breadcrumb:t[r-2]}):n.createElement(n.Fragment,null),y=n.createElement(g,{breadcrumb:t[r-1]}),E=t.slice(1,r-2);return n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},f,c?n.createElement("li",{className:"breadcrumb-item"},n.createElement("button",{className:"btn-link",onClick:function(){s(!1),b(!0)},"aria-label":v("expand")},"...")):E.map((function(e,t){return n.createElement(g,{key:t,breadcrumb:e,ref:0===t?p:null})})),h,y))},p=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,l.a)(o.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},c.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},6474:(e,t,a)=>{a.d(t,{f:()=>o});var n=a(32735),r=a(83914);const i={circle:"Uxnsl",img:"BQ87Y"};function o(e){var t;return e.imageUrl||e.svgName?e.imageUrl?n.createElement("div",{className:"".concat(i.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n.createElement("div",{className:"".concat(i.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},n.createElement(r.x,{svgName:e.svgName,size:e.svgSize})):n.createElement(n.Fragment,null)}o.defaultProps={textVariant:"white"}},47770:(e,t,a)=>{a.d(t,{K:()=>c});var n=a(32735),r=a(68050),i=a(69111),o=a(66869),l=a(91028);function c(e){return n.createElement(n.Fragment,null,n.createElement(o.B,{name:e.name,description:e.description}),n.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){var a;return n.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},n.createElement(l.V,{data:t,getChildAppLink:function(t){var a,n;return null===(n=null===(a=e.appLinks)||void 0===a?void 0:a.classification)||void 0===n?void 0:n.call(a,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,highlightOnHover:null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories,isLarge:!0}))}))))}},65163:(e,t,a)=>{a.d(t,{QL:()=>n.Q,eb:()=>n.e});var n=a(72861);a(14244)},2192:(e,t,a)=>{a.d(t,{Q:()=>y});var n=a(32735),r=a(45157),i=a(57408),o=a(6474),l=a(85177),c=a(83914),s=a(83345),m=a(54610),d=a(67453),u=a(45778),v=a(35223),g=a(29309),b="shared.subjectWidgetItem",p=function(e){var t=e.name,a=e.multiline,r=e.noUnderLine,i="".concat(g.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),o="";return a?o+=" ".concat(g.Z.clamped," clamp-2"):(i+=" text-nowrap",o+=" text-truncate"),n.createElement("div",{className:i},n.createElement("small",{className:"text-secondary"},n.createElement(s.x,{namespace:b,phrase:"comingSoon"})),n.createElement("p",{className:"".concat(r?"":g.Z.name," h6")},n.createElement("span",{className:o},t)))},f=function(e){var t=e.name,a=e.multiline,r=e.subtitle,i=e.noUnderLine,o=e.newVideosCount,l="px-3 d-flex flex-column justify-content-center",c="".concat(i?"":g.Z.name," h6");return a?c+=" ".concat(o?"clamp-2":"clamp-3"," text-start"):(l+=" text-nowrap text-truncate",c+=" text-truncate mb-0"),n.createElement("div",{className:l},r&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(g.Z.text)},r),n.createElement("div",{className:c,title:t},t),!!o&&n.createElement("div",{className:"fw-semibold d-inline-block rounded-pill px-2 mt-1 bg-light-green w-fit h-fit text-green ".concat(g.Z.newVideos)},n.createElement(s.x,{namespace:b,phrase:"newVideos",options:{smartCount:o}})))};function h(e){var t,a=d.j.createUrl(e.coverUrl,{size:e.isLarge?m.h2.Medium:m.h2.Small}),i=void 0;u.G.isClassification(e.data)&&(i=e.data);var s={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle,noUnderLine:e.highlightOnHover,newVideosCount:e.showNewVideosCount?null===(t=null==i?void 0:i.externalMetadata)||void 0===t?void 0:t.childDashboardNewVideoCount:0};return n.createElement("div",{className:"".concat(e.themeColor?g.Z.hasThemeColor:"border"," d-flex position-relative ").concat(e.className," ").concat(g.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""," ").concat(e.highlightOnHover&&!e.themeColor?"bg-light-blue-hover":""),style:e.themeColor?{"--themeColor":e.themeColor}:{},id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&n.createElement("div",{className:"".concat(g.Z.selectedMask," border-2")}),n.createElement("div",{className:"".concat(g.Z.imagePanel," ").concat(e.isLarge?g.Z.large:"")},e.isSelected&&!e.hideCheckmark&&n.createElement("div",{className:g.Z.selected},n.createElement(o.f,{svgName:v.vn.Check,svgSize:c.S.Large,textVariant:"white",variant:"green"})),n.createElement("div",{className:"".concat(g.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(a,"')")}:{}}),!e.hideFallback&&n.createElement(l.oy,{type:l.mS.Subject,extraClasses:e.isLarge?g.Z.large:""})),e.isComingSoon?n.createElement(p,Object.assign({},s)):n.createElement(f,Object.assign({},s)))}function y(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(i.F,{className:g.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(h,Object.assign({},e))):n.createElement(h,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>c});var n=a(32735),r=a(45157),i=a(85177),o=a(29309);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var c=function(){var e,t,a=(e=n.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(o.Z.widgetItem)},n.createElement("div",{className:o.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:o.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(o.Z.widgetItem)},n.createElement("div",{className:"".concat(o.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:o.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject,extraClasses:o.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>s});var n=a(32735),r=a(65858),i=a(2192),o=a(52641),l=a(2284),c=a(26154),s=n.memo((function(e){var t,a,s,m,d,u,v,g=e.data.id===c.OL.ClassificationDirectory,b=(null===(t=e.data)||void 0===t?void 0:t.status)===l.W.ComingSoon,p=function(e,t){var a;if((null==t?void 0:t.length)>=o._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),f=Object.assign(Object.assign({},e.analyticsData),{id:(null===(a=e.analyticsData)||void 0===a?void 0:a.id)||(null===(s=e.data)||void 0===s?void 0:s.id),name:null===(m=e.data)||void 0===m?void 0:m.name,presentationId:(null===(d=e.analyticsData)||void 0===d?void 0:d.presentationId)||e.data.presentationId,comingSoon:!!b}),h=Object.assign(Object.assign({location:r.LZ.ClassificationListItem,entity:r.py.Classification},e.analyticsOptions),{actionType:r.Vw.Click,descriptor:r._S.Cover});return n.createElement(i.Q,Object.assign({},e,{analyticsData:f,analyticsOptions:h,coverUrl:null===(u=e.data.cover)||void 0===u?void 0:u.url,subtitle:(null===(v=e.getSubtitle)||void 0===v?void 0:v.call(e,e.data))||p,isComingSoon:b,themeColor:g?e.themeColor:""}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>n.V});var n=a(91028),r=a(43741),i=(a(32735),a(65858));a(57408),a(83914),a(83345),a(35223),a(29309),i.Vw.Click,i.py.UserSetting,i._S.Tile,a(2786),i.Vw.Click,i.py.Url,i._S.Tile},10587:(e,t,a)=>{a.d(t,{y:()=>o});var n=a(54610);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var o=i(i(i(i(i(i(i(i(i({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},96150:(e,t,a)=>{a.r(t),a.d(t,{StreamableClassificationsView:()=>D});var n=a(32735),r=a(23481),i=a(57900),o=a(20354),l=a(2948),c=a(28400),s=a(65858),m=a(75553),d=a(49935),u=a(47770),v=a(65163),g=a(9513),b=a(55171),p=a(38143),f=a(54610),h=a(78479),y=a(42308),E=a(21750),C=a(39151),N=a(31949),w=a(69454),k=a(99742),S=a(96359),x=a(41135),L=a(31700);const I={classificationPane:"kx1WX"};function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var T=r.T.encloseNamespace("subjects.classificationsView");function D(e){var t,a,r,D,j,A,_,P,U,B=o.a.useBasicFetch(N.N.currentUser()),V=o.a.useBasicFetch(C.L.config()),M=o.a.useBasicFetch(L.g.streamablePresentation()),Z=function(e,t){var a=o.a.useBasicFetch(e&&E.x.classification(e,t));return e?null==a?void 0:a.data:{name:T("exploreAllTopicsHeading"),banner:{url:b.e.Images.STREAMABLE_TOPIC_BANNER}}}(e.id,null===(t=B.data)||void 0===t?void 0:t.id),R=(j=e.id,A=o.a.useBasicFetch(j&&E.x.path(j)),j?null==A?void 0:A.data:[]),F=e.id?E.x.children(e.id):M.data&&E.x.topLevelTopics(null===(a=M.data)||void 0===a?void 0:a.id),H=o.a.useBasicFetch(F),z=(_=(0,l.D)(p.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),P=1,function(e){if(Array.isArray(e))return e}(_)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(_,P)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?O(e,t):void 0}}(_,P)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],Q=function(e){var t=w.T.getAudienceParams(z);return{application:x.O.SUBJECTS,action:S.e.Subjects.CLASSIFICATION,args:e?[e.id,c.m.slugify(e.name)]:[],params:t||{}}},W=(!e.id||!!Z)&&!!V.data&&H.data,Y=!!R,J={presentationId:null===(r=M.data)||void 0===r?void 0:r.id,presentationName:null===(D=M.data)||void 0===D?void 0:D.name,currentClassificationName:null==Z?void 0:Z.name,widgetId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge};return n.createElement("main",{className:"bg-white px-4"},W?n.createElement(m.p,{heading:null==Z?void 0:Z.name,banner:null==Z?void 0:Z.banner,imageCdnUrl:V.data.imageCdnUrl,actions:[],imageOptions:!e.id&&{resizeType:f.Nq.Cover}}):n.createElement(m.v,null),n.createElement("div",{className:"py-3 mb-3 border-bottom"},Y?n.createElement(d.Oo,{breadcrumbs:(U=[{name:T("discover"),appLink:{application:x.O.DASHBOARD,action:S.e.Dashboard.HOME}},{name:T("exploreAllTopicsHeading"),appLink:{application:x.O.SUBJECTS,action:S.e.Subjects.CLASSIFICATION_ALL},active:!e.id}],R.forEach((function(e){U.push({name:e.name,appLink:Q(e)})})),e.id&&U.push({name:T("subview"),active:!0}),U)}):n.createElement(d.b2,null)),n.createElement("div",{className:I.classificationPane},W?n.createElement(u.K,{id:e.id,name:"",description:"",metadata:{},analyticsData:J,content:null==H?void 0:H.data,analyticsOptions:{location:s.LZ.SlidingListItem},appLinks:{classification:Q},imageCdnUrl:V.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:k.W.Fallbacks.RESOURCE_THUMBNAIL,companyLogoFallbackUrl:k.W.StreamableLearning.LOGO,subTextType:"productionCompany",preferences:[],hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},widgetTypeId:y.z.Classifications,templateId:h.f.CoverFixedPillListLarge,isPlugin:!1}):n.createElement(v.QL,{partialLoadingComponent:g.Qh})))}},29309:(e,t,a)=>{a.d(t,{Z:()=>n});const n={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",hasThemeColor:"DX2ua",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",newVideos:"s61h8",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}},68050:(e,t,a)=>{a.d(t,{Z:()=>s});var n=a(95685),r=a.n(n),i=a(32735),o=a(46304),l=a(74512);const c=i.forwardRef((({bsPrefix:e,className:t,as:a="div",...n},i)=>{const c=(0,o.vE)(e,"row"),s=(0,o.pi)(),m=(0,o.zG)(),d=`${c}-cols`,u=[];return s.forEach((e=>{const t=n[e];let a;delete n[e],null!=t&&"object"==typeof t?({cols:a}=t):a=t;const r=e!==m?`-${e}`:"";null!=a&&u.push(`${d}${r}-${a}`)})),(0,l.jsx)(a,{ref:i,...n,className:r()(t,c,...u)})}));c.displayName="Row";const s=c},34152:(e,t,a)=>{a.d(t,{YD:()=>s});var n=a(32735),r=(Object.defineProperty,new Map),i=new WeakMap,o=0,l=void 0;function c(e,t,a={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){const r=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof a.threshold?a.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}const{id:c,observer:s,elements:m}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(a=e.root,a?(i.has(a)||(o+=1,i.set(a,o.toString())),i.get(a)):"0"):e[t]}`;var a})).toString()}(e);let a=r.get(t);if(!a){const n=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var a;const r=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(a=n.get(t.target))||a.forEach((e=>{e(r,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:t,observer:o,elements:n},r.set(t,a)}return a}(a),d=m.get(e)||[];return m.has(e)||m.set(e,d),d.push(t),s.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(m.delete(e),s.unobserve(e)),0===m.size&&(s.disconnect(),r.delete(c))}}function s({threshold:e,delay:t,trackVisibility:a,rootMargin:r,root:i,triggerOnce:o,skip:l,initialInView:s,fallbackInView:m,onChange:d}={}){var u;const[v,g]=n.useState(null),b=n.useRef(),[p,f]=n.useState({inView:!!s,entry:void 0});b.current=d,n.useEffect((()=>{if(l||!v)return;let n;return n=c(v,((e,t)=>{f({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&o&&n&&(n(),n=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:a,delay:t},m),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,v,i,r,o,l,a,m,t]);const h=null==(u=p.entry)?void 0:u.target,y=n.useRef();v||!h||o||l||y.current===h||(y.current=h,f({inView:!!s,entry:void 0}));const E=[g,p.inView,p.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}n.Component}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2861],{72861:(t,e,n)=>{n.d(e,{e:()=>C,Q:()=>R});var i=n(32735),r=n(91967),a=n(82182),o=n(75896),l=n(1048),c=n(92582),s=n(66869),u=n(29420),d=n(43872),f=n(53855),m=n(31069),g=n(10841),h=n(81514),p=n(65294),y=n(10038),v=n(5859),b=n(49542),E=function(t,e,n){return function(){t.container.current&&(t.container.current.style.transition=""),e({type:g.n.Resize,payload:{elementRefs:t,mediaQuery:n}})}},P=function(t){return function(){t.current&&(t.current.style.transition="transform .4s ease-in-out")}},S=function(t,e,n,i,r){return function(a){var o=a.clientX,l=i;l||(l=Object.assign(Object.assign({},e),{initialMouseX:o}),r(l),t.current.style.transition=""),n({type:g.n.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},O=function(t,e){return function(){t.current.style.transition="transform .4s ease-in-out",e(null)}},L=n(14244);const j={itemSpacing:"fDc_6",header:"WMgSZ",mobileScroll:"aLSzv",leftGradient:"YheD1",leftGradientNoPadding:"Vl2_g",leftButton:"ISepF",leftButtonNoPadding:"N4rAS",rightGradient:"i9XEE",rightGradientNoPadding:"APhNv",rightButton:"OxM84",rightButtonNoPadding:"nmSQo"};function A(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||w(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,e)||w(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){if(t){if("string"==typeof t)return B(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function C(t){var e=t.childComponent,n=t.staticChildren,v=t.getWidgetItemAnalyticsData,w=void 0===v?function(){}:v,B=N(i.useReducer(L.E,L.C),2),C=B[0],x=B[1],M=N(i.useState(null),2),k=M[0],I=M[1],D={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)},G=(0,h.V)(),X=a.V.isTabletOrMobile(),W=(0,u.T)({type:"dynamic",state:C,containerRef:D.container,mediaQuery:G}),T=W.dynamicAttributes,_=W.focusNext,Q=W.focusPrev,z=W.onFocusWidget,F=W.onBlurWidget;(0,y.H)(E(D,x,G),P(D.container),[G]);var V=(0,p.Y)({prevent:!t.lazyLoad}),U=V.ref,$=V.inView,H=t.collection;if(!t.collection&&r.q.isFunction(t.fetch)){var Y=t.fetch($);H=Y.data}i.useEffect((function(){H&&!l.t.isEmpty(H)&&x({type:g.n.Init,payload:{elementRefs:D,mediaQuery:G}})}),[H]);var q=i.useMemo((function(){var r,a;if(H){var l=null!==(r=null==n?void 0:n.filter((function(t){return"start"===t.position})))&&void 0!==r?r:[],c=null!==(a=null==n?void 0:n.filter((function(t){return"end"===t.position})))&&void 0!==a?a:[],s=H.map((function(n,r){var a;n===o.m.first(H)&&(null==l?void 0:l.length)&&(a=D.firstElement),n!==o.m.last(H)||(null==c?void 0:c.length)||(a=D.lastElement);var s=r+1===H.length;return i.createElement("li",Object.assign({id:n.id,key:n.id,ref:a,onFocus:function(){return z(r)},onBlur:function(){return F()},className:"".concat(j.itemSpacing," ").concat(t.childClassName||""," ").concat(s&&X?"pe-4":"")},T[n.id]),i.createElement(e,Object.assign({getChildAppLink:t.getChildAppLink,data:n,getSubtitle:t.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:r},t.analyticsData),w(n)),analyticsOptions:Object.assign(Object.assign({},null==t?void 0:t.analyticsOptions),b.d.getSliderItemAnalyticsOptions())},t.childComponentProps)))}));return l.length&&(s=[].concat(A(l.map((function(e,n){var r=e.component;return i.createElement("li",{key:"first-widget-component:".concat(n),ref:0===n?D.firstElement:null,className:"".concat(j.itemSpacing," ").concat(t.childClassName||"")},i.createElement(r,null))}))),A(s))),c.length&&(s=[].concat(A(s),A(c.map((function(e,n){var r=e.component;return i.createElement("li",{key:"end-widget-component:".concat(n),ref:n===c.length-1?D.lastElement:null,className:"".concat(j.itemSpacing," ").concat(t.childClassName||"")},i.createElement(r,null))}))))),i.createElement(i.Fragment,null,s)}}),[H,T,C.offset,G].concat(A(t.widgetDataDeps||[])));if(H&&!H.length&&!(null==n?void 0:n.length))return i.createElement(i.Fragment,null);if(!H||l.t.isEmpty(H))return i.createElement("div",{ref:U},i.createElement(R,{partialLoadingComponent:t.partialLoadingComponent,partialLoadingOptions:t.partialLoadingOptions}));var Z=function(e){return Object.assign(Object.assign({},t.analyticsData),{name:t.heading,direction:e===g.n.Next?"right":"left"})},J=X||t.hideButtons;return i.createElement("div",{className:"".concat(t.noNegativePadding?"":"mx-n4")},i.createElement("div",{className:"px-4 ".concat(j.header)},i.createElement(s.B,{name:t.heading,description:t.description,appLink:t.headingAppLink,showSeeMoreLink:!!t.headingAppLink})),i.createElement("div",{className:"position-relative"},i.createElement("div",{className:"".concat(t.noNegativePadding?"":"px-4"," py-3 my-n3 position-relative ").concat(X?j.mobileScroll:"overflow-hidden-x")},i.createElement("div",{className:"position-relative ".concat(t.hideButtons?"overflow-hidden-x":"")},!J&&i.createElement(f.W,{direction:f.f.Left,onClick:function(){Q(),x({type:g.n.Previous}),c.k.logUserAction(Z(g.n.Previous),b.d.getSliderAnalyticsOptions())},leftButtonClassName:"".concat(j.leftButton," ").concat(t.noNegativePadding?j.leftButtonNoPadding:""),leftGradientClassName:"".concat(j.leftGradient," ").concat(t.noNegativePadding?j.leftGradientNoPadding:""),hide:C.hideLeftButton,useGradientBackdrop:!0}),i.createElement(d.V,{position:C.offset,positionType:m.C.Pixels,onDrag:S(D.container,C,x,k,I),onDragEnd:O(D.container,I),ref:D.container},q),!J&&i.createElement(f.W,{direction:f.f.Right,onClick:function(){_(),x({type:g.n.Next}),c.k.logUserAction(Z(g.n.Next),b.d.getSliderAnalyticsOptions())},hide:C.hideRightButton,rightButtonClassName:"".concat(j.rightButton," ").concat(t.noNegativePadding?j.rightButtonNoPadding:""),rightGradientClassName:"".concat(j.rightGradient," ").concat(t.noNegativePadding?j.rightGradientNoPadding:""),useGradientBackdrop:!0})))))}C.defaultProps={heading:"",description:"",childComponentProps:{}};var R=function(t){var e=t.partialLoadingComponent,n=t.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},v.u.getPartialLoadingItems(n).map((function(t,n){return i.createElement(e,{key:n})})))}},14244:(t,e,n)=>{n.d(e,{C:()=>o,E:()=>f});var i=n(86764),r=n(10841);function a(t){return t===i.r.XS?200:t===i.r.SM||t===i.r.MD?350:500}var o={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},l=function(t){var e=t.elementRefs,n=e.container,i=e.lastElement;if(!(null==n?void 0:n.current)||!(null==i?void 0:i.current))return o;var r=n.current.getBoundingClientRect(),l=r.left,c=r.right,s=l,u=i.current.getBoundingClientRect().right,d=c-u;return Object.assign(Object.assign({},o),{containerLeftPosition:l,containerRightPosition:c,firstElementPosition:s,lastElementPosition:u,hideRightButton:u<c,leftOffsetLimit:d,maxSlideDistance:a(t.mediaQuery)})},c=function(t){var e=l(Object.assign(Object.assign({},t),t.elementRefs));return Object.assign(Object.assign({},e),{maxSlideDistance:a(t.mediaQuery)})},s=function(t){var e=t.firstElementPosition,n=t.lastElementPosition,i=t.maxSlideDistance,r=t.offset,a=t.containerRightPosition,o=n-a>=i?i:n-a;return{firstElementPosition:e-o,lastElementPosition:n-o,offset:r-o,hideRightButton:n-o===a,hideLeftButton:!1}},u=function(t){var e=t.containerLeftPosition,n=t.firstElementPosition,i=t.lastElementPosition,r=t.maxSlideDistance,a=t.offset,o=n+r<=e,l=o?r:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:i+l,offset:a+l,hideLeftButton:!o||n+l===e,hideRightButton:!1}},d=function(t,e){var n=e.widgetSnapshot,i=e.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-i,a=n.offset-r,o=n.firstElementPosition-r,l=n.lastElementPosition-r,c=!1,s=!1;return o>t.containerLeftPosition&&(a=0,o=t.containerLeftPosition,l=t.lastElementPosition,c=!0),l<=t.containerRightPosition&&(a=t.leftOffsetLimit,o=t.containerLeftPosition-Math.abs(t.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}};function f(t,e){switch(e.type){case r.n.Init:return Object.assign(Object.assign({},t),l(e.payload));case r.n.Resize:return Object.assign(Object.assign({},t),c(e.payload));case r.n.Next:return Object.assign(Object.assign({},t),s(t));case r.n.Previous:return Object.assign(Object.assign({},t),u(t));case r.n.Drag:return Object.assign(Object.assign({},t),d(t,e.payload));default:return t}}},81514:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(86764),r=n(3747);function a(){var t=(0,r.a)(i.r.XS),e=(0,r.a)(i.r.SM),n=(0,r.a)(i.r.MD),a=(0,r.a)(i.r.LG),o=(0,r.a)(i.r.XL),l=(0,r.a)(i.r.XXL),c=i.r.LG;return t&&(c=i.r.XS),e&&(c=i.r.SM),n&&(c=i.r.MD),a&&(c=i.r.LG),o&&(c=i.r.XL),l&&(c=i.r.XXL),c}},10038:(t,e,n)=>{n.d(e,{H:()=>a});var i=n(32735);function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=function(){t(),window.clearTimeout(n),n=window.setTimeout(e,100)};i.useEffect((function(){return window.addEventListener("resize",e?l:t),function(){return window.removeEventListener("resize",e?l:t)}}),function(t){if(Array.isArray(t))return r(t)}(a=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(a)||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.")}())}},5859:(t,e,n)=>{function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{u:()=>a});var r={numItems:5,minWidth:50,maxWidth:100},a={getPartialLoadingItems:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign(Object.assign({},r),e);return(t=Array(n.numItems),function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*n.maxWidth),n.minWidth),"px")}}))}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>C});var a,r=n(23481),i=n(110),o=n(71063);function l(e){return l="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},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var d=r.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,r=e.phraseContext,i=e.product,o=void 0===i?"ClickView":i;if(!a)return"";if(!r)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=r.phraseHandler(r.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):r.phraseHandler(r.titlePhrase,{title:a})}function y(e){var t,n,a,r,i,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(i=l||o)?i.substring(0,160):""));if(!c)return d(m,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var r=e.slice(0,a),i=r.match(u);return i?i[1]:r}(l,0,null!==(r=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==r?r:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function f(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,r,i=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(r=n.id)||void 0===r?void 0:r.toString())===(null==t?void 0:t.toString())&&i?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[{"@type":"Place",name:i}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:i.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:f(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var C={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:r,product:e.product}),description:y({title:t,description:n,phraseContext:r}),canonicalLink:a,allowIndexing:i,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:r,hrefLang:i}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:r}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:a,allowIndexing:i}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:r}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:a,allowIndexing:i}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:r}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r,hrefLang:i}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r,hrefLang:i}}}},26226:(e,t,n)=>{n.r(t),n.d(t,{CompanyDashboardView:()=>$});var a=n(32735),r=n(23481),i=n(81886),o=n(20354),l=n(75896),c=n(78259),s=n(65858),d=n(15800),u=n(83345),p=n(64444),m=n(26154),v=n(35223),g="streamable.companyDashboardEmptyState",h=r.T.encloseNamespace(g);function y(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===m.GL.Archived;return a.createElement(u.D.Provider,{value:g},a.createElement(d.u,null,a.createElement(d.u.Image,{src:e.imageUrl,altText:h("headingForStreamable")}),e.isReadOnly?a.createElement(a.Fragment,null,a.createElement(d.u.Heading,null,a.createElement(u.x,{namespace:g,phrase:"headingForCurator"})),a.createElement(d.u.Info,null,a.createElement(u.x,{namespace:g,phrase:"info"})),a.createElement(p.u,{title:i?r.T.getPhrase(g,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(d.u.Cta,{text:r.T.getPhrase(g,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:v.vn.Plus,disabled:i}))):a.createElement(d.u.Heading,null,a.createElement(u.x,{phrase:"headingForStreamable"}))))}var f=n(99105),b=n(75553),C=n(49935),E=n(56097),L=n(81326),S=n(7733),A=n(77843),x=n(9085);function T(e){return T="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},T(e)}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=r.T.encloseNamespace("streamable.companyDashboard");function w(e){var t,n,r,i,o,d,u,p=l.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),v=a.useMemo((function(){return p.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==p?void 0:p.length]),g=(d=a.useState(v),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(d,u)||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}}(d,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[0],w=g[1];function k(t,n,a){var r,i=A.S.getWidgetParams(n,a,A.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)}var P=a.useCallback((function(e,t){if(h[e]!==t){var n=Object.assign(Object.assign({},h),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=T(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t));w(n)}}),[h,p]),U=!(null==p?void 0:p.length)||Object.values(h).every((function(e){return!!e}));return a.createElement(a.Fragment,null,!!p.length&&a.createElement(a.Fragment,null,e.company?a.createElement(b.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,x.x)(e.company.name,S.o),actions:null===(n=e.getBannerActions)||void 0===n?void 0:n.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):a.createElement(b.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(C.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),a.createElement(f.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(i=e.appLinks)||void 0===i?void 0:i.audience()})),e.company.description&&a.createElement("div",{className:"mb-5"},a.createElement(E.$,{id:null===(o=e.company)||void 0===o?void 0:o.id,question:O("aboutUs"),answer:c.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:s.py.Company,location:s.LZ.Dashboard}})),a.createElement("div",null,p.map((function(t){return a.createElement(L.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:k,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,setIsEmpty:P,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,isBot:e.isBot,contentType:m.VH.Livestream,preferences:t.preferences,isPlugin:!1})})))),U&&a.createElement(y,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var k=n(70275),P=n(25925),U=n(67058),_=n(89454),R=n(39151),F=n(80889),M=n(79612),D=n(69454),B=n(25301),H=n(99742),N=n(96359),j=n(41760),W=n(41135),q=n(68317),G=n(31700),V=n(73688),Y=n(65751),z=n(6117),K=n(28400),Q=r.T.encloseNamespace("dashboard.companyDashboard");function $(e){var t,n,r,l=o.a.useBasicFetch(R.L.config()),c=o.a.useBasicFetch(q.h.company(e.companyId,{query:"banner,logo"})),s=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&_.O.presentationAudiences(s.data.id,P.R.StreamableLearning)),u=D.T.getActiveAudiencesFromParams(d.data,e.queryParams),p=c.data&&function(e,t){return{audience:function(){return{application:W.O.DASHBOARD,action:N.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,K.m.slugify(e.name)],params:t}}}}(c.data,e.queryParams),v=(0,V.B)({targetType:m.ku.Company,companyId:e.companyId,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}),g=v.dashboard,h=v.isPreviewing;return(0,M.M)(B.CG.getDefaultMetadata({title:null===(n=c.data)||void 0===n?void 0:n.name,phraseContext:{phraseHandler:Q,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:z.f.getCanonicalLink(),allowIndexing:!0,product:j.L.PRODUCT_NAME})),a.useEffect((function(){g.hasCompleted&&!g.data&&i.Q.Ry.throw(new U.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&s.hasCompleted&&d.hasCompleted&&c.hasCompleted?a.createElement("div",{className:"position-relative px-4"},!(!h||!g.data)&&a.createElement(k.a,{status:g.data.status,type:"company"}),a.createElement(w,{company:c.data,dashboard:g.data,getWidgetContentRequest:F._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:H.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:s.data,widgetAppLinks:Y.y,getBreadcrumbs:function(){return c.hasCompleted?[{name:Q("discover"),appLink:{application:W.O.DASHBOARD,action:N.e.Dashboard.HOME}},{name:c.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:H.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:p,emptyImageUrl:H.W.EmptyStates.Topics.TOPIC,isBot:z.f.isBot(),lazyLoad:!z.f.isBot()})):a.createElement(a.Fragment,null)}},41760:(e,t,n)=>{n.d(t,{L:()=>a});var a={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}},68317:(e,t,n)=>{n.d(t,{h:()=>i});var a=n(99940),r=n(97395),i={company:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:r._.urlBuilder("/api/objects/".concat(e),t),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(t,":").concat(n),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=t?t:void 0,limit:n,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:a.k.POST,data:i,key:r}}}}}]);
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>C});var a,r=n(23481),i=n(110),o=n(71063);function l(e){return l="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},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var d=r.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,r=e.phraseContext,i=e.product,o=void 0===i?"ClickView":i;if(!a)return"";if(!r)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=r.phraseHandler(r.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):r.phraseHandler(r.titlePhrase,{title:a})}function y(e){var t,n,a,r,i,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(i=l||o)?i.substring(0,160):""));if(!c)return d(m,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var r=e.slice(0,a),i=r.match(u);return i?i[1]:r}(l,0,null!==(r=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==r?r:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function f(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,r,i=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(r=n.id)||void 0===r?void 0:r.toString())===(null==t?void 0:t.toString())&&i?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[{"@type":"Place",name:i}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:i.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:f(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var C={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:r,product:e.product}),description:y({title:t,description:n,phraseContext:r}),canonicalLink:a,allowIndexing:i,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:r,hrefLang:i}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:r}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:a,allowIndexing:i}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:r}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:r}),canonicalLink:a,allowIndexing:i}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:r}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r,hrefLang:i}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,r=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:r,hrefLang:i}}}},26226:(e,t,n)=>{n.r(t),n.d(t,{CompanyDashboardView:()=>$});var a=n(32735),r=n(23481),i=n(81886),o=n(20354),l=n(75896),c=n(78259),s=n(65858),d=n(15800),u=n(83345),p=n(64444),m=n(26154),v=n(35223),g="streamable.companyDashboardEmptyState",h=r.T.encloseNamespace(g);function y(e){var t,n,i=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===m.GL.Archived;return a.createElement(u.D.Provider,{value:g},a.createElement(d.u,null,a.createElement(d.u.Image,{src:e.imageUrl,altText:h("headingForStreamable")}),e.isReadOnly?a.createElement(a.Fragment,null,a.createElement(d.u.Heading,null,a.createElement(u.x,{namespace:g,phrase:"headingForCurator"})),a.createElement(d.u.Info,null,a.createElement(u.x,{namespace:g,phrase:"info"})),a.createElement(p.u,{title:i?r.T.getPhrase(g,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(d.u.Cta,{text:r.T.getPhrase(g,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:v.vn.Plus,disabled:i}))):a.createElement(d.u.Heading,null,a.createElement(u.x,{phrase:"headingForStreamable"}))))}var f=n(99105),b=n(75553),C=n(49935),E=n(56097),L=n(81326),S=n(7733),A=n(21366),x=n(9085);function T(e){return T="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},T(e)}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=r.T.encloseNamespace("streamable.companyDashboard");function w(e){var t,n,r,i,o,d,u,p=l.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),v=a.useMemo((function(){return p.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==p?void 0:p.length]),g=(d=a.useState(v),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(d,u)||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}}(d,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=g[0],w=g[1];function k(t,n,a){var r,i=A.S.getWidgetParams(n,a,A.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)}var P=a.useCallback((function(e,t){if(h[e]!==t){var n=Object.assign(Object.assign({},h),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=T(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t));w(n)}}),[h,p]),U=!(null==p?void 0:p.length)||Object.values(h).every((function(e){return!!e}));return a.createElement(a.Fragment,null,!!p.length&&a.createElement(a.Fragment,null,e.company?a.createElement(b.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,x.x)(e.company.name,S.o),actions:null===(n=e.getBannerActions)||void 0===n?void 0:n.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):a.createElement(b.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(C.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),a.createElement(f.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadOnly,appLink:null===(i=e.appLinks)||void 0===i?void 0:i.audience()})),e.company.description&&a.createElement("div",{className:"mb-5"},a.createElement(E.$,{id:null===(o=e.company)||void 0===o?void 0:o.id,question:O("aboutUs"),answer:c.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:s.py.Company,location:s.LZ.Dashboard}})),a.createElement("div",null,p.map((function(t){return a.createElement(L.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:k,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,setIsEmpty:P,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,isBot:e.isBot,contentType:m.VH.Livestream,preferences:t.preferences,isPlugin:!1})})))),U&&a.createElement(y,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var k=n(70275),P=n(25925),U=n(67058),_=n(89454),R=n(39151),F=n(80889),M=n(79612),D=n(69454),B=n(25301),H=n(99742),N=n(96359),j=n(41760),W=n(41135),q=n(68317),G=n(31700),V=n(73688),Y=n(65751),z=n(6117),K=n(28400),Q=r.T.encloseNamespace("dashboard.companyDashboard");function $(e){var t,n,r,l=o.a.useBasicFetch(R.L.config()),c=o.a.useBasicFetch(q.h.company(e.companyId,{query:"banner,logo"})),s=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&_.O.presentationAudiences(s.data.id,P.R.StreamableLearning)),u=D.T.getActiveAudiencesFromParams(d.data,e.queryParams),p=c.data&&function(e,t){return{audience:function(){return{application:W.O.DASHBOARD,action:N.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,K.m.slugify(e.name)],params:t}}}}(c.data,e.queryParams),v=(0,V.B)({targetType:m.ku.Company,companyId:e.companyId,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}),g=v.dashboard,h=v.isPreviewing;return(0,M.M)(B.CG.getDefaultMetadata({title:null===(n=c.data)||void 0===n?void 0:n.name,phraseContext:{phraseHandler:Q,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:z.f.getCanonicalLink(),allowIndexing:!0,product:j.L.PRODUCT_NAME})),a.useEffect((function(){g.hasCompleted&&!g.data&&i.Q.Ry.throw(new U.d)}),[g.data,g.hasCompleted]),l.hasCompleted&&g.hasCompleted&&s.hasCompleted&&d.hasCompleted&&c.hasCompleted?a.createElement("div",{className:"position-relative px-4"},!(!h||!g.data)&&a.createElement(k.a,{status:g.data.status,type:"company"}),a.createElement(w,{company:c.data,dashboard:g.data,getWidgetContentRequest:F._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:H.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:s.data,widgetAppLinks:Y.y,getBreadcrumbs:function(){return c.hasCompleted?[{name:Q("discover"),appLink:{application:W.O.DASHBOARD,action:N.e.Dashboard.HOME}},{name:c.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:H.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:p,emptyImageUrl:H.W.EmptyStates.Topics.TOPIC,isBot:z.f.isBot(),lazyLoad:!z.f.isBot()})):a.createElement(a.Fragment,null)}},41760:(e,t,n)=>{n.d(t,{L:()=>a});var a={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}},68317:(e,t,n)=>{n.d(t,{h:()=>i});var a=n(99940),r=n(97395),i={company:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:r._.urlBuilder("/api/objects/".concat(e),t),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(t,":").concat(n),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=t?t:void 0,limit:n,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:a.k.POST,data:i,key:r}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2987],{78259:(e,t,n)=>{n.d(t,{O:()=>l});var a=n(58176),r=n.n(a),o=n(21161),i={className:"info-link",defaultProtocol:"https"},l={linkifyText:function(e,t){if(e){var n=t?o.extend({},i,t):i;return r()(e,n)}}}},79878:(e,t,n)=>{n.d(t,{r:()=>m});var a=n(32735),r=n(23481),o=n(83914),i=n(64444),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function m(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(o.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},23062:(e,t,n)=>{n.d(t,{b:()=>h});var a=n(32735),r=n(110),o=n(78259),i=n(28400),l=n(92582),c=n(65858),s=n(79878),m=n(12324),u=n(42735),d=n(57408),v=n(85473),p=n(83914),f=n(83345),g=n(2284),b=n(35223);const y={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};var E="shared.specialEventListItem";function h(e){var t,n,h,D,O,A,k=e.getAppLink(e.event.content,i.m.slugify(e.event.name)),C=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),N=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),T=null===(h=e.getBannerUrl)||void 0===h?void 0:h.call(e,e.event.content),L=!!e.event.endDate,S=e.event.content.status===g.W.ComingSoon,w=null===(D=e.getStartTime)||void 0===D?void 0:D.call(e,e.event.content),M=null===(O=e.getActionLabel)||void 0===O?void 0:O.call(e),P=null===(A=e.isPastEvent)||void 0===A?void 0:A.call(e,e.event.content),I={actionType:c.Vw.Click,entity:c.py.SpecialEvent,location:e.inPopup?c.LZ.CalendarPopup:c.LZ.CalendarDay},j={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:r.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return a.createElement("div",null,w&&a.createElement("h6",null,w),a.createElement("div",{onClick:function(){S&&l.k.logUserAction(j,I)}},a.createElement(d.F,{appLink:!S&&k,className:"".concat(S?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:I,analyticsData:j},a.createElement("div",{className:"banner rounded-3 position-relative position-relative ".concat(y.banner),style:{backgroundColor:C,backgroundImage:"url('".concat(T,"')")}},P&&a.createElement("div",{className:"bg-white w-100 h-100 opacity-50 position-absolute top-0 left-0 z-0"}),a.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},a.createElement("div",{className:"d-flex align-items-center z-1"},N&&a.createElement("div",{className:"".concat(y.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},a.createElement(v.Z,{data:N})),a.createElement("div",null,S&&a.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(y.pill)}),P&&a.createElement("div",{className:"d-inline-block rounded-pill bg-light-green mb-1"},a.createElement(p.x,{svgName:b.vn.CalendarCheck}),a.createElement("p",{className:"d-inline ms-1 mb-0"},a.createElement(f.x,{namespace:E,phrase:"pastEvent"}))),L&&a.createElement("p",{className:"text-white text-shadow mb-1"},m.T.getDisplayDate(e.event.startDate,e.event.endDate)),a.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),a.createElement("div",{className:"d-none d-sm-block flex-shrink-0 z-1"},!S&&a.createElement(u.K,{className:"btn ".concat(P?"btn-outline-dark":"btn-dark"," fw-semibold")},M))))),a.createElement("div",{className:"mt-2 mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:o.O.linkifyText(e.event.description||e.event.content.description)}})))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},54168:(e,t,n)=>{n.d(t,{d:()=>l});var a=n(32735),r=n(40290),o=n(83914),i=n(35223);function l(){var e;return a.createElement("div",null,a.createElement(o.x,{svgName:i.vn.Globe}),a.createElement("span",{className:"ms-1"},null===(e=r.F[r.r.ET])||void 0===e?void 0:e.name))}},85473:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(32735),r=n(1048),o=n(57408),i=n(16107),l=n(54610),c=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function m(e){var t=s.image,n="";return e.imageType===l.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(n=s.tallPoster),e.imageType===l.__.Covers&&(n=s.cover),e.imageType===l.__.Banners&&(n=s.banner),e.imageType===l.__.Posters&&(n=s.poster),e.imageType===l.__.Pdf&&(n=s.pdf),e.imageType===l.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function u(e){var t=e.data,n=e.imageOptions,l=e.appLink,s=e.preload,u=e.preventLoad,d=e.analyticsOptions,v=e.analyticsData,p=e.imageClassName,f=e.alt,g="";"string"==typeof t?g=t:r.t.isObject(t)&&(g=t.url);var b=g&&n?c.j.createUrl(g,n):g;return a.createElement("div",{className:m(e),style:e.imageStyle},a.createElement(o.F,{appLink:l,analyticsData:v,analyticsOptions:d,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName},e.children,b&&a.createElement(i.w,{src:b,alt:f,forceLoad:s,preventLoad:u,extraClasses:p,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})))}},16107:(e,t,n)=>{n.d(t,{w:()=>l});var a=n(32735),r=n(65294);const o="fVSzb";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 l=a.memo((function(e){var t,n,l=e.forceLoad,c=e.extraClasses,s=void 0===c?"":c,m=e.errorFallbackImageSrc,u=e.preventLoad,d=void 0!==u&&u,v=e.errorFallbackImageClassName,p=e.src,f=e.alt,g=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),b=(0,r.Y)({rootMargin:"500px"}),y=b.ref,E=b.inView,h=(t=a.useState(!1),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,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),D=h[0],O=h[1];function A(){return D&&m?m:e.src}if(a.useEffect((function(){if((l||E)&&!d){var e=new Image;return e.onerror=function(){O(!0),m&&(e.src=m)},e.src=p,function(){return e.onerror=null}}}),[E,d]),D&&!m)return a.createElement(a.Fragment,null);if(!y)return a.createElement("img",Object.assign({className:"".concat(o," ").concat(s," ").concat(D&&v||""),alt:f,src:A()},g));var k=Object.assign(Object.assign({alt:f},g),!E&&!l||d?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:A()});return l||(k.ref=y),a.createElement("img",Object.assign({className:"".concat(o," ").concat(s," ").concat(D&&v||"")},k))}))},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},5960:(e,t,n)=>{var a,r;n.d(t,{H:()=>r,X:()=>a}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(a||(a={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(r||(r={}))},65294:(e,t,n)=>{n.d(t,{Y:()=>o});var a=n(34152);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function o(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.prevent,i=n.rootMargin,l=n.triggerOnce,c=void 0===l||l,s=(e=(0,a.YD)({triggerOnce:c,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(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)?r(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.")}()),m=s[0],u=s[1],d=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(u=!0,m=null),{ref:m,inView:u,initialized:!!d}}},26255:(e,t,n)=>{n.d(t,{y:()=>o});var a=n(110),r=n(59795),o={getStartTime:function(e){return a.O.format(r.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&a.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)},isPastEvent:function(e){return a.O.isBefore(e.endDateTime,new Date)}}},323:(e,t,n)=>{n.d(t,{C:()=>l,j:()=>i});var a=n(99742),r=n(96359),o=n(41135);function i(){return{emptyState:a.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:a.W.EmptyStates.CALENDAR.INVALID_DATE}}function l(){return{calendar:function(){return{application:o.O.CALENDAR,action:r.e.Calendar.CALENDAR}},month:function(e){return{application:o.O.CALENDAR,action:r.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:o.O.LIVESTREAMS,action:r.e.Livestreams.LIVESTREAM,args:[e.id,t]}},eventList:function(e,t,n){return{application:o.O.CALENDAR,action:r.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},42987:(e,t,n)=>{n.r(t),n.d(t,{SpecialEventListView:()=>C});var a=n(32735),r=n(42648),o=n(23481),i=n(20354),l=n(110),c=n(23062),s=n(12324),m=n(54168),u=n(58960),d=n(54610),v=n(16714),p=n(22902),f=n(67453),g=n(55941),b=n(31700),y=n(26255),E=n(323);const h={modalWidth:"LrMq0",buttons:"jAfM0"};var D="specialEventCalendar.eventListPopup",O=o.T.encloseNamespace(D),A=400,k=300;function C(e){var t,n,C=i.a.useBasicFetch(b.g.streamablePresentation()),N=(0,(0,p.T)().hasPermissions)(v.C.StudentExperience),T=new Date(e.from),L=new Date(e.to),S=i.a.useBasicFetch((null===(t=C.data)||void 0===t?void 0:t.id)&&g.H.calendarLivestreams({from:l.O.format(T,"YYYY-MM-DD"),to:l.O.format(L,"YYYY-MM-DD")})),w=(null===(n=S.data)||void 0===n?void 0:n.filter((function(t){return t.startDate===l.O.format(new Date(e.date),"YYYY-MM-DD")})))||[];function M(e){var t;return f.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:d.h2.Large})}function P(e){var t;return f.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:d.h2.Small})}return a.createElement(u.G,{title:"Events on ".concat(s.T.getOrdinalDate(e.date)),closePopup:e.closePopup,dialogClassName:h.modalWidth,bodyClassName:"p-0",showLoadingSpinner:!S.data},a.createElement(r.$B,{autoHeight:!0,autoHeightMin:k,autoHeightMax:A},a.createElement("div",{className:"px-3 pt-2"},w.map((function(t,n){var r;return a.createElement(c.b,{key:t.content.id,getAppLink:(0,E.C)().event,event:t,onClick:e.closePopup,inPopup:!0,presentationId:null===(r=C.data)||void 0===r?void 0:r.id,getActionLabel:function(){return O((e=t.content,N||y.y.isPastEvent(e)?"pastActionLabel":"actionLabel"));var e},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:M,getIconUrl:P,getStartTime:y.y.isSameTime(w,n)?null:y.y.getStartTime,isPastEvent:y.y.isPastEvent})})))),a.createElement("div",{className:"d-flex justify-content-between align-items-center p-3 border-top"},a.createElement(m.d,null),a.createElement("button",{onClick:e.closePopup,className:"btn btn-outline-dark"},o.T.getPhrase(D,"close"))))}},55941:(e,t,n)=>{n.d(t,{H:()=>l});var a=n(97395),r=n(110),o=n(59795),i=n(5960),l={livestream:function(e){return{url:a._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:a._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:i.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:r.O.format(o.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[339],{75903:(e,t,a)=>{a.d(t,{YA:()=>o,tN:()=>_});var n=a(32735),r=a(68050),i=a(69111);const l={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function o(e){var t,a=function(e){if(Array.isArray(e))return c(e)}(t=Array(e.numItems))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=e.itemClassName||"";return n.createElement(n.Fragment,null,e.showHeading&&n.createElement("div",{className:"".concat(l.partialHeading," mb-1 partial-loading-background")}),n.createElement(r.Z,{className:"mx-n1 mb-n2"},a.map((function(e,t){return n.createElement(i.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(o," px-1 pb-2")},n.createElement("div",{className:"".concat(l.playlistItem," partial-loading-background rounded-3")}))}))))}o.defaultProps={numItems:8};var s=a(65858),d=["second","minute","hour","day","week","month","year"],m=["秒","分钟","小时","天","周","个月","年"],u={},p=function(e,t){u[e]=t},v=[60,60,24,7,365/7/12,12];function g(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var y=function(e,t,a){var n=function(e,t){return(+(t?g(t):new Date)-+g(e))/1e3}(e,a&&a.relativeDate);return function(e,t){for(var a=e<0?1:0,n=e=Math.abs(e),r=0;e>=v[r]&&r<v.length;r++)e/=v[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,n)[a].replace("%s",e.toString())}(n,function(e){return u[e]||u.en_US}(t))};p("en_US",(function(e,t){if(0===t)return["just now","right now"];var a=d[Math.floor(t/2)];return e>1&&(a+="s"),[e+" "+a+" ago","in "+e+" "+a]})),p("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var a=m[~~(t/2)];return[e+" "+a+"前",e+" "+a+"后"]}));var f=a(23481),b=a(110),h=a(83345),C="playlists.playlistCount";function E(e){var t=function(e){var t,a,n,r,i,l;return!!e&&(null!==(a=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==a?a:0)+(null!==(r=null===(n=e.interactives)||void 0===n?void 0:n.count)&&void 0!==r?r:0)+(null!==(l=null===(i=e.clips)||void 0===i?void 0:i.count)&&void 0!==l?l:0)}(e.playlist);return!1===t||Number.isNaN(t)?n.createElement(n.Fragment,null):n.createElement("span",{className:"text-shadow font-size-sm"},n.createElement(h.x,{namespace:C,phrase:"count",options:{smartCount:t}}))}var N=a(91374),S=a(2786);const w={avatar:"_N1vT"};function x(){return n.createElement("div",{className:w.avatar},n.createElement(S.Sd,null))}var k=a(64818);function A(e){var t,a,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return n.createElement(x,null);if(!(null==i?void 0:i.id)||!(null===(a=e.currentUser)||void 0===a?void 0:a.id))return n.createElement(n.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return n.createElement(n.Fragment,null);var l="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return n.createElement(N.q,{imageUrl:l,imageCdnUrl:e.imageCdnUrl,initials:k.l.getInitials(i.name,i.surname)})}var I=a(57408),O=a(70498),L=a(85473),j=a(85177),P=a(54610),D=a(80143),T=a(9085),U=a(67453),Z="playlists.playlistList";function _(e){var t,a,r=U.j.createUrl(e.data.cover&&e.data.cover.url,{size:P.h2.Medium,resizeType:P.Nq.Cover}),i=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,c=(0,D.n)(i,e.presentationAudiences),o=l.playlistItem,d=!!r||!!e.showFallbackImage;d&&(o+=" ".concat(l.playlistItemGradient)),!d&&e.bgColourClassNames&&(o+=" ".concat(l.playlistItem," ").concat((0,T.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(o+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(o+=" rounded-start-lg overflow-hidden");var m=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(a=e.data)||void 0===a?void 0:a.name}),u=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Playlist});return n.createElement(I.F,{appLink:e.appLink,analyticsData:m,analyticsOptions:u,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":f.T.getPhrase(Z,"lastUpdated",{timeago:y(b.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},n.createElement(L.Z,{data:r,alt:e.data.name,className:o},!!e.showFallbackImage&&n.createElement(j.oy,{type:j.mS.Playlist}),n.createElement("div",{className:"text-white ".concat(l.playlistMetadata)},!!e.showCount&&n.createElement(E,{playlist:e.data}),n.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},n.createElement("span",{className:"text-shadow clamp-2"},e.data.name)),!!i&&!!i.length&&!!c&&n.createElement(O.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:c,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&n.createElement("div",{className:l.ownerAvatarContainer},n.createElement(A,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}_.defaultProps={itemStyle:"square"},s.Vw.Click,s.py.Playlist,s.LZ.PlaylistListItem,s._S.Cover},43889:(e,t,a)=>{a.d(t,{J:()=>E});var n=a(32735),r=a(68050),i=a(69111),l=a(92582),c=a(65858),o=a(70498),s=a(18559),d=a(17464),m=a(57825),u=a(99131),p=a(85784),v=a(70872),g=a(17034),y=a(54610),f=a(68626),b=a(80143),h=a(40370);const C={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",responsiveGuidance:"s3W_4",description:"zejMP",details:"MRyVe"};function E(e){var t,a=e.video,E=e.presentationAudiences,N=e.getVideoAppLink,S=e.subTextAppLink,w=e.hideInteractiveBadge,x=null===(t=null==a?void 0:a.subjectPresentationAudiences)||void 0===t?void 0:t.data,k=(0,b.n)(x,E),A=l.k.mergeOptions(e.analyticsOptions,{location:c.LZ.ClassificationHero,entity:h.M.getAnalyticsEntity(a)}),I=n.useRef();return a?n.createElement(r.Z,null,n.createElement(i.Z,{xs:12,md:6},n.createElement("div",{ref:I},n.createElement(m.u,{analyticsData:e.analyticsData,analyticsOptions:A,video:a,appLink:null==N?void 0:N(e.video,{}),imageOptions:{size:y.h2.Medium},textPosition:f.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?k:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!k,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin}))),n.createElement(i.Z,{xs:12,md:6,className:"".concat(C.details," position-relative")},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement("div",null,n.createElement(g.$,{type:e.subTextType,analyticsData:e.analyticsData,analyticsOptions:A,video:a,appLink:S,className:"text-reset"}),n.createElement(v.u,{video:a,analyticsData:e.analyticsData,analyticsOptions:A,appLink:null==N?void 0:N(e.video,{}),textClassName:"h4",yearGroups:e.yearGroups})),n.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:A,video:a})),"info-panel"===e.badgePosition&&n.createElement(d.c,{className:"pb-1"},!w&&n.createElement(s.C,{type:s.g.Interactive,data:a.interactives}),n.createElement(s.C,{type:s.g.Rating,data:a.rating}),n.createElement(s.C,{type:s.g.ProductionYear,data:a.productionYear})),n.createElement("p",{className:"mb-1"},n.createElement("span",{className:C.description},a.description)),"info-panel"===e.badgePosition&&n.createElement(o.P,{audience:k,className:"mt-1",border:"dark"}),e.showVideoGuidance&&n.createElement(u.u,{getClassroomGuideAppLink:e.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,video:a,analyticsData:e.analyticsData,analyticsOptions:A,containerClassName:"d-flex ".concat(C.guidance),responsiveClassName:C.responsiveGuidance}))):n.createElement(n.Fragment,null)}E.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},6474:(e,t,a)=>{a.d(t,{f:()=>l});var n=a(32735),r=a(83914);const i={circle:"Uxnsl",img:"BQ87Y"};function l(e){var t;return e.imageUrl||e.svgName?e.imageUrl?n.createElement("div",{className:"".concat(i.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):n.createElement("div",{className:"".concat(i.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},n.createElement(r.x,{svgName:e.svgName,size:e.svgSize})):n.createElement(n.Fragment,null)}l.defaultProps={textVariant:"white"}},70580:(e,t,a)=>{a.d(t,{r:()=>v});var n=a(32735),r=a(70498),i=a(18559),l=a(85473),c=a(85177),o=a(54610),s=a(49439),d=a(80143);const m={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",description:"jnkdI",largeHoverDescription:"Uh4gM",hasTableOfContents:"RdHkK",smallHoverDescription:"TiqqV"};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function p(e){return n.createElement("div",{className:"py-3 mx-2 px-2 rounded bg-white text-center ".concat(m.mask," d-flex flex-column")},n.createElement("h3",{className:"fw-semibold mb-0 ".concat(m.hoverTitle," ").concat(e.isSmall?m.smallHoverTitle:m.largeHoverTitle)},n.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&n.createElement("p",{className:"".concat(e.hasTableOfContents?m.hasTableOfContents:""," ").concat(m.hoverDescription," ").concat(e.isSmall?m.smallHoverDescription:m.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?n.createElement(r.P,{audience:e.mergedAudience,border:"dark",className:"mt-2"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating,className:"mt-2"}))}function v(e){var t,a,v=(t=(0,s.L)({className:m.hoverActive}),a=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,c=[],o=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=i.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return c}}(t,a)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?u(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=v[0],y=v[1],f=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],b=(0,d.n)(f,e.presentationAudiences),h=!!(f&&f.length&&b);return n.createElement("div",{ref:g},n.createElement(l.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:o.__.TallPosters,preload:e.preloadImage,imageOptions:{size:o.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},y&&n.createElement(p,{isSmall:e.isSmall,series:e.series,mergedAudience:f&&f.length?b:null,hasTableOfContents:e.hasTableOfContents}),n.createElement(c.oy,{type:c.mS.Series}),n.createElement("div",{className:"position-absolute text-white text-shadow ".concat(m.labelContainer)},h?n.createElement(r.P,{audience:b,border:"white"}):n.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},2192:(e,t,a)=>{a.d(t,{Q:()=>h});var n=a(32735),r=a(45157),i=a(57408),l=a(6474),c=a(85177),o=a(83914),s=a(83345),d=a(54610),m=a(67453),u=a(45778),p=a(35223),v=a(29309),g="shared.subjectWidgetItem",y=function(e){var t=e.name,a=e.multiline,r=e.noUnderLine,i="".concat(v.Z.comingSoonPanel," \n d-flex flex-column align-items-center justify-content-center px-3 text-center"),l="";return a?l+=" ".concat(v.Z.clamped," clamp-2"):(i+=" text-nowrap",l+=" text-truncate"),n.createElement("div",{className:i},n.createElement("small",{className:"text-secondary"},n.createElement(s.x,{namespace:g,phrase:"comingSoon"})),n.createElement("p",{className:"".concat(r?"":v.Z.name," h6")},n.createElement("span",{className:l},t)))},f=function(e){var t=e.name,a=e.multiline,r=e.subtitle,i=e.noUnderLine,l=e.newVideosCount,c="px-3 d-flex flex-column justify-content-center",o="".concat(i?"":v.Z.name," h6");return a?o+=" ".concat(l?"clamp-2":"clamp-3"," text-start"):(c+=" text-nowrap text-truncate",o+=" text-truncate mb-0"),n.createElement("div",{className:c},r&&n.createElement("div",{className:"text-secondary clamp-1 ".concat(v.Z.text)},r),n.createElement("div",{className:o,title:t},t),!!l&&n.createElement("div",{className:"fw-semibold d-inline-block rounded-pill px-2 mt-1 bg-light-green w-fit h-fit text-green ".concat(v.Z.newVideos)},n.createElement(s.x,{namespace:g,phrase:"newVideos",options:{smartCount:l}})))};function b(e){var t,a=m.j.createUrl(e.coverUrl,{size:e.isLarge?d.h2.Medium:d.h2.Small}),i=void 0;u.G.isClassification(e.data)&&(i=e.data);var s={name:e.data.name,multiline:e.isLarge||e.multiline,subtitle:e.subtitle,noUnderLine:e.highlightOnHover,newVideosCount:e.showNewVideosCount?null===(t=null==i?void 0:i.externalMetadata)||void 0===t?void 0:t.childDashboardNewVideoCount:0};return n.createElement("div",{className:"".concat(e.themeColor?v.Z.hasThemeColor:"border"," d-flex position-relative ").concat(e.className," ").concat(v.Z.widgetItem," ").concat(e.isSelected?"border-success border-2":""," ").concat(e.highlightOnHover&&!e.themeColor?"bg-light-blue-hover":""),style:e.themeColor?{"--themeColor":e.themeColor}:{},id:"".concat(e.data.id,"-").concat(r.Y.getRandomInt())},e.isSelected&&n.createElement("div",{className:"".concat(v.Z.selectedMask," border-2")}),n.createElement("div",{className:"".concat(v.Z.imagePanel," ").concat(e.isLarge?v.Z.large:"")},e.isSelected&&!e.hideCheckmark&&n.createElement("div",{className:v.Z.selected},n.createElement(l.f,{svgName:p.vn.Check,svgSize:o.S.Large,textVariant:"white",variant:"green"})),n.createElement("div",{className:"".concat(v.Z.image," ").concat(e.imageClassName),style:e.coverUrl?{backgroundImage:"url('".concat(a,"')")}:{}}),!e.hideFallback&&n.createElement(c.oy,{type:c.mS.Subject,extraClasses:e.isLarge?v.Z.large:""})),e.isComingSoon?n.createElement(y,Object.assign({},s)):n.createElement(f,Object.assign({},s)))}function h(e){var t,a=e.getChildAppLink?e.getChildAppLink(e.data):null;return n.createElement(n.Fragment,null,a?n.createElement(i.F,{className:v.Z.appLink,appLink:a,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLinkOptions:null===(t=e.getChildAppLinkOptions)||void 0===t?void 0:t.call(e)},n.createElement(b,Object.assign({},e))):n.createElement(b,Object.assign({},e)))}},43741:(e,t,a)=>{a.d(t,{M:()=>s,Q:()=>o});var n=a(32735),r=a(45157),i=a(85177),l=a(29309);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var o=function(){var e,t,a=(e=n.useState(r.Y.getRandomInt(5)+3+"rem"),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,l,c=[],o=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=i.call(a)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(l=a.return(),Object(l)!==l))return}finally{if(s)throw r}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:l.Z.imagePanel}),n.createElement("div",{className:"px-2",style:{width:a}}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject})))},s=function(){return n.createElement("div",{className:"border d-flex position-relative me-2 ".concat(l.Z.widgetItem)},n.createElement("div",{className:"".concat(l.Z.partialLargeImage)}),n.createElement("div",{className:"px-2"}),n.createElement("div",{className:l.Z.partialIcon},n.createElement(i.oy,{type:i.mS.Subject,extraClasses:l.Z.partialLargeFallback})))}},91028:(e,t,a)=>{a.d(t,{V:()=>s});var n=a(32735),r=a(65858),i=a(2192),l=a(52641),c=a(2284),o=a(26154),s=n.memo((function(e){var t,a,s,d,m,u,p,v=e.data.id===o.OL.ClassificationDirectory,g=(null===(t=e.data)||void 0===t?void 0:t.status)===c.W.ComingSoon,y=function(e,t){var a;if((null==t?void 0:t.length)>=l._.MULTI_PRESENTATION_THRESHOLD)return null===(a=null==t?void 0:t.find((function(t){return t.id===e})))||void 0===a?void 0:a.name}(e.data.presentationId,null==e?void 0:e.availablePresentations),f=Object.assign(Object.assign({},e.analyticsData),{id:(null===(a=e.analyticsData)||void 0===a?void 0:a.id)||(null===(s=e.data)||void 0===s?void 0:s.id),name:null===(d=e.data)||void 0===d?void 0:d.name,presentationId:(null===(m=e.analyticsData)||void 0===m?void 0:m.presentationId)||e.data.presentationId,comingSoon:!!g}),b=Object.assign(Object.assign({location:r.LZ.ClassificationListItem,entity:r.py.Classification},e.analyticsOptions),{actionType:r.Vw.Click,descriptor:r._S.Cover});return n.createElement(i.Q,Object.assign({},e,{analyticsData:f,analyticsOptions:b,coverUrl:null===(u=e.data.cover)||void 0===u?void 0:u.url,subtitle:(null===(p=e.getSubtitle)||void 0===p?void 0:p.call(e,e.data))||y,isComingSoon:g,themeColor:v?e.themeColor:""}))}))},9513:(e,t,a)=>{a.d(t,{Ml:()=>r.M,Qh:()=>r.Q,Vz:()=>n.V});var n=a(91028),r=a(43741),i=(a(32735),a(65858));a(57408),a(83914),a(83345),a(35223),a(29309),i.Vw.Click,i.py.UserSetting,i._S.Tile,a(2786),i.Vw.Click,i.py.Url,i._S.Tile},2284:(e,t,a)=>{var n;a.d(t,{W:()=>n}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(n||(n={}))},85594:(e,t,a)=>{var n;a.d(t,{A:()=>n}),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(n||(n={}))},29309:(e,t,a)=>{a.d(t,{Z:()=>n});const n={appLink:"fFjKN",name:"A_by9",selectedMask:"xSQtR",widgetItem:"Ys9W_",hasThemeColor:"DX2ua",text:"JfAoy",imagePanel:"aUNDc",partialLargeImage:"RuLxv",selected:"BViJb",image:"LkTep",dragHandle:"CJqvP",large:"R5clw",comingSoonPanel:"Wa2PG",newVideos:"s61h8",editSubjectsItem:"gGNFD",allSubjectsItem:"IHdlJ",logoContainer:"Nzaes",draggingItem:"zUOye",partialLargeFallback:"FmJP9",partialIcon:"sdZuo"}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4254],{19716:(e,t,n)=>{n.d(t,{D:()=>d});var a=n(32735),i=n(39202),r=n(23481),o=n(65858),l=n(88818);const c={pillTab:"Vrjid"};var s="streamable.header";function d(e){var t,n,d,u,p,m,v=[{name:r.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:r.T.getPhrase(s,"heading"),url:i.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:r.T.getPhrase(s,"livestreams"),appLink:null===(d=e.appLinks)||void 0===d?void 0:d.calendar,active:"calendar"===e.active,analyticsData:{name:r.T.getPhrase(s,"livestreams"),url:i.C$.getHref(null===(u=e.appLinks)||void 0===u?void 0:u.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:r.T.getPhrase(s,"partners"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.partners,active:"partners"===e.active,analyticsData:{name:r.T.getPhrase(s,"partners"),url:i.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return a.createElement("div",{className:"py-3 text-center"},a.createElement(l.r,{tabs:v,className:c.pillTab}))}},88818:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),i=n(92582),r=n(57408),o=n(18559),l=n(11607),c=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function d(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(c.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 u(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(r.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(s.tabLink,"\n ")},a.createElement(d,{tab:e})):a.createElement(l.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(d,{tab:e})))}))))}u.defaultProps={borderRadius:"lg"}},71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>L});var a,i=n(23481),r=n(110),o=n(71063);function l(e){return l="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},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var d=i.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,i=e.phraseContext,r=e.product,o=void 0===r?"ClickView":r;if(!a)return"";if(!i)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=i.phraseHandler(i.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):i.phraseHandler(i.titlePhrase,{title:a})}function f(e){var t,n,a,i,r,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(r=l||o)?r.substring(0,160):""));if(!c)return d(m,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var i=e.slice(0,a),r=i.match(u);return r?r[1]:i}(l,0,null!==(i=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==i?i:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,i,r=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&r?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[{"@type":"Place",name:r}]):e}),[]))&&void 0!==n?n:[]}function y(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:r.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:b(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var L={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:i,product:e.product}),description:f({title:t,description:n,phraseContext:i}),canonicalLink:a,allowIndexing:r,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:y(t,n,o),canonicalLink:n,allowIndexing:i,hrefLang:r}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}}}},14254:(e,t,n)=>{n.r(t),n.d(t,{DashboardView:()=>F});var a=n(32735),i=n(23481),r=n(57900),o=n(20354),l=n(2948),c=n(75896),s=n(19716),d=n(81326),u=n(22902),p=n(26154),m=n(77843),v=n(15800),g=n(83345),h=n(64444),f=n(35223),b="streamable.dashboardEmptyState",y=i.T.encloseNamespace(b);function L(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===p.GL.Archived;return a.createElement(v.u,null,a.createElement(v.u.Image,{src:e.imageUrl,altText:y("info")}),a.createElement(v.u.Heading,null,a.createElement(g.x,{namespace:b,phrase:"heading"})),a.createElement(v.u.Info,null,a.createElement(g.x,{namespace:b,phrase:"info"})),a.createElement(h.u,{title:r?i.T.getPhrase(b,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(v.u.Cta,{text:i.T.getPhrase(b,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:f.vn.Plus,disabled:r})))}function C(e){var t,n=c.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,u.T)(),r=i.hasPermissions,o=i.hasLocalPermissions;function l(t,n,a){var i=m.S.getWidgetParams(n,a,m.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,i,a)}var v=e.isReadonly&&!(null==n?void 0:n.length);return a.createElement(a.Fragment,null,a.createElement(s.D,{active:"discover",appLinks:e.headerAppLinks}),n.map((function(t,n){return a.createElement(d.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:l,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,lazyLoad:e.lazyLoad,dashboardTarget:p.ku.Discover,widgetIndex:n,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"productionCompany",contentType:p.VH.Livestream,resourceThumbnailFallbackImageUrl:"",preferences:t.preferences,hasPermissions:r,hasLocalPermissions:o,preventPopout:!0,isPlugin:!1})})),v&&a.createElement(L,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var E=n(38143),k=n(25925),x=n(89454),T=n(39151),A=n(80889),S=n(79612),O=n(69454),P=n(25301),w=n(99742),I=n(41760),U=n(31700),R=n(73688),D=n(6117),_=n(27051);function N(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 M=i.T.encloseNamespace("streamableDashboard.dashboard");function F(e){var t,n,i,c=o.a.useBasicFetch(T.L.config()),s=o.a.useBasicFetch(U.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&x.O.presentationAudiences(s.data.id,k.R.StreamableLearning)),u=(0,R.B)({targetType:p.ku.Discover,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}).dashboard,m=(n=(0,l.D)(E.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),i=1,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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return N(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)?N(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],v=(0,_.E)(O.T.getAudienceParams(m));return(0,S.M)(P.CG.getDiscoverMetadata({content:s.data,phraseContext:{phraseHandler:M,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:D.f.getCanonicalLink(),allowIndexing:!0,product:I.L.PRODUCT_NAME})),c.hasCompleted&&u.hasCompleted&&s.hasCompleted&&d.hasCompleted?a.createElement("div",{className:"bg-white px-4"},a.createElement(C,{dashboard:u.data,widgetAppLinks:v,headerAppLinks:(0,_.h)(),presentation:s.data,imageCdnUrl:c.data.imageCdnUrl,getWidgetContentRequest:A._.dashboardWidgetContent,audiences:d.data,lazyLoad:!D.f.isBot(),companyLogoFallbackUrl:w.W.StreamableLearning.LOGO})):a.createElement(a.Fragment,null)}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>l});var a=n(96359),i=n(41135),r=n(65751);function o(e){return Object.assign(Object.assign({},r.y),{classification:function(t){return r.y.classification(t,e)},classificationDirectory:function(){return r.y.classificationDirectory(e)}})}function l(){return{discover:{application:i.O.DASHBOARD,action:a.e.Dashboard.HOME},calendar:{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR},partners:{application:i.O.DASHBOARD,action:a.e.Dashboard.CONTENT_PARTNERS}}}},41760:(e,t,n)=>{n.d(t,{L:()=>a});var a={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4254],{19716:(e,t,n)=>{n.d(t,{D:()=>d});var a=n(32735),i=n(39202),r=n(23481),o=n(65858),l=n(88818);const c={pillTab:"Vrjid"};var s="streamable.header";function d(e){var t,n,d,u,p,m,v=[{name:r.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:r.T.getPhrase(s,"heading"),url:i.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:r.T.getPhrase(s,"livestreams"),appLink:null===(d=e.appLinks)||void 0===d?void 0:d.calendar,active:"calendar"===e.active,analyticsData:{name:r.T.getPhrase(s,"livestreams"),url:i.C$.getHref(null===(u=e.appLinks)||void 0===u?void 0:u.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:r.T.getPhrase(s,"partners"),appLink:null===(p=e.appLinks)||void 0===p?void 0:p.partners,active:"partners"===e.active,analyticsData:{name:r.T.getPhrase(s,"partners"),url:i.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return a.createElement("div",{className:"py-3 text-center"},a.createElement(l.r,{tabs:v,className:c.pillTab}))}},88818:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),i=n(92582),r=n(57408),o=n(18559),l=n(11607),c=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function d(e){return a.createElement(a.Fragment,null,!!e.tab.svgName&&a.createElement("div",{className:e.tab.name?"pe-1":""},a.createElement(c.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 u(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},a.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return a.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?a.createElement(r.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(s.tabLink,"\n ")},a.createElement(d,{tab:e})):a.createElement(l.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},a.createElement(d,{tab:e})))}))))}u.defaultProps={borderRadius:"lg"}},71063:(e,t,n)=>{n.d(t,{M:()=>a});var a={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},25301:(e,t,n)=>{n.d(t,{CG:()=>L});var a,i=n(23481),r=n(110),o=n(71063);function l(e){return l="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},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=l(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(a||(a={}));var d=i.T.encloseNamespace("shared.shared-utils"),u=/^(.*)\s/,p="pageTitle",m="pageDescription",v=s(s(s(s(s(s({},"au",a.AU),"gb",a.UK),"us",a.US),a.AU,"au"),a.UK,"gb"),a.US,"us");function g(e){return e?e.substring(0,e.length-3)+"...":""}function h(e){var t,n,a=e.title,i=e.phraseContext,r=e.product,o=void 0===r?"ClickView":r;if(!a)return"";if(!i)return d(p,{title:a,product:o});var l=70-(null!==(n=null===(t=i.phraseHandler(i.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return a.length>=l?d(p,{title:a,product:o}):i.phraseHandler(i.titlePhrase,{title:a})}function f(e){var t,n,a,i,r,o=e.title,l=e.description,c=e.phraseContext,s=g((160,(r=l||o)?r.substring(0,160):""));if(!c)return d(m,{description:s});var p=160-(null!==(n=null===(t=c.phraseHandler(c.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=p)return d(m,{description:s});var v=g(function(e,t,n){if(!e)return"";var a=160-n;if(e.length<=a)return e;var i=e.slice(0,a),r=i.match(u);return r?r[1]:i}(l,0,null!==(i=null===(a=c.phraseHandler(c.descriptionPhrase,{title:o,description:""}))||void 0===a?void 0:a.length)&&void 0!==i?i:0));return c.phraseHandler(c.descriptionPhrase,{title:o,description:v})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var a,i,r=null===(a=v[n.contentRegion])||void 0===a?void 0:a.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&r?[].concat(function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),[{"@type":"Place",name:r}]):e}),[]))&&void 0!==n?n:[]}function y(e,t,n){var a;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(a=null==e?void 0:e.thumbnail)||void 0===a?void 0:a.url,uploadDate:null==e?void 0:e.dateCreated,duration:r.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:b(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var L={getDefaultMetadata:function(e){var t=e.title,n=e.description,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing,o=e.hrefLang;return{title:h({title:t,phraseContext:i,product:e.product}),description:f({title:t,description:n,phraseContext:i}),canonicalLink:a,allowIndexing:r,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.regionAlternatives,l=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:l}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),jsonLd:y(t,n,o),canonicalLink:n,allowIndexing:i,hrefLang:r}},getClipMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getInteractiveMetadata:function(e){var t,n=e.content,a=e.canonicalLink,i=e.phraseContext,r=e.allowIndexing;return{title:h({title:null==n?void 0:n.name,phraseContext:i}),description:f({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:i}),canonicalLink:a,allowIndexing:r}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:h({title:null==t?void 0:t.name,phraseContext:a}),description:f({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:a}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,r=e.hrefLang,o=e.product;return{title:h({title:null==t?void 0:t.name,phraseContext:a,product:o}),description:f({title:null==t?void 0:t.name,phraseContext:a}),canonicalLink:n,allowIndexing:i,hrefLang:r}}}},14254:(e,t,n)=>{n.r(t),n.d(t,{DashboardView:()=>F});var a=n(32735),i=n(23481),r=n(57900),o=n(20354),l=n(2948),c=n(75896),s=n(19716),d=n(81326),u=n(22902),p=n(26154),m=n(21366),v=n(15800),g=n(83345),h=n(64444),f=n(35223),b="streamable.dashboardEmptyState",y=i.T.encloseNamespace(b);function L(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===p.GL.Archived;return a.createElement(v.u,null,a.createElement(v.u.Image,{src:e.imageUrl,altText:y("info")}),a.createElement(v.u.Heading,null,a.createElement(g.x,{namespace:b,phrase:"heading"})),a.createElement(v.u.Info,null,a.createElement(g.x,{namespace:b,phrase:"info"})),a.createElement(h.u,{title:r?i.T.getPhrase(b,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(v.u.Cta,{text:i.T.getPhrase(b,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:f.vn.Plus,disabled:r})))}function C(e){var t,n=c.m.sortBy(null===(t=e.dashboard)||void 0===t?void 0:t.widgets,"index"),i=(0,u.T)(),r=i.hasPermissions,o=i.hasLocalPermissions;function l(t,n,a){var i=m.S.getWidgetParams(n,a,m.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(t,i,a)}var v=e.isReadonly&&!(null==n?void 0:n.length);return a.createElement(a.Fragment,null,a.createElement(s.D,{active:"discover",appLinks:e.headerAppLinks}),n.map((function(t,n){return a.createElement(d.L,{key:t.id,id:t.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:l,audiences:e.audiences,name:t.name,description:t.description,templateId:t.templateId,metadata:t.metadata,presentation:e.presentation,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===t.id,widgetTypeId:t.widgetId,lazyLoad:e.lazyLoad,dashboardTarget:p.ku.Discover,widgetIndex:n,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"productionCompany",contentType:p.VH.Livestream,resourceThumbnailFallbackImageUrl:"",preferences:t.preferences,hasPermissions:r,hasLocalPermissions:o,preventPopout:!0,isPlugin:!1})})),v&&a.createElement(L,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var E=n(38143),k=n(25925),x=n(89454),T=n(39151),A=n(80889),S=n(79612),O=n(69454),P=n(25301),w=n(99742),I=n(41760),U=n(31700),R=n(73688),D=n(6117),_=n(27051);function N(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 M=i.T.encloseNamespace("streamableDashboard.dashboard");function F(e){var t,n,i,c=o.a.useBasicFetch(T.L.config()),s=o.a.useBasicFetch(U.g.streamablePresentation()),d=o.a.useBasicFetch(s.data&&x.O.presentationAudiences(s.data.id,k.R.StreamableLearning)),u=(0,R.B)({targetType:p.ku.Discover,dashboardId:null===(t=e.queryParams)||void 0===t?void 0:t.dashboardId}).dashboard,m=(n=(0,l.D)(E.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),i=1,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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,i)||function(e,t){if(e){if("string"==typeof e)return N(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)?N(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],v=(0,_.E)(O.T.getAudienceParams(m));return(0,S.M)(P.CG.getDiscoverMetadata({content:s.data,phraseContext:{phraseHandler:M,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:D.f.getCanonicalLink(),allowIndexing:!0,product:I.L.PRODUCT_NAME})),c.hasCompleted&&u.hasCompleted&&s.hasCompleted&&d.hasCompleted?a.createElement("div",{className:"bg-white px-4"},a.createElement(C,{dashboard:u.data,widgetAppLinks:v,headerAppLinks:(0,_.h)(),presentation:s.data,imageCdnUrl:c.data.imageCdnUrl,getWidgetContentRequest:A._.dashboardWidgetContent,audiences:d.data,lazyLoad:!D.f.isBot(),companyLogoFallbackUrl:w.W.StreamableLearning.LOGO})):a.createElement(a.Fragment,null)}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>l});var a=n(96359),i=n(41135),r=n(65751);function o(e){return Object.assign(Object.assign({},r.y),{classification:function(t){return r.y.classification(t,e)},classificationDirectory:function(){return r.y.classificationDirectory(e)}})}function l(){return{discover:{application:i.O.DASHBOARD,action:a.e.Dashboard.HOME},calendar:{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR},partners:{application:i.O.DASHBOARD,action:a.e.Dashboard.CONTENT_PARTNERS}}}},41760:(e,t,n)=>{n.d(t,{L:()=>a});var a={VIDEO_START_TIME_CUTOFF:10,PUBLIC_SEARCH_QUERY_DEBOUNCE:600,AUTHENTICATED_SEARCH_QUERY_DEBOUNCE:300,LEGACY_ACTION_SUFFIX:":legacy",MINIMUM_GLANCE_HEIGHT:368,PRODUCT_NAME:"Streamable Learning"}}}]);