@clickview/lite 0.0.33-rc.0 → 0.0.33-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{26-lite-3aee04253f.chunk.css → 26-lite-f9401e942a.chunk.css} +1 -1
- package/dist/css/{28-lite-ac3d45e7ec.chunk.css → 28-lite-25761ce9cf.chunk.css} +1 -1
- package/dist/css/{29-lite-080ee4cb65.chunk.css → 29-lite-7dc1473da0.chunk.css} +1 -1
- package/dist/css/{lite-app-802cc930f1.css → lite-app-0c593ddba8.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/0-e7030aae42-lite.chunk.js +1 -0
- package/dist/scripts/{10-c7b61001b9-lite.chunk.js → 10-ed97d98b36-lite.chunk.js} +1 -1
- package/dist/scripts/{11-21ffe591da-lite.chunk.js → 11-b7aca59563-lite.chunk.js} +1 -1
- package/dist/scripts/{113-026c14d61c-lite.chunk.js → 113-efae96401a-lite.chunk.js} +1 -1
- package/dist/scripts/{114-0b7e2fdab5-lite.chunk.js → 114-bb062b648d-lite.chunk.js} +1 -1
- package/dist/scripts/{115-8a43665f60-lite.chunk.js → 115-cc2cb12fb8-lite.chunk.js} +1 -1
- package/dist/scripts/13-28e03c3df0-lite.chunk.js +1 -0
- package/dist/scripts/{14-c83246cd23-lite.chunk.js → 14-f0e31e37ac-lite.chunk.js} +1 -1
- package/dist/scripts/{16-5c0a36f760-lite.chunk.js → 16-9ef5f3e9a6-lite.chunk.js} +1 -1
- package/dist/scripts/{17-477ed400ac-lite.chunk.js → 17-91f91e04ba-lite.chunk.js} +1 -1
- package/dist/scripts/{18-4d2830cd8e-lite.chunk.js → 18-c1fa16528e-lite.chunk.js} +1 -1
- package/dist/scripts/{2-ca590b2f5b-lite.chunk.js → 2-4ac32e179f-lite.chunk.js} +1 -1
- package/dist/scripts/{20-71dcda03a1-lite.chunk.js → 20-7085c7cb8f-lite.chunk.js} +1 -1
- package/dist/scripts/21-4653904731-lite.chunk.js +1 -0
- package/dist/scripts/25-f74af2eb08-lite.chunk.js +1 -0
- package/dist/scripts/26-2b3a99bf53-lite.chunk.js +1 -0
- package/dist/scripts/{27-38a54fee87-lite.chunk.js → 27-26b8ea6708-lite.chunk.js} +1 -1
- package/dist/scripts/28-e50fb08b2a-lite.chunk.js +1 -0
- package/dist/scripts/29-a8f45034b9-lite.chunk.js +1 -0
- package/dist/scripts/{3-76af423f6c-lite.chunk.js → 3-0931af8171-lite.chunk.js} +1 -1
- package/dist/scripts/{30-ca7b44971c-lite.chunk.js → 30-43d888ffee-lite.chunk.js} +1 -1
- package/dist/scripts/31-88da1a1f8c-lite.chunk.js +1 -0
- package/dist/scripts/{32-76057bf0ef-lite.chunk.js → 32-f16d9e57e3-lite.chunk.js} +1 -1
- package/dist/scripts/{33-93fd8e0781-lite.chunk.js → 33-a93a993db0-lite.chunk.js} +1 -1
- package/dist/scripts/34-bc66d6ab04-lite.chunk.js +1 -0
- package/dist/scripts/35-878e90228a-lite.chunk.js +1 -0
- package/dist/scripts/36-4298013d85-lite.chunk.js +1 -0
- package/dist/scripts/{37-69f2a038fd-lite.chunk.js → 37-9dca18e074-lite.chunk.js} +1 -1
- package/dist/scripts/{38-772f66099c-lite.chunk.js → 38-252fd03cae-lite.chunk.js} +1 -1
- package/dist/scripts/39-4153fedef4-lite.chunk.js +1 -0
- package/dist/scripts/{4-5f76be9bca-lite.chunk.js → 4-3f85167f77-lite.chunk.js} +1 -1
- package/dist/scripts/{40-70582b178e-lite.chunk.js → 40-285f6ad09b-lite.chunk.js} +1 -1
- package/dist/scripts/{41-e667ae8d98-lite.chunk.js → 41-31cda3f45d-lite.chunk.js} +1 -1
- package/dist/scripts/{42-a977ba9bff-lite.chunk.js → 42-4207a5d234-lite.chunk.js} +1 -1
- package/dist/scripts/43-82dc78c683-lite.chunk.js +1 -0
- package/dist/scripts/44-0448afeda8-lite.chunk.js +1 -0
- package/dist/scripts/45-e6aab32b9b-lite.chunk.js +1 -0
- package/dist/scripts/46-69fc7b874e-lite.chunk.js +1 -0
- package/dist/scripts/{47-ff8d9f11fd-lite.chunk.js → 47-983ddb98f0-lite.chunk.js} +1 -1
- package/dist/scripts/{48-2c14d181d7-lite.chunk.js → 48-d07d3b5d18-lite.chunk.js} +2 -2
- package/dist/scripts/49-2e0739d8dd-lite.chunk.js +1 -0
- package/dist/scripts/5-c472faa435-lite.chunk.js +1 -0
- package/dist/scripts/50-6e2b29a811-lite.chunk.js +1 -0
- package/dist/scripts/{51-31b8698777-lite.chunk.js → 51-a9bf8f3944-lite.chunk.js} +1 -1
- package/dist/scripts/{52-e7ac3ae673-lite.chunk.js → 52-2f8a6a2213-lite.chunk.js} +1 -1
- package/dist/scripts/{53-4f332bc03a-lite.chunk.js → 53-2fe20c070b-lite.chunk.js} +1 -1
- package/dist/scripts/{54-45c0367cc7-lite.chunk.js → 54-d96382c965-lite.chunk.js} +1 -1
- package/dist/scripts/{55-e9067f37f8-lite.chunk.js → 55-e5dd664491-lite.chunk.js} +1 -1
- package/dist/scripts/{56-938e63ce64-lite.chunk.js → 56-533b80359b-lite.chunk.js} +1 -1
- package/dist/scripts/57-795d5ddb9d-lite.chunk.js +1 -0
- package/dist/scripts/6-fec5fdf04a-lite.chunk.js +1 -0
- package/dist/scripts/65-983e3b430f-lite.chunk.js +1 -0
- package/dist/scripts/66-9891f64bbf-lite.chunk.js +1 -0
- package/dist/scripts/{67-cd2f620cf9-lite.chunk.js → 67-f387a19850-lite.chunk.js} +1 -1
- package/dist/scripts/69-92b34f8833-lite.chunk.js +1 -0
- package/dist/scripts/{7-ff0fb2d44b-lite.chunk.js → 7-20a1f86392-lite.chunk.js} +5 -5
- package/dist/scripts/{70-d87a5a6fa9-lite.chunk.js → 70-04eec44e1e-lite.chunk.js} +1 -1
- package/dist/scripts/{72-1c10037946-lite.chunk.js → 72-fe7ce8e6da-lite.chunk.js} +1 -1
- package/dist/scripts/{73-fe9ba7d89d-lite.chunk.js → 73-625603b036-lite.chunk.js} +1 -1
- package/dist/scripts/74-c1856a1939-lite.chunk.js +1 -0
- package/dist/scripts/{75-38557fa444-lite.chunk.js → 75-9bc6a73b1e-lite.chunk.js} +1 -1
- package/dist/scripts/{76-b11c3dfa1e-lite.chunk.js → 76-92906fce15-lite.chunk.js} +1 -1
- package/dist/scripts/{77-d981d02134-lite.chunk.js → 77-e12d4ecd86-lite.chunk.js} +1 -1
- package/dist/scripts/8-418c5512d5-lite.chunk.js +1 -0
- package/dist/scripts/{83-cb753f295a-lite.chunk.js → 83-927ccb3de2-lite.chunk.js} +1 -1
- package/dist/scripts/{9-321a2c6040-lite.chunk.js → 9-4493404925-lite.chunk.js} +1 -1
- package/dist/scripts/{90-1482a33df7-lite.chunk.js → 90-a573a70082-lite.chunk.js} +1 -1
- package/dist/scripts/{96-25110aa918-lite.chunk.js → 96-07f6db58dd-lite.chunk.js} +1 -1
- package/dist/scripts/{97-d374680b00-lite.chunk.js → 97-caabc1520c-lite.chunk.js} +1 -1
- package/dist/scripts/{98-83351adb6f-lite.chunk.js → 98-6b725aae54-lite.chunk.js} +1 -1
- package/dist/scripts/{99-42579ed3f5-lite.chunk.js → 99-a75d4f3a75-lite.chunk.js} +1 -1
- package/dist/scripts/{bundle-1a3caabda2.min.js → bundle-049e51a2d6.min.js} +4 -4
- package/package.json +3 -3
- package/dist/scripts/0-6da2a377b0-lite.chunk.js +0 -1
- package/dist/scripts/13-a167e9eee0-lite.chunk.js +0 -1
- package/dist/scripts/21-6b8833e7d0-lite.chunk.js +0 -1
- package/dist/scripts/25-26f0ec9cff-lite.chunk.js +0 -1
- package/dist/scripts/26-50cc0d4878-lite.chunk.js +0 -1
- package/dist/scripts/28-441de08af4-lite.chunk.js +0 -1
- package/dist/scripts/29-9db32d2f49-lite.chunk.js +0 -1
- package/dist/scripts/31-cb33bdf810-lite.chunk.js +0 -1
- package/dist/scripts/34-5c2d1dbf5a-lite.chunk.js +0 -1
- package/dist/scripts/35-087901b114-lite.chunk.js +0 -1
- package/dist/scripts/36-b8e1b5261b-lite.chunk.js +0 -1
- package/dist/scripts/39-d5a2fa8db1-lite.chunk.js +0 -1
- package/dist/scripts/43-4267c42855-lite.chunk.js +0 -1
- package/dist/scripts/44-acc02f5ccc-lite.chunk.js +0 -1
- package/dist/scripts/45-c73fafb718-lite.chunk.js +0 -1
- package/dist/scripts/46-048f260440-lite.chunk.js +0 -1
- package/dist/scripts/49-400d02392f-lite.chunk.js +0 -1
- package/dist/scripts/5-d50e73d649-lite.chunk.js +0 -1
- package/dist/scripts/50-5c79b235d0-lite.chunk.js +0 -1
- package/dist/scripts/57-33a20311dd-lite.chunk.js +0 -1
- package/dist/scripts/6-32ad6142d4-lite.chunk.js +0 -1
- package/dist/scripts/65-fe3e6da3f5-lite.chunk.js +0 -1
- package/dist/scripts/66-28eed46534-lite.chunk.js +0 -1
- package/dist/scripts/69-e6781a0150-lite.chunk.js +0 -1
- package/dist/scripts/74-5d8d33cff1-lite.chunk.js +0 -1
- package/dist/scripts/8-c8cad5eaba-lite.chunk.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[14],{1002:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(74),i=n(16),o=n(42);function c(t){return function(t){if(Array.isArray(t))return l(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 l(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 l(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 l(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 s=function(t){return t&&t.data&&t.data.pagination&&t.data.pagination.cursors&&t.data.pagination.cursors.next};function u(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.shouldFetch,u=r&&r.data&&r.data.data,f=s(r);f&&(a=(r=i.a.getResponse(e,n(f))).isFetching,!r.shouldFetch);){var d=r.data&&r.data.data;d&&u.push.apply(u,c(d));var p=s(r);f=p===f?null:p}return{shouldInitialFetch:l,items:u,nextCursor:f,isFetching:a}}}}),[t]))}},1003:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(87),a=n(66);function i(t){return function(t){if(Array.isArray(t))return o(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 o(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 o(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 o(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 c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var a=r.a.moveItem(t,e,n),i=n<t.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var o=[],c=a.a.deepClone(n),l=[t],s=n[t],u=!!s&&!!s.data&&s.data.length;s&&Array.isArray(s.data);){o.push.apply(o,i(s.data));var f=s.pagination&&s.pagination.cursors&&s.pagination.cursors.next,d=!!f&&"".concat(t,":").concat(f);(s=f&&n[d])&&l.push(d)}if(!o.length)return n;var p=r.a.findIndex(o,(function(t){return t.id===e.sourceMemberId})),y=[].concat(o),m=y.splice(p,1),b=e.destinationMemberId?r.a.findIndex(y,(function(t){return t.id===e.destinationMemberId})):y.length;return y.splice(b,0,m[0]),l.forEach((function(t){var e=y.splice(0,u);c[t].data=e})),c}}},1004:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1005:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(42);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])}},1006:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),a=n(34),i=n(56),o=n(25),c=n(1007),l=n.n(c);function s(t){return r.createElement("div",{className:"p-3 text-center ".concat(l.a.container)},t.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:l.a.spinner}):r.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:t.onClick}))}},1007:function(t,e,n){t.exports={container:"_1_KC6",spinner:"VXlcl"}},1008:function(t,e,n){"use strict";var r=n(976);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var a=n(981);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return a.a}))},1028:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),a=n(1002),i=n(1005);function o(t,e){var n=e,o=Object(a.a)(t&&function(e){return t(e).key});return Object(i.a)((function(){if(e&&t&&o)return n(o.nextCursor)}),!!(null==o?void 0:o.nextCursor),null==o?void 0:o.isFetching),Object(r.useEffect)((function(){o&&o.shouldInitialFetch&&e&&n()}),[null==o?void 0:o.shouldInitialFetch,e]),{items:null==o?void 0:o.items,hasMore:!!(null==o?void 0:o.nextCursor),isFetching:null==o?void 0:o.isFetching}}},1041:function(t,e,n){"use strict";var r,a=n(175);!function(t){t.Playlists="playlists",t.Series="series",t.Videos="videos"}(r||(r={})),n.d(e,"a",(function(){return f}));var i=function(){return"/api/domain/v1/subjects?query=".concat(a.b.CLASSIFICATION,"&type=subject")},o=function(t,e){return"/api/domain/v1/subjects/".concat(t,"?query=").concat(a.a.ClassificationWithFollowersAndMemberCount(e))},c=function(t){return"/api/domain/v1/subjects/".concat(t,"/path")},l=function(t){return"/api/domain/v1/subjects/".concat(t,"/children?query=").concat(a.b.CLASSIFICATION)},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a="/api/domain/v1/subjects/".concat(t,"/").concat(e),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var o=i.join("&");return o&&(a+="?".concat(o)),a},u=function(t){return"/api/domain/v1/subjects/objects/".concat(t,"/classifications/paths?type=curriculum")},f={presentation:function(){return{url:"/api/domain/v1/subjects/presentations?type=subject",key:"presentation",bootstrapName:"presentation",expiryTime:1/0}},classifications:function(){return{url:i(),key:"classifications",expiryTime:1/0}},classification:function(t,e,n){return{url:o(t,e),key:"classification:".concat(t),error:n,expiryTime:1/0}},path:function(t){return{url:c(t),key:"classification:".concat(t,":path"),expiryTime:1/0}},children:function(t){return{url:l(t),key:"classification:".concat(t,":children"),expiryTime:1/0}},videos:function(t,e,n,i){if(e){var o="limit:100";n.length&&(o+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var c="{".concat(o,"}").concat(a.b.VIDEO_COLLECTION,",_hasInteractives")+",".concat(a.a.SubjectPresentationAudienceFilter(e),",favouritedby{id:").concat(i,"}");return{url:s(t,r.Videos,c),key:"classification:".concat(t,":").concat(r.Videos,":").concat(n.join(":")),expiryTime:1/0}}},playlists:function(t,e,n){if(e){var i="limit:100,orderby:name";n.length&&(i+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var o="{".concat(i,"}").concat(a.b.PLAYLIST_COLLECTION)+",".concat(a.a.SubjectPresentationAudienceFilter(e));return{url:s(t,r.Playlists,o),key:"classification:".concat(t,":").concat(r.Playlists,":").concat(n.join(":")),expiryTime:1/0}}},series:function(t,e,n){if(e){var i="limit:100";n.length&&(i+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var o="{".concat(i,"}").concat(a.b.SERIES)+",".concat(a.a.SubjectPresentationAudienceFilter(e));return{url:s(t,r.Series,o),key:"classification:".concat(t,":").concat(r.Series,":").concat(n.join(":")),expiryTime:1/0}}},curriculumLinks:function(t){return{url:u(t),key:"curriculum:links:".concat(t),expiryTime:1/0,normalize:!1}}}},1058: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"]},1061:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(4),a=n(115),i=n(224),o=n(177),c=n(344),l=n(345),s={notFound:i.a,forbidden:{rating:c.a,yearLevel:c.a,region:l.a,privacy:c.a},badRequest:o.a};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},s),e);t&&t!==a.a.Ok&&(t!==a.a.NotFound?t!==a.a.Forbidden?r.a.ErrorHelper.throw(new n.badRequest):r.a.ErrorHelper.throw(new n.forbidden.privacy):r.a.ErrorHelper.throw(new n.notFound))}},1063: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}))},1083:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(21),a=n(999),i=n(175),o=n(67),c=n(113),l=Object.assign(Object.assign({},a.a),{getPlaylist:function(t,e,n){return{url:"{gateway}/v1/objects/".concat(t,"?query=").concat(i.b.PLAYLIST,",_isClickViewPlaylist,_liteOwner"),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){return{url:o.a.urlBuilder("{gateway}/v1/objects/".concat(t),{query:"".concat(i.b.PLAYLIST,",_isClickViewPlaylist,_liteOwner"),shareId:e}),key:"shared:playlist:".concat(t,":").concat(e),success:n,error:r}},getPlaylistVideos:function(t,e){var n="{gateway}/v1/objects/".concat(t,"/videos"),r={query:"{orderBy:orderindex,limit:100}".concat(c.a.VideoCollectionWithAssocs(null,!0))};return e&&(r.cursor=e),{url:o.a.urlBuilder(n,r),key:"playlist:".concat(t,":videos").concat(e?":".concat(e):"")}},getSharedPlaylistVideos:function(t,e,n){var r="{gateway}/v1/objects/".concat(t,"/videos"),a={query:"{orderBy:orderindex,limit:100}".concat(c.a.VideoCollectionWithAssocs(null,!0)),shareId:e};return n&&(a.cursor=n),{url:o.a.urlBuilder(r,a),key:"shared:playlist:".concat(t,":").concat(e,":videos:").concat(n)}},copyPlaylist:function(t,e,n,a){return{url:"{gateway}/v1/playlists/copy",key:"copy:playlist",data:{playlistId:t},type:r.a.POST,invalidationKeys:"user:playlists",success:e,error:n,always:a}}})},1084:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(1061);function i(t,e){Object(r.useEffect)((function(){Object(a.a)(t.statusCode,e)}),[t.statusCode,e])}},1105:function(t,e,n){"use strict";var r=n(0),a=n(82),i=n.n(a),o=function(t,e){return e?i.a.createPortal(t,e):t},c=n(8),l=n(56),s=n(47),u=n(25);function f(t){var e=Object.assign({textShadow:!0},t),n=e.backToName,a=e.appLink,i=e.color,o=e.extraClasses,f=e.textShadow,d=n?c.a.getPhrase("shared.backButton","backTo",{backToName:n}):c.a.getPhrase("shared.backButton","back"),p="black"===i?"":"text-white",y=f?"text-shadow":"";return r.createElement(s.a,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(p," ").concat(y)},r.createElement(l.a,{svgName:u.b.ChevronLeft,size:l.b.Medium}),r.createElement("span",{className:"ml-1"},d))}f.defaultProps={color:"black",extraClasses:""};var d=n(106),p=n(57),y=n(343),m=n(983),b=n(283),v=n(70),h=n(332),g=n(174),w=n(30),S=n(1132),E=n.n(S);function I(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(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 j(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 j(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 A})),n.d(e,"b",(function(){return k}));var O="".concat(y.a[p.c.Banners].width,":").concat(y.a[p.c.Banners].height);var A=r.memo((function(t){var e=t.heading,n=t.banner,a=t.imageCdnUrl,i=t.actions,c=t.sortComponent,l=t.blockColourClass,s=r.useContext(b.a),u=I(Object(v.a)(h.a.LAYOUT_CONTAINER_FLUID),1)[0],y=d.a.createBannerUrl(n,{fallbackBaseUrl:a,fallbackCategoryName:e,type:p.c.Banners},{width:Object(g.a)()===w.a.XXL?1920:1200,ratio:O,resizeType:p.d.Cover,format:"jpg"}),S={className:"banner banner-header",style:{backgroundImage:"url('".concat(y,"')")}};return!n&&l&&(delete S.style,S.className+=" ".concat(l)),o(r.createElement("div",Object.assign({},S),r.createElement("div",{className:"".concat(u?"container-fluid":"container"," position-relative")},t.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(f,{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"},e),!!i&&r.createElement("div",{className:E.a.actionsContainer},r.createElement(m.a,{actions:i,sortComponent:c,actionsDropdownClassName:t.actionsDropdownClassName}))))),null==s?void 0:s.container)}),(function(t,e){return t.actions===e.actions}));function k(){var t=r.useContext(b.a);return o(r.createElement("div",{className:"partial-banner partial-loading-background"}),null==t?void 0:t.container)}},1132:function(t,e,n){t.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF"}},1246:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(134),a={userVideoHistory:function(t,e,n,a){var i="video:history",o="{gateway}/v1/videos/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}}}},1597:function(t,e,n){t.exports={partialDescription:"_3cyjk"}},1598:function(t,e,n){t.exports={sortableItem:"_2eiPB"}},1721:function(t,e,n){"use strict";n.r(e);var r=n(0),a=n.n(r),i=n(74),o=n(16),c=n(66),l=n(8),s=n(87),u=n(3),f=n(124),d=n(48),p=n(329),y=n(1028),m=n(1006),b=n(1003);function v(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(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 h(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 h(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=n(1017),w=n(328),S=n(88),E=n(133),I=n(1084),j=n(335),O=n(1083),A=n(330),k=n(1246),P=n(214);function C(t){return function(t){if(Array.isArray(t))return L(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 L(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 L(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 L(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 T={ratings:!0,favourites:!0,watchHistory:!0};function x(t,e){var n=o.a.useGetResponse(null==e?void 0:e.key),r=o.a.useGetFetch(e);t&&e&&n.shouldFetch&&r()}var N=n(1032),F=n(58),_=n(45),D=n(83),V=n(30),B=n(25),U=n(1105),R=n(1063),M=n(986),H=n(1058),Y=n(10),q=n(7),W=n(1597),K=n.n(W);function $(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(U.b,null),a.a.createElement("div",{className:"mb-2"},a.a.createElement("div",{className:"partial-loading-background my-2 border-bottom ".concat(K.a.partialDescription)})))}function z(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||G(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 X(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||G(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 G(t,e){if(t){if("string"==typeof t)return J(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)?J(t,e):void 0}}function J(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 Q=l.a.encloseNamespace("playlists.playlistHeader"),Z=function(t){return{application:q.a.SUBJECT,action:Y.a.Subjects.CLASSIFICATION,args:[t.id,F.a.slugify(t.name)]}};function tt(t){var e,n=X(r.useState(t.isFollowing),2),a=n[0],i=n[1],o=X(r.useState(!1),2),c=o[0],l=o[1];r.useEffect((function(){return i(t.isFollowing)}),[t.isFollowing]);var s=Object(D.a)(V.a.XS);if(t.showPartialLoading)return r.createElement($,null);var f=t.playlist.description,d=t.application,p=[t.playlist.id],y=t.playlist,m={location:u.LocationContext.Banner,entity:u.EntityType.Playlist,workflowPhase:u.WorkflowPhase.Start},b=[];return t.playAllAppLink&&b.push({label:Q("playAll"),appLink:t.playAllAppLink,svgName:B.b.Play,className:"btn btn-outline-dark mr-2",button:!s,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Play})}),t.canSharePlaylists&&b.push({label:Q("share"),appLink:{application:q.a.DEFAULT,action:Y.a.Default.SHARE,args:[t.playlist.id],params:{entityType:"playlist"}},svgName:B.b.Share2,className:"btn btn-outline-dark mr-2",button:!s,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Share})}),t.canEdit&&b.push({label:Q("edit"),appLink:{application:d,action:Y.a.Playlists.EDIT_PLAYLIST,args:p},svgName:B.b.Edit,className:"btn btn-outline-dark mr-2",button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Edit})}),t.canEdit||b.push({label:Q(a?"unfollow":"follow"),onClick:function(){i(!a),l(!0),t.follow(!a,(function(){l(!1),_.a.logUserAction(y,Object.assign(Object.assign({},m),{actionType:u.UserAction.Follow,descriptor:a?u.ToggleDescriptor.Off:u.ToggleDescriptor.On,workflowPhase:u.WorkflowPhase.Complete}))}),(function(){l(!1),i(a)}))},svgName:a?B.b.Check:B.b.Bell,className:"btn follow-btn btn-".concat(a?"outline-dark":"dark"," mr-2"),button:!s,showSpinner:c}),(null===(e=t.playlist._isClickViewPlaylist)||void 0===e?void 0:e.value)&&b.push({label:Q("copy"),appLink:{application:q.a.PLAYLISTS,action:Y.a.Playlists.COPY_PLAYLIST,args:p},button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Copy})}),t.canEdit&&b.push({label:Q("delete"),appLink:{application:d,action:Y.a.Playlists.DELETE_PLAYLIST,args:p},svgName:B.b.Delete,className:"text-danger",button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Delete})}),r.createElement(r.Fragment,null,r.createElement(U.a,{heading:t.playlist.name,banner:t.playlist.banner,imageCdnUrl:t.imageCdnUrl,actions:b.length&&b,actionsDropdownClassName:"btn btn-outline-dark",blockColourClass:Object(R.a)(t.playlist,H.a)}),(!!f||!!t.classificationId)&&r.createElement("div",{className:"border-bottom py-3"},t.classificationId?t.playlist&&t.topicPath?r.createElement("div",{className:"pb-2"},r.createElement(M.b,{currentItem:t.playlist,type:M.a.Static,getItemAppLink:Z,data:[].concat(z(t.topicPath),[t.playlist]),rootItem:{label:Q("topics"),appLink:{application:q.a.SUBJECT,action:Y.a.Subjects.CLASSIFICATION_ALL}}})):r.createElement(M.c,null):r.createElement(r.Fragment,null),!!f&&r.createElement("p",{className:"mb-0"},f)))}var et=n(4),nt=n(42),rt=n(29),at=n(1042),it=n(994),ot=n(1598),ct=n.n(ot);function lt(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.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 ft(t){var e=t.onSortComplete,n=t.onSortStart,a=t.showPartialLoading,i=ut(t,["onSortComplete","onSortStart","showPartialLoading"]),o=lt(r.useState(),2),c=o[0],l=o[1],s=function(t){nt.a.isFunction(n)&&n(t)};return a?r.createElement(it.a,{withReordering:!0}):t.canEdit?r.createElement(at.b,Object.assign({},i,{currentSortingIndex:c,updateBeforeSortStart:function(t){var e=t.index;return l(e)},onSortStart:function(t){var e=t.index;return s(e)},onSortEnd:function(t){l(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})):r.createElement(at.c,Object.assign({},i))}var dt=n(95),pt=n(968),yt=n(52);function mt(){return a.a.createElement(dt.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(dt.b,{phrase:"heading"})),a.a.createElement(pt.a.Info,null,a.a.createElement(dt.b,{phrase:"info"}))))}var bt=n(480),vt=n(481);function ht(t){return function(t){if(Array.isArray(t))return gt(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 gt(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 gt(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 gt(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 wt(t){var e=t&&t.length&&t.map((function(t){return t.dateAssociated}));return e&&e.length?s.a.max(e,(function(t){return new Date(t).getTime()})):null}function St(t,e,n){_.a.logUserAction({id:e,playlistId:t},{location:u.LocationContext.VideoList,entity:u.EntityType.Video,actionType:u.UserAction.Move,workflowPhase:n})}var Et={notFound:bt.a,forbidden:{privacy:vt.a}},It=n(1041);function jt(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ot(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 Ot(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 Ot(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 At}));function At(t){var e,n=Object(i.useDispatch)(),a=Object(w.a)(),h=Object(E.a)().hasPermissions,L=o.a.useBasicFetch(f.a.config()),F=o.a.useBasicFetch(d.a.currentUser()),_=!c.a.isEmpty(F.data),D=o.a.useBasicFetch(t.classificationId&&It.a.path(t.classificationId)),V=Object(N.b)(N.a.VideoItem),U=Object(j.a)(u.LocationContext.VideoThumbnail),R=t.shareId?O.a.getSharedPlaylist(t.playlistId,t.shareId):O.a.getPlaylist(t.playlistId),M=o.a.useBasicFetch(R);Object(I.a)(M,Et);var H=function(e){return t.shareId?O.a.getSharedPlaylistVideos(t.playlistId,t.shareId,e):O.a.getPlaylistVideos(t.playlistId,e)},W=o.a.useBasicFetch(!!F.data&&O.a.getIsFollowingPlaylist(t.playlistId,F.data.id)),K=function(t){o.a.getFetch(n,H(t))()},$=Object(y.a)(H,K),z=$.items,X=$.hasMore,G=$.isFetching;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},T),e),r=n.ratings,a=n.favourites,i=n.watchHistory,c=o.a.useBasicFetch(d.a.currentUser()),l=t&&(Array.isArray(t)?t.filter(Boolean).map((function(t){return t.id})):t.data.filter(Boolean).map((function(t){return t.id}))),s=c.data,u=[];r&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&A.a.videoRatings(l)])),a&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&s&&P.a.isFavourited(s.id,l)])),i&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&s&&k.a.videoHistory(l)])),u.forEach((function(e){return x(!!t,e)}))}(z);var J,Q,Z,et,nt=jt((J=z,Q=v(Object(r.useState)(),2),Z=Q[0],et=Q[1],Object(r.useEffect)((function(){Z&&(J.length!==Z.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}(J,Z))&&et(null)}),[J]),[Z,et]),2),rt=nt[0],at=nt[1],it=_&&!!z&&!!z.length&&A.a.getRestrictions(z.map((function(t){return t.id}))),ot=o.a.useGetResponse(it&&it.key),ct=o.a.useGetFetch(it);it&&ot.shouldFetch&&ct(),Object(p.a)(!!M.data&&M.data.name,[M.data]);var lt,st,ut=!!t.allowEdit&&function(t,e){return!(c.a.isEmpty(e)||!t||c.a.isEmpty(t._liteOwner))&&t._liteOwner.id.toString()===e.id.toString()}(M.data,F.data),dt=ut?(lt=V,st=t.playlistId,function(t){return[].concat(ht(lt(t)),[{label:l.a.getPhrase("playlists.playlist","removeFromPlaylist"),svgName:B.b.Delete,appLink:{application:q.a.PLAYLISTS,action:Y.a.Playlists.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.id,st]},className:"text-danger",analyticsOptions:{entity:u.EntityType.Video,actionType:u.UserAction.Dissociate,location:u.LocationContext.VideoListItem,workflowPhase:u.WorkflowPhase.Start,descriptor:u.AssocDescriptor.Playlist},analyticsData:{id:t.id,playlistId:st}}])}):V,pt=!!z&&0===z.length;return r.createElement(g.a.Provider,{value:dt},r.createElement("div",{className:"bg-white px-3"},r.createElement(tt,{playlistId:t.playlistId,playlist:M.data,hasVideos:!pt,isFollowing:null===(e=W.data)||void 0===e?void 0:e.isFollowing,follow:function(e,r,i){var c=e?O.a.followPlaylist:O.a.unfollowPlaylist;o.a.fetch(n,c(t.playlistId,F.data.id,r,(function(){i(),a.error(l.a.getPhrase("playlists.playlist",e?"followError":"unfollowError"))})))},application:t.application,canEdit:ut,canSharePlaylists:h(S.a.SharePlaylists),showBreadcrumbs:t.showBreadcrumbs,showDateMetadata:t.showDateMetadata,playAllAppLink:s.a.first(z)&&t.getVideoAppLink(s.a.first(z),!0),showPartialLoading:!(M.data&&z&&F.data&&L.data&&W.data),lastUpdated:!!z&&wt(z),imageCdnUrl:!!L.data&&L.data.imageCdnUrl,returnAppLink:t.returnAppLink,classificationId:t.classificationId,topicPath:D.data}),r.createElement("div",{className:"mt-2"},pt?r.createElement(mt,null):r.createElement(ft,{videos:rt||z,playlistId:!!M.data&&M.data.id,onSortStart:function(e){var n=z[e];n&&St(t.playlistId,n.id,u.WorkflowPhase.Start)},onSortComplete:function(e,r){if(e!==r){var a=z[e];if(a){var i=b.a.reorder(z,e,r),c=i.reorderedItems,l=i.reorderRequest;at(c),St(t.playlistId,a.id,u.WorkflowPhase.Complete);o.a.fetch(n,O.a.reorderVideos(t.playlistId,l,null,(function(){at(null)})))}}},isUserSignedIn:_,canEdit:ut,showPartialLoading:!z||!F.data||!L.data,getVideoAppLink:t.getVideoAppLink,getSeriesAppLink:t.getSeriesAppLink,fetchRestrictions:ct,setFavourite:U,hideFavouriteButton:!h(S.a.FavouriteVideos)})),!!X&&r.createElement(m.a,{isFetching:G,onClick:K})))}},968:function(t,e,n){"use strict";var r=n(0),a=n.n(r),i=n(970),o=n.n(i);function c(t){return a.a.createElement("img",{alt:"",role:"presentation",src:t.src,className:o.a.image})}var l=n(4),s=n(42),u=n(151),f=n(47);function d(t){var e=t.className||"btn btn-dark";if(!t.icon){if(t.appLink&&!s.a.isFunction(t.onClick))return a.a.createElement(f.a,{appLink:t.appLink,className:e},t.text);return a.a.createElement("button",{onClick:function(){s.a.isFunction(t.onClick)&&t.onClick(),t.appLink&&l.a.AppLinkHelper.trigger(t.appLink)},className:e},t.text)}return a.a.createElement(u.a,{className:e,onClick:t.onClick,appLink:t.appLink,svgName:t.icon},t.text)}n.d(e,"a",(function(){return p}));var p=function(t){return a.a.createElement("div",{className:"text-center pt-5 d-flex flex-column align-items-center"},t.children)};p.Image=function(t){return a.a.createElement(c,Object.assign({},t))},p.Cta=function(t){return a.a.createElement(d,Object.assign({},t))},p.Heading=function(t){return a.a.createElement("h2",{className:t.className||"h6"},t.children)},p.Info=function(t){return a.a.createElement("p",{className:t.className||"mb-3 w-50"},t.children)}},970:function(t,e,n){t.exports={image:"_3T3Ux"}},972:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(331),a=n(135),i=n(1004);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,o=u(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=o.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&l(e.prototype,n),r&&l(e,r),f}(r.BaseCollectionIdentifier)},976:function(t,e,n){"use strict";var r=n(977);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},977:function(t,e){},981:function(t,e,n){"use strict";n(972);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var a=l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=o(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(331).BaseCollectionIdentifier);n.d(e,"a",(function(){return s}))},984: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,c=void 0===o?100:o,l=function(){return Math.max(Math.floor(Math.random()*c),i)};return r(Array(n)).map((function(){return{width:"".concat(l(),"px")}}))}}},986:function(t,e,n){"use strict";var r,a=n(0),i=n(42),o=n(66),c=n(87),l=n(984),s=n(47),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))},f=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 d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||y(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 p(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||y(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 y(t,e){if(t){if("string"==typeof t)return m(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)?m(t,e):void 0}}function m(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,l=t.getParent,s=t.rootItem,u=t.data,f=t.subview,y=p(Object(a.useState)([]),2),m=y[0],v=y[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(l)){var t=[b(n,r,!0)];for(n=l(n);n;)t.unshift(b(n,r)),n=l(n);return s&&t.unshift(s),v(t)}}),[n,l,r,s]);var g=a.useRef({label:f,appLink:null,active:!0}).current;if(f){m.includes(g)||v([].concat(d(m),[g]));var w=m.filter((function(t){return t.active&&t!==g}));w.length&&(c.a.first(w).active=!1)}return m}(t,t.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(f,{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"},l.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:" "}}))}))))}))},994:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(34),o=n(30),c=n(174),l=n(995),s=n.n(l);function u(t){return a.a.createElement(a.a.Fragment,null,Array(t.numVideos).fill(null).map((function(e,n){return a.a.createElement(f,Object.assign({key:n},t))})))}function f(t){var e=Object(c.a)(),n=e===o.a.XS,r=e===o.a.SM||e===o.a.MD,l=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,!!l&&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:l?10:12},a.a.createElement("div",{className:"partial-loading-background rounded-lg ".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}},995:function(t,e,n){t.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},999:function(t,e,n){"use strict";var r,a=n(21),i=n(175),o=n(1003),c=n(1008);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var l=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},s=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return y}));var u=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},d=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",y={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.b.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var a="/api/domain/v2/share/".concat(t);return{url:"".concat(a,"?query=").concat(i.b.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.b.PLAYLIST_COLLECTION,",").concat(p).concat(u(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.b.PLAYLIST_VIDEO_COLLECTION).concat(u(n)),key:d("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.b.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(u(n)).concat(f(e)),key:d("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:d("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:a.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:a.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:a.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:a.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:s("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:a.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return o.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:a.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:a.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:a.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:a.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[14],{1002:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n(74),i=n(16),o=n(42);function c(t){return function(t){if(Array.isArray(t))return l(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 l(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 l(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 l(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 s=function(t){return t&&t.data&&t.data.pagination&&t.data.pagination.cursors&&t.data.pagination.cursors.next};function u(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.shouldFetch,u=r&&r.data&&r.data.data,f=s(r);f&&(a=(r=i.a.getResponse(e,n(f))).isFetching,!r.shouldFetch);){var d=r.data&&r.data.data;d&&u.push.apply(u,c(d));var p=s(r);f=p===f?null:p}return{shouldInitialFetch:l,items:u,nextCursor:f,isFetching:a}}}}),[t]))}},1003:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(87),a=n(66);function i(t){return function(t){if(Array.isArray(t))return o(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 o(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 o(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 o(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 c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var a=r.a.moveItem(t,e,n),i=n<t.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var o=[],c=a.a.deepClone(n),l=[t],s=n[t],u=!!s&&!!s.data&&s.data.length;s&&Array.isArray(s.data);){o.push.apply(o,i(s.data));var f=s.pagination&&s.pagination.cursors&&s.pagination.cursors.next,d=!!f&&"".concat(t,":").concat(f);(s=f&&n[d])&&l.push(d)}if(!o.length)return n;var p=r.a.findIndex(o,(function(t){return t.id===e.sourceMemberId})),y=[].concat(o),m=y.splice(p,1),b=e.destinationMemberId?r.a.findIndex(y,(function(t){return t.id===e.destinationMemberId})):y.length;return y.splice(b,0,m[0]),l.forEach((function(t){var e=y.splice(0,u);c[t].data=e})),c}}},1004:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1005:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(42);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])}},1006:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),a=n(34),i=n(56),o=n(25),c=n(1007),l=n.n(c);function s(t){return r.createElement("div",{className:"p-3 text-center ".concat(l.a.container)},t.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:l.a.spinner}):r.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:t.onClick}))}},1007:function(t,e,n){t.exports={container:"_1_KC6",spinner:"VXlcl"}},1008:function(t,e,n){"use strict";var r=n(976);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var a=n(981);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return a.a}))},1029:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),a=n(1002),i=n(1005);function o(t,e){var n=e,o=Object(a.a)(t&&function(e){return t(e).key});return Object(i.a)((function(){if(e&&t&&o)return n(o.nextCursor)}),!!(null==o?void 0:o.nextCursor),null==o?void 0:o.isFetching),Object(r.useEffect)((function(){o&&o.shouldInitialFetch&&e&&n()}),[null==o?void 0:o.shouldInitialFetch,e]),{items:null==o?void 0:o.items,hasMore:!!(null==o?void 0:o.nextCursor),isFetching:null==o?void 0:o.isFetching}}},1041:function(t,e,n){"use strict";var r,a=n(175);!function(t){t.Playlists="playlists",t.Series="series",t.Videos="videos"}(r||(r={})),n.d(e,"a",(function(){return f}));var i=function(){return"/api/domain/v1/subjects?query=".concat(a.b.CLASSIFICATION,"&type=subject")},o=function(t,e){return"/api/domain/v1/subjects/".concat(t,"?query=").concat(a.a.ClassificationWithFollowersAndMemberCount(e))},c=function(t){return"/api/domain/v1/subjects/".concat(t,"/path")},l=function(t){return"/api/domain/v1/subjects/".concat(t,"/children?query=").concat(a.b.CLASSIFICATION)},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a="/api/domain/v1/subjects/".concat(t,"/").concat(e),i=[];n&&i.push("query=".concat(n)),r&&i.push("cursor=".concat(r));var o=i.join("&");return o&&(a+="?".concat(o)),a},u=function(t){return"/api/domain/v1/subjects/objects/".concat(t,"/classifications/paths?type=curriculum")},f={presentation:function(){return{url:"/api/domain/v1/subjects/presentations?type=subject",key:"presentation",bootstrapName:"presentation",expiryTime:1/0}},classifications:function(){return{url:i(),key:"classifications",expiryTime:1/0}},classification:function(t,e,n){return{url:o(t,e),key:"classification:".concat(t),error:n,expiryTime:1/0}},path:function(t){return{url:c(t),key:"classification:".concat(t,":path"),expiryTime:1/0}},children:function(t){return{url:l(t),key:"classification:".concat(t,":children"),expiryTime:1/0}},videos:function(t,e,n,i){if(e){var o="limit:100";n.length&&(o+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var c="{".concat(o,"}").concat(a.b.VIDEO_COLLECTION,",_hasInteractives")+",".concat(a.a.SubjectPresentationAudienceFilter(e),",favouritedby{id:").concat(i,"}");return{url:s(t,r.Videos,c),key:"classification:".concat(t,":").concat(r.Videos,":").concat(n.join(":")),expiryTime:1/0}}},playlists:function(t,e,n){if(e){var i="limit:100,orderby:name";n.length&&(i+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var o="{".concat(i,"}").concat(a.b.PLAYLIST_COLLECTION)+",".concat(a.a.SubjectPresentationAudienceFilter(e));return{url:s(t,r.Playlists,o),key:"classification:".concat(t,":").concat(r.Playlists,":").concat(n.join(":")),expiryTime:1/0}}},series:function(t,e,n){if(e){var i="limit:100";n.length&&(i+=",".concat(a.a.SubjectPresentationActiveAudienceFilter(n)));var o="{".concat(i,"}").concat(a.b.SERIES)+",".concat(a.a.SubjectPresentationAudienceFilter(e));return{url:s(t,r.Series,o),key:"classification:".concat(t,":").concat(r.Series,":").concat(n.join(":")),expiryTime:1/0}}},curriculumLinks:function(t){return{url:u(t),key:"curriculum:links:".concat(t),expiryTime:1/0,normalize:!1}}}},1058: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"]},1061:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(4),a=n(115),i=n(224),o=n(177),c=n(344),l=n(345),s={notFound:i.a,forbidden:{rating:c.a,yearLevel:c.a,region:l.a,privacy:c.a},badRequest:o.a};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},s),e);t&&t!==a.a.Ok&&(t!==a.a.NotFound?t!==a.a.Forbidden?r.a.ErrorHelper.throw(new n.badRequest):r.a.ErrorHelper.throw(new n.forbidden.privacy):r.a.ErrorHelper.throw(new n.notFound))}},1063: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}))},1083:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(21),a=n(999),i=n(175),o=n(67),c=n(113),l=Object.assign(Object.assign({},a.a),{getPlaylist:function(t,e,n){return{url:"{gateway}/v1/objects/".concat(t,"?query=").concat(i.b.PLAYLIST,",_isClickViewPlaylist,_liteOwner"),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){return{url:o.a.urlBuilder("{gateway}/v1/objects/".concat(t),{query:"".concat(i.b.PLAYLIST,",_isClickViewPlaylist,_liteOwner"),shareId:e}),key:"shared:playlist:".concat(t,":").concat(e),success:n,error:r}},getPlaylistVideos:function(t,e){var n="{gateway}/v1/objects/".concat(t,"/videos"),r={query:"{orderBy:orderindex,limit:100}".concat(c.a.VideoCollectionWithAssocs(null,!0))};return e&&(r.cursor=e),{url:o.a.urlBuilder(n,r),key:"playlist:".concat(t,":videos").concat(e?":".concat(e):"")}},getSharedPlaylistVideos:function(t,e,n){var r="{gateway}/v1/objects/".concat(t,"/videos"),a={query:"{orderBy:orderindex,limit:100}".concat(c.a.VideoCollectionWithAssocs(null,!0)),shareId:e};return n&&(a.cursor=n),{url:o.a.urlBuilder(r,a),key:"shared:playlist:".concat(t,":").concat(e,":videos:").concat(n)}},copyPlaylist:function(t,e,n,a){return{url:"{gateway}/v1/playlists/copy",key:"copy:playlist",data:{playlistId:t},type:r.a.POST,invalidationKeys:"user:playlists",success:e,error:n,always:a}}})},1084:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),a=n(1061);function i(t,e){Object(r.useEffect)((function(){Object(a.a)(t.statusCode,e)}),[t.statusCode,e])}},1105:function(t,e,n){"use strict";var r=n(0),a=n(82),i=n.n(a),o=function(t,e){return e?i.a.createPortal(t,e):t},c=n(8),l=n(56),s=n(47),u=n(25);function f(t){var e=Object.assign({textShadow:!0},t),n=e.backToName,a=e.appLink,i=e.color,o=e.extraClasses,f=e.textShadow,d=n?c.a.getPhrase("shared.backButton","backTo",{backToName:n}):c.a.getPhrase("shared.backButton","back"),p="black"===i?"":"text-white",y=f?"text-shadow":"";return r.createElement(s.a,{appLink:a,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(p," ").concat(y)},r.createElement(l.a,{svgName:u.b.ChevronLeft,size:l.b.Medium}),r.createElement("span",{className:"ml-1"},d))}f.defaultProps={color:"black",extraClasses:""};var d=n(106),p=n(57),y=n(343),m=n(983),b=n(283),v=n(70),h=n(332),g=n(174),w=n(30),S=n(1132),E=n.n(S);function I(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(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 j(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 j(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 A})),n.d(e,"b",(function(){return k}));var O="".concat(y.a[p.c.Banners].width,":").concat(y.a[p.c.Banners].height);var A=r.memo((function(t){var e=t.heading,n=t.banner,a=t.imageCdnUrl,i=t.actions,c=t.sortComponent,l=t.blockColourClass,s=r.useContext(b.a),u=I(Object(v.a)(h.a.LAYOUT_CONTAINER_FLUID),1)[0],y=d.a.createBannerUrl(n,{fallbackBaseUrl:a,fallbackCategoryName:e,type:p.c.Banners},{width:Object(g.a)()===w.a.XXL?1920:1200,ratio:O,resizeType:p.d.Cover,format:"jpg"}),S={className:"banner banner-header",style:{backgroundImage:"url('".concat(y,"')")}};return!n&&l&&(delete S.style,S.className+=" ".concat(l)),o(r.createElement("div",Object.assign({},S),r.createElement("div",{className:"".concat(u?"container-fluid":"container"," position-relative")},t.backButtonAppLink&&r.createElement("div",{className:"pt-3"},r.createElement(f,{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"},e),!!i&&r.createElement("div",{className:E.a.actionsContainer},r.createElement(m.a,{actions:i,sortComponent:c,actionsDropdownClassName:t.actionsDropdownClassName}))))),null==s?void 0:s.container)}),(function(t,e){return t.actions===e.actions}));function k(){var t=r.useContext(b.a);return o(r.createElement("div",{className:"partial-banner partial-loading-background"}),null==t?void 0:t.container)}},1132:function(t,e,n){t.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF"}},1246:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(134),a={userVideoHistory:function(t,e,n,a){var i="video:history",o="{gateway}/v1/videos/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}}}},1597:function(t,e,n){t.exports={partialDescription:"_3cyjk"}},1598:function(t,e,n){t.exports={sortableItem:"_2eiPB"}},1721:function(t,e,n){"use strict";n.r(e);var r=n(0),a=n.n(r),i=n(74),o=n(16),c=n(66),l=n(8),s=n(87),u=n(3),f=n(124),d=n(48),p=n(329),y=n(1029),m=n(1006),b=n(1003);function v(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(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 h(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 h(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=n(1017),w=n(328),S=n(88),E=n(133),I=n(1084),j=n(335),O=n(1083),A=n(330),k=n(1246),P=n(214);function C(t){return function(t){if(Array.isArray(t))return L(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 L(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 L(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 L(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 T={ratings:!0,favourites:!0,watchHistory:!0};function x(t,e){var n=o.a.useGetResponse(null==e?void 0:e.key),r=o.a.useGetFetch(e);t&&e&&n.shouldFetch&&r()}var N=n(1033),F=n(58),_=n(45),D=n(83),V=n(30),B=n(25),U=n(1105),R=n(1063),M=n(986),H=n(1058),Y=n(10),q=n(7),W=n(1597),K=n.n(W);function $(){return a.a.createElement(a.a.Fragment,null,a.a.createElement(U.b,null),a.a.createElement("div",{className:"mb-2"},a.a.createElement("div",{className:"partial-loading-background my-2 border-bottom ".concat(K.a.partialDescription)})))}function z(t){return function(t){if(Array.isArray(t))return J(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||G(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 X(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||G(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 G(t,e){if(t){if("string"==typeof t)return J(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)?J(t,e):void 0}}function J(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 Q=l.a.encloseNamespace("playlists.playlistHeader"),Z=function(t){return{application:q.a.SUBJECT,action:Y.a.Subjects.CLASSIFICATION,args:[t.id,F.a.slugify(t.name)]}};function tt(t){var e,n=X(r.useState(t.isFollowing),2),a=n[0],i=n[1],o=X(r.useState(!1),2),c=o[0],l=o[1];r.useEffect((function(){return i(t.isFollowing)}),[t.isFollowing]);var s=Object(D.a)(V.a.XS);if(t.showPartialLoading)return r.createElement($,null);var f=t.playlist.description,d=t.application,p=[t.playlist.id],y=t.playlist,m={location:u.LocationContext.Banner,entity:u.EntityType.Playlist,workflowPhase:u.WorkflowPhase.Start},b=[];return t.playAllAppLink&&b.push({label:Q("playAll"),appLink:t.playAllAppLink,svgName:B.b.Play,className:"btn btn-outline-dark mr-2",button:!s,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Play})}),t.canSharePlaylists&&b.push({label:Q("share"),appLink:{application:q.a.DEFAULT,action:Y.a.Default.SHARE,args:[t.playlist.id],params:{entityType:"playlist"}},svgName:B.b.Share2,className:"btn btn-outline-dark mr-2",button:!s,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Share})}),t.canEdit&&b.push({label:Q("edit"),appLink:{application:d,action:Y.a.Playlists.EDIT_PLAYLIST,args:p},svgName:B.b.Edit,className:"btn btn-outline-dark mr-2",button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Edit})}),t.canEdit||b.push({label:Q(a?"unfollow":"follow"),onClick:function(){i(!a),l(!0),t.follow(!a,(function(){l(!1),_.a.logUserAction(y,Object.assign(Object.assign({},m),{actionType:u.UserAction.Follow,descriptor:a?u.ToggleDescriptor.Off:u.ToggleDescriptor.On,workflowPhase:u.WorkflowPhase.Complete}))}),(function(){l(!1),i(a)}))},svgName:a?B.b.Check:B.b.Bell,className:"btn follow-btn btn-".concat(a?"outline-dark":"dark"," mr-2"),button:!s,showSpinner:c}),(null===(e=t.playlist._isClickViewPlaylist)||void 0===e?void 0:e.value)&&b.push({label:Q("copy"),appLink:{application:q.a.PLAYLISTS,action:Y.a.Playlists.COPY_PLAYLIST,args:p},button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Copy})}),t.canEdit&&b.push({label:Q("delete"),appLink:{application:d,action:Y.a.Playlists.DELETE_PLAYLIST,args:p},svgName:B.b.Delete,className:"text-danger",button:!1,analyticsData:y,analyticsOptions:Object.assign(Object.assign({},m),{actionType:u.UserAction.Delete})}),r.createElement(r.Fragment,null,r.createElement(U.a,{heading:t.playlist.name,banner:t.playlist.banner,imageCdnUrl:t.imageCdnUrl,actions:b.length&&b,actionsDropdownClassName:"btn btn-outline-dark",blockColourClass:Object(R.a)(t.playlist,H.a)}),(!!f||!!t.classificationId)&&r.createElement("div",{className:"border-bottom py-3"},t.classificationId?t.playlist&&t.topicPath?r.createElement("div",{className:"pb-2"},r.createElement(M.b,{currentItem:t.playlist,type:M.a.Static,getItemAppLink:Z,data:[].concat(z(t.topicPath),[t.playlist]),rootItem:{label:Q("topics"),appLink:{application:q.a.SUBJECT,action:Y.a.Subjects.CLASSIFICATION_ALL}}})):r.createElement(M.c,null):r.createElement(r.Fragment,null),!!f&&r.createElement("p",{className:"mb-0"},f)))}var et=n(4),nt=n(42),rt=n(29),at=n(1042),it=n(994),ot=n(1598),ct=n.n(ot);function lt(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.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 ft(t){var e=t.onSortComplete,n=t.onSortStart,a=t.showPartialLoading,i=ut(t,["onSortComplete","onSortStart","showPartialLoading"]),o=lt(r.useState(),2),c=o[0],l=o[1],s=function(t){nt.a.isFunction(n)&&n(t)};return a?r.createElement(it.a,{withReordering:!0}):t.canEdit?r.createElement(at.b,Object.assign({},i,{currentSortingIndex:c,updateBeforeSortStart:function(t){var e=t.index;return l(e)},onSortStart:function(t){var e=t.index;return s(e)},onSortEnd:function(t){l(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})):r.createElement(at.c,Object.assign({},i))}var dt=n(95),pt=n(968),yt=n(52);function mt(){return a.a.createElement(dt.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(dt.b,{phrase:"heading"})),a.a.createElement(pt.a.Info,null,a.a.createElement(dt.b,{phrase:"info"}))))}var bt=n(480),vt=n(481);function ht(t){return function(t){if(Array.isArray(t))return gt(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 gt(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 gt(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 gt(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 wt(t){var e=t&&t.length&&t.map((function(t){return t.dateAssociated}));return e&&e.length?s.a.max(e,(function(t){return new Date(t).getTime()})):null}function St(t,e,n){_.a.logUserAction({id:e,playlistId:t},{location:u.LocationContext.VideoList,entity:u.EntityType.Video,actionType:u.UserAction.Move,workflowPhase:n})}var Et={notFound:bt.a,forbidden:{privacy:vt.a}},It=n(1041);function jt(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ot(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 Ot(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 Ot(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 At}));function At(t){var e,n=Object(i.useDispatch)(),a=Object(w.a)(),h=Object(E.a)().hasPermissions,L=o.a.useBasicFetch(f.a.config()),F=o.a.useBasicFetch(d.a.currentUser()),_=!c.a.isEmpty(F.data),D=o.a.useBasicFetch(t.classificationId&&It.a.path(t.classificationId)),V=Object(N.b)(N.a.VideoItem),U=Object(j.a)(u.LocationContext.VideoThumbnail),R=t.shareId?O.a.getSharedPlaylist(t.playlistId,t.shareId):O.a.getPlaylist(t.playlistId),M=o.a.useBasicFetch(R);Object(I.a)(M,Et);var H=function(e){return t.shareId?O.a.getSharedPlaylistVideos(t.playlistId,t.shareId,e):O.a.getPlaylistVideos(t.playlistId,e)},W=o.a.useBasicFetch(!!F.data&&O.a.getIsFollowingPlaylist(t.playlistId,F.data.id)),K=function(t){o.a.getFetch(n,H(t))()},$=Object(y.a)(H,K),z=$.items,X=$.hasMore,G=$.isFetching;!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},T),e),r=n.ratings,a=n.favourites,i=n.watchHistory,c=o.a.useBasicFetch(d.a.currentUser()),l=t&&(Array.isArray(t)?t.filter(Boolean).map((function(t){return t.id})):t.data.filter(Boolean).map((function(t){return t.id}))),s=c.data,u=[];r&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&A.a.videoRatings(l)])),a&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&s&&P.a.isFavourited(s.id,l)])),i&&(u=[].concat(C(u),[!!(null==l?void 0:l.length)&&s&&k.a.videoHistory(l)])),u.forEach((function(e){return x(!!t,e)}))}(z);var J,Q,Z,et,nt=jt((J=z,Q=v(Object(r.useState)(),2),Z=Q[0],et=Q[1],Object(r.useEffect)((function(){Z&&(J.length!==Z.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}(J,Z))&&et(null)}),[J]),[Z,et]),2),rt=nt[0],at=nt[1],it=_&&!!z&&!!z.length&&A.a.getRestrictions(z.map((function(t){return t.id}))),ot=o.a.useGetResponse(it&&it.key),ct=o.a.useGetFetch(it);it&&ot.shouldFetch&&ct(),Object(p.a)(!!M.data&&M.data.name,[M.data]);var lt,st,ut=!!t.allowEdit&&function(t,e){return!(c.a.isEmpty(e)||!t||c.a.isEmpty(t._liteOwner))&&t._liteOwner.id.toString()===e.id.toString()}(M.data,F.data),dt=ut?(lt=V,st=t.playlistId,function(t){return[].concat(ht(lt(t)),[{label:l.a.getPhrase("playlists.playlist","removeFromPlaylist"),svgName:B.b.Delete,appLink:{application:q.a.PLAYLISTS,action:Y.a.Playlists.REMOVE_VIDEO_FROM_PLAYLIST,args:[t.id,st]},className:"text-danger",analyticsOptions:{entity:u.EntityType.Video,actionType:u.UserAction.Dissociate,location:u.LocationContext.VideoListItem,workflowPhase:u.WorkflowPhase.Start,descriptor:u.AssocDescriptor.Playlist},analyticsData:{id:t.id,playlistId:st}}])}):V,pt=!!z&&0===z.length;return r.createElement(g.a.Provider,{value:dt},r.createElement("div",{className:"bg-white px-3"},r.createElement(tt,{playlistId:t.playlistId,playlist:M.data,hasVideos:!pt,isFollowing:null===(e=W.data)||void 0===e?void 0:e.isFollowing,follow:function(e,r,i){var c=e?O.a.followPlaylist:O.a.unfollowPlaylist;o.a.fetch(n,c(t.playlistId,F.data.id,r,(function(){i(),a.error(l.a.getPhrase("playlists.playlist",e?"followError":"unfollowError"))})))},application:t.application,canEdit:ut,canSharePlaylists:h(S.a.SharePlaylists),showBreadcrumbs:t.showBreadcrumbs,showDateMetadata:t.showDateMetadata,playAllAppLink:s.a.first(z)&&t.getVideoAppLink(s.a.first(z),!0),showPartialLoading:!(M.data&&z&&F.data&&L.data&&W.data),lastUpdated:!!z&&wt(z),imageCdnUrl:!!L.data&&L.data.imageCdnUrl,returnAppLink:t.returnAppLink,classificationId:t.classificationId,topicPath:D.data}),r.createElement("div",{className:"mt-2"},pt?r.createElement(mt,null):r.createElement(ft,{videos:rt||z,playlistId:!!M.data&&M.data.id,onSortStart:function(e){var n=z[e];n&&St(t.playlistId,n.id,u.WorkflowPhase.Start)},onSortComplete:function(e,r){if(e!==r){var a=z[e];if(a){var i=b.a.reorder(z,e,r),c=i.reorderedItems,l=i.reorderRequest;at(c),St(t.playlistId,a.id,u.WorkflowPhase.Complete);o.a.fetch(n,O.a.reorderVideos(t.playlistId,l,null,(function(){at(null)})))}}},isUserSignedIn:_,canEdit:ut,showPartialLoading:!z||!F.data||!L.data,getVideoAppLink:t.getVideoAppLink,getSeriesAppLink:t.getSeriesAppLink,fetchRestrictions:ct,setFavourite:U,hideFavouriteButton:!h(S.a.FavouriteVideos)})),!!X&&r.createElement(m.a,{isFetching:G,onClick:K})))}},968:function(t,e,n){"use strict";var r=n(0),a=n.n(r),i=n(970),o=n.n(i);function c(t){return a.a.createElement("img",{alt:"",role:"presentation",src:t.src,className:o.a.image})}var l=n(4),s=n(42),u=n(151),f=n(47);function d(t){var e=t.className||"btn btn-dark";if(!t.icon){if(t.appLink&&!s.a.isFunction(t.onClick))return a.a.createElement(f.a,{appLink:t.appLink,className:e},t.text);return a.a.createElement("button",{onClick:function(){s.a.isFunction(t.onClick)&&t.onClick(),t.appLink&&l.a.AppLinkHelper.trigger(t.appLink)},className:e},t.text)}return a.a.createElement(u.a,{className:e,onClick:t.onClick,appLink:t.appLink,svgName:t.icon},t.text)}n.d(e,"a",(function(){return p}));var p=function(t){return a.a.createElement("div",{className:"text-center pt-5 d-flex flex-column align-items-center"},t.children)};p.Image=function(t){return a.a.createElement(c,Object.assign({},t))},p.Cta=function(t){return a.a.createElement(d,Object.assign({},t))},p.Heading=function(t){return a.a.createElement("h2",{className:t.className||"h6"},t.children)},p.Info=function(t){return a.a.createElement("p",{className:t.className||"mb-3 w-50"},t.children)}},970:function(t,e,n){t.exports={image:"_3T3Ux"}},972:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(331),a=n(135),i=n(1004);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d(t);if(e){var a=d(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,r,o=u(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=o.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&l(e.prototype,n),r&&l(e,r),f}(r.BaseCollectionIdentifier)},976:function(t,e,n){"use strict";var r=n(977);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},977:function(t,e){},981:function(t,e,n){"use strict";n(972);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var a=l(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=o(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return a(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(331).BaseCollectionIdentifier);n.d(e,"a",(function(){return s}))},984: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,c=void 0===o?100:o,l=function(){return Math.max(Math.floor(Math.random()*c),i)};return r(Array(n)).map((function(){return{width:"".concat(l(),"px")}}))}}},986:function(t,e,n){"use strict";var r,a=n(0),i=n(42),o=n(66),c=n(87),l=n(984),s=n(47),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))},f=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 d(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||y(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 p(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,c=t[Symbol.iterator]();!(r=(o=c.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){a=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return n}(t,e)||y(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 y(t,e){if(t){if("string"==typeof t)return m(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)?m(t,e):void 0}}function m(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,l=t.getParent,s=t.rootItem,u=t.data,f=t.subview,y=p(Object(a.useState)([]),2),m=y[0],v=y[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(l)){var t=[b(n,r,!0)];for(n=l(n);n;)t.unshift(b(n,r)),n=l(n);return s&&t.unshift(s),v(t)}}),[n,l,r,s]);var g=a.useRef({label:f,appLink:null,active:!0}).current;if(f){m.includes(g)||v([].concat(d(m),[g]));var w=m.filter((function(t){return t.active&&t!==g}));w.length&&(c.a.first(w).active=!1)}return m}(t,t.type===r.Dynamic);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement(f,{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"},l.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:" "}}))}))))}))},994:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),a=n.n(r),i=n(34),o=n(30),c=n(174),l=n(995),s=n.n(l);function u(t){return a.a.createElement(a.a.Fragment,null,Array(t.numVideos).fill(null).map((function(e,n){return a.a.createElement(f,Object.assign({key:n},t))})))}function f(t){var e=Object(c.a)(),n=e===o.a.XS,r=e===o.a.SM||e===o.a.MD,l=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,!!l&&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:l?10:12},a.a.createElement("div",{className:"partial-loading-background rounded-lg ".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}},995:function(t,e,n){t.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}},999:function(t,e,n){"use strict";var r,a=n(21),i=n(175),o=n(1003),c=n(1008);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var l=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},s=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return y}));var u=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},d=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",y={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.b.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var a="/api/domain/v2/share/".concat(t);return{url:"".concat(a,"?query=").concat(i.b.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.b.PLAYLIST_COLLECTION,",").concat(p).concat(u(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.b.PLAYLIST_VIDEO_COLLECTION).concat(u(n)),key:d("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.b.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(u(n)).concat(f(e)),key:d("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:d("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:a.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:a.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:a.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:a.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:s("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:a.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return o.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:a.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:a.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:a.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:a.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[16],{1003:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(87),o=n(66);function i(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}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var o=r.a.moveItem(t,e,n),i=n<t.length-1?o[n+1].id:null;return{reorderedItems:o,reorderRequest:{sourceMemberId:o[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var a=[],c=o.a.deepClone(n),u=[t],l=n[t],s=!!l&&!!l.data&&l.data.length;l&&Array.isArray(l.data);){a.push.apply(a,i(l.data));var f=l.pagination&&l.pagination.cursors&&l.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(l=f&&n[y])&&u.push(y)}if(!a.length)return n;var p=r.a.findIndex(a,(function(t){return t.id===e.sourceMemberId})),d=[].concat(a),m=d.splice(p,1),g=e.destinationMemberId?r.a.findIndex(d,(function(t){return t.id===e.destinationMemberId})):d.length;return d.splice(g,0,m[0]),u.forEach((function(t){var e=d.splice(0,s);c[t].data=e})),c}}},1004:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1008:function(t,e,n){"use strict";var r=n(976);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var o=n(981);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return o.a}))},1082:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return o}));var o={isNumber:function(t){return o.isType(t,"number")},isString:function(t){return o.isType(t,"string")},isType:function(t,e){return r(t)===e}}},1125:function(t,e,n){t.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},1175:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),o=n.n(r),i=n(95),a=n(52),c=n(1225),u=n.n(c);function l(t){var e=t.query,n=void 0===e?"":e;return o.a.createElement("div",{className:"d-flex flex-column align-items-center text-center"},o.a.createElement("img",{alt:"",role:"presentation",src:a.a.EmptyStates.TYPEAHEAD_RESULTS,className:"pb-2 ".concat(u.a.emptyState)}),o.a.createElement("h2",{className:"h6"},o.a.createElement(i.b,{namespace:"shared.typeaheadEmptyState",phrase:"noResults",options:{query:n,smartCount:n.length}})))}},1203:function(t,e,n){"use strict";var r=n(0),o=n(961),i=n(225),a=n.n(i),c=n(42),u=n(8),l=n(83),s=n(30),f=n(21),y=n(16),p=n(66),d=n(1082),m=n(1125),g=n.n(m);function h(t){return function(t){if(Array.isArray(t))return v(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 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)||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 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}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S,O=[{empty:!0}];function I(t,e){return p.a.isObject(t)&&t.hasOwnProperty(e)&&d.a.isString(t[e])}function w(t,e,n){return function(r){var o=r.value;if(o.length||n(),!(o.length<t.activationLength)){if(t.local){var i=c.a.isFunction(t.getLocalSuggestions)?t.getLocalSuggestions(o,t.local):(u=o,l=t.local,s=t.valueKey,(p=u.trim().toLowerCase()).length?l.filter((function(t){return!(!I(t,s)||!d.a.isString(t[s]))&&t[s].trim().toLowerCase().includes(p)})):[]),a=!i.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(b(e={},S.Local,i),b(e,S.Empty,a?O:[]),e))}))}var u,l,s,p;t.getRemoteUrl&&function(t,e,n,r){var o=c.a.isFunction(t)&&t(e);o&&y.a.ajaxRequest({resource:o,type:f.a.GET,success:n,error:function(){},headers:r})}(t.getRemoteUrl,o,(function(n){var r=c.a.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(n):n,o=!r.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(b(e={},S.Remote,r),b(e,S.Empty,o?O:[]),e))}))}),t.requestHeaders)}}}function P(t,e,n,r,o,i,a){var u=function(e){return t[e]||[]},l=e?u(S.Recent):[],s=u(S.Local),f=u(S.Remote),y=u(S.Empty);if(y.length&&n)return[{data:y}];var p=[];l.length&&p.push({title:r,data:l});var d=[].concat(h(s),h(f));return d.length?(Number.isInteger(a)&&d.length>a&&(d=d.slice(0,a)),c.a.isFunction(i)?p.push.apply(p,h(i(d))):p.push({title:o,data:d}),p):p}function C(t){return t.data}function E(t){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(g.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(t?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:t?"":g.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(g.a.sectionContainer)}}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=E(e),r=Object.assign(n,t);return r}!function(t){t.Local="local",t.Recent="recent",t.Remote="remote",t.Empty="empty"}(S||(S={}));var k=n(56),R=n(25),A=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 o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function L(t,e,n,r,o){var i="form-control";return n||(i+=" ".concat(g.a.inputWithoutHighlight)),"left"===t&&(i+=" ".concat(g.a.inputWithLeftIcon)),("right"===t&&!e||"left"===t&&e)&&(i+=" ".concat(g.a.inputWithRightIcon)),"right"===t&&e&&(i+=" ".concat(g.a.inputWithTwoRightIcons)),"lg"===o&&(i+=" form-control-lg"),"sm"===o&&(i+=" form-control-sm"),r&&(i+="".concat(r)),i}function _(t){var e="d-inline-block svg-container";return c.a.isFunction(t)?e+" cursor-pointer":e}function T(t){var e=t.onClickSearchIcon,n=t.searchIconPlacement,o=t.showClearInputIcon,i=t.onClickClearInput,a=t.highlightOnFocus,c=t.className,u=t.formSize,l=A(t,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),s=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(k.a,{svgName:R.b.Search,size:k.b.Standard,onClick:e,className:_(e)}))};return r.createElement("div",{className:"position-relative ".concat(g.a.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(g.a.iconContainer," ").concat(g.a.leftIconContainer)},r.createElement(s,null)),r.createElement("input",Object.assign({className:L(n,o,a,c,u)},l)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(g.a.iconContainer," ").concat(g.a.rightIconContainer)},!!o&&r.createElement((function(){return r.createElement("div",{className:"d-inline-block text-muted ".concat(g.a.clearButton)},r.createElement(k.a,{svgName:R.b.Close,size:k.b.Standard,onClick:i,className:_(i)}))}),null),"right"===n&&r.createElement(s,null)))}function x(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,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(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 F(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 F(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 D}));var N=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 o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},B=c.a.isFunction;function V(t){return t.renderAsForm?r.createElement("form",{onSubmit:t.onSubmit},t.children):r.createElement(r.Fragment,null,t.children)}function D(t){var e,n,i,f=(e=t.initialSuggestions,n=t.recentSearches,b(i={},S.Recent,n),b(i,S.Local,e),b(i,S.Remote,[]),b(i,S.Empty,[]),i),y=x(r.useState(t.initialQuery||""),2),p=y[0],d=y[1],m=x(r.useState(f),2),g=m[0],h=m[1],v=Object(l.a)(s.a.XS);r.useEffect((function(){var e=t.initialQuery||"";p!==e&&d(e)}),[t.initialQuery]);var O=function(){h(f)},E=function(e){e.preventDefault(),B(t.onSubmit)&&t.onSubmit(p)};return r.createElement(V,{onSubmit:E,renderAsForm:!!t.renderAsForm},r.createElement(o,Object.assign({suggestions:P(g,!p,!!t.getEmptyStateComponent,t.recentSearchHeading||u.a.getPhrase("shared.searchBar","recentSearchHeading"),t.suggestionsHeading,t.getSections,t.suggestionLimit),onSuggestionsFetchRequested:w(t,h,O),onSuggestionsClearRequested:function(){t.alwaysRenderSuggestions||O()},onSuggestionSelected:function(e,n){var r=n.suggestion;r.empty||(t.clearQueryOnSelect&&d(""),t.onSuggestionSelected(r))},getSuggestionValue:function(e){return t.updateQueryOnSelection?function(t,e){return I(e,t)?e[t]:""}(t.valueKey,e):p},renderSuggestion:function(e){return e&&e.empty?p.length>=t.activationLength&&c.a.isFunction(t.getEmptyStateComponent)?t.getEmptyStateComponent(p):r.createElement(r.Fragment,null):B(t.getSuggestionComponent)?t.getSuggestionComponent(e):function(t,e){return I(e,t)?r.createElement(r.Fragment,null,e[t]):r.createElement(r.Fragment,null)}(t.valueKey,e)},renderSuggestionsContainer:function(e){var n=e.containerProps,o=n.ref,i=N(n,["ref"]);return t.customScrollbarProps?r.createElement(a.a,Object.assign({ref:o},t.customScrollbarProps,i),e.children):r.createElement("div",Object.assign({ref:o},i),e.children)},alwaysRenderSuggestions:t.alwaysRenderSuggestions,focusInputOnSuggestionClick:!v,inputProps:{placeholder:t.placeholder||u.a.getPhrase("shared.searchBar","placeholder"),value:p,onChange:function(e,n){var r=n.newValue;d(r),B(t.onQueryChange)&&t.onQueryChange(r)},onKeyDown:function(e){8===e.keyCode&&t.onBackspace&&!p&&t.onBackspace()},autoFocus:!!t.autoFocusInput,highlightOnFocus:t.highlightInputOnFocus,onClickSearchIcon:!!t.submitOnClickSearchIcon&&E,searchIconPlacement:t.searchIconPlacement,showClearInputIcon:!!t.showClearInputIcon&&!!p.length,onClickClearInput:function(){d(""),B(t.onClickClearInput)&&t.onClickClearInput()},formSize:t.size},renderInputComponent:T,theme:j(t.theme,!!g.empty.find((function(t){return t.empty}))),multiSection:!0,renderSectionTitle:function(e){return function(t,e){if(t.title)return r.createElement("div",{className:"pb-1 ".concat(null!=e?e:"")},r.createElement("strong",null,t.title))}(e,t.sectionTitleClassName)},getSectionSuggestions:C},t.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}D.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0}},1225:function(t,e,n){t.exports={emptyState:"_1oZbe"}},1356:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={getRecentItem:function(t,e){var n=e.cacheGet(t);return Array.isArray(n)||(n=[]),n},setRecentItem:function(t,e,n){Array.isArray(e)&&n.cacheSet(t,e)},addRecentItem:function(t,e,n){var o=n.id,i=n.limit,a=void 0===i?5:i,c=r.getRecentItem(t,e),u=c.indexOf(o);return u>-1&&c.splice(u,1),c.unshift(o),c.length>a&&(c=c.slice(0,a)),r.setRecentItem(t,c,e),c}}},972:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(331),o=n(135),i=n(1004);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(f,t);var e,n,r,a=s(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=a.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&u(e.prototype,n),r&&u(e,r),f}(r.BaseCollectionIdentifier)},976:function(t,e,n){"use strict";var r=n(977);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},977:function(t,e){},981:function(t,e,n){"use strict";n(972);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(331).BaseCollectionIdentifier);n.d(e,"a",(function(){return l}))},999:function(t,e,n){"use strict";var r,o=n(21),i=n(175),a=n(1003),c=n(1008);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var u=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},l=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return d}));var s=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},y=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",d={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.b.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(i.b.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.b.PLAYLIST_COLLECTION,",").concat(p).concat(s(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.b.PLAYLIST_VIDEO_COLLECTION).concat(s(n)),key:y("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.b.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(s(n)).concat(f(e)),key:y("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:y("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:o.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:o.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:o.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:o.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:o.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return a.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:o.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:o.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:o.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:o.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[16],{1003:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(87),o=n(66);function i(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}var c={reorder:function(t,e,n){if(e===n)return{reorderedItems:t,reorderRequest:null};var o=r.a.moveItem(t,e,n),i=n<t.length-1?o[n+1].id:null;return{reorderedItems:o,reorderRequest:{sourceMemberId:o[n].id,destinationMemberId:i}}},updateState:function(t,e,n){for(var a=[],c=o.a.deepClone(n),u=[t],l=n[t],s=!!l&&!!l.data&&l.data.length;l&&Array.isArray(l.data);){a.push.apply(a,i(l.data));var f=l.pagination&&l.pagination.cursors&&l.pagination.cursors.next,y=!!f&&"".concat(t,":").concat(f);(l=f&&n[y])&&u.push(y)}if(!a.length)return n;var p=r.a.findIndex(a,(function(t){return t.id===e.sourceMemberId})),d=[].concat(a),m=d.splice(p,1),g=e.destinationMemberId?r.a.findIndex(d,(function(t){return t.id===e.destinationMemberId})):d.length;return d.splice(g,0,m[0]),u.forEach((function(t){var e=d.splice(0,s);c[t].data=e})),c}}},1004:function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.OwnedByMe="owned_by_me",t.Followed="followed",t.All="all"}(r||(r={}))},1008:function(t,e,n){"use strict";var r=n(976);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var o=n(981);n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return o.a}))},1082:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return o}));var o={isNumber:function(t){return o.isType(t,"number")},isString:function(t){return o.isType(t,"string")},isType:function(t,e){return r(t)===e}}},1125:function(t,e,n){t.exports={inputWithoutHighlight:"-L0yF",suggestionsContainerOpen:"ahMdW",sectionContainer:"xstWL",suggestionHighlighted:"_3YTCa",inputContainer:"_1wn3m",clearButton:"_1BwBs",inputWithLeftIcon:"qxZOe",inputWithRightIcon:"_3U4W-",inputWithTwoRightIcons:"_2rgzF",iconContainer:"_1DLw5",leftIconContainer:"AZCtZ",rightIconContainer:"_1R52s"}},1174:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),o=n.n(r),i=n(95),a=n(52),c=n(1225),u=n.n(c);function l(t){var e=t.query,n=void 0===e?"":e;return o.a.createElement("div",{className:"d-flex flex-column align-items-center text-center"},o.a.createElement("img",{alt:"",role:"presentation",src:a.a.EmptyStates.TYPEAHEAD_RESULTS,className:"pb-2 ".concat(u.a.emptyState)}),o.a.createElement("h2",{className:"h6"},o.a.createElement(i.b,{namespace:"shared.typeaheadEmptyState",phrase:"noResults",options:{query:n,smartCount:n.length}})))}},1202:function(t,e,n){"use strict";var r=n(0),o=n(961),i=n(225),a=n.n(i),c=n(42),u=n(8),l=n(83),s=n(30),f=n(21),y=n(16),p=n(66),d=n(1082),m=n(1125),g=n.n(m);function h(t){return function(t){if(Array.isArray(t))return v(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 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)||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 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}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S,O=[{empty:!0}];function I(t,e){return p.a.isObject(t)&&t.hasOwnProperty(e)&&d.a.isString(t[e])}function w(t,e,n){return function(r){var o=r.value;if(o.length||n(),!(o.length<t.activationLength)){if(t.local){var i=c.a.isFunction(t.getLocalSuggestions)?t.getLocalSuggestions(o,t.local):(u=o,l=t.local,s=t.valueKey,(p=u.trim().toLowerCase()).length?l.filter((function(t){return!(!I(t,s)||!d.a.isString(t[s]))&&t[s].trim().toLowerCase().includes(p)})):[]),a=!i.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(b(e={},S.Local,i),b(e,S.Empty,a?O:[]),e))}))}var u,l,s,p;t.getRemoteUrl&&function(t,e,n,r){var o=c.a.isFunction(t)&&t(e);o&&y.a.ajaxRequest({resource:o,type:f.a.GET,success:n,error:function(){},headers:r})}(t.getRemoteUrl,o,(function(n){var r=c.a.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(n):n,o=!r.length&&t.getEmptyStateComponent;e((function(t){var e;return Object.assign(Object.assign({},t),(b(e={},S.Remote,r),b(e,S.Empty,o?O:[]),e))}))}),t.requestHeaders)}}}function P(t,e,n,r,o,i,a){var u=function(e){return t[e]||[]},l=e?u(S.Recent):[],s=u(S.Local),f=u(S.Remote),y=u(S.Empty);if(y.length&&n)return[{data:y}];var p=[];l.length&&p.push({title:r,data:l});var d=[].concat(h(s),h(f));return d.length?(Number.isInteger(a)&&d.length>a&&(d=d.slice(0,a)),c.a.isFunction(i)?p.push.apply(p,h(i(d))):p.push({title:o,data:d}),p):p}function C(t){return t.data}function E(t){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(g.a.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(t?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:t?"":g.a.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(g.a.sectionContainer)}}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=E(e),r=Object.assign(n,t);return r}!function(t){t.Local="local",t.Recent="recent",t.Remote="remote",t.Empty="empty"}(S||(S={}));var k=n(56),R=n(25),A=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 o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function L(t,e,n,r,o){var i="form-control";return n||(i+=" ".concat(g.a.inputWithoutHighlight)),"left"===t&&(i+=" ".concat(g.a.inputWithLeftIcon)),("right"===t&&!e||"left"===t&&e)&&(i+=" ".concat(g.a.inputWithRightIcon)),"right"===t&&e&&(i+=" ".concat(g.a.inputWithTwoRightIcons)),"lg"===o&&(i+=" form-control-lg"),"sm"===o&&(i+=" form-control-sm"),r&&(i+="".concat(r)),i}function _(t){var e="d-inline-block svg-container";return c.a.isFunction(t)?e+" cursor-pointer":e}function T(t){var e=t.onClickSearchIcon,n=t.searchIconPlacement,o=t.showClearInputIcon,i=t.onClickClearInput,a=t.highlightOnFocus,c=t.className,u=t.formSize,l=A(t,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),s=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(k.a,{svgName:R.b.Search,size:k.b.Standard,onClick:e,className:_(e)}))};return r.createElement("div",{className:"position-relative ".concat(g.a.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(g.a.iconContainer," ").concat(g.a.leftIconContainer)},r.createElement(s,null)),r.createElement("input",Object.assign({className:L(n,o,a,c,u)},l)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(g.a.iconContainer," ").concat(g.a.rightIconContainer)},!!o&&r.createElement((function(){return r.createElement("div",{className:"d-inline-block text-muted ".concat(g.a.clearButton)},r.createElement(k.a,{svgName:R.b.Close,size:k.b.Standard,onClick:i,className:_(i)}))}),null),"right"===n&&r.createElement(s,null)))}function x(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,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(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 F(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 F(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 D}));var N=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 o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},B=c.a.isFunction;function V(t){return t.renderAsForm?r.createElement("form",{onSubmit:t.onSubmit},t.children):r.createElement(r.Fragment,null,t.children)}function D(t){var e,n,i,f=(e=t.initialSuggestions,n=t.recentSearches,b(i={},S.Recent,n),b(i,S.Local,e),b(i,S.Remote,[]),b(i,S.Empty,[]),i),y=x(r.useState(t.initialQuery||""),2),p=y[0],d=y[1],m=x(r.useState(f),2),g=m[0],h=m[1],v=Object(l.a)(s.a.XS);r.useEffect((function(){var e=t.initialQuery||"";p!==e&&d(e)}),[t.initialQuery]);var O=function(){h(f)},E=function(e){e.preventDefault(),B(t.onSubmit)&&t.onSubmit(p)};return r.createElement(V,{onSubmit:E,renderAsForm:!!t.renderAsForm},r.createElement(o,Object.assign({suggestions:P(g,!p,!!t.getEmptyStateComponent,t.recentSearchHeading||u.a.getPhrase("shared.searchBar","recentSearchHeading"),t.suggestionsHeading,t.getSections,t.suggestionLimit),onSuggestionsFetchRequested:w(t,h,O),onSuggestionsClearRequested:function(){t.alwaysRenderSuggestions||O()},onSuggestionSelected:function(e,n){var r=n.suggestion;r.empty||(t.clearQueryOnSelect&&d(""),t.onSuggestionSelected(r))},getSuggestionValue:function(e){return t.updateQueryOnSelection?function(t,e){return I(e,t)?e[t]:""}(t.valueKey,e):p},renderSuggestion:function(e){return e&&e.empty?p.length>=t.activationLength&&c.a.isFunction(t.getEmptyStateComponent)?t.getEmptyStateComponent(p):r.createElement(r.Fragment,null):B(t.getSuggestionComponent)?t.getSuggestionComponent(e):function(t,e){return I(e,t)?r.createElement(r.Fragment,null,e[t]):r.createElement(r.Fragment,null)}(t.valueKey,e)},renderSuggestionsContainer:function(e){var n=e.containerProps,o=n.ref,i=N(n,["ref"]);return t.customScrollbarProps?r.createElement(a.a,Object.assign({ref:o},t.customScrollbarProps,i),e.children):r.createElement("div",Object.assign({ref:o},i),e.children)},alwaysRenderSuggestions:t.alwaysRenderSuggestions,focusInputOnSuggestionClick:!v,inputProps:{placeholder:t.placeholder||u.a.getPhrase("shared.searchBar","placeholder"),value:p,onChange:function(e,n){var r=n.newValue;d(r),B(t.onQueryChange)&&t.onQueryChange(r)},onKeyDown:function(e){8===e.keyCode&&t.onBackspace&&!p&&t.onBackspace()},autoFocus:!!t.autoFocusInput,highlightOnFocus:t.highlightInputOnFocus,onClickSearchIcon:!!t.submitOnClickSearchIcon&&E,searchIconPlacement:t.searchIconPlacement,showClearInputIcon:!!t.showClearInputIcon&&!!p.length,onClickClearInput:function(){d(""),B(t.onClickClearInput)&&t.onClickClearInput()},formSize:t.size},renderInputComponent:T,theme:j(t.theme,!!g.empty.find((function(t){return t.empty}))),multiSection:!0,renderSectionTitle:function(e){return function(t,e){if(t.title)return r.createElement("div",{className:"pb-1 ".concat(null!=e?e:"")},r.createElement("strong",null,t.title))}(e,t.sectionTitleClassName)},getSectionSuggestions:C},t.alwaysRenderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return!0}}:{})))}D.defaultProps={updateQueryOnSelection:!0,valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialSuggestions:[],searchIconPlacement:"right",renderAsForm:!0}},1225:function(t,e,n){t.exports={emptyState:"_1oZbe"}},1356:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={getRecentItem:function(t,e){var n=e.cacheGet(t);return Array.isArray(n)||(n=[]),n},setRecentItem:function(t,e,n){Array.isArray(e)&&n.cacheSet(t,e)},addRecentItem:function(t,e,n){var o=n.id,i=n.limit,a=void 0===i?5:i,c=r.getRecentItem(t,e),u=c.indexOf(o);return u>-1&&c.splice(u,1),c.unshift(o),c.length>a&&(c=c.slice(0,a)),r.setRecentItem(t,c,e),c}}},972:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(331),o=n(135),i=n(1004);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(f,t);var e,n,r,a=s(f);function f(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.a.Newest,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a.OwnedByMe;return c(this,f),(t=a.call(this,{collectionPrefix:"user:playlists",cursor:n,sort:e})).type=r,t}return e=f,(n=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&u(e.prototype,n),r&&u(e,r),f}(r.BaseCollectionIdentifier)},976:function(t,e,n){"use strict";var r=n(977);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(e,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},977:function(t,e){},981:function(t,e,n){"use strict";n(972);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,n),e.call(this,{collectionPrefix:"playlist:videos",id:t,cursor:r})}return n}(n(331).BaseCollectionIdentifier);n.d(e,"a",(function(){return l}))},999:function(t,e,n){"use strict";var r,o=n(21),i=n(175),a=n(1003),c=n(1008);!function(t){t[t.Queued=1]="Queued",t[t.Processing=2]="Processing",t[t.Processed=3]="Processed",t[t.Errored=4]="Errored"}(r||(r={}));var u=function(t){return function(e){var n=Object.assign({},e);return n.hasOwnProperty(t)&&delete n[t],n}},l=function(t,e){return function(n){var r=Object.assign({},n);return r.hasOwnProperty(t)?(r[t].videos||(r[t].videos={}),r[t].videos.count=r[t].videos.count?r[t].videos.count+e:e,r):n}};n.d(e,"a",(function(){return d}));var s=function(t){return t?"&cursor=".concat(t):""},f=function(t){return Number.isInteger(t)?"&maxRatingValue=".concat(t):""},y=function(t,e){return"".concat(t).concat(e?":".concat(e):"")},p="_liteOwner,_isClickViewPlaylist",d={getPlaylist:function(t,e,n){return{url:"/api/objects/v1/playlists/".concat(t,"?query=").concat(i.b.PLAYLIST,",").concat(p),key:"playlist:".concat(t),success:e,error:n}},getSharedPlaylist:function(t,e,n,r){var o="/api/domain/v2/share/".concat(t);return{url:"".concat(o,"?query=").concat(i.b.PLAYLIST,"&virtualAssocs=").concat(p)+f(e),key:"shared:playlist:".concat(t),success:n,error:r}},getUserPlaylists:function(t){var e=t.sort,n=t.type;return{url:"/api/domain/v2/me/playlists/".concat(n,"?sort=").concat(e,"&query={limit:100}")+"".concat(i.b.PLAYLIST_COLLECTION,",").concat(p).concat(s(t.cursor)),key:t.toString()}},getPlaylistVideos:function(t,e,n){var r="orderBy:orderindex,limit:100";return Number.isInteger(e)&&(r+=",rating.value:0...".concat(e)),{url:"/api/domain/v2/objects/".concat(t,"/videos?query={").concat(r,"}")+"".concat(i.b.PLAYLIST_VIDEO_COLLECTION).concat(s(n)),key:y("playlist:".concat(t,":videos"),n)}},getSharedPlaylistVideos:function(t,e,n){return{url:"/api/domain/v2/share/".concat(t,"/videos?query={orderBy:orderindex,limit:100}")+"".concat(i.b.SHARED_PLAYLIST_VIDEO_COLLECTION)+"".concat(s(n)).concat(f(e)),key:y("shared:playlist:".concat(t,":videos"),n)}},getVideoPlaylists:function(t,e,n){return{url:"/api/domain/v2/objects/".concat(t,"/playlists?query={limit:100,owner.id:[").concat(e,"]}"),key:y("video:playlists:".concat(t),n)}},createPlaylist:function(t,e,n,r,i){return{key:"create:playlist",url:"/api/domain/v2/objects/".concat(t,"/playlists"),data:e,type:o.a.POST,success:n,error:r,always:i,invalidationKeys:"user:playlists"}},updatePlaylist:function(t,e,n,r,i){return{key:"update:playlist",url:"/api/domain/v2/objects/".concat(t),data:e,type:o.a.PUT,success:n,error:r,always:i}},deletePlaylist:function(t,e,n,r){return{key:"delete:playlist",url:"/api/domain/v2/objects/".concat(t),type:o.a.DELETE,success:e,error:n,always:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t),updateData:u("playlist:".concat(t))}}},addToPlaylist:function(t,e,n,r){var i=["user:playlists",new c.PlaylistVideoCollectionIdentifier(t).toString()];return e.forEach((function(t){i.push("video:playlists:".concat(t))})),{key:"add:to:playlist",url:"/api/domain/v2/objects/".concat(t,"/associate"),data:e,type:o.a.POST,success:n,error:r,invalidationKeys:i,updateState:{keys:"playlist:".concat(t),updateData:l("playlist:".concat(t),e.length)}}},reorderVideos:function(t,e,n,r){return{key:"reorder:playlist",url:"/api/domain/v2/objects/".concat(t,"/videos/reorder"),data:e,type:o.a.PUT,success:n,error:r,invalidationKeys:"user:playlists",updateState:{keys:"playlist:".concat(t,":videos"),updateData:function(n){return a.a.updateState("playlist:".concat(t,":videos"),e,n)}}}},removePlaylistVideo:function(t,e,n,r){return{key:"remove:playlist:video",url:"/api/domain/v2/objects/".concat(t,"/dissociate?memberId=").concat(e),type:o.a.DELETE,success:n,error:r,invalidationKeys:["user:playlists","playlist:".concat(t,":videos")]}},getIsFollowingPlaylist:function(t,e){return{url:"/api/domain/v2/objects/".concat(e,"/followedPlaylists?query={id:").concat(t,"}"),key:"playlist:".concat(t,":following:").concat(e),formatData:function(e){var n;return{objectId:t,isFollowing:!!(null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.length)}},normalize:!1}},followPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e),key:"follow:playlist:".concat(t),data:{followedPlaylists:t},type:o.a.PUT,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},unfollowPlaylist:function(t,e,n,r,i){return{url:"/api/domain/v2/objects/".concat(e,"/followedplaylists/").concat(t),key:"unfollow:playlist:".concat(t),type:o.a.DELETE,invalidationKeys:["user:playlists","playlist:".concat(t),"shared:playlist"],success:n,error:r,always:i}},getPlaylistPrivacy:function(t){return{key:"playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),formatData:function(e){return{id:t,privacy:e}}}},updatePlaylistPrivacy:function(t,e,n,r,i){return{key:"update:playlist:privacy:".concat(t),url:"/api/domain/v1/playlists/".concat(t,"/privacy"),type:o.a.PUT,data:{privacy:e},formatData:function(){return{id:t,privacy:e}},success:n,error:r,always:i}},getMigrationTask:function(t,e){return{url:"/api/playlist-app/migration-task",key:"migration:task",formatData:function(t){return t||{status:r.Processed}},success:t,error:e}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[17],{1002:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(74),i=n(16),o=n(42);function c(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function s(e){return Object(r.useSelector)(Object(a.useMemo)((function(){return function(t){if(o.a.isFunction(e)){for(var n=e,a=o.a.isFunction(e)&&i.a.getResponse(t,n()),r=a&&a.isFetching,u=a&&a.shouldFetch,s=a&&a.data&&a.data.data,d=l(a);d&&(r=(a=i.a.getResponse(t,n(d))).isFetching,!a.shouldFetch);){var m=a.data&&a.data.data;m&&s.push.apply(s,c(m));var f=l(a);d=f===d?null:f}return{shouldInitialFetch:u,items:s,nextCursor:d,isFetching:r}}}}),[e]))}},1005:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n(42);function i(e,t,n){var i=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||e())};Object(a.useEffect)((function(){var e=r.a.throttle(i,200);return t&&window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[t,e])}},1006:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(34),i=n(56),o=n(25),c=n(1007),u=n.n(c);function l(e){return a.createElement("div",{className:"p-3 text-center ".concat(u.a.container)},e.isFetching?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",className:u.a.spinner}):a.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:e.onClick}))}},1007:function(e,t,n){e.exports={container:"_1_KC6",spinner:"VXlcl"}},1028:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1002),i=n(1005);function o(e,t){var n=t,o=Object(r.a)(e&&function(t){return e(t).key});return Object(i.a)((function(){if(t&&e&&o)return n(o.nextCursor)}),!!(null==o?void 0:o.nextCursor),null==o?void 0:o.isFetching),Object(a.useEffect)((function(){o&&o.shouldInitialFetch&&t&&n()}),[null==o?void 0:o.shouldInitialFetch,t]),{items:null==o?void 0:o.items,hasMore:!!(null==o?void 0:o.nextCursor),isFetching:null==o?void 0:o.isFetching}}},1092:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(113),r=n(67),i=function(e){return"{gateway}/v1/objects/".concat(e,"?query=").concat(a.b.SERIES)},o=function(e,t){return r.a.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.b.SERIES,shareId:t})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return"{gateway}/v1/objects/".concat(e,"?query=banner,videos[season,thumbnail,count()]{limit:").concat(t,"}")},u=function(e,t,n){return"{gateway}/v1/objects/".concat(e,"/videos?query=").concat(a.a.VideoCollectionWithAssocs(t,!0)).concat(function(e){return e?"&cursor=".concat(e):""}(n))},l=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},s={series:function(e){return{url:i(e),key:"series:".concat(e)}},sharedSeries:function(e,t){return{url:o(e,t),key:"shared:series:".concat(e,":").concat(t)}},seriesWithVideos:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return{url:c(e,t),key:"series:".concat(e,":with:videos:").concat(t)}},seriesVideos:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{url:u(e,t,n),key:"series:".concat(e,":videos:").concat(n)}},breadcrumbs:function(e){if(e)return{url:l(e),key:"series:".concat(e,":breadcrumbs")}}}},1105:function(e,t,n){"use strict";var a=n(0),r=n(82),i=n.n(r),o=function(e,t){return t?i.a.createPortal(e,t):e},c=n(8),u=n(56),l=n(47),s=n(25);function d(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,d=t.textShadow,m=n?c.a.getPhrase("shared.backButton","backTo",{backToName:n}):c.a.getPhrase("shared.backButton","back"),f="black"===i?"":"text-white",b=d?"text-shadow":"";return a.createElement(l.a,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(f," ").concat(b)},a.createElement(u.a,{svgName:s.b.ChevronLeft,size:u.b.Medium}),a.createElement("span",{className:"ml-1"},m))}d.defaultProps={color:"black",extraClasses:""};var m=n(106),f=n(57),b=n(343),p=n(983),v=n(283),h=n(70),y=n(332),g=n(174),E=n(30),S=n(1132),k=n.n(S);function w(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=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||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,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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return C}));var I="".concat(b.a[f.c.Banners].width,":").concat(b.a[f.c.Banners].height);var j=a.memo((function(e){var t=e.heading,n=e.banner,r=e.imageCdnUrl,i=e.actions,c=e.sortComponent,u=e.blockColourClass,l=a.useContext(v.a),s=w(Object(h.a)(y.a.LAYOUT_CONTAINER_FLUID),1)[0],b=m.a.createBannerUrl(n,{fallbackBaseUrl:r,fallbackCategoryName:t,type:f.c.Banners},{width:Object(g.a)()===E.a.XXL?1920:1200,ratio:I,resizeType:f.d.Cover,format:"jpg"}),S={className:"banner banner-header",style:{backgroundImage:"url('".concat(b,"')")}};return!n&&u&&(delete S.style,S.className+=" ".concat(u)),o(a.createElement("div",Object.assign({},S),a.createElement("div",{className:"".concat(s?"container-fluid":"container"," position-relative")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(d,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:k.a.bannerContent},a.createElement("h1",{className:"text-white text-shadow clamp-2"},t),!!i&&a.createElement("div",{className:k.a.actionsContainer},a.createElement(p.a,{actions:i,sortComponent:c,actionsDropdownClassName:e.actionsDropdownClassName}))))),null==l?void 0:l.container)}),(function(e,t){return e.actions===t.actions}));function C(){var e=a.useContext(v.a);return o(a.createElement("div",{className:"partial-banner partial-loading-background"}),null==e?void 0:e.container)}},1132:function(e,t,n){e.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF"}},1572:function(e,t,n){"use strict";n.r(t),n.d(t,"SeriesView",(function(){return B}));var a=n(0),r=n(74),i=n(16),o=n(8),c=n(4),u=n(58),l=n(329),s=n(3),d=n(48),m=n(124),f=n(1105),b=n(986),p=n(1042),v=n(994),h=n(25),y=n(88),g=n(133),E=n(1092),S=n(10),k=n(7),w=n(224),A=n(1032),I=n(1017),j=n(1028),C=n(1006),N=n(227),O=n(335);function x(e){return function(e){if(Array.isArray(e))return F(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 F(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 F(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 F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var L=o.a.encloseNamespace("shared.series"),T=function(e){return{application:k.a.SUBJECT,action:S.a.Subjects.CLASSIFICATION,args:[e.id,u.a.slugify(e.name)]}},D=function(e){return[{label:o.a.getPhrase("shared.series","share"),appLink:e&&{application:k.a.DEFAULT,action:S.a.Default.SHARE,args:[e.id],params:{entityType:"series"}},svgName:h.b.Share2,className:"btn btn-outline-dark mr-2",button:!0}]};function B(e){var t,n,o=Object(r.useDispatch)(),h=Object(g.a)().hasPermissions,F=Object(O.a)(s.LocationContext.VideoThumbnail),B=i.a.useBasicFetch(m.a.config()),_=i.a.useBasicFetch(d.a.currentUser()),U=i.a.useBasicFetch(e.shareId?E.a.sharedSeries(e.id,e.shareId):E.a.series(e.id));Object(l.a)(null===(t=U.data)||void 0===t?void 0:t.name);var M,R,V=Object(A.b)(A.a.VideoItem),P=i.a.useBasicFetch(e.classificationId&&E.a.breadcrumbs(e.classificationId)),H=function(t){var n;return E.a.seriesVideos(e.id,null===(n=_.data)||void 0===n?void 0:n.id,t)},$=function(e){return i.a.getFetch(o,H(e))()},q=Object(j.a)(!!_.data&&H,$),z=q.items,J=q.hasMore,W=q.isFetching;return U.hasError?(c.a.ErrorHelper.throw(new w.a),a.createElement(a.Fragment,null)):a.createElement(I.a.Provider,{value:V},a.createElement("div",{className:"px-3"},B.data&&U.data?a.createElement(f.a,{heading:U.data.name,banner:U.data.banner,imageCdnUrl:B.data.imageCdnUrl,actions:D(U.data)}):a.createElement(f.b,null),a.createElement("div",null,a.createElement("div",{className:"border-bottom py-3 mb-3"},!U.data||e.classificationId&&!P.data?a.createElement(b.c,null):a.createElement(b.b,{currentItem:U.data,type:b.a.Static,getItemAppLink:T,data:P.data?[].concat(x(P.data),[U.data]):[U.data],rootItem:P.data?{label:L("topics"),appLink:{application:k.a.SUBJECT,action:S.a.Subjects.CLASSIFICATION_ALL}}:{label:L("dashboard"),appLink:{application:k.a.DASHBOARD,action:S.a.Dashboard.HOME}}}),(null===(n=U.data)||void 0===n?void 0:n.description)&&a.createElement("p",{className:"pt-2 mb-0"},U.data.description)),z?a.createElement(a.Fragment,null,a.createElement(p.c,{videos:z,getVideoAppLink:(R=e.id,function(e){var t={context:N.a.Series,contextId:R};return{application:k.a.DEFAULT,action:S.a.Default.PLAY_VIDEO,args:[e.id,u.a.slugify(e.name)],params:t}}),getSeriesAppLink:(M=e.classificationId?{classificationId:e.classificationId}:null,function(e){return{application:k.a.DEFAULT,action:S.a.Default.SERIES,args:[e.id,u.a.slugify(e.name)],params:M||null}}),setFavourite:F,hideFavouriteButton:!h(y.a.FavouriteVideos)}),J&&a.createElement(C.a,{onClick:$,isFetching:W})):a.createElement(v.a,null))))}},984:function(e,t,n){"use strict";function a(e){return function(e){if(Array.isArray(e))return r(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 r(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 r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}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,r=e.minWidth,i=void 0===r?50:r,o=e.maxWidth,c=void 0===o?100:o,u=function(){return Math.max(Math.floor(Math.random()*c),i)};return a(Array(n)).map((function(){return{width:"".concat(u(),"px")}}))}}},986:function(e,t,n){"use strict";var a,r=n(0),i=n(42),o=n(66),c=n(87),u=n(984),l=n(47),s=function(e){var t=e.breadcrumb,n=t.label,a=t.appLink,i=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?r.createElement("strong",null,n):r.createElement(l.a,{appLink:a},n))},d=function(e){var t=e.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(s,{key:t,breadcrumb:e})})))};function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(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 f(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=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||b(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 b(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function v(e,t,n){return{label:e.name,appLink:t(e),active:n}}function h(e){var t=function(e,t){var n=e.currentItem,a=e.getItemAppLink,u=e.getParent,l=e.rootItem,s=e.data,d=e.subview,b=f(Object(r.useState)([]),2),p=b[0],h=b[1],y=null==s?void 0:s.map((function(e){return null==e?void 0:e.name})).join("-");r.useEffect((function(){if(!t)if(o.a.isEmpty(s)){if(!l)return;h([l])}else{var e=s.map((function(e,t){return v(e,a,t+1===s.length)}));l&&e.unshift(l),h(e)}}),[y,a]),r.useEffect((function(){if(t&&i.a.isFunction(u)){var e=[v(n,a,!0)];for(n=u(n);n;)e.unshift(v(n,a)),n=u(n);return l&&e.unshift(l),h(e)}}),[n,u,a,l]);var g=r.useRef({label:d,appLink:null,active:!0}).current;if(d){p.includes(g)||h([].concat(m(p),[g]));var E=p.filter((function(e){return e.active&&e!==g}));E.length&&(c.a.first(E).active=!1)}return p}(e,e.type===a.Dynamic);return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement(d,{breadcrumbs:t}))}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return y})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(a||(a={}));var y=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},u.a.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},994:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(34),o=n(30),c=n(174),u=n(995),l=n.n(u);function s(e){return r.a.createElement(r.a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return r.a.createElement(d,Object.assign({key:n},e))})))}function d(e){var t=Object(c.a)(),n=t===o.a.XS,a=t===o.a.SM||t===o.a.MD,u=e.withReordering&&!n;return r.a.createElement(i.Row,{className:"py-2"},r.a.createElement(i.Col,{xs:n?12:a?4:3,className:"flex-column align-items-flex-start mb-1"},r.a.createElement(i.Row,null,!!u&&r.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialDragHandle)})),r.a.createElement(i.Col,{xs:u?10:12},r.a.createElement("div",{className:"partial-loading-background rounded-lg ".concat(l.a.partialThumbnail)})))),r.a.createElement(i.Col,{xs:n?12:a?8:9},r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialSeriesLink)}),r.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(l.a.partialName)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialDescription)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialBadges)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialActions)})))}s.defaultProps={numVideos:15}},995:function(e,t,n){e.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[17],{1002:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(74),i=n(16),o=n(42);function c(e){return function(e){if(Array.isArray(e))return u(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 u(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 u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var l=function(e){return e&&e.data&&e.data.pagination&&e.data.pagination.cursors&&e.data.pagination.cursors.next};function s(e){return Object(r.useSelector)(Object(a.useMemo)((function(){return function(t){if(o.a.isFunction(e)){for(var n=e,a=o.a.isFunction(e)&&i.a.getResponse(t,n()),r=a&&a.isFetching,u=a&&a.shouldFetch,s=a&&a.data&&a.data.data,d=l(a);d&&(r=(a=i.a.getResponse(t,n(d))).isFetching,!a.shouldFetch);){var m=a.data&&a.data.data;m&&s.push.apply(s,c(m));var f=l(a);d=f===d?null:f}return{shouldInitialFetch:u,items:s,nextCursor:d,isFetching:r}}}}),[e]))}},1005:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n(42);function i(e,t,n){var i=function(){n||(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400||e())};Object(a.useEffect)((function(){var e=r.a.throttle(i,200);return t&&window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[t,e])}},1006:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(34),i=n(56),o=n(25),c=n(1007),u=n.n(c);function l(e){return a.createElement("div",{className:"p-3 text-center ".concat(u.a.container)},e.isFetching?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",className:u.a.spinner}):a.createElement(i.a,{svgName:o.b.ChevronDown,className:"svg-container cursor-pointer",size:i.b.Large,onClick:e.onClick}))}},1007:function(e,t,n){e.exports={container:"_1_KC6",spinner:"VXlcl"}},1029:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n(1002),i=n(1005);function o(e,t){var n=t,o=Object(r.a)(e&&function(t){return e(t).key});return Object(i.a)((function(){if(t&&e&&o)return n(o.nextCursor)}),!!(null==o?void 0:o.nextCursor),null==o?void 0:o.isFetching),Object(a.useEffect)((function(){o&&o.shouldInitialFetch&&t&&n()}),[null==o?void 0:o.shouldInitialFetch,t]),{items:null==o?void 0:o.items,hasMore:!!(null==o?void 0:o.nextCursor),isFetching:null==o?void 0:o.isFetching}}},1092:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(113),r=n(67),i=function(e){return"{gateway}/v1/objects/".concat(e,"?query=").concat(a.b.SERIES)},o=function(e,t){return r.a.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.b.SERIES,shareId:t})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return"{gateway}/v1/objects/".concat(e,"?query=banner,videos[season,thumbnail,count()]{limit:").concat(t,"}")},u=function(e,t,n){return"{gateway}/v1/objects/".concat(e,"/videos?query=").concat(a.a.VideoCollectionWithAssocs(t,!0)).concat(function(e){return e?"&cursor=".concat(e):""}(n))},l=function(e){return"/api/domain/v1/subjects/".concat(e,"/path")},s={series:function(e){return{url:i(e),key:"series:".concat(e)}},sharedSeries:function(e,t){return{url:o(e,t),key:"shared:series:".concat(e,":").concat(t)}},seriesWithVideos:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return{url:c(e,t),key:"series:".concat(e,":with:videos:").concat(t)}},seriesVideos:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return{url:u(e,t,n),key:"series:".concat(e,":videos:").concat(n)}},breadcrumbs:function(e){if(e)return{url:l(e),key:"series:".concat(e,":breadcrumbs")}}}},1105:function(e,t,n){"use strict";var a=n(0),r=n(82),i=n.n(r),o=function(e,t){return t?i.a.createPortal(e,t):e},c=n(8),u=n(56),l=n(47),s=n(25);function d(e){var t=Object.assign({textShadow:!0},e),n=t.backToName,r=t.appLink,i=t.color,o=t.extraClasses,d=t.textShadow,m=n?c.a.getPhrase("shared.backButton","backTo",{backToName:n}):c.a.getPhrase("shared.backButton","back"),f="black"===i?"":"text-white",b=d?"text-shadow":"";return a.createElement(l.a,{appLink:r,className:"d-inline-flex align-items-center h5 mb-0 ".concat(o," ").concat(f," ").concat(b)},a.createElement(u.a,{svgName:s.b.ChevronLeft,size:u.b.Medium}),a.createElement("span",{className:"ml-1"},m))}d.defaultProps={color:"black",extraClasses:""};var m=n(106),f=n(57),b=n(343),p=n(983),v=n(283),h=n(70),y=n(332),g=n(174),E=n(30),S=n(1132),k=n.n(S);function w(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=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||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,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 A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return C}));var I="".concat(b.a[f.c.Banners].width,":").concat(b.a[f.c.Banners].height);var j=a.memo((function(e){var t=e.heading,n=e.banner,r=e.imageCdnUrl,i=e.actions,c=e.sortComponent,u=e.blockColourClass,l=a.useContext(v.a),s=w(Object(h.a)(y.a.LAYOUT_CONTAINER_FLUID),1)[0],b=m.a.createBannerUrl(n,{fallbackBaseUrl:r,fallbackCategoryName:t,type:f.c.Banners},{width:Object(g.a)()===E.a.XXL?1920:1200,ratio:I,resizeType:f.d.Cover,format:"jpg"}),S={className:"banner banner-header",style:{backgroundImage:"url('".concat(b,"')")}};return!n&&u&&(delete S.style,S.className+=" ".concat(u)),o(a.createElement("div",Object.assign({},S),a.createElement("div",{className:"".concat(s?"container-fluid":"container"," position-relative")},e.backButtonAppLink&&a.createElement("div",{className:"pt-3"},a.createElement(d,{appLink:e.backButtonAppLink,backToName:e.backButtonText,extraClasses:e.backButtonClasses,color:"white"})),a.createElement("div",{className:k.a.bannerContent},a.createElement("h1",{className:"text-white text-shadow clamp-2"},t),!!i&&a.createElement("div",{className:k.a.actionsContainer},a.createElement(p.a,{actions:i,sortComponent:c,actionsDropdownClassName:e.actionsDropdownClassName}))))),null==l?void 0:l.container)}),(function(e,t){return e.actions===t.actions}));function C(){var e=a.useContext(v.a);return o(a.createElement("div",{className:"partial-banner partial-loading-background"}),null==e?void 0:e.container)}},1132:function(e,t,n){e.exports={bannerContent:"_2zxtt",actionsContainer:"_286KF"}},1572:function(e,t,n){"use strict";n.r(t),n.d(t,"SeriesView",(function(){return B}));var a=n(0),r=n(74),i=n(16),o=n(8),c=n(4),u=n(58),l=n(329),s=n(3),d=n(48),m=n(124),f=n(1105),b=n(986),p=n(1042),v=n(994),h=n(25),y=n(88),g=n(133),E=n(1092),S=n(10),k=n(7),w=n(224),A=n(1033),I=n(1017),j=n(1029),C=n(1006),N=n(227),O=n(335);function x(e){return function(e){if(Array.isArray(e))return F(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 F(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 F(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 F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var L=o.a.encloseNamespace("shared.series"),T=function(e){return{application:k.a.SUBJECT,action:S.a.Subjects.CLASSIFICATION,args:[e.id,u.a.slugify(e.name)]}},D=function(e){return[{label:o.a.getPhrase("shared.series","share"),appLink:e&&{application:k.a.DEFAULT,action:S.a.Default.SHARE,args:[e.id],params:{entityType:"series"}},svgName:h.b.Share2,className:"btn btn-outline-dark mr-2",button:!0}]};function B(e){var t,n,o=Object(r.useDispatch)(),h=Object(g.a)().hasPermissions,F=Object(O.a)(s.LocationContext.VideoThumbnail),B=i.a.useBasicFetch(m.a.config()),_=i.a.useBasicFetch(d.a.currentUser()),U=i.a.useBasicFetch(e.shareId?E.a.sharedSeries(e.id,e.shareId):E.a.series(e.id));Object(l.a)(null===(t=U.data)||void 0===t?void 0:t.name);var M,R,V=Object(A.b)(A.a.VideoItem),P=i.a.useBasicFetch(e.classificationId&&E.a.breadcrumbs(e.classificationId)),H=function(t){var n;return E.a.seriesVideos(e.id,null===(n=_.data)||void 0===n?void 0:n.id,t)},$=function(e){return i.a.getFetch(o,H(e))()},q=Object(j.a)(!!_.data&&H,$),z=q.items,J=q.hasMore,W=q.isFetching;return U.hasError?(c.a.ErrorHelper.throw(new w.a),a.createElement(a.Fragment,null)):a.createElement(I.a.Provider,{value:V},a.createElement("div",{className:"px-3"},B.data&&U.data?a.createElement(f.a,{heading:U.data.name,banner:U.data.banner,imageCdnUrl:B.data.imageCdnUrl,actions:D(U.data)}):a.createElement(f.b,null),a.createElement("div",null,a.createElement("div",{className:"border-bottom py-3 mb-3"},!U.data||e.classificationId&&!P.data?a.createElement(b.c,null):a.createElement(b.b,{currentItem:U.data,type:b.a.Static,getItemAppLink:T,data:P.data?[].concat(x(P.data),[U.data]):[U.data],rootItem:P.data?{label:L("topics"),appLink:{application:k.a.SUBJECT,action:S.a.Subjects.CLASSIFICATION_ALL}}:{label:L("dashboard"),appLink:{application:k.a.DASHBOARD,action:S.a.Dashboard.HOME}}}),(null===(n=U.data)||void 0===n?void 0:n.description)&&a.createElement("p",{className:"pt-2 mb-0"},U.data.description)),z?a.createElement(a.Fragment,null,a.createElement(p.c,{videos:z,getVideoAppLink:(R=e.id,function(e){var t={context:N.a.Series,contextId:R};return{application:k.a.DEFAULT,action:S.a.Default.PLAY_VIDEO,args:[e.id,u.a.slugify(e.name)],params:t}}),getSeriesAppLink:(M=e.classificationId?{classificationId:e.classificationId}:null,function(e){return{application:k.a.DEFAULT,action:S.a.Default.SERIES,args:[e.id,u.a.slugify(e.name)],params:M||null}}),setFavourite:F,hideFavouriteButton:!h(y.a.FavouriteVideos)}),J&&a.createElement(C.a,{onClick:$,isFetching:W})):a.createElement(v.a,null))))}},984:function(e,t,n){"use strict";function a(e){return function(e){if(Array.isArray(e))return r(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 r(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 r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}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,r=e.minWidth,i=void 0===r?50:r,o=e.maxWidth,c=void 0===o?100:o,u=function(){return Math.max(Math.floor(Math.random()*c),i)};return a(Array(n)).map((function(){return{width:"".concat(u(),"px")}}))}}},986:function(e,t,n){"use strict";var a,r=n(0),i=n(42),o=n(66),c=n(87),u=n(984),l=n(47),s=function(e){var t=e.breadcrumb,n=t.label,a=t.appLink,i=t.active;return r.createElement("li",{className:"breadcrumb-item".concat(i?" active":"")},i?r.createElement("strong",null,n):r.createElement(l.a,{appLink:a},n))},d=function(e){var t=e.breadcrumbs;return r.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return r.createElement(s,{key:t,breadcrumb:e})})))};function m(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||b(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 f(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=[],a=!0,r=!1,i=void 0;try{for(var o,c=e[Symbol.iterator]();!(a=(o=c.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(r)throw i}}return n}(e,t)||b(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 b(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function v(e,t,n){return{label:e.name,appLink:t(e),active:n}}function h(e){var t=function(e,t){var n=e.currentItem,a=e.getItemAppLink,u=e.getParent,l=e.rootItem,s=e.data,d=e.subview,b=f(Object(r.useState)([]),2),p=b[0],h=b[1],y=null==s?void 0:s.map((function(e){return null==e?void 0:e.name})).join("-");r.useEffect((function(){if(!t)if(o.a.isEmpty(s)){if(!l)return;h([l])}else{var e=s.map((function(e,t){return v(e,a,t+1===s.length)}));l&&e.unshift(l),h(e)}}),[y,a]),r.useEffect((function(){if(t&&i.a.isFunction(u)){var e=[v(n,a,!0)];for(n=u(n);n;)e.unshift(v(n,a)),n=u(n);return l&&e.unshift(l),h(e)}}),[n,u,a,l]);var g=r.useRef({label:d,appLink:null,active:!0}).current;if(d){p.includes(g)||h([].concat(m(p),[g]));var E=p.filter((function(e){return e.active&&e!==g}));E.length&&(c.a.first(E).active=!1)}return p}(e,e.type===a.Dynamic);return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement(d,{breadcrumbs:t}))}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return y})),function(e){e[e.Static=0]="Static",e[e.Dynamic=1]="Dynamic"}(a||(a={}));var y=r.memo((function(e){var t=e.numItems,n=void 0===t?3:t;return r.createElement("nav",{"aria-label":"breadcrumb"},r.createElement("ol",{className:"breadcrumb m-0 p-0"},u.a.getPartialLoadingItems({numItems:n}).map((function(e,t){var n=e.width;return r.createElement("li",{key:t,className:"breadcrumb-item"},r.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:n},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},994:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(34),o=n(30),c=n(174),u=n(995),l=n.n(u);function s(e){return r.a.createElement(r.a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return r.a.createElement(d,Object.assign({key:n},e))})))}function d(e){var t=Object(c.a)(),n=t===o.a.XS,a=t===o.a.SM||t===o.a.MD,u=e.withReordering&&!n;return r.a.createElement(i.Row,{className:"py-2"},r.a.createElement(i.Col,{xs:n?12:a?4:3,className:"flex-column align-items-flex-start mb-1"},r.a.createElement(i.Row,null,!!u&&r.a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialDragHandle)})),r.a.createElement(i.Col,{xs:u?10:12},r.a.createElement("div",{className:"partial-loading-background rounded-lg ".concat(l.a.partialThumbnail)})))),r.a.createElement(i.Col,{xs:n?12:a?8:9},r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialSeriesLink)}),r.a.createElement("div",{className:"partial-loading-background mb-1 ".concat(l.a.partialName)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialDescription)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialBadges)}),r.a.createElement("div",{className:"partial-loading-background ".concat(l.a.partialActions)})))}s.defaultProps={numVideos:15}},995:function(e,t,n){e.exports={partialName:"_7KNC2",partialDescription:"Vk_wR",partialThumbnail:"_3peRZ",partialDragHandle:"_1F7_f"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[18],{1001:function(e,t,n){"use strict";var a;n.d(t,"a",(function(){return a})),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update"}(a||(a={}))},1011:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var a,i,r=n(0),o=n(56),l=n(25),c=n(1127),s=n.n(c);function u(e){var t=e.type,n=e.mediaType,c=e.extraClasses,u=function(e){return e===a.Video?s.a.videoFallback:e===a.Playlist?s.a.playlistFallback:e===a.Series||e===a.TallSubject?s.a.posterFallback:e===a.Subject?"".concat(s.a.subjectFallback," svg-container d-inline-block"):""}(t),d=function(e){return e===a.Video?l.b.Play:e===a.Playlist?l.b.Playlist:e===a.Series?l.b.Series:e===a.Subject||e===a.TallSubject?l.b.Subject:""}(t),v=function(e){return e===a.Subject?o.b.ExtraLarge:o.b.Standard}(t),f="".concat(function(e,t){return t===a.Subject?s.a.subjectFallbackContainer:e===i.Svg?t===a.Video?"".concat(s.a.svgFallbackContainer," rounded-lg"):s.a.svgFallbackContainer:s.a.baseFallbackContainer}(n,t));return c&&(f+=" ".concat(e.extraClasses)),r.createElement("div",{className:f},n===i.Svg?r.createElement(o.a,{svgName:d,className:u,tagName:"div",size:v}):r.createElement("div",{className:s.a.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(d,"')")}}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series",e[e.Subject=3]="Subject",e[e.TallSubject=4]="TallSubject"}(a||(a={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(i||(i={})),u.defaultProps={mediaType:i.Svg}},
|
|
1
|
+
(window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[18],{1001:function(e,t,n){"use strict";var a;n.d(t,"a",(function(){return a})),function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update"}(a||(a={}))},1011:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var a,i,r=n(0),o=n(56),l=n(25),c=n(1127),s=n.n(c);function u(e){var t=e.type,n=e.mediaType,c=e.extraClasses,u=function(e){return e===a.Video?s.a.videoFallback:e===a.Playlist?s.a.playlistFallback:e===a.Series||e===a.TallSubject?s.a.posterFallback:e===a.Subject?"".concat(s.a.subjectFallback," svg-container d-inline-block"):""}(t),d=function(e){return e===a.Video?l.b.Play:e===a.Playlist?l.b.Playlist:e===a.Series?l.b.Series:e===a.Subject||e===a.TallSubject?l.b.Subject:""}(t),v=function(e){return e===a.Subject?o.b.ExtraLarge:o.b.Standard}(t),f="".concat(function(e,t){return t===a.Subject?s.a.subjectFallbackContainer:e===i.Svg?t===a.Video?"".concat(s.a.svgFallbackContainer," rounded-lg"):s.a.svgFallbackContainer:s.a.baseFallbackContainer}(n,t));return c&&(f+=" ".concat(e.extraClasses)),r.createElement("div",{className:f},n===i.Svg?r.createElement(o.a,{svgName:d,className:u,tagName:"div",size:v}):r.createElement("div",{className:s.a.fallbackThumbnailImage,style:{backgroundImage:"url('".concat(d,"')")}}))}!function(e){e[e.Video=0]="Video",e[e.Playlist=1]="Playlist",e[e.Series=2]="Series",e[e.Subject=3]="Subject",e[e.TallSubject=4]="TallSubject"}(a||(a={})),function(e){e[e.Svg=0]="Svg",e[e.Image=1]="Image"}(i||(i={})),u.defaultProps={mediaType:i.Svg}},1035:function(e,t,n){"use strict";var a;n.d(t,"a",(function(){return a})),function(e){e.Percentage="%",e.Pixels="px"}(a||(a={}))},1051:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var a,i=n(0),r=n(56),o=n(25),l=n(1060),c=n.n(l);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(a||(a={}));var s=i.memo((function(e){var t,n,l=e.direction===a.Left,s=l?o.b.ChevronLeft:o.b.ChevronRight,u=(e.contents,t=l,n=c.a.topPos,n+=t?" "+c.a.left:" "+c.a.right);return e.hide?i.createElement(i.Fragment,null):i.createElement(i.Fragment,null,i.createElement("div",{role:"button",className:"".concat(u," ").concat(c.a.button," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&i.createElement("span",{className:"pl-3 pr-2 ".concat(c.a.hoverText)},e.hoverText),i.createElement(r.a,{svgName:s,size:r.b.Medium,className:"svg-container d-inline-block ".concat(c.a.chevron)})),e.useGradientBackdrop&&i.createElement("div",{className:l?c.a.gradientLeft:c.a.gradientRight}),i.createElement("div",{role:"button",onClick:e.onClick,className:l?c.a.extendedClickableAreaLeft:c.a.extendedClickableAreaRight}))}))},1060:function(e,t,n){e.exports={left:"_789pr",right:"_1P8qt",button:"_24q_F",hoverText:"p-vNG",chevron:"_3M27X",gradientLeft:"_3fkiw",gradientRight:"_2RDDy",extendedClickableAreaRight:"_13dgy",extendedClickableAreaLeft:"_37LtK",videoTopPos:"_1XTRO",topPos:"_3_p_J"}},1073:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(3),i={getSliderAnalyticsOptions:function(){return{actionType:a.UserAction.Click,location:a.LocationContext.SlidingList,entity:a.EntityType.Widget,descriptor:a.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:a.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:a.UserAction.Click,location:a.LocationContext.SlidingList,entity:a.EntityType.Widget,descriptor:a.ClickDescriptor.Title}}}},1077:function(e,t,n){"use strict";var a=n(0),i=n(281),r=n(1035),o=n(42),l=new Image;l.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var c=function(e){e.dataTransfer.setDragImage&&o.a.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(l,0,0)};n.d(t,"a",(function(){return u}));var s=i.a.isTouchScreen(),u=a.forwardRef((function(e,t){var n,i,o,l,u=e.children,d=e.positionType,v=e.onDrag,f=e.onDragEnd,m=e.onTouchMove,b=e.onTouchEnd,g=e.percentageDragged,p=e.position,h=void 0===p?0:p;return a.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(i=h,o=d,l=g,o===r.a.Percentage&&l&&(i-=l),{transform:"translate3d(".concat(i).concat(o,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},v&&f&&(n.draggable=!0,n.onDragEnd=f,n.onDragStart=c,n.onDragOver=v),m&&b&&s&&(n.onTouchMoveCapture=m,n.onTouchEndCapture=b),n)),u)}))},1127:function(e,t,n){e.exports={baseFallbackContainer:"_1wRjB",svgFallbackContainer:"_2t1jq",subjectFallbackContainer:"_12D74",videoFallback:"_6BPy-",subjectFallback:"_2Srdd",playlistFallback:"_1slQX",posterFallback:"i0o8n",fallbackThumbnailImage:"_2L_tV"}},1178:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a={NEW_RELEASE_BANNER_URL:"https://image.api.prd.cvnet.io/v2/banners/3kzeZ2?size=large",KIDS_MOVIES_BANNER_URL:"https://image.api.prd.cvnet.io/v2/banners/yKLmrz?size=large",EXPLORE_ALL_TOPICS_BANNER_URL:"https://image.api.prd.cvnet.io/v2/banners/yKvoG0?size=large"}},1601:function(e,t,n){e.exports={classificationPane:"_1AyPy"}},1746:function(e,t,n){"use strict";n.r(t),n.d(t,"getBannerActions",(function(){return P})),n.d(t,"ClassificationsView",(function(){return R}));var a=n(0),i=n(74),r=n(16),o=n(8),l=n(329),c=n(70),s=n(39),u=n(332),d=n(1013),v=n(1359),f=n(124),m=n(48),b=n(1041),g=n(25),p=n(1142),h=n(1185),y=n(1105),A=n(1360),S=n(1106),k=n(986),E=n(133),C=n(30),_=n(83),w=n(88),L=n(1178),N=n(1361),T=n(1601),j=n.n(T);function x(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=[],a=!0,i=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(a=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);a=!0);}catch(e){i=!0,r=e}finally{try{a||null==l.return||l.return()}finally{if(i)throw r}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(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 F(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 F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var I=o.a.encloseNamespace("subjects.classifications");function P(e,t,n,a,i){var r,o;if(!(null==e?void 0:e.id))return[];var l=!!(null===(o=null===(r=e.followers)||void 0===r?void 0:r.data)||void 0===o?void 0:o.length),c=[];return a(w.a.FollowSubjects)&&c.unshift({label:I(l?"unfollow":"follow"),onClick:t,svgName:l?g.b.Check:g.b.Bell,className:"btn follow-btn ".concat(l?"btn-outline-dark":"btn-dark"," mr-2"),button:!0,tooltip:l||i?void 0:I("followBtnTooltip"),showSpinner:n}),c}function R(e){var t,n,o,g,w=e.id,T=x(a.useState(),2),F=T[0],R=T[1],D=Object(i.useDispatch)(),O=Object(E.a)().hasPermissions,B=r.a.useBasicFetch(m.a.currentUser(),{optimize:!0}),z=r.a.useBasicFetch(f.a.config(),{optimize:!0}),U=r.a.useBasicFetch(b.a.presentation(),{optimize:!0}),V=function(e,t){var n=r.a.useBasicFetch(t&&(null==e?void 0:e.id)&&b.a.classification(t,null==e?void 0:e.id),{optimize:!0});return t?null==n?void 0:n.data:{name:I("exploreAllTopics"),banner:{url:L.a.EXPLORE_ALL_TOPICS_BANNER_URL}}}(B.data,w),M=function(e){var t=e?b.a.children(e):b.a.classifications();return r.a.useBasicFetch(t,{optimize:!0})}(w),X=function(e){var t=r.a.useBasicFetch(e&&b.a.path(e),{optimize:!0});return e?null==t?void 0:t.data:[]}(w),G=x(Object(c.a)(u.a.AUDIENCE_FILTER,void 0,{storage:s.c.SessionStorage}),1)[0];Object(l.a)(null==V?void 0:V.name);var K=Object(N.b)(d.a.getAudienceParams(G));a.useEffect((function(){R(!1)}),[null===(n=null===(t=null==V?void 0:V.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length]);var Q=Object(_.a)(C.a.MDDown),q=!(w&&!V||!z.data),J={presentationId:null===(o=null==U?void 0:U.data)||void 0===o?void 0:o.id,presentationName:null===(g=null==U?void 0:U.data)||void 0===g?void 0:g.name,currentClassificationName:null==V?void 0:V.name},W=(null==V?void 0:V.status)===p.a.ComingSoon;return a.createElement("main",{className:"bg-white px-3"},q?a.createElement(y.a,{heading:null==V?void 0:V.name,banner:null==V?void 0:V.banner,imageCdnUrl:z.data.imageCdnUrl,actions:W?[]:P(V,(function(){var e,t;R(!0);var n=(null===(t=null===(e=null==V?void 0:V.followers)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)?v.a.unfollow:v.a.follow;r.a.fetch(D,n([null==V?void 0:V.id]))}),F,O,Q)}):a.createElement(y.b,null),a.createElement("div",{className:"py-3 mb-3 border-bottom"},a.createElement(k.b,{currentItem:V,type:k.a.Static,getItemAppLink:w?K:function(){return{}},data:X,rootItem:{label:I("topics"),appLink:null,active:!0},subview:w?I("subview"):null})),a.createElement("div",{className:j.a.classificationPane},function(){var e;return q?(null===(e=null==M?void 0:M.data)||void 0===e?void 0:e.length)?a.createElement("div",{className:"mx-n2"},a.createElement(A.a,{classifications:M.data,getItemAppLink:K,analyticsData:J})):a.createElement(a.Fragment,null):a.createElement(S.b,{partialLoadingComponent:h.a})}()))}}}]);
|