@clickview/lite 0.0.52-rc.4 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundles.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "cssBundle": "lite-app-4c1eb0e01d.css",
3
- "appBundle": "bundle-3cabd51058.min.js",
3
+ "appBundle": "bundle-ea24747939.min.js",
4
4
  "polyfillBundle": "polyfills-4fd7e62849.min.js"
5
5
  }
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[15],{1054:function(t,e,n){"use strict";var r,a=n(0),i=n(39),o=n(63),l=n(36),c=n(1055),s=n(59),u=function(t){var e=t.breadcrumb,n=e.label,r=e.appLink,i=e.active;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(s.a,{appLink:r},n))},d=function(t){var e=t.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},e.map((function(t,e){return a.createElement(u,{key:e,breadcrumb:t})})))};function f(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e,n){return{label:t.name,appLink:e(t),active:n}}function v(t){var e=function(t,e){var n=t.currentItem,r=t.getItemAppLink,c=t.getParent,s=t.rootItem,u=t.data,d=t.subview,p=m(Object(a.useState)([]),2),y=p[0],v=p[1],h=null==u?void 0:u.map((function(t){return null==t?void 0:t.name})).join("-");a.useEffect((function(){if(!e)if(o.a.isEmpty(u)){if(!s)return;v([s])}else{var t=u.map((function(t,e){return b(t,r,e+1===u.length)}));s&&t.unshift(s),v(t)}}),[h,r]),a.useEffect((function(){if(e&&i.a.isFunction(c)){var t=[b(n,r,!0)];for(n=c(n);n;)t.unshift(b(n,r)),n=c(n);return s&&t.unshift(s),v(t)}}),[n,c,r,s]);var g=a.useRef({label:d,appLink:null,active:!0}).current;if(d){y.includes(g)||v([].concat(f(y),[g]));var w=y.filter((function(t){return t.active&&t!==g}));w.length&&(l.a.first(w).active=!1)}return y}(t,t.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(d,{breadcrumbs:e}))}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return h})),function(t){t[t.Static=0]="Static",t[t.Dynamic=1]="Dynamic"}(r||(r={}));var h=a.memo((function(t){var e=t.numItems,n=void 0===e?3:e;return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},c.a.getPartialLoadingItems({numItems:n}).map((function(t,e){var n=t.width;return a.createElement("li",{key:e,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},1055:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return i}));var i={getPartialLoadingItems:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.numItems,n=void 0===e?5:e,a=t.minWidth,i=void 0===a?50:a,o=t.maxWidth,l=void 0===o?100:o,c=function(){return Math.max(Math.floor(Math.random()*l),i)};return r(Array(n)).map((function(){return{width:"".concat(c(),"px")}}))}}},1056:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),a=n(120),i=n(254),o=n(91),l=n(361),c=n(362),s={notFound:i.a,forbidden:{rating:l.a,yearLevel:l.a,region:c.a,privacy:l.a},badRequest:o.a};function u(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign(Object.assign({},s),n);if(t){var o=+(null===(e=null==t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));o!==a.b.ClientError&&o!==a.b.ServerError||(t!==a.a.NotFound?t!==a.a.Forbidden?r.a.ErrorHelper.throw(new i.badRequest):r.a.ErrorHelper.throw(new i.forbidden.privacy):r.a.ErrorHelper.throw(new i.notFound))}}},1061:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f}));var r=n(0),a=n(79),i=n(11),o=n(39),l=n(120);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(t){var e,n,r;return null===(r=null===(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.pagination)||void 0===n?void 0:n.cursors)||void 0===r?void 0:r.next},d={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:l.a.Ok,hasCompleted:!0};function f(t){return Object(a.useSelector)(Object(r.useMemo)((function(){return function(e){if(o.a.isFunction(t)){for(var n=t,r=o.a.isFunction(t)&&i.a.getResponse(e,n()),a=r&&r.isFetching,l=r&&r.statusCode,s=r&&r.hasCompleted,d=r&&r.shouldFetch,f=r&&r.data&&r.data.data,m=u(r);m&&(a=(r=i.a.getResponse(e,n(m))).isFetching,l=r.statusCode,s=r.hasCompleted,!r.shouldFetch);){var p=r.data&&r.data.data;p&&f.push.apply(f,c(p));var y=u(r);m=y===m?null:y}return{shouldInitialFetch:d,items:f,nextCursor:m,isFetching:a,statusCode:l,hasCompleted:s}}}}),[t]))}},1066:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(11),a=n(26),i=n(191),o=n(359),l=n(1070),c=n(219);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(t,e){var n=r.a.useGetResponse(null==e?void 0:e.key),a=r.a.useGetFetch(e);t&&e&&n.shouldFetch&&a()}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},d),e),u=n.ratings,m=n.favourites,p=n.watchHistory,y=n.hasCurriculumLinks,b=r.a.useBasicFetch(a.a.currentUser()),v=t&&(Array.isArray(t)?t.filter(Boolean).map((function(t){return t.id})):t.data.filter(Boolean).map((function(t){return t.id}))),h=b.data;if(null==h?void 0:h.isAuthenticated){var g=[];u&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&i.a.videoRatings(v)])),m&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&c.a.isFavourited(h.id,v)])),p&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&l.a.videoHistory(v)])),y&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&o.a.hasCurriculumLinks(v)])),g.forEach((function(e){return f(!!t,e)}))}}},1070:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(62),a={userVideoHistory:function(t,e,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return t&&(i+=":".concat(t),o+="?cursor=".concat(t)),{key:i,url:o,formatData:function(t){return{data:t.data.map((function(t){var e=r.utc(t.lastTimeWatched).local().format(),n=r(e).format("YYYY-MM-DD");return Object.assign(Object.assign({},t),{lastTimeWatched:e,lastDateWatched:n})})),pagination:t.pagination}},success:e,error:n,always:a}},videoHistory:function(t,e,n,r){var a=t.sort().map((function(t){return"videoId=".concat(t)}));return{key:"video:history:videos:".concat(a.join("&")),url:"{gateway}/v1/videos/history?".concat(a.join("&")),formatData:function(t){return(null==t?void 0:t.length)?t.map((function(t){return{id:t.videoId,lastProgressPoint:t.lastProgressPoint}})):t},success:e,error:n,always:r}}}},1071:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(35),o=n(40),l=n(190),c=n(1075),s=n.n(c);function u(t){return a.a.createElement(a.a.Fragment,null,Array(t.numVideos).fill(null).map((function(e,n){return a.a.createElement(d,Object.assign({key:n},t))})))}function d(t){var e=Object(l.a)(),n=e===o.a.XS,r=e===o.a.SM||e===o.a.MD,c=t.withReordering&&!n;return a.a.createElement(i.Row,{className:"py-2"},a.a.createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a.a.createElement(i.Row,null,!!c&&a.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDragHandle)})),a.a.createElement(i.Col,{xs:c?10:12},a.a.createElement("div",{className:"partial-loading-background rounded ".concat(s.a.partialThumbnail)})))),a.a.createElement(i.Col,{xs:n?12:r?8:9},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialSeriesLink)}),a.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(s.a.partialName)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDescription)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialBadges)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialActions)})))}u.defaultProps={numVideos:15}},1073:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(1056);function i(t,e){Object(r.useEffect)((function(){Object(a.a)(null==t?void 0:t.statusCode,e)}),[null==t?void 0:t.statusCode,e])}},1075:function(t,e,n){t.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},1086:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),a=n(35),i=n(77),o=n(29),l=n(1088),c=n.n(l);function s(t){return r.createElement("div",{className:"p-3 text-center ".concat(c.a.container)},t.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:c.a.spinner}):r.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:function(){return t.onClick(t.nextCursor)}}))}},1087:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(39);function i(t,e,n){var i=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||t())};Object(r.useEffect)((function(){var t=a.a.throttle(i,200);return e&&window.addEventListener("scroll",t),function(){return window.removeEventListener("scroll",t)}}),[e,t])}},1088:function(t,e,n){t.exports={container:"_1_KC6",spinner:"VXlcl"}},1090:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(120),i=n(39),o=n(1061),l=n(1087);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n){var s=c(Object(r.useState)(0),2),u=s[0],d=s[1],f=e,m=Object(o.b)(t&&function(e){return t(e).key});return Object(l.a)((function(){if(e&&t&&m)return d((function(t){return t+1})),f(m.nextCursor)}),!!(null==m?void 0:m.nextCursor),null==m?void 0:m.isFetching),Object(r.useEffect)((function(){m&&m.shouldInitialFetch&&e&&(f(),d((function(t){return t+1})))}),[null==m?void 0:m.shouldInitialFetch,e]),Object(r.useEffect)((function(){var t,e;if((null==m?void 0:m.statusCode)&&i.a.isFunction(n)){var r=+(null===(e=null===(t=m.statusCode)||void 0===t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));r!==a.b.ClientError&&r!==a.b.ServerError||n(u,m.statusCode)}}),[null==m?void 0:m.statusCode]),{items:null==m?void 0:m.items,hasMore:!!(null==m?void 0:m.nextCursor),nextCursor:null==m?void 0:m.nextCursor,isFetching:null==m?void 0:m.isFetching}}},1103:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["bg-pink","bg-orange","bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"]},1137:function(t,e,n){"use strict";var r=n(0),a=n(94),i=n.n(a),o=function(t,e){return e?i.a.createPortal(t,e):t},l=n(8),c=n(77),s=n(59),u=n(29);function d(t){var e=Object.assign({textShadow:!0},t),n=e.backToName,a=e.appLink,i=e.color,o=e.extraClasses,d=e.textShadow,f=n?l.a.getPhrase("shared.backButton","backTo",{backToName:n}):l.a.getPhrase("shared.backButton","back"),m="black"===i?"":"text-white",p=d?"text-shadow":"";return r.createElement(s.a,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(m," ").concat(p)},r.createElement(c.a,{svgName:u.b.ChevronLeft,size:c.b.Medium}),r.createElement("span",{className:"ml-1"},f))}d.defaultProps={color:"black",extraClasses:""};var f=n(90),m=n(50),p=n(377),y=n(1058),b=n(311),v=n(78),h=n(365),g=n(190),w=n(40),S=n(1154),E=n.n(S);function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return C}));var O="".concat(p.a[m.c.Banners].width,":").concat(p.a[m.c.Banners].height);var j=r.memo((function(t){var e,n=t.heading,a=t.banner,i=t.imageCdnUrl,l=t.actions,c=t.sortComponent,s=t.blockColourClass,u=r.useContext(b.a),p=A(Object(v.a)(h.a.LAYOUT_CONTAINER_FLUID),1)[0],S=Object(g.a)()===w.a.XXL?1920:1200,I=t.imageOptions||{width:S,ratio:O,resizeType:m.d.Cover},j=!!a&&!!i&&f.a.createBannerUrl(a,{fallbackBaseUrl:i,fallbackCategoryName:n,type:m.c.Banners},I),C={className:"banner banner-header",style:{backgroundImage:"url('".concat(j,"')")}};!a&&s&&(delete C.style,C.className+=" ".concat(s));var k=t.detailsComponent;return o(r.createElement("div",Object.assign({},C),r.createElement("div",{className:"".concat(p?"container-fluid":"container"," position-relative")},t.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(d,{appLink:t.backButtonAppLink,backToName:t.backButtonText,extraClasses:t.backButtonClasses,color:"white"})),r.createElement("div",{className:E.a.bannerContent},r.createElement("h1",{className:"text-white text-shadow clamp-2"},n,k&&r.createElement(k,null)),!!l&&r.createElement("div",{className:E.a.actionsContainer},r.createElement(y.a,{actions:l,sortComponent:c,actionsDropdownClassName:t.actionsDropdownClassName}))),!!(null===(e=t.logo)||void 0===e?void 0:e.url)&&r.createElement("div",{className:E.a.logoContainer},r.createElement("img",{src:f.a.createUrl(t.logo.url,{size:m.b.Small}),className:"rounded-circle"})))),null==u?void 0:u.container)}),(function(t,e){var n,r;return t.actions===e.actions&&t.heading===e.heading&&(null===(n=t.logo)||void 0===n?void 0:n.url)===(null===(r=e.logo)||void 0===r?void 0:r.url)}));function C(){var t=r.useContext(b.a);return o(r.createElement("div",{className:"partial-banner partial-loading-background"}),null==t?void 0:t.container)}},1154:function(t,e,n){t.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF",logoContainer:"_313Pr"}},1156:function(t,e,n){"use strict";function r(t,e){return e[t.name.charCodeAt(0)%e.length]}n.d(e,"a",(function(){return r}))},1751:function(t,e,n){t.exports={partialDescription:"_3cyjk"}},1752:function(t,e,n){t.exports={sortableItem:"_2eiPB"}},1901:function(t,e,n){"use strict";n.r(e);var r=n(0),a=n.n(r),i=n(79),o=n(11),l=n(8),c=n(36),s=n(2),u=n(121),d=n(26),f=n(252),m=n(1090),p=n(1086),y=n(550);function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var h=n(1096),g=n(249),w=n(1073),S=n(359),E=n(95),A=n(65),I=n(42),O=n(358),j=n(376),C=n(1066),k=n(1085),L=n(366),P=n(260),N=n(56),x=n(96),F=n(40),T=n(1137),D=n(1156),U=n(1054),_=n(1103),M=n(7),B=n(5),V=n(130),H=n(1751),R=n.n(H);function Y(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(T.b,null),a.a.createElement("div",{className:"mb-2"},a.a.createElement("div",{className:"partial-loading-background my-2 border-bottom ".concat(R.a.partialDescription)})))}var $=n(29),W=n(30),X=l.a.encloseNamespace("playlists.playlistHeader"),z=function(t,e){var n,r=e.isAuthenticated,a=e.isPlugin,i=e.isMobile,o=e.setIsFollowing,l=e.isFollowing,c=e.setShowFollowSpinner,u=e.showFollowSpinner,d=t.playlist,f={location:s.LocationContext.Banner,entity:s.EntityType.Playlist,workflowPhase:s.WorkflowPhase.Start},m=[];return r?(a||(t.playAllAppLink&&m.push({label:X("playAll"),appLink:t.playAllAppLink,svgName:$.b.Play,className:i?"":"btn btn-outline-dark mr-2",button:!i,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:s.UserAction.Play})}),t.canSharePlaylists&&m.push({label:X("share"),appLink:{application:B.a.DEFAULT,action:M.a.Default.SHARE,args:[t.playlist.id],params:{entityType:"playlist"}},svgName:$.b.Share2,className:i?"":"btn btn-outline-dark mr-2",button:!i,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:s.UserAction.Share,eventVersion:s.EventVersion.V2})})),t.canFollow&&!t.canEdit&&m.push({label:X(l?"unfollow":"follow"),onClick:function(){o(!l),c(!0),t.follow(!l,(function(){c(!1),W.a.logUserAction(d,Object.assign(Object.assign({},f),{actionType:s.UserAction.Follow,descriptor:l?s.ToggleDescriptor.Off:s.ToggleDescriptor.On,workflowPhase:s.WorkflowPhase.Complete}))}),(function(){c(!1),o(l)}))},svgName:l?$.b.Check:$.b.Bell,className:i?"":"btn follow-btn btn-".concat(l?"outline-dark":"dark"," mr-2"),button:!i,showSpinner:u}),t.canEdit&&(m.push({label:X("edit"),appLink:{application:B.a.PLAYLISTS,action:M.a.Playlists.EDIT_PLAYLIST,args:[t.playlist.id]},svgName:$.b.Edit,button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:s.UserAction.Edit})}),m.push({label:X("delete"),appLink:{application:B.a.PLAYLISTS,action:M.a.Playlists.DELETE_PLAYLIST,args:[t.playlist.id]},svgName:$.b.Delete,className:"text-danger",button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:s.UserAction.Delete})})),(null===(n=t.playlist._isClickViewPlaylist)||void 0===n?void 0:n.value)&&m.push({label:X("copy"),appLink:{application:B.a.PLAYLISTS,action:M.a.Playlists.COPY_PLAYLIST,args:[t.playlist.id]},button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:s.UserAction.Copy})}),m):m};function J(t){return function(t){if(Array.isArray(t))return G(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||K(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||K(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Z=l.a.encloseNamespace("playlists.playlistHeader"),Q=function(t){return{application:B.a.SUBJECT,action:M.a.Subjects.CLASSIFICATION,args:[t.id,N.a.slugify(t.name)]}};function tt(t){var e=t.userIsAuthenticated,n=Object(V.b)().isPlugin,a=q(r.useState(t.isFollowing),2),i=a[0],o=a[1],l=q(r.useState(!1),2),c=l[0],s=l[1];r.useEffect((function(){return o(t.isFollowing)}),[t.isFollowing]);var u=Object(x.a)(F.a.XS);if(t.showPartialLoading)return r.createElement(Y,null);var d=t.playlist.description,f=z(t,{isAuthenticated:e,isPlugin:n,isMobile:u,setIsFollowing:o,isFollowing:i,setShowFollowSpinner:s,showFollowSpinner:c});return r.createElement(r.Fragment,null,r.createElement(T.a,{heading:t.playlist.name,banner:t.playlist.banner,imageCdnUrl:t.imageCdnUrl,actions:f.length&&f,actionsDropdownClassName:"btn btn-outline-dark",blockColourClass:Object(D.a)(t.playlist,_.a)}),(!!d||!!t.classificationId)&&r.createElement("div",{className:"border-bottom py-3"},t.classificationId?t.playlist&&t.topicPath?r.createElement("div",{className:"pb-2"},r.createElement(U.b,{currentItem:t.playlist,type:U.a.Static,getItemAppLink:Q,data:[].concat(J(t.topicPath),[t.playlist]),rootItem:{label:Z("exploreAllTopics"),appLink:{application:B.a.SUBJECT,action:M.a.Subjects.CLASSIFICATION_ALL}}})):r.createElement(U.c,null):r.createElement(r.Fragment,null),!!d&&r.createElement("p",{className:"mb-0"},d)))}var et=n(3),nt=n(39),rt=n(25),at=n(1100),it=n(1071),ot=n(77),lt=n(1752),ct=n.n(lt);function st(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ut(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ut(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var dt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function ft(t){var e=t.onSortComplete,n=t.onSortStart,a=t.showPartialLoading,i=dt(t,["onSortComplete","onSortStart","showPartialLoading"]),o=st(r.useState(),2),l=o[0],c=o[1],s=function(t){nt.a.isFunction(n)&&n(t)};return a?r.createElement(it.a,{withReordering:t.canEdit}):t.canEdit?r.createElement(at.b,Object.assign({},i,{currentSortingIndex:l,updateBeforeSortStart:function(t){var e=t.index;return c(e)},onSortStart:function(t){var e=t.index;return s(e)},onSortEnd:function(t){c(null),nt.a.isFunction(e)?e(t.oldIndex,t.newIndex):et.a.ErrorHelper.throw(new rt.a("An onSortComplete callback function must be passed to SortableVideoListComponent"))},lockAxis:"y",lockToContainerEdges:!0,lockOffset:["0%","100%"],helperClass:"bg-white ".concat(ct.a.sortableItem),distance:1,useDragHandle:!0,dragHandleIcon:$.b.Hamburger,dragHandleIconSize:ot.b.XXL})):r.createElement(at.c,Object.assign({},i))}var mt=n(248),pt=n(192),yt=n(57);function bt(){return a.a.createElement(mt.a.Provider,{value:"playlists.playlistEmptyState"},a.a.createElement(pt.a,null,a.a.createElement(pt.a.Image,{src:yt.a.EmptyStates.Playlists.PLAYLIST_VIDEOS}),a.a.createElement(pt.a.Heading,null,a.a.createElement(mt.b,{phrase:"heading"})),a.a.createElement(pt.a.Info,null,a.a.createElement(mt.b,{phrase:"info"}))))}var vt=n(63),ht=n(533),gt=n(534);function wt(t){return function(t){if(Array.isArray(t))return St(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return St(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Et(t){var e=t&&t.length&&t.map((function(t){return t.dateAssociated}));return e&&e.length?c.a.max(e,(function(t){return new Date(t).getTime()})):null}function At(t,e,n){W.a.logUserAction({id:e,playlistId:t},{location:s.LocationContext.VideoList,entity:s.EntityType.Video,actionType:s.UserAction.Move,workflowPhase:n})}var It={notFound:ht.a,forbidden:{privacy:gt.a}};function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return jt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"PlaylistView",(function(){return Ct}));function Ct(t){var e,n,a,v,N,x,F,T=Object(i.useDispatch)(),D=Object(g.a)(),U=o.a.useBasicFetch(u.a.config()),_=o.a.useBasicFetch(d.a.currentUser()),V=o.a.useBasicFetch(t.classificationId&&S.a.path(t.classificationId)),H=Object(k.b)(k.a.VideoItem),R=Object(O.a)(s.LocationContext.VideoThumbnail),Y=Object(E.a)().hasPermissions,W=t.shareId?j.a.getSharedPlaylist(t.playlistId,t.shareId):j.a.getPlaylist(t.playlistId),X=o.a.useBasicFetch(W);Object(w.a)(X,It);var z=function(e){return t.shareId?j.a.getSharedPlaylistVideos(t.playlistId,t.shareId,e):j.a.getPlaylistVideos(t.playlistId,e)},J=o.a.useBasicFetch(!!(null===(e=_.data)||void 0===e?void 0:e.isAuthenticated)&&j.a.getIsFollowingPlaylist(t.playlistId,_.data.id)),q=function(t){o.a.getFetch(T,z(t))()},K=Object(m.a)(z,q),G=K.items,Z=K.hasMore,Q=K.isFetching;Object(C.a)(null!==(n=null==G?void 0:G.filter(I.a.isVideo))&&void 0!==n?n:[],{hasCurriculumLinks:!0});var et,nt,rt,at,it=Ot((et=G,nt=b(Object(r.useState)(),2),rt=nt[0],at=nt[1],Object(r.useEffect)((function(){rt&&(et.length!==rt.length||function(t,e){var n=!0;if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r].id!==e[r].id){n=!1;break}return n}(et,rt))&&at(null)}),[et]),[rt,at]),2),ot=it[0],lt=it[1];Object(f.a)(!!X.data&&X.data.name,[X.data]);var ct,st,ut=!!t.allowEdit&&function(t,e){var n;return!(vt.a.isEmpty(e)||!t||vt.a.isEmpty(t._liteOwner))&&t._liteOwner.id.toString()===(null===(n=e.id)||void 0===n?void 0:n.toString())}(X.data,_.data),dt=ut?(ct=H,st=t.playlistId,function(t){return[].concat(wt(ct(t)),[{label:l.a.getPhrase("playlists.playlist","removeFromPlaylist"),svgName:$.b.Delete,appLink:{application:B.a.PLAYLISTS,action:M.a.Playlists.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.id,st]},className:"text-danger",analyticsOptions:{entity:s.EntityType.Video,actionType:s.UserAction.Dissociate,location:s.LocationContext.VideoListItem,workflowPhase:s.WorkflowPhase.Start,descriptor:s.AssocDescriptor.Playlist},analyticsData:{id:t.id,playlistId:st}}])}):H,mt=!!G&&0===G.length,pt=function(e,n){return L.a.getAppLink(e,{contextId:t.playlistId,context:P.a.Playlist,shareId:t.shareId,playNext:n})},yt=!(null===(a=_.data)||void 0===a?void 0:a.isAuthenticated)||!!J.data;return r.createElement(h.a.Provider,{value:(null===(v=_.data)||void 0===v?void 0:v.isAuthenticated)&&dt},r.createElement("div",{className:"bg-white px-3"},r.createElement(tt,{playlistId:t.playlistId,playlist:X.data,hasVideos:!mt,isFollowing:null===(N=J.data)||void 0===N?void 0:N.isFollowing,follow:function(e,n,r){var a=e?j.a.followPlaylist:j.a.unfollowPlaylist;o.a.fetch(T,a(t.playlistId,_.data.id,n,(function(){r(),D.error(l.a.getPhrase("playlists.playlist",e?"followError":"unfollowError"))})))},application:t.application,canEdit:ut,canSharePlaylists:!Y(A.a.StudentExperience),showBreadcrumbs:t.showBreadcrumbs,showDateMetadata:t.showDateMetadata,playAllAppLink:c.a.first(G)&&pt(c.a.first(G),!0),showPartialLoading:!(X.data&&G&&_.data&&U.data&&yt),lastUpdated:!!G&&Et(G),imageCdnUrl:!!U.data&&U.data.imageCdnUrl,returnAppLink:t.returnAppLink,classificationId:t.classificationId,topicPath:V.data,userIsAuthenticated:null===(x=_.data)||void 0===x?void 0:x.isAuthenticated,canFollow:!Y(A.a.StudentExperience)}),r.createElement("div",{className:"mt-2"},mt?r.createElement(bt,null):r.createElement(ft,{videos:ot||G,playlistId:!!X.data&&X.data.id,onSortStart:function(e){var n=G[e];n&&At(t.playlistId,n.id,s.WorkflowPhase.Start)},onSortComplete:function(e,n){if(e!==n){var r=G[e];if(r){var a=y.a.reorder(G,e,n),i=a.reorderedItems,l=a.reorderRequest;lt(i),At(t.playlistId,r.id,s.WorkflowPhase.Complete);o.a.fetch(T,j.a.reorderVideos(t.playlistId,l,null,(function(){lt(null)})))}}},canEdit:!1,showPartialLoading:!G||!_.data||!U.data,getVideoAppLink:function(t){return pt(t,!1)},getSeriesAppLink:t.getSeriesAppLink,setFavourite:R,showSignIn:!(null===(F=_.data)||void 0===F?void 0:F.isAuthenticated)})),(Z||Q)&&r.createElement(p.a,{isFetching:Q,onClick:q})))}}}]);
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[15],{1054:function(t,e,n){"use strict";var r,a=n(0),i=n(39),o=n(63),l=n(36),c=n(1055),s=n(59),u=function(t){var e=t.breadcrumb,n=e.label,r=e.appLink,i=e.active;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(s.a,{appLink:r},n))},d=function(t){var e=t.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},e.map((function(t,e){return a.createElement(u,{key:e,breadcrumb:t})})))};function f(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e,n){return{label:t.name,appLink:e(t),active:n}}function v(t){var e=function(t,e){var n=t.currentItem,r=t.getItemAppLink,c=t.getParent,s=t.rootItem,u=t.data,d=t.subview,p=m(Object(a.useState)([]),2),y=p[0],v=p[1],h=null==u?void 0:u.map((function(t){return null==t?void 0:t.name})).join("-");a.useEffect((function(){if(!e)if(o.a.isEmpty(u)){if(!s)return;v([s])}else{var t=u.map((function(t,e){return b(t,r,e+1===u.length)}));s&&t.unshift(s),v(t)}}),[h,r]),a.useEffect((function(){if(e&&i.a.isFunction(c)){var t=[b(n,r,!0)];for(n=c(n);n;)t.unshift(b(n,r)),n=c(n);return s&&t.unshift(s),v(t)}}),[n,c,r,s]);var g=a.useRef({label:d,appLink:null,active:!0}).current;if(d){y.includes(g)||v([].concat(f(y),[g]));var w=y.filter((function(t){return t.active&&t!==g}));w.length&&(l.a.first(w).active=!1)}return y}(t,t.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(d,{breadcrumbs:e}))}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return h})),function(t){t[t.Static=0]="Static",t[t.Dynamic=1]="Dynamic"}(r||(r={}));var h=a.memo((function(t){var e=t.numItems,n=void 0===e?3:e;return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},c.a.getPartialLoadingItems({numItems:n}).map((function(t,e){var n=t.width;return a.createElement("li",{key:e,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},1055:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return i}));var i={getPartialLoadingItems:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.numItems,n=void 0===e?5:e,a=t.minWidth,i=void 0===a?50:a,o=t.maxWidth,l=void 0===o?100:o,c=function(){return Math.max(Math.floor(Math.random()*l),i)};return r(Array(n)).map((function(){return{width:"".concat(c(),"px")}}))}}},1056:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),a=n(120),i=n(254),o=n(91),l=n(361),c=n(362),s={notFound:i.a,forbidden:{rating:l.a,yearLevel:l.a,region:c.a,privacy:l.a},badRequest:o.a};function u(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Object.assign(Object.assign({},s),n);if(t){var o=+(null===(e=null==t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));o!==a.b.ClientError&&o!==a.b.ServerError||(t!==a.a.NotFound?t!==a.a.Forbidden?r.a.ErrorHelper.throw(new i.badRequest):r.a.ErrorHelper.throw(new i.forbidden.privacy):r.a.ErrorHelper.throw(new i.notFound))}}},1061:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return f}));var r=n(0),a=n(79),i=n(11),o=n(39),l=n(120);function c(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(t){var e,n,r;return null===(r=null===(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.pagination)||void 0===n?void 0:n.cursors)||void 0===r?void 0:r.next},d={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:l.a.Ok,hasCompleted:!0};function f(t){return Object(a.useSelector)(Object(r.useMemo)((function(){return function(e){if(o.a.isFunction(t)){for(var n=t,r=o.a.isFunction(t)&&i.a.getResponse(e,n()),a=r&&r.isFetching,l=r&&r.statusCode,s=r&&r.hasCompleted,d=r&&r.shouldFetch,f=r&&r.data&&r.data.data,m=u(r);m&&(a=(r=i.a.getResponse(e,n(m))).isFetching,l=r.statusCode,s=r.hasCompleted,!r.shouldFetch);){var p=r.data&&r.data.data;p&&f.push.apply(f,c(p));var y=u(r);m=y===m?null:y}return{shouldInitialFetch:d,items:f,nextCursor:m,isFetching:a,statusCode:l,hasCompleted:s}}}}),[t]))}},1066:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(11),a=n(26),i=n(191),o=n(359),l=n(1070),c=n(219);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(t,e){var n=r.a.useGetResponse(null==e?void 0:e.key),a=r.a.useGetFetch(e);t&&e&&n.shouldFetch&&a()}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},d),e),u=n.ratings,m=n.favourites,p=n.watchHistory,y=n.hasCurriculumLinks,b=r.a.useBasicFetch(a.a.currentUser()),v=t&&(Array.isArray(t)?t.filter(Boolean).map((function(t){return t.id})):t.data.filter(Boolean).map((function(t){return t.id}))),h=b.data;if(null==h?void 0:h.isAuthenticated){var g=[];u&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&i.a.videoRatings(v)])),m&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&c.a.isFavourited(h.id,v)])),p&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&l.a.videoHistory(v)])),y&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&o.a.hasCurriculumLinks(v)])),g.forEach((function(e){return f(!!t,e)}))}}},1070:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(62),a={userVideoHistory:function(t,e,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return t&&(i+=":".concat(t),o+="?cursor=".concat(t)),{key:i,url:o,formatData:function(t){return{data:t.data.map((function(t){var e=r.utc(t.lastTimeWatched).local().format(),n=r(e).format("YYYY-MM-DD");return Object.assign(Object.assign({},t),{lastTimeWatched:e,lastDateWatched:n})})),pagination:t.pagination}},success:e,error:n,always:a}},videoHistory:function(t,e,n,r){var a=t.sort().map((function(t){return"videoId=".concat(t)}));return{key:"video:history:videos:".concat(a.join("&")),url:"{gateway}/v1/videos/history?".concat(a.join("&")),formatData:function(t){return(null==t?void 0:t.length)?t.map((function(t){return{id:t.videoId,lastProgressPoint:t.lastProgressPoint}})):t},success:e,error:n,always:r}}}},1071:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(35),o=n(40),l=n(190),c=n(1075),s=n.n(c);function u(t){return a.a.createElement(a.a.Fragment,null,Array(t.numVideos).fill(null).map((function(e,n){return a.a.createElement(d,Object.assign({key:n},t))})))}function d(t){var e=Object(l.a)(),n=e===o.a.XS,r=e===o.a.SM||e===o.a.MD,c=t.withReordering&&!n;return a.a.createElement(i.Row,{className:"py-2"},a.a.createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a.a.createElement(i.Row,null,!!c&&a.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDragHandle)})),a.a.createElement(i.Col,{xs:c?10:12},a.a.createElement("div",{className:"partial-loading-background rounded ".concat(s.a.partialThumbnail)})))),a.a.createElement(i.Col,{xs:n?12:r?8:9},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialSeriesLink)}),a.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(s.a.partialName)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDescription)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialBadges)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialActions)})))}u.defaultProps={numVideos:15}},1073:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(1056);function i(t,e){Object(r.useEffect)((function(){Object(a.a)(null==t?void 0:t.statusCode,e)}),[null==t?void 0:t.statusCode,e])}},1075:function(t,e,n){t.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},1086:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),a=n(35),i=n(77),o=n(29),l=n(1088),c=n.n(l);function s(t){return r.createElement("div",{className:"p-3 text-center ".concat(c.a.container)},t.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:c.a.spinner}):r.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:function(){return t.onClick(t.nextCursor)}}))}},1087:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(39);function i(t,e,n){var i=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||t())};Object(r.useEffect)((function(){var t=a.a.throttle(i,200);return e&&window.addEventListener("scroll",t),function(){return window.removeEventListener("scroll",t)}}),[e,t])}},1088:function(t,e,n){t.exports={container:"_1_KC6",spinner:"VXlcl"}},1090:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(120),i=n(39),o=n(1061),l=n(1087);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e,n){var s=c(Object(r.useState)(0),2),u=s[0],d=s[1],f=e,m=Object(o.b)(t&&function(e){return t(e).key});return Object(l.a)((function(){if(e&&t&&m)return d((function(t){return t+1})),f(m.nextCursor)}),!!(null==m?void 0:m.nextCursor),null==m?void 0:m.isFetching),Object(r.useEffect)((function(){m&&m.shouldInitialFetch&&e&&(f(),d((function(t){return t+1})))}),[null==m?void 0:m.shouldInitialFetch,e]),Object(r.useEffect)((function(){var t,e;if((null==m?void 0:m.statusCode)&&i.a.isFunction(n)){var r=+(null===(e=null===(t=m.statusCode)||void 0===t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));r!==a.b.ClientError&&r!==a.b.ServerError||n(u,m.statusCode)}}),[null==m?void 0:m.statusCode]),{items:null==m?void 0:m.items,hasMore:!!(null==m?void 0:m.nextCursor),nextCursor:null==m?void 0:m.nextCursor,isFetching:null==m?void 0:m.isFetching}}},1103:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["bg-pink","bg-orange","bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"]},1137:function(t,e,n){"use strict";var r=n(0),a=n(94),i=n.n(a),o=function(t,e){return e?i.a.createPortal(t,e):t},l=n(8),c=n(77),s=n(59),u=n(29);function d(t){var e=Object.assign({textShadow:!0},t),n=e.backToName,a=e.appLink,i=e.color,o=e.extraClasses,d=e.textShadow,f=n?l.a.getPhrase("shared.backButton","backTo",{backToName:n}):l.a.getPhrase("shared.backButton","back"),m="black"===i?"":"text-white",p=d?"text-shadow":"";return r.createElement(s.a,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(m," ").concat(p)},r.createElement(c.a,{svgName:u.b.ChevronLeft,size:c.b.Medium}),r.createElement("span",{className:"ml-1"},f))}d.defaultProps={color:"black",extraClasses:""};var f=n(90),m=n(50),p=n(377),y=n(1058),b=n(311),v=n(78),h=n(365),g=n(190),w=n(40),S=n(1154),E=n.n(S);function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return C}));var O="".concat(p.a[m.c.Banners].width,":").concat(p.a[m.c.Banners].height);var j=r.memo((function(t){var e,n=t.heading,a=t.banner,i=t.imageCdnUrl,l=t.actions,c=t.sortComponent,s=t.blockColourClass,u=r.useContext(b.a),p=A(Object(v.a)(h.a.LAYOUT_CONTAINER_FLUID),1)[0],S=Object(g.a)()===w.a.XXL?1920:1200,I=t.imageOptions||{width:S,ratio:O,resizeType:m.d.Cover},j=!!a&&!!i&&f.a.createBannerUrl(a,{fallbackBaseUrl:i,fallbackCategoryName:n,type:m.c.Banners},I),C={className:"banner banner-header",style:{backgroundImage:"url('".concat(j,"')")}};!a&&s&&(delete C.style,C.className+=" ".concat(s));var k=t.detailsComponent;return o(r.createElement("div",Object.assign({},C),r.createElement("div",{className:"".concat(p?"container-fluid":"container"," position-relative")},t.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(d,{appLink:t.backButtonAppLink,backToName:t.backButtonText,extraClasses:t.backButtonClasses,color:"white"})),r.createElement("div",{className:E.a.bannerContent},r.createElement("h1",{className:"text-white text-shadow clamp-2"},n,k&&r.createElement(k,null)),!!l&&r.createElement("div",{className:E.a.actionsContainer},r.createElement(y.a,{actions:l,sortComponent:c,actionsDropdownClassName:t.actionsDropdownClassName}))),!!(null===(e=t.logo)||void 0===e?void 0:e.url)&&r.createElement("div",{className:E.a.logoContainer},r.createElement("img",{src:f.a.createUrl(t.logo.url,{size:m.b.Small}),className:"rounded-circle"})))),null==u?void 0:u.container)}),(function(t,e){var n,r;return t.actions===e.actions&&t.heading===e.heading&&(null===(n=t.logo)||void 0===n?void 0:n.url)===(null===(r=e.logo)||void 0===r?void 0:r.url)}));function C(){var t=r.useContext(b.a);return o(r.createElement("div",{className:"partial-banner partial-loading-background"}),null==t?void 0:t.container)}},1154:function(t,e,n){t.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF",logoContainer:"_313Pr"}},1156:function(t,e,n){"use strict";function r(t,e){return e[t.name.charCodeAt(0)%e.length]}n.d(e,"a",(function(){return r}))},1751:function(t,e,n){t.exports={partialDescription:"_3cyjk"}},1752:function(t,e,n){t.exports={sortableItem:"_2eiPB"}},1901:function(t,e,n){"use strict";n.r(e);var r=n(0),a=n.n(r),i=n(79),o=n(11),l=n(8),c=n(2),s=n(121),u=n(26),d=n(252),f=n(1090),m=n(1086),p=n(550);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var v=n(1096),h=n(249),g=n(1073),w=n(359),S=n(95),E=n(65),A=n(42),I=n(358),O=n(376),j=n(1066),C=n(1085),k=n(366),L=n(260),P=n(56),N=n(96),x=n(40),F=n(1137),T=n(1156),D=n(1054),U=n(1103),_=n(7),M=n(5),B=n(130),V=n(1751),H=n.n(V);function R(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(F.b,null),a.a.createElement("div",{className:"mb-2"},a.a.createElement("div",{className:"partial-loading-background my-2 border-bottom ".concat(H.a.partialDescription)})))}var Y=n(29),$=n(30),W=l.a.encloseNamespace("playlists.playlistHeader"),X=function(t,e){var n,r=e.isAuthenticated,a=e.isPlugin,i=e.isMobile,o=e.setIsFollowing,l=e.isFollowing,s=e.setShowFollowSpinner,u=e.showFollowSpinner,d=t.playlist,f={location:c.LocationContext.Banner,entity:c.EntityType.Playlist,workflowPhase:c.WorkflowPhase.Start},m=[];return r?(a||(t.playAllAppLink&&m.push({label:W("playAll"),appLink:t.playAllAppLink,svgName:Y.b.Play,className:i?"":"btn btn-outline-dark mr-2",button:!i,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:c.UserAction.Play})}),t.canSharePlaylists&&m.push({label:W("share"),appLink:{application:M.a.DEFAULT,action:_.a.Default.SHARE,args:[t.playlist.id],params:{entityType:"playlist"}},svgName:Y.b.Share2,className:i?"":"btn btn-outline-dark mr-2",button:!i,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:c.UserAction.Share,eventVersion:c.EventVersion.V2})})),t.canFollow&&!t.canEdit&&m.push({label:W(l?"unfollow":"follow"),onClick:function(){o(!l),s(!0),t.follow(!l,(function(){s(!1),$.a.logUserAction(d,Object.assign(Object.assign({},f),{actionType:c.UserAction.Follow,descriptor:l?c.ToggleDescriptor.Off:c.ToggleDescriptor.On,workflowPhase:c.WorkflowPhase.Complete}))}),(function(){s(!1),o(l)}))},svgName:l?Y.b.Check:Y.b.Bell,className:i?"":"btn follow-btn btn-".concat(l?"outline-dark":"dark"," mr-2"),button:!i,showSpinner:u}),t.canEdit&&(m.push({label:W("edit"),appLink:{application:M.a.PLAYLISTS,action:_.a.Playlists.EDIT_PLAYLIST,args:[t.playlist.id]},svgName:Y.b.Edit,button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:c.UserAction.Edit})}),m.push({label:W("delete"),appLink:{application:M.a.PLAYLISTS,action:_.a.Playlists.DELETE_PLAYLIST,args:[t.playlist.id]},svgName:Y.b.Delete,className:"text-danger",button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:c.UserAction.Delete})})),(null===(n=t.playlist._isClickViewPlaylist)||void 0===n?void 0:n.value)&&m.push({label:W("copy"),appLink:{application:M.a.PLAYLISTS,action:_.a.Playlists.COPY_PLAYLIST,args:[t.playlist.id]},button:!1,analyticsData:d,analyticsOptions:Object.assign(Object.assign({},f),{actionType:c.UserAction.Copy})}),m):m};function z(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||q(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||q(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var G=l.a.encloseNamespace("playlists.playlistHeader"),Z=function(t){return{application:M.a.SUBJECT,action:_.a.Subjects.CLASSIFICATION,args:[t.id,P.a.slugify(t.name)]}};function Q(t){var e=t.userIsAuthenticated,n=Object(B.b)().isPlugin,a=J(r.useState(t.isFollowing),2),i=a[0],o=a[1],l=J(r.useState(!1),2),c=l[0],s=l[1];r.useEffect((function(){return o(t.isFollowing)}),[t.isFollowing]);var u=Object(N.a)(x.a.XS);if(t.showPartialLoading)return r.createElement(R,null);var d=t.playlist.description,f=X(t,{isAuthenticated:e,isPlugin:n,isMobile:u,setIsFollowing:o,isFollowing:i,setShowFollowSpinner:s,showFollowSpinner:c});return r.createElement(r.Fragment,null,r.createElement(F.a,{heading:t.playlist.name,banner:t.playlist.banner,imageCdnUrl:t.imageCdnUrl,actions:f.length&&f,actionsDropdownClassName:"btn btn-outline-dark",blockColourClass:Object(T.a)(t.playlist,U.a)}),(!!d||!!t.classificationId)&&r.createElement("div",{className:"border-bottom py-3"},t.classificationId?t.playlist&&t.topicPath?r.createElement("div",{className:"pb-2"},r.createElement(D.b,{currentItem:t.playlist,type:D.a.Static,getItemAppLink:Z,data:[].concat(z(t.topicPath),[t.playlist]),rootItem:{label:G("exploreAllTopics"),appLink:{application:M.a.SUBJECT,action:_.a.Subjects.CLASSIFICATION_ALL}}})):r.createElement(D.c,null):r.createElement(r.Fragment,null),!!d&&r.createElement("p",{className:"mb-0"},d)))}var tt=n(3),et=n(39),nt=n(25),rt=n(1100),at=n(1071),it=n(77),ot=n(1752),lt=n.n(ot);function ct(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ut=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n};function dt(t){var e=t.onSortComplete,n=t.onSortStart,a=t.showPartialLoading,i=ut(t,["onSortComplete","onSortStart","showPartialLoading"]),o=ct(r.useState(),2),l=o[0],c=o[1],s=function(t){et.a.isFunction(n)&&n(t)};return a?r.createElement(at.a,{withReordering:t.canEdit}):t.canEdit?r.createElement(rt.b,Object.assign({},i,{currentSortingIndex:l,updateBeforeSortStart:function(t){var e=t.index;return c(e)},onSortStart:function(t){var e=t.index;return s(e)},onSortEnd:function(t){c(null),et.a.isFunction(e)?e(t.oldIndex,t.newIndex):tt.a.ErrorHelper.throw(new nt.a("An onSortComplete callback function must be passed to SortableVideoListComponent"))},lockAxis:"y",lockToContainerEdges:!0,lockOffset:["0%","100%"],helperClass:"bg-white ".concat(lt.a.sortableItem),distance:1,useDragHandle:!0,dragHandleIcon:Y.b.Hamburger,dragHandleIconSize:it.b.XXL})):r.createElement(rt.c,Object.assign({},i))}var ft=n(248),mt=n(192),pt=n(57);function yt(){return a.a.createElement(ft.a.Provider,{value:"playlists.playlistEmptyState"},a.a.createElement(mt.a,null,a.a.createElement(mt.a.Image,{src:pt.a.EmptyStates.Playlists.PLAYLIST_VIDEOS}),a.a.createElement(mt.a.Heading,null,a.a.createElement(ft.b,{phrase:"heading"})),a.a.createElement(mt.a.Info,null,a.a.createElement(ft.b,{phrase:"info"}))))}var bt=n(36),vt=n(63),ht=n(533),gt=n(534);function wt(t){return function(t){if(Array.isArray(t))return St(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return St(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Et(t){var e=t&&t.length&&t.map((function(t){return t.dateAssociated}));return e&&e.length?bt.a.max(e,(function(t){return new Date(t).getTime()})):null}function At(t,e,n){$.a.logUserAction({id:e,playlistId:t},{location:c.LocationContext.VideoList,entity:c.EntityType.Video,actionType:c.UserAction.Move,workflowPhase:n})}var It={notFound:ht.a,forbidden:{privacy:gt.a}};function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=t[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return jt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jt(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"PlaylistView",(function(){return Ct}));function Ct(t){var e,n,a,b,P,N,x,F=Object(i.useDispatch)(),T=Object(h.a)(),D=o.a.useBasicFetch(s.a.config()),U=o.a.useBasicFetch(u.a.currentUser()),B=o.a.useBasicFetch(t.classificationId&&w.a.path(t.classificationId)),V=Object(C.b)(C.a.VideoItem),H=Object(I.a)(c.LocationContext.VideoThumbnail),R=Object(S.a)().hasPermissions,$=t.shareId?O.a.getSharedPlaylist(t.playlistId,t.shareId):O.a.getPlaylist(t.playlistId),W=o.a.useBasicFetch($);Object(g.a)(W,It);var X=function(e){return t.shareId?O.a.getSharedPlaylistVideos(t.playlistId,t.shareId,e):O.a.getPlaylistVideos(t.playlistId,e)},z=o.a.useBasicFetch(!!(null===(e=U.data)||void 0===e?void 0:e.isAuthenticated)&&O.a.getIsFollowingPlaylist(t.playlistId,U.data.id)),J=function(t){o.a.getFetch(F,X(t))()},q=Object(f.a)(X,J),K=q.items,G=q.hasMore,Z=q.isFetching;Object(j.a)(null!==(n=null==K?void 0:K.filter(A.a.isVideo))&&void 0!==n?n:[],{hasCurriculumLinks:!0});var tt,et,nt,rt,at=Ot((tt=K,et=y(Object(r.useState)(),2),nt=et[0],rt=et[1],Object(r.useEffect)((function(){nt&&(tt.length!==nt.length||function(t,e){var n=!0;if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r].id!==e[r].id){n=!1;break}return n}(tt,nt))&&rt(null)}),[tt]),[nt,rt]),2),it=at[0],ot=at[1];Object(d.a)(!!W.data&&W.data.name,[W.data]);var lt,ct,st=!!t.allowEdit&&function(t,e){var n;return!(vt.a.isEmpty(e)||!t||vt.a.isEmpty(t._liteOwner))&&t._liteOwner.id.toString()===(null===(n=e.id)||void 0===n?void 0:n.toString())}(W.data,U.data),ut=st?(lt=V,ct=t.playlistId,function(t){return[].concat(wt(lt(t)),[{label:l.a.getPhrase("playlists.playlist","removeFromPlaylist"),svgName:Y.b.Delete,appLink:{application:M.a.PLAYLISTS,action:_.a.Playlists.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.id,ct]},className:"text-danger",analyticsOptions:{entity:c.EntityType.Video,actionType:c.UserAction.Dissociate,location:c.LocationContext.VideoListItem,workflowPhase:c.WorkflowPhase.Start,descriptor:c.AssocDescriptor.Playlist},analyticsData:{id:t.id,playlistId:ct}}])}):V,ft=!!K&&0===K.length,mt=function(e,n){return k.a.getAppLink(e,{contextId:t.playlistId,context:L.a.Playlist,shareId:t.shareId,playNext:n})},pt=!(null===(a=U.data)||void 0===a?void 0:a.isAuthenticated)||!!z.data,bt=null==K?void 0:K.find((function(t){var e;return null===(e=A.a.getCanBeConsumed(t))||void 0===e?void 0:e.value}));return r.createElement(v.a.Provider,{value:(null===(b=U.data)||void 0===b?void 0:b.isAuthenticated)&&ut},r.createElement("div",{className:"bg-white px-3"},r.createElement(Q,{playlistId:t.playlistId,playlist:W.data,hasVideos:!ft,isFollowing:null===(P=z.data)||void 0===P?void 0:P.isFollowing,follow:function(e,n,r){var a=e?O.a.followPlaylist:O.a.unfollowPlaylist;o.a.fetch(F,a(t.playlistId,U.data.id,n,(function(){r(),T.error(l.a.getPhrase("playlists.playlist",e?"followError":"unfollowError"))})))},application:t.application,canEdit:st,canSharePlaylists:!R(E.a.StudentExperience),showBreadcrumbs:t.showBreadcrumbs,showDateMetadata:t.showDateMetadata,playAllAppLink:bt&&mt(bt,!0),showPartialLoading:!(W.data&&K&&U.data&&D.data&&pt),lastUpdated:!!K&&Et(K),imageCdnUrl:!!D.data&&D.data.imageCdnUrl,returnAppLink:t.returnAppLink,classificationId:t.classificationId,topicPath:B.data,userIsAuthenticated:null===(N=U.data)||void 0===N?void 0:N.isAuthenticated,canFollow:!R(E.a.StudentExperience)}),r.createElement("div",{className:"mt-2"},ft?r.createElement(yt,null):r.createElement(dt,{videos:it||K,playlistId:!!W.data&&W.data.id,onSortStart:function(e){var n=K[e];n&&At(t.playlistId,n.id,c.WorkflowPhase.Start)},onSortComplete:function(e,n){if(e!==n){var r=K[e];if(r){var a=p.a.reorder(K,e,n),i=a.reorderedItems,l=a.reorderRequest;ot(i),At(t.playlistId,r.id,c.WorkflowPhase.Complete);o.a.fetch(F,O.a.reorderVideos(t.playlistId,l,null,(function(){ot(null)})))}}},canEdit:!1,showPartialLoading:!K||!U.data||!D.data,getVideoAppLink:function(t){return mt(t,!1)},getSeriesAppLink:t.getSeriesAppLink,setFavourite:H,showSignIn:!(null===(x=U.data)||void 0===x?void 0:x.isAuthenticated)})),(G||Z)&&r.createElement(m.a,{isFetching:Z,onClick:J})))}}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[21],{1072:function(e,n,t){"use strict";var a=t(36),i=t(63),r=/\d/,o=function(e){var n=e.map((function(e){return e.name})).join(" "),t=n.split(" ").filter((function(e){return!isNaN(+e)})).map((function(e){return+e}))||[],a=n.split(" ").filter((function(e){return isNaN(+e)}))||[],i=e.find((function(e){return!r.test(e.name)})),o=a.find((function(e){return e!==(null==i?void 0:i.name)}));if(e.length>1&&(o+="s"),i&&t.length)return"".concat(o," ").concat(i.name.charAt(0)," - ").concat(t.pop());var c=function(e){var n,t,a,i,r=!1,o=[];for(e=e.sort((function(e,n){return e-n})),a=0;a<e.length;a++)i=a+1,r||(n=e[a]),t=e[i],e[a]+1===t?r=!0:r?(o.push("".concat(n," - ").concat(e[a])),r=!1):(o.push("".concat(e[a])),r=!1);return o}(t);return"".concat(o," ").concat(c.join(", "))},c=function(e){var n=e.map((function(e){return e.name})),t={};n.forEach((function(e,n){if(0!==n){var a=e.split(" ");Object.keys(t).forEach((function(e){a.includes(e)||delete t[e]}))}else{e.split(" ").forEach((function(e,n){t[e]=0===n?"start":"end"}))}}));var a=Object.keys(t)[0],i=t[a];if(!a)return e[0].name;var r=e[0].name,o=e[e.length-1].name,c=function(e){return e.split(a)[0]},s="".concat(c(r)," - ").concat(c(o));return"start"===i?"".concat(a," ").concat(s):"".concat(s," ").concat(a)},s=function(e){var n=a.a.first(e),t=a.a.last(e),i=n.name.split(" ").find((function(e){return!isNaN(+e)})),r=t.name.split(" ").find((function(e){return!isNaN(+e)})),o="KS".concat(i),c="KS".concat(r),s=a.a.first(n.name.split(" ")),u=a.a.first(t.name.split(" "));return"key"!==s.toLowerCase()&&(o=i?"".concat(s," ").concat(o):n.name),"key"!==u.toLowerCase()&&(c="".concat(u," ").concat(c)),"".concat(o," - ").concat(c)};var u=t(111),l={DEFAULT:1,AU_PRIMARY_OLD:8,AU_SECONDARY:9,SCOTLAND_PRIMARY:12,US_ELEMENTARY:13,US_MIDDLE:14,US_HIGH:15,ENGLAND_PRIMARY:u.a.isDevelopment?19:16,AU_PRIMARY:18,INTERNATIONAL_PRIMARY:u.a.isDevelopment?20:19};t.d(n,"a",(function(){return m}));var d=/([0-9]+)/gi,p=/\s|\+/gi,m={getSortedPresentationAudiences:function(e,n){var t=e.map((function(e){return e.id.toString()}));return n.filter((function(e){return t.includes(e.masterId.toString())}))},getMergedPresentationAudienceString:function(e){if(1===e.length)return e[0];var n="";switch(+a.a.first(e).presentationId){case l.DEFAULT:case l.AU_PRIMARY_OLD:case l.AU_SECONDARY:case l.US_ELEMENTARY:case l.AU_PRIMARY:n=o(e);break;case l.SCOTLAND_PRIMARY:case l.INTERNATIONAL_PRIMARY:n=c(e);break;case l.ENGLAND_PRIMARY:n=s(e);break;case l.US_MIDDLE:case l.US_HIGH:}return n?{name:n}:null},sortMembersWithDuplicateNamesByAudience:function(e){var n=function(e){return e.length?(e.forEach((function(e){var i=+a.a.first(e.name.match(d));if(!n)return n=e,void(t=i);i<t&&(n=e)})),n):null;var n,t},t={},i=[];return e.forEach((function(e){if(!t[e.name])return t[e.name]=1,void i.push(e);i.push(e),t[e.name]++;var a=i.splice(i.length-t[e.name]).sort((function(e,t){var a=n(e.subjectPresentationAudiences.data),i=n(t.subjectPresentationAudiences.data);if(!a&&i)return 1;if(!i)return-1;var r=a.name.localeCompare(i.name);return 0===r?r:r>0?-1:1}));i=i.concat(a)})),i},getActiveAudiencesFromParams:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i.a.isObject(n)&&!i.a.isEmpty(n)&&e&&e.length){var t=n.a;if(t){"string"==typeof t&&(t=[t]);var a=function(e){return e.replace(p,"").toLowerCase()},r=t.reduce((function(e,n){return e[a(n)]=n,e}),{});return e.filter((function(e){return r[a(e.name)]})).reduce((function(e,n){return e[n.masterId]=n,e}),{})}}},getAudienceParams:function(e){if(!e||!i.a.isObject(e)||i.a.isEmpty(e))return null;var n=Object.keys(e);return n.length?{a:n.map((function(n){return e[n].name}))}:null},shouldShowAudiences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!e&&e.length>1}}},1252:function(e,n,t){"use strict";t.d(n,"a",(function(){return p}));var a=t(0),i=t(250),r=t(1077),o=t(1084),c=t(259),s=t(1253),u=t.n(s);function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],a=!0,i=!1,r=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(t.push(o.value),!n||t.length!==n);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw r}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return d(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,n)}(e,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.")}()}function d(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var p=a.memo((function(e){var n=e.data,t=e.seriesAppLink,s=e.context,d=e.thumbnailSize,p=e.preloadImage,m=l(Object(c.b)({className:u.a.hovering,style:{transform:"scale(".concat((null==s?void 0:s.type)===i.WidgetType.LargeRow?1.1:1.15,")")}}),2),f=m[0],v=m[1];a.useEffect((function(){e.onHover(v)}),[v]);var g=u.a.rowWidth;return s.type!==i.WidgetType.LargeRow&&3!==s.collectionSize||(g=u.a.largeRowWidth),a.createElement("div",{ref:f,className:"p-1 flex-shrink-0 position-relative ".concat(g," ").concat(u.a.transition)},a.createElement(o.a,{video:n,type:"expandable",appLink:e.getAppLink(n),seriesAppLink:t,textPosition:r.a.Overlay,imageOptions:{size:d},preload:p,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideFavouriteButton:e.hideFavouriteButton,setFavourite:e.setFavourite,hovering:v}))}),(function(e,n){var t,a,i,r,o,c;return e.preloadImage===n.preloadImage&&(null===(t=e.data)||void 0===t?void 0:t.name)===(null===(a=n.data)||void 0===a?void 0:a.name)&&(null===(r=null===(i=e.data)||void 0===i?void 0:i.series)||void 0===r?void 0:r.id)===(null===(c=null===(o=n.data)||void 0===o?void 0:o.series)||void 0===c?void 0:c.id)}))},1253:function(e,n,t){e.exports={rowWidth:"_8IgrO",largeRowWidth:"q46rm",hovering:"IeeJA",transition:"_1s6UK"}},1324:function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var a=t(27),i=t(19),r={getContentUpdates:function(e,n,t){return{url:a.a.urlBuilder("/api/domain/v1/subjects/content-updates",{from:e,to:n,limit:6,query:i.a.OnlineVideoCollection(t,!!t,{canBeConsumed:!0})}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){var n=[];return e.forEach((function(e){return n.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(n.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,n,t,r){return{url:a.a.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:r,query:i.a.OnlineVideoCollection(n,!0,{videoProgress:!0})}),key:"classification:update:".concat(e,":").concat(t,":").concat(r)}},getContentUpdateVideos:function(e,n,t){return{url:a.a.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:n,query:i.a.OnlineVideoCollection(t,!0,{videoProgress:!0,canBeConsumed:!0})}),key:"content:update:videos:".concat(e,":").concat(n)}},videos:function(e,n){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=").concat(i.a.OnlineVideoCollection()),key:"videos:by:id:".concat(e.join(",")),success:n}}}},1329:function(e,n,t){"use strict";t.d(n,"a",(function(){return a}));var a={NEW_RELEASE_BANNER_URL:"https://img.clickviewapp.com/v2/banners/3kzeZ2?size=large",KIDS_MOVIES_BANNER_URL:"https://img.clickviewapp.com/v2/banners/yKLmrz?size=large",EXPLORE_ALL_TOPICS_BANNER_URL:"https://img.clickviewapp.com/v2/banners/dlM73E",EXPLORE_ALL_TOPICS_TALL_POSTER_URL:"https://img.clickviewapp.com/v2/tallposters/raRm7E?size=medium"}},1384:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var a=t(27),i=t(239),r=function(e,n){return"widget:".concat(e,":").concat(n)},o=function(e,n,t,i){return a.a.urlBuilder("/api/domain/v2/dashboards/widgets",{libraryType:e,customerType:n,userRole:t,countryCode:i})},c=function(e){return"{gateway}/v1/objects/".concat(e,"?query=videos[").concat(i.a.WIDGET_VIDEO_COLLECTION,"]{orderBy:orderindex}")},s={widgets:function(e,n,t,a){return{url:o(e,n,t,a),key:"widgets:".concat(e,":").concat(n,":").concat(a)}},playlist:function(e,n){return{url:c(e),key:r(e,n)}}}},1499:function(e,n,t){e.exports={slidingSubject:"_16BT9",heading:"_1ZUkE",thumbnailContainer:"_1uhoK",partialLoadingHeading:"_1-m4K",partialLoading:"_3fvkd",labelContainer:"_3T7RZ"}},1500:function(e,n,t){e.exports={banner:"_2KeVs",bannerContent:"DFKqU"}},1725:function(e,n,t){e.exports={banner:"_2aVrF"}},1976:function(e,n,t){"use strict";t.r(n);var a,i=t(4),r=t(0),o=t.n(r),c=t(62),s=t(11),u=t(78),l=t(8),d=t(252),p=t(38),m=t(250);!function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(a||(a={}));var f=t(1106),v=t(26),g=t(293),b=t(37),h=t(1078),y=t(1252),E=t(359),A=t(237);var L=r.memo((function(e){var n=e.user,t=l.a.encloseNamespace("shared.greeting"),a=n&&function(e){var n=e.displayName,t=e.givenName,a=e.familyName;return n!=="".concat(t," ").concat(a)}(n)?n.displayName:n.givenName;return r.createElement("h1",{className:"h2 mb-0"},r.createElement("strong",null,function(e){switch(A.a.currentTimeOfDay()){case"morning":return e("morning");case"afternoon":return e("afternoon");case"evening":return e("evening");default:return e("fallback")}}(t)," ",a?" ".concat(a):"",","))}),(function(e,n){var t,a;return(null===(t=e.user)||void 0===t?void 0:t.id)===(null===(a=n.user)||void 0===a?void 0:a.id)})),N=t(370),S=t(1105),O=t(50),C=t(1499),_=t.n(C);function T(e){var n=e.data,t=e.preloadImage;return r.createElement("div",{className:"".concat(_.a.slidingSubject," ").concat(_.a.thumbnailContainer)},r.createElement(N.a,{data:n.tallPoster,appLink:e.getAppLink(n),imageType:O.c.TallPosters,preload:t,imageOptions:{size:O.b.Medium},imageClassName:"rounded"},r.createElement(S.a,{type:S.b.TallSubject}),r.createElement("h3",{className:"h5 px-2 ".concat(_.a.heading)},n.name)))}var I=t(190),j=t(40);var R=function(){return o.a.createElement("div",{className:"".concat(_.a.slidingSubject," px-1")},o.a.createElement("div",{className:"".concat(_.a.partialLoading," partial-loading-background rounded")}))};function k(){for(var e,n=(e=Object(I.a)())===j.a.XS?2:e===j.a.SM?3:e===j.a.MD?4:e===j.a.LG?5:6,t=[],a=0;a<n;a++)t.push(o.a.createElement(R,{key:a}));return o.a.createElement("div",{className:"pb-3"},o.a.createElement("div",{className:"".concat(_.a.partialLoadingHeading," mx-1 mb-1 partial-loading-background")}),o.a.createElement("div",{className:"row no-gutters"},t))}var w=t(90),D=t(59),U=t(1500),P=t.n(U);function x(e){var n,t,a,i=e.heading,o=e.banner,c=e.imageCdnUrl,s=e.appLink,u=w.a.createBannerUrl(o,{fallbackBaseUrl:c,fallbackCategoryName:i,type:O.c.Banners},{size:O.b.Large}),l=(n=Object(I.a)(),t=n===j.a.XS||n===j.a.SM,a=n===j.a.MD,t?"h4":a?"h3":"h2");return r.createElement(D.a,{appLink:s},r.createElement("div",{className:"banner rounded position-relative ".concat(P.a.banner),style:{backgroundImage:"url('".concat(u,"')")}},i&&r.createElement("div",{className:"".concat(P.a.bannerContent)},r.createElement("h2",{className:"".concat(l," text-white clamp-2")},i))))}function M(){return o.a.createElement("div",{className:"banner rounded position-relative ".concat(P.a.banner)},o.a.createElement("div",{className:"".concat(P.a.bannerContent)}))}var B=t(258),F=t(365),z=t(1072),Y=t(1324),H=t(95),V=t(65),W=t(248),K=t(2),q=t(358),G=t(7),J=t(5),X=t(1384),Z=t(1725),$=t.n(Z),Q=t(1329),ee={application:J.a.CONTENT_UPDATES,action:G.a.ContentUpdates.CONTENT_UPDATES};function ne(){return o.a.createElement(D.a,{appLink:ee,style:{backgroundImage:"url(".concat(Q.a.NEW_RELEASE_BANNER_URL,")")},className:"".concat($.a.banner," banner d-flex justify-content-between no-decoration")},o.a.createElement("h2",{className:"h4 text-white mb-0"},o.a.createElement(W.b,{namespace:"dashboard.dashboardContentUpdatesHeading",phrase:"latestReleases"})))}var te=function(e,n){return e&&n?n.find((function(n){return e===n.presentationId})):null},ae=t(121),ie=t(56);function re(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],a=!0,i=!1,r=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(t.push(o.value),!n||t.length!==n);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw r}}return t}(e,n)||ce(e,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.")}()}function oe(e){return function(e){if(Array.isArray(e))return se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ce(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 ce(e,n){if(e){if("string"==typeof e)return se(e,n);var t=Object.prototype.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)?se(e,n):void 0}}function se(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}t.d(n,"DashboardView",(function(){return ve}));var ue=l.a.encloseNamespace("dashboard.dashboard"),le={video:{application:J.a.DEFAULT,action:G.a.Default.PLAY_VIDEO},collection:{application:J.a.DASHBOARD,action:G.a.Dashboard.DASHBOARD},series:{application:J.a.DEFAULT,action:G.a.Default.SERIES},classification:{application:J.a.SUBJECT,action:G.a.Subjects.CLASSIFICATION},contentUpdates:{application:J.a.CONTENT_UPDATES,action:G.a.ContentUpdates.CONTENT_UPDATES},allClassifications:{application:J.a.SUBJECT,action:G.a.Subjects.CLASSIFICATION_ALL}};function de(e){var n,t={id:"explore-all-topics",name:ue("exploreAllTopicsHeading"),tallPoster:{url:Q.a.EXPLORE_ALL_TOPICS_TALL_POSTER_URL}},a=null,i=s.a.useBasicFetch(e&&E.a.classifications(),{optimize:!0});return(null===(n=i.data)||void 0===n?void 0:n.length)&&(a=[t].concat(oe(i.data))),Object.assign(Object.assign({},i),{data:a})}function pe(e){var n=Object(g.a)(b.b.AppOptions).onlineCustomerType,t=(0,Object(H.a)().hasPermissions)(V.a.StudentExperience)?B.a.Student:B.a.Staff,i=(null==e?void 0:e.countryCode)&&X.a.widgets(a.HostedLibrary,n,t,null==e?void 0:e.countryCode);return s.a.useBasicFetch(i,{optimize:!0}).data}function me(e,n,t){return s.a.useBasicFetch(t?X.a.playlist(e,null==n?void 0:n.id):null,{optimize:!0})}function fe(e,n){var t=c().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),a=c().endOf("day").format("YYYY-MM-DD");return s.a.useBasicFetch(n?Y.a.getContentUpdateVideos(t,a,e):null,{optimize:!0})}function ve(){var e,n,t,a,o,c,l,g,b=Object(q.a)(K.LocationContext.ExpandableVideoThumbnail),A=s.a.useBasicFetch(v.a.currentUser(),{optimize:!0}),N=pe(A.data),S=function(e){var n,t,a=s.a.useBasicFetch(E.a.presentation(),{optimize:!0}),i=s.a.useBasicFetch(ae.a.config(),{optimize:!0}),r=te(null===(n=a.data)||void 0===n?void 0:n.id,null===(t=i.data)||void 0===t?void 0:t.featuredTopics);return s.a.useBasicFetch((null==r?void 0:r.id)&&E.a.classification(r.id,null==e?void 0:e.id),{optimize:!0})}(A.data),O=Object(H.a)().hasPermissions;Object(d.a)(ue("pageTitle"));var C=re(Object(u.a)(F.a.AUDIENCE_FILTER,void 0,{storage:p.c.SessionStorage}),1)[0];return r.createElement("div",{className:"bg-white px-3"},r.createElement("div",{className:"py-3 pl-1"},O(V.a.StudentExperience)?r.createElement("h1",{className:"h2 mb-0"},r.createElement(W.b,{namespace:"dashboard.dashboard",phrase:"heading"})):r.createElement(L,{user:A.data})),r.createElement(h.a,{name:O(V.a.StudentExperience)?ue("topicsHeadingLearner"):ue("topicsHeadingStaff"),type:m.WidgetType.Row,contents:f.a.Subjects,fetch:de,appLink:le.allClassifications,childComponent:T,partialComponent:k,getChildAppLink:function(e){return"explore-all-topics"===e.id?le.allClassifications:Object.assign(Object.assign({},le.classification),{args:[e.id,ie.a.slugify(e.name)],params:z.a.getAudienceParams(C)})},lazyLoad:!0}),!!S.data&&r.createElement("div",{className:"pb-3 px-1"},r.createElement(x,{appLink:Object.assign(Object.assign({},le.classification),{args:[null===(e=S.data)||void 0===e?void 0:e.id,null===(n=S.data)||void 0===n?void 0:n.slug]}),banner:{id:null===(a=null===(t=S.data)||void 0===t?void 0:t.banner)||void 0===a?void 0:a.id,url:null===(c=null===(o=S.data)||void 0===o?void 0:o.banner)||void 0===c?void 0:c.url},heading:null===(l=S.data)||void 0===l?void 0:l.name,imageCdnUrl:""})),S.isFetching&&r.createElement(M,null),!O(V.a.StudentExperience)&&r.createElement(r.Fragment,null,r.createElement("div",{className:"px-1"},r.createElement(ne,null)),r.createElement(h.a,{type:m.WidgetType.Row,contents:f.a.Videos,fetch:i.partial(fe,null===(g=A.data)||void 0===g?void 0:g.id),appLink:le.contentUpdates,getChildAppLink:function(e){return Object.assign(Object.assign({},le.video),{args:[e.id,ie.a.slugify(e.name)]})},paddingTopSize:"2",childComponent:function(e){return r.createElement(y.a,Object.assign({},e,{seriesAppLink:le.series,setFavourite:function(e,n,t){b(e,n,null,t)}}))},lazyLoad:!0,limitTotalItems:!0,hideName:!0})),N&&N.map((function(e,n){return r.createElement(h.a,{key:n,type:e.type,contents:f.a.Videos,fetch:i.partial(me,e.collectionId.toString(),A.data),setData:function(e){var n;return null===(n=null==e?void 0:e.videos)||void 0===n?void 0:n.data},lazyLoad:!0,childComponent:function(e){return r.createElement(y.a,Object.assign({},e,{seriesAppLink:le.series,setFavourite:b}))},appLink:le.collection,getChildAppLink:function(e){return Object.assign(Object.assign({},le.video),{args:[e.id,ie.a.slugify(e.name)]})},minimumItemCount:3,limitTotalItems:!0})})))}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[23],{1054:function(e,t,n){"use strict";var r,a=n(0),i=n(39),o=n(63),c=n(36),u=n(1055),s=n(59),l=function(e){var t=e.breadcrumb,n=t.label,r=t.appLink,i=t.active;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(s.a,{appLink:r},n))},f=function(e){var t=e.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(l,{key:t,breadcrumb:e})})))};function m(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||p(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 p(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n){return{label:e.name,appLink:t(e),active:n}}function v(e){var t=function(e,t){var n=e.currentItem,r=e.getItemAppLink,u=e.getParent,s=e.rootItem,l=e.data,f=e.subview,p=d(Object(a.useState)([]),2),b=p[0],v=p[1],h=null==l?void 0:l.map((function(e){return null==e?void 0:e.name})).join("-");a.useEffect((function(){if(!t)if(o.a.isEmpty(l)){if(!s)return;v([s])}else{var e=l.map((function(e,t){return y(e,r,t+1===l.length)}));s&&e.unshift(s),v(e)}}),[h,r]),a.useEffect((function(){if(t&&i.a.isFunction(u)){var e=[y(n,r,!0)];for(n=u(n);n;)e.unshift(y(n,r)),n=u(n);return s&&e.unshift(s),v(e)}}),[n,u,r,s]);var g=a.useRef({label:f,appLink:null,active:!0}).current;if(f){b.includes(g)||v([].concat(m(b),[g]));var w=b.filter((function(e){return e.active&&e!==g}));w.length&&(c.a.first(w).active=!1)}return b}(e,e.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(f,{breadcrumbs:t}))}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return h})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(r||(r={}));var h=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},u.a.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},1055:function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return i}));var i={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?5:t,a=e.minWidth,i=void 0===a?50:a,o=e.maxWidth,c=void 0===o?100:o,u=function(){return Math.max(Math.floor(Math.random()*c),i)};return r(Array(n)).map((function(){return{width:"".concat(u(),"px")}}))}}},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(27),a=n(16);function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=n(19).b.CLASSIFICATION,u=function(){return"/api/domain/v1/subjects/preferences?query=".concat(c,"&type=subject")},s=function(){return"/api/domain/v1/subjects/classifications/following?query=".concat(c)},l=function(){return"/api/domain/v1/subjects/classifications/following"},f=function(e){return r.a.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},m=function(){return"/api/domain/v1/subjects/audiences?type=subject"},d=function(){return"/api/domain/v1/subjects/audiences/following"},p=function(){return"/api/domain/v1/subjects/audiences/following"},b=function(e){return r.a.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:e})},y=function(e){return"/api/domain/v1/subjects/presentations".concat(e?"?type=".concat(e):"")},v=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},h=function(e){return"/api/domain/v1/subjects/presentations/".concat(e)},g={currentPresentations:function(e){return{url:y(e),key:"current:presentations".concat(e?":".concat(e):""),normalizeOptions:{namespace:"presentation"}}},availablePresentations:function(e){return{url:v(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,n,r){return{url:h(e.id),key:"set:".concat(t,":presentation"),type:a.a.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentations:".concat(t),"current:presentations","subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences"],success:n,error:r}},allSubjectPreferences:function(){return{url:u(),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:s(),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,n,r){return{url:l(),key:"follow:subjects",data:e,type:a.a.POST,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollowSubjects:function(e,t,n,r){return{url:f(e),key:"unfollow:subjects",type:a.a.DELETE,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},allLevelPreferences:function(){return{url:m(),key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:d(),key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,n,r){return{url:p(),key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,r=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){r.find((function(t){return t.masterId===e.masterId}))||r.push(e)})),{"my:level:preferences":r}}},type:a.a.POST,success:t,error:n,always:r}},unfollowLevels:function(e,t,n,r){return{url:b(e.map((function(e){return e.masterId}))),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,r=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){if(r.find((function(t){return t.masterId===e.masterId}))){var t=r.findIndex((function(t){return t.masterId===e.masterId}));r=[].concat(i(r.slice(0,t)),i(r.slice(t+1)))}})),{"my:level:preferences":r}}},type:a.a.DELETE,success:t,error:n,always:r}}}},1066:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),a=n(26),i=n(191),o=n(359),c=n(1070),u=n(219);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function m(e,t){var n=r.a.useGetResponse(null==t?void 0:t.key),a=r.a.useGetFetch(t);e&&t&&n.shouldFetch&&a()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},f),t),l=n.ratings,d=n.favourites,p=n.watchHistory,b=n.hasCurriculumLinks,y=r.a.useBasicFetch(a.a.currentUser()),v=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),h=y.data;if(null==h?void 0:h.isAuthenticated){var g=[];l&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&i.a.videoRatings(v)])),d&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&u.a.isFavourited(h.id,v)])),p&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&c.a.videoHistory(v)])),b&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&o.a.hasCurriculumLinks(v)])),g.forEach((function(t){return m(!!e,t)}))}}},1070:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(62),a={userVideoHistory:function(e,t,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r){var a=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(a.join("&")),url:"{gateway}/v1/videos/history?".concat(a.join("&")),formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:t,error:n,always:r}}}},1071:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n.n(r),i=n(35),o=n(40),c=n(190),u=n(1075),s=n.n(u);function l(e){return a.a.createElement(a.a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a.a.createElement(f,Object.assign({key:n},e))})))}function f(e){var t=Object(c.a)(),n=t===o.a.XS,r=t===o.a.SM||t===o.a.MD,u=e.withReordering&&!n;return a.a.createElement(i.Row,{className:"py-2"},a.a.createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a.a.createElement(i.Row,null,!!u&&a.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDragHandle)})),a.a.createElement(i.Col,{xs:u?10:12},a.a.createElement("div",{className:"partial-loading-background rounded ".concat(s.a.partialThumbnail)})))),a.a.createElement(i.Col,{xs:n?12:r?8:9},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialSeriesLink)}),a.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(s.a.partialName)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDescription)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialBadges)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialActions)})))}l.defaultProps={numVideos:15}},1075:function(e,t,n){e.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},1324:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27),a=n(19),i={getContentUpdates:function(e,t,n){return{url:"/api/domain/v1/subjects/content-updates?from=".concat(e,"&to=").concat(t,"&limit=").concat(6)+"&query=".concat(n?a.a.OnlineVideoCollection(n,!0):a.a.OnlineVideoCollection()),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){var t=[];return e.forEach((function(e){return t.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(t.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,n,i){return{url:r.a.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:n,to:i,query:a.a.OnlineVideoCollection(t,!0,{videoProgress:!0})}),key:"classification:update:".concat(e,":").concat(n,":").concat(i)}},getContentUpdateVideos:function(e,t,n){return{url:r.a.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:a.a.OnlineVideoCollection(n,!0,{videoProgress:!0})}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=").concat(a.a.OnlineVideoCollection()),key:"videos:by:id:".concat(e.join(",")),success:t}}}},1439:function(e,t,n){"use strict";var r=n(0),a=n(248),i=n(59),o="playlists.liteWhatsNewBreadcrumbs";function c(e){return r.createElement(r.Fragment,null,r.createElement("h1",{className:"h2"},r.createElement(a.b,{namespace:o,phrase:"whatsNew"})),r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb p-0"},r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.dashboardAppLink},r.createElement(a.b,{namespace:o,phrase:"dashboard"}))),r.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},r.createElement(a.b,{namespace:o,phrase:"whatsNew"})))))}var u=n(35),s=n(78),l=n(38),f=n(365),m=n(29),d=n(141),p=n(1709),b=n.n(p);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=e.classification,n=e.backgroundUrl,o=e.followed,c=e.follow,p=e.showFollowSpinner,v=y(Object(s.a)(f.a.AUDIENCE_FILTER,void 0,{storage:l.c.SessionStorage}),1)[0];return r.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(b.a.banner),style:{backgroundImage:"url('".concat(n,"')")}},r.createElement(i.a,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(t,v)},r.createElement("h2",{className:"h3 mb-0"},t.name)),r.createElement(d.a,{className:"btn follow-btn ".concat(o?"btn-outline-dark":"btn-dark"),svgName:o?m.b.Check:m.b.Bell,onClick:function(){return c(t.id,t.name,!o)}},p?r.createElement(u.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):r.createElement(a.b,{namespace:"contentUpdates.classificationBanner",phrase:o?"unfollow":"follow"})))}function g(e){var t=e.classification;return r.createElement(r.Fragment,null,r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb p-0 mb-0"},r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.dashboardAppLink},r.createElement(a.b,{namespace:"playlists.liteClassificationUpdateBreadcrumbs",phrase:"dashboard"}))),r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.contentUpdatesAppLink},r.createElement(a.b,{namespace:"playlists.liteClassificationUpdateBreadcrumbs",phrase:"whatsNew"}))),r.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}))},1709:function(e,t,n){e.exports={banner:"_1ZGpQ"}}}]);
1
+ (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[23],{1054:function(e,t,n){"use strict";var r,a=n(0),i=n(39),o=n(63),c=n(36),u=n(1055),s=n(59),l=function(e){var t=e.breadcrumb,n=t.label,r=t.appLink,i=t.active;return a.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?a.createElement("strong",null,n):a.createElement(s.a,{appLink:r},n))},m=function(e){var t=e.breadcrumbs;return a.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return a.createElement(l,{key:t,breadcrumb:e})})))};function f(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||p(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 p(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n){return{label:e.name,appLink:t(e),active:n}}function v(e){var t=function(e,t){var n=e.currentItem,r=e.getItemAppLink,u=e.getParent,s=e.rootItem,l=e.data,m=e.subview,p=d(Object(a.useState)([]),2),b=p[0],v=p[1],h=null==l?void 0:l.map((function(e){return null==e?void 0:e.name})).join("-");a.useEffect((function(){if(!t)if(o.a.isEmpty(l)){if(!s)return;v([s])}else{var e=l.map((function(e,t){return y(e,r,t+1===l.length)}));s&&e.unshift(s),v(e)}}),[h,r]),a.useEffect((function(){if(t&&i.a.isFunction(u)){var e=[y(n,r,!0)];for(n=u(n);n;)e.unshift(y(n,r)),n=u(n);return s&&e.unshift(s),v(e)}}),[n,u,r,s]);var g=a.useRef({label:m,appLink:null,active:!0}).current;if(m){b.includes(g)||v([].concat(f(b),[g]));var w=b.filter((function(e){return e.active&&e!==g}));w.length&&(c.a.first(w).active=!1)}return b}(e,e.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(m,{breadcrumbs:t}))}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return h})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(r||(r={}));var h=a.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},u.a.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return a.createElement("li",{key:t,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},1055:function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return i}));var i={getPartialLoadingItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.numItems,n=void 0===t?5:t,a=e.minWidth,i=void 0===a?50:a,o=e.maxWidth,c=void 0===o?100:o,u=function(){return Math.max(Math.floor(Math.random()*c),i)};return r(Array(n)).map((function(){return{width:"".concat(u(),"px")}}))}}},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(27),a=n(16);function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=n(19).b.CLASSIFICATION,u=function(){return"/api/domain/v1/subjects/preferences?query=".concat(c,"&type=subject")},s=function(){return"/api/domain/v1/subjects/classifications/following?query=".concat(c)},l=function(){return"/api/domain/v1/subjects/classifications/following"},m=function(e){return r.a.urlBuilder("/api/domain/v1/subjects/classifications/following",{id:e})},f=function(){return"/api/domain/v1/subjects/audiences?type=subject"},d=function(){return"/api/domain/v1/subjects/audiences/following"},p=function(){return"/api/domain/v1/subjects/audiences/following"},b=function(e){return r.a.urlBuilder("/api/domain/v1/subjects/audiences/following",{id:e})},y=function(e){return"/api/domain/v1/subjects/presentations".concat(e?"?type=".concat(e):"")},v=function(e){return"/api/domain/v1/subjects/presentations/available".concat(e?"?type=".concat(e):"")},h=function(e){return"/api/domain/v1/subjects/presentations/".concat(e)},g={currentPresentations:function(e){return{url:y(e),key:"current:presentations".concat(e?":".concat(e):""),normalizeOptions:{namespace:"presentation"}}},availablePresentations:function(e){return{url:v(e),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},setPresentation:function(e,t,n,r){return{url:h(e.id),key:"set:".concat(t,":presentation"),type:a.a.POST,data:{},normalizeOptions:{namespace:"presentation"},invalidationKeys:["current:presentations:".concat(t),"current:presentations","subject:preference:options","my:subject:preferences","level:preference:options","my:level:preferences","classifications","presentation:audiences"],success:n,error:r}},allSubjectPreferences:function(){return{url:u(),key:"subject:preference:options"}},mySubjectPreferences:function(e){return{url:s(),key:"my:subject:preferences",normalize:!1,success:e}},followSubjects:function(e,t,n,r){return{url:l(),key:"follow:subjects",data:e,type:a.a.POST,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},unfollowSubjects:function(e,t,n,r){return{url:m(e),key:"unfollow:subjects",type:a.a.DELETE,success:t,error:n,always:r,invalidationKeys:[].concat(i(e.map((function(e){return"classification:".concat(e)}))),["my:subject:preferences","classifications"])}},allLevelPreferences:function(){return{url:f(),key:"level:preference:options",normalize:!1}},myLevelPreferences:function(e){return{url:d(),key:"my:level:preferences",normalizeOptions:{idAttribute:"masterId"},success:e}},followLevels:function(e,t,n,r){return{url:p(),key:"follow:levels",data:e.map((function(e){return e.masterId})),normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,r=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){r.find((function(t){return t.masterId===e.masterId}))||r.push(e)})),{"my:level:preferences":r}}},type:a.a.POST,success:t,error:n,always:r}},unfollowLevels:function(e,t,n,r){return{url:b(e.map((function(e){return e.masterId}))),key:"unfollow:levels",normalize:!1,updateState:{keys:"my:level:preferences",updateData:function(t){var n,r=null!==(n=t["my:level:preferences"])&&void 0!==n?n:[];return e.forEach((function(e){if(r.find((function(t){return t.masterId===e.masterId}))){var t=r.findIndex((function(t){return t.masterId===e.masterId}));r=[].concat(i(r.slice(0,t)),i(r.slice(t+1)))}})),{"my:level:preferences":r}}},type:a.a.DELETE,success:t,error:n,always:r}}}},1066:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(11),a=n(26),i=n(191),o=n(359),c=n(1070),u=n(219);function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e,t){var n=r.a.useGetResponse(null==t?void 0:t.key),a=r.a.useGetFetch(t);e&&t&&n.shouldFetch&&a()}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},m),t),l=n.ratings,d=n.favourites,p=n.watchHistory,b=n.hasCurriculumLinks,y=r.a.useBasicFetch(a.a.currentUser()),v=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),h=y.data;if(null==h?void 0:h.isAuthenticated){var g=[];l&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&i.a.videoRatings(v)])),d&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&u.a.isFavourited(h.id,v)])),p&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&h&&c.a.videoHistory(v)])),b&&(g=[].concat(s(g),[!!(null==v?void 0:v.length)&&o.a.hasCurriculumLinks(v)])),g.forEach((function(t){return f(!!e,t)}))}}},1070:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(62),a={userVideoHistory:function(e,t,n,a){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r){var a=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(a.join("&")),url:"{gateway}/v1/videos/history?".concat(a.join("&")),formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:t,error:n,always:r}}}},1071:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),a=n.n(r),i=n(35),o=n(40),c=n(190),u=n(1075),s=n.n(u);function l(e){return a.a.createElement(a.a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a.a.createElement(m,Object.assign({key:n},e))})))}function m(e){var t=Object(c.a)(),n=t===o.a.XS,r=t===o.a.SM||t===o.a.MD,u=e.withReordering&&!n;return a.a.createElement(i.Row,{className:"py-2"},a.a.createElement(i.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a.a.createElement(i.Row,null,!!u&&a.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDragHandle)})),a.a.createElement(i.Col,{xs:u?10:12},a.a.createElement("div",{className:"partial-loading-background rounded ".concat(s.a.partialThumbnail)})))),a.a.createElement(i.Col,{xs:n?12:r?8:9},a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialSeriesLink)}),a.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(s.a.partialName)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialDescription)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialBadges)}),a.a.createElement("div",{className:"partial-loading-background ".concat(s.a.partialActions)})))}l.defaultProps={numVideos:15}},1075:function(e,t,n){e.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},1324:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27),a=n(19),i={getContentUpdates:function(e,t,n){return{url:r.a.urlBuilder("/api/domain/v1/subjects/content-updates",{from:e,to:t,limit:6,query:a.a.OnlineVideoCollection(n,!!n,{canBeConsumed:!0})}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){var t=[];return e.forEach((function(e){return t.push("id=".concat(e))})),{url:"".concat("/api/domain/v1/subjects","?").concat(t.join("&"),"&query=banner"),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,n,i){return{url:r.a.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:n,to:i,query:a.a.OnlineVideoCollection(t,!0,{videoProgress:!0})}),key:"classification:update:".concat(e,":").concat(n,":").concat(i)}},getContentUpdateVideos:function(e,t,n){return{url:r.a.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:a.a.OnlineVideoCollection(n,!0,{videoProgress:!0,canBeConsumed:!0})}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=").concat(a.a.OnlineVideoCollection()),key:"videos:by:id:".concat(e.join(",")),success:t}}}},1439:function(e,t,n){"use strict";var r=n(0),a=n(248),i=n(59),o="playlists.liteWhatsNewBreadcrumbs";function c(e){return r.createElement(r.Fragment,null,r.createElement("h1",{className:"h2"},r.createElement(a.b,{namespace:o,phrase:"whatsNew"})),r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb p-0"},r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.dashboardAppLink},r.createElement(a.b,{namespace:o,phrase:"dashboard"}))),r.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},r.createElement(a.b,{namespace:o,phrase:"whatsNew"})))))}var u=n(35),s=n(78),l=n(38),m=n(365),f=n(29),d=n(141),p=n(1709),b=n.n(p);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=e.classification,n=e.backgroundUrl,o=e.followed,c=e.follow,p=e.showFollowSpinner,v=y(Object(s.a)(m.a.AUDIENCE_FILTER,void 0,{storage:l.c.SessionStorage}),1)[0];return r.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(b.a.banner),style:{backgroundImage:"url('".concat(n,"')")}},r.createElement(i.a,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(t,v)},r.createElement("h2",{className:"h3 mb-0"},t.name)),r.createElement(d.a,{className:"btn follow-btn ".concat(o?"btn-outline-dark":"btn-dark"),svgName:o?f.b.Check:f.b.Bell,onClick:function(){return c(t.id,t.name,!o)}},p?r.createElement(u.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):r.createElement(a.b,{namespace:"contentUpdates.classificationBanner",phrase:o?"unfollow":"follow"})))}function g(e){var t=e.classification;return r.createElement(r.Fragment,null,r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb p-0 mb-0"},r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.dashboardAppLink},r.createElement(a.b,{namespace:"playlists.liteClassificationUpdateBreadcrumbs",phrase:"dashboard"}))),r.createElement("li",{className:"breadcrumb-item"},r.createElement(i.a,{appLink:e.contentUpdatesAppLink},r.createElement(a.b,{namespace:"playlists.liteClassificationUpdateBreadcrumbs",phrase:"whatsNew"}))),r.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}))},1709:function(e,t,n){e.exports={banner:"_1ZGpQ"}}}]);