@clickview/lite 0.44.0-rc.7 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.44.0-rc.7",
3
+ "version": "0.44.0",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/lite/src/index.d.ts",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2383],{56520:(e,i,t)=>{t.d(i,{R0:()=>v,_N:()=>u,eR:()=>p});var a=t(23481),n=t(97395),o=t(20354),r=t(42617),s=t(4594),d=t(39151),c=t(31949),l=a.T.encloseNamespace("shared.hooks");function u(e,i,t,a){var o=n._.safeUrlConcat(e,"manage"),r=n._.safeUrlConcat(e,"exchange"),d=function(e,i,t){return n._.safeUrlConcat(e,"".concat(i,"/").concat(t))};switch(i){case s.E.Subject:return n._.safeUrlConcat(o,"subjects/presentations/".concat(a,"/classifications/").concat(t,"/edit"));case s.E.Video:return d(o,"videos",t);case s.E.Playlist:return d(o,"playlists",t);case s.E.Series:return d(o,"series",t);case s.E.Company:return d(o,"companies",t);case s.E.Interactive:return d(o,"interactives",t);case s.E.Clip:return d(o,"clips",t);case s.E.Category:return d(r,"categories",t)}}function p(){return l("openInCurationStudio")}function v(){var e,i,t=o.a.useBasicFetch(c.N.currentUser()),a=o.a.useBasicFetch((null===(e=t.data)||void 0===e?void 0:e.id)&&c.N.groups(null===(i=t.data)||void 0===i?void 0:i.id)).data,n=o.a.useBasicFetch(d.L.config()),s=[r.j.Curator,r.j.Content,r.j.Developer];return{openInCurationStudioLabel:p(),isUserCurator:s.some((function(e){return null==a?void 0:a.data.find((function(i){return i.name===e}))})),getOpenInCurationStudioLink:function(e,i,t){var a;return u(null===(a=n.data)||void 0===a?void 0:a.curatorUrl,e,i,t)}}}},70227:(e,i,t)=>{t.d(i,{c:()=>o});var a=t(97395),n=t(4594),o={getObjectUrl:function(e,i){var t=e.analyticsWebUrl;if(t){var o="";switch(i.typeId){case n.E.Video:o="/videos/".concat(i.id,"/overview");break;case n.E.Clip:o="/clips/".concat(i.id,"/overview");break;case n.E.Interactive:o="/interactives/".concat(i.id,"/overview")}if(o)return a._.safeUrlConcat(t,o)}}}},2383:(e,i,t)=>{t.d(i,{i:()=>D,_:()=>W});var a,n=t(20354),o=t(65858),r=t(16714);!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.Share=1]="Share",e[e.EditVideo=2]="EditVideo",e[e.EditDetails=3]="EditDetails",e[e.Download=4]="Download",e[e.Delete=5]="Delete",e[e.ViewCurriculumLinks=6]="ViewCurriculumLinks",e[e.CreateClip=7]="CreateClip",e[e.CreateInteractive=8]="CreateInteractive",e[e.Favourite=9]="Favourite",e[e.ViewUsage=10]="ViewUsage",e[e.AddToLibrary=11]="AddToLibrary",e[e.Approve=12]="Approve",e[e.ManageAccess=13]="ManageAccess",e[e.OpenInCurationStudio=14]="OpenInCurationStudio",e[e.AddToMyVideos=15]="AddToMyVideos",e[e.ViewOriginalVideo=16]="ViewOriginalVideo",e[e.EditClip=17]="EditClip",e[e.EditInteractive=18]="EditInteractive",e[e.PreviewQuestions=19]="PreviewQuestions",e[e.ViewResults=20]="ViewResults",e[e.CopyInteractive=21]="CopyInteractive",e[e.PrintInteractive=22]="PrintInteractive",e[e.UnpublishInteractive=23]="UnpublishInteractive"}(a||(a={}));var s,d=t(39151),c=t(98064),l=t(79967),u=t(56520),p=t(22902),v=t(37802),y=t(26361),I=t(31908),g=t(62756),C=t(27638),V=t(23481),E=t(97395),m=t(28400),b=t(5960),f=t(4594),w=t(12754),T=t(70227),O=t(1643),P=t(35223),L=t(14070),S=t(97291);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function k(e,i,t){var a;return a=function(e,i){if("object"!=h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=h(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i),(i="symbol"==h(a)?a:String(a))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var D,A=V.T.encloseNamespace("shared.utils"),_=(k(k(k(k(k(k(k(k(k(k(s={},a.Approve,(function(e){return{enabled:e.hasPermissions(r.C.ManageVideoAccess),svgName:P.vn.Check,order:10,name:A("approve"),button:!0,appLink:{application:S.O.DEFAULT,action:L.e.Default.APPROVE_VIDEO,params:{objectId:e.video.id,objectTypeId:e.video.typeId}},analyticsOptions:{actionType:o.Vw.Click,descriptor:o.XX.Approve}}})),a.ManageAccess,(function(e){var i=y.l.hasCustomRestriction(e.video);return{enabled:e.hasPermissions(r.C.ManageVideoAccess),svgName:P.vn.Lock,order:90,name:A("manageAccess"),button:i,appLink:{application:S.O.DEFAULT,action:L.e.Default.MANAGE_ACCCESS,params:{objectId:e.video.id,objectTypeId:e.video.typeId}},analyticsOptions:{actionType:o.Vw.Click,descriptor:o.XX.ManageAccess},group:"manage"}})),a.Favourite,(function(e){var i=O.h.isFavouritedByCurrentUser(e.video);return{enabled:!0,svgName:i?P.vn.Heart:P.vn.HeartOutline,order:0,name:A("favourite"),onClick:function(){return e.setFavourite(e.video,!i)},button:!0,variant:i?"danger":""}})),a.AddToPlaylist,(function(e){return{enabled:!0,order:10,svgName:P.vn.AddToPlaylists,name:A("addToPlaylist"),button:!I.M.isInteractive(e.video)||e.video.status!==b.X.Draft,appLink:{application:S.O.PLAYLISTS,action:L.e.Playlists.ADD_TO_PLAYLIST,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Associate,descriptor:o.iF.Playlist,workflowPhase:o.eu.Start},group:"add"}})),a.ViewResults,(function(e){return{enabled:e.hasPermissions(r.C.ViewAnalyticsProduct)&&e.video.status!==b.X.Draft,types:[f.E.Interactive],order:5,svgName:P.vn.Chart,name:A("viewResults"),button:!0,href:T.c.getObjectUrl(e.config,e.video),openInNewTab:!0,analyticsOptions:{actionType:o.Vw.Click,descriptor:o.XX.ViewResults}}})),a.Share,(function(e){return{enabled:!I.M.isInteractive(e.video)||e.video.status!==b.X.Draft,order:20,svgName:P.vn.Share2,name:A("share"),button:!0,appLink:{application:S.O.DEFAULT,action:L.e.Default.SHARE,args:[e.video.id],params:{entityType:e.video.type}},analyticsOptions:{actionType:o.Vw.Share,workflowPhase:o.eu.Start,eventVersion:o.eq.V3}}})),a.CreateClip,(function(e){return{enabled:!e.isPlugin,types:[f.E.Video],order:30,svgName:P.vn.Clip,name:A("createClip"),button:!1,appLink:{application:S.O.CLIPS,action:L.e.Clips.CREATE_CLIP,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Create,entity:o.py.Clip,workflowPhase:o.eu.Start},analyticsData:{video:e.analyticsData},group:"create"}})),a.CreateInteractive,(function(e){return{enabled:!e.isPlugin,types:[f.E.Video,f.E.Clip],order:e.location===D.PlayPage?-10:40,svgName:P.vn.CreateInteractive,name:A("createInteractive"),button:e.location===D.PlayPage,appLink:{application:S.O.INTERACTIVES,action:I.M.isVideo(e.video)?L.e.Interactives.NEW_INTERACTIVE:L.e.Interactives.NEW_CLIP_INTERACTIVE,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Create,entity:o.py.Interactive,workflowPhase:o.eu.Start},analyticsData:{video:e.analyticsData},group:"create"}})),a.AddToMyVideos,(function(e){var i,t;return{enabled:I.M.isVideo(e.video)&&!!(null===(t=null===(i=e.video.libraries)||void 0===i?void 0:i.data)||void 0===t?void 0:t.find((function(e){return"exchange"===e.type}))),types:[f.E.Video],order:50,svgName:P.vn.AddVideo,name:A("addMyVideos"),button:!1,appLink:{application:S.O.DEFAULT,action:L.e.Default.ADD_VIDEO,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.WorkspaceAdd,workflowPhase:o.eu.Start},group:"add"}})),a.AddToLibrary,(function(e){var i,t;return{enabled:!e.hasPermissions(r.C.StudentExperience)&&(null===(i=e.video._canAddToLibrary)||void 0===i?void 0:i.value)&&(null===(t=e.requestLibraries)||void 0===t?void 0:t.length)&&(!I.M.isVideo(e.video)||e.libraryEditorClipsInteractives)&&(!I.M.isInteractive(e.video)||e.video.status!==b.X.Draft),order:60,svgName:P.vn.Library,name:A("addToLibrary"),button:!1,appLink:{application:S.O.LIBRARIES,action:L.e.Libraries.ADD_TO_LIBRARY,args:[e.video.id,e.video.typeId]},analyticsOptions:{actionType:o.Vw.Create,entity:o.py.LibraryRequest,workflowPhase:o.eu.Start},analyticsData:{video:e.analyticsData},group:"add"}})),k(k(k(k(k(k(k(k(k(k(s,a.EditVideo,(function(e){var i;return{enabled:null===(i=e.video._canUpdate)||void 0===i?void 0:i.value,types:[f.E.Video],order:70,svgName:P.vn.EditVideo,name:A("editVideo"),button:!1,href:E._.urlBuilder(E._.safeUrlConcat(e.config.cloudEditorUrl,"video/".concat(e.video.id)),{product:w.x.Primary}),openInNewTab:!0,analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Video,descriptor:o.XX.EditVideo},group:"edit"}})),a.EditClip,(function(e){var i;return{enabled:null===(i=e.video._canUpdate)||void 0===i?void 0:i.value,types:[f.E.Clip],order:70,svgName:P.vn.EditVideo,name:A("editClip"),button:!1,appLink:{application:S.O.CLIPS,action:L.e.Clips.EDIT_CLIP,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Edit,workflowPhase:o.eu.Start},group:"edit"}})),a.EditDetails,(function(e){var i;return{enabled:null===(i=e.video._canUpdate)||void 0===i?void 0:i.value,types:[f.E.Video,f.E.Clip],order:80,svgName:P.vn.Edit,name:A("editDetails"),button:!1,appLink:I.M.isVideo(e.video)?{application:S.O.VIDEOS,action:L.e.Videos.EDIT_VIDEO,args:[e.video.id]}:{application:S.O.CLIPS,action:L.e.Clips.EDIT_CLIP_DETAILS,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Edit,workflowPhase:o.eu.Start},group:"edit"}})),a.ViewOriginalVideo,(function(e){var i,t,a=null;return I.M.isInteractive(e.video)&&(null===(i=e.video._parentClip)||void 0===i?void 0:i.id)&&(a={application:S.O.CLIPS,action:L.e.Clips.PLAY_CLIP,args:[e.video._parentClip.id,m.m.slugify(e.video._parentClip.name)]}),!I.M.isVideo(e.video)&&(null===(t=e.video._parentVideo)||void 0===t?void 0:t.id)&&(a={application:S.O.VIDEOS,action:L.e.Videos.PLAY_VIDEO,args:[e.video._parentVideo.id,m.m.slugify(e.video._parentVideo.name)]}),{enabled:!I.M.isVideo(e.video)&&I.M.canViewOriginalVideo(e.video)&&!!a,types:[f.E.Clip,f.E.Interactive],order:100,svgName:P.vn.Video,name:A("viewOriginalVideo"),button:!1,appLink:a,analyticsOptions:{actionType:o.Vw.Click,descriptor:o.XX.ViewOriginalVideo},group:"manage"}})),a.ViewUsage,(function(e){var i;return{enabled:e.hasPermissions(r.C.ViewAnalyticsProduct)&&(e.hasPermissions(r.C.ViewCustomerAnalytics)||(null===(i=e.video._canUpdate)||void 0===i?void 0:i.value)),types:[f.E.Clip,f.E.Video],order:110,svgName:P.vn.Chart,name:A("viewUsage"),button:!1,href:T.c.getObjectUrl(e.config,e.video),openInNewTab:!0,analyticsOptions:{actionType:o.Vw.Click,workflowPhase:o.eu.Complete,descriptor:o.XX.ViewUsage},group:"manage"}})),a.ViewCurriculumLinks,(function(e){return{enabled:!e.hasPermissions(r.C.StudentExperience)&&I.M.isVideo(e.video)&&e.video._hasCurriculumLinks,types:[f.E.Video],order:120,svgName:P.vn.Tag,name:A("viewCurriculumLinks"),button:!1,appLink:{application:S.O.VIDEOS,action:L.e.Videos.VIEW_CURRICULUM_LINKS,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Click,workflowPhase:o.eu.Complete,descriptor:o.XX.ViewCurriculumLinks},group:"manage"}})),a.Download,(function(e){var i;return{enabled:I.M.isVideo(e.video)&&(null===(i=e.video._canDownload)||void 0===i?void 0:i.value),types:[f.E.Video],order:130,svgName:P.vn.Download,name:A("download"),button:!1,appLink:{application:S.O.VIDEOS,action:L.e.Videos.DOWNLOAD_VIDEO,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Download,workflowPhase:o.eu.Start},group:"manage"}})),a.OpenInCurationStudio,(function(e){return{enabled:e.isUserCurator,order:140,svgName:P.vn.NewWindow,name:A("openInCurationStudio"),button:!1,href:(0,u._N)(e.config.curatorUrl,e.video.typeId,e.video.id),openInNewTab:!0,group:"administrative"}})),a.Delete,(function(e){var i,t={application:S.O.VIDEOS,action:L.e.Videos.DELETE_VIDEO,params:{ids:[e.video.id]}};return I.M.isClip(e.video)?t={application:S.O.CLIPS,action:L.e.Clips.DELETE_CLIP,args:[e.video.id]}:I.M.isInteractive(e.video)&&(t={application:S.O.INTERACTIVES,action:L.e.Interactives.DELETE_INTERACTIVE,args:[e.video.id]}),{enabled:null===(i=e.video._canUpdate)||void 0===i?void 0:i.value,order:150,svgName:P.vn.Delete,name:A("delete"),variant:"danger",button:!1,appLink:t,analyticsOptions:{actionType:o.Vw.Edit,workflowPhase:o.eu.Start},group:"delete"}})),a.PreviewQuestions,(function(e){return{enabled:e.location===D.VideoItem,types:[f.E.Interactive],order:83,svgName:P.vn.Search,name:A("previewInteractive"),button:!1,appLink:{application:S.O.INTERACTIVES,action:L.e.Interactives.PREVIEW_QUESTIONS,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Click,descriptor:o.XX.PreviewInteractiveVideo},group:"manage-interactives"}})),k(k(k(k(s,a.PrintInteractive,(function(e){return{enabled:!0,types:[f.E.Interactive],order:85,svgName:P.vn.Print,name:A("printAsWorksheet"),button:!1,appLink:{application:S.O.INTERACTIVES,action:L.e.Interactives.PRINT_QUESTIONS,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Print,workflowPhase:o.eu.Start},group:"manage-interactives"}})),a.CopyInteractive,(function(e){return{enabled:!e.hasPermissions(r.C.StudentExperience),types:[f.E.Interactive],order:87,svgName:P.vn.Copy,name:A("copyInteractive"),button:!1,appLink:{application:S.O.INTERACTIVES,action:L.e.Interactives.COPY_INTERACTIVE,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Copy,workflowPhase:o.eu.Start},group:"manage-interactives"}})),a.EditInteractive,(function(e){return{enabled:!e.isPlugin&&e.video.status===b.X.Draft,types:[f.E.Interactive],order:70,svgName:P.vn.EditVideo,name:A("editInteractive"),tooltip:A("editInteractiveTooltip"),button:e.video.status===b.X.Draft,appLink:{application:S.O.INTERACTIVES,action:L.e.Interactives.EDIT_INTERACTIVE,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Edit,workflowPhase:o.eu.Start},group:"edit"}})),a.UnpublishInteractive,(function(e){var i;return{enabled:(null===(i=e.video._canUpdate)||void 0===i?void 0:i.value)&&e.video.status!==b.X.Draft,types:[f.E.Interactive],order:70,svgName:P.vn.EditVideo,name:A("editInteractive"),button:!1,appLink:{application:S.O.INTERACTIVES,action:L.e.Interactives.UNPUBLISH_INTERACTIVE,args:[e.video.id]},analyticsOptions:{actionType:o.Vw.Publish,descriptor:o.Iq.Unpublish,workflowPhase:o.eu.Start},group:"edit"}})));!function(e){e[e.PlayPage=0]="PlayPage",e[e.VideoItem=1]="VideoItem",e[e.StudentFeed=2]="StudentFeed"}(D||(D={}));var N=[a.Approve,a.ManageAccess],U=[a.Favourite,a.AddToPlaylist],R=[a.ViewResults],M=[a.AddToPlaylist,a.Share,a.ManageAccess,a.AddToLibrary,a.ViewCurriculumLinks,a.ViewUsage,a.ViewResults,a.CreateClip,a.CreateInteractive,a.EditVideo,a.EditClip,a.EditInteractive,a.EditDetails,a.Delete,a.Download,a.OpenInCurationStudio,a.ViewOriginalVideo,a.CopyInteractive,a.PrintInteractive,a.UnpublishInteractive,a.PreviewQuestions];function j(e){switch(e){case D.PlayPage:return o.LZ.PlayPage;case D.VideoItem:return o.LZ.VideoListItem;case D.StudentFeed:return o.LZ.StudentFeed}}function F(e){var i,t,a,n,o,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(I.M.isVideo(e))return Object.assign(Object.assign({},s||{}),{id:e.id});if(I.M.isClip(e)){var d=Object.assign(Object.assign({},s||{}),{id:e.id});return(null===(i=e._parentVideo)||void 0===i?void 0:i.id)&&(d.video={id:null===(t=e._parentVideo)||void 0===t?void 0:t.id}),d}var c=Object.assign(Object.assign({},s),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(a=null==e?void 0:e._parentClip)||void 0===a?void 0:a.id)&&(c.clip={id:null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id}),(null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id)&&(c.video={id:null===(r=null==e?void 0:e._parentVideo)||void 0===r?void 0:r.id}),c}function X(e){return I.M.isClip(e)?o.py.Clip:I.M.isInteractive(e)?o.py.Interactive:o.py.Video}function B(e,i){return e.map((function(e){var t,a,n,o=_[e](i);if(o.types&&!o.types.some((function(e){return e===i.video.typeId})))return null;if(!o.enabled)return null;var r=o.variant||"outline-dark",s="",d=y.l.hasCustomRestriction(i.video),c=o.button&&i.location!==D.VideoItem||d,l=!o.button||i.location===D.PlayPage||d;return c?s="btn btn-".concat(r," me-2"):o.variant&&(s="text-".concat(r)),i.location===D.StudentFeed&&(s="btn btn-link text-".concat(r)),{order:o.order,label:l?o.name:null,appLink:o.appLink,href:o.href,onClick:o.onClick,svgName:o.svgName,className:s,button:o.button,tooltip:null!==(t=o.tooltip)&&void 0!==t?t:l?null:o.name,analyticsData:o.analyticsData||i.analyticsData,analyticsOptions:o.analyticsOptions?Object.assign(Object.assign({},null!==(a=i.analyticsOptions)&&void 0!==a?a:{}),null!==(n=o.analyticsOptions)&&void 0!==n?n:{}):null,openInNewTab:o.openInNewTab,group:o.group}})).filter((function(e){return!!e}))}function W(e){var i=(0,l.k)(),t=(0,p.T)(),a=t.hasPermissions,o=t.hasLocalPermissions,s=(0,g.G)().isPlugin,V=(0,u.R0)().isUserCurator,E=(0,C.u)(j(e)).setFavourite,m=(0,v.r)(null).libraryEditorClipsInteractives,b=n.a.useBasicFetch(d.L.config()),f=n.a.useBasicFetch(a(r.C.ViewLibraries)&&c.D.libraryRequestLibraries());return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o(r.E.UseVideoActions))return[];if(!I.M.getCanBeConsumed(t).canConsume)return[];var d={video:t,breakpoints:i,location:e,hasPermissions:a,requestLibraries:f.data,config:b.data,isPlugin:s,isUserCurator:V,setFavourite:E,libraryEditorClipsInteractives:m,analyticsData:F(t,n.analyticsData),analyticsOptions:Object.assign(Object.assign({},n.analyticsOptions),{entity:X(t),location:j(e)})};return I.M.isVideoTypeArchived(t)?B(R,d):y.l.hasCustomRestriction(t)?B(N,d):e===D.StudentFeed?B(U,d):B(M,d)}}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 3867-c01b777a28-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[3867],{29711:(e,t,n)=>{n.d(t,{X:()=>C});var a=n(32735),r=n(110),i=n(23481),o=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(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 s=i.T.encloseNamespace("specialEventCalendar.calendarCellDate");function u(e){var t=r.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var i,u,d=(i=(0,o.L)({delay:250}),u=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(i,u)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(i,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1];return a.createElement("div",{className:"".concat(n," ").concat(p?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},r.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var d=n(49985),m=n(65858),p=n(84963),v=n(12324),f=n(36848),g=n(11607),h=n(44435),y=n(83914),b=n(2284),E=n(80122),k=n(35223);const L={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc",logo:"QRf1I"};function w(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 x(e){var t,n,i,o,l,c,s=e.sliderStep,x=e.setSliderStep,O=e.eventsOnDay.length>1,C=e.eventsOnDay.find((function(e,t){return t===s})),S=!!C.endDate,N=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,C.content),T=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,C.content),D=null===(i=e.getIconUrl)||void 0===i?void 0:i.call(e,C.content),j=null===(o=e.getCoverUrl)||void 0===o?void 0:o.call(e,C.content),I=C.content.status===b.W.ComingSoon,A=(l=a.useState(e.hasInitialized?L.appear:""),c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(l,c)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),M=A[0],F=A[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){F(L.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(C)}),[e.isHovering,C]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===C.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,C]);var P=function(){var t={date:r.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return O?(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=C.specialEventId,t.topicId=C.content.id,t.eventStatus=C.content.status),t}(),H={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function U(e){return r.O.format(e,"YYYY-MM-DD")}return a.createElement("div",{onClick:function(){I&&d.k.logUserAction(P,H)}},a.createElement(f.F,{appLink:function(){var t,n;return O?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):I?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,C.content.id,C.name)}(),className:"d-flex justify-content-end",analyticsOptions:H,analyticsData:P},a.createElement("div",{className:"".concat(L.tagWrap," p-1")},I&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(L.tag," ").concat(M),onlyIcon:!0})),!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(L.date," ").concat(M),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(L.wrapper)},a.createElement("div",{style:{backgroundColor:N},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(L.eventCard," ").concat(M," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?L.multiEventFilter:""," ").concat(e.className)},a.createElement("div",{style:{backgroundImage:"url('".concat(D||j,"')")},className:"".concat(e.className," ").concat(M," ")+[T?"".concat(L.hardcodedCover," position-absolute"):L.backgroundImage,D?"":L.cover,I?L.comingSoon:"",e.hasInitialized?L.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?L.multiEventFilter:"",e.contentType===E.VH.Webinar?L.logo:""].join(" ")}),S&&a.createElement("div",{className:"".concat(L.displayDate)},v.T.getDisplayDate(C.startDate,C.endDate)),a.createElement("div",{className:"text-center ".concat(L.title," ").concat(O?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(L.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:C.name},C.name)),O&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.left)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e-1})),d.k.logUserAction({date:U(e.date),action:"previous",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:k.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),O&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.right)},a.createElement(g.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e+1})),d.k.logUserAction({date:U(e.date),action:"next",eventCount:e.eventsOnDay.length},H)}},a.createElement(y.x,{svgName:k.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),O&&a.createElement("div",{className:"d-flex ".concat(L.bottomBar," ").concat(O?"":L.bottomPlaceholder)},a.createElement(h.e,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){x(t),d.k.logUserAction({date:U(e.date),action:"jump",eventCount:e.eventsOnDay.length},H)}}))))))}const O={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function C(e){var t,n,i=a.useMemo((function(){var t,n,a,i;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!r.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&r.O.isBetween(r.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(i=e.hoveredEvent)||void 0===i?void 0:i.endDate)}),[e.hoveredEvent]),o=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(O.cell," fw-semibold")},!e.hideDay&&a.createElement(u,{date:e.date,notCurrentMonth:e.notCurrentMonth}),i&&a.createElement("div",{style:{backgroundColor:o},className:O.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(x,Object.assign({},e,{isMultiEventDate:i})))}},84963:(e,t,n)=>{n.d(t,{r:()=>u});var a=n(32735),r=n(23481),i=n(83914),o=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function u(e){return a.createElement(o.u,{title:r.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(i.x,{svgName:l.vn.Timer}),!e.onlyIcon&&r.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(36848);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},12324:(e,t,n)=>{n.d(t,{T:()=>r});var a=n(110),r={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},2158:(e,t,n)=>{n.d(t,{T:()=>h});var a=n(32735),r=n(2948),i=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(5112),u=n(61699),d=n(31949),m=n(22902),p=n(37802),v=n(75795),f=n(33857);function g(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 h(e){var t,n,h,y=(n=(0,r.D)("has:playlist",null),h=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,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(n,h)||function(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}(n,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=y[0],E=y[1],k=i.a.useBasicFetch(d.N.currentUser()),L=i.a.useBasicFetch((null===(t=k.data)||void 0===t?void 0:t.isAuthenticated)&&d.N.user(k.data.id)),w=i.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),x=i.a.useBasicFetch(c.x.presentation(l.R.Subject)),O=i.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),C=i.a.useBasicFetch(s.C.getUserPlaylists(new f.l)),S=i.a.useBasicFetch(u.o.mySubjectPreferences()),N=(0,m.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;C.hasCompleted&&b!==!!(null===(t=null===(e=C.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&E(!!(null===(a=null===(n=C.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[C.hasCompleted]);var T=k.hasCompleted&&L.hasCompleted&&w.hasCompleted&&O.hasCompleted&&x.hasCompleted&&C.hasCompleted&&S.hasCompleted&&null!==b,D=(0,p.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=L.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=r.preferredPresentationOverride||x.data;return T?o.m.getOnboardingPathway({jobTitle:i,userSettings:D.data,presentations:w.data,curriculums:O.data,preferredSubjects:S.data,preferredPresentation:l,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:L.data,hasPlaylist:b,hasPermissions:N,currentUser:k.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:T}}},98364:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>L});var a=n(32735),r=n(80247),i=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(36848),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-muted fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(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 b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function k(e){var t,n,i=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(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)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],v=d[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function L(e){var t=e.label,n=e.className,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,L=e.formSize,w=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),O=(0,o.u6)(),C=O.errors,S=O.touched,N=function(){};if("checkbox"===x.type){var T=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(T.onChange=N),a.createElement(d,Object.assign({},T))}var D=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(C,S,x.name,L,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=N),a.createElement(i.Z.Group,{className:"form-group"},!!t&&a.createElement(i.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-muted ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),w&&a.createElement("span",{className:"text-muted"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(k,Object.assign({},D)),!!y&&a.createElement(i.Z.Text,{className:"text-muted"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(i.Z.Control.Feedback,{type:"invalid"},e)})))}k.defaultProps={autoComplete:"off"},L.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(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 c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],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,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),r=n(68050),i=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(u,Object.assign({},e)))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(r.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(i.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(r.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(i.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(i.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},12275:(e,t,n)=>{n.d(t,{L:()=>aa});var a=n(32735),r=n(91967),i=n(20354),o=n(5281),l=n(65858),c=n(36848),s=n(7733),u=n(54610),d=n(9085),m=n(67453);var p=function(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,d.x)(e.data.name,s.o),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),v=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.CircleLogoSlidingListWidget,actionType:l.Vw.Click,entity:l.py.Company});return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:p,analyticsOptions:v},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(i,")")}}))},v=n(58704),f=n(80122);function g(e){var t;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Companies,collection:e.content,childComponent:p,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var h=n(55827),y=n(79967);var b=n(47770),E=n(68050),k=n(69111),L=n(9513),w=n(92802),x=n(23481),O=n(98364),C=n(23201),S=n(38365),N=n(82644),T=n(10874),D=n(83345),j=n(69883),I=n(35223),A=n(5173),M=A.Ry().shape({feedbackInput:A.Z_().max(5e3,(function(){return x.T.getPhrase("shared.feedbackForm","tooLong")}))});const F={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function H(){H=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==P(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(P(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new O(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}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 V=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},W="shared.feedbackForm";function R(e){var t,n,i=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],l=i[1],c=(0,j.Z)();function s(t,n){return V(this,void 0,void 0,H().mark((function a(){return H().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(x.T.getPhrase(W,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:F.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(F.text)},a.createElement(O.V,{emoji:"🔎"},a.createElement(D.x,{namespace:W,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(T.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:I.vn.ThumbsUp},a.createElement(D.x,{namespace:W,phrase:"yes"})),a.createElement(T.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:I.vn.ThumbsDown},a.createElement(D.x,{namespace:W,phrase:"no"})))):"yes"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(O.V,{emoji:"👏"},a.createElement(D.x,{namespace:W,phrase:"happyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:W,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:x.T.getPhrase(W,"sendFeedback")})))):"no"===o?a.createElement(N.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:M},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(O.V,{emoji:"😢"},a.createElement(D.x,{namespace:W,phrase:"unhappyFeedback"}))),a.createElement(S.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(W,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(D.x,{namespace:W,phrase:"back"})),a.createElement(C.A,{variant:"dark",submitText:x.T.getPhrase(W,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(O.V,{emoji:"🙌"},a.createElement(D.x,{namespace:W,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const B="MtcB3",Y="Geg0V";function z(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(B," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(E.Z,{className:"mb-2 ".concat(Y)},e.content.map((function(t){var n,r,i,o=m.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(k.Z,{key:t.id,xs:12,sm:6,lg:4},a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat("ZMjnx"," me-2")},a.createElement("div",{className:"".concat("SsxEf"," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(R,{onSubmit:e.onSubmitFeedback}))}var Z=n(98981),_=n(88513),G={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function q(e){return a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(Z.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),G)}))}))))}var X=n(16450),K=n(43741);function Q(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){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function J(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ee(e){var t,n,r=function(e,t){var n;if((null===(n=e.metadata)||void 0===n?void 0:n.appLink)===f.OL.ClassificationLatestReleases)return{id:"classification-latest-releases",name:"All new releases",cover:{url:m.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:$(t)}}(e,e.content),i=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===f.OL.ClassificationLatestReleases;return a.createElement(X.e,{collection:r?[r].concat((n=e.content,function(e){if(Array.isArray(e))return Q(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Q(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)?Q(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:i?function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationLatestReleases)||void 0===a?void 0:a.call(n,t)}:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},childComponent:L.Vz,partialLoadingComponent:K.Q,heading:e.name,getSubtitle:i?J:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var te=n(65163),ne=n(98269),ae=n(1048),re=n(49985),ie=n(11607),oe=n(17808),le=n(1287),ce=n(2102),se=n(83914),ue=n(83523),de=n(92038),me="shared.subjectWidgetItem",pe=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(de.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(de.Z.widgetItem," ").concat(de.Z.draggingItem),style:ae.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(de.Z.widgetItem),style:ae.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(de.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-muted","\n ")},e.dragAttributes,e.dragListeners),a.createElement(se.x,{svgName:I.vn.Hamburger})),a.createElement("div",{className:r},a.createElement("h3",{className:"".concat(i," ").concat(e.isVisible?"":"text-muted")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(ue.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?x.T.getPhrase(me,e.isVisible?"hideFromDashboard":"showOnDashboard"):x.T.getPhrase(me,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ve=n(91028),fe=n(16714),ge=n(54569),he=n(49542);function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(){be=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:C(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ye(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===v)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ye(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(O.prototype),s(O.prototype,l,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new O(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ee(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,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(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)?ke(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 ke(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 Le="shared.editableCoverFixedPillListSmall";function we(e){var t,n=Ee(a.useState(!1),2),r=n[0],i=n[1],o=Ee(a.useState(!1),2),c=o[0],s=o[1],u=he.d.useGetContent(e.content,e.preferences).unfilteredContent,d=a.useMemo((function(){return u.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[u]),m=a.useMemo((function(){var e;return null!==(e=null==u?void 0:u.reduce((function(e,t,n){var a,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!d,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,d]),p=Ee(a.useState(m),2),v=p[0],f=p[1],g=Ee(a.useState(m),2),h=g[0],y=g[1],b=a.useMemo((function(){return r?u.sort((function(e,t){return h[e.id].index-h[t.id].index})):u.filter((function(e){var t;return!(null===(t=v[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return v[e.id].index-v[t.id].index}))}),[u,h,v,r]),L=(0,j.Z)();a.useEffect((function(){i(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var w=a.useMemo((function(){return!(r||!b.length)&&Object.values(h).some((function(e){return e.hidden}))}),[r,h]);function O(e){return h[e.id]?h[e.id].index:b.findIndex((function(t){return t.id===e.id}))}function C(e){var t;return!(null===(t=h[e.id])||void 0===t?void 0:t.hidden)}function S(e){var t=Object.assign({},h),n=C(e);t[e.id]={id:e.id,hidden:n,index:O(e)},re.k.logUserAction({id:e.id,name:e.name},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Hide,descriptor:n?l.DL.On:l.DL.Off}),y(t)}var N=a.useMemo((function(){return!ae.t.isEqual(m,h)}),[m,h]),T={id:e.presentation.id,name:x.T.getPhrase(Le,"exploreAll"),cover:e.presentation.cover},I=e.hasLocalPermissions(fe.E.ManageDiscoverPreferences);return b.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},r?x.T.getPhrase(Le,"updating"):e.name),!r&&I&&a.createElement(ie.L,{className:"hover-text-underline",onClick:function(){return i(!0)}},x.T.getPhrase(Le,"edit"))),!!e.description&&!r&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),r&&a.createElement("p",{className:"description mb-2"},a.createElement(D.x,{namespace:Le,phrase:"editingDescription"}))),r&&I&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ne.Z,{variant:"link",className:"me-2",onClick:function(){y(v),i(!1)}},a.createElement(D.x,{namespace:Le,phrase:"cancel"})),a.createElement(ce.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=be().mark((function t(){var n;return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s(!0),n=d?u.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(v),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(h)).then((function(){f(h),s(!1),i(!1)})).catch((function(){s(!1),L.error(x.T.getPhrase(Le,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:c,disabled:!N},a.createElement(D.x,{namespace:Le,phrase:"update"})))),a.createElement(E.Z,{className:"mx-n1 mb-n2"},w&&a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(ve.V,{data:T,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),a.createElement(oe.Q,{ids:b.map((function(e){return e.id})),getDragOverlay:function(e){var t=b.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(pe,{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!0,canToggle:!0}))},onSortStart:function(e){var t=b.find((function(t){return t.id.toString()===e.active.id.toString()})),n=b.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));re.k.logUserAction({id:t.id,name:t.name,index:n},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=O({id:t.id}),r=b.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=b[a];if(i){var o=Object.assign({},h);ge.l.reorder(b,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!C(e)}})),y(o),re.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Complete})}}},vertical:!1},b.map((function(t){return a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,r?a.createElement(le.W,{id:t.id,childComponent:pe,childProps:{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!1,canToggle:!C(t)||Object.values(h).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(ve.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})))}))))):a.createElement(a.Fragment,null)}var xe=n(110),Oe=n(11518),Ce=n(29711),Se=n(73679),Ne=n(55171);const Te={dateItemContainer:"Hrx2m",container:"k2Xse"};var De=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function je(e){return a.createElement("div",{className:"".concat(Te.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Ce.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,hideDay:!0})))}function Ie(e){var t=e.data,n=De(e,["data"]);if("date-widget-item"===t.type)return a.createElement("div",{className:"".concat(Te.container," ").concat(Te.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Se.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Url,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme}));if("Webinar"===t.type)return a.createElement(je,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})}));function r(e){return Ne.e.SpecialEvents[e.id]}return a.createElement(je,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e,t){var n;return t?m.j.createUrl(t.iconUrl,{size:u.h2.Medium}):m.j.createUrl(null===(n=e.icon)||void 0===n?void 0:n.url,{size:u.h2.Small})}(e,r(e))},getHardCodedEvent:r,analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})}))}function Ae(e){return function(e){if(Array.isArray(e))return Fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Me(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 Me(e,t){if(e){if("string"==typeof e)return Fe(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)?Fe(e,t):void 0}}function Fe(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 Pe=x.T.encloseNamespace("widgets.eventIconSlidingList");function He(e){var t,n,r=a.useMemo((function(){return function(e,t){var n=Ae(t===f.VH.Webinar?e.map((function(e){return{id:e.id,startDate:xe.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Webinar",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,r=xe.O.format(a,"YYYY-MM-DD"),i=xe.O.format(xe.O.add(r,1,"day"),"YYYY-MM-DD"),o=xe.O.format(xe.O.add(xe.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),l=xe.O.format(xe.O.add(o,6,"days"),"YYYY-MM-DD"),c=xe.O.format(xe.O.startOf(a,"month"),"YYYY-MM-DD"),s=xe.O.format(xe.O.endOf(a,"month"),"YYYY-MM-DD"),u=xe.O.format(xe.O.startOf(xe.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),d=xe.O.format(xe.O.endOf(xe.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=xe.O.format(xe.O.startOf(xe.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),p=xe.O.format(xe.O.endOf(xe.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=new Map;function g(e){if(v.has(e.group)){var t=v.get(e.group);v.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ae(t.events),[e.event])}))}else v.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:xe.O.format(r,"DD"),type:"day"},monthLabel:xe.O.format(r,"MMMM"),label:Pe("today")});else if(e.startDate!==i)if(e.startDate>i&&e.startDate<o){var t=xe.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:xe.O.format(e.startDate,"MMMM"),body:{text:xe.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=l?g({group:"nextWeek",startDate:o,endDate:l,event:e,monthLabel:xe.O.isSame(o,l,"month")?xe.O.format(o,"MMMM"):"".concat(xe.O.format(o,"MMM")," - ").concat(xe.O.format(l,"MMM")),body:{text:"".concat(xe.O.format(o,"DD"),"-").concat(xe.O.format(l,"DD")),type:"range"},label:Pe("nextWeek")}):e.startDate>=c&&e.startDate<=s?g({group:"thisMonth",startDate:c,endDate:s,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("thisMonth")}):e.startDate>=u&&e.startDate<=d?g({group:"nextMonth",startDate:u,endDate:d,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("nextMonth")}):e.startDate>=m&&e.startDate<=p&&g({group:"later",startDate:m,endDate:p,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Pe("later")});else g({group:"tomorrow",startDate:i,endDate:null,event:e,body:{text:xe.O.format(i,"DD"),type:"day"},monthLabel:xe.O.format(e.startDate,"MMMM"),label:Pe("tomorrow")})}));var h,y=[],b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Me(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}(v.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:xe.O.format(E.startDate,"MMMM"),appLinkYear:xe.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(k),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),i=e.contentType===f.VH.Webinar?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Oe.kM,{name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:f.l9.Row,contents:v.z.SpecialEvents,getChildAppLink:function(t){var n,a,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Webinar"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.webinar)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:Ie,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var Ue=n(39202),Ve=n(5438),We=n(49439);function Re(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 Be=a.memo((function(e){var t,n,r=e.data,i=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,We.L)({className:"lZsTl",style:{transform:"scale(".concat((null==o?void 0:o.type)===f.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Re(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)?Re(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="lcmBu";return o.type===f.l9.LargeRow&&(m="iVL1A"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("CmXOx")},a.createElement(Ve.u,{video:r,type:"expandable",appLink:e.getAppLink(r),subTextAppLink:i,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}));const Ye="eSMIx",ze="layDP";function Ze(e){var t,n,r=he.d.getCustomAppLink(e),i=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(c.F,{appLink:r,style:i?{backgroundImage:"url(".concat(i,")")}:{},className:"".concat(Ye," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":ze),analyticsData:{url:Ue.C$.getHref(r)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(o.k,{type:f.l9.Row,contents:v.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t)},collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var _e=n(81993);const Ge={rowWidth:"TzZuL"};function qe(e){return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"".concat(Ge.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Rating,actionType:l.Vw.Click,location:l.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(_e.u.mapRatingToClass(e.data.value)," py-3 rounded-3 ")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},a.createElement(se.x,{svgName:I.vn.Search,size:se.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}function Xe(e){var t=e.content.filter((function(e){return e.code&&e.value<128}));return a.createElement(a.Fragment,null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Ratings,getChildAppLink:function(n){var a,r;return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.rating)||void 0===r?void 0:r.call(a,n,t)},collection:t,childComponent:qe,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:t.length},prefetched:!0}))}function Ke(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 Qe(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}var $e=n(75896);const Je={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function et(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,d),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:Je.bannerImage,style:{backgroundImage:"url('".concat(m.j.createBannerUrl(d.banner,{fallbackBaseUrl:"",fallbackCategoryName:d.name,type:u.__.Banners},{size:u.h2.Large}),"')")}},e.name&&a.createElement("div",{className:"".concat(Je.bannerContent," px-3")},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text)&&a.createElement("div",{className:Je.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)))))}function tt(e){return a.createElement(et,Object.assign({},e))}const nt="iCyo4",at="cgv_6";function rt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(nt)},a.createElement("div",{className:"".concat(at)}))}function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function ot(e,t,n){var a;return a=function(e,t){if("object"!=it(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=it(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==it(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lt,ct,st;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(lt||(lt={})),function(e){e.Dark="dark",e.White="white"}(ct||(ct={})),function(e){e.NewWindow="new-window"}(st||(st={})),lt.H1,lt.H2,lt.H3,lt.H4,lt.H5,lt.H6,ct.Dark,ct.White,st.NewWindow;var ut=ot(ot(ot(ot(ot(ot(ot(ot({},lt.H1,"h1"),lt.H2,"h2"),lt.H3,"h3"),lt.H4,"h4"),lt.H5,"h5"),lt.H6,"h6"),ct.Dark,"text-dark"),ct.White,"text-white"),dt=n(42308);function mt(e){var t,n,r,i=ut[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||lt.H6],o=ut[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||ct.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerImage," ").concat(Je.blurb," d-flex"),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Je.bannerContent," ").concat(e.widgetTypeId===dt.z.Blurb?Je.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("h2",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.text)&&a.createElement(T.h,{svgName:I.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function pt(e){var t=e.hasPermissions(fe.C.ManageSubjectPreferences)||e.hasLocalPermissions(fe.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Presentation,actionType:l.Vw.Click,location:l.LZ.HeroBannerSmallWidget});return a.createElement(c.F,{className:"info-link d-inline",appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:s},t.name)}var r=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerImage," ").concat(Je.presentations),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Je.bannerContent," ").concat(Je.presentations," px-3")},a.createElement("h2",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n($e.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function vt(e){switch(e.widgetTypeId){case dt.z.Blurb:return a.createElement(mt,Object.assign({},e));case dt.z.Presentations:return a.createElement(pt,Object.assign({},e));default:return a.createElement(et,Object.assign({},e))}}function ft(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Je.banner)},a.createElement("div",{className:"".concat(Je.bannerContent)}))}function gt(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("LPw_x")},a.createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:f},e.name&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),a.createElement("div",{className:"btn btn-outline-dark me-3"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):a.createElement(vt,Object.assign({},e))}var ht=n(45716),yt=n(2158),bt=n(38304),Et={HIGH:.75,MODERATE:.5};const kt={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var Lt,wt,xt=2,Ot=5.8,Ct=.2,St=.36;function Nt(e){var t=e===Lt.Large?Ot:xt,n=e===Lt.Large?St:Ct;return"".concat(t/2-2*n,"rem")}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et;return e>=t.HIGH?kt.circleSuccess:e>=t.MODERATE?kt.circleWarning:kt.circleDanger}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function jt(e,t){var n="d-inline-block ".concat(kt.circleContainer);return e===Lt.Large&&(n+=" ".concat(kt.lgCircleContainer)),It(t)&&(n+=" ".concat(kt.pendingCircle)),n}function It(e){return"number"!=typeof e}function At(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:Nt(e.size),className:kt.backgroundCircle}),!It(e.percentage)&&a.createElement("circle",{ref:t,r:Nt(e.size),className:Tt(e.percentage,e.scoreThresholds)}))}function Mt(e){var t,n,r=function(e){if(!It(e))return+e.toFixed(2)}(e.percentage),i=e.layout===wt.LabelInside?Lt.Large:Lt.Small,o=e.customLabel||(It(n=r)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===wt.LabelOnly?a.createElement("span",{className:Dt(r)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===wt.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:jt(i,r)},a.createElement(At,{percentage:r,size:i,scoreThresholds:e.scoreThresholds}),e.layout===wt.LabelInside&&a.createElement("span",{className:kt.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(Lt||(Lt={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(wt||(wt={})),Mt.defaultProps={layout:wt.CircleOnly};var Ft=n(64818);var Pt="widgets.onboardingSteps",Ht=x.T.encloseNamespace(Pt);function Ut(e){var t,n,r,i,o,s,u,d,m=(0,yt.T)(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),p=m.getPathway,v=m.hasLoadedPathway,f=v&&p(),g=Ft.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||v&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(fe.C.ViewOnboarding)&&!f.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var h=function(){if(e.isPreviewing)return{};var t=ht.H[f.currentScreen],n=f.screens[f.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:bt.m.getProgress(f)},bt.m.getOnboardingScreenStates(f))}(),y=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=bt.m.getProgress(f);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),b=y.overallPercentage,E=y.totalScreens,k=y.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(Mt,{percentage:Math.round(b)/100,layout:wt.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(i=ht.H["select-videos"])||void 0===i?void 0:i.getWidgetHeading(g):null===(o=ht.H[f.currentScreen])||void 0===o?void 0:o.getWidgetHeading(g)),a.createElement("div",{className:"dTKo5"},a.createElement(se.x,{svgName:I.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var r=ht.H[e];return t===n?"".concat(Ht("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Ht("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Ht("descriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a))}(e.isPreviewing?"select-videos":f.currentScreen,k,E,g))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(s=e.imageUrls)||void 0===s?void 0:s.onboardingTeacherBackground,"')")}},a.createElement(c.F,{appLink:null===(d=null===(u=e.appLinks)||void 0===u?void 0:u.onboardingStep)||void 0===d?void 0:d.call(u,f.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:h,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.User,location:l.LZ.OnboardingStepsWidget,descriptor:l.Ix.FinishPersonalising}},a.createElement(D.x,{namespace:Pt,phrase:"completeSetup"}))))}function Vt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Wt=n(68626),Rt=n(80143),Bt=n(31908);var Yt=a.memo((function(e){var t,n=e.data,r=e.getSubTextAppLink,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,Rt.n)(s,c),d=(0,y.k)(),m="JSM4l";return i.type===f.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Ve.u,{type:d.xs?"static":"popout",textPosition:Wt.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:Bt.M.isVideo(n)&&(null==r?void 0:r(n)),imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,audience:u,hideRating:!!u,hideDuration:!1,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}));function zt(e){var t,n,r,i,l,c,s,u;return a.createElement(o.k,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Yt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.subText,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,yearGroups:e.yearGroups,hideTitle:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectTitle,hideSeries:null===(l=e.metadata)||void 0===l?void 0:l.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType},getChildAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name)})}function Zt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function _t(e){var t,n,r,i,l,c,s,u,d,m,p,g=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name);return e.widgetTypeId===dt.z.ContinueWatching&&(null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)&&(g=null===(l=null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)||void 0===l?void 0:l.call(i)),a.createElement(o.k,{name:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Yt,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.subText,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl,hideTitle:null===(d=e.metadata)||void 0===d?void 0:d.hideObjectTitle,hideSeries:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectSeries,showVideoGuidance:e.showVideoGuidance,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType},getChildAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:g})}const Gt={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function qt(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 Xt=n(34004);function Kt(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Series,descriptor:l._S.TallPoster});return a.createElement(c.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?Gt.smallSeriesItem:Gt.largeSeriesItem," "),analyticsData:n,analyticsOptions:r},a.createElement(Xt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}function Qt(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Series,collection:e.content,childComponent:Kt,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const $t={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var Jt=function(e){return a.createElement("div",{className:"".concat(e.type===f.l9.Row?$t.slidingSubjectSmall:$t.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat($t.partialLoading," partial-loading-background rounded-3")}))};function en(e){for(var t,n,r=(t=e.type,(n=(0,y.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===f.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(Jt,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(h.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var tn=n(75163),nn=n(5465);function an(e){var t,n=e.data,r=e.preloadImage,i=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Classification,actionType:l.Vw.Click,descriptor:l._S.TallPoster});return a.createElement("div",{className:(t=$t.posterContainer,e.context.type===f.l9.Row?t+=" ".concat($t.slidingSubjectSmall):t+=" ".concat($t.slidingSubjectLarge),t)},a.createElement(tn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:r,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(nn.oy,{type:nn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat($t.heading)},n.name)))}function rn(e){return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Subjects,collection:e.content,childComponent:an,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function on(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 ln="explore-all-topics";function cn(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===f.OL.ExploreAllTopics?ln:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?m.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),r=he.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(o.k,{name:e.name,appLink:r,description:e.description,type:f.l9.Row,contents:v.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return on(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return on(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)?on(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:an,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===ln?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function sn(e){var t;return a.createElement("div",null,a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.SmallSeries,collection:e.content,childComponent:Kt,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function un(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function dn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(un,null),a.createElement(un,null))}var mn=n(3626);function pn(e){var t,n,r,i,o=e.content[0];return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(mn.J,{video:o,presentationAudiences:e.audiences,videoAppLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,o),subTextAppLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===i?void 0:i.call(r,o),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,imageCdnUrl:e.imageCdnUrl,hideInteractiveBadge:!0,showVideoGuidance:e.showVideoGuidance,yearGroups:e.yearGroups,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType}))}function vn(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 fn=n(2284);const gn="OZATG",hn="hcAU2",yn="Tbieu",bn="mGGrd",En="VtzxT",kn="jrY7R",Ln="yAgR6",wn="RjJ7O",xn="TJ7Sl",On="yzmvY",Cn="hGi43";function Sn(e){var t,n,r,i=m.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=m.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(r=e.data.metadata)||void 0===r?void 0:r.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(hn," ").concat(e.isLarge?yn:bn),style:l},a.createElement("div",{className:"".concat(En)},a.createElement("div",{className:"".concat(kn)},a.createElement("h3",{className:"".concat(Ln," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start ".concat(wn)},a.createElement("p",{className:On},e.data.description))),e.isLarge&&a.createElement("div",{className:Cn},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},x.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!i&&a.createElement("div",{className:"".concat(xn),style:{backgroundImage:"url('".concat(i,"')")}}))}var Nn=a.memo((function(e){var t,n,r,i,o=(null===(t=e.data)||void 0===t?void 0:t.status)===fn.W.ComingSoon,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(r=e.data)||void 0===r?void 0:r.name,presentationId:null===(i=e.data)||void 0===i?void 0:i.presentationId,comingSoon:!!o}),u=Object.assign(Object.assign({location:l.LZ.ClassificationListItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return e.appLink?a.createElement(c.F,{className:gn,appLink:e.appLink,analyticsData:s,analyticsOptions:u},a.createElement(Sn,Object.assign({},e))):a.createElement(Sn,Object.assign({},e))}));function Tn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},a.createElement(Nn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const Dn="HwejH";var jn=function(){return a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"15rem"}}))},In=n(22843),An=n(47325),Mn=n(90927),Fn=n(78479);const Pn={guidance:"uCRU1"};function Hn(e){var t,n,r,i,o,c=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video),s=Bt.M.isVideo(e.video)&&(null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===i?void 0:i.call(r,e.video)),d=a.useRef(null),m={actionType:l.Vw.Click,entity:Bt.M.getAnalyticsEntity(e.video),location:l.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:l._S.Thumbnail},p=(0,Rt.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:d},a.createElement(Ve.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),m),video:e.video,appLink:c,imageOptions:{size:u.h2.Medium},textPosition:Wt.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:p,hideRating:!!p,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none"})),a.createElement(In.h,{video:e.video,appLink:c,subTextAppLink:s,yearGroups:e.yearGroups,subTextType:e.subTextType}),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex justify-content-start align-items-center pt-1 ".concat(Pn.guidance)},a.createElement(Mn.N,{video:e.video,containerRef:d,widgetTemplate:Fn.f.ThumbnailFixedListMediaLarge,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(An.I,{video:e.video,containerRef:d,widgetTemplate:Fn.f.ThumbnailFixedListMediaLarge,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))}function Un(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(Hn,Object.assign({key:t.id,video:t},e))}))))}function Vn(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 Wn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(k.Z,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},a.createElement(Nn,{data:t,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===r?void 0:r.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function Rn(e){var t,n,r,i,o,s,d=$e.m.first(e.content),p=m.j.createUrl(null===(t=d.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),v=null===(n=d.metadata)||void 0===n?void 0:n.backgroundColor,f={backgroundColor:v};p&&(f.backgroundImage="url('".concat(p,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:d.presentationId}),h=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(a.Fragment,null,a.createElement(c.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,d),className:"text-decoration-none",analyticsData:g,analyticsOptions:h},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:f},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},d.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(tt,Object.assign({},e))}var Bn=n(38647),Yn=n(11882);function zn(e){var t,n,r,i,o,s,d,m,p,v=e.content[0],f=a.useRef(),g=(0,Rt.n)(null===(t=v.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),h=Bt.M.hasSeries(v)||he.d.isCompanyWidget(e.widgetTypeId),y=re.k.mergeOptions(e.analyticsOptions,{actionType:l.Vw.Click,entity:Bt.M.getAnalyticsEntity(v),location:l.LZ.ThumbnailHeroMediaWidget}),b=Bt.M.getCanBeConsumed(v).canNavigate;return v?a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{ref:f},a.createElement(Ve.u,{video:v,imageOptions:{size:u.h2.Large},type:"static",textPosition:Wt.z.Independent,analyticsOptions:y,audience:g,hideRating:!!g,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===r?void 0:r.call(n,v),subTextAppLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===o?void 0:o.call(i,v),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none"})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Bt.M.isVideo(v)&&a.createElement(Yn.$,{type:he.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:v,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===d?void 0:d.call(s,v),analyticsOptions:y,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:h?"":"mt-2"},a.createElement(c.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,v),analyticsData:{id:v.id,name:v.name},analyticsOptions:Object.assign(Object.assign({},y),{descriptor:l._S.Title}),className:"d-inline-block ".concat(b?"":"cursor-default text-decoration-none disabled"),disabled:!b},a.createElement("h3",{className:"h4 mb-0"},v.name,a.createElement(Bn.m,{video:v,yearGroups:e.yearGroups}))))),!!e.showVideoGuidance&&a.createElement("div",{className:"d-flex mt-2 ".concat("EQXKD")},a.createElement(Mn.N,{containerRef:f,widgetTemplate:Fn.f.ThumbnailHeroMedia,video:v,curriculum:e.curriculum,getCurriculumLinksRequest:e.getCurriculumLinksRequest}),a.createElement(An.I,{containerRef:f,widgetTemplate:Fn.f.ThumbnailHeroMedia,video:v,imageCdnUrl:e.imageCdnUrl,resourceThumbnailFallbackImageUrl:e.resourceThumbnailFallbackImageUrl})))):a.createElement(a.Fragment,null)}function Zn(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}function _n(e){var t,n,r;return a.createElement(o.k,{name:e.name,description:e.description,type:f.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===r?void 0:r.call(n,e.id,e.name)})}var Gn=n(74696),qn=n(4632);function Xn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(qn.E4,{videos:e.content,getVideoAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,e.widgetTypeId)},getSubTextAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.company)||void 0===a?void 0:a.call(n,t)},subTextType:"productionCompany",getPreviewQuestionsAppLink:function(){return null}}))}var Kn,Qn=n(12754);function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Jn(e,t,n){var a;return a=function(e,t){if("object"!=$n(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=$n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==$n(a)?a:String(a))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ea=(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Kn={},Fn.f.ThumbnailHeroMedia,{getComponent:function(){return zn},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(dn,null))))},icon:I.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){return[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Fn.f.PosterSlidingListLarge,{getComponent:function(){return Qt},partialLoading:function(){var e,t,n=(e=(0,y.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return qt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return qt(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)?qt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(Gt.partialLoading," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Fn.f.PosterSlidingListMedium,{getComponent:function(){return rn},partialLoading:function(){return a.createElement(en,{type:f.l9.LargeRow})},icon:I.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Fn.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case dt.z.CuratedClassifications:return cn;case dt.z.CuratedSeries:return sn;default:return cn}},partialLoading:function(){return a.createElement(en,{type:f.l9.Row})},icon:I.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e,t,n){if(t===Qn.x.StreamableLearning)return!1;switch(n){case dt.z.CuratedClassifications:return[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv].includes(e);case dt.z.CuratedSeries:return[f.ku.MoviesAndTv,f.ku.Company].includes(e);default:return!1}},className:""}),Fn.f.ThumbnailFeaturedMedia,{getComponent:function(){return pn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(E.Z,null,a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(dn,null))))))},icon:I.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Fn.f.CoverFixedPillListLarge,{getComponent:function(){return b.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(E.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Ml,null)))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Fn.f.CoverFixedPillListXSmall,{getComponent:function(){return z},partialLoading:function(){return a.createElement("div",{className:"".concat(B," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(E.Z,{className:"mb-2 ".concat(Y)},Array(8).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:I.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Fn.f.CoverSlidingPillListSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(h.l,null),a.createElement(te.QL,{partialLoadingComponent:L.Qh}))},icon:I.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e,t){return t===Qn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv,f.ku.Company].includes(e)},className:""}),Fn.f.CoverFixedTileList,{getComponent:function(){return q},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(Z.YA,{itemClassName:"columns-of-five"}))},icon:I.vn.WidgetTemplateCoverFixedTileList,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Fn.f.FeaturedThumbnailSlidingList,{getComponent:function(){return Ze},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Ye," ").concat(ze," mb-1 ")}),a.createElement(Oe.j7,{hideDescription:!0,hideHeading:!0}))},icon:I.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Kn,Fn.f.HeroBanner,{getComponent:function(){return tt},partialLoading:rt,icon:I.vn.WidgetTemplateHeroBanner,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:""}),Fn.f.OnboardingSteps,{getComponent:function(){return Ut},partialLoading:rt,icon:I.vn.WidgetTemplateOnboardingSteps,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Discover].includes(e)},className:""}),Fn.f.HeroBannerSmall,{getComponent:function(){return vt},partialLoading:ft,icon:I.vn.WidgetTemplateHeroBannerSmall,predicate:function(e,t){return t===Qn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.Classification,f.ku.Discover,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.HeroThumbnailSmall,{getComponent:function(){return gt},partialLoading:function(){return a.createElement(ft,null)},icon:I.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.ThumbnailFixedListXLarge,{getComponent:function(){return Rn},partialLoading:function(){return a.createElement(rt,null)},icon:I.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.ThumbnailFixedListLarge,{getComponent:function(){return Tn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return vn(e)}(e=Array(2))||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 vn(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)?vn(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.")}();return a.createElement("div",null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(k.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.ThumbnailFixedListSmall,{getComponent:function(){return Wn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Vn(e)}(e=Array(3))||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 Vn(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)?Vn(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.")}();return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement(E.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(k.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:I.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.EditableCoverFixedPillListSmall,{getComponent:function(){return we},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(E.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Qh,null)))}))))},icon:I.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Discover].includes(e)},className:""}),Fn.f.Heading,{getComponent:function(){return Qe},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:I.vn.WidgetTemplateHeading,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover].includes(e)},className:"heading-widget-template"}),Fn.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Un},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Dn," partial-loading-background rounded-3")}),a.createElement(jn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(dn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Dn," partial-loading-background rounded-3")}),a.createElement(jn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(dn,null)))))},icon:I.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Jn(Jn(Jn(Jn(Jn(Jn(Jn(Jn(Kn,Fn.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return zt},partialLoading:function(){return a.createElement(Oe.j7,{size:"lg",childComponent:Vt})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.Classification,f.ku.Discover,f.ku.Company,f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return _t},partialLoading:function(){return a.createElement(Oe.j7,{size:"sm",childComponent:Zt})},icon:I.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e,t){return t===Qn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.MoviesAndTv,f.ku.Discover,f.ku.Company].includes(e)},className:""}),Fn.f.FilterSlidingPillListSmall,{getComponent:function(){return Xe},partialLoading:function(){var e,t=(0,y.k)();return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(e=Array(t.xs||t.sm?3:t.md||t.lg?4:5),function(e){if(Array.isArray(e))return Ke(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 Ke(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)?Ke(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:I.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e,t){return t!==Qn.x.StreamableLearning&&[f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.CircleLogoSlidingList,{getComponent:function(){return g},partialLoading:function(){var e=8,t=(0,y.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(h.l,null),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:I.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e,t){return t===Qn.x.StreamableLearning?[f.ku.Discover,f.ku.Company].includes(e):[f.ku.MoviesAndTv].includes(e)},className:""}),Fn.f.EventIconSlidingList,{getComponent:function(){return He},partialLoading:function(){var e,t=(e=(0,y.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:e.xl||e.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(h.l,{hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:I.vn.WidgetTemplateEventIconSlidingList,predicate:function(e,t){return Qn.x.StreamableLearning,[f.ku.Discover].includes(e)},className:""}),Fn.f.ThumbnailVerticalList,{getComponent:function(){return Xn},partialLoading:function(){return a.createElement(Gn.S,{numVideos:3})},icon:I.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e,t){return t===Qn.x.StreamableLearning&&[f.ku.Company,f.ku.Classification].includes(e)},className:""}),Fn.f.ThumbnailSlidingListSmall,{getComponent:function(){return _n},partialLoading:Oe.j7,icon:I.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),Fn.f.ThumbnailSlidingListLarge,{getComponent:function(){return Zn},partialLoading:function(){return a.createElement(Oe.j7,{size:"lg"})},icon:I.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),ta=n(65294);const na={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function aa(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,u=(0,ta.Y)({prevent:!s}),d=u.ref,m=u.inView,p=r.q.isFunction(e.getContentRequest),v=i.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=he.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),g=f.content,h=f.unfilteredContent,b=(0,y.k)(),E=function(e,t){return!(he.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,g),k=!he.d.canDisplayOnScreenSize(b,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E||k)}),[v.hasCompleted,E,k,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var L=e.appLinks?Object.assign({},e.appLinks):null;(null==L?void 0:L.videoType)&&(L.videoType=function(t){var n;return null===(n=e.appLinks)||void 0===n?void 0:n.videoType(t,e.id)});var w=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),x=p&&!v.hasCompleted||e.isEditing&&E,O=ea[e.templateId].partialLoading,C=ea[e.templateId].getComponent(e.widgetTypeId),S=ea[e.templateId].className;return x||!E&&!k?a.createElement("div",{id:e.widgetTypeId===dt.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(S," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(na.widgetHighlight," py-2 px-3 rounded-3"):""},he.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(na.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),x?a.createElement("div",{ref:d},a.createElement(O,null)):a.createElement(C,Object.assign({},e,{appLinks:L,content:g,unfilteredContent:h,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:w,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q});var a=n(16450);n(14244)},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[4436],{85048:(e,t,n)=>{n.r(t),n.d(t,{EditClipTimepointsView:()=>Ue});var r=n(32735),i=n(23481),o=n(81886),a=n(20354),u=n(28400),l=n(83345),c=n(95047),s=n(93264);const f={arrowContainer:"lFyGP",downArrow:"kuLky",upArrow:"_zBG5",inputContainer:"h0Hdv",focus:"IJSFr"};function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=38,h=40,m=3600;function v(e){var t=p(r.useState("00"),2),n=t[0],i=t[1],o=p(r.useState("00"),2),a=o[0],u=o[1],l=p(r.useState("00"),2),d=l[0],v=l[1],b=p(r.useState(!1),2),g=b[0],T=b[1],w=r.useRef(null),S=r.useRef(null),O=e.duration&&e.duration>=m;function E(e){e.target.select(),T(!0)}function P(e,t,n){var r=e.target.value.replace(/\D/g,"").slice(0,2);t(r),2===r.length&&(null==n?void 0:n.current)&&n.current.focus()}function C(){e.setTime(e.value+1)}function j(){e.setTime(e.value-1)}function _(t,r){var i;e.allowKeyboardInput&&((i=c.k.convertDurationToSeconds(n,a,d))<0||e.maxValue&&i>e.maxValue||e.setTime(i),r(t.target.value.padStart(2,"0")),T(!1))}function k(e){e.keyCode===y&&C(),e.keyCode===h&&j()}return r.useEffect((function(){var t;t=s.T.ToDisplayDuration(1e3*e.value,!0).split(":"),i(String(t[0]).padStart(2,"0")),u(t[1]),v(t[2])}),[e.value]),r.createElement("div",{className:"".concat(f.inputContainer," ").concat(g?f.focus:""," position-relative bg-white d-flex align-items-center p-2 rounded-pill font-size-md")},r.createElement("div",{className:"".concat(O?"":"d-none")},r.createElement("input",{type:"text",className:"border-0 outline-none",value:n,maxLength:2,placeholder:"HH",onChange:function(e){return P(e,i,w)},onFocus:E,onBlur:function(e){return _(e,i)},onKeyDown:k,disabled:e.disabled}),r.createElement("span",null,":")),r.createElement("div",null,r.createElement("input",{ref:w,type:"text",className:"border-0 outline-none",value:a,maxLength:2,placeholder:"MM",onChange:function(e){return P(e,u,S)},onFocus:E,onBlur:function(e){return _(e,u)},onKeyDown:k,disabled:e.disabled}),r.createElement("span",null,":")),r.createElement("input",{ref:S,type:"text",className:"border-0 outline-none",value:d,maxLength:2,placeholder:"SS",onChange:function(e){return v(e.target.value)},onFocus:E,onBlur:function(e){return _(e,v)},onKeyDown:k,disabled:e.disabled}),!e.hideButtons&&r.createElement("div",null,r.createElement("div",{className:f.arrowContainer,onClick:C},r.createElement("div",{className:f.upArrow})),r.createElement("div",{className:f.arrowContainer,onClick:j},r.createElement("div",{className:f.downArrow}))))}v.defaultProps={allowKeyboardInput:!0,size:"lg"};var b="shared.clipTimeForm",g=i.T.encloseNamespace(b);function T(e){if(isNaN(e.startTime)||isNaN(e.endTime))return r.createElement(r.Fragment,null);var t=Math.floor(e.endTime)-Math.floor(e.startTime);return r.createElement("div",{className:"px-3"},r.createElement("form",{className:"d-flex align-items-center justify-content-center pb-4"},r.createElement("div",null,r.createElement(v,{value:e.startTime,setTime:e.setStartTime,duration:e.duration})),r.createElement("span",{className:"px-2"},"-"),r.createElement("div",{className:"me-2"},r.createElement(v,{value:e.endTime,setTime:e.setEndTime,duration:e.duration})),r.createElement("span",null,r.createElement("strong",null,r.createElement(l.x,{namespace:b,phrase:"duration"}))," ",s.T.ToDisplayDuration(1e3*t))),r.createElement("div",{className:"d-flex justify-content-end"},r.createElement("button",{className:"btn btn-link",onClick:e.onCancel},g("cancel")),r.createElement("button",{className:"btn btn-dark",onClick:e.onSubmit},g("next"))))}var w=n(60051),S=n(43012),O=n(39151),E=n(47812),P=n(1575),C=n(89476),j=n(79612),_=n(89961),k=n(36527),D=n(93861);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function M(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:String(t)}function N(e,t,n){return t=I(t),function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,x()?Reflect.construct(t,n||[],I(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=I(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},A.apply(this,arguments)}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}var F=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),N(this,t,arguments)}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(t,e),n=t,(r=[{key:"buildCSSClass",value:function(){return"cv-clip-timepoint-handle ".concat(A(I(t.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(e,n,r){return A(I(t.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},n),{className:this.buildCSSClass(),innerHTML:'<svg viewBox="0 0 5 14" pointer-events="none"><g id="Clips" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Clip-2" transform="translate(-835.000000, -632.000000)" fill="#FFFFFF"><g id="Video-Copy" transform="translate(275.000000, 96.000000)"><g id="Handles" transform="translate(560.000000, 536.000000)"><circle id="Oval" cx="1" cy="1" r="1"></circle><circle id="Oval-Copy-2" cx="1" cy="5" r="1"></circle><circle id="Oval-Copy-4" cx="1" cy="9" r="1"></circle><circle id="Oval-Copy-8" cx="1" cy="13" r="1"></circle><circle id="Oval-Copy" cx="4" cy="1" r="1"></circle><circle id="Oval-Copy-3" cx="4" cy="5" r="1"></circle><circle id="Oval-Copy-5" cx="4" cy="9" r="1"></circle><circle id="Oval-Copy-9" cx="4" cy="13" r="1"></circle></g></g></g></g></svg>'}),r)}},{key:"isEventTarget",value:function(e){return this.el().contains(e.target)}}])&&R(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function U(e){var t=function(e,t){if("object"!=H(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:String(t)}function K(e,t,n){return t=G(t),function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,V()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function z(){return z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=G(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},z.apply(this,arguments)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}var $=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=K(this,t,[e,n])).dragStartActive=!1,r.dragEndActive=!1,r.dragSliderActive=!1,r.dragSliderCurrentPosition=null,r.minDuration=Math.min(e.duration(),r.options_.minDuration),r.setStartTime(n.startTime,!1),r.setEndTime(n.endTime,!1),r.startHandle=new F(r.player(),n),r.startHandle.addClass("cv-clip-start-handle"),r.addChild(r.startHandle),r.endHandle=new F(r.player(),n),r.endHandle.addClass("cv-clip-end-handle"),r.addChild(r.endHandle),r.on(r.player(),"update:clip:start:time",(function(e){var t=e.time;return r.setStartTime(t)})),r.on(r.player(),"update:clip:end:time",(function(e){var t=e.time;return r.setEndTime(t)})),r.bindListeners(),r.update(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(t,e),n=t,r=[{key:"createEl",value:function(){return z(G(t.prototype),"createEl",this).call(this,"div",{className:"cv-clip-timepoint-selector"},{})}},{key:"update",value:function(){var e=this;this.options_.onChangeStartTime(this.startTime),this.options_.onChangeEndTime(this.endTime),this.requestAnimationFrame((function(){e.setStartOffset(),e.setWidth()}))}},{key:"setStartTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.player().duration()-this.minDuration;if(e>r&&(e=r),e<0&&(e=0),this.startTime=e,this.endTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.startTime+n:this.startTime+this.minDuration;this.setEndTime(i)}this.player().currentTime(this.startTime),t&&this.update()}}},{key:"setEndTime",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!isNaN(e)){var n=this.hasStartTime()&&this.hasEndTime()&&this.endTime-this.startTime,r=this.minDuration;if(e<r&&(e=r),e>this.player().duration()&&(e=this.player().duration()),this.endTime=e,this.startTime&&this.endTime-this.startTime<this.minDuration){var i="number"==typeof n?this.endTime-n:this.endTime-this.minDuration;this.setStartTime(i)}t&&this.update()}}},{key:"bindListeners",value:function(){var e=this;this.onTimeupdate=this.onTimeupdate.bind(this),this.player().on("timeupdate",this.onTimeupdate),this.on("mousedown",this.dragStart),this.on("touchstart",this.dragStart),this.player().on("dispose",(function(){e.player().off("timeupdate",e.onTimeupdate),e.off("mousedown",e.dragStart),e.off("touchstart",e.dragStart)}))}},{key:"hasStartTime",value:function(){return"number"==typeof this.startTime}},{key:"hasEndTime",value:function(){return"number"==typeof this.endTime}},{key:"onTimeupdate",value:function(){var e=this.player().currentTime();e>this.endTime&&e<this.endTime+.5&&this.player().pause()}},{key:"dragStart",value:function(e){this.startHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragStartActive=!0),this.endHandle.isEventTarget(e)&&(e.stopImmediatePropagation(),this.dragEndActive=!0),e.target===this.el()&&(e.stopImmediatePropagation(),this.dragSliderActive=!0,this.dragSliderCurrentPosition=this.getPosition(e));var t=this.el().ownerDocument;this.on(t,"mousemove",this.drag),this.on(t,"mouseup",this.dragEnd),this.on(t,"touchmove",this.drag),this.on(t,"touchend",this.dragEnd),this.drag(e)}},{key:"dragEnd",value:function(){this.dragStartActive=!1,this.dragEndActive=!1,this.dragSliderActive=!1,this.dragSliderCurrentPosition=null;var e=this.el().ownerDocument;this.off(e,"mousemove",this.drag),this.off(e,"mouseup",this.dragEnd),this.off(e,"touchmove",this.drag),this.off(e,"touchend",this.dragEnd)}},{key:"drag",value:function(e){if((this.dragStartActive||this.dragEndActive||this.dragSliderActive)&&D.Z.dom.isSingleLeftClick(e)){var t=this.getPosition(e),n=t*this.player().duration();this.dragStartActive&&this.handleStartHandleDrag(n),this.dragEndActive&&this.handleEndHandleDrag(n),this.dragSliderActive&&this.handleSliderDrag(t)}}},{key:"handleStartHandleDrag",value:function(e){this.setStartTime(e)}},{key:"handleEndHandleDrag",value:function(e){this.setEndTime(e)}},{key:"handleSliderDrag",value:function(e){var t=(e-this.dragSliderCurrentPosition)*this.player().duration(),n=this.startTime+t,r=this.endTime+t;n<=0||r>=this.player().duration()||(this.dragSliderCurrentPosition=e,this.setStartTime(n),this.setEndTime(r))}},{key:"getPosition",value:function(e){return D.Z.dom.getPointerPosition(this.el_.parentNode,e).x}},{key:"setStartOffset",value:function(){this.el_.style.marginLeft="".concat(this.getPercentage(this.startTime),"%")}},{key:"setWidth",value:function(){this.el_.style.width="".concat(this.getPercentage(this.endTime-this.startTime),"%")}},{key:"getPercentage",value:function(e){return+(e/this.player().duration()*100).toFixed(4)}}],r&&Z(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J(r.key),r)}}function J(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(t)?t:String(t)}function Y(e,t,n){return t=te(t),function(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,X()?Reflect.construct(t,n||[],te(e).constructor):t.apply(e,n))}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function ee(){return ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=te(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ee.apply(this,arguments)}function te(e){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},te(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var re=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Y(this,t,[e,n])).seekBar_=n.seekBar,r.playProgressBar_=n.playProgressBar,r.bindListeners(),r.player_.one("dispose",(function(){r.unbindListeners()})),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),n=t,(r=[{key:"createEl",value:function(e,n,r){return ee(te(t.prototype),"createEl",this).call(this,e,Object.assign(Object.assign({},n),{className:"cv-create-clip-progress-indicator"}),r)}},{key:"bindListeners",value:function(){this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown)}},{key:"unbindListeners",value:function(){var e=this.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp)}},{key:"handleMouseDown",value:function(e){if(D.Z.dom.isSingleLeftClick(e)){e.stopPropagation(),"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||D.Z.browser.IS_CHROME||e.preventDefault(),this.player_.scrubbing(!0),this.videoWasPlaying_=!this.player_.paused(),this.player_.pause(),D.Z.dom.blockTextSelection();var t=this.el_.ownerDocument;this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e),this.player_.addClass("cv-hide-mouse-time")}}},{key:"handleMouseMove",value:function(e){if(D.Z.dom.isSingleLeftClick(e)){var t=D.Z.dom.getPointerPosition(this.seekBar_.el_,e).x*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t),this.playProgressBar_.update()}}},{key:"handleMouseUp",value:function(e){D.Z.dom.unblockTextSelection();var t=this.el_.ownerDocument;this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),null==e||e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying_&&this.player_.play(),this.seekBar_.update(),this.player_.removeClass("cv-hide-mouse-time")}}])&&q(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("Component"));function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e,t){if("object"!=ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ie(t)?t:String(t)}function ue(e,t,n){return t=ce(t),function(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,le()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}function le(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(le=function(){return!!e})()}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}D.Z.registerComponent("CreateClipProgressIndicator",re);var fe=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ue(this,t,[e,n])).addClass("cv-create-clip-seek-bar"),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(e){var t=new $(this.player(),e);this.addChild(t);var n=this.getChild("playProgressBar"),r=new re(this.player_,{seekBar:this,playProgressBar:n});n.addChild(r)}}])&&oe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getComponent("SeekBar"));function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ye(r.key),r)}}function ye(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pe(t)?t:String(t)}function he(e,t,n){return t=ge(t),function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ve(e)}(e,me()?Reflect.construct(t,n||[],ge(e).constructor):t.apply(e,n))}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(me=function(){return!!e})()}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function be(){return be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ge(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},be.apply(this,arguments)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}fe.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},D.Z.browser.IS_IOS||D.Z.browser.IS_ANDROID||fe.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),D.Z.registerComponent("CreateClipSeekBar",fe);var we=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=he(this,t,[e,n])).options=n,r.initCreateClipSeekBar=r.initCreateClipSeekBar.bind(ve(r)),r.player.one("loadedmetadata",(function(){return r.player.ready(r.initCreateClipSeekBar)})),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Te(e,t)}(t,e),n=t,(r=[{key:"initCreateClipSeekBar",value:function(){var e,t=null===(e=this.player.controlBar.getChild("ProgressControl"))||void 0===e?void 0:e.getChild("SeekBar");if(t){var n=!isNaN(this.options.startTime)&&this.options.startTime>=0?this.options.startTime:0,r=!isNaN(this.options.endTime)&&this.options.endTime<=this.player.duration()?this.options.endTime:this.player.duration(),i=Math.min(this.options.minDuration||5,this.player.duration());t.initialize({startTime:n,endTime:r,minDuration:i,onChangeStartTime:this.options.onChangeStartTime,onChangeEndTime:this.options.onChangeEndTime})}}},{key:"dispose",value:function(){this.player.off("loadedmetadata",this.initCreateClipSeekBar),be(ge(t.prototype),"dispose",this).call(this)}}])&&de(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(D.Z.getPlugin("plugin"));function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Se(t)?t:String(t)}function Pe(e,t,n){return t=_e(t),function(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ce()?Reflect.construct(t,n||[],_e(e).constructor):t.apply(e,n))}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function je(){return je="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_e(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},je.apply(this,arguments)}function _e(e){return _e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_e(e)}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}D.Z.registerPlugin("createClipPlugin",we);var De=function(e){function t(e,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pe(this,t,[e,Object.assign(Object.assign({},n),{playbackRates:null,enableLocalCache:!1})])}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(t,e),n=t,(r=[{key:"getPlayerClassName",value:function(){return"cv-create-clip-player"}},{key:"configurePlugins",value:function(){var e=this.options,t=e.startTime,n=e.endTime,r=e.minDuration,i=e.onChangeStartTime,o=e.onChangeEndTime;this.player.createClipPlugin({startTime:t,endTime:n,minDuration:r,onChangeStartTime:i,onChangeEndTime:o})}},{key:"getPlayerOptions",value:function(){var e=je(_e(t.prototype),"getPlayerOptions",this).call(this);return e.inactivityTimeout=0,e}},{key:"getSeekBarName",value:function(){return"CreateClipSeekBar"}},{key:"getAnalyticsPlayerType",value:function(){return"create-clip-player"}}])&&Oe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(k.r),Be=n(63816);function Re(e){var t=e.onReady,n=e.onDispose,i=r.useRef(),o=r.useRef();return r.useEffect((function(){var r;if(null===(r=o.current)||void 0===r||r.dispose(),i)return o.current=new De(i.current,e),t&&o.current.ready((function(){t((0,Be.G)(o.current))})),n&&o.current.one("dispose",n),function(){var e;null===(e=o.current)||void 0===e||e.dispose()}}),[e.viewKey]),r.useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:start:time",time:e.startTime})}),[e.startTime]),r.useEffect((function(){var t;null===(t=o.current)||void 0===t||t.trigger({type:"update:clip:end:time",time:e.endTime})}),[e.endTime]),r.createElement("div",{ref:i})}var Me=n(14070),Ne=n(97291);function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(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,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ie="edit-clip-timepoints",Le="shared.editClipTimepoints",Fe=i.T.encloseNamespace(Le),He=30,Ze=5;function Ue(e){var t,n,l,c=r.useRef(),s=e.startTime||0,f=xe(r.useState(s),2),p=f[0],d=f[1],y=xe(r.useState(s+He),2),h=y[0],m=y[1],v=a.a.useBasicFetch(O.L.config()),b=a.a.useBasicFetch(!!e.id&&S.e.clip(e.id)),g=(null===(n=null===(t=b.data)||void 0===t?void 0:t._parentVideo)||void 0===n?void 0:n.id)||e.videoId,k=a.a.useBasicFetch(!!g&&E.k.createViewKey(g,w.f.MasterObject)),D=a.a.useBasicFetch(!!g&&P.R.video(g)),B=xe(r.useState(0),2),R=B[0],M=B[1],N=(0,C.f)();return(0,j.M)({title:e.id?null===(l=b.data)||void 0===l?void 0:l.name:Fe("pageTitle")}),r.useEffect((function(){N.lock({id:Ie,title:i.T.getPhrase(Le,"navLockTitle"),text:i.T.getPhrase(Le,"navLockBody")})}),[]),r.useEffect((function(){b.data&&(d(b.data.startTime),m(b.data.endTime))}),[b.data]),e.id||e.videoId?r.createElement("div",{className:"px-3"},!!v.data&&!!k.data&&!!D.data&&(!e.id||!!b.data)&&r.createElement("div",{className:"pb-3"},r.createElement("div",{className:"mb-3"},r.createElement(Re,{onReady:function(e){c.current=e,e.on("durationchange",(function(){return M(e.duration())}))},playerApi:new URL(v.data.playerApiUrl),viewKey:k.data.viewKey,startTime:p,endTime:h,onChangeStartTime:d,onChangeEndTime:m,minDuration:Ze,autoplay:!0})),r.createElement(T,{startTime:p,endTime:h,setStartTime:d,setEndTime:m,onSubmit:function(){var t="";p>h&&(t=Fe("startTimeGreaterThanEndTime")),h-p<Ze&&(t=Fe("tooShort",{minDuration:Ze})),t?function(e){_.M.render(r.createElement("p",null,e),{title:Fe("errorHeading"),cancelButtonProps:{variant:"link",text:Fe("close")}})}(t):(N.unlock(Ie),o.Q.C$.trigger({application:Ne.O.CLIPS,action:e.id?Me.e.Clips.EDIT_CLIP_DETAILS:Me.e.Clips.CREATE_CLIP_DETAILS,args:e.id?[e.id]:[e.videoId],params:{startTime:p,endTime:h,isCopying:e.isCopying}}))},onCancel:function(){var e,t,n,r,i=null!==(t=null===(e=c.current)||void 0===e?void 0:e.currentTime())&&void 0!==t?t:0;o.Q.C$.trigger({application:Ne.O.VIDEOS,action:Me.e.Videos.PLAY_VIDEO,args:[null===(n=D.data)||void 0===n?void 0:n.id,u.m.slugify(null===(r=D.data)||void 0===r?void 0:r.name)],params:{t:i}})},duration:R}))):r.createElement(r.Fragment,null)}}}]);