@clickview/lite 0.31.2-rc.6 → 0.31.2-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/scripts/{1064-9bc00d1119-lite.chunk.js → 1064-458b68fb91-lite.chunk.js} +1 -1
  3. package/dist/scripts/{162-e5c97acfb1-lite.chunk.js → 162-762c3d72e3-lite.chunk.js} +2 -2
  4. package/dist/scripts/{1818-a83253fc4a-lite.chunk.js → 1818-1566ab6170-lite.chunk.js} +1 -1
  5. package/dist/scripts/{1820-b59ec08f92-lite.chunk.js → 1820-961e34dc3f-lite.chunk.js} +1 -1
  6. package/dist/scripts/{3091-3d3850a415-lite.chunk.js → 3091-23bbaf2400-lite.chunk.js} +1 -1
  7. package/dist/scripts/{3285-6fd37b7b51-lite.chunk.js → 3285-dcec4d8e24-lite.chunk.js} +1 -1
  8. package/dist/scripts/{3322-6c49ef644a-lite.chunk.js → 3322-90da5fc550-lite.chunk.js} +1 -1
  9. package/dist/scripts/3514-ec0e5408ed-lite.chunk.js +1 -0
  10. package/dist/scripts/{3966-66cb50b7c4-lite.chunk.js → 3966-ea2b70c705-lite.chunk.js} +1 -1
  11. package/dist/scripts/{4145-f072f10ba6-lite.chunk.js → 4145-ab4ad95b9a-lite.chunk.js} +1 -1
  12. package/dist/scripts/{5590-f2358ed66e-lite.chunk.js → 5590-f1cdd7bd5c-lite.chunk.js} +1 -1
  13. package/dist/scripts/5776-3015e0c3b2-lite.chunk.js +1 -0
  14. package/dist/scripts/6117-a149fd0dce-lite.chunk.js +1 -0
  15. package/dist/scripts/{6263-6b96369c8d-lite.chunk.js → 6263-8e38e9b596-lite.chunk.js} +1 -1
  16. package/dist/scripts/{6932-05cfdb89f8-lite.chunk.js → 6932-59789e4aea-lite.chunk.js} +1 -1
  17. package/dist/scripts/{7072-39485fc286-lite.chunk.js → 7072-7b881ba393-lite.chunk.js} +2 -2
  18. package/dist/scripts/{7952-dd5c9af1ed-lite.chunk.js → 7952-da7e2efbb9-lite.chunk.js} +1 -1
  19. package/dist/scripts/9744-57f41382a5-lite.chunk.js +1 -0
  20. package/dist/scripts/9961-7cea13c70e-lite.chunk.js +1 -0
  21. package/dist/scripts/bundle-3d63c5e8ef.min.js +2 -0
  22. package/package.json +2 -2
  23. package/dist/scripts/3514-3dd7072018-lite.chunk.js +0 -1
  24. package/dist/scripts/5776-43de233cad-lite.chunk.js +0 -1
  25. package/dist/scripts/6117-b1a64ee9d6-lite.chunk.js +0 -1
  26. package/dist/scripts/9744-8edc9b07ee-lite.chunk.js +0 -1
  27. package/dist/scripts/9961-af90dcc493-lite.chunk.js +0 -1
  28. package/dist/scripts/bundle-8745e6b2a5.min.js +0 -2
  29. /package/dist/scripts/{162-e5c97acfb1-lite.chunk.js.LICENSE.txt → 162-762c3d72e3-lite.chunk.js.LICENSE.txt} +0 -0
  30. /package/dist/scripts/{7072-39485fc286-lite.chunk.js.LICENSE.txt → 7072-7b881ba393-lite.chunk.js.LICENSE.txt} +0 -0
  31. /package/dist/scripts/{bundle-8745e6b2a5.min.js.LICENSE.txt → bundle-3d63c5e8ef.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7952],{54644:(e,t,a)=>{a.d(t,{v:()=>r});var n=a(97395),r={getContentUpdates:function(e,t,a){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:t,to:a,limit:6,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/presentations/".concat(e,"/content-updates"),{from:t,to:a,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){return{url:n._.urlBuilder("/api/domain/v1/subjects",{id:e,query:"banner"}),publicUrl:n._.urlBuilder("/api/subjects/classifications",{id:e,query:"banner"}),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),publicUrl:"/api/subjects/classifications/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,a){return{url:n._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:a,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/classifications/".concat(e,"/content-updates"),{from:t,to:a,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(a)}},getContentUpdateVideos:function(e,t){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},49935:(e,t,a)=>{a.d(t,{Oo:()=>d,b2:()=>m});var n=a(1024),r=a(36848),i=a(86764),o=a(3747),l=a(5859),c=a(58130),s=a(83914),u=function(e){var t=e.breadcrumb,a=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?n.createElement("strong",null,a):n.createElement(r.F,{appLink:i},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ml-2":""},a)))},d=function(e){var t=e.breadcrumbs,a=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(u,{key:t,breadcrumb:e})}))))},m=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,o.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},74696:(e,t,a)=>{a.d(t,{S:()=>s});var n=a(1024),r=a.n(n),i=a(99910),o=a(9977),l=a(79967);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return r().createElement(r().Fragment,null,Array(e.numVideos).fill(null).map((function(t,a){return r().createElement(u,Object.assign({key:a},e))})))}function u(e){var t=(0,l.k)(),a="sm"===o.O.getSize(t,"md"),n=e.withReordering&&!t.xs;return r().createElement(i.Row,{noGutters:!0,className:"".concat(a?"":"py-2")},r().createElement(i.Col,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(a?"pb-2 pr-2":"mb-1 px-2")}),r().createElement(i.Row,null,!!n&&r().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),r().createElement(i.Col,{xs:o.O.getThumbnailColSize(n)},r().createElement("div",{className:"partial-loading-background ".concat(a?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),r().createElement(i.Col,Object.assign({},o.O.getDetailsColumns(),{className:a?"pb-2":"px-2"}),r().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),r().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},5859:(e,t,a)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}a.d(t,{u:()=>i});var r={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Object.assign(Object.assign({},r),t);return(e=Array(a.numItems),function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*a.maxWidth),a.minWidth),"px")}}))}}},37808:(e,t,a)=>{a.d(t,{aq:()=>b,YW:()=>h});var n=a(1024),r=a(36848),i=a(83345),o=a(99910),l=a(57900),c=a(2948),s=a(10874),u=a(38143),d=a(58130);const m={banner:"B7jhq"};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var f="contentUpdates.classificationBanner";function b(e){var t,a,b=e.classification,v=e.backgroundUrl,h=e.followed,g=e.follow,y=e.showFollowSpinner,w=(t=(0,c.D)(u.g.AUDIENCE_FILTER,void 0,{storage:l.Z1.SessionStorage}),a=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return n.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(m.banner),style:{backgroundImage:"url('".concat(v,"')")}},n.createElement(r.F,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(b,w)},n.createElement("h2",{className:"h3 mb-0"},b.name)),e.canFollow&&n.createElement(s.h,{className:"btn follow-btn ".concat(h?"btn-outline-dark":"btn-dark"),svgName:h?d.vn.Check:d.vn.Bell,onClick:function(){return g(b.id,b.name,!h)}},y?n.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n.createElement(i.x,{namespace:f,phrase:h?"unfollow":"follow"})))}var v="playlists.liteClassificationUpdateBreadcrumbs";function h(e){var t=e.classification;return n.createElement(n.Fragment,null,n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb p-0 mb-0"},n.createElement("li",{className:"breadcrumb-item"},n.createElement(r.F,{appLink:e.dashboardAppLink},n.createElement(i.x,{namespace:v,phrase:"dashboard"}))),n.createElement("li",{className:"breadcrumb-item"},n.createElement(r.F,{appLink:e.contentUpdatesAppLink},n.createElement(i.x,{namespace:v,phrase:"whatsNew"}))),n.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}},19595:(e,t,a)=>{a.r(t),a.d(t,{ClassificationUpdateView:()=>T});var n=a(1024),r=a.n(n),i=a(58566),o=a(33192),l=a(23481),c=a(20354),s=a(65858),u=a(54644),d=a(4632),m=a(51365),p=a(16714),f=a(1666),b=a(61699),v=a(31949),h=a(69883),g=a(97037),y=a(22902),w=a(79612),k=a(65986),E=a(44110),S=a(97816),A=a(56017),j=a(14794),C=a(37808),N=a(49935),L=a(74696);const I={partialBanner:"DKukI"};function O(){return r().createElement("div",{className:"bg-white px-3"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat(I.partialBanner," rounded")}),r().createElement("div",{className:"mb-1"},r().createElement(N.b2,null)),r().createElement(L.S,null))}var F=a(49985),U="contentUpdates.classificationUpdate",x=l.T.encloseNamespace(U);function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var D=l.T.encloseNamespace("contentUpdates.classificationUpdate");function T(e){var t,a,r,N,L,I,T,M,P,_,q=e.classificationId,Y=(0,i.useDispatch)(),V=(0,h.Z)(),H=(0,g.c)(s.LZ.VideoThumbnail),W=H.setFavourite,R=H.canFavourite,z=c.a.useBasicFetch(v.N.currentUser()),G=c.a.useBasicFetch((null===(t=z.data)||void 0===t?void 0:t.isAuthenticated)&&f.h.yearGroups(z.data.customerId)),Z=(P=n.useState(!1),_=2,function(e){if(Array.isArray(e))return e}(P)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(P,_)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?B(e,t):void 0}}(P,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=Z[0],Q=function(e){var t=e.dispatch,a=e.alerts,n=e.setShowFollowSpinner;return{onFollow:function(e,r,i){n(!0);var o=function(){n(!1),F.k.logUserAction({id:e,name:r},{location:s.LZ.ContentUpdatesClassificationBanner,workflowPhase:s.eu.Complete,descriptor:i?s.DL.On:s.DL.Off,actionType:s.Vw.Follow,entity:s.py.Classification}),a.success(x(i?"followed":"unfollowed",{name:r,escapeText:!0}))},u=function(){n(!1),a.error(l.T.getPhrase(U,"error"))},d=i?b.o.followSubjects([e],o,u):b.o.unfollowSubjects([e],o,u);c.a.fetch(t,d)}}}({dispatch:Y,alerts:V,setShowFollowSpinner:Z[1],currentUser:null==z?void 0:z.data}),X=o().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),K=o().endOf("day").format("YYYY-MM-DD"),J=(0,(0,y.T)().hasPermissions)(p.C.FollowSubjects),ee=c.a.useBasicFetch(u.v.getClassification(q)),te=c.a.useBasicFetch(z.data&&u.v.getClassificationUpdates(q,X,K)),ae=c.a.useBasicFetch(J&&b.o.mySubjectPreferences()),ne=(0,E.i)(e.presentationSlug);(0,w.M)(A.C.getDefaultMetadata({title:null===(a=ee.data)||void 0===a?void 0:a.name,phraseContext:{phraseHandler:D,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:j.f.getCanonicalLink(),allowIndexing:j.f.allowIndexing()}));var re=(0,k._)(k.i.VideoItem);(0,S.V)(null!==(N=null===(r=te.data)||void 0===r?void 0:r.videos)&&void 0!==N?N:[],{hasCurriculumLinks:!0});var ie=ae.hasCompleted||!J;if(!(te.data&&ee.data&&ie&&z.data))return n.createElement(O,null);var oe=null!==(I=null===(L=ae.data)||void 0===L?void 0:L.map((function(e){return e.id})))&&void 0!==I?I:[];return n.createElement(m.M.Provider,{value:re},n.createElement("div",{className:"bg-white px-3"},n.createElement(C.aq,{classification:ee.data,backgroundUrl:null!==(M=null===(T=ee.data.banner)||void 0===T?void 0:T.url)&&void 0!==M?M:"",getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:!!oe.find((function(e){return e.toString()===ee.data.id.toString()})),follow:Q.onFollow,showFollowSpinner:$,canFollow:J}),n.createElement(C.YW,{classification:ee.data,dashboardAppLink:e.appLinks.dashboardAppLink,contentUpdatesAppLink:e.appLinks.whatsNewAppLink}),n.createElement(d.E4,{videos:te.data.videos,yearGroups:G.data,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink,setFavourite:W,canFavourite:R,presentationAudiences:ne.data})))}},87821:(e,t,a)=>{a.d(t,{p:()=>r});var n=a(33192),r={userVideoHistory:function(e,t,a,r){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=n.utc(e.lastTimeWatched).local().format(),a=n(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:a})})),pagination:e.pagination}},success:t,error:a,always:r}},videoHistory:function(e,t,a,n,r){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:a,error:n,always:r}}}},44110:(e,t,a)=>{a.d(t,{i:()=>l});var n=a(20354),r=a(25925),i=a(89454),o=a(86698),l=function(e){var t=(0,o.y)(r.R.Subject,null,e,!!e).presentation;return n.a.useBasicFetch(!!t&&i.O.presentationAudiences(t.id))}},97816:(e,t,a)=>{a.d(t,{V:()=>f});var n=a(1024),r=a.n(n),i=a(20354),o=a(21750),l=a(63419),c=a(31949),s=a(1575),u=a(87821);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var p={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e){var t,a,n,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},p),m),b=f.ratings,v=f.favourites,h=f.watchHistory,g=f.hasCurriculumLinks,y=i.a.useBasicFetch(c.N.currentUser()),w=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),k=y.data;t=r().useMemo((function(){if(!(null==k?void 0:k.isAuthenticated))return[];var e=[];return b&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&s.R.videoRatings(w,m.flightNamespace)])),v&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&k&&l.P.isFavourited(k.id,w,m.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&k&&u.p.videoHistory(w,m.flightNamespace)])),g&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&o.x.hasCurriculumLinks(w,null,m.flightNamespace)])),e.filter(Boolean)}),[null==w?void 0:w.length]),a=!!e,n=i.a.useGetFetch(),r().useEffect((function(){a&&t.length&&t.forEach((function(e){n(e)}))}),[t.length])}}}]);
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7952],{54644:(e,t,a)=>{a.d(t,{v:()=>r});var n=a(97395),r={getContentUpdates:function(e,t,a){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates",{from:t,to:a,limit:6,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/presentations/".concat(e,"/content-updates"),{from:t,to:a,limit:6,query:"(videoCollection)"}),key:"content:updates",normalizeOptions:{namespace:"contentupdates"},formatData:function(e){return e.map((function(e){return{id:e.classificationId,videos:e.videos}}))}}},getClassifications:function(e){return{url:n._.urlBuilder("/api/domain/v1/subjects",{id:e,query:"banner"}),publicUrl:n._.urlBuilder("/api/subjects/classifications",{id:e,query:"banner"}),key:"classifications:".concat(e.join(","))}},getClassification:function(e){return{url:"/api/domain/v1/subjects/".concat(e,"?query=banner"),publicUrl:"/api/subjects/classifications/".concat(e,"?query=banner"),key:"classification:".concat(e)}},getClassificationUpdates:function(e,t,a){return{url:n._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/content-updates"),{from:t,to:a,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/classifications/".concat(e,"/content-updates"),{from:t,to:a,query:"(videoCollection)"}),key:"classification:update:".concat(e,":").concat(t,":").concat(a)}},getContentUpdateVideos:function(e,t){return{url:n._.urlBuilder("/api/domain/v1/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),publicUrl:n._.urlBuilder("/api/subjects/content-updates/videos",{from:e,to:t,query:"(videoCollection)"}),key:"content:update:videos:".concat(e,":").concat(t)}},videos:function(e,t){return{url:"/api/domain/v1/videos?ids=".concat(e.join(","),"&with=(videoCollection)"),key:"videos:by:id:".concat(e.join(",")),success:t}}}},49935:(e,t,a)=>{a.d(t,{Oo:()=>d,b2:()=>m});var n=a(1024),r=a(36848),i=a(86764),o=a(3747),l=a(5859),c=a(58130),s=a(83914),u=function(e){var t=e.breadcrumb,a=t.name,i=t.appLink,o=t.active,l=e.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(o?" active":"")},o?n.createElement("strong",null,a):n.createElement(r.F,{appLink:i},l&&n.createElement(s.x,{svgName:c.vn.ChevronLeft,size:s.S.Small}),n.createElement("span",{className:l?"ml-2":""},a)))},d=function(e){var t=e.breadcrumbs,a=(0,o.a)(i.r.XS),r=null==t?void 0:t.length;return!r||a&&r<2?n.createElement(n.Fragment,null):a?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(u,{breadcrumb:t[r-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},t.map((function(e,t){return n.createElement(u,{key:t,breadcrumb:e})}))))},m=n.memo((function(e){var t=e.numItems,a=void 0===t?3:t;return(0,o.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},l.u.getPartialLoadingItems({numItems:a}).map((function(e,t){var a=e.width;return n.createElement("li",{key:t,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:a},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},74696:(e,t,a)=>{a.d(t,{S:()=>s});var n=a(1024),r=a.n(n),i=a(99910),o=a(9977),l=a(79967);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return r().createElement(r().Fragment,null,Array(e.numVideos).fill(null).map((function(t,a){return r().createElement(u,Object.assign({key:a},e))})))}function u(e){var t=(0,l.k)(),a="sm"===o.O.getSize(t,"md"),n=e.withReordering&&!t.xs;return r().createElement(i.Row,{noGutters:!0,className:"".concat(a?"":"py-2")},r().createElement(i.Col,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(a?"pb-2 pr-2":"mb-1 px-2")}),r().createElement(i.Row,null,!!n&&r().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},r().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),r().createElement(i.Col,{xs:o.O.getThumbnailColSize(n)},r().createElement("div",{className:"partial-loading-background ".concat(a?"rounded":"rounded-lg"," ").concat(c.partialThumbnail)})))),r().createElement(i.Col,Object.assign({},o.O.getDetailsColumns(),{className:a?"pb-2":"px-2"}),r().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),r().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},5859:(e,t,a)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}a.d(t,{u:()=>i});var r={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Object.assign(Object.assign({},r),t);return(e=Array(a.numItems),function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*a.maxWidth),a.minWidth),"px")}}))}}},37808:(e,t,a)=>{a.d(t,{aq:()=>b,YW:()=>h});var n=a(1024),r=a(36848),i=a(83345),o=a(99910),l=a(57900),c=a(2948),s=a(10874),u=a(38143),d=a(58130);const m={banner:"B7jhq"};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var f="contentUpdates.classificationBanner";function b(e){var t,a,b=e.classification,v=e.backgroundUrl,h=e.followed,g=e.follow,y=e.showFollowSpinner,w=(t=(0,c.D)(u.g.AUDIENCE_FILTER,void 0,{storage:l.Z1.SessionStorage}),a=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,a)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?p(e,t):void 0}}(t,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return n.createElement("div",{className:"banner mb-2 d-flex justify-content-between align-items-center rounded ".concat(m.banner),style:{backgroundImage:"url('".concat(v,"')")}},n.createElement(r.F,{className:"text-white text-shadow",appLink:e.getClassificationAppLink(b,w)},n.createElement("h2",{className:"h3 mb-0"},b.name)),e.canFollow&&n.createElement(s.h,{className:"btn follow-btn ".concat(h?"btn-outline-dark":"btn-dark"),svgName:h?d.vn.Check:d.vn.Bell,onClick:function(){return g(b.id,b.name,!h)}},y?n.createElement(o.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n.createElement(i.x,{namespace:f,phrase:h?"unfollow":"follow"})))}var v="playlists.liteClassificationUpdateBreadcrumbs";function h(e){var t=e.classification;return n.createElement(n.Fragment,null,n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb p-0 mb-0"},n.createElement("li",{className:"breadcrumb-item"},n.createElement(r.F,{appLink:e.dashboardAppLink},n.createElement(i.x,{namespace:v,phrase:"dashboard"}))),n.createElement("li",{className:"breadcrumb-item"},n.createElement(r.F,{appLink:e.contentUpdatesAppLink},n.createElement(i.x,{namespace:v,phrase:"whatsNew"}))),n.createElement("li",{className:"breadcrumb-item active","aria-current":"page"},t.name))))}},19595:(e,t,a)=>{a.r(t),a.d(t,{ClassificationUpdateView:()=>T});var n=a(1024),r=a.n(n),i=a(58566),o=a(33192),l=a(23481),c=a(20354),s=a(65858),u=a(54644),d=a(4632),m=a(51365),p=a(16714),f=a(1666),b=a(61699),v=a(31949),h=a(69883),g=a(97037),y=a(22902),w=a(79612),k=a(65986),E=a(44110),S=a(97816),A=a(56017),j=a(18921),C=a(37808),N=a(49935),L=a(74696);const I={partialBanner:"DKukI"};function O(){return r().createElement("div",{className:"bg-white px-3"},r().createElement("div",{className:"partial-loading-background mb-2 ".concat(I.partialBanner," rounded")}),r().createElement("div",{className:"mb-1"},r().createElement(N.b2,null)),r().createElement(L.S,null))}var F=a(49985),U="contentUpdates.classificationUpdate",x=l.T.encloseNamespace(U);function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var D=l.T.encloseNamespace("contentUpdates.classificationUpdate");function T(e){var t,a,r,N,L,I,T,M,P,_,q=e.classificationId,Y=(0,i.useDispatch)(),V=(0,h.Z)(),H=(0,g.c)(s.LZ.VideoThumbnail),W=H.setFavourite,R=H.canFavourite,z=c.a.useBasicFetch(v.N.currentUser()),G=c.a.useBasicFetch((null===(t=z.data)||void 0===t?void 0:t.isAuthenticated)&&f.h.yearGroups(z.data.customerId)),Z=(P=n.useState(!1),_=2,function(e){if(Array.isArray(e))return e}(P)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,i,o,l=[],c=!0,s=!1;try{if(i=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(P,_)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?B(e,t):void 0}}(P,_)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=Z[0],Q=function(e){var t=e.dispatch,a=e.alerts,n=e.setShowFollowSpinner;return{onFollow:function(e,r,i){n(!0);var o=function(){n(!1),F.k.logUserAction({id:e,name:r},{location:s.LZ.ContentUpdatesClassificationBanner,workflowPhase:s.eu.Complete,descriptor:i?s.DL.On:s.DL.Off,actionType:s.Vw.Follow,entity:s.py.Classification}),a.success(x(i?"followed":"unfollowed",{name:r,escapeText:!0}))},u=function(){n(!1),a.error(l.T.getPhrase(U,"error"))},d=i?b.o.followSubjects([e],o,u):b.o.unfollowSubjects([e],o,u);c.a.fetch(t,d)}}}({dispatch:Y,alerts:V,setShowFollowSpinner:Z[1],currentUser:null==z?void 0:z.data}),X=o().subtract(1,"year").endOf("day").format("YYYY-MM-DD"),K=o().endOf("day").format("YYYY-MM-DD"),J=(0,(0,y.T)().hasPermissions)(p.C.FollowSubjects),ee=c.a.useBasicFetch(u.v.getClassification(q)),te=c.a.useBasicFetch(z.data&&u.v.getClassificationUpdates(q,X,K)),ae=c.a.useBasicFetch(J&&b.o.mySubjectPreferences()),ne=(0,E.i)(e.presentationSlug);(0,w.M)(A.C.getDefaultMetadata({title:null===(a=ee.data)||void 0===a?void 0:a.name,phraseContext:{phraseHandler:D,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:j.f.getCanonicalLink(),allowIndexing:j.f.allowIndexing()}));var re=(0,k._)(k.i.VideoItem);(0,S.V)(null!==(N=null===(r=te.data)||void 0===r?void 0:r.videos)&&void 0!==N?N:[],{hasCurriculumLinks:!0});var ie=ae.hasCompleted||!J;if(!(te.data&&ee.data&&ie&&z.data))return n.createElement(O,null);var oe=null!==(I=null===(L=ae.data)||void 0===L?void 0:L.map((function(e){return e.id})))&&void 0!==I?I:[];return n.createElement(m.M.Provider,{value:re},n.createElement("div",{className:"bg-white px-3"},n.createElement(C.aq,{classification:ee.data,backgroundUrl:null!==(M=null===(T=ee.data.banner)||void 0===T?void 0:T.url)&&void 0!==M?M:"",getClassificationAppLink:e.appLinks.getClassificationAppLink,followed:!!oe.find((function(e){return e.toString()===ee.data.id.toString()})),follow:Q.onFollow,showFollowSpinner:$,canFollow:J}),n.createElement(C.YW,{classification:ee.data,dashboardAppLink:e.appLinks.dashboardAppLink,contentUpdatesAppLink:e.appLinks.whatsNewAppLink}),n.createElement(d.E4,{videos:te.data.videos,yearGroups:G.data,getVideoAppLink:e.appLinks.getVideoAppLink,getSeriesAppLink:e.appLinks.getSeriesAppLink,setFavourite:W,canFavourite:R,presentationAudiences:ne.data})))}},87821:(e,t,a)=>{a.d(t,{p:()=>r});var n=a(33192),r={userVideoHistory:function(e,t,a,r){var i="video:history",o="{gateway}/v1/users/me/watch-history";return e&&(i+=":".concat(e),o+="?cursor=".concat(e)),{key:i,url:o,formatData:function(e){return{data:e.data.map((function(e){var t=n.utc(e.lastTimeWatched).local().format(),a=n(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:a})})),pagination:e.pagination}},success:t,error:a,always:r}},videoHistory:function(e,t,a,n,r){var i=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(i.join("&")),url:"{gateway}/v1/videos/history?".concat(i.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:a,error:n,always:r}}}},44110:(e,t,a)=>{a.d(t,{i:()=>l});var n=a(20354),r=a(25925),i=a(89454),o=a(86698),l=function(e){var t=(0,o.y)(r.R.Subject,null,e,!!e).presentation;return n.a.useBasicFetch(!!t&&i.O.presentationAudiences(t.id))}},97816:(e,t,a)=>{a.d(t,{V:()=>f});var n=a(1024),r=a.n(n),i=a(20354),o=a(21750),l=a(63419),c=a(31949),s=a(1575),u=a(87821);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var p={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function f(e){var t,a,n,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=Object.assign(Object.assign({},p),m),b=f.ratings,v=f.favourites,h=f.watchHistory,g=f.hasCurriculumLinks,y=i.a.useBasicFetch(c.N.currentUser()),w=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),k=y.data;t=r().useMemo((function(){if(!(null==k?void 0:k.isAuthenticated))return[];var e=[];return b&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&s.R.videoRatings(w,m.flightNamespace)])),v&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&k&&l.P.isFavourited(k.id,w,m.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&k&&u.p.videoHistory(w,m.flightNamespace)])),g&&(e=[].concat(d(e),[!!(null==w?void 0:w.length)&&o.x.hasCurriculumLinks(w,null,m.flightNamespace)])),e.filter(Boolean)}),[null==w?void 0:w.length]),a=!!e,n=i.a.useGetFetch(),r().useEffect((function(){a&&t.length&&t.forEach((function(e){n(e)}))}),[t.length])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9744],{94644:(e,a,t)=>{t.d(a,{r:()=>u});var n=t(50242),i=t(81886),r=t(67058),d=t(14553),s=t(49267),o=t(49075),c={notFound:r.d,forbidden:{rating:d.q,yearLevel:d.q,region:s.a,privacy:d.q},badRequest:o._};function u(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r;r="number"==typeof e?e:e.status;var d=Object.assign(Object.assign({},c),a);r&&i.Q.Ry.isStatusCodeError(r)&&(r!==n.o.NotFound?r!==n.o.Forbidden?t.badRequest||i.Q.Ry.throw(new d.badRequest):t.forbidden||i.Q.Ry.throw(new d.forbidden.privacy):t.notFound||i.Q.Ry.throw(new d.notFound))}}},91286:(e,a,t)=>{t.d(a,{v:()=>d});var n=t(1024),i=t(94644);function r(e){return e.map((function(e){return e.statusCode})).join(":")}function d(e,a,t){var d=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){d.forEach((function(e){(0,i.r)(e.statusCode,a,t)}))}),[r(d),a,t])}},69630:(e,a,t)=>{t.r(a),t.d(a,{PlayView:()=>T});var n=t(1024),i=t(50242),r=t(23481),d=t(20354),s=t(28400),o=t(65858),c=t(78417),u=t(16714),l=t(25925),v=t(61990),p=t(33803),h=t(89454),g=t(39151),m=t(1666),f=t(28907),y=t(31949),F=t(1575),b=t(27995),C=t(97037),w=t(91286),P=t(22902),I=t(79612),R=t(60739),k=t(14070),x=t(97291),V=t(41063),q=t(82817),A=t(7179),B=t(49948),L=t(36873),E=t(86698),O=t(35014),N=t(97816),_=t(56017),j=t(18921),M=r.T.encloseNamespace("shared.play"),S={notFound:v.l,forbidden:{privacy:p.G}};function T(e){var a,t,r,v,p=e.queryParams,T=p.context,U=p.contextId,G=p.playNext,Q=p.mtv,D=(0,C.c)(o.LZ.PlayPage),H=D.setFavourite,Y=D.canFavourite,Z=(0,P.T)().hasPermissions,z=(0,E.y)(l.R.Subject).presentation,J=(0,V.b)(),K=(0,O.I)(),W=d.a.useBasicFetch(F.R.video(e.id)),X=d.a.useBasicFetch(y.N.currentUser()),$=d.a.useBasicFetch(g.L.config()),ee=d.a.useBasicFetch((null===(a=X.data)||void 0===a?void 0:a.isAuthenticated)&&m.h.yearGroups(X.data.customerId)),ae=d.a.useBasicFetch(z&&h.O.audiencesByPresentationId(z.id)),te=Z(u.C.ViewVideoGlance)&&(null===(r=null===(t=W.data)||void 0===t?void 0:t.glance)||void 0===r?void 0:r.theme),ne=d.a.useBasicFetch(te&&f.r.themeImages(W.data.glance.theme,W.data.glance.type)),ie=d.a.useBasicFetch(W.statusCode===i.o.Forbidden&&F.R.video(e.id,c.r.StripMetadata)),re=(0,q.M)(e.id),de=(0,L.k)({video:W.data,context:T,contextId:U,moviesAndTv:Q,currentUser:X.data}),se=(0,B.l)(e.id,!0),oe=d.a.useBasicFetch(F.R.regionAlternatives(e.id));return(0,I.M)(_.C.getVideoMetadata({content:W.data,regionAlternatives:oe.data,phraseContext:{phraseHandler:M,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:j.f.getCanonicalLink({stripPresentationSlug:!0}),allowIndexing:j.f.allowIndexing(),hrefLang:j.f.getContentHrefLang(oe.data,(function(e,a){return{application:x.O.VIDEOS,action:k.e.Videos.PLAY_VIDEO,args:[e,s.m.slugify(a)]}}))})),(0,w.v)(W,S,{forbidden:!0}),(0,N.V)(null!==(v=de.videos)&&void 0!==v?v:[],{hasCurriculumLinks:!0}),(0,A.P)({id:e.id,app:"videos"}),(0,b.b)(ie),W.data&&X.hasCompleted&&$.hasCompleted&&se.hasCompleted&&(!te||ne.hasCompleted)?n.createElement("div",{className:"px-4"},n.createElement(R.j,{video:W.data,yearGroups:ee.data,curriculums:re,glanceTheme:ne.data,relatedVideos:de,setFavourite:H,canFavourite:Y,imageCdnUrl:$.data.imageCdnUrl,currentUser:X.data,pointsOfInterest:se.items,playNext:G,featureAccess:K,audiences:ae.data,params:e.queryParams,canManageVideoAccess:J})):n.createElement(n.Fragment,null)}T.defaultProps={queryParams:{}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9961],{3278:(e,t,n)=>{n.d(t,{z:()=>v});var a=n(1024),r=n.n(a),o=n(39202),i=n(23481),l=n(65858),c=n(38502),s=n(83345),u=n(98758);const d={pillTab:"bMJM0"};var m="discover.header";function v(e){var t,n,a,v,f,p;if(!e.type)return r().createElement(r().Fragment,null);if(e.type===u.Yv.Learner||e.hasStudentExperience)return r().createElement("div",{className:"py-3"},r().createElement("h1",{className:"h2 mb-0"},r().createElement(s.x,{namespace:m,phrase:"heading"})));var h=[{name:i.T.getPhrase(m,"forYou"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.forYou,active:"forYou"===e.active,analyticsData:{name:i.T.getPhrase(m,"forYou"),url:o.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.forYou)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}},{name:i.T.getPhrase(m,"whatsNew"),appLink:null===(a=e.appLinks)||void 0===a?void 0:a.whatsNew,active:"whatsNew"===e.active,analyticsData:{name:i.T.getPhrase(m,"whatsNew"),url:o.C$.getHref(null===(v=e.appLinks)||void 0===v?void 0:v.whatsNew)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}}];return e.showCalendar&&h.push({name:i.T.getPhrase(m,"calendar"),appLink:null===(f=e.appLinks)||void 0===f?void 0:f.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(m,"calendar"),url:o.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.calendar)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.MagicTabs}}),r().createElement("div",{className:"py-3 text-center"},r().createElement(c.r,{tabs:h,className:d.pillTab}))}},38502:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(1024),r=n.n(a),o=n(49985),i=n(36848),l=n(76246),c=n(11607),s=n(87432);function u(e){var t;return r().createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:""},r().createElement("ul",{className:"list-unstyled d-inline-block m-0 ".concat(s.Z.pillTabSelector)},e.tabs.map((function(e){return r().createElement("li",{className:"p-0 ".concat(e.active?"btn btn-dark":"btn btn-outline-dark"),key:e.name},e.appLink?r().createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"cursor-pointer d-flex justify-content-center text-decoration-none text-reset px-2 ".concat(s.Z.pillItem)},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(l.C,{type:l.g.Count,data:e.count}))):r().createElement(c.L,{className:"".concat(s.Z.pillItem," d-flex justify-content-center p-2"),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},e.name,"number"==typeof e.count&&r().createElement("div",{className:"pl-2"},r().createElement(l.C,{type:l.g.Count,data:e.count}))))}))))}},2284:(e,t,n)=>{var a;n.d(t,{W:()=>a}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(a||(a={}))},29917:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(1024),r=n.n(a),o=n(23481),i=n(83914),l=n(36532),c=n(58130);const s={tag:"k1Yjy",tooltip:"Cgeav"};var u="specialEventCalendar.comingSoonTag";function d(e){return r().createElement(l.u,{title:o.T.getPhrase(u,"tooltip"),spanHackClassName:"d-block ".concat(s.tooltip),spanHack:!0},r().createElement("div",{className:"d-flex text-dark align-items-center ".concat(s.tag," ").concat(e.className)},r().createElement(i.x,{svgName:c.vn.Timer}),!e.onlyIcon&&o.T.getPhrase(u,"comingSoon")))}},13037:(e,t,n)=>{n.d(t,{b:()=>E});var a=n(1024),r=n.n(a),o=n(23481),i=n(110),l=n(49985),c=n(65858),s=n(42735),u=n(36848),d=n(2284),m=n(54610),v=n(79967),f=n(67453),p=n(61557),h=n(29917);const y={modalWidth:"v5TkI",banner:"LlPSp",bannerContent:"upY3A",pill:"B7ypp"};var g="specialEventCalendar.eventsListItem";function E(e){var t,n=(0,v.k)(),a=e.getAppLink(e.event.content.id,e.event.name),E=e.event.content.metadata.backgroundColor,b=f.j.createUrl(null===(t=e.event.content.banner)||void 0===t?void 0:t.url,{size:m.h2.Large}),O=!!e.event.endDate,D=e.event.content.status===d.W.ComingSoon,M={actionType:c.Vw.Click,entity:c.py.SpecialEvent,location:e.inPopup?c.LZ.CalendarPopup:c.LZ.CalendarDay},w={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:i.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return r().createElement("div",{onClick:function(){D&&l.k.logUserAction(w,M)}},r().createElement(u.F,{appLink:!D&&a,className:"".concat(D?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:M,analyticsData:w},r().createElement("div",{className:"banner rounded-lg position-relative ".concat(y.banner),style:{backgroundColor:E,backgroundImage:"url('".concat(b,"')")}},r().createElement("div",{className:"".concat(y.bannerContent," px-3")},r().createElement("div",{className:"text-white"},D&&r().createElement(h.r,{className:"pr-2 font-weight-500 mb-1 rounded-pill justify-content-start ".concat(y.pill)}),O&&r().createElement("div",{className:"mb-1"},p.T.getDisplayDate(e.event.startDate,e.event.endDate)),r().createElement("h2",{className:"h4 clamp-1 text-white text-shadow",title:e.event.name},e.event.name)),r().createElement("div",{className:"flex-shrink-0"},!D&&r().createElement(s.K,{className:"btn btn-outline-dark font-weight-500"},o.T.getPhrase(g,n.xs?"mobileButtonLabel":"buttonLabel")))))),r().createElement("div",{className:"mt-2 mb-3"},e.event.description||e.event.content.description))}},39780:(e,t,n)=>{n.d(t,{N:()=>r});var a=n(97395),r={calendarEvents:function(e,t,n){return{url:a._.urlBuilder("{gateway}/v1/discover/special-events/content",{from:e,to:t,presentationId:n}),publicUrl:a._.urlBuilder("/api/discover/special-events/content",{from:e,to:t,presentationId:n}),key:"presentation:".concat(n,":events:from:").concat(e,":to").concat(t)}}}},74590:(e,t,n)=>{n.d(t,{N:()=>v});var a=n(1024),r=n.n(a),o=n(35242),i=n(55171),l=n(25925),c=n(37802),s=n(86698);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(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 m=[i.e.PresentationIds.US_ELEMENTARY,i.e.PresentationIds.SCOTLAND_PRIMARY,i.e.PresentationIds.ENGLAND_PRIMARY,i.e.PresentationIds.AU_PRIMARY];function v(e){var t=(0,c.r)(null),n=t.hasSpecialEventCalendar,a=t.isLoadingSettings,i=(0,s.y)(l.R.Subject,null,e,!0).presentation,d=!a&&!n,v=(null==i?void 0:i.id)&&!m.includes(+i.id),f=u(r().useState(!d&&!v),2),p=f[0],h=f[1],y=u(r().useState(a||!(null==i?void 0:i.id)),2),g=y[0],E=y[1];return r().useEffect((function(){d||v?h(!1):g||h(!0),E(a||!(null==i?void 0:i.id))}),[n,null==i?void 0:i.id,g]),o.h.isDevelopment?{showCalendar:!0,isLoading:!1}:{showCalendar:p,isLoading:g}}},61557:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(110),r=n(28400),o=n(14070),i=n(97291),l={getTopicAppLink:function(e,t){return{application:i.O.SUBJECT,action:o.e.Subjects.CLASSIFICATION,args:[e,r.m.slugify(t)]}},getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.localeData().ordinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},19961:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>He});var a=n(1024),r=n.n(a),o=n(23481),i=n(81886),l=n(110),c=n(3278),s=n(25925),u=n(79612),d=n(98758),m=n(14070),v=n(97291),f=n(86698),p=n(30241),h=n(56017),y=n(18921),g=n(99910),E=n(79967),b=n(27867),O=n(49439);const D={cellDate:"MvrIK",label:"UFPJm",isHovering:"d4VLP",numberWrapper:"PyWl_"};function M(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 w=o.T.encloseNamespace("specialEventCalendar.calendarCellDate");function C(e){var t=l.O.isToday(e.date),n="".concat(D.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var a,o,i=(a=(0,O.L)({delay:250}),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(a,o)||function(e,t){if(e){if("string"==typeof e)return M(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)?M(e,t):void 0}}(a,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=i[0],s=i[1];return r().createElement("div",{className:"".concat(n," ").concat(s?D.isHovering:""),ref:c},r().createElement("div",{className:"".concat(D.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},l.O.format(e.date,"D")),t&&r().createElement("div",{className:"".concat(D.label," justify-content-start align-items-center")},w("today")))}var k=n(49985),N=n(65858),Y=n(36848),S=n(11607),A=n(44435),I=n(83914),L=n(55171),T=n(2284),x=n(54610),j=n(67453),P=n(58130),H=n(29917),U=n(61557);const R={hardcodedCover:"o0bws",tag:"UIeoi",date:"p1FoI",backgroundImage:"_33D7",eventCard:"MPgib",wrapper:"yvPrI",left:"KBv2n",right:"dowd6",noAnimation:"HWvit",cover:"hoJcZ",tagWrap:"VKCBZ",appear:"zh9Ja",displayDate:"i5dV5",title:"od2i9",titleText:"oNtXC",circle:"Y9ovs",active:"DSUJW",arrow:"RjkfI",bottomBar:"RlRw7",bottomPlaceholder:"Hs06S",multiEventFilter:"O2Dl3"};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}function _(e){var t,n,a,o,i=e.sliderStep,c=e.setSliderStep,s=e.eventsOnDay.length>1,u=e.eventsOnDay.find((function(e,t){return t===i})),d=!!u.endDate,f=u.content.metadata.backgroundColor,p=L.e.SpecialEvents[u.content.id],h=p?j.j.createUrl(p.iconUrl,{size:x.h2.Medium}):j.j.createUrl(null===(t=u.content.icon)||void 0===t?void 0:t.url,{size:x.h2.Small}),y=j.j.createUrl(null===(n=u.content.cover)||void 0===n?void 0:n.url,{size:x.h2.Small}),g=U.T.getTopicAppLink(u.content.id,u.name),E=u.content.status===T.W.ComingSoon,b={application:v.O.CALENDAR,action:m.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e.monthQuery),{date:e.date.toString()})},O=(a=r().useState(e.hasInited?R.appear:""),o=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(a,o)||function(e,t){if(e){if("string"==typeof e)return F(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)?F(e,t):void 0}}(a,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),D=O[0],M=O[1];r().useEffect((function(){if(!e.hasInited){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){M(R.appear),window.setTimeout((function(){e.setHasInited(!0)}),400)}),t)}}),[e.hasInited]),r().useEffect((function(){e.isHovering&&e.setHoveredEvent(u)}),[e.isHovering,u]),r().useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===u.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,u]);var w=null;s?w=b:E||(w=g);var _=function(){var t={date:l.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return s?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=u.specialEventId,t.topicId=u.content.id,t.eventStatus=u.content.status),t}(),W={actionType:N.Vw.Click,entity:N.py.SpecialEvent,location:N.LZ.CalendarDay};function V(e){return l.O.format(e,"YYYY-MM-DD")}return r().createElement("div",{onClick:function(){E&&k.k.logUserAction(_,W)}},r().createElement(Y.F,{appLink:w,className:"d-flex justify-content-end",analyticsOptions:W,analyticsData:_},r().createElement("div",{className:"".concat(R.tagWrap," p-1")},E&&r().createElement(H.r,{className:"justify-content-center p-0 rounded-circle ".concat(R.tag," ").concat(D),onlyIcon:!0})),r().createElement(C,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(R.date," ").concat(D),hasEvent:!0,isHovering:e.isHovering}),r().createElement("div",{className:"postion-relative ".concat(R.wrapper)},r().createElement("div",{style:{backgroundColor:f},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(R.eventCard," ").concat(D," ").concat(e.isHovering?"rounded-lg":""," ").concat(e.isMultiEventDate?R.multiEventFilter:"")},r().createElement("div",{style:{backgroundImage:"url('".concat(h||y,"')")},className:"".concat(p?"".concat(R.hardcodedCover," position-absolute"):R.backgroundImage," ").concat(h?"":R.cover," ").concat(E?R.comingSoon:""," ").concat(D," ").concat(e.hasInited?R.noAnimation:""," ").concat(e.isHovering?"rounded-lg":""," ").concat(e.isMultiEventDate?R.multiEventFilter:"")}),d&&r().createElement("div",{className:"".concat(R.displayDate)},U.T.getDisplayDate(u.startDate,u.endDate)),r().createElement("div",{className:"text-center ".concat(R.title," ").concat(s?"mb-1":"mb-2")},r().createElement("div",{className:"".concat(R.titleText," ").concat(e.isHovering?"":"clamp-2"," ").concat(e.isHovering?"mb-0":""," h6"),title:u.name},u.name)),s&&0!==i&&r().createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(R.left)},r().createElement(S.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e-1})),k.k.logUserAction({date:V(e.date),action:"previous",eventCount:e.eventsOnDay.length},W)}},r().createElement(I.x,{svgName:P.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(R.arrow)}))),s&&i!==e.eventsOnDay.length-1&&r().createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(R.right)},r().createElement(S.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),c((function(e){return e+1})),k.k.logUserAction({date:V(e.date),action:"next",eventCount:e.eventsOnDay.length},W)}},r().createElement(I.x,{svgName:P.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(R.arrow)}))),s&&r().createElement("div",{className:"d-flex ".concat(R.bottomBar," ").concat(s?"":R.bottomPlaceholder)},r().createElement(A.e,{sliderStep:i,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){c(t),k.k.logUserAction({date:V(e.date),action:"jump",eventCount:e.eventsOnDay.length},W)}}))))))}const W={wrapper:"ID5BX",notCurrentMonth:"KThJz",weekend:"Le3vK",cell:"GY1K5",multiEventCell:"OhwMa",fadeIn:"hDM5I"};function V(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 B(e){var t,n,a=r().useMemo((function(){var t,n,a,r;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!l.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&l.O.isBetween(l.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(r=e.hoveredEvent)||void 0===r?void 0:r.endDate)}),[e.hoveredEvent]),o=null===(t=e.hoveredEvent)||void 0===t?void 0:t.content.metadata.backgroundColor;return r().createElement("div",{className:"".concat(W.cell," font-weight-500")},r().createElement(C,{date:e.date,notCurrentMonth:e.notCurrentMonth}),a&&r().createElement("div",{style:{backgroundColor:o},className:W.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&r().createElement(_,Object.assign({},e,{isMultiEventDate:a})))}function Z(e){var t,n,a,o=e.date,i=e.notCurrentMonth,c=(n=r().useState(0),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(n,a)||function(e,t){if(e){if("string"==typeof e)return V(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)?V(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],d="position-relative border border-light-blue ".concat(W.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(o)&&(d+=" ".concat(W.weekend)),i&&(d+=" ".concat(W.notCurrentMonth));var m=(null===(t=e.events)||void 0===t?void 0:t.filter((function(t){return l.O.isSame(e.date,t.startDate)})))||[],v=Object.assign(Object.assign({},e),{eventsOnDay:m,sliderStep:s,setSliderStep:u});return r().createElement("td",{className:d},(null==m?void 0:m.length)>0?r().createElement(b.K,{hoverableComponent:B,componentProps:v,hoverScale:1.35}):r().createElement(B,Object.assign({},v,{isHovering:!1})))}var $=n(23232),z=n(83345),J=n(99742),K="specialEvent.eventsEmptyState",Q=o.T.encloseNamespace(K);function X(e){return r().createElement(z.D.Provider,{value:K},r().createElement($.u,null,r().createElement($.u.Image,{src:J.W.EmptyStates.CALENDAR.NO_EVENTS,altText:Q("info")}),r().createElement($.u.Heading,null,r().createElement(z.x,{phrase:"heading"})),r().createElement($.u.Info,null,r().createElement(z.x,{namespace:K,phrase:"info"}),r().createElement(Y.F,{appLink:e.appLink},r().createElement("span",{className:"text-blue"},Q("link"))))))}var G=n(13037);const q={date:"dn7Hd",first:"axdj4"};function ee(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return l.O.isBefore(e,t)?-1:0})),r().createElement("div",{className:"py-1"},n.map((function(n,a){return r().createElement("div",{key:n},r().createElement("div",{className:"h4 mt-4 ".concat(q.date," ").concat(0===a?q.first:"")},U.T.getOrdinalDate(n)),t[n].map((function(t){return r().createElement(G.b,{key:t.content.id,getAppLink:U.T.getTopicAppLink,event:t,presentationId:e.presentationId})})))})))}const te={header:"xLOrx",thead:"ef_XJ"};function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ae(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)?ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(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 re(e){var t=(0,E.k)(),n=U.T.getEventsInMonth(e.events||[],e.viewingMonth),a=ne(r().useState(!1),2),o=a[0],i=a[1],l=ne(r().useState(null),2),c=l[0],s=l[1];return t.xs||t.sm||t.md?e.eventsLoaded?(null==n?void 0:n.length)?r().createElement(ee,{events:n,presentationId:e.presentationId}):r().createElement(X,{appLink:{application:v.O.CONTENT_UPDATES,action:m.e.ContentUpdates.CONTENT_UPDATES}}):r().createElement("div",{className:"d-flex justify-content-center align-items-center"},r().createElement(g.Spinner,{as:"div",animation:"border",role:"status"})):r().createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},r().createElement("thead",{className:"border border-light-blue ".concat(te.thead)},r().createElement("tr",{className:"font-weight-500 bg-light-blue ".concat(te.header)},e.weekDaysHeader.map((function(e){return r().createElement("th",{key:e,className:"px-2 h4"},e)})))),r().createElement("tbody",null,e.weekDays.map((function(t){return r().createElement("tr",{key:t[0].toString()},t.map((function(t){return r().createElement(Z,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInited:o,setHasInited:i,presentationId:e.presentationId,hoveredEvent:c,setHoveredEvent:s})})))}))))}var oe=n(33192),ie=n.n(oe),le=n(75896),ce=new Date("2023-01-01"),se=12;function ue(e,t){for(var n=l.O.startOf(e,"month"),a=l.O.getWeekday(n),r=[],o=t?0===a?6:a-1:a,i=t?1:0;i<=o;i++){var c=n,s=l.O.weekday(c,a-i);r.push(Object.assign(s,{notCurrentMonth:!0}))}return r.reverse()}function de(e,t){for(var n=l.O.endOf(e,"month"),a=l.O.getWeekday(n),r=[],o=t?7-(0===a?7:a):7-a,i=1;i<=o;i+=1){var c=l.O.add(n,i,"days");r.push(Object.assign(c,{notCurrentMonth:!0}))}return r}function me(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:le.m.first(ue(e,!0))}function ve(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:le.m.last(de(e,!0))}function fe(e){return[me(e),ve(e)]}var pe=new Date;const he={actions:"DpKMU",chevron:"IE4Ui",left:"AFmnx",right:"N1Rz_"};var ye="specialEventCalendar.calendarNav";function ge(e){var t="previous"===e.action?P.vn.ChevronLeft:P.vn.ChevronRight,n="previous"===e.action?he.left:he.right;return r().createElement(S.L,{className:"".concat(he.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:e.onClick},r().createElement(I.x,{svgName:t,size:I.S.Medium,className:"svg-container d-inline-block ".concat(he.svg)}))}var Ee=new Date;function be(e){var t=(0,E.k)();function n(e){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),n=(new Date).getFullYear(),a=e.getFullYear(),r={application:v.O.CALENDAR,action:m.e.Calendar.CALENDAR_MONTH,args:[t]};return n!==a&&(r.params={year:a}),r}var a,i,c=(a=e.monthDate,i=l.O.diffBetween(l.O.startOf(a,"month"),l.O.startOf(pe,"month"),"months"),{showPrev:l.O.isAfter(a,ce,"month"),showNext:i<se}),s=c.showPrev,u=c.showNext,d={actionType:N.Vw.Click,entity:N.py.SpecialEvent,location:N.LZ.CalendarNav};function f(e){return l.O.format(e,"YYYY-MM-DD")}return r().createElement("div",{className:"d-flex justify-content-between align-items-center"},r().createElement("h1",{className:"mb-0 h2"},l.O.format(e.monthDate,t.xs?"MMM YYYY":"MMMM YYYY")),r().createElement("div",{className:"d-flex ".concat(he.actions)},s&&r().createElement(Y.F,{appLink:n(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:d,analyticsData:{action:"previous",date:f(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},r().createElement(ge,{action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)}})),r().createElement(Y.F,{appLink:{application:v.O.CALENDAR,action:m.e.Calendar.CALENDAR},className:"d-flex",analyticsOptions:d,analyticsData:{action:"today",date:f(l.O.startOf(Ee,"month"))}},r().createElement(S.L,{className:"".concat(he.todayWrapper," btn btn-outline-dark font-weight-500"),onClick:function(){l.O.format(Ee,"YYYY-MM-DD")!==l.O.format(e.monthDate,"YYYY-MM-DD")&&e.setViewingMonthDate()}},o.T.getPhrase(ye,"today"))),u&&r().createElement(Y.F,{appLink:n(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),className:"d-flex",analyticsOptions:d,analyticsData:{action:"next",date:f(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}},r().createElement(ge,{action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}}))))}var Oe="specialEvent.eventsErrorState",De=o.T.encloseNamespace(Oe);function Me(e){return r().createElement(z.D.Provider,{value:Oe},r().createElement($.u,null,r().createElement($.u.Image,{src:J.W.EmptyStates.CALENDAR.INVALID_DATE}),r().createElement($.u.Heading,null,r().createElement(z.x,{phrase:"heading"})),r().createElement($.u.Info,null,r().createElement(z.x,{namespace:Oe,phrase:"info"}),r().createElement("br",null),r().createElement(Y.F,{appLink:e.appLink},r().createElement("span",{className:"text-blue"},De("link"))))))}var we=n(20354),Ce=n(39780);function ke(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(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 Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||Ye(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){if(e){if("string"==typeof e)return Se(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)?Se(e,t):void 0}}function Se(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 Ae(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 Ie=new Date;function Le(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ie,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return l.O.format(l.O.weekday(n,e),"ddd")}))}(a),c=r().useRef({}),s=(e=r().useState([]),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(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)?Ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1],f=l.O.format(n,"YYYY-MM");r().useEffect((function(){var e=c.current[f];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],a={},r=ue(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],a=1;a<=t;a++){var r=l.O.set(e,"date",a);n.push(Object.assign(r,{notCurrentMonth:!1}))}return n}(e)).concat(de(e,t)),o=function(e){var t=r.slice(i,i+7);t.forEach((function(t,n){a[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,c=e},i=0,c=0;i<r.length;i+=7)o(c);return{datePositionMap:a,weeksTable:n}}(n,a),r=t.weeksTable,o=t.datePositionMap;c.current[f]={weeksTable:r,datePositionMap:o},d(r)}}),[l.O.format(n,"YYYY-MM")]);var p=le.m.first(le.m.first(u)),h=le.m.last(le.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(f!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),a=(new Date).getFullYear(),r=n.getFullYear(),o={application:v.O.CALENDAR,action:m.e.Calendar.CALENDAR_MONTH,args:[t]};a!==r&&(o.params={year:r}),i.Q.C$.trigger(o)}}else i.Q.C$.trigger({application:v.O.CALENDAR,action:m.e.Calendar.CALENDAR})},startDate:p,endDate:h}}var Te=n(74590),xe=o.T.encloseNamespace("specialEventCalendar.calendarView"),je={whatsNew:{application:v.O.CONTENT_UPDATES,action:m.e.ContentUpdates.CONTENT_UPDATES},forYou:{application:v.O.DASHBOARD,action:m.e.Dashboard.HOME},calendar:{application:v.O.CALENDAR,action:m.e.Calendar.CALENDAR}},Pe=l.O.format(new Date,"MMMM-YYYY").toLocaleLowerCase();function He(e){var t=(0,f.y)(s.R.Subject,null,e.presentationSlug,!0).presentation,n=(0,Te.N)(e.presentationSlug),a=n.showCalendar,o=n.isLoading,m=function(e){if(!e)return!0;if(!l.O.formatIsValid(e,"MMMM-YYYY",!0))return!1;var t=ie()(e,"MMMM-YYYY").toDate();return l.O.isSame(t,ce,"month")||l.O.isAfter(t,ce,"month")}(e.month);r().useEffect((function(){o||a||i.Q.C$.trigger(je.forYou,{replace:!0})}),[a,o]);var v,g=(v=e.month)?ie()(v,"MMMM-YYYY").toDate():l.O.parseDateString(),E=Le(g),b=E.monthDate,O=E.setMonthDate,D=E.weekDays,M=E.weekDaysHeader,w=E.startDate,C=E.endDate,k=function(e,t){var n=(0,f.y)(s.R.Subject,null,t,!0).presentation,a=null==n?void 0:n.id,r=Ne(fe(e),2),o=r[0],i=r[1],c=Ne(fe(l.O.add(e,1,"month")),2),u=c[0],d=c[1],m=Ne(fe(l.O.subtract(e,1,"month")),2),v=m[0],p=m[1],h=we.a.useBasicFetch(o&&i&&a&&Ce.N.calendarEvents(l.O.format(o,"YYYY-MM-DD"),l.O.format(i,"YYYY-MM-DD"),a)),y=we.a.useBasicFetch(u&&d&&a&&Ce.N.calendarEvents(l.O.format(u,"YYYY-MM-DD"),l.O.format(d,"YYYY-MM-DD"),a)),g=we.a.useBasicFetch(v&&p&&a&&Ce.N.calendarEvents(l.O.format(v,"YYYY-MM-DD"),l.O.format(p,"YYYY-MM-DD"),a));return{events:le.m.uniq([].concat(ke(g.data||[]),ke(h.data||[]),ke(y.data||[])),(function(e){return e.specialEventId})),loaded:h.hasCompleted}}(g,e.presentationSlug),N=k.events,Y=k.loaded,S=l.O.format(b,"MMMM YYYY");return(0,u.M)(h.C.getDefaultMetadata({title:S,phraseContext:{phraseHandler:xe,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:y.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:y.f.allowIndexing(),hrefLang:y.f.getStaticRouteHrefLang(null==t?void 0:t.learningLevel,(function(){return je.calendar}),p.Bg)})),null===e.month||m?o||!(null==t?void 0:t.id)?r().createElement(r().Fragment,null):r().createElement("div",{className:"bg-white px-3"},r().createElement(c.z,{type:d.Yv.Staff,appLinks:je,showCalendar:a,active:"calendar"}),r().createElement(be,{monthDate:b,setViewingMonthDate:O}),r().createElement(re,{weekDays:D,weekDaysHeader:M,events:N,monthQuery:{from:null==w?void 0:w.toString(),to:null==C?void 0:C.toString()},viewingMonth:g,eventsLoaded:Y,presentationId:t.id})):r().createElement(Me,{appLink:Object.assign(Object.assign({},je.calendar),{args:[Pe]})})}},87432:(e,t,n)=>{n.d(t,{Z:()=>a});const a={pillTabSelector:"Hdi6o",pillItem:"hUJx1"}}}]);