@clickview/streamable-learning 0.10.0 → 0.10.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 (59) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{1224-streamable-learning-4d88d73a72.chunk.css → 1224-streamable-learning-960a566325.chunk.css} +2 -2
  3. package/dist/css/{2899-streamable-learning-48a1e18c71.chunk.css → 1528-streamable-learning-aa82307d33.chunk.css} +16 -16
  4. package/dist/css/{6125-streamable-learning-de4ad9fcc0.chunk.css → 2426-streamable-learning-96a9d2a730.chunk.css} +3 -3
  5. package/dist/css/{6351-streamable-learning-89fcf67269.chunk.css → 5320-streamable-learning-7c6be530bd.chunk.css} +1 -0
  6. package/dist/css/{719-streamable-learning-287263733e.chunk.css → 719-streamable-learning-b4e0997aab.chunk.css} +1 -1
  7. package/dist/css/{streamable-learning-66c0b11a0b.css → streamable-learning-60f0f30dd4.css} +3 -3
  8. package/dist/languages/en.json +1 -1
  9. package/dist/scripts/1224-1d37581524-streamable-learning.chunk.js +1 -0
  10. package/dist/scripts/1528-ba8cb4e3d3-streamable-learning.chunk.js +2 -0
  11. package/dist/scripts/2426-cbd48e7afb-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/2568-2469596e21-streamable-learning.chunk.js +2 -0
  13. package/dist/scripts/2700-ea0914efad-streamable-learning.chunk.js +1 -0
  14. package/dist/scripts/{2967-7a0c9a3963-streamable-learning.chunk.js → 2967-e794cc47f4-streamable-learning.chunk.js} +1 -1
  15. package/dist/scripts/2987-cd2053712c-streamable-learning.chunk.js +1 -0
  16. package/dist/scripts/3179-01fb7ec416-streamable-learning.chunk.js +1 -0
  17. package/dist/scripts/3933-b51ef0f8bf-streamable-learning.chunk.js +1 -0
  18. package/dist/scripts/4254-17dc8e2fbf-streamable-learning.chunk.js +1 -0
  19. package/dist/scripts/487-c7fb57b168-streamable-learning.chunk.js +1 -0
  20. package/dist/scripts/4942-ccd431e56a-streamable-learning.chunk.js +1 -0
  21. package/dist/scripts/520-a33d823ad2-streamable-learning.chunk.js +1 -0
  22. package/dist/scripts/5320-1dff589231-streamable-learning.chunk.js +1 -0
  23. package/dist/scripts/625-ca22170565-streamable-learning.chunk.js +1 -0
  24. package/dist/scripts/719-921669c56e-streamable-learning.chunk.js +2 -0
  25. package/dist/scripts/7787-94f0176daa-streamable-learning.chunk.js +1 -0
  26. package/dist/scripts/8213-debef201a8-streamable-learning.chunk.js +2 -0
  27. package/dist/scripts/9301-1eb930a05f-streamable-learning.chunk.js +1 -0
  28. package/dist/scripts/9908-82bc9a68d3-streamable-learning.chunk.js +2 -0
  29. package/dist/scripts/bundle-d4fbc718f9.min.js +2 -0
  30. package/package.json +1 -1
  31. package/dist/scripts/1224-9f817bb609-streamable-learning.chunk.js +0 -1
  32. package/dist/scripts/1262-d046134852-streamable-learning.chunk.js +0 -1
  33. package/dist/scripts/1974-e34ffcbd8e-streamable-learning.chunk.js +0 -1
  34. package/dist/scripts/2568-5538cf7233-streamable-learning.chunk.js +0 -2
  35. package/dist/scripts/2700-18f5dc6685-streamable-learning.chunk.js +0 -1
  36. package/dist/scripts/2899-349e36f90a-streamable-learning.chunk.js +0 -2
  37. package/dist/scripts/3179-0f87c131d7-streamable-learning.chunk.js +0 -1
  38. package/dist/scripts/3933-3ab3c2f1d0-streamable-learning.chunk.js +0 -1
  39. package/dist/scripts/4254-81f9445334-streamable-learning.chunk.js +0 -1
  40. package/dist/scripts/4942-55edca1fbf-streamable-learning.chunk.js +0 -1
  41. package/dist/scripts/520-445dde0823-streamable-learning.chunk.js +0 -1
  42. package/dist/scripts/6125-6572c39293-streamable-learning.chunk.js +0 -1
  43. package/dist/scripts/6351-6974cbe53e-streamable-learning.chunk.js +0 -1
  44. package/dist/scripts/719-ff84327f93-streamable-learning.chunk.js +0 -2
  45. package/dist/scripts/7787-6ff4e1a4e7-streamable-learning.chunk.js +0 -1
  46. package/dist/scripts/8213-8bc5f0520e-streamable-learning.chunk.js +0 -2
  47. package/dist/scripts/8498-a505baa846-streamable-learning.chunk.js +0 -1
  48. package/dist/scripts/8803-895bf897dd-streamable-learning.chunk.js +0 -1
  49. package/dist/scripts/9301-9770964e4c-streamable-learning.chunk.js +0 -1
  50. package/dist/scripts/9908-4116212c51-streamable-learning.chunk.js +0 -2
  51. package/dist/scripts/bundle-dd7915cc84.min.js +0 -2
  52. package/dist/css/{2568-streamable-learning-c606379281.chunk.css → 2568-streamable-learning-e93e7f70a9.chunk.css} +11 -11
  53. /package/dist/css/{8803-streamable-learning-b5d226bbb6.chunk.css → 2987-streamable-learning-b5d226bbb6.chunk.css} +0 -0
  54. /package/dist/scripts/{2568-5538cf7233-streamable-learning.chunk.js.LICENSE.txt → 1528-ba8cb4e3d3-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  55. /package/dist/scripts/{2899-349e36f90a-streamable-learning.chunk.js.LICENSE.txt → 2568-2469596e21-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  56. /package/dist/scripts/{719-ff84327f93-streamable-learning.chunk.js.LICENSE.txt → 719-921669c56e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  57. /package/dist/scripts/{8213-8bc5f0520e-streamable-learning.chunk.js.LICENSE.txt → 8213-debef201a8-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  58. /package/dist/scripts/{9908-4116212c51-streamable-learning.chunk.js.LICENSE.txt → 9908-82bc9a68d3-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  59. /package/dist/scripts/{bundle-dd7915cc84.min.js.LICENSE.txt → bundle-d4fbc718f9.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2700],{99105:(e,t,a)=>{a.d(t,{x:()=>h,N:()=>E});var n=a(32735),r=a(57900),o=a(81886),i=a(2948),l=a(1048),c=a(91967);const s={disabled:"pERi4",disabledHighlighted:"AxyWm"};function m(e){var t=e.audience,a=e.highlight,r=e.setAudience,o=e.isDisabled,i=e.extraClasses,l=function(e,t){return e?t?"".concat(s.disabledHighlighted," text-light"):"bg-gray-900 text-white":t?"".concat(s.disabled," text-secondary"):"bg-light"}(a,o),m="rounded-pill d-inline-block me-1 user-select-none ".concat(o?"cursor-default":"cursor-pointer"," ").concat(l," ").concat(i);return n.createElement("span",{className:m,onClick:function(){!o&&c.q.isFunction(r)&&r(t,!a)},role:"checkbox","aria-checked":a},t.name.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.substring(1)})).join(" "))}m.defaultProps={extraClasses:""};var u=a(11607),d=a(83345),b=a(38143),p=a(5859);function f(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}function g(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="subjects.audienceFilter";function h(e){var t,a,c=e.audiences,s=e.activeAudiences,p=e.disabled,h=e.appLink,y=(t=(0,i.D)(b.g.AUDIENCE_FILTER,void 0,{storage:r.Z1.SessionStorage}),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,o,i,l=[],c=!0,s=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=o.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&&(i=a.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(t,a)||f(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.")}())[1];function E(e,t){var a,n,r=t?[].concat(function(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(null!==(a=null==s?void 0:s.map((function(e){return e.name})))&&void 0!==a?a:[]),[e.name]):s.map((function(e){return e.name})).filter((function(t){return t!==e.name}));o.Q.C$.trigger(Object.assign(Object.assign({},h),{params:(n=l.t.omit(h.params,["a"]),r.length?Object.assign({},n,{a:r}):n)}),{replace:!0})}return n.useEffect((function(){e.disablePersist||y(s)}),[s]),c&&c.length?n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},c.map((function(e){return n.createElement(m,{key:e.masterId,audience:e,highlight:!!(null==s?void 0:s.find((function(t){return t.masterId===e.masterId}))),setAudience:E,isDisabled:p})})),!!s&&!!Object.keys(s).length&&n.createElement(u.L,{className:"info-link d-inline-block ms-1",onClick:function(){var e=l.t.omit(h.params,["a"]);o.Q.C$.trigger(Object.assign(Object.assign({},h),{params:e}),{replace:!0})}},n.createElement(d.x,{namespace:v,phrase:"clear"}))):n.createElement(n.Fragment,null)}var y=p.u.getPartialLoadingItems({numItems:6}),E=function(){return n.createElement("div",{className:"d-flex flex-wrap row-gap-2"},y.map((function(e,t){var a=e.width;return n.createElement("span",{key:t,className:"rounded-pill partial-loading-background me-1",dangerouslySetInnerHTML:{__html:"&nbsp"},style:{width:a}})})))}},70275:(e,t,a)=>{a.d(t,{a:()=>h});var n=a(32735),r=a(23481),o=a(75902),i=a(35223);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,a){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,"string");if("object"!=l(n))return n;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:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=c(c(c({},o.GL.Archived,{svgName:i.vn.Archive,svgColorClassName:"text-secondary",actionName:"Archive",statusName:"Archived"}),o.GL.Draft,{svgName:i.vn.Edit,svgColorClassName:"",actionName:"Draft",statusName:"Draft"}),o.GL.Published,{svgName:i.vn.VisibleOn,svgColorClassName:"text-success",actionName:"Publish",statusName:"Published"}),m=a(83914),u=a(26154);const d={badge:"ciO47",draftLight:"A6Yi7",draftDark:"fkXBX",published:"Ovzwy",archived:"r_dco"};function b(e){var t="rounded-pill d-flex align-items-center ps-2 py-1 fw-semibold ms-2 ".concat(d.badge);switch(e.status){case u.GL.Published:t+=" ".concat(d.published);break;case u.GL.Archived:t+=" ".concat(d.archived);break;case u.GL.Draft:t+=" ".concat(e.darkMode?d.draftDark:d.draftLight)}return e.wrapperClassName&&(t+=" ".concat(e.wrapperClassName)),t}function p(e){var t=s[e.status],a=t.statusName,r=t.svgName;return n.createElement("div",{className:b(e)},n.createElement(m.x,{svgName:r}),n.createElement("div",null,a))}var f=a(10731);const g={stickyWrapper:"zhw6K",badgeWrapper:"NOvn1",badge:"pxQSR"};var v=r.T.encloseNamespace("shared.classificationPreviewBanner");function h(e){return n.createElement("div",{className:"".concat(g.stickyWrapper," py-2 d-flex justify-content-space-between bg-dark text-white mx-2 rounded")},n.createElement("div",{className:"position-absolute d-flex ".concat(g.badgeWrapper)},n.createElement(p,{status:e.status,wrapperClassName:"".concat(g.badge),darkMode:!0})),n.createElement("div",{className:"flex-grow-1"},n.createElement("h1",{className:"text-center my-3 h5"},n.createElement(f.V,{emoji:"👀"}),v("topic"===e.type?"topicTitle":"companyTitle"))))}},75553:(e,t,a)=>{a.d(t,{p:()=>L,v:()=>S});var n=a(32735),r=a(110),o=a(12788),i={renderInPortalIfExists:function(e,t){return t?(0,o.createPortal)(e,t):e}},l=a(79878),c=a(39880),s=a(64887),m=a(23481),u=a(57408),d=a(83914),b=a(35223),p="shared.backButton";function f(e){var t=Object.assign({textShadow:!0},e),a=t.backToName,r=t.appLink,o=t.color,i=t.extraClasses,l=t.textShadow,c=a?m.T.getPhrase(p,"backTo",{backToName:a}):m.T.getPhrase(p,"back"),s="black"===o?"":"text-white",f=l?"text-shadow":"";return n.createElement(u.F,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(i," ").concat(s," ").concat(f)},n.createElement(d.x,{svgName:b.vn.ChevronLeft,size:d.S.Medium}),n.createElement("span",{className:"ms-1"},c))}f.defaultProps={color:"black",extraClasses:""};var g=a(16107),v=a(83345),h=a(10587),y=a(94232),E=a(54610),w=a(79967),N=a(67453);const k={bannerContent:"sSCTB",actionsContainer:"Z5WI2",bannerContentWithLogo:"rgs7Q",container:"M51HJ",logoContainer:"vkeJk",logoContainerLeft:"M3U9B",logoHeading:"EtRwC",specialEventContainer:"rOxDc",headingLarge:"_8pnV",heading:"JXVBH"};var C="".concat(h.y[E.__.Banners].width,":").concat(h.y[E.__.Banners].height);function x(e){return e.length<160?"h1":k.headingLarge}var L=n.memo((function(e){var t,a,o,m,u=e.heading,d=e.banner,b=e.imageCdnUrl,p=e.actions,h=e.sortComponent,L=e.blockColourClass,S=e.specialEvent,_=n.useContext(y.n),D=(0,w.k)().xxl?1920:1200,j=n.useMemo((function(){if(!S||e.showComingSoon)return!1;var t=r.O.format(new Date,"YYYY-MM-DD");return S.endDate?S.startDate<=t&&S.endDate>=t:S.startDate===t}),[S]),I=e.imageOptions||{width:D,ratio:C,resizeType:E.Nq.Cover},O=!!d&&!!b&&N.j.createBannerUrl(d,{fallbackBaseUrl:b,fallbackCategoryName:u,type:E.__.Banners},I),A={className:"banner banner-header ".concat(e.bannerClassName),style:O?{backgroundImage:"url('".concat(O,"')")}:{}};!d&&L&&(delete A.style,A.className+=" ".concat(L));var P=e.detailsComponent;return i.renderInPortalIfExists(n.createElement("header",Object.assign({},A),n.createElement("div",{className:"container ".concat(k.container," position-relative inner-banner")},e.backButtonAppLink&&n.createElement("div",{className:"pt-3"},n.createElement(f,{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(k.bannerContent," px-2 ").concat((null===(t=e.logo)||void 0===t?void 0:t.url)?k.bannerContentWithLogo:""))},!!S&&n.createElement("div",{className:"position-relative ".concat(k.specialEventContainer)},n.createElement(c.s,{body:{type:S.endDate?"range":"day",text:S.endDate?"".concat(r.O.format(S.startDate,"DD"),"-").concat(r.O.format(S.endDate,"DD")):r.O.format(S.startDate,"DD")},month:r.O.format(S.startDate,"MMMM"),theme:e.calendarTheme})),n.createElement("div",null,j&&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(v.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(k.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(g.w,{src:N.j.createUrl(null===(o=e.logo)||void 0===o?void 0:o.url,{size:E.h2.Medium})})),n.createElement("h1",{className:"text-white text-shadow pe-3 position-static ".concat(k.heading," ").concat(x(u)," ").concat(e.alignLogoLeft?"w-50":"")},u,P&&n.createElement(P,null)))),!!p&&n.createElement("div",{className:k.actionsContainer},n.createElement(s.e,{actions:p,sortComponent:h,actionsDropdownClassName:e.actionsDropdownClassName}))),!e.alignLogoLeft&&!!(null===(m=e.logo)||void 0===m?void 0:m.url)&&n.createElement("div",{className:k.logoContainer},n.createElement("img",{src:N.j.createUrl(e.logo.url,{size:E.h2.Small}),className:"rounded-circle"})))),null==_?void 0:_.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 S(){var e=n.useContext(y.n);return i.renderInPortalIfExists(n.createElement("div",{className:"partial-banner partial-loading-background ".concat(k.banner)}),null==e?void 0:e.container)}},49935:(e,t,a)=>{a.d(t,{Oo:()=>u,b2:()=>d});var n=a(32735),r=a(57408),o=a(86764),i=a(3747),l=a(5859),c=a(35223),s=a(83914),m=function(e){var t=e.breadcrumb,a=t.name,o=t.appLink,i=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?n.createElement("strong",null,a):n.createElement(r.F,{appLink:o},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ms-2":""},a)))},u=function(e){var t=e.breadcrumbs,a=(0,i.a)(o.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(m,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(m,{key:t,breadcrumb:e})}))))},d=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,i.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"},l.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"}}))}))))}))},10587:(e,t,a)=>{a.d(t,{y:()=>i});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 o(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 i=o(o(o(o(o(o(o(o(o({},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})}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{26226:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>Z});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),l=t(75896),s=t(78259),c=t(65858),d=t(15800),u=t(83345),m=t(64444),p=t(26154),y=t(35223),b="streamable.companyDashboardEmptyState",g=r.T.encloseNamespace(b);function v(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===p.GL.Archived;return n.createElement(u.D.Provider,{value:b},n.createElement(d.u,null,n.createElement(d.u.Image,{src:e.imageUrl,altText:g("headingForStreamable")}),e.isReadOnly?n.createElement(n.Fragment,null,n.createElement(d.u.Heading,null,n.createElement(u.x,{namespace:b,phrase:"headingForCurator"})),n.createElement(d.u.Info,null,n.createElement(u.x,{namespace:b,phrase:"info"})),n.createElement(m.u,{title:i?r.T.getPhrase(b,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(d.u.Cta,{text:r.T.getPhrase(b,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:y.vn.Plus,disabled:i}))):n.createElement(d.u.Heading,null,n.createElement(u.x,{phrase:"headingForStreamable"}))))}var h=t(99105),f=t(75553),C=t(49935),E=t(56097),k=t(62300),T=t(7733),L=t(21366),w=t(9085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function O(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var P=r.T.encloseNamespace("streamable.companyDashboard");function S(e){var a,t,r,i,o,d,u,m=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),y=n.useMemo((function(){return m.reduce((function(e,a){return e[a.id]=!1,e}),{})}),[null==m?void 0:m.length]),b=(d=n.useState(y),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==a);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(d,u)||function(e,a){if(e){if("string"==typeof e)return O(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,a):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.")}()),g=b[0],S=b[1];function I(a,t,n){var r,i=L.S.getWidgetParams(t,n,L.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(a,i,n)}var F=n.useCallback((function(e,a){if(g[e]!==a){var t=Object.assign(Object.assign({},g),function(e,a,t){return(a=function(e){var a=function(e,a){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(a)?a:a+""}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}({},e,a));S(t)}}),[g,m]),U=!(null==m?void 0:m.length)||Object.values(g).every((function(e){return!!e}));return n.createElement(n.Fragment,null,!!m.length&&n.createElement(n.Fragment,null,e.company?n.createElement(f.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,w.x)(e.company.name,T.o),actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(f.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(C.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),n.createElement(h.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&&n.createElement("div",{className:"mb-5"},n.createElement(E.$,{id:null===(o=e.company)||void 0===o?void 0:o.id,question:P("aboutUs"),answer:s.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:c.py.Company,location:c.LZ.Dashboard}})),n.createElement("div",null,m.map((function(a){return n.createElement(k.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:I,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,setIsEmpty:F,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,isBot:e.isBot,contentType:p.VH.Livestream,preferences:a.preferences,isPlugin:!1})})))),U&&n.createElement(v,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var I=t(70275),F=t(25925),U=t(67058),B=t(89454),x=t(39151),D=t(80889),R=t(79612),j=t(69454),W=t(25301),_=t(99742),N=t(96359),H=t(41760),q=t(41135),M=t(68317),G=t(31700),z=t(73688),V=t(65751),$=t(6117),Q=t(28400),Y=r.T.encloseNamespace("dashboard.companyDashboard");function Z(e){var a,t,r,l=o.a.useBasicFetch(x.L.config()),s=o.a.useBasicFetch(M.h.company(e.companyId,{query:"banner,logo"})),c=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(c.data&&B.O.presentationAudiences(c.data.id,F.R.StreamableLearning)),u=j.T.getActiveAudiencesFromParams(d.data,e.queryParams),m=s.data&&function(e,a){return{audience:function(){return{application:q.O.DASHBOARD,action:N.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,Q.m.slugify(e.name)],params:a}}}}(s.data,e.queryParams),y=(0,z.B)({targetType:p.ku.Company,companyId:e.companyId,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}),b=y.dashboard,g=y.isPreviewing;return(0,R.M)(W.CG.getDefaultMetadata({title:null===(t=s.data)||void 0===t?void 0:t.name,phraseContext:{phraseHandler:Y,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:$.f.getCanonicalLink(),allowIndexing:!0,product:H.L.PRODUCT_NAME})),n.useEffect((function(){b.hasCompleted&&!b.data&&i.Q.Ry.throw(new U.d)}),[b.data,b.hasCompleted]),l.hasCompleted&&b.hasCompleted&&c.hasCompleted&&d.hasCompleted&&s.hasCompleted?n.createElement("div",{className:"position-relative px-4"},!(!g||!b.data)&&n.createElement(I.a,{status:b.data.status,type:"company"}),n.createElement(S,{company:s.data,dashboard:b.data,getWidgetContentRequest:D._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:_.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:c.data,widgetAppLinks:V.y,getBreadcrumbs:function(){return s.hasCompleted?[{name:Y("discover"),appLink:{application:q.O.DASHBOARD,action:N.e.Dashboard.HOME}},{name:s.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:_.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:m,emptyImageUrl:_.W.EmptyStates.Topics.TOPIC,isBot:$.f.isBot(),lazyLoad:!$.f.isBot()})):n.createElement(n.Fragment,null)}},68317:(e,a,t)=>{t.d(a,{h:()=>i});var n=t(99940),r=t(97395),i={company:function(e,a){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:r._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(a,":").concat(t),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=a?a:void 0,limit:t,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:n.k.POST,data:i,key:r}}}}}]);
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[2967],{26226:(e,a,t)=>{t.r(a),t.d(a,{CompanyDashboardView:()=>Z});var n=t(32735),r=t(23481),i=t(81886),o=t(20354),l=t(75896),s=t(78259),c=t(65858),d=t(15800),u=t(83345),m=t(64444),p=t(26154),y=t(35223),b="streamable.companyDashboardEmptyState",g=r.T.encloseNamespace(b);function v(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===p.GL.Archived;return n.createElement(u.D.Provider,{value:b},n.createElement(d.u,null,n.createElement(d.u.Image,{src:e.imageUrl,altText:g("headingForStreamable")}),e.isReadOnly?n.createElement(n.Fragment,null,n.createElement(d.u.Heading,null,n.createElement(u.x,{namespace:b,phrase:"headingForCurator"})),n.createElement(d.u.Info,null,n.createElement(u.x,{namespace:b,phrase:"info"})),n.createElement(m.u,{title:i?r.T.getPhrase(b,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(d.u.Cta,{text:r.T.getPhrase(b,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:y.vn.Plus,disabled:i}))):n.createElement(d.u.Heading,null,n.createElement(u.x,{phrase:"headingForStreamable"}))))}var h=t(99105),f=t(75553),C=t(49935),E=t(56097),k=t(81326),T=t(7733),L=t(21366),w=t(9085);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function O(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var P=r.T.encloseNamespace("streamable.companyDashboard");function S(e){var a,t,r,i,o,d,u,m=l.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),y=n.useMemo((function(){return m.reduce((function(e,a){return e[a.id]=!1,e}),{})}),[null==m?void 0:m.length]),b=(d=n.useState(y),u=2,function(e){if(Array.isArray(e))return e}(d)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,o,l=[],s=!0,c=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(l.push(n.value),l.length!==a);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(c)throw r}}return l}}(d,u)||function(e,a){if(e){if("string"==typeof e)return O(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,a):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.")}()),g=b[0],S=b[1];function I(a,t,n){var r,i=L.S.getWidgetParams(t,n,L.S.getDashboardTargetType(e.dashboard),null===(r=e.activeAudiences)||void 0===r?void 0:r.map((function(e){return e.masterId})));return e.getWidgetContentRequest(a,i,n)}var F=n.useCallback((function(e,a){if(g[e]!==a){var t=Object.assign(Object.assign({},g),function(e,a,t){return(a=function(e){var a=function(e,a){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(a)?a:a+""}(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}({},e,a));S(t)}}),[g,m]),U=!(null==m?void 0:m.length)||Object.values(g).every((function(e){return!!e}));return n.createElement(n.Fragment,null,!!m.length&&n.createElement(n.Fragment,null,e.company?n.createElement(f.p,{heading:e.company.name,logo:e.company.logo,alignLogoLeft:!0,banner:e.company.banner,imageCdnUrl:e.imageCdnUrl,blockColourClass:(0,w.x)(e.company.name,T.o),actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark"}):n.createElement(f.v,null),n.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},n.createElement(C.Oo,{breadcrumbs:null===(r=e.getBreadcrumbs)||void 0===r?void 0:r.call(e)}),n.createElement(h.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&&n.createElement("div",{className:"mb-5"},n.createElement(E.$,{id:null===(o=e.company)||void 0===o?void 0:o.id,question:P("aboutUs"),answer:s.O.linkifyText(e.company.description),isBot:e.isBot,analyticsOptions:{entity:c.py.Company,location:c.LZ.Dashboard}})),n.createElement("div",null,m.map((function(a){return n.createElement(k.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,getContentRequest:I,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,setIsEmpty:F,presentation:e.presentation,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,yearGroups:e.yearGroups,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadOnly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,lazyLoad:e.lazyLoad,isBot:e.isBot,contentType:p.VH.Livestream,preferences:a.preferences,isPlugin:!1})})))),U&&n.createElement(v,{dashboard:e.dashboard,isReadOnly:e.isReadOnly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var I=t(70275),F=t(25925),U=t(67058),B=t(89454),x=t(39151),D=t(80889),R=t(79612),j=t(69454),W=t(25301),_=t(99742),N=t(96359),H=t(41760),q=t(41135),M=t(68317),G=t(31700),z=t(73688),V=t(65751),$=t(6117),Q=t(28400),Y=r.T.encloseNamespace("dashboard.companyDashboard");function Z(e){var a,t,r,l=o.a.useBasicFetch(x.L.config()),s=o.a.useBasicFetch(M.h.company(e.companyId,{query:"banner,logo"})),c=o.a.useBasicFetch(G.g.streamablePresentation()),d=o.a.useBasicFetch(c.data&&B.O.presentationAudiences(c.data.id,F.R.StreamableLearning)),u=j.T.getActiveAudiencesFromParams(d.data,e.queryParams),m=s.data&&function(e,a){return{audience:function(){return{application:q.O.DASHBOARD,action:N.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,Q.m.slugify(e.name)],params:a}}}}(s.data,e.queryParams),y=(0,z.B)({targetType:p.ku.Company,companyId:e.companyId,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}),b=y.dashboard,g=y.isPreviewing;return(0,R.M)(W.CG.getDefaultMetadata({title:null===(t=s.data)||void 0===t?void 0:t.name,phraseContext:{phraseHandler:Y,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:$.f.getCanonicalLink(),allowIndexing:!0,product:H.L.PRODUCT_NAME})),n.useEffect((function(){b.hasCompleted&&!b.data&&i.Q.Ry.throw(new U.d)}),[b.data,b.hasCompleted]),l.hasCompleted&&b.hasCompleted&&c.hasCompleted&&d.hasCompleted&&s.hasCompleted?n.createElement("div",{className:"position-relative px-4"},!(!g||!b.data)&&n.createElement(I.a,{status:b.data.status,type:"company"}),n.createElement(S,{company:s.data,dashboard:b.data,getWidgetContentRequest:D._.dashboardWidgetContent,imageCdnUrl:null===(r=l.data)||void 0===r?void 0:r.imageCdnUrl,resourceThumbnailFallbackImageUrl:_.W.Fallbacks.RESOURCE_THUMBNAIL,presentation:c.data,widgetAppLinks:V.y,getBreadcrumbs:function(){return s.hasCompleted?[{name:Y("discover"),appLink:{application:q.O.DASHBOARD,action:N.e.Dashboard.HOME}},{name:s.data.name,active:!0}]:[]},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},companyLogoFallbackUrl:_.W.StreamableLearning.LOGO,subTextType:"productionCompany",audiences:d.data,activeAudiences:u,appLinks:m,emptyImageUrl:_.W.EmptyStates.Topics.TOPIC,isBot:$.f.isBot(),lazyLoad:!$.f.isBot()})):n.createElement(n.Fragment,null)}},68317:(e,a,t)=>{t.d(a,{h:()=>i});var n=t(99940),r=t(97395),i={company:function(e,a){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),a),publicUrl:r._.urlBuilder("/api/objects/".concat(e),a),key:"company:".concat(e)}},companies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,r="search:v4:streamable:company:".concat(a,":").concat(t),i={query:"",searchType:"content",indices:[{index:"company",filters:e}],allowSubstitute:!1,cursor:null!=a?a:void 0,limit:t,sorts:{name:"asc"}};return{url:"{gateway}/v4/search",publicUrl:"/api/search/v4",type:n.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:()=>c});var a=n(58176),r=n.n(a),o=n(21161),i={className:"info-link",defaultProtocol:"https"},c={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:()=>u});var a=n(32735),r=n(23481),o=n(83914),i=n(64444),c=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(i.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},a.createElement(o.x,{svgName:c.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},23062:(e,t,n)=>{n.d(t,{b:()=>g});var a=n(32735),r=n(110),o=n(78259),i=n(28400),c=n(92582),l=n(65858),s=n(79878),u=n(12324),m=n(42735),d=n(57408),v=n(85473),f=n(2284);const p={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};function g(e){var t,n,g,b,y,E=e.getAppLink(e.event.content.id,i.m.slugify(e.event.name)),h=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),D=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),O=null===(g=e.getBannerUrl)||void 0===g?void 0:g.call(e,e.event.content),A=!!e.event.endDate,k=e.event.content.status===f.W.ComingSoon,C=null===(b=e.getStartTime)||void 0===b?void 0:b.call(e,e.event.content),S=null===(y=e.getActionLabel)||void 0===y?void 0:y.call(e),T={actionType:l.Vw.Click,entity:l.py.SpecialEvent,location:e.inPopup?l.LZ.CalendarPopup:l.LZ.CalendarDay},N={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,C&&a.createElement("h6",null,C),a.createElement("div",{onClick:function(){k&&c.k.logUserAction(N,T)}},a.createElement(d.F,{appLink:!k&&E,className:"".concat(k?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:T,analyticsData:N},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(p.banner),style:{backgroundColor:h,backgroundImage:"url('".concat(O,"')")}},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"},D&&a.createElement("div",{className:"".concat(p.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},a.createElement(v.Z,{data:D})),a.createElement("div",{className:"text-white"},k&&a.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(p.pill)}),A&&a.createElement("div",{className:"mb-1"},u.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"},!k&&a.createElement(m.K,{className:"btn btn-outline-dark fw-semibold"},S))))),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:()=>c});var a=n(32735),r=n(40290),o=n(83914),i=n(35223);function c(){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.EST])||void 0===e?void 0:e.name))}},85473:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(32735),r=n(1048),o=n(57408),i=n(16107),c=n(54610),l=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,n="";return e.imageType===c.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===c.__.TallPosters&&(n=s.tallPoster),e.imageType===c.__.Covers&&(n=s.cover),e.imageType===c.__.Banners&&(n=s.banner),e.imageType===c.__.Posters&&(n=s.poster),e.imageType===c.__.Pdf&&(n=s.pdf),e.imageType===c.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function m(e){var t=e.data,n=e.imageOptions,c=e.appLink,s=e.preload,m=e.preventLoad,d=e.analyticsOptions,v=e.analyticsData,f=e.imageClassName,p=e.alt,g="";"string"==typeof t?g=t:r.t.isObject(t)&&(g=t.url);var b=g&&n?l.j.createUrl(g,n):g;return a.createElement("div",{className:u(e),style:e.imageStyle},a.createElement(o.F,{appLink:c,analyticsData:v,analyticsOptions:d,onClick:e.onClick},e.children,b&&a.createElement(i.w,{src:b,alt:p,forceLoad:s,preventLoad:m,extraClasses:f,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName})))}},16107:(e,t,n)=>{n.d(t,{w:()=>c});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 c=a.memo((function(e){var t,n,c=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,u=e.errorFallbackImageSrc,m=e.preventLoad,d=void 0!==m&&m,v=e.errorFallbackImageClassName,f=e.src,p=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,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(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&&u?u:e.src}if(a.useEffect((function(){if((c||E)&&!d){var e=new Image;return e.onerror=function(){O(!0),u&&(e.src=u)},e.src=f,function(){return e.onerror=null}}}),[E,d]),D&&!u)return a.createElement(a.Fragment,null);if(!y)return a.createElement("img",Object.assign({className:"".concat(o," ").concat(s," ").concat(D&&v||""),alt:p,src:A()},g));var k=Object.assign(Object.assign({alt:p},g),!E&&!c||d?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:A()});return c||(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,c=n.triggerOnce,l=void 0===c||c,s=(e=(0,a.YD)({triggerOnce:l,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,c=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}(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.")}()),u=s[0],m=s[1],d=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(m=!0,u=null),{ref:u,inView:m,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:()=>c,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 c(){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,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),c=n(110),l=n(23062),s=n(12324),u=n(54168),m=n(58960),d=n(54610),v=n(16714),f=n(22902),p=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()),S=(0,(0,f.T)().hasPermissions)(v.C.StudentExperience),T=new Date(e.from),N=new Date(e.to),L=i.a.useBasicFetch((null===(t=C.data)||void 0===t?void 0:t.id)&&g.H.calendarLivestreams({from:c.O.format(T,"YYYY-MM-DD"),to:c.O.format(N,"YYYY-MM-DD")})),M=(null===(n=L.data)||void 0===n?void 0:n.filter((function(t){return t.startDate===c.O.format(new Date(e.date),"YYYY-MM-DD")})))||[];function P(e){var t;return p.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:d.h2.Large})}function w(e){var t;return p.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:d.h2.Small})}return a.createElement(m.G,{title:"Events on ".concat(s.T.getOrdinalDate(e.date)),closePopup:e.closePopup,dialogClassName:h.modalWidth,bodyClassName:"p-0",showLoadingSpinner:!L.data},a.createElement(r.$B,{autoHeight:!0,autoHeightMin:k,autoHeightMax:A},a.createElement("div",{className:"px-3 pt-2"},M.map((function(t,n){var r;return a.createElement(l.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,S||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:P,getIconUrl:w,getStartTime:y.y.isSameTime(M,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(u.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:()=>c});var a=n(97395),r=n(110),o=n(59795),i=n(5960),c={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([[3179],{64234:(e,t,n)=>{n.d(t,{J:()=>W});var r=n(32735),i=n(75896),o=n(1048),a=n(7531),l=n(11607),c=n(83345),u="search.filterActions";function s(e){return r.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?r.createElement(l.L,{className:"text-secondary hover-text-underline cursor-pointer",onClick:e.onClickReset},r.createElement(c.x,{namespace:u,phrase:"reset"})):r.createElement("div",{className:"invisible"}),r.createElement(l.L,{className:"info-link",onClick:e.onClickApply},r.createElement(c.x,{namespace:u,phrase:"apply"})))}s.defaultProps={active:!1,className:""};var d=n(96675),f=n(66770),m=n(83914);const p={hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function v(e){return v="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},v(e)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t=r.useContext(d.f).state,n=t[e.filter.id],i="dropdown"===e.filter.type,o=y(r.useState(e.filter.name),2),l=o[0],c=o[1],u=y(r.useState(!1),2),g=u[0],b=u[1],h=y(r.useState(n),2),C=h[0],E=h[1];function S(e){E(e),i&&x(e)}function x(){var r,i,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C;f.qr.applyFilter([e.filter],n,(r={},i=e.filter.id,o=a,(i=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r),t.appLink)}r.useEffect((function(){c(f.qr.getLabel(e.filter,n)),E(n)}),[e.filter,null==n?void 0:n.selection]);var w,k=r.useMemo((function(){return e.filter.customComponent?e.filter.customComponent:f.qr.mapTypeToComponent(e.filter.type)}),[e.filter.type]),A=e.hideCaret&&!i?p.hideCaret:"",L=(w=e.filter,f.qr.displayTwoColumns(w)?p.twoColumnsWidth:"classification"===w.id?p.classificationWidth:f.qr.displayTwoLayers(w)?p.nestedCheckboxesWidth:"switch"===w.type?p.switchWidth:"");return"button"===e.filter.type?r.createElement(k,{filter:e.filter,draftState:C,setDraftState:S}):r.createElement(a.Z,{onToggle:function(e){b(e),e||i||x()},show:g},r.createElement(a.Z.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat("fw-semibold mx-1 btn d-flex align-items-center"," ").concat(A),variant:n.active&&!i?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&r.createElement("div",{className:p.svgContainer},r.createElement(m.x,{svgName:e.filter.icon})),e.filter.labelPrefix," ",l),r.createElement(a.Z.Menu,null,r.createElement("div",{className:"mx-1 ".concat(p.filterMenu," ").concat(L," ").concat(i?"":"px-2 py-1")},r.createElement(k,{filter:e.filter,draftState:C,setDraftState:S}),!i&&!e.filter.disabled&&r.createElement(s,{active:C.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find((function(e){return e.default}));E({active:!1,selection:n?[n]:[]})},onClickApply:function(){x(),b(!1)}}))))}b.defaultProps={hideCaret:!0};var h=n(91967);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var E={getSetStateByKey:function(e,t,n){return function(r){return e((function(e){var i,o,a,l=h.q.isFunction(n)?n:h.q.useIdentity();return Object.assign(Object.assign({},e),(i={},o=t,a=l(r,e),(o=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i))}))}}};function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function k(e){var t=r.useContext(d.f).state,n=t.moreFilters,i=S(r.useState(e.filter.name),2),o=i[0],l=i[1],c=S(r.useState(!1),2),u=c[0],m=c[1],v=S(r.useState(n),2),y=v[0],g=v[1],b=S(r.useState(w(n)),2),h=b[0],C=b[1],x=Object.keys(n).map((function(e){return"".concat(e,":").concat(n[e].active)})).join("-");function k(){f.qr.applyFilter(e.filter.filters,n,y,t.appLink)}r.useEffect((function(){g(n),C(w(n))}),[e.filter,x]),r.useEffect((function(){l(h?"".concat(e.filter.name," - ").concat(h):e.filter.name)}),[h]);var A="fw-semibold ".concat(p.hideCaret," mx-1 btn");return r.createElement(a.Z,{onToggle:function(e){m(e),e||k()},show:u},r.createElement(a.Z.Toggle,{id:e.filter.id,className:A,variant:h?"dark":"outline-dark"},o),r.createElement(a.Z.Menu,{onClick:function(e){return e.stopPropagation()}},r.createElement("div",{className:"mx-1 ".concat(p.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:f.qr.mapTypeToComponent(e.type);return r.createElement("div",{key:e.id,className:"mb-2"},r.createElement(t,{filter:e,draftState:y[e.id],setDraftState:E.getSetStateByKey(g,e.id),isOnMoreFilters:!0}))})),r.createElement(s,{active:!!Object.keys(y).find((function(e){return y[e].active})),onClickReset:function(){var t=Object.keys(n).reduce((function(t,n){var r,i=null===(r=e.filter.filters.find((function(e){return e.id===n})).options)||void 0===r?void 0:r.find((function(e){return e.default}));return t[n]={active:!1,selection:i?[i]:[]},t}),{});g(t)},onClickApply:function(){k(),m(!1)}}))))}var A=n(63112),L=n(72861),O=n(16035);const I={tagItem:"EcurS",selected:"FypfE"};function F(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"".concat(I.selected," bg-gray-900 text-white"):"bg-light";return r.createElement(O.z,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," ").concat(I.tagItem),onClick:function(){return e.onClick(e.data)}})}const P={tagItem:"j84HW"};function j(e){return j="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},j(e)}function T(e){return function(e){if(Array.isArray(e))return N(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 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}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e){var t,n,i,o,a=r.useContext(d.f).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return r.createElement(r.Fragment,null);var l=a[e.filter.id],c=l.selection,u=null!==(o=null===(i=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===i?void 0:i.filter((function(e){return!(null==c?void 0:c.find((function(t){return t.id===e.id})))})))&&void 0!==o?o:[];function s(t){var n,r,i,o=null,u=-1;if(c.find((function(e,n){u>-1||e.id.toString()===t.id.toString()&&(u=n)})),u>=0){var s=[].concat(T(c.slice(0,u)),T(c.slice(u+1)));o={active:!!s.length,selection:s}}else o={active:!0,selection:c.concat(t)};f.qr.applyFilter([e.filter],l,(n={},r=e.filter.id,i=o,(r=function(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}(r))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),a.appLink)}var m,p=[].concat(T(c),T(e.isFetching?[]:u));return r.createElement("div",{className:e.isFetching||p.length?"py-2":""},r.createElement("div",{className:(m="mb-3",p.length&&e.isFetching?m+=" mt-n1":p.length||e.isFetching||(m+=" d-none"),m)},(!!p.length||e.isFetching)&&r.createElement(L.e,{collection:p,childComponent:function(e){return r.createElement(F,Object.assign({},e,{selectedItems:c,onClick:s}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return r.createElement(A.o,{tagClass:P.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return r.createElement("div",{className:"me-2"},r.createElement(A.o,{tagClass:"".concat(P.tagItem)}))}})))}var M=n(81886);function U(e){var t=r.useContext(d.f).state;return r.createElement(l.L,{onClick:function(){M.Q.C$.trigger(Object.assign(Object.assign({},t.appLink),{params:e.currentQueryParam?{query:e.currentQueryParam}:null}))},className:"".concat(e.alignLeft?"order-first":""," hover-text-underline cursor-pointer d-flex align-items-center mx-2")},r.createElement(c.x,{namespace:"search.resetButton",phrase:"reset"}))}const R={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function q(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return D(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)?D(e,t):void 0}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function W(e){var t,n,a=e.queryParams,l=e.appLink,u=e.hideHeading,s=e.isFetchingOptions,m=e.constantIndices,p=void 0===m?[]:m,v=r.useMemo((function(){return f.qr.deriveInitialStateFromQuery(a,e.mainFilters,e.moreFilters,l)}),[a,s]),y=(t=r.useReducer(d.O,v),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 r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(t,n)||H(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.")}()),g=y[0],h=y[1];r.useEffect((function(){o.t.isEqual(v,g)||(h({type:"update",payload:v}),e.analyticsOptions&&f.qr.logFilterEvent(e.mainFilters,e.moreFilters,v,a.query,e.analyticsOptions))}),[v]);var C=i.m.uniq([].concat(q(f.qr.getAppliedIndices(a)),q(p))),E=f.qr.mixinDisabledFields(g,C,e.mainFilters,e.moreFilters),S=E.mainFilters,x=E.moreFilters,w=S.filter((function(e){return"tag"!==e.type})),A=S.find((function(e){return"tag"===e.type}));return r.createElement(d.f.Provider,{value:{state:g,dispatch:h}},r.createElement(c.D.Provider,{value:"search.searchFilters"},r.createElement("section",null,r.createElement("div",{className:"d-flex ".concat(e.hideDivider?"":"border-bottom pb-3 mb-3")},!u&&r.createElement("h2",{className:"h5 mb-0 d-inline-block pe-2 border-end d-flex align-items-center"},r.createElement(c.x,{phrase:"heading"})),r.createElement("div",{className:"d-flex flex-wrap ".concat(R.filtersContainer," ").concat(u?"":"ms-2")},w.map((function(t){return r.createElement(b,{key:t.id,filter:t,hideCaret:e.hideCaret})})),x&&r.createElement(k,{filter:x}),f.qr.hasActiveFilters(a)&&!e.hideResetButton&&r.createElement(U,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:a.query,analyticsOptions:e.analyticsOptions,alignLeft:e.alignResetButtonLeft}))),r.createElement(_,{filter:A,queryParams:a,isFetching:e.isFetchingOptions}))))}},63112:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(32735),i=n(86319),o=r.memo((function(e){var t=e.tagClass,n="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(i.Z.partialTag);return r.createElement("div",{className:"mt-1"},r.createElement("span",{className:n}," "))}))},16035:(e,t,n)=>{n.d(t,{z:()=>l});var r=n(32735),i=n(57408),o=n(44829),a=n(86319);function l(e){var t,n,l=e.tag,c=e.appLink,u=e.onClick,s=e.disabled,d=e.tagClass,f=void 0===d?"tag":d,m=l.name.toLowerCase(),p=null===(t=l.tagType)||void 0===t?void 0:t.toLowerCase(),v=p===o.Q.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),y="rounded-pill py-1 px-2 my-1 me-1 ".concat(f," ").concat(function(e,t){switch(e){case o.Q.Pedagogy:case o.Q.Skill:return"pedagogy-tag text-white";case o.Q.Hidden:return"hidden-tag fw-normal";case o.Q.Normal:return t?"":"bg-gray-100 fw-normal";default:return""}}(p,v));v&&(y+=" text-white"),!c&&!u||s||(y+=" cursor-pointer"),s&&(y+=" "+a.Z.disabled),e.onRemove&&(y+=" "+a.Z.badge),c||(y+=" d-inline-block");var g=v?{backgroundColor:e.themeColours.secondary}:{};return c?r.createElement(i.F,{onClick:u,appLink:c,className:y,title:m,style:g},r.createElement("span",{className:"text-truncate text-nowrap"},m)):r.createElement("span",{onClick:u,className:y,title:m,style:g},r.createElement("span",{className:"text-truncate text-nowrap"},m,e.onRemove&&r.createElement("button",{onClick:e.onRemove,className:"".concat(a.Z.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}},71063:(e,t,n)=>{n.d(t,{M:()=>r});var r={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},44829:(e,t,n)=>{var r,i;n.d(t,{Q:()=>r}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(i||(i={}))},25301:(e,t,n)=>{n.d(t,{CG:()=>C});var r,i=n(23481),o=n(110),a=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,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(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 r=n.call(e,"string");if("object"!=l(r))return r;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"}(r||(r={}));var s=i.T.encloseNamespace("shared.shared-utils"),d=/^(.*)\s/,f="pageTitle",m="pageDescription",p=u(u(u(u(u(u({},"au",r.AU),"gb",r.UK),"us",r.US),r.AU,"au"),r.UK,"gb"),r.US,"us");function v(e){return e?e.substring(0,e.length-3)+"...":""}function y(e){var t,n,r=e.title,i=e.phraseContext,o=e.product,a=void 0===o?"ClickView":o;if(!r)return"";if(!i)return s(f,{title:r,product:a});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 r.length>=l?s(f,{title:r,product:a}):i.phraseHandler(i.titlePhrase,{title:r})}function g(e){var t,n,r,i,o,a=e.title,l=e.description,c=e.phraseContext,u=v((160,(o=l||a)?o.substring(0,160):""));if(!c)return s(m,{description:u});var f=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==a?void 0:a.length)>=f)return s(m,{description:u});var p=v(function(e,t,n){if(!e)return"";var r=160-n;if(e.length<=r)return e;var i=e.slice(0,r),o=i.match(d);return o?o[1]:i}(l,0,null!==(i=null===(r=c.phraseHandler(c.descriptionPhrase,{title:a,description:""}))||void 0===r?void 0:r.length)&&void 0!==i?i:0));return c.phraseHandler(c.descriptionPhrase,{title:a,description:p})}function b(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var r,i,o=null===(r=p[n.contentRegion])||void 0===r?void 0:r.toUpperCase();return(null===(i=n.id)||void 0===i?void 0:i.toString())===(null==t?void 0:t.toString())&&o?[].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:o}]):e}),[]))&&void 0!==n?n:[]}function h(e,t,n){var r;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===(r=null==e?void 0:e.thumbnail)||void 0===r?void 0:r.url,uploadDate:null==e?void 0:e.dateCreated,duration:o.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(a.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 C={getDefaultMetadata:function(e){var t=e.title,n=e.description,r=e.canonicalLink,i=e.phraseContext,o=e.allowIndexing,a=e.hrefLang;return{title:y({title:t,phraseContext:i,product:e.product}),description:g({title:t,description:n,phraseContext:i}),canonicalLink:r,allowIndexing:o,hrefLang:a}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing,o=e.hrefLang,a=e.regionAlternatives,l=e.product;return{title:y({title:null==t?void 0:t.name,phraseContext:r,product:l}),description:g({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),jsonLd:h(t,n,a),canonicalLink:n,allowIndexing:i,hrefLang:o}},getClipMetadata:function(e){var t,n=e.content,r=e.canonicalLink,i=e.phraseContext,o=e.allowIndexing;return{title:y({title:null==n?void 0:n.name,phraseContext:i}),description:g({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:r,allowIndexing:o}},getInteractiveMetadata:function(e){var t,n=e.content,r=e.canonicalLink,i=e.phraseContext,o=e.allowIndexing;return{title:y({title:null==n?void 0:n.name,phraseContext:i}),description:g({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:r,allowIndexing:o}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:y({title:null==t?void 0:t.name,phraseContext:r}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:i}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing;return{title:y({title:null==t?void 0:t.name,phraseContext:r}),description:g({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),canonicalLink:n,allowIndexing:i}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing,o=e.hrefLang,a=e.product;return{title:y({title:null==t?void 0:t.name,phraseContext:r,product:a}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:i,hrefLang:o}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,i=e.allowIndexing,o=e.hrefLang,a=e.product;return{title:y({title:null==t?void 0:t.name,phraseContext:r,product:a}),description:g({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:i,hrefLang:o}}}},41760:(e,t,n)=>{n.d(t,{L:()=>r});var r={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"}},86319:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3933],{43933:(e,t,n)=>{n.d(t,{X:()=>S});var a=n(32735),r=n(110),o=n(23481),c=n(59795),i=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var u=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function d(e){var t=r.O.isSame(c.t.convertUTCToTimezoneDate((new Date).toISOString(),e.timezone||null),e.date,"day"),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var o,d,v=(o=(0,i.L)({delay:250}),d=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(o,d)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(o,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=v[0],f=v[1];return a.createElement("div",{className:"".concat(n," ").concat(f?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},u("today")))}var v=n(92582),m=n(65858),f=n(79878),p=n(12324),g=n(57408),y=n(11607),h=n(16107);const E={sliderDot:"fk5o1",sm:"LjGGx",active:"jA0tn",dotContainer:"Lr30e",defaultCursor:"J8mC3"};function b(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 D(e){function t(t,n){t.stopPropagation(),t.preventDefault(),e.onSliderDotClick(n)}function n(t,n){var a,r="".concat(E.sliderDot," rounded-3");return t&&(r+=" ".concat(E.active)),"sm"===e.size&&(r+=" ".concat(E.sm)),(null===(a=e.isDisabled)||void 0===a?void 0:a.call(e,n))&&(r+=" pointer-events-none ".concat(E.defaultCursor)),r}return a.createElement("div",{className:"".concat(e.className," w-100 d-flex justify-content-around")},a.createElement("div",{className:"".concat(E.dotContainer," d-flex")},(r=Array(e.sliderLength),function(e){if(Array.isArray(e))return b(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(r,o){var c=o===e.sliderStep;return a.createElement(y.L,{key:o,className:n(c,o),onClick:function(e){return null==t?void 0:t(e,o)}})}))));var r}var C=n(83914),O=n(2284),M=n(35223);const k={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function w(e){var t,n,o,c,i,l,s=e.sliderStep,u=e.setSliderStep,E=e.fadePastEvents?e.eventsOnDay.sort((function(e,t){return!_(e)&&_(t)?1:_(e)&&!_(t)?-1:0})):e.eventsOnDay,b=e.eventsOnDay.length>1,w=E.find((function(e,t){return t===s})),N=!!w.endDate,S=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,w.content),I=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,w.content),A=null===(o=e.getIconUrl)||void 0===o?void 0:o.call(e,w.content),j=null===(c=e.getCoverUrl)||void 0===c?void 0:c.call(e,w.content),T=w.content.status===O.W.ComingSoon,Y=(i=a.useState(e.hasInitialized?k.appear:""),l=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,c,i=[],l=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=o.call(n)).done)&&(i.push(a.value),i.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(i,l)||function(e,t){if(e){if("string"==typeof e)return x(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)?x(e,t):void 0}}(i,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),H=Y[0],L=Y[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){L(k.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(w)}),[e.isHovering,w]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===w.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,w]);var z=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return b?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=w.specialEventId,t.topicId=w.content.id,t.eventStatus=w.content.status),t}(),U={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function B(e){return r.O.format(e,"YYYY-MM-DD")}function P(){return"".concat(e.className," ").concat(H," ")+[I?"".concat(k.hardcodedCover," position-absolute"):k.backgroundImage,A?"my-auto":k.cover,T?k.comingSoon:"",e.hasInitialized?k.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?k.multiEventFilter:"","company"in w.content?"rounded-circle":""].join(" ")}function _(e){return"startDateTime"in e.content&&r.O.isBefore(e.content.startDateTime,new Date)}return a.createElement("div",{onClick:function(){T&&v.k.logUserAction(z,U)}},a.createElement(g.F,{appLink:function(){var t,n;return b?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):T?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,w.content.id,w.name)}(),className:"d-flex justify-content-end",analyticsOptions:U,analyticsData:z},a.createElement("div",{className:"".concat(k.tagWrap," p-1")},T&&a.createElement(f.r,{className:"justify-content-center p-0 rounded-circle ".concat(k.tag," ").concat(H),onlyIcon:!0})),!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(k.date," ").concat(H),isHovering:e.isHovering,timezone:e.timezone,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(k.wrapper)},a.createElement("div",{style:{backgroundColor:S},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(k.eventCard," ").concat(H," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?k.multiEventFilter:""," ").concat(e.className," ").concat(!e.isHovering&&_(w)?"opacity-50":"")},A&&a.createElement(h.w,{src:A,alt:w.content.name,className:P()}),j&&!A&&a.createElement("div",{style:{backgroundImage:"url('".concat(j,"')")},className:P()}),N&&a.createElement("div",{className:"".concat(k.displayDate)},p.T.getDisplayDate(w.startDate,w.endDate)),a.createElement("div",{className:"text-center ".concat(k.title," ").concat(b?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(e.responsiveText?k.titleText:""," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:w.name},w.name)),b&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.left)},a.createElement(y.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),u((function(e){return e-1})),v.k.logUserAction({date:B(e.date),action:"previous",eventCount:e.eventsOnDay.length},U)}},a.createElement(C.x,{svgName:M.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),b&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(k.right)},a.createElement(y.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),u((function(e){return e+1})),v.k.logUserAction({date:B(e.date),action:"next",eventCount:e.eventsOnDay.length},U)}},a.createElement(C.x,{svgName:M.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(k.arrow)}))),b&&a.createElement("div",{className:"d-flex ".concat(k.bottomBar," ").concat(b?"":k.bottomPlaceholder)},a.createElement(D,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){u(t),v.k.logUserAction({date:B(e.date),action:"jump",eventCount:e.eventsOnDay.length},U)}}))))))}w.defaultProps={responsiveText:!0};const N={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function S(e){var t,n,o=a.useMemo((function(){var t,n,a,o;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(o=e.hoveredEvent)||void 0===o?void 0:o.endDate)}),[e.hoveredEvent]),c=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(N.cell," fw-semibold")},!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,timezone:e.timezone}),o&&a.createElement("div",{style:{backgroundColor:c},className:N.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(w,Object.assign({},e,{isMultiEventDate:o})))}},79878:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),o=n(83914),c=n(64444),i=n(35223);const l={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(c.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(l.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(l.tag," ").concat(e.className)},a.createElement(o.x,{svgName:i.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},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"))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4254],{19716:(e,a,t)=>{t.d(a,{D:()=>d});var n=t(32735),r=t(39202),i=t(23481),l=t(65858),s=t(88818);const c={pillTab:"Vrjid"};var o="streamable.header";function d(e){var a,t,d,p,u,m,g=[{name:i.T.getPhrase(o,"heading"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(o,"heading"),url:r.C$.getHref(null===(t=e.appLinks)||void 0===t?void 0:t.discover)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}},{name:i.T.getPhrase(o,"livestreams"),appLink:null===(d=e.appLinks)||void 0===d?void 0:d.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(o,"livestreams"),url:r.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.calendar)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}},{name:i.T.getPhrase(o,"partners"),appLink:null===(u=e.appLinks)||void 0===u?void 0:u.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(o,"partners"),url:r.C$.getHref(null===(m=e.appLinks)||void 0===m?void 0:m.partners)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}}];return n.createElement("div",{className:"py-3 text-center"},n.createElement(s.r,{tabs:g,className:c.pillTab}))}},88818:(e,a,t)=>{t.d(a,{r:()=>p});var n=t(32735),r=t(92582),i=t(57408),l=t(18559),s=t(11607),c=t(83914);const o={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function d(e){return n.createElement(n.Fragment,null,!!e.tab.svgName&&n.createElement("div",{className:e.tab.name?"pe-1":""},n.createElement(c.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&n.createElement("div",{className:"ps-2"},n.createElement(l.C,{type:l.g.Count,data:e.tab.count})))}function p(e){var a;return n.createElement("nav",{className:null!==(a=e.className)&&void 0!==a?a:"",ref:e.containerRef},n.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(o.pillTabSelector,"\n ").concat(e.borderRadius?o.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,a){return n.createElement("li",{className:"\n p-0 ".concat(o.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?o.minWidth:""," ").concat(e.className,"\n "),key:a},e.appLink?n.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(o.tabLink,"\n ")},n.createElement(d,{tab:e})):n.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(o.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&r.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},n.createElement(d,{tab:e})))}))))}p.defaultProps={borderRadius:"lg"}},14254:(e,a,t)=>{t.r(a),t.d(a,{DashboardView:()=>H});var n=t(32735),r=t(23481),i=t(57900),l=t(20354),s=t(2948),c=t(75896),o=t(19716),d=t(81326),p=t(22902),u=t(26154),m=t(21366),g=t(15800),v=t(83345),b=t(64444),y=t(35223),h="streamable.dashboardEmptyState",f=r.T.encloseNamespace(h);function k(e){var a,t,i=(null===(a=e.dashboard)||void 0===a?void 0:a.status)===u.GL.Archived;return n.createElement(g.u,null,n.createElement(g.u.Image,{src:e.imageUrl,altText:f("info")}),n.createElement(g.u.Heading,null,n.createElement(v.x,{namespace:h,phrase:"heading"})),n.createElement(g.u.Info,null,n.createElement(v.x,{namespace:h,phrase:"info"})),n.createElement(b.u,{title:i?r.T.getPhrase(h,"archivedCtaTooltip"):"",spanHack:!0},n.createElement(g.u.Cta,{text:r.T.getPhrase(h,"add"),appLink:null===(t=e.addWidgetApplink)||void 0===t?void 0:t.call(e),className:"btn btn-dark",icon:y.vn.Plus,disabled:i})))}function L(e){var a,t=c.m.sortBy(null===(a=e.dashboard)||void 0===a?void 0:a.widgets,"index"),r=(0,p.T)(),i=r.hasPermissions,l=r.hasLocalPermissions;function s(a,t,n){var r=m.S.getWidgetParams(t,n,m.S.getDashboardTargetType(e.dashboard));return e.getWidgetContentRequest(a,r,n)}var g=e.isReadonly&&!(null==t?void 0:t.length);return n.createElement(n.Fragment,null,n.createElement(o.D,{active:"discover",appLinks:e.headerAppLinks}),t.map((function(a,t){return n.createElement(d.L,{key:a.id,id:a.id,imageCdnUrl:e.imageCdnUrl,getContentRequest:s,audiences:e.audiences,name:a.name,description:a.description,templateId:a.templateId,metadata:a.metadata,presentation:e.presentation,appLinks:e.widgetAppLinks,isScrollToTargetWidget:(null==e?void 0:e.scrollToWidgetId)===a.id,widgetTypeId:a.widgetId,lazyLoad:e.lazyLoad,dashboardTarget:u.ku.Discover,widgetIndex:t,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"productionCompany",contentType:u.VH.Livestream,resourceThumbnailFallbackImageUrl:"",preferences:a.preferences,hasPermissions:i,hasLocalPermissions:l,preventPopout:!0,isPlugin:!1})})),g&&n.createElement(k,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.widgetAppLinks.widgetWizard}))}var T=t(38143),E=t(25925),C=t(89454),D=t(39151),A=t(80889),N=t(79612),P=t(69454),w=t(25301),x=t(99742),O=t(41760),S=t(31700),R=t(73688),I=t(6117),U=t(27051);function F(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}var W=r.T.encloseNamespace("streamableDashboard.dashboard");function H(e){var a,t,r,c=l.a.useBasicFetch(D.L.config()),o=l.a.useBasicFetch(S.g.streamablePresentation()),d=l.a.useBasicFetch(o.data&&C.O.presentationAudiences(o.data.id,E.R.StreamableLearning)),p=(0,R.B)({targetType:u.ku.Discover,dashboardId:null===(a=e.queryParams)||void 0===a?void 0:a.dashboardId}).dashboard,m=(t=(0,s.D)(T.g.AUDIENCE_FILTER,void 0,{storage:i.Z1.SessionStorage}),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,i,l,s=[],c=!0,o=!1;try{if(i=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(s.push(n.value),s.length!==a);c=!0);}catch(e){o=!0,r=e}finally{try{if(!c&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(o)throw r}}return s}}(t,r)||function(e,a){if(e){if("string"==typeof e)return F(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?F(e,a):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],g=(0,U.E)(P.T.getAudienceParams(m));return(0,N.M)(w.CG.getDiscoverMetadata({content:o.data,phraseContext:{phraseHandler:W,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:I.f.getCanonicalLink(),allowIndexing:!0,product:O.L.PRODUCT_NAME})),c.hasCompleted&&p.hasCompleted&&o.hasCompleted&&d.hasCompleted?n.createElement("div",{className:"bg-white px-4"},n.createElement(L,{dashboard:p.data,widgetAppLinks:g,headerAppLinks:(0,U.h)(),presentation:o.data,imageCdnUrl:c.data.imageCdnUrl,getWidgetContentRequest:A._.dashboardWidgetContent,audiences:d.data,lazyLoad:!I.f.isBot(),companyLogoFallbackUrl:x.W.StreamableLearning.LOGO})):n.createElement(n.Fragment,null)}},27051:(e,a,t)=>{t.d(a,{E:()=>l,h:()=>s});var n=t(96359),r=t(41135),i=t(65751);function l(e){return Object.assign(Object.assign({},i.y),{classification:function(a){return i.y.classification(a,e)},classificationDirectory:function(){return i.y.classificationDirectory(e)}})}function s(){return{discover:{application:r.O.DASHBOARD,action:n.e.Dashboard.HOME},calendar:{application:r.O.CALENDAR,action:n.e.Calendar.CALENDAR},partners:{application:r.O.DASHBOARD,action:n.e.Dashboard.CONTENT_PARTNERS}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[487],{78417:(i,e,t)=>{var n;t.d(e,{r:()=>n}),function(i){i[i.FilterOut=0]="FilterOut",i[i.StripMetadata=1]="StripMetadata"}(n||(n={}))},78479:(i,e,t)=>{var n;t.d(e,{f:()=>n}),function(i){i.ThumbnailHeroMedia="thumbnail_hero_media",i.ThumbnailFeaturedMedia="thumbnail_featured_media",i.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",i.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",i.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",i.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",i.ThumbnailVerticalList="thumbnail_vertical_list",i.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",i.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",i.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",i.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",i.CoverSlidingPillListSmall="cover_sliding_pill_list_small",i.CoverFixedPillListLarge="cover_fixed_pill_list_large",i.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",i.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",i.ThumbnailFixedListLarge="thumbnail_fixed_list_large",i.ThumbnailFixedListSmall="thumbnail_fixed_list_small",i.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",i.HeroBanner="hero_banner",i.HeroThumbnailSmall="hero_thumbnail_small",i.HeroBlockColourSmall="hero_block_colour_small",i.CoverFixedTileList="cover_fixed_tile_list",i.PosterSlidingListLarge="poster_sliding_list_large",i.PosterSlidingListMedium="poster_sliding_list_medium",i.PosterSlidingListSmall="poster_sliding_list_small",i.HeroBannerSmall="hero_banner_small",i.Heading="heading",i.AuthorReviewer="author_reviewer",i.Question="question",i.QuestionAccordion="question_accordion",i.OnboardingSteps="onboarding_steps",i.CircleLogoSlidingList="circle_logo_sliding_list",i.FilterSlidingPillListSmall="filter_sliding_pill_list_small",i.EventIconSlidingList="event_icon_sliding_list"}(n||(n={}))},42308:(i,e,t)=>{var n;t.d(e,{z:()=>n}),function(i){i.CuratedMedia="curated_media",i.PlaylistMedia="playlist_media",i.ClassificationMedia="classification_media",i.LatestReleasedVideos="latest_released_videos",i.ContinueWatching="continue_watching_videos",i.CompanyLatestReleasedVideo="company_latest_released_video",i.CompanyVideos="company_videos",i.ClassificationLatestReleasedVideo="classification_latest_released_video",i.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",i.CuratedClassifications="curated_classifications",i.Classifications="classifications",i.ClassificationLatestReleasedVideos="classification_latest_released_videos",i.SpecialEventClassifications="special_event_classifications",i.LatestReleasedClassifications="latest_released_classifications",i.CuratedSeries="curated_series",i.CuratedPlaylists="curated_playlists",i.Blurb="blurb",i.DynamicBlurb="dynamic_blurb",i.AuthorReviewer="author_reviewer",i.Faq="faq",i.CuratedCompanies="curated_companies",i.Ratings="ratings",i.Presentations="presentations",i.UpcomingLivestreams="upcoming_livestreams",i.CuratedMultimedia="curated_multimedia",i.ClassificationPlaylists="classification_playlists",i.ClassificationSeries="classification_series",i.ClassificationFeaturedVideo="classification_featured_video",i.ClassificationPinnedVideos="classification_pinned_videos"}(n||(n={}))},65294:(i,e,t)=>{t.d(e,{Y:()=>a});var n=t(34152);function l(i,e){(null==e||e>i.length)&&(e=i.length);for(var t=0,n=Array(e);t<e;t++)n[t]=i[t];return n}function a(){var i,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.prevent,r=t.rootMargin,o=t.triggerOnce,s=void 0===o||o,c=(i=(0,n.YD)({triggerOnce:s,rootMargin:r}),e=3,function(i){if(Array.isArray(i))return i}(i)||function(i,e){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var n,l,a,r,o=[],s=!0,c=!1;try{if(a=(t=t.call(i)).next,0===e){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=a.call(t)).done)&&(o.push(n.value),o.length!==e);s=!0);}catch(i){c=!0,l=i}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw l}}return o}}(i,e)||function(i,e){if(i){if("string"==typeof i)return l(i,e);var t={}.toString.call(i).slice(8,-1);return"Object"===t&&i.constructor&&(t=i.constructor.name),"Map"===t||"Set"===t?Array.from(i):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(i,e):void 0}}(i,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.")}()),u=c[0],d=c[1],f=c[2];return!0!==a&&void 0!==window.IntersectionObserver||(d=!0,u=null),{ref:u,inView:d,initialized:!!f}}},26154:(i,e,t)=>{var n,l,a,r,o;t.d(e,{VH:()=>d,R:()=>o,OL:()=>l,NK:()=>a,GL:()=>m.GL,ku:()=>m.ku,Yv:()=>m.Yv,Z9:()=>n,l9:()=>s}),function(i){i[i.MultipleChoice=1]="MultipleChoice",i[i.ShortAnswer=2]="ShortAnswer",i[i.TrueOrFalse=3]="TrueOrFalse",i[i.Annotation=4]="Annotation",i[i.Image=5]="Image",i[i.MissingWord=6]="MissingWord"}(n||(n={})),function(i){i.LatestReleases="latest-releases",i.ExploreAllTopics="explore-all-topics",i.ClassificationLatestReleases="classification-latest-releases"}(l||(l={})),function(i){i.TopicDirectory="topic-directory",i.TopicNewReleases="topic-new-releases"}(a||(a={})),function(i){i.Video="video",i.Series="series",i.Playlist="playlist",i.Classification="subject",i.Company="company"}(r||(r={})),function(i){i.Pink="colour:0",i.Orange="colour:1",i.Green="colour:2",i.Blue="colour:3",i.Purple="colour:4",i.Indigo="colour:5"}(o||(o={}));var s,c,u,d,f,_,v,m=t(75902);!function(i){i[i.Row=0]="Row",i[i.LargeRow=1]="LargeRow",i[i.Hero=2]="Hero",i[i.ResourcesTile=3]="ResourcesTile"}(s||(s={})),function(i){i[i.None=1]="None",i[i.All=2]="All",i[i.Learner=3]="Learner",i[i.Teacher=4]="Teacher"}(c||(c={})),function(i){i[i.Holiday=0]="Holiday",i[i.SportingEvent=1]="SportingEvent",i[i.Observance=2]="Observance",i[i.NaturalDisaster=3]="NaturalDisaster",i[i.HistoricalEvent=4]="HistoricalEvent",i[i.BreakingNews=5]="BreakingNews",i[i.Informal=6]="Informal",i[i.ReligiousEvent=7]="ReligiousEvent",i[i.Livestream=8]="Livestream",i[i.Other=255]="Other"}(u||(u={})),function(i){i[i.Classification=0]="Classification",i[i.Livestream=1]="Livestream"}(d||(d={})),function(i){i[i.Regular=0]="Regular",i[i.Daily=1]="Daily",i[i.Weekly=2]="Weekly",i[i.Monthly=3]="Monthly",i[i.Yearly=4]="Yearly"}(f||(f={})),function(i){i[i.Owner=1]="Owner",i[i.Teacher=2]="Teacher",i[i.Student=3]="Student"}(_||(_={})),function(i){i[i.Audience=0]="Audience",i[i.Topic=1]="Topic",i[i.Curriculum=2]="Curriculum"}(v||(v={}))},75902:(i,e,t)=>{var n,l,a,r;t.d(e,{GL:()=>a,Yv:()=>l,ku:()=>r}),function(i){i.Any="Any",i.Level_1="Level_1",i.Level_2="Level_2",i.Level_3="Level_3",i.Level_4="Level_4"}(n||(n={})),function(i){i.Any="Any",i.Staff="Staff",i.Learner="Learner"}(l||(l={})),function(i){i.Draft="Draft",i.Published="Published",i.Archived="Archived"}(a||(a={})),function(i){i.Discover="discover",i.Classification="classification",i.ClassificationDirectory="classification-directory",i.MoviesAndTv="movies-and-tv",i.Company="company"}(r||(r={}))},49542:(i,e,t)=>{t.d(e,{d:()=>d});var n,l=t(32735),a=t(65858);!function(i){i[i.Draft=0]="Draft",i[i.Published=1]="Published",i[i.Archived=2]="Archived"}(n||(n={}));var r,o=t(78479),s=t(42308),c=t(26154);function u(i,e){(null==e||e>i.length)&&(e=i.length);for(var t=0,n=Array(e);t<e;t++)n[t]=i[t];return n}!function(i){i.Draft="Draft",i.Published="Published",i.Archived="Archived"}(r||(r={}));var d={getSliderAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:a.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:a.Vw.Click,location:a.LZ.SlidingList,entity:a.py.Widget,descriptor:a._S.Title}},useGetContent:function(i,e){return l.useMemo((function(){var t;if(!i)return{content:null,unfilteredContent:null};if(!Array.isArray(i))return{content:i,unfilteredContent:i};var n,l=null!==(t=null==e?void 0:e.reduce((function(i,e){return i[e.id]=e,i}),{}))&&void 0!==t?t:{},a=function(i){if(Array.isArray(i))return u(i)}(n=i)||function(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}(n)||function(i,e){if(i){if("string"==typeof i)return u(i,e);var t={}.toString.call(i).slice(8,-1);return"Object"===t&&i.constructor&&(t=i.constructor.name),"Map"===t||"Set"===t?Array.from(i):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(i,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=a.sort((function(i,e){var t,n,r,o,s=null!==(n=null===(t=l[i.id])||void 0===t?void 0:t.index)&&void 0!==n?n:a.findIndex((function(e){return e.id===i.id})),c=null!==(o=null===(r=l[e.id])||void 0===r?void 0:r.index)&&void 0!==o?o:a.findIndex((function(i){return i.id===e.id}));return s<c?-1:s>c?1:0}));return{content:r.filter((function(i){var e;return!(null===(e=l[i.id])||void 0===e?void 0:e.hidden)})),unfilteredContent:r}}),[i,e])},getCustomAppLink:function(i){var e,t,n,l,a,r;return(null===(e=i.metadata)||void 0===e?void 0:e.appLink)===c.OL.LatestReleases?null===(n=null===(t=i.appLinks)||void 0===t?void 0:t.latestReleases)||void 0===n?void 0:n.call(t):(null===(l=i.metadata)||void 0===l?void 0:l.appLink)===c.OL.ExploreAllTopics?null===(r=null===(a=i.appLinks)||void 0===a?void 0:a.allTopics)||void 0===r?void 0:r.call(a,i.presentation.id):null},getWidgetStatus:function(i){var e=i.status;if("string"==typeof e)switch(e){case r.Archived:e=n.Archived;break;case r.Published:e=n.Published;break;case r.Draft:e=n.Draft}return e},formatResponseData:function(i,e){var t=i.content;if(!t)return i;if("author"in t)return i.content=[t],i;switch("data"in t?i.content=t.data:Array.isArray(t)||(i.content=[t]),i.widgetId){case s.z.ClassificationSeries:i.content=i.content.filter((function(i){var e;return!!(null===(e=i.tallPoster)||void 0===e?void 0:e.id)}));break;case s.z.ClassificationPlaylists:i.content=i.content.filter((function(i){var e;return!!(null===(e=i.cover)||void 0===e?void 0:e.id)}));break;case s.z.ContinueWatching:i.content=i.content.map((function(i){return i.object}));default:break;case s.z.Presentations:i.content=i.content.filter((function(i){var t;return i.id.toString()!==(null===(t=null==e?void 0:e.id)||void 0===t?void 0:t.toString())}))}return i},isWidgetInTableOfContents:function(i){return!!(null==i?void 0:i.showInTableOfContents)},hasNoContent:function(i){return i===s.z.Blurb},canDisplayOnScreenSize:function(i,e,t){return e!==s.z.Blurb||t!==o.f.HeroBannerSmall||!i.xs&&!i.sm},isCompanyWidget:function(i){switch(i){case s.z.CompanyLatestReleasedVideo:case s.z.CompanyVideos:case s.z.UpcomingLivestreams:return!0;default:return!1}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[4942],{19716:(e,t,n)=>{n.d(t,{D:()=>u});var r=n(32735),a=n(39202),i=n(23481),o=n(65858),c=n(88818);const s={pillTab:"Vrjid"};var l="streamable.header";function u(e){var t,n,u,d,m,p,g=[{name:i.T.getPhrase(l,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(l,"heading"),url:a.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:i.T.getPhrase(l,"livestreams"),appLink:null===(u=e.appLinks)||void 0===u?void 0:u.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(l,"livestreams"),url:a.C$.getHref(null===(d=e.appLinks)||void 0===d?void 0:d.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(l,"partners"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(l,"partners"),url:a.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return r.createElement("div",{className:"py-3 text-center"},r.createElement(c.r,{tabs:g,className:s.pillTab}))}},18559:(e,t,n)=>{n.d(t,{C:()=>f,g:()=>l});var r,a=n(32735),i=n(23481),o=n(83914),c=n(64444),s=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(r||(r={}));var l,u=n(93264),d=n(26361),m=n(35223),p=n(81993),g=n(86474),v=i.T.encloseNamespace("shared.badges");function f(e){var t=e.type,n=e.data;if(!function(e,t){var n,r;return"boolean"==typeof t?!!t:e===l.Rating?t&&!!t.value:e===l.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===l.Captions?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===l.Status?"number"==typeof t:!!t}(t,n))return a.createElement(a.Fragment,null);var i=function(e,t){var n,a="";if(e===l.DurationApproximate&&(a="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===l.DurationExact&&(a="duration-badge"),e===l.Interactive&&(a="interactive-badge"),e===l.Rating&&(a="rating-badge ".concat(p.u.mapRatingToClass(t.value))),e===l.ProductionYear&&(a="production-year-badge"),e===l.Captions)return"p-0";if(e===l.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===l.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===l.Count&&(a="count-badge px-1 rounded"),e===l.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===l.Source&&(a=(n=t).includes(r.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(g.Z.streamable):n.includes(r.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(a)}(t,n);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var f=function(e,t){if(e===l.Interactive)return v("interactive");if(e===l.DurationApproximate)return u.T.ToDisplayDurationNewStyle(t);if(e===l.DurationExact)return u.T.ToDisplayDuration(t);if(e===l.Rating)return t.code;if(e===l.ProductionYear)return t;if(e===l.Captions)return a.createElement(o.x,{svgName:m.vn.CloseCaptionBadge});if(e===l.Status)return s.X[t];if(e===l.Trending)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:m.vn.Trending}),a.createElement("span",{className:"ps-1"},t));if(e===l.Count)return t;if(e===l.Restriction)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===l.Source){var n=t;return n.includes(r.Streamable)?"streamable":n.includes(r.MoviesAndTv)?"movies + tv":n.includes(r.Exchange)?"exchange":n.includes(r.Twig)?"twig":"-"}}(t,n),b=function(e,t){return e===l.Rating?{title:t.name,placement:"top"}:null}(t,n),y=e.inline&&"d-inline-block";return b?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(c.u,Object.assign({},b,{spanHack:!0,spanHackClassName:y}),a.createElement("span",{className:i},f))):a.createElement("span",{className:"".concat(i," badge-wrapper")},f)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(l||(l={}))},88818:(e,t,n)=>{n.d(t,{r:()=>d});var r=n(32735),a=n(92582),i=n(57408),o=n(18559),c=n(11607),s=n(83914);const l={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return r.createElement(r.Fragment,null,!!e.tab.svgName&&r.createElement("div",{className:e.tab.name?"pe-1":""},r.createElement(s.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&r.createElement("div",{className:"ps-2"},r.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return r.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},r.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 r.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?r.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(l.tabLink,"\n ")},r.createElement(u,{tab:e})):r.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(l.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&a.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},r.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},5960:(e,t,n)=>{var r,a;n.d(t,{H:()=>a,X:()=>r}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(a||(a={}))},1164:(e,t,n)=>{var r;n.d(t,{L:()=>r}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},5345:(e,t,n)=>{var r;n.d(t,{c:()=>r}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},93264:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(21161),a=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=a(n.getUTCMinutes(),2,"0"),c=a(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),a=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((a>0||i>0)&&o>=30&&(i+=1),a>0){var c=a>1?"hrs":"hr";return i>0?t&&o>0?"".concat(a).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(a).concat(c," ").concat(i,"m "):"".concat(a," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},26361:(e,t,n)=>{n.d(t,{l:()=>v});var r=n(23481),a=n(110),i=n(86474),o=n(5345),c=n(35223);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.T.encloseNamespace("shared.shared-utils"),d=l(l({},o.c.Custom,i.Z.restrictionBadgeCustom),o.c.User,i.Z.restrictionBadgeUser),m=l(l({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=l(l({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),g=l(l({},o.c.Custom,200),o.c.User,100),v={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=v.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=v.getWeightedRestriction(e.value);return m[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=v.getWeightedRestriction(e.value),a=t.find((function(e){return e.value===r.yearGroup})),i=p[r.type];if(r.type===o.c.User)return null===r.yearGroup?u("restrictionStaff"):a?u(i,{yearGroup:a.name}):"";if(r.type===o.c.Custom){var c=v.getRestrictionDuration(r);return c?u(i,{duration:c,smartCount:c}):u("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=g[e.type],a=g[n.type];return"highest"===t&&r>a||"lowest"===t&&r<a?e:n}))},getRestrictionByType:function(e,t){if(!v.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return v.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=a.O.convertUTCToLocal(e.expiresOn);if(t)return a.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!v.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},81993:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(23481),a=n(96560),i=n(1164),o=n(35223);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return r.T.getPhrase(l,"exchange");case a.r.Workspace:return r.T.getPhrase(l,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-blue";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=s(s(s(s(s(s(s({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(l,"pdf");case i.L.Image:return r.T.getPhrase(l,"image");case i.L.Document:return r.T.getPhrase(l,"document");case i.L.Excel:return r.T.getPhrase(l,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(l,"presentation");case i.L.Zip:return r.T.getPhrase(l,"zipArchive");case i.L.File:return r.T.getPhrase(l,"file");default:return""}}}},49638:(e,t,n)=>{n.r(t),n.d(t,{ContentPartnersView:()=>S});var r=n(32735),a=n(23481),i=n(20354),o=n(28400),c=n(19716),s=n(57408),l=n(63545),u=n(83345),d=n(54610),m=n(45445),p=n(69883),g=n(60115),v=n(67453),f=n(96359),b=n(41135),y=n(68317),h=n(31700);const x={logoContainer:"ydlqI"};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(){return r.createElement(r.Fragment,null,(e=Array(24),function(e){if(Array.isArray(e))return w(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 w(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)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return r.createElement("div",{key:"partial-loading-".concat(t),className:"col-12 col-md-6 col-xl-4"},r.createElement("div",{className:"d-flex align-items-center border border-light w-100 h-100 rounded-3 overflow-hidden"},r.createElement("div",{className:"".concat(x.logoContainer," flex-shrink-0 partial-loading-background")}),r.createElement("p",{className:"partial-loading-background fw-semibold mx-3 mb-0 w-50"}," ")))})));var e}var E=n(27051),C="dashboard.contentPartners",P=50;function S(){var e,t,n=(0,p.Z)(),w=i.a.useGetFetch(),S=i.a.useBasicFetch(h.g.streamablePresentation());function k(e){var t;if(S.data)return y.h.companies({presentation:null===(t=S.data)||void 0===t?void 0:t.id.toString()},e,P)}function D(e){w(k(e))}var L=(0,g.K)(k,D,(function(e,t){if(1===e)return(0,m.r)(t);n.error(a.T.getPhrase(C,"error"))}),(function(e){return e.results}));return r.createElement("div",{className:"px-4"},r.createElement(c.D,{active:"partners",appLinks:(0,E.h)()}),r.createElement("h1",{className:"h2 mb-3"},r.createElement(u.x,{namespace:C,phrase:"heading"})),r.createElement("div",{className:"row g-3"},(null===(e=L.items)||void 0===e?void 0:e.length)?r.createElement(r.Fragment,null,null===(t=L.items)||void 0===t?void 0:t.map((function(e){return r.createElement(s.F,{appLink:{application:b.O.DASHBOARD,action:f.e.Dashboard.COMPANY_DASHBOARD,args:[e.id,o.m.slugify(e.name)]},className:"col-12 col-md-6 col-xl-4",key:e.id},r.createElement("div",{className:"d-flex align-items-center border border-light w-100 h-100 rounded-3 overflow-hidden"},r.createElement("div",{className:"".concat(x.logoContainer," flex-shrink-0 partial-loading-background")},e.logo&&r.createElement("img",{className:"w-100",src:v.j.createUrl(e.logo.url,{size:d.h2.Medium}),alt:e.name})),r.createElement("p",{className:"fw-semibold mx-3 mb-0"},e.name)))}))):r.createElement(T,null),(L.hasMore||L.isFetching)&&r.createElement(l._,{isFetching:L.isFetching,fetchNext:D,nextCursor:L.nextCursor,fetchOnScroll:!0})))}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>c});var r=n(96359),a=n(41135),i=n(65751);function o(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationDirectory:function(){return i.y.classificationDirectory(e)}})}function c(){return{discover:{application:a.O.DASHBOARD,action:r.e.Dashboard.HOME},calendar:{application:a.O.CALENDAR,action:r.e.Calendar.CALENDAR},partners:{application:a.O.DASHBOARD,action:r.e.Dashboard.CONTENT_PARTNERS}}}},68317:(e,t,n)=>{n.d(t,{h:()=>i});var r=n(99940),a=n(97395),i={company:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),t),publicUrl:a._.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,a="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:r.k.POST,data:i,key:a}}}},86474:(e,t,n)=>{n.d(t,{Z:()=>r});const r={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}},34152:(e,t,n)=>{n.d(t,{YD:()=>l});var r=n(32735),a=(Object.defineProperty,new Map),i=new WeakMap,o=0,c=void 0;function s(e,t,n={},r=c){if(void 0===window.IntersectionObserver&&void 0!==r){const a=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:s,observer:l,elements:u}=function(e){const t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(o+=1,i.set(n,o.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}(e);let n=a.get(t);if(!n){const r=new Map;let i;const o=new IntersectionObserver((t=>{t.forEach((t=>{var n;const a=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=r.get(t.target))||n.forEach((e=>{e(a,t)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},a.set(t,n)}return n}(n),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),l.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),l.unobserve(e)),0===u.size&&(l.disconnect(),a.delete(s))}}function l({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:i,triggerOnce:o,skip:c,initialInView:l,fallbackInView:u,onChange:d}={}){var m;const[p,g]=r.useState(null),v=r.useRef(),[f,b]=r.useState({inView:!!l,entry:void 0});v.current=d,r.useEffect((()=>{if(c||!p)return;let r;return r=s(p,((e,t)=>{b({inView:e,entry:t}),v.current&&v.current(e,t),t.isIntersecting&&o&&r&&(r(),r=void 0)}),{root:i,rootMargin:a,threshold:e,trackVisibility:n,delay:t},u),()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,p,i,a,o,c,n,u,t]);const y=null==(m=f.entry)?void 0:m.target,h=r.useRef();p||!y||o||c||h.current===y||(h.current=y,b({inView:!!l,entry:void 0}));const x=[g,f.inView,f.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}r.Component}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[520],{34468:(e,t,n)=>{n.d(t,{R:()=>i});var r=n(32735),a=n(73758);function i(e,t,n,i){var o=function(){a.n.unsubscribe(e,t)};return(0,r.useEffect)((function(){if(i)return n?a.n.subscribeOnce(e,t):a.n.subscribe(e,t),function(){o()}}),[]),o}},73758:(e,t,n)=>{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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}n.d(t,{n:()=>o});var o=new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}},t=[{key:"subscribe",value:function(e,t){this.registerListener(e,t)}},{key:"subscribeOnce",value:function(e,t){this.registerListener(e,t,1)}},{key:"unsubscribe",value:function(e,t){this.deregisterListener(e,t)}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.triggerCallbacks(e,n)}},{key:"registerListener",value:function(e,t,n){var r;if("string"!=typeof e)throw new Error("Event name must be a string");if("function"!=typeof t)throw new Error("Event callback must be a function");if(n&&"number"!=typeof n)throw new Error("Execution limit must be a number or undefined");this.listeners[e]=null!==(r=this.listeners[e])&&void 0!==r?r:[],this.listeners[e].push({callback:t,executionLimit:n})}},{key:"deregisterListener",value:function(e,t){var n;if("string"!=typeof e)throw new Error("Event name must be a string");if(t&&"function"!=typeof t)throw new Error("Event callback must be a function");if(t){var r=null===(n=this.listeners[e])||void 0===n?void 0:n.findIndex((function(e){return e.callback===t}));"number"==typeof r&&-1!==r&&(this.listeners[e].splice(r,1),0===this.listeners[e].length&&delete this.listeners[e])}else this.listeners[e]=[]}},{key:"triggerCallbacks",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(this.listeners[e]){var i=[];this.listeners[e].forEach((function(e){var t,n;"number"==typeof e.executionLimit&&(e.executionCount=null!==(n=e.executionCount)&&void 0!==n?n:0,e.executionCount++,e.executionCount===e.executionLimit&&i.push(e.callback)),(t=e.callback).apply.apply(t,[null].concat(r))})),i.length&&i.forEach((function(n){return t.deregisterListener(e,n)}))}}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}())},38496:(e,t,n)=>{n.d(t,{p:()=>c});var r=n(32735),a=n(23481),i=n(15800),o=n(83345),u="shared.curriculumLinks",l=a.T.encloseNamespace(u);function c(e){return r.createElement(i.u,{className:"pt-3"},r.createElement(i.u.Image,{src:e.emptyStateUrl,altText:l("emptyInfo"),size:"small"}),r.createElement(i.u.Heading,null,r.createElement(o.x,{namespace:u,phrase:"emptyHeading"})),r.createElement(i.u.Info,null,r.createElement(o.x,{namespace:u,phrase:"emptyInfo"})))}},72189:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(32735);var a=function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"partial-loading-background rounded-pill py-1 px-2 d-inline-block me-1 mb-2 ".concat("vDcrq")}),r.createElement("div",null,r.createElement("div",{className:"partial-loading-background mb-1 ".concat("GXhoW")}),r.createElement("div",{className:"mb-2 d-flex"},r.createElement("div",{className:"me-1 align-self-start ".concat("goKaS")},r.createElement("div",{className:"partial-loading-background rounded-pill py-1 px-2 d-inline-block w-100 h-100"})),r.createElement("div",{className:"partial-loading-background ".concat("vFew6")}))))};function i(){return r.createElement("div",null,r.createElement("div",{className:"mb-3"},r.createElement(a,null)),r.createElement("div",{className:"mb-3"},r.createElement(a,null)),r.createElement("div",null,r.createElement(a,null)))}},87311:(e,t,n)=>{n.d(t,{G:()=>a});var r=n(81886),a={getTagActionProps:function(e,t,n){return n?{onClick:function(n){t&&t();var a=e?e(n):null;if(a)return r.Q.C$.trigger(a)}}:{getAppLink:function(t){return e?e(t):null},onClick:t}}}},16035:(e,t,n)=>{n.d(t,{z:()=>u});var r=n(32735),a=n(57408),i=n(44829),o=n(86319);function u(e){var t,n,u=e.tag,l=e.appLink,c=e.onClick,s=e.disabled,d=e.tagClass,f=void 0===d?"tag":d,m=u.name.toLowerCase(),v=null===(t=u.tagType)||void 0===t?void 0:t.toLowerCase(),p=v===i.Q.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),h="rounded-pill py-1 px-2 my-1 me-1 ".concat(f," ").concat(function(e,t){switch(e){case i.Q.Pedagogy:case i.Q.Skill:return"pedagogy-tag text-white";case i.Q.Hidden:return"hidden-tag fw-normal";case i.Q.Normal:return t?"":"bg-gray-100 fw-normal";default:return""}}(v,p));p&&(h+=" text-white"),!l&&!c||s||(h+=" cursor-pointer"),s&&(h+=" "+o.Z.disabled),e.onRemove&&(h+=" "+o.Z.badge),l||(h+=" d-inline-block");var y=p?{backgroundColor:e.themeColours.secondary}:{};return l?r.createElement(a.F,{onClick:c,appLink:l,className:h,title:m,style:y},r.createElement("span",{className:"text-truncate text-nowrap"},m)):r.createElement("span",{onClick:c,className:h,title:m,style:y},r.createElement("span",{className:"text-truncate text-nowrap"},m,e.onRemove&&r.createElement("button",{onClick:e.onRemove,className:"".concat(o.Z.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}},91743:(e,t,n)=>{n.d(t,{P:()=>c});var r=n(32735),a=n(16035),i=n(44829),o=n(86319);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t;switch(null===(t=e.tagType)||void 0===t?void 0:t.toLowerCase()){case i.Q.Pedagogy:return 0;case i.Q.Skill:return 1;default:return 2}}function c(e){if(!e.tags)return r.createElement(r.Fragment,null);var t,n=(t=e.tags,function(e){if(Array.isArray(e))return u(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(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.")}()).sort((function(e,t){return l(e)-l(t)}));return r.createElement("div",{className:"".concat(o.Z.tagList," ").concat(e.className)},n.map((function(t){var n="function"==typeof e.getAppLink?e.getAppLink(t):null,i="function"==typeof e.onRemove?function(){return e.onRemove(t)}:null,o="function"==typeof e.onClick?function(){return e.onClick(t)}:null;return r.createElement(a.z,{key:t.id||t.name,tag:t,appLink:n,themeColours:e.themeColours,onRemove:i,onClick:o})})))}},85597:(e,t,n)=>{var r;n.d(t,{k:()=>r}),function(e){e.Subject="CurriculumSubject",e.Audience="CurriculumAudience",e.Area="CurriculumArea",e.Leaf="CurriculumLeaf"}(r||(r={}))},44829:(e,t,n)=>{var r,a;n.d(t,{Q:()=>r}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(a||(a={}))},45719:(e,t,n)=>{n.d(t,{P:()=>s});var r=n(32735),a=n(70680),i=n(50242),o=n(91967),u=n(20354);function l(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.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){function i(e){if(e)return o.q.isFunction(t)?l(t(e)):l(e.data)}function c(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.v9)((0,r.useMemo)((function(){return function(t){if(o.q.isFunction(e)){for(var n=e,r=o.q.isFunction(e)&&n(),a=r&&u.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,m=f,v=a&&a.shouldFetch,p=i(a&&a.data),h=c(a&&a.data),y=function(e){if(e)return null==e?void 0:e.count}(a&&a.data);h&&(a=u.a.getResponse(t,n(h)),s=s||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var g=i(a.data);g&&p.push.apply(p,l(g));var b=c(a.data);h=b===h?null:b}var C={shouldInitialFetch:v,items:p,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f,hasFirstPageCompleted:m};return"number"==typeof y&&(C.totalItems=y),C}}}),[e]))}i.o.Ok},89758:(e,t,n)=>{n.d(t,{M:()=>m});var r=n(57900),a=n(20354),i=n(2948),o=n(75896),u=n(38143),l=n(25925),c=n(21750),s=n(61699),d=n(31949);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var m=function(e){var t,n,m,v,p,h,y=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=a.a.useGetFetchAsync(),b=null===(t=a.a.useBasicFetch(d.N.currentUser()).data)||void 0===t?void 0:t.isAuthenticated,C=a.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),k=(p=(0,i.D)((v=l.R.Curriculum,"".concat(v.toLowerCase(),":").concat(u.g.PRESENTATION_ID)),void 0,{storage:r.Z1.LocalStorage}),h=2,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 r,a,i,o,u=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return u}}(p,h)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(p,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),E=k[0],w=k[1],S=!isNaN(+E),A=a.a.useBasicFetch(C.hasCompleted&&function(){if(b)return c.x.presentation(l.R.Curriculum);var e=function(){var e;return S?E:null===(e=o.m.first(C.data))||void 0===e?void 0:e.id}();return e&&c.x.presentationById(e)}()),L=null===(n=C.data)||void 0===n?void 0:n.map((function(e){return e.id})),x=a.a.useBasicFetch(e&&(null==L?void 0:L.length)&&c.x.hasCurriculumLinks([e],L)),N=a.a.useBasicFetch(e&&(null==L?void 0:L.length)&&c.x.checkAllCurriculumsLinks(e,L)),F=function(){var e;return y?(null===(e=N.data)||void 0===e?void 0:e.find((function(e){var t;return e.id===(null===(t=A.data)||void 0===t?void 0:t.id)})))?A.data:o.m.first(N.data):A.data}(),I=a.a.useBasicFetch((null==F?void 0:F.id)&&e&&c.x.curriculumLinks(e,null==F?void 0:F.id)),P=null===(m=o.m.first(x.data))||void 0===m?void 0:m._hasCurriculumLinks;return{hasLoaded:!(!C.hasCompleted&&!A.hasCompleted||!(I.hasCompleted&&x.hasCompleted&&N.hasCompleted)),preferredCurriculum:A.data,activeCurriculum:F,curriculumLinks:I.data,availableCurriculums:C.data,nonEmptyCurriculums:N.data,updateCurriculum:function(e,t,n){return b?g(s.o.setPresentation(e,l.R.Curriculum,t,n)):(w(null==e?void 0:e.id),Promise.resolve())},customerHasCurriculumLinks:P}}},50933:(e,t,n)=>{n.d(t,{l:()=>u});var r=n(20354),a=n(11565),i=n(32735),o=n(45719);function u(e){var t=r.a.useGetFetch();function n(t){return a.R.pointsOfInterest(e,t)}return function(e,t){var n=e,r=t,a=(0,o.P)(e&&function(e){return n(e).key});(0,i.useEffect)((function(){a&&a.shouldInitialFetch&&t&&r()}),[null==a?void 0:a.shouldInitialFetch,t]),(0,i.useEffect)((function(){a&&a.nextCursor&&!a.isFetching&&t&&r(a.nextCursor)}),[null==a?void 0:a.nextCursor,null==a?void 0:a.isFetching,t])}(!!e&&n,!!e&&function(e){t(n(e))}),(0,o.P)(!!e&&function(e){return n(e).key})}},90125:(e,t,n)=>{n.d(t,{Z:()=>r});const r={curriculumSubject:"GvGYH",curriculumSet:"d7RK0",areaLeafSet:"XRTAe",closeButton:"N3l5Q",heading:"hAxR4",leafDescriptionOnly:"h66ke",dropdown:"CsG6G",tag:"rdLqY",cover:"etwaD",active:"aDLMe",selected:"BMrSd"}},86319:(e,t,n)=>{n.d(t,{Z:()=>r});const r={tagList:"Zw6d9",disabled:"jlL1c",partialTag:"too_N",badge:"OjtN8",close:"X9joI"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[5320],{88818:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),i=n(92582),r=n(57408),o=n(18559),c=n(11607),s=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(s.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&a.createElement("div",{className:"ps-2"},a.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return a.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",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(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(l.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"}},49267:(e,t,n)=>{n.d(t,{a:()=>f});var a=n(23481),i=n(64364);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 o(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,c(a.key),a)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p="shared.regionLockedResourceError",f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,t,[a.T.getPhrase(p,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return a.T.getPhrase(p,"heading")}},{key:"description",get:function(){return a.T.getPhrase(p,"description")}}])&&o(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.H)},45445:(e,t,n)=>{n.d(t,{r:()=>w});var a=n(50242),i=n(81886),r=n(67058),o=n(23481),c=n(64364);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,u(a.key),a)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=f(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v="shared.privateResourceError",b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[o.T.getPhrase(v,"title")])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return o.T.getPhrase(v,"heading")}},{key:"description",get:function(){return o.T.getPhrase(v,"description")}}])&&l(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(c.H),y=n(49267),g=n(49075),h={notFound:r.d,forbidden:{rating:b,yearLevel:b,region:y.a,privacy:b},badRequest:g._};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r;r="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},h),t);r&&i.Q.Ry.isStatusCodeError(r)&&(r!==a.o.NotFound?r!==a.o.Forbidden?n.badRequest||i.Q.Ry.throw(new o.badRequest):n.forbidden||i.Q.Ry.throw(new o.forbidden.privacy):n.notFound||i.Q.Ry.throw(new o.notFound))}}},91286:(e,t,n)=>{n.d(t,{v:()=>o});var 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])}},26909:(e,t,n)=>{n.r(t),n.d(t,{StreamableClassificationView:()=>Me});var a=n(32735),i=n(23481),r=n(20354),o=n(65858),c=n(15800),s=n(83345),l=n(64444),u=n(26154),d=n(35223),p="subjects.curatedClassificationEmptyState",f=i.T.encloseNamespace(p);function m(e){var t,n,r=(null===(t=e.dashboard)||void 0===t?void 0:t.status)===u.GL.Archived;return a.createElement(s.D.Provider,{value:p},a.createElement(c.u,null,a.createElement(c.u.Image,{src:e.imageUrl,altText:f("headingForNP")}),e.isReadonly?a.createElement(a.Fragment,null,a.createElement(c.u.Heading,null,a.createElement(s.x,{namespace:p,phrase:"headingForCurator"})),a.createElement(c.u.Info,null,a.createElement(s.x,{namespace:p,phrase:"info"})),a.createElement(l.u,{title:r?i.T.getPhrase(p,"archivedCtaTooltip"):"",spanHack:!0},a.createElement(c.u.Cta,{text:i.T.getPhrase(p,"add"),appLink:null===(n=e.addWidgetApplink)||void 0===n?void 0:n.call(e),className:"btn btn-dark",icon:d.vn.Plus,disabled:r}))):a.createElement(c.u.Heading,null,a.createElement(s.x,{phrase:"headingForNP"}))))}var v=n(81886),b=n(92869),y=n(57408),g=n(11607);const h={itemsWrapper:"m6mGm",anchorWrapper:"QptZj",default:"_AZa8",selectedItem:"Nuiel",disabled:"WIzWJ",floatIcon:"ARudn",arrowIcon:"tEF5Q",listIcon:"Ql2wi"};function w(e){var t={actionType:o.Vw.Click,entity:o.py.Widget,location:o.LZ.TableOfContents};return a.createElement("div",{className:"".concat(h.itemsWrapper)},e.items.map((function(n,i){return e.localState?a.createElement(g.L,{key:n.id,className:"".concat(h.anchorWrapper," ").concat(e.activeId===n.id?h.selectedItem:""),onClick:function(){var t;b.t.preventScrollTop(),e.setControlledId(n.id),null===(t=e.onItemClick)||void 0===t||t.call(e,n)}},a.createElement("div",{className:"".concat(e.activeId||0!==i?"":h.default," ")},n.name)):a.createElement(y.F,{key:n.id,appLink:e.getAppLink(n),appLinkOptions:{replace:!0},className:"".concat(h.anchorWrapper," ").concat(e.activeId===n.id?h.selectedItem:""),onClick:function(){var t;b.t.preventScrollTop(),e.setControlledId(n.id),null===(t=e.onItemClick)||void 0===t||t.call(e,n)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:n.id,name:n.name}),analyticsOptions:t},a.createElement("div",{className:"".concat(e.activeId||0!==i?"":h.default," ")},n.name))})))}const T={container:"k1iOO"};function E(e){return a.createElement("div",{className:"".concat(T.container," ps-3")},a.createElement("h2",{className:"h5"},e.title),a.createElement(w,{items:e.widgets,activeId:e.activeId,appLink:e.appLink,analyticsData:e.analyticsData,setControlledId:e.setControlledId,getAppLink:function(e){var t=v.Q.C$.getCurrentAppLink(),n=t.params?Object.assign({},t.params):{};return n.tocId=e.id,Object.assign(Object.assign({},t),{params:n})}}))}var k="subjects.teacherOnlyEmptyState",S=i.T.encloseNamespace(k);function L(e){var t;return a.createElement(s.D.Provider,{value:k},a.createElement(c.u,null,a.createElement(c.u.Image,{src:e.imageUrl,altText:S("heading")}),a.createElement(c.u.Heading,null,a.createElement(s.x,{phrase:"heading"})),a.createElement(c.u.Info,null,a.createElement(s.x,{phrase:"info"})),a.createElement(c.u.Cta,{text:S("cta"),appLink:null===(t=e.ctaAppLink)||void 0===t?void 0:t.call(e),className:"btn btn-dark"})))}var C,P=n(75896),I=n(42308),O=n(80889),j=n(21366),x=n(75553),A=n(24546),N=n(66869),R=n(81326),D=n(86764),F=n(78479),U=n(3747),_=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(C=window.setTimeout((function(){r("")}),800));if(e.isIntersecting)t(e.target.id),o.current=window.scrollY;else{var a=o.current-window.scrollY>0,c=n.findIndex((function(t){return t.id===e.target.id})),s=n[c-1];a&&(null==s?void 0:s.id)&&t(null==s?void 0:s.id)}}))}),{rootMargin:"-67px 0px -80% 0px"});return n.forEach((function(t){return e.observe(t)})),function(){C&&window.clearTimeout(C),e.disconnect()}}),[t,n.length,i])};function B(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 W=function(e,t){var n,i,r,o,c=(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,c=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(r,o)||function(e,t){if(e){if("string"==typeof e)return B(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)?B(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.")}()),s=c[0],l=c[1],u=(n=t,i=a.useRef(),a.useEffect((function(){i.current=n})),i.current),d=t;a.useLayoutEffect((function(){if(!s||u!==d){var t=e.find((function(e){return e&&(null==e?void 0:e.id)===d}));if(t){var n=t.getBoundingClientRect();window.scrollBy({top:n.top-80,behavior:"smooth"}),s||l(!0)}}}),[e,u,d,s])},V=n(42735),G="subjects.classificationComingSoon",H=i.T.encloseNamespace(G);function M(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:G},a.createElement(c.u,{className:"pt-0"},a.createElement(c.u.Image,{src:e.imageUrl,altText:H("comingSoon")}),a.createElement(c.u.Heading,null,a.createElement(s.x,{phrase:"comingSoon"})),a.createElement(c.u.Info,null,a.createElement(s.x,{phrase:"info"})),e.canFollowSubjects&&a.createElement(V.K,{svgName:i?d.vn.Check:d.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?"unfollow":"follow"}))))}var Q=n(49935),z=n(79967),q=n(69454),Z=n(87114),$=n(99105);function J(e){return a.createElement($.x,{audiences:e.audiences,activeAudiences:e.activeAudiences,disabled:e.isReadonly,appLink:e.appLink,disablePersist:e.disablePersist})}var Y=n(88818),K=a.createContext({setProductTipRef:function(){},cleanUpProductTipRef:function(){},refs:{}}),X=n(2948);function ee(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 te={curatedTopicTab:"CmVlO",tabTransition:"rX31t"};var ne="shared.classificationDashboard";function ae(e,t,n,a){var r,c,s,l,u,p,f,m,b,y,g,h,w,T,E,k,S,L=t.lg||t.xl||t.xxl||t.xs;return Z.i.isTopLevelTopic(e.classification)?[{name:L?i.T.getPhrase(ne,"newReleases"):"",appLink:e.isReadonly?null:null===(c=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===c?void 0:c.call(r,e.classification),active:"new-releases"===n,svgName:d.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(ne,"newReleases"),url:v.Q.C$.getHref(null===(l=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===l?void 0:l.call(s,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?te.tabTransition:"")},{name:L?i.T.getPhrase(ne,"allTopics"):"",appLink:e.isReadonly?null:null===(p=null===(u=e.appLinks)||void 0===u?void 0:u.classificationDirectory)||void 0===p?void 0:p.call(u,e.classification),active:"all-topics"===n,svgName:d.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(ne,"allTopics"),url:v.Q.C$.getHref(null===(m=null===(f=e.appLinks)||void 0===f?void 0:f.classificationDirectory)||void 0===m?void 0:m.call(f,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?te.tabTransition:"")}]:[{name:L?i.T.getPhrase(ne,"topic"):"",appLink:e.isReadonly?null:null===(y=null===(b=e.appLinks)||void 0===b?void 0:b.classification)||void 0===y?void 0:y.call(b,e.classification),active:"curated-topic"===n,svgName:d.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(ne,"topic"),url:v.Q.C$.getHref(null===(h=null===(g=e.appLinks)||void 0===g?void 0:g.classification)||void 0===h?void 0:h.call(g,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:(S=a?te.tabTransition:"",t.xs?S+" w-100":L?" ".concat(te.curatedTopicTab):S)},{name:L?i.T.getPhrase(ne,"videoList"):"",appLink:e.isReadonly?null:null===(T=null===(w=e.appLinks)||void 0===w?void 0:w.classificationDirectory)||void 0===T?void 0:T.call(w,e.classification),active:"video-list"===n,svgName:d.vn.Video,analyticsData:{id:"video-list",classificationId:e.classification.id,classificationName:e.classification.name,presentationId:e.presentation.id,presentationDescription:e.presentation.description,name:i.T.getPhrase(ne,"videoList"),url:v.Q.C$.getHref(null===(k=null===(E=e.appLinks)||void 0===E?void 0:E.classificationDirectory)||void 0===k?void 0:k.call(E,e.classification))},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs},className:"".concat(t.xs?"w-100":""," ").concat(a?te.tabTransition:"")}]}function ie(e){var t,n,i,r,o,c,s,l,u,d,p,f,m=(0,z.k)(),v=(n={on:!1,tab:(t=e.activeTab)||"new-releases"},p=(0,X.D)("directory:product:tip:switcher",n),f=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,c=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(p,f)||function(e,t){if(e){if("string"==typeof e)return ee(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)?ee(e,t):void 0}}(p,f)||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,y=v.isHighlighting,g=(c="topics-directory-tab",s=a.useContext(K),l=s.setProductTipRef,u=s.cleanUpProductTipRef,d=s.refs,a.useEffect((function(){if(c)return function(){return u(c)}}),[c]),{setProductTipRef:function(e){return l(c,e)},refs:d}).setProductTipRef;return a.createElement(Y.r,{borderRadius:"sm",containerRef:function(e){return g(e)},className:m.xs?"w-100":"",listClassName:"d-flex flex-nowrap",tabs:ae(e,m,b,y)})}function re(e){var t,n,i,r,o,c,s,l=(0,z.k)(),u=(r=e.audiences,o=e.activeAudiences,c=e.isEmpty,!!e.isComingSoon||!(!c||(null==o?void 0:o.length))||!q.T.shouldShowAudiences(r));function d(){return!(!e.classification||!e.dashboard)&&!j.S.isSystemGeneratedDashboard(e.dashboard.widgets)&&!!e.canViewTopicTabs&&(Z.i.isTopLevelTopic(e.classification)?e.hasTopicDirectoryDashboard:!!j.S.hasCuratedMediaWidgets(e.dashboard.widgets))}return a.createElement("div",{className:(s="d-flex flex-column py-3 mb-3",e.isComingSoon||(s+=" border-bottom"),!d()&&!u||l.xs?s+" row-gap-3":s)},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",l.xs&&(e+=" row-gap-3"),e}()},a.createElement(Q.Oo,{breadcrumbs:null===(t=e.getBreadcrumbs)||void 0===t?void 0:t.call(e)}),d()&&u&&a.createElement(ie,{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(J,{audiences:e.audiences,activeAudiences:e.activeAudiences,appLink:null===(i=(n=e.appLinks).audience)||void 0===i?void 0:i.call(n),isReadonly:e.isReadonly,disablePersist:!e.isViewingCurrentPresentation}),d()&&!u&&a.createElement(ie,{classification:e.classification,activeTab:e.activeTab,appLinks:e.appLinks,presentation:e.presentation,isReadonly:e.isReadonly})))}function oe(e){return oe="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},oe(e)}function ce(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,c=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=r.call(n)).done)&&(c.push(a.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return se(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)?se(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 se(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 le="shared.classificationDashboard";function ue(e){return e.widgetId===I.z.Blurb&&e.templateId===F.f.Heading}function de(e){var t,n=function(e,t){var n,i,o,c,s=a.useMemo((function(){return e?{isSystemGeneratedDashboard:j.S.isSystemGeneratedDashboard(e.widgets),systemGeneratedVideoWidget:e.widgets.find((function(e){return e.widgetId===I.z.ClassificationPinnedVideos}))}:{isSystemGeneratedDashboard:!1,systemGeneratedVideoWidget:null}}),[null==e?void 0:e.id]),l=s.isSystemGeneratedDashboard,u=s.systemGeneratedVideoWidget,d=r.a.useBasicFetch(!!u&&O._.dashboardWidgetContent(null==u?void 0:u.id,j.S.getWidgetParams(u.widgetId,u.templateId,j.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!==I.z.ClassificationPinnedVideos})))&&void 0!==i?i:[],videoList:null!==(c=null===(o=d.data)||void 0===o?void 0:o.content)&&void 0!==c?c:[],videoListWidgetId:null==u?void 0:u.id}:{widgets:P.m.sortBy(null==e?void 0:e.widgets,"index")}}(e.dashboard,e.activeAudiences),c=n.widgets,s=n.videoList,l=n.videoListWidgetId,d=(0,U.a)(D.r.LGDown),p=a.useRef(new Set),f=a.useMemo((function(){return c.reduce((function(e,t){return e[t.id]=!1,e}),{})}),[null==c?void 0:c.length]),v=ce(a.useState(f),2),b=v[0],y=v[1],g=ce(a.useState(window.location.hash.slice(1)||""),2),h=g[0],w=g[1],T=ce(a.useState(""),2),k=T[0],S=T[1],C=Array.from(p.current);function F(t,n,a){var i,r=j.S.getWidgetParams(n,a,j.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)}W(C,e.tableOfContentsId),_({setActiveId:S,headingElements:C,controlledId:h,setControlledId:w});var B=!e.isComingSoon&&!e.isTeacherOnly&&(!e.dashboard||e.dashboard.status===u.GL.Archived&&!e.isReadonly||e.dashboard.status===u.GL.Draft&&!e.isPreviewing||!(null==c?void 0:c.length)||(!s||!s.length)&&Object.values(b).every((function(e){return!!e})));a.useEffect((function(){B&&y(f)}),[null==c?void 0:c.length]);var V=a.useCallback((function(e,t){if(b[e]!==t){for(var n,a=(Object.assign(Object.assign({},b),(u={},p=t,(d=function(e){var t=function(e,t){if("object"!=oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=oe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oe(t)?t:t+""}(d=e))in u?Object.defineProperty(u,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[d]=p,u))),i=0;i<c.length;){var r=c[i];if(ue(r)){for(var o=!0,s=i+1;o&&s<c.length;){var l=c[s];if(ue(l))break;a[l.id]||(n=l).widgetId===I.z.CuratedClassifications||n.widgetId===I.z.Classifications||(o=!1),s++}i=s,a[r.id]=o}else i++}y(a)}var u,d,p}),[b,c]);function G(e){return ue(e)&&b[e.id]}var H=c.filter((function(e){var t;return!G(e)&&!!(null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents)})),Q=H.length>=2&&!d;return a.createElement("div",{className:"bg-white px-4 ".concat(e.moviesAndTv?"":"topic-dashboard")},a.createElement(x.p,{heading:e.classification.name,banner:e.classification.banner,imageCdnUrl:e.imageCdnUrl,actions:null===(t=e.getBannerActions)||void 0===t?void 0:t.call(e),actionsDropdownClassName:"btn btn-outline-dark",specialEvent:e.specialEvent,calendarTheme:{background:"bg-light-blue",border:"border-light-blue"},showComingSoon:e.isComingSoon}),a.createElement(re,{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,canViewTopicTabs:e.canViewTopicTabs,isComingSoon:e.isComingSoon,isEmpty:B,isViewingCurrentPresentation:e.isViewCurrentPresentation,isReadonly:e.isReadonly}),e.isComingSoon&&a.createElement(M,{imageUrl:e.comingSoonImageUrl,data:e.classification,canFollowSubjects:e.canFollowSubjects,showFollowButtonSpinner:e.showFollowButtonSpinner,onToggleFollow:function(){return e.onToggleFollow(e.classification,o.LZ.ClassificationComingSoon)}}),!e.isComingSoon&&a.createElement("div",{className:"".concat(Q?"row no-wrap":"")},a.createElement("div",{className:Q?"col-9":""},c.map((function(t,n){return G(t)?a.createElement(a.Fragment,{key:t.id}):a.createElement(R.L,{headingElementRef:p,key:t.id,id:t.id,name:t.name,description:t.description,templateId:t.templateId,widgetTypeId:t.widgetId,audiences:e.audiences,getContentRequest:F,setIsEmpty:V,setFavourite:e.setFavourite,canFavourite:e.canFavourite,appLinks:e.appLinks,yearGroups:e.yearGroups,presentation:e.presentation,analyticsData:e.analyticsData,isScrollToTargetWidget:e.scrollToWidgetId===t.id,imageCdnUrl:e.imageCdnUrl,onSubmitFeedback:e.onSubmitFeedback,metadata:t.metadata,isBot:e.isBot,hasTableOfContents:Q,lazyLoad:e.lazyLoad,dashboardTarget:j.S.getDashboardTargetType(e.dashboard),widgetIndex:n,hasPermissions:e.hasPermissions,hasLocalPermissions:e.hasLocalPermissions,isPreviewing:e.isReadonly,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,contentType:e.contentType,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,preferences:t.preferences,onToggleFollowClassification:e.onToggleFollow,isPlugin:e.isPlugin})}))),Q&&a.createElement("aside",{className:"col-3"},a.createElement(E,{widgets:H,title:e.classification.name,activeId:k,clickable:!e.isReadonly,analyticsData:e.analyticsData,setControlledId:w})),!!(null==s?void 0:s.length)&&a.createElement(a.Fragment,null,a.createElement(N.B,{name:i.T.getPhrase(le,"videos"),description:""}),a.createElement(A.E4,{videos:s,yearGroups:e.yearGroups,getVideoAppLink:function(t,n){return e.appLinks.videoType(t,Object.assign(Object.assign({},n),{contextId:l}))},getSubTextAppLink:e.appLinks.subText,hasPermissions:e.hasPermissions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,getPreviewQuestionsAppLink:e.appLinks.previewQuestions,isPlugin:e.isPlugin,getClassroomGuideAppLink:e.appLinks.classroomGuide,getInteractiveGuidanceAppLink:e.appLinks.interactiveGuidance,getResourceGuidanceAppLink:e.appLinks.resourceGuidance}))),B&&a.createElement(m,{dashboard:e.dashboard,isReadonly:e.isReadonly,imageUrl:e.emptyImageUrl,addWidgetApplink:e.appLinks.widgetWizard}),e.isTeacherOnly&&a.createElement(L,{imageUrl:e.emptyImageUrl,ctaAppLink:function(){return e.appLinks.allTopics(e.classification.presentationId)}}))}de.defaultProps={appLinks:{}};var pe=n(70275),fe=n(51365),me=n(25925),ve=n(89454),be=n(21750),ye=n(39151),ge=n(31949),he=n(91286),we=n(79612),Te=n(25301),Ee=n(99742),ke=n(41760),Se=n(31700),Le=n(73688),Ce=n(49433),Pe=n(6117),Ie=n(64364),Oe=n(96359),je=n(41135);function xe(e){return xe="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},xe(e)}function Ae(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,Ne(a.key),a)}}function Ne(e){var t=function(e,t){if("object"!=xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xe(t)?t:t+""}function Re(e,t,n){return t=Fe(t),function(e,t){if(t&&("object"==xe(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,De()?Reflect.construct(t,n||[],Fe(e).constructor):t.apply(e,n))}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(De=function(){return!!e})()}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}function Ue(e,t){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ue(e,t)}var _e="subjects.topicNotFoundError",Be=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Re(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&&Ue(e,t)}(t,e),n=t,(a=[{key:"name",get:function(){return"TopicNotFoundError"}},{key:"heading",get:function(){return i.T.getPhrase(_e,"heading")}},{key:"description",get:function(){return i.T.getPhrase(_e,"description")}},{key:"cta",get:function(){return{text:i.T.getPhrase(_e,"cta"),appLink:{application:je.O.SUBJECTS,action:Oe.e.Subjects.CLASSIFICATION_ALL}}}}])&&Ae(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Ie.H);function We(){return a.createElement("div",{className:"bg-white px-4"},a.createElement(x.v,null),a.createElement("div",{className:"d-flex flex-column row-gap-3 py-3 mb-3 border-bottom"},a.createElement(Q.b2,null),a.createElement($.N,null)))}var Ve=n(65751),Ge=i.T.encloseNamespace("subjects.classificationView"),He=i.T.encloseNamespace("subjects.classificationView");function Me(e){var t,n,i,o,c,s,l,d,p,f,m=(0,Ce.V)("video-list"),v=r.a.useBasicFetch(ye.L.config()),b=r.a.useBasicFetch(ge.N.currentUser()),y=r.a.useBasicFetch(Se.g.streamablePresentation()),g=r.a.useBasicFetch(be.x.classification(e.id,null===(t=b.data)||void 0===t?void 0:t.id)),h=(0,Le.B)({targetType:u.ku.Classification,dashboardId:null===(n=e.queryParams)||void 0===n?void 0:n.dashboardId,classificationId:e.id}),w=h.dashboard,T=h.isPreviewing;(0,we.M)(Te.CG.getClassificationMetadata({content:g.data,phraseContext:{phraseHandler:He,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Pe.f.getCanonicalLink(),allowIndexing:!0,product:ke.L.PRODUCT_NAME})),(0,he.v)(g,{notFound:Be});var E,k,S=r.a.useBasicFetch(y.data&&ve.O.presentationAudiences(y.data.id,me.R.StreamableLearning)),L=r.a.useBasicFetch(be.x.path(e.id,me.R.StreamableLearning)),C=q.T.getActiveAudiencesFromParams(S.data,e.queryParams),P=null!==(i=null==C?void 0:C.map((function(e){return e.masterId})))&&void 0!==i?i:[],I={presentationId:null===(o=y.data)||void 0===o?void 0:o.id,presentationName:null===(c=y.data)||void 0===c?void 0:c.name,currentClassificationId:null===(s=g.data)||void 0===s?void 0:s.id,currentClassificationName:null===(l=g.data)||void 0===l?void 0:l.name,followingCurrentClassification:!!(null===(f=null===(p=null===(d=g.data)||void 0===d?void 0:d.followers)||void 0===p?void 0:p.data)||void 0===f?void 0:f.length),activeAudienceNames:(null==C?void 0:C.length)?C.map((function(e){return e.name})):null,activeAudienceIds:P.length?P:null},j=(E=g.data,k=e.queryParams,Object.assign(Object.assign({},Ve.y),{classification:function(e){return Ve.y.classification(e||E,k)},classificationDirectory:function(){return Ve.y.classificationDirectory(k)},audience:function(){return Ve.y.classification(E,k)}}));return v.data&&w.hasCompleted&&g.data&&y.data&&L.data&&S.data?a.createElement(fe.M.Provider,{value:{getVideoActions:m}},a.createElement("div",{className:"position-relative"},!(!T||!w.data)&&a.createElement(pe.a,{status:w.data.status,type:"topic"}),a.createElement(de,{dashboard:w.data,classification:g.data,getWidgetContentRequest:O._.dashboardWidgetContent,getBreadcrumbs:function(){return function(e){var t=e.classification,n=e.path,a=e.appLinks,i=[{name:Ge("discover"),appLink:{application:je.O.DASHBOARD,action:Oe.e.Dashboard.HOME}},{name:Ge("exploreAllTopicsHeading"),appLink:{application:je.O.SUBJECTS,action:Oe.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:j,classification:g.data,path:L.data})},hasPermissions:function(){return!1},hasLocalPermissions:function(){return!1},presentation:y.data,getBannerActions:function(){return[]},audiences:S.data,activeAudiences:C,analyticsData:I,imageCdnUrl:v.data.imageCdnUrl,resourceThumbnailFallbackImageUrl:Ee.W.Fallbacks.RESOURCE_THUMBNAIL,emptyImageUrl:Ee.W.EmptyStates.Topics.TOPIC,appLinks:j,isPreviewing:T,isViewCurrentPresentation:!0,canFollowSubjects:!1,tableOfContentsId:e.queryParams.tocId,lazyLoad:!Pe.f.isBot(),isTeacherOnly:!1,companyLogoFallbackUrl:Ee.W.StreamableLearning.LOGO,subTextType:"productionCompany",contentType:u.VH.Livestream,canViewTopicTabs:!1,hasTopicDirectoryDashboard:!1,tab:"curated-topic",isPlugin:!1}))):a.createElement(We,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,[]}}}}]);