@clickview/lite 0.67.0 → 0.67.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- /*! For license information please see 2205-7596edf3ff-lite.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2205],{2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),i=n(2948),r=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(1666),u=n(5112),d=n(61699),m=n(31949),p=n(22902),v=n(37802),f=n(75795),g=n(33857);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function y(e){var t,n,y,b,E=(y=(0,i.D)("has:playlist",null),b=2,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(y,b)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(y,b)||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.")}()),w=E[0],k=E[1],L=r.a.useBasicFetch(m.N.currentUser()),x=r.a.useBasicFetch((null===(t=L.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.user(L.data.id)),C=r.a.useBasicFetch((null===(n=L.data)||void 0===n?void 0:n.isAuthenticated)&&s.h.customer(L.data.customerId)),T=r.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),S=r.a.useBasicFetch(c.x.presentation(l.R.Subject)),N=r.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),O=r.a.useBasicFetch(u.C.getUserPlaylists(new g.l)),j=r.a.useBasicFetch(d.o.mySubjectPreferences()),D=(0,p.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;O.hasCompleted&&w!==!!(null===(t=null===(e=O.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&k(!!(null===(a=null===(n=O.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[O.hasCompleted]);var P=L.hasCompleted&&x.hasCompleted&&C.hasCompleted&&T.hasCompleted&&N.hasCompleted&&S.hasCompleted&&O.hasCompleted&&j.hasCompleted&&null!==w,A=(0,v.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=x.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=i.preferredPresentationOverride||S.data;return P?o.m.getOnboardingPathway({jobTitle:r,userSettings:A.data,presentations:T.data,curriculums:N.data,preferredSubjects:j.data,preferredPresentation:l,appLink:f.O.getCurrentRoute().appLink,appLinks:e,masterUser:x.data,customer:C.data,hasPlaylist:w,hasPermissions:D,currentUser:L.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:P}}},91200:(e,t,n)=>{n.d(t,{Y:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(84231);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function c(e){var t,n=function(e){if(Array.isArray(e))return l(e)}(t=Array(e.numItems))||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 l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(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.")}(),c=e.itemClassName||"";return a.createElement(a.Fragment,null,e.showHeading&&a.createElement("div",{className:"".concat(o.Z.partialHeading," mb-1 partial-loading-background")}),a.createElement(i.Z,{className:"mx-n1 mb-n2"},n.map((function(e,t){return a.createElement(r.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(c," px-1 pb-2")},a.createElement("div",{className:"".concat(o.Z.playlistItem," partial-loading-background rounded-3")}))}))))}c.defaultProps={numItems:8}},23162:(e,t,n)=>{n.d(t,{t:()=>C});var a=n(32735),i=n(82602),r=n(23481),o=n(110),l=n(65858),c=n(83345),s="playlists.playlistCount";function u(e){var t=function(e){var t,n,a,i,r,o;return!!e&&(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==n?n:0)+(null!==(i=null===(a=e.interactives)||void 0===a?void 0:a.count)&&void 0!==i?i:0)+(null!==(o=null===(r=e.clips)||void 0===r?void 0:r.count)&&void 0!==o?o:0)}(e.playlist);return!1===t||Number.isNaN(t)?a.createElement(a.Fragment,null):a.createElement("span",{className:"text-shadow font-size-sm"},a.createElement(c.x,{namespace:s,phrase:"count",options:{smartCount:t}}))}var d=n(20789),m=n(89725),p=n(64818);function v(e){var t,n,i,r=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return a.createElement(m.F,null);if(!(null==r?void 0:r.id)||!(null===(n=e.currentUser)||void 0===n?void 0:n.id))return a.createElement(a.Fragment,null);if(r.id.toString()===e.currentUser.id.toString())return a.createElement(a.Fragment,null);var o="string"==typeof r.avatar?r.avatar:null===(i=r.avatar)||void 0===i?void 0:i.url;return a.createElement(d.q,{imageUrl:o,imageCdnUrl:e.imageCdnUrl,initials:p.l.getInitials(r.name,r.surname)})}var f=n(36848),g=n(40955),h=n(75163),y=n(5465),b=n(54610),E=n(80143),w=n(9085),k=n(67453),L=n(84231),x="playlists.playlistList";function C(e){var t,n,c=k.j.createUrl(e.data.cover&&e.data.cover.url,{size:b.h2.Medium,resizeType:b.Nq.Cover}),s=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,d=(0,E.n)(s,e.presentationAudiences),m=L.Z.playlistItem,p=!!c||!!e.showFallbackImage;p&&(m+=" ".concat(L.Z.playlistItemGradient)),!p&&e.bgColourClassNames&&(m+=" ".concat(L.Z.playlistItem," ").concat((0,w.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(m+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(m+=" rounded-start-lg overflow-hidden");var C=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(n=e.data)||void 0===n?void 0:n.name}),T=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Playlist});return a.createElement(f.F,{appLink:e.appLink,analyticsData:C,analyticsOptions:T,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":r.T.getPhrase(x,"lastUpdated",{timeago:(0,i.WU)(o.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},a.createElement(h.Z,{data:c,alt:e.data.name,className:m},!!e.showFallbackImage&&a.createElement(y.oy,{type:y.mS.Playlist}),a.createElement("div",{className:"text-white ".concat(L.Z.playlistMetadata)},!!e.showCount&&a.createElement(u,{playlist:e.data}),a.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},a.createElement("span",{className:"text-shadow clamp-2"},e.data.name)),!!s&&!!s.length&&!!d&&a.createElement(g.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:d,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&a.createElement("div",{className:L.Z.ownerAvatarContainer},a.createElement(v,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}C.defaultProps={itemStyle:"square"}},31273:(e,t,n)=>{n.d(t,{P:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(65858),l=n(23162),c={actionType:o.Vw.Click,entity:o.py.Playlist,location:o.LZ.PlaylistListItem,descriptor:o._S.Cover};function s(e){return a.createElement(i.Z,{as:"ul",className:"list-unstyled mx-n1"},e.extraPlaylistItem&&a.createElement(r.Z,{as:"li",key:"extra-playlist-item",xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},e.extraPlaylistItem),e.playlists.map((function(t){return a.createElement(r.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},a.createElement(l.t,{data:t,appLink:e.getPlaylistAppLink(t),imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,presentationAudiences:e.presentationAudiences,bgColourClassNames:e.bgColourClassNames,showCount:e.showCount,showOwner:e.showOwner,showFallbackImage:e.showFallbackImage,titleClassName:e.itemTitleClassName,itemStyle:e.itemStyle,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),c)}))})))}},98981:(e,t,n)=>{n.d(t,{YA:()=>a.Y,tN:()=>i.t});var a=n(91200),i=(n(31273),n(23162))},3626:(e,t,n)=>{n.d(t,{J:()=>w});var a=n(32735),i=n(68050),r=n(69111),o=n(49985),l=n(65858),c=n(40955),s=n(18559),u=n(17464),d=n(72431),m=n(60318),p=n(85784),v=n(70872),f=n(11882),g=n(54610),h=n(68626),y=n(80143),b=n(31908);const E={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",responsiveGuidance:"s3W_4",description:"zejMP",details:"MRyVe"};function w(e){var t,n=e.video,w=e.presentationAudiences,k=e.getVideoAppLink,L=e.subTextAppLink,x=e.hideInteractiveBadge,C=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,T=(0,y.n)(C,w),S=o.k.mergeOptions(e.analyticsOptions,{location:l.LZ.ClassificationHero,entity:b.M.getAnalyticsEntity(n)}),N=a.useRef();return n?a.createElement(i.Z,null,a.createElement(r.Z,{xs:12,md:6},a.createElement("div",{ref:N},a.createElement(d.u,{analyticsData:e.analyticsData,analyticsOptions:S,video:n,appLink:null==k?void 0:k(e.video,{}),imageOptions:{size:g.h2.Medium},textPosition:h.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?T:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!T,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin}))),a.createElement(r.Z,{xs:12,md:6,className:"".concat(E.details," position-relative")},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"overflow-hidden"},a.createElement(f.$,{type:e.subTextType,analyticsData:e.analyticsData,analyticsOptions:S,video:n,appLink:L,className:"text-reset clamp-1"}),a.createElement(v.u,{video:n,analyticsData:e.analyticsData,analyticsOptions:S,appLink:null==k?void 0:k(e.video,{}),titleSize:"h4",yearGroups:e.yearGroups,showNewVideoIndicator:e.showNewVideoIndicator,titleClassName:e.titleClassName,clampLevel:2})),a.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:S,video:n})),"info-panel"===e.badgePosition&&a.createElement(u.c,{className:"pb-1"},!x&&a.createElement(s.C,{type:s.g.Interactive,data:n.interactives}),a.createElement(s.C,{type:s.g.Rating,data:n.rating}),a.createElement(s.C,{type:s.g.ProductionYear,data:n.productionYear})),a.createElement("p",{className:"mb-1"},a.createElement("span",{className:E.description},n.description)),"info-panel"===e.badgePosition&&a.createElement(c.P,{audience:T,className:"mt-1",border:"dark"}),e.showVideoGuidance&&a.createElement(m.u,{getClassroomGuideAppLink:e.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,video:n,analyticsData:e.analyticsData,analyticsOptions:S,containerClassName:"d-flex ".concat(E.guidance),responsiveClassName:E.responsiveGuidance}))):a.createElement(a.Fragment,null)}w.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},98364:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.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:()=>w,W:()=>k});var a=n(32735),i=n(80247),r=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"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,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.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=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function w(e){var t,n,r=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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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(r)?function(e){return r(e)}:a.Children.count(r)?r: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(i.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 k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,o.u6)(),T=C.errors,S=C.touched,N=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=N),a.createElement(d,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(T,S,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=N),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.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-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(w,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(r.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}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(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=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&&r(),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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},20710:(e,t,n)=>{n.d(t,{y:()=>p});var a=n(32735),i=n(97395),r=n(65858),o=n(83657),l=n(36848),c=n(88711),s=n(75163),u=n(5465),d=n(54610);const m={actions:"cN3nB",actionsContainer:"xM37V",ownerLogo:"g3JFo",dropStyle:"kvCLS",dragStyle:"md9Na"};function p(e){var t,n,p,v,f,g,h=e.folder.thumbnail?i._.urlBuilder(e.folder.thumbnail.url,{size:d.h2.Small}):null,y=null===(v=null===(p=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===p?void 0:p[0])||void 0===v?void 0:v.owner,b=e.showOwnerLogo&&(null===(f=null==y?void 0:y.logo)||void 0===f?void 0:f.url)?i._.urlBuilder(y.logo.url,{size:d.h2.Small}):null,E=null===(g=e.getFolderActions)||void 0===g?void 0:g.call(e,e.folder),w=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,k=e.analyticsOptions?Object.assign({actionType:r.Vw.Click,entity:r.py.Folder},e.analyticsOptions):void 0;return a.createElement(c.j,{draggable:e.drag&&{id:e.folder.id,data:e.folder},droppable:e.drop&&{id:e.folder.id,data:e.folder},dropStye:m.dropStyle,dragStyle:m.dragStyle},a.createElement("div",{className:"position-relative"},a.createElement(l.F,{className:"rounded-3 d-block text-decoration-none",appLink:e.getAppLink(e.folder),title:e.folder.name,analyticsData:w,analyticsOptions:k},a.createElement(s.Z,{data:h,imageType:d.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(u.oy,{name:e.folder.name,type:u.mS.Folder,extraClasses:"rounded-top-lg"})),a.createElement("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2"},a.createElement("span",{className:"text-truncate d-block"},e.folder.name))),(null==E?void 0:E.length)&&a.createElement(o.e,{actions:E,className:m.actionsContainer,actionsDropdownClassName:m.actions,dropdownToggleSvgSize:null}),!!b&&a.createElement("img",{src:b,className:"rounded-circle ".concat(m.ownerLogo),alt:"".concat(null==y?void 0:y.name," logo"),title:(null==y?void 0:y.name)||""})))}},40782:(e,t,n)=>{n.d(t,{I:()=>a,O:()=>c});var a,i=n(32735),r=n(2606),o=n(62712);function l(e){var t=i.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return i.createElement("svg",null,i.createElement("circle",{r:(0,r.pu)(e.size),className:o.Z.backgroundCircle}),!(0,r.zR)(e.percentage)&&i.createElement("circle",{ref:t,r:(0,r.pu)(e.size),className:(0,r.V4)(e.percentage,e.scoreThresholds)}))}function c(e){var t,n=(0,r.Ki)(e.percentage),c=e.size||(e.layout===a.LabelInside?r.Mk.Large:r.Mk.Small),s=e.customLabel||(0,r.DV)(n);return e.layout===a.LabelOnly?i.createElement("span",{className:(0,r.IA)(n)},s):i.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===a.LabelBefore&&i.createElement("span",{className:"me-2"},s),i.createElement("div",{className:(0,r.tw)(c,n)},i.createElement(l,{percentage:n,size:c,scoreThresholds:e.scoreThresholds}),e.layout===a.LabelInside&&i.createElement("span",{className:o.Z.centredPercentageText},s)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(a||(a={})),c.defaultProps={layout:a.CircleOnly}},2606:(e,t,n)=>{n.d(t,{DV:()=>g,IA:()=>p,Ki:()=>f,Mk:()=>l,V4:()=>m,pu:()=>d,tw:()=>v,zR:()=>h});var a=n(94892),i=n(62712);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l,c=.2,s=.36;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(l||(l={}));var u=o(o(o({},l.ExtraSmall,{size:2}),l.Small,{size:2}),l.Large,{size:5.8});function d(e){var t=u[e].size,n=e===l.Large?s:c;return"".concat(t/2-2*n,"rem")}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.i;return e>=t.HIGH?i.Z.circleSuccess:e>=t.MODERATE?i.Z.circleWarning:i.Z.circleDanger}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.i;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function v(e,t){var n="d-inline-block ".concat(i.Z.circleContainer);return e===l.Large&&(n+=" ".concat(i.Z.lgCircleContainer)),e===l.ExtraSmall&&(n+=" ".concat(i.Z.xsCircleContainer)),h(t)&&(n+=" ".concat(i.Z.pendingCircle)),n}function f(e){if(!h(e))return+e.toFixed(2)}function g(e){return h(e)?"--%":"".concat(Math.round(100*e),"%")}function h(e){return"number"!=typeof e}},34004:(e,t,n)=>{n.d(t,{r:()=>v});var a=n(32735),i=n(40955),r=n(18559),o=n(75163),l=n(5465),c=n(54610),s=n(37963),u=n(80143);const d={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",description:"jnkdI",largeHoverDescription:"Uh4gM",hasTableOfContents:"RdHkK",smallHoverDescription:"TiqqV"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function p(e){return a.createElement("div",{className:"py-3 mx-2 px-2 rounded bg-white text-center ".concat(d.mask," d-flex flex-column align-items-center")},a.createElement("h3",{className:"fw-semibold mb-0 ".concat(d.hoverTitle," ").concat(e.isSmall?d.smallHoverTitle:d.largeHoverTitle)},a.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&a.createElement("p",{className:"".concat(e.hasTableOfContents?d.hasTableOfContents:""," ").concat(d.hoverDescription," ").concat(e.isSmall?d.smallHoverDescription:d.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?a.createElement(i.P,{audience:e.mergedAudience,border:"dark",className:"mt-2 w-fit"}):a.createElement(r.C,{type:r.g.Rating,data:e.series.rating,className:"mt-2"}))}function v(e){var t,n,v=(t=(0,s.L)({className:d.hoverActive}),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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(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.")}()),f=v[0],g=v[1],h=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],y=(0,u.n)(h,e.presentationAudiences),b=!!(h&&h.length&&y);return a.createElement("div",{ref:f},a.createElement(o.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:c.__.TallPosters,preload:e.preloadImage,imageOptions:{size:c.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},g&&a.createElement(p,{isSmall:e.isSmall,series:e.series,mergedAudience:h&&h.length?y:null,hasTableOfContents:e.hasTableOfContents}),a.createElement(l.oy,{type:l.mS.Series}),a.createElement("div",{className:"position-absolute text-white text-shadow ".concat(d.labelContainer)},b?a.createElement(i.P,{audience:y,border:"white"}):a.createElement(r.C,{type:r.g.Rating,data:e.series.rating}))))}},36202:(e,t,n)=>{n.d(t,{I:()=>E});var a=n(32735),i=n(75896),r=n(65858),o=n(36848),l=n(83914),c=n(83345);const s={thumbnailTitle:"OsWjL"};function u(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function d(e){return e.appLink?a.createElement(o.F,{appLink:e.appLink,className:"".concat(s.thumbnailTitle)},a.createElement(u,Object.assign({},e))):a.createElement(u,Object.assign({},e))}var m=n(72431),p=n(60995),v=n(4594),f=n(68626),g=n(45778),h=n(35223);const y={badge:"M4zat",mask:"r0Ztg",thumbnailContainer:"uD9dz"};var b="shared.collectionThumbnail";function E(e){var t,n,s,u,E=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===v.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return i.m.first(n.data)}}(),w=function(){var t,n,a=0;if(e.collection.videos&&e.collection.videos.count&&(a+=e.collection.videos.count),e.collection.typeId===v.E.Playlist){var i=e.collection;(null===(t=i.interactives)||void 0===t?void 0:t.count)&&(a+=i.interactives.count),(null===(n=i.clips)||void 0===n?void 0:n.count)&&(a+=i.clips.count)}return a}(),k=(null===(t=e.title)||void 0===t?void 0:t.length)||(null===(n=e.subText)||void 0===n?void 0:n.length),L=Object.assign({id:e.collection.id.toString(),name:e.collection.name},e.analyticsData),x=Object.assign({actionType:r.Vw.Click,entity:(u=e.collection,g.G.isType(u,v.E.Playlist)?r.py.Playlist:g.G.isType(u,v.E.Series)?r.py.Series:void 0)},e.analyticsOptions);return a.createElement("div",null,a.createElement("div",{className:"position-relative ".concat(y.thumbnailContainer," z-1")},a.createElement(o.F,{appLink:e.appLink,analyticsData:L,analyticsOptions:x,preventFocus:!0},e.showMask&&a.createElement("div",{className:"".concat(y.mask," position-absolute w-100 h-100 rounded-3 bg-dark bg-gradient z-1 bg-opacity-50 pointer-events-none")},a.createElement("div",{className:"".concat(y.badge," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(l.x,{svgName:h.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(s=e.hoverText)||void 0===s?void 0:s.length)?a.createElement("span",null,e.hoverText):a.createElement(c.x,{namespace:b,phrase:"playAll"})))),E&&a.createElement(m.u,{video:E,imageOptions:e.imageOptions,textPosition:f.z.Independent,type:"cosmetic",hideMask:!0,hideRating:!0,hideDuration:!0,hideVideoTypeBadge:!0}),!E&&a.createElement("div",{className:"ratio ratio-16x9 bg-light rounded-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center"},a.createElement(l.x,{svgName:h.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(y.badge," d-flex align-items-center w-fit bg-dark bg-opacity-75 rounded-pill position-absolute bottom-0 end-0 ps-1 m-2")},a.createElement(l.x,{svgName:h.vn.Series,className:"svg-container text-white me-1"}),a.createElement("p",{className:"d-inline fw-semibold text-white mb-0"},a.createElement(c.x,{namespace:b,phrase:"videos",options:{count:w,smartCount:w}}))))),k&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(p.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(d,{title:e.collection.name,appLink:e.titleAppLink})))}},40785:(e,t,n)=>{n.d(t,{L:()=>Ka});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(49985),c=n(65858),s=n(83914),u=n(83345),d=n(54610),m=n(12778),p=n(67453),v=n(35223);const f="TTPKV",g="nF3tK";var h="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function b(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function E(e){return e.person?a.createElement(b,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(u.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function w(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var L=n(5281),x=n(31453),C=n(36848),T=n(7733),S=n(9085);var N=function(e){var t,n,i,r,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,S.x)(e.data.name,T.o),u=Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.data)||void 0===i?void 0:i.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company}),v={backgroundImage:o?"url('".concat(o,"')"):null,backgroundColor:l};return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:u,analyticsOptions:m},a.createElement("div",{className:(0,x.A)("rounded-circle w-100 h-100","vt0gx",!l&&s),style:v}))},O=n(58704),j=n(40424);function D(e){var t;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:N,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var P=n(55827),A=n(79967);var I=n(47770),F=n(68050),M=n(69111),U=n(9513),V=n(92802),_=n(23481),G=n(98364),R=n(23201),H=n(38365),B=n(82644),z=n(10874),Z=n(69883),W=n(5173),Y=W.Ry().shape({feedbackInput:W.Z_().max(5e3,(function(){return _.T.getPhrase("shared.feedbackForm","tooLong")}))});const q="UFm9h",$="na9Vb";function K(e){return K="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},K(e)}function X(){X=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==K(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(K(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var J="shared.feedbackForm";function ee(e){var t,n,r=(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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(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=r[0],l=r[1],c=(0,Z.Z)();function s(t,n){return a=this,i=void 0,r=void 0,s=X().mark((function a(){return X().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(_.T.getPhrase(J,"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]])})),new(r||(r=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,i||[])).next())}));var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(G.V,{emoji:"🔎"},a.createElement(u.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(z.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(u.x,{namespace:J,phrase:"yes"})),a.createElement(z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(u.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(G.V,{emoji:"👏"},a.createElement(u.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(J,"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(u.x,{namespace:J,phrase:"back"})),a.createElement(R.A,{variant:"dark",submitText:_.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(G.V,{emoji:"😢"},a.createElement(u.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(J,"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(u.x,{namespace:J,phrase:"back"})),a.createElement(R.A,{variant:"dark",submitText:_.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(G.V,{emoji:"🙌"},a.createElement(u.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(F.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(M.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(98981),ie=n(88513),re={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:re}))}))))}var le=n(16450),ce=n(43741),se=n(55171),ue=n(78479),de=n(42308),me=n(87114);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function fe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:d.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===j.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:ve(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===j.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return pe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||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:function(t){return function(t){var n,a,i,r,l,c,s,u;return t.id===j.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===j.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:U.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===de.z.Classifications&&e.templateId===ue.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?fe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===j.OL.ClassificationDirectory}}})}var he=n(65163),ye=n(98269),be=n(1048),Ee=n(11607),we=n(17808),ke=n(1287),Le=n(2102),xe=n(83523),Ce=n(92038),Te="shared.subjectWidgetItem",Se=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Ce.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" 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(Ce.Z.widgetItem," ").concat(Ce.Z.draggingItem),style:be.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Ce.Z.widgetItem),style:be.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Ce.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(xe.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?_.T.getPhrase(Te,e.isVisible?"hideFromDashboard":"showOnDashboard"):_.T.getPhrase(Te,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Ne=n(91028),Oe=n(16714),je=n(54569),De=n(49542);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 Ae(){Ae=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Pe(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Pe(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(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 Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Me="shared.editableCoverFixedPillListSmall";function Ue(e){var t,n,i,r=Ie(a.useState(!1),2),o=r[0],s=r[1],d=Ie(a.useState(!1),2),m=d[0],p=d[1],v=De.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,f=a.useMemo((function(){return v.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)}))}),[v]),g=a.useMemo((function(){var e;return null!==(e=null==v?void 0:v.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ie(a.useState(g),2),y=h[0],b=h[1],E=Ie(a.useState(g),2),w=E[0],k=E[1],L=a.useMemo((function(){return o?v.filter((function(e){return!!w[e.id]})).sort((function(e,t){return w[e.id].index-w[t.id].index})):v.filter((function(e){var t;return!!y[e.id]&&!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return y[e.id].index-y[t.id].index}))}),[v,w,y,o]),x=(0,Z.Z)();a.useEffect((function(){s(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=a.useMemo((function(){return!(o||!L.length)&&Object.values(w).some((function(e){return e.hidden}))}),[o,w]);function T(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function S(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},w),n=S(e);t[e.id]={id:e.id,hidden:n,index:T(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),k(t)}var O=a.useMemo((function(){return!be.t.isEqual(g,w)}),[g,w]),j={id:e.presentation.id,name:_.T.getPhrase(Me,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},D=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:_.T.getPhrase(Me,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],P=!o&&D.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),I={location:c.LZ.EditableSubjectPreferencesWidget};return L.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"},o?_.T.getPhrase(Me,"updating"):e.name),!o&&A&&a.createElement(Ee.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},_.T.getPhrase(Me,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(u.x,{namespace:Me,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ye.Z,{variant:"link",className:"me-2",onClick:function(){k(y),s(!1)}},a.createElement(u.x,{namespace:Me,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=Ae().mark((function t(){var n;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=f?v.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(w)).then((function(){b(w),p(!1),s(!1)})).catch((function(){p(!1),x.error(_.T.getPhrase(Me,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(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((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(u.x,{namespace:Me,phrase:"update"})))),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},C&&a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Ne.V,{data:j,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:I,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(we.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(Se,{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!0,canToggle:!S(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=T({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},w);je.l.reorder(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!S(e)}})),k(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(ke.W,{id:t.id,childComponent:Se,childProps:{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!1,canToggle:!S(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Ne.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:I,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),P&&D.map((function(t){return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Ne.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},I),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Ve=n(11518),_e=n(56752),Ge=n(73679);const Re="k2Xse";function He(e){return a.createElement("div",{className:"".concat(Re," 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(_e.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,responsiveText:!1,hideDay:!0})))}function Be(e){var t=e.data,n=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Re," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Ge.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:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(He,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:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})})):a.createElement(He,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){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return se.e.SpecialEvents[e.id]},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:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function ze(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ze(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 Ze(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ye=_.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=ze(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(ze(t.events),[e.event])}))}else f.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<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ye("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ye("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ye("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Ze(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(w),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),r=e.contentType===j.VH.Livestream?{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(Ve.kM,{id:e.id,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:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,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):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,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:i,childComponent:Be,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var $e=n(39202),Ke=n(72431),Xe=n(37963);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Je=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Xe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===j.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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(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="eo8oY";return o.type===j.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Ke.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,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,isPlugin:e.isPlugin}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n,i=De.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(C.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(et," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":tt),analyticsData:{url:$e.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{id:e.id,type:j.l9.Row,contents:O.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:Je,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,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function it(e){return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"".concat("TzZuL"," ").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:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(at.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===rt.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ct(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 st=n(75896);const ut="iCyo4",dt="cgv_6";function mt(e){var t,n,i,r,o,l,s=(0,A.k)(),u={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(C.F,{appLink:function(){var t,n,a=st.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:u},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ut),style:{backgroundImage:"url('".concat((l=st.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:d.__.Banners},{size:d.h2.Large})),"')")}},e.name&&a.createElement("div",{className:dt},a.createElement("p",{className:(o="text-white clamp-2",s.xs||s.sm?o+=" h4":s.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ut)},a.createElement("div",{className:"".concat(dt)}))}function vt(e){return vt="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},vt(e)}function ft(e,t,n){return(t=function(e){var t=function(e){if("object"!=vt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt,ht,yt;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(gt||(gt={})),function(e){e.Dark="dark",e.White="white"}(ht||(ht={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(yt||(yt={})),gt.H1,gt.H2,gt.H3,gt.H4,gt.H5,gt.H6,ht.Dark,ht.White,yt.NewWindow;var bt=ft(ft(ft(ft({},yt.NewWindow,v.vn.NewWindow),yt.TopicDirectory,v.vn.Grid),yt.TopicNewReleases,v.vn.Sparkle),yt.CuratedTopic,v.vn.Rectangles),Et=ft(ft(ft(ft(ft(ft(ft(ft({},gt.H1,"h1"),gt.H2,"h2"),gt.H3,"h3"),gt.H4,"h4"),gt.H5,"h5"),gt.H6,"h6"),ht.Dark,"text-dark"),ht.White,"text-white");const wt="b5ljD",kt="dj_1H",Lt="UBcVE",xt="fGBlR",Ct="lkPfM";function Tt(e){var t,n,i,r=Et[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||gt.H6],o=Et[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||ht.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(kt," ").concat(Lt," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Ct," ").concat(e.widgetTypeId===de.z.Blurb?Lt:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(z.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function St(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(z.h,{svgName:bt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function Nt(e){return a.createElement(C.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(St,{cta:e.cta}))))}function Ot(e){var t,n,i,r=st.m.first(e.content),o={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(Nt,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:d.__.Banners},{size:d.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function jt(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget};return a.createElement(C.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(kt," ").concat(xt),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(Ct," ").concat(xt," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",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(st.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Dt(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(Tt,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(jt,Object.assign({},e,{content:e.content}));default:return a.createElement(Ot,Object.assign({},e,{content:e.content}))}}function Pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Ct)}))}function At(e){var t,n,i=st.m.first(e.content),r=(0,A.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Nt,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function It(e){var t,n,i,r,o,l,s,u=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in u&&p.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:d.h2.Medium}),v="metadata"in u&&(null===(i=u.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Nt,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,u),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:_.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(Dt,Object.assign({},e))}var Ft=n(45716),Mt=n(2158),Ut=n(38304),Vt=n(40782),_t=n(64818);var Gt="widgets.onboardingSteps",Rt=_.T.encloseNamespace(Gt);function Ht(e){var t,n,i,r,o,l,d,m,p=(0,Mt.T)(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),f=p.getPathway,g=p.hasLoadedPathway,h=g&&f(),y=_t.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||g&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Oe.C.ViewOnboarding)&&!h.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var b=function(){if(e.isPreviewing)return{};var t=Ft.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:Ut.m.getProgress(h)},Ut.m.getOnboardingScreenStates(h))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Ut.m.getProgress(h);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),w=E.overallPercentage,k=E.totalScreens,L=E.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(Vt.O,{percentage:Math.round(w)/100,layout:Vt.I.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(r=Ft.H["select-videos"])||void 0===r?void 0:r.getWidgetHeading(y):null===(o=Ft.H[h.currentScreen])||void 0===o?void 0:o.getWidgetHeading(y)),a.createElement("div",{className:"dTKo5"},a.createElement(s.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=Ft.H[e];return t===n?"".concat(Rt("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Rt("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Rt("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":h.currentScreen,L,k,y))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(l=e.imageUrls)||void 0===l?void 0:l.onboardingTeacherBackground,"')")}},a.createElement(C.F,{appLink:null===(m=null===(d=e.appLinks)||void 0===d?void 0:d.onboardingStep)||void 0===m?void 0:m.call(d,null==h?void 0:h.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:b,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Gt,phrase:"completeSetup"}))))}function Bt(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 zt=n(17082),Zt=n(31908),Wt=n(80835);function Yt(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=zt.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,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:j.l9.LargeRow,contents:O.z.Videos,collection:g,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?_.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):""},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function qt(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 $t=n(38446);function Kt(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==de.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=me.i.getCounts(e.classification).childDashboardNewVideoCount;return t?a.createElement("div",{className:"ms-2"},a.createElement($t.A,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Xt(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=zt.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,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:j.l9.Row,contents:O.z.Videos,collection:g,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?_.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):""},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Kt,Object.assign({},e))})}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Jt=n(34004);function en(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}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Series,descriptor:c._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?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Jt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function tn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:en,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},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})}const nn="fgIje",an="CJwKL";var rn=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?nn:an," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function on(e){for(var t,n,i=(t=e.type,(n=(0,A.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(rn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(P.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var ln=n(75163),cn=n(5465);function sn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(nn):t+=" ".concat(an),t)},a.createElement(ln.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:d.__.TallPosters,preload:i,imageOptions:{size:d.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(cn.oy,{type:cn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function un(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:sn,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})}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var mn="explore-all-topics";function pn(e){var t,n=function(e){var t,n,a,i,r;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)===j.OL.ExploreAllTopics?mn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=De.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return dn(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 dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(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:sn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===mn?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===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function vn(e){var t;return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:en,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var fn=n(57900),gn=n(2948),hn=n(96953),yn=n(10038),bn=n(16951),En=n.n(bn),wn=n(38946);function kn(e){return kn="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},kn(e)}function Ln(){Ln=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==kn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(kn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var xn,Cn=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(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())}))},Tn="markdown-link",Sn=new wn.M2,Nn=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,On=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;Sn.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:function(e){for(var t,n=e;n;){if(-1===(t=n.indexOf("$")))return;if((0===t||" "===n.charAt(t-1))&&n.substring(t).match(Nn))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(Nn);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return xn?xn.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(On);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return xn?xn.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return Cn(void 0,void 0,void 0,Ln().mark((function t(){var a,i;return Ln().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("inlineKatex"!==e.type&&"blockKatex"!==e.type){t.next=6;break}return t.next=3,Promise.all([n.e(6510),n.e(5060)]).then(n.bind(n,15060));case 3:a=t.sent,i=a.katex,xn=i;case 6:case"end":return t.stop()}}),t)})))}});var jn={isLink:function(e){return e.classList.contains(Tn)},parse:function(e,t){return Cn(this,void 0,void 0,Ln().mark((function n(){var a;return Ln().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return","");case 2:return n.next=4,Sn.parse(e,{renderer:jn.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",En().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new Sn.Renderer;return t.heading=function(e){var t=e.text,n=e.depth;return"<h".concat(n,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n],'">').concat(t,"</h").concat(n,">")},t.link=function(t){var n=t.href,a=t.text,i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(Tn,'" ').concat(i,">").concat(a,"</a>")},t.list=function(e){var t=e.ordered?"ol":"ul";return"\n <".concat(t,' class="').concat("jGiRj",'">\n ').concat(e.items.map((function(e){return"<li>".concat(e.text,"</li>")})).join(""),"\n </").concat(t,">\n ")},t}};function Dn(e){return Dn="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},Dn(e)}function Pn(){Pn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Dn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Dn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(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 In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Fn="1.2rem";function Mn(e){var t=An((0,gn.D)("should:expand:".concat(e.id),e.isBot,{storage:fn.Z1.LocalStorage}),2),n=t[0],i=t[1],r=An(a.useState(n?"100%":Fn),2),o=r[0],u=r[1],d=An(a.useState(!n),2),m=d[0],p=d[1],f=An(a.useState(null),2),g=f[0],h=f[1],y=(0,hn.F)(),b=a.useRef(null),E=a.useRef(null),w=a.useRef(null);function k(){u(Fn),i(!1),b.current=window.setTimeout((function(){p(!0)}),500)}return a.useEffect((function(){!function(){var t,a,i,r;t=this,a=void 0,i=void 0,r=Pn().mark((function t(){var a;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jn.parse(e.answer,{focusableLinks:n});case 2:if(a=t.sent,y.current){t.next=5;break}return t.abrupt("return");case 5:if(null!==g){t.next=8;break}return h(a),t.abrupt("return");case 8:if(g!==a){t.next=10;break}return t.abrupt("return");case 10:g&&n&&k(),h(a);case 12:case"end":return t.stop()}}),t)})),new(i||(i=Promise))((function(e,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function l(e){try{c(r.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,a||[])).next())}))}()}),[e.answer]),a.useEffect((function(){"100%"===o&&w.current&&u(w.current.clientHeight+"px")}),[o]),(0,yn.H)((function(){n&&k()}),null,[n]),e.question&&g?a.createElement(Ee.L,{className:"".concat("r4X_X"," rounded-3"),onClick:function(t){var a;jn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:n?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionWidget})),n?k():((a=document.createElement("p")).innerHTML=g,a.style.visibility="hidden",E.current.appendChild(a),u("".concat(a.clientHeight,"px")),E.current.removeChild(a),i(!0),window.clearTimeout(b.current),p(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?v.vn.Minus:v.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:"dVLkj",style:{height:o}},a.createElement("p",{className:"mb-0 ".concat(m?"clamp-1":""),dangerouslySetInnerHTML:{__html:g},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function Un(e){var t=st.m.first(e.content),n=t.question,i=t.answer;return a.createElement(Mn,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const Vn="Jg3am";function _n(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(Vn," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function Gn(e){return Gn="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},Gn(e)}function Rn(){Rn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Gn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Gn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(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 Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var zn=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(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())}))};function Zn(e){var t,n,i,r=Hn((0,gn.D)("should:expand:".concat(e.id),e.isBot,{storage:fn.Z1.LocalStorage}),2),o=r[0],u=r[1],d=Hn(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=Hn(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,hn.F)();function w(){var t;return zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),u(!1),n.next=4,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,E.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,yn.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(i=e.faq)||void 0===i?void 0:i.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(Ee.L,{onClick:function(t){jn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:o?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget}),o?w():function(){var t;zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),u(!0),n.next=4,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(Vn)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0})))}function Wn(e){return e.content.length?a.createElement(a.Fragment,null,a.createElement("h2",{className:"curated-widget-heading"},e.name),a.createElement("ul",{className:"list-unstyled mb-n2"},e.content.map((function(t,n){return a.createElement("li",{className:"mb-2",key:n},a.createElement(Zn,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}var Yn=n(83616);function qn(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(Yn.Z.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:Yn.Z.partialIcon},a.createElement(cn.oy,{type:cn.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var $n=n(30662);function Kn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Xn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Kn,null),a.createElement(Kn,null))}var Qn=n(3626);function Jn(e){var t,n,i,r,o,l,c,s=st.m.first(De.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(Qn.J,{video:s,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,s),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,showNewVideoIndicator:null===(c=e.settings)||void 0===c?void 0:c.hasTopicDirectories}))}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ta(e){var t,n,i={};return e.data.fallbackBackgroundColor&&(i.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(i.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(i.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("gKcbE"," ").concat(e.isLarge?"Ldth1":"z6ZxE"),style:i},a.createElement("div",{className:"".concat("aOotU"," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat("w5WZ1")},e.data.preTitle&&e.data.preTitle.length&&a.createElement("p",{className:"".concat("ReAEa"," mb-1 text-white"),title:e.data.preTitle},e.data.preTitle),a.createElement("p",{className:"".concat("bSXFz"," h3 text-shadow ").concat(e.isLarge||(null===(t=e.data)||void 0===t?void 0:t.preTitle)?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("XjSFw")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"c28_J"},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},(null===(n=e.data)||void 0===n?void 0:n.buttonText)||_.T.getPhrase("shared.thumbnailWidgetItem","buttonLabel")))),!e.data.thumbnailUrl&&!!e.data.coverUrl&&a.createElement("div",{className:"".concat("liG0R"),style:{backgroundImage:"url('".concat(e.data.coverUrl,"')")}}))}var na=a.memo((function(e){return e.appLink?a.createElement(C.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(ta,Object.assign({},e))):a.createElement(ta,Object.assign({},e))})),aa=n(2284),ia=_.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function ra(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(M.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(na,Object.assign({},function(e){var t,n,a,i,r,o,l,s,u,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===aa.W.ComingSoon,f=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!v}),g=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return Object.assign(Object.assign({},m),{data:Object.assign(Object.assign({},m.data),{backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium}),buttonText:ia("exploreTopic")}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const oa="HwejH";var la=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"}}))},ca=n(22843),sa=n(60318),ua=n(68626),da=n(80143);function ma(e){var t,n,i,r,o,l,s,u,m,p=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),v=Zt.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),f=a.useRef(null),g={actionType:c.Vw.Click,entity:Zt.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},h=(0,da.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:f},a.createElement(Ke.u,{analyticsData:e.analyticsData,analyticsOptions:g,video:e.video,appLink:p,imageOptions:{size:d.h2.Medium},textPosition:ua.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:h,hideRating:!!h,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(ca.h,{video:e.video,appLink:p,subTextAppLink:v,yearGroups:e.yearGroups,subTextType:e.subTextType,showNewVideoIndicator:null===(l=e.settings)||void 0===l?void 0:l.hasTopicDirectories}),Zt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(sa.u,{getClassroomGuideAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.classroomGuide,getResourceGuidanceAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.resourceGuidance,getInteractiveGuidanceAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function pa(e){var t=De.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(ma,Object.assign({key:t.id,video:t},e))}))))}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var fa=n(4594),ga=n(45778);function ha(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([de.z.SearchRelevantTopics,de.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==de.z.TrendingClassifications&&e.widgetTypeId!==de.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var i="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,r=function(e){var t,n,a,i,r,o,l,s,u,m,v,f,g={data:{name:e.item.name,description:e.item.description}};if(ga.G.isType(e.item,fa.E.Subject)){var h=(null===(t=e.item)||void 0===t?void 0:t.status)===aa.W.ComingSoon,y=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!h}),b=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),E=e.widgetTypeId===de.z.SearchRelevantTopics&&function(e,t){if(e&&t){var n=t.find((function(t){return t.id&&t.id===e.presentationId}));if(n)return n.name}}(e.item,e.availablePresentations);return Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{preTitle:E,backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium})}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),analyticsData:y,analyticsOptions:b})}return ga.G.isType(e.item,fa.E.Company)?Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{coverUrl:p.j.createUrl(null===(m=e.item.cover)||void 0===m?void 0:m.url,{size:d.h2.Small})}),appLink:null===(f=null===(v=e.appLinks)||void 0===v?void 0:v.company)||void 0===f?void 0:f.call(v,e.item)}):g}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:i,availablePresentations:e.availablePresentations});return a.createElement(M.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(na,Object.assign({},r)))}))))}function ya(e){var t,n,i,r,o,l,s=st.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return u&&m?a.createElement(a.Fragment,null,a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},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"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||_.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(mt,Object.assign({},e))}var ba=n(11882),Ea=n(29598);function wa(e){var t,n,i,r,o,l,s,u,m,p,v,f,g,h=st.m.first(De.d.getVideoContent(e.content)),y=a.useRef(),b=(0,da.n)(null===(t=h.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=Zt.M.hasSeries(h)||De.d.isCompanyWidget(e.widgetTypeId),w={actionType:c.Vw.Click,entity:Zt.M.getAnalyticsEntity(h),location:c.LZ.ThumbnailHeroMediaWidget},k=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,L=Zt.M.getCanBeConsumed(h).canNavigate;return h?a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{ref:y},a.createElement(Ke.u,{video:h,imageOptions:{size:d.h2.Large},type:"static",textPosition:ua.z.Independent,analyticsOptions:w,audience:b,hideRating:!!b,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,h,{}),subTextAppLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.subText)||void 0===l?void 0:l.call(o,h),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Zt.M.isVideo(h)&&a.createElement(ba.$,{type:De.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:h,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===u?void 0:u.call(s,h),analyticsOptions:w,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"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,h,{}),analyticsData:{id:h.id,name:h.name},analyticsOptions:Object.assign(Object.assign({},w),{descriptor:c._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement(Ea.O,{video:h,yearGroups:e.yearGroups,showNewVideoIndicator:k,titleSize:"h4",className:"mb-0"})))),Zt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(sa.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:h,analyticsData:e.analyticsData,analyticsOptions:w,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function ka(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink: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)})}function La(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink: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)})}var xa=n(74237),Ca=n(26733),Ta=n(89076);function Sa(e){return Zt.M.isVideoType(e.data)?a.createElement(Ta.b,Object.assign({},e)):a.createElement(Ca.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),xa.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Na(e){var t,n,i,r=e.hasLocalPermissions(Oe.E.ViewVideoResourceItems);return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Sa,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,getSubTextAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,subTextType:"series",isPlugin:e.isPlugin},getChildAppLink:function(t){var n,a,i,o;return Zt.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Oa=n(74696),ja=_.T.encloseNamespace("search.searchExchangeArchiveDescription");function Da(e){return a.createElement(a.Fragment,null,ja("searchExchangeArchiveDescription")," ",a.createElement(C.F,{appLink:e.appLink,className:"info-link"},ja("searchExchangeArchiveLink")))}var Pa=n(13231);function Aa(e){var t,n,i,r,o;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(Da,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[de.z.SearchExchangeArchive,de.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(Pa.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a,i;return"series"===e.subTextType?null===(n=e.appLinks)||void 0===n?void 0:n.series(null==t?void 0:t.series):"productionCompany"===e.subTextType?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.company)||void 0===i?void 0:i.call(a,t):void 0},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,canFavourite:e.canFavourite,setFavourite:e.setFavourite,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,companyLogoFallbackUrl:e.companyLogoFallbackUrl,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video},getAnalyticsData:e.getAnalyticsData}))}var Ia=n(12754),Fa=n(20710);function Ma(e){function t(t){var n,a,i;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var r=null===(i=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===i?void 0:i.id;return e.appLinks.folder(t,{libraryId:r})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(r):{};return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Fa.y,{folder:i,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}var Ua=n(36202);function Va(e){return Va="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},Va(e)}function _a(e,t,n){return(t=function(e){var t=function(e){if("object"!=Va(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Va(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ga,Ra=_.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function Ha(e){var t=_a(_a({},fa.E.Playlist,Ra("playlist")),fa.E.Series,Ra("series")),n=_a(_a({},fa.E.Playlist,Ra("viewPlaylist")),fa.E.Series,Ra("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o,l=(o=i,ga.G.isType(o,fa.E.Playlist)?e.appLinks.playlist(o):ga.G.isType(o,fa.E.Series)?e.appLinks.series(o):void 0),s=t[null==i?void 0:i.typeId],u=n[null==i?void 0:i.typeId];return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Ua.I,{collection:i,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(r),title:null==i?void 0:i.name,titleAppLink:l,imageOptions:{size:d.h2.Small},subText:s,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function Ba(e){return Ba="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},Ba(e)}function za(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ba(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ba(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Za=(za(za(za(za(za(za(za(za(za(za(Ga={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return wa},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(Xn,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListLarge,{getComponent:function(){return tn},partialLoading:function(e){var t,n,i=(t=(0,A.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return Qt(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 Qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(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.")}()).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("hMoHO"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return un},partialLoading:function(){return a.createElement(on,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case de.z.CuratedClassifications:return pn;case de.z.CuratedSeries:return vn;default:return pn}},partialLoading:function(){return a.createElement(on,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ia.x.StreamableLearning)return!1;switch(n){case de.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case de.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),ue.f.ThumbnailFeaturedMedia,{getComponent:function(){return Jn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(F.Z,null,a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(M.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(Xn,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return I.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(U.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return $n.q},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(qn,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),ue.f.CoverFixedPillListXSmall,{getComponent:function(){return ne},partialLoading:function(){return a.createElement("div",{className:"".concat(te.background," 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(F.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(M.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:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:U.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ia.x.StreamableLearning?n!==de.z.Classifications&&[j.ku.Discover,j.ku.Company,j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),za(za(za(za(za(za(za(za(za(za(Ga,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return nt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(et," ").concat(tt," mb-1 ")}),a.createElement(Ve.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return mt},partialLoading:pt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Ht},partialLoading:pt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return Dt},partialLoading:Pt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Pt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return At},partialLoading:function(){return a.createElement(Pt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return ya},partialLoading:function(){return a.createElement(pt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return ra},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ea(e)}(t=Array(2))||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 ea(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ea(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.")}();return a.createElement("div",null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(M.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return ha},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return va(e)}(t=Array(3))||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 va(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(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.")}();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(M.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:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Ue},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(F.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(U.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),za(za(za(za(za(za(za(za(za(za(Ga,ue.f.Heading,{getComponent:function(){return ct},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:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return w},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return Un},partialLoading:function(){return a.createElement("div",{className:"".concat("QrLg2"," rounded-3")},a.createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.5rem",width:"75%"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"100%"}}))},icon:v.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return Wn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"2rem",width:"30%"}}),a.createElement("div",{className:"mb-n2"},a.createElement(_n,null),a.createElement(_n,null),a.createElement(_n,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return pa},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(oa," partial-loading-background rounded-3")}),a.createElement(la,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Xn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(oa," partial-loading-background rounded-3")}),a.createElement(la,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Xn,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Yt},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",childComponent:Bt,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Xt},partialLoading:function(e){return a.createElement(Ve.j7,{size:"sm",childComponent:qt,name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription,hideHeading:e.hideHeading})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):t===j.ku.Classification?a:[j.ku.MoviesAndTv,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,A.k)();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return lt(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 lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(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 px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return D},partialLoading:function(e){var t=8,n=(0,A.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).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:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,A.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).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:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),za(za(za(za(za(za(Ga,ue.f.ThumbnailVerticalList,{getComponent:function(){return Aa},partialLoading:function(){return a.createElement(Oa.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Na},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return Ha},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return Ma},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return La},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return ka},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Wa=n(65294);const Ya={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function qa(e,t){if(e){if("string"==typeof e)return $a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$a(e,t):void 0}}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ka(e){var t,n,o,l,c,s,u=a.createRef(),d=(c=a.useState([]),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,s)||qa(c,s)||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],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,Wa.Y)({prevent:!v}),g=f.ref,h=f.inView,y=i.q.isFunction(e.getContentRequest),b=r.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),E=De.d.useGetContent(e.content||(null===(n=b.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=b.data)||void 0===o?void 0:o.preferences,m).content,w=(0,A.k)(),k=function(e,t){return!(De.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,E),L=!De.d.canDisplayOnScreenSize(w,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;y&&!b.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,k||L)}),[b.hasCompleted,k,L,y,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,u.current]);var x=e.appLinks?Object.assign({},e.appLinks):null;(null==x?void 0:x.videoType)&&(x.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var C=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}),T=y&&!b.hasCompleted||e.isEditing&&k,S=Za[e.templateId].partialLoading,N=Za[e.templateId].getComponent(e.widgetTypeId),O=Za[e.templateId].className;return T||!k&&!L?a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:u,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Ya.widgetHighlight," py-2 px-3 rounded-3"):""},De.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Ya.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),T?a.createElement("div",{ref:g},a.createElement(S,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(N,Object.assign({},e,{appLinks:x,content:E,preferences:null===(l=b.data)||void 0===l?void 0:l.preferences,analyticsData:C,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return p([].concat(function(e){return function(e){if(Array.isArray(e))return $a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qa(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.")}()}(m),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}})))):a.createElement(a.Fragment,null)}},80835:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),i=n(91967),r=n(72431),o=n(68626),l=n(79967),c=n(80143),s=n(40424),u=n(31908);var d=a.memo((function(e){var t,n=e.data,d=e.getSubTextAppLink,m=e.context,p=e.thumbnailSize,v=e.preloadImage,f=e.presentationAudiences,g=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,h=(0,c.n)(g,f),y=(0,l.k)(),b="JSM4l";return m.type===s.l9.LargeRow&&(b="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(b)},a.createElement(r.u,{type:e.preventPopout||y.xs?"static":"popout",textPosition:o.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:u.M.isVideo(n)&&(null==d?void 0:d(n)),imageOptions:{size:p},preload:v,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:h,hideRating:!!h,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.getClassroomGuideAppLink,showNewVideoIndicator:e.showNewVideoIndicator,onClickRemove:i.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip}))}))},26733:(e,t,n)=>{n.d(t,{s:()=>k,R:()=>L});var a=n(32735),i=n(39202),r=n(49985),o=n(65858),l=n(36848),c=n(11607),s=n(75891),u=n(83914),d=n(60995),m=n(36532),p=n(61150),v=n(71063),f=n(4594),g=n(1164),h=n(79967),y=n(45778),b=n(54297),E=n(35223);const w={imageStyle:"I9E5O",item:"tqUFn",dashboard:"o7j7p",playPage:"V2RwX",aspectRatio:"OnJDH",outerContainer:"CIFy7",innerContainer:"oUZPD",actions:"jzGAm",titleBelow:"Cpjs3",thumbnailContainer:"EDiGi",titleAbove:"e9ejn",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL",download:"fbb_e"};function k(e){var t,n,i,r,o=null;"metadata"in e.data&&(o=e.data.metadata);var l=y.G.isType(e.data,f.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:w.aspectRatio},a.createElement("div",{className:w.outerContainer},a.createElement("div",{className:function(t){var n,a="\n d-flex flex-column align-items-center justify-content-end rounded-3 h-100\n position-relative ".concat(function(e){switch(e){case"atom-guide":return w.atomGuide;case"student-activity":return w.studentActivity;case"teacher-pack":return w.teacherPack;case"additional-materials":return w.additionalMaterials;default:return w.userUploaded}}(t)," ").concat(w.innerContainer);return(null===(n=e.theme)||void 0===n?void 0:n.containerClass)?a+=" ".concat(e.theme.containerClass):a+=" pt-3 px-3",e.applyHoverState&&(a+=" ".concat(w.hoverState)),a}(null==o?void 0:o.resourceType)},"above"===e.titlePosition&&a.createElement(m.u,{title:e.data.name},a.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(w.text)},a.createElement("span",{className:"clamp-1"},e.data.name))),a.createElement("div",{className:"\n ".concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.thumbnailContainerClass)&&void 0!==n?n:""," w-75 overflow-hidden \n ").concat(w.thumbnailContainer," ").concat("above"===e.titlePosition?w.titleAbove:""," \n ").concat(w.imageStyle,"\n ")},a.createElement(s.C,{resource:e.data,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.imageErrorFallbackUrl,preloadImage:e.preloadImage})),l&&e.onClickDownload&&"normal"===e.actionBehaviour&&a.createElement("div",{className:w.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(w.download," d-flex align-items-center justify-content-center")},a.createElement(u.x,{svgName:E.vn.Download}))),!e.hideTypeBadge&&l&&a.createElement(p.y,{typeId:f.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(w.titleBelow)},y.G.isType(e.data,f.E.Resource)&&!!(null===(r=null===(i=e.data)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.resourceType)&&a.createElement(d.m,null,b.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}k.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var L=a.memo((function(e){var t,n,c,s,u=(t=e.data,n=e.actionBehaviour,s=(0,h.k)(),"public"===n||!s.xs&&!s.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===g.L.Image||(t.metadata.type===g.L.Pdf?!!t.url:!!(null===(c=t.pdf)||void 0===c?void 0:c.url)))),d=Object.assign(Object.assign({},e.analyticsData),e.data),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:o.Vw.Click,entity:e.data.typeId===f.E.Resource?o.py.Resource:o.py.Link});function p(){r.k.logUserAction(d,m)}var y,b=Object.assign(Object.assign({},e),{applyHoverState:u||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(w.item," ").concat("play-page"===e.location?w.playPage:w.dashboard," ").concat(v.M.RESOURCE_ITEM_SELECTOR)},(y="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:y,onClick:p},a.createElement(k,Object.assign({},b))):u?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(y," cursor-pointer d-inline"),onClick:function(){p(),i.C$.trigger(e.getAppLink(e.data))}},a.createElement(k,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:y,analyticsData:d,analyticsOptions:m},a.createElement(k,Object.assign({},b))):e.data.url?a.createElement("a",{href:e.data.url,className:y,onClick:p},a.createElement(k,Object.assign({},b))):a.createElement("div",{className:y},a.createElement(k,Object.assign({},b)))))}))},89076:(e,t,n)=>{n.d(t,{b:()=>c});var a=n(32735),i=n(72431),r=n(68626),o=n(80143),l=n(31908);var c=a.memo((function(e){var t,n,c,s=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,u=(0,o.n)(s,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(i.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:l.M.isVideo(e.data)&&(null===(c=e.getSubTextAppLink)||void 0===c?void 0:c.call(e,e.data.series)),imageOptions:{size:e.thumbnailSize},preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,subTextType:e.subTextType,textPosition:r.z.Below,audience:u,hideRating:!!u,hideDuration:!1,isPlugin:e.isPlugin}))}))},94892:(e,t,n)=>{n.d(t,{T:()=>i,i:()=>a});var a={HIGH:.75,MODERATE:.5},i={HIGH:.7,MODERATE:.7}},73814:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r,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,i),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}}},84231:(e,t,n)=>{n.d(t,{Z:()=>a});const a={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},62712:(e,t,n)=>{n.d(t,{Z:()=>a});const a={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",xsCircleContainer:"RPqZ2",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"}},82602:(e,t,n)=>{n.d(t,{WU:()=>s});var a=["second","minute","hour","day","week","month","year"],i=["秒","分钟","小时","天","周","个月","年"],r={},o=function(e,t){r[e]=t},l=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var s=function(e,t,n){var a=function(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}(e,n&&n.relativeDate);return function(e,t){for(var n=e<0?1:0,a=e=Math.abs(e),i=0;e>=l[i]&&i<l.length;i++)e/=l[i];return(e=Math.floor(e))>(0==(i*=2)?9:1)&&(i+=1),t(e,i,a)[n].replace("%s",e.toString())}(a,function(e){return r[e]||r.en_US}(t))};o("en_US",(function(e,t){if(0===t)return["just now","right now"];var n=a[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]})),o("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var n=i[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}))}}]);
3
- //# sourceMappingURL=2205-7596edf3ff-lite.chunk.js.map
1
+ /*! For license information please see 2205-3e7a8f1a6b-lite.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[2205],{2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),i=n(2948),r=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(1666),u=n(5112),d=n(61699),m=n(31949),p=n(22902),v=n(37802),f=n(75795),g=n(33857);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function y(e){var t,n,y,b,E=(y=(0,i.D)("has:playlist",null),b=2,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(y,b)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(y,b)||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.")}()),w=E[0],k=E[1],L=r.a.useBasicFetch(m.N.currentUser()),x=r.a.useBasicFetch((null===(t=L.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.user(L.data.id)),C=r.a.useBasicFetch((null===(n=L.data)||void 0===n?void 0:n.isAuthenticated)&&s.h.customer(L.data.customerId)),T=r.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),S=r.a.useBasicFetch(c.x.presentation(l.R.Subject)),N=r.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),O=r.a.useBasicFetch(u.C.getUserPlaylists(new g.l)),j=r.a.useBasicFetch(d.o.mySubjectPreferences()),D=(0,p.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;O.hasCompleted&&w!==!!(null===(t=null===(e=O.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&k(!!(null===(a=null===(n=O.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[O.hasCompleted]);var P=L.hasCompleted&&x.hasCompleted&&C.hasCompleted&&T.hasCompleted&&N.hasCompleted&&S.hasCompleted&&O.hasCompleted&&j.hasCompleted&&null!==w,A=(0,v.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=x.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=i.preferredPresentationOverride||S.data;return P?o.m.getOnboardingPathway({jobTitle:r,userSettings:A.data,presentations:T.data,curriculums:N.data,preferredSubjects:j.data,preferredPresentation:l,appLink:f.O.getCurrentRoute().appLink,appLinks:e,masterUser:x.data,customer:C.data,hasPlaylist:w,hasPermissions:D,currentUser:L.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:P}}},91200:(e,t,n)=>{n.d(t,{Y:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(84231);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function c(e){var t,n=function(e){if(Array.isArray(e))return l(e)}(t=Array(e.numItems))||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 l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(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.")}(),c=e.itemClassName||"";return a.createElement(a.Fragment,null,e.showHeading&&a.createElement("div",{className:"".concat(o.Z.partialHeading," mb-1 partial-loading-background")}),a.createElement(i.Z,{className:"mx-n1 mb-n2"},n.map((function(e,t){return a.createElement(r.Z,{key:t,xs:6,sm:4,lg:3,className:"".concat(c," px-1 pb-2")},a.createElement("div",{className:"".concat(o.Z.playlistItem," partial-loading-background rounded-3")}))}))))}c.defaultProps={numItems:8}},23162:(e,t,n)=>{n.d(t,{t:()=>C});var a=n(32735),i=n(82602),r=n(23481),o=n(110),l=n(65858),c=n(83345),s="playlists.playlistCount";function u(e){var t=function(e){var t,n,a,i,r,o;return!!e&&(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==n?n:0)+(null!==(i=null===(a=e.interactives)||void 0===a?void 0:a.count)&&void 0!==i?i:0)+(null!==(o=null===(r=e.clips)||void 0===r?void 0:r.count)&&void 0!==o?o:0)}(e.playlist);return!1===t||Number.isNaN(t)?a.createElement(a.Fragment,null):a.createElement("span",{className:"text-shadow font-size-sm"},a.createElement(c.x,{namespace:s,phrase:"count",options:{smartCount:t}}))}var d=n(20789),m=n(89725),p=n(64818);function v(e){var t,n,i,r=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return a.createElement(m.F,null);if(!(null==r?void 0:r.id)||!(null===(n=e.currentUser)||void 0===n?void 0:n.id))return a.createElement(a.Fragment,null);if(r.id.toString()===e.currentUser.id.toString())return a.createElement(a.Fragment,null);var o="string"==typeof r.avatar?r.avatar:null===(i=r.avatar)||void 0===i?void 0:i.url;return a.createElement(d.q,{imageUrl:o,imageCdnUrl:e.imageCdnUrl,initials:p.l.getInitials(r.name,r.surname)})}var f=n(36848),g=n(40955),h=n(75163),y=n(5465),b=n(54610),E=n(80143),w=n(9085),k=n(67453),L=n(84231),x="playlists.playlistList";function C(e){var t,n,c=k.j.createUrl(e.data.cover&&e.data.cover.url,{size:b.h2.Medium,resizeType:b.Nq.Cover}),s=e.data.subjectPresentationAudiences&&e.data.subjectPresentationAudiences.data,d=(0,E.n)(s,e.presentationAudiences),m=L.Z.playlistItem,p=!!c||!!e.showFallbackImage;p&&(m+=" ".concat(L.Z.playlistItemGradient)),!p&&e.bgColourClassNames&&(m+=" ".concat(L.Z.playlistItem," ").concat((0,w.x)(e.data.name,e.bgColourClassNames))),"round"===e.itemStyle&&(m+=" rounded-3 overflow-hidden"),"round-left"===e.itemStyle&&(m+=" rounded-start-lg overflow-hidden");var C=Object.assign(Object.assign({},e.analyticsData),{id:null===(t=e.data)||void 0===t?void 0:t.id,name:null===(n=e.data)||void 0===n?void 0:n.name}),T=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Playlist});return a.createElement(f.F,{appLink:e.appLink,analyticsData:C,analyticsOptions:T,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":r.T.getPhrase(x,"lastUpdated",{timeago:(0,i.WU)(o.O.convertUTCToLocal(e.data.contentModifiedDate))})}()},a.createElement(h.Z,{data:c,alt:e.data.name,className:m},!!e.showFallbackImage&&a.createElement(y.oy,{type:y.mS.Playlist}),a.createElement("div",{className:"text-white ".concat(L.Z.playlistMetadata)},!!e.showCount&&a.createElement(u,{playlist:e.data}),a.createElement("h5",{className:"mb-0 ".concat(e.titleClassName||"")},a.createElement("span",{className:"text-shadow clamp-2"},e.data.name)),!!s&&!!s.length&&!!d&&a.createElement(g.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:d,border:"white"})),!!e.showOwner&&!!e.imageCdnUrl&&a.createElement("div",{className:L.Z.ownerAvatarContainer},a.createElement(v,{playlist:e.data,currentUser:e.currentUser,imageCdnUrl:e.imageCdnUrl}))))}C.defaultProps={itemStyle:"square"}},31273:(e,t,n)=>{n.d(t,{P:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(65858),l=n(23162),c={actionType:o.Vw.Click,entity:o.py.Playlist,location:o.LZ.PlaylistListItem,descriptor:o._S.Cover};function s(e){return a.createElement(i.Z,{as:"ul",className:"list-unstyled mx-n1"},e.extraPlaylistItem&&a.createElement(r.Z,{as:"li",key:"extra-playlist-item",xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},e.extraPlaylistItem),e.playlists.map((function(t){return a.createElement(r.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"mb-2 px-1 ".concat(e.itemContainerClassName?e.itemContainerClassName:"")},a.createElement(l.t,{data:t,appLink:e.getPlaylistAppLink(t),imageCdnUrl:e.imageCdnUrl,currentUser:e.currentUser,presentationAudiences:e.presentationAudiences,bgColourClassNames:e.bgColourClassNames,showCount:e.showCount,showOwner:e.showOwner,showFallbackImage:e.showFallbackImage,titleClassName:e.itemTitleClassName,itemStyle:e.itemStyle,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),c)}))})))}},98981:(e,t,n)=>{n.d(t,{YA:()=>a.Y,tN:()=>i.t});var a=n(91200),i=(n(31273),n(23162))},3626:(e,t,n)=>{n.d(t,{J:()=>w});var a=n(32735),i=n(68050),r=n(69111),o=n(49985),l=n(65858),c=n(40955),s=n(18559),u=n(17464),d=n(72431),m=n(60318),p=n(85784),v=n(70872),f=n(11882),g=n(54610),h=n(68626),y=n(80143),b=n(31908);const E={partialHeroThumbnail:"z0_Sm",partialSeriesText:"xuWtC",partialVideoTitleText:"fXYdC",partialBadge:"FlUpr",partialDescription:"YgWxP",partialSubject:"QBKwQ",partialHeading:"S__E9",guidance:"Ax9h2",responsiveGuidance:"s3W_4",description:"zejMP",details:"MRyVe"};function w(e){var t,n=e.video,w=e.presentationAudiences,k=e.getVideoAppLink,L=e.subTextAppLink,x=e.hideInteractiveBadge,C=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,T=(0,y.n)(C,w),S=o.k.mergeOptions(e.analyticsOptions,{location:l.LZ.ClassificationHero,entity:b.M.getAnalyticsEntity(n)}),N=a.useRef();return n?a.createElement(i.Z,null,a.createElement(r.Z,{xs:12,md:6},a.createElement("div",{ref:N},a.createElement(d.u,{analyticsData:e.analyticsData,analyticsOptions:S,video:n,appLink:null==k?void 0:k(e.video,{}),imageOptions:{size:g.h2.Medium},textPosition:h.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:"thumbnail"===e.badgePosition?T:null,newDurationStyle:e.newDurationStyle,hideRating:"thumbnail"!==e.badgePosition||!!T,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin}))),a.createElement(r.Z,{xs:12,md:6,className:"".concat(E.details," position-relative")},a.createElement("div",{className:"d-flex justify-content-between"},a.createElement("div",{className:"overflow-hidden"},a.createElement(f.$,{type:e.subTextType,analyticsData:e.analyticsData,analyticsOptions:S,video:n,appLink:L,className:"text-reset clamp-1"}),a.createElement(v.u,{video:n,analyticsData:e.analyticsData,analyticsOptions:S,appLink:null==k?void 0:k(e.video,{}),titleSize:"h4",yearGroups:e.yearGroups,showNewVideoIndicator:e.showNewVideoIndicator,titleClassName:e.titleClassName,clampLevel:2})),a.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:S,video:n})),"info-panel"===e.badgePosition&&a.createElement(u.c,{className:"pb-1"},!x&&a.createElement(s.C,{type:s.g.Interactive,data:n.interactives}),a.createElement(s.C,{type:s.g.Rating,data:n.rating}),a.createElement(s.C,{type:s.g.ProductionYear,data:n.productionYear})),a.createElement("p",{className:"mb-1"},a.createElement("span",{className:E.description},n.description)),"info-panel"===e.badgePosition&&a.createElement(c.P,{audience:T,className:"mt-1",border:"dark"}),e.showVideoGuidance&&a.createElement(m.u,{getClassroomGuideAppLink:e.getClassroomGuideAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,video:n,analyticsData:e.analyticsData,analyticsOptions:S,containerClassName:"d-flex ".concat(E.guidance),responsiveClassName:E.responsiveGuidance}))):a.createElement(a.Fragment,null)}w.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},98364:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.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:()=>w,W:()=>k});var a=n(32735),i=n(80247),r=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"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,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.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=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function w(e){var t,n,r=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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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(r)?function(e){return r(e)}:a.Children.count(r)?r: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(i.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 k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,o.u6)(),T=C.errors,S=C.touched,N=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=N),a.createElement(d,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(T,S,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=N),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.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-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(w,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(r.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}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(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=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&&r(),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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},20710:(e,t,n)=>{n.d(t,{y:()=>p});var a=n(32735),i=n(97395),r=n(65858),o=n(83657),l=n(36848),c=n(88711),s=n(75163),u=n(5465),d=n(54610);const m={actions:"cN3nB",actionsContainer:"xM37V",ownerLogo:"g3JFo",dropStyle:"kvCLS",dragStyle:"md9Na"};function p(e){var t,n,p,v,f,g,h=e.folder.thumbnail?i._.urlBuilder(e.folder.thumbnail.url,{size:d.h2.Small}):null,y=null===(v=null===(p=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===p?void 0:p[0])||void 0===v?void 0:v.owner,b=e.showOwnerLogo&&(null===(f=null==y?void 0:y.logo)||void 0===f?void 0:f.url)?i._.urlBuilder(y.logo.url,{size:d.h2.Small}):null,E=null===(g=e.getFolderActions)||void 0===g?void 0:g.call(e,e.folder),w=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,k=e.analyticsOptions?Object.assign({actionType:r.Vw.Click,entity:r.py.Folder},e.analyticsOptions):void 0;return a.createElement(c.j,{draggable:e.drag&&{id:e.folder.id,data:e.folder},droppable:e.drop&&{id:e.folder.id,data:e.folder},dropStye:m.dropStyle,dragStyle:m.dragStyle},a.createElement("div",{className:"position-relative"},a.createElement(l.F,{className:"rounded-3 d-block text-decoration-none",appLink:e.getAppLink(e.folder),title:e.folder.name,analyticsData:w,analyticsOptions:k},a.createElement(s.Z,{data:h,imageType:d.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(u.oy,{name:e.folder.name,type:u.mS.Folder,extraClasses:"rounded-top-lg"})),a.createElement("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2"},a.createElement("span",{className:"text-truncate d-block"},e.folder.name))),(null==E?void 0:E.length)&&a.createElement(o.e,{actions:E,className:m.actionsContainer,actionsDropdownClassName:m.actions,dropdownToggleSvgSize:null}),!!b&&a.createElement("img",{src:b,className:"rounded-circle ".concat(m.ownerLogo),alt:"".concat(null==y?void 0:y.name," logo"),title:(null==y?void 0:y.name)||""})))}},40782:(e,t,n)=>{n.d(t,{I:()=>a,O:()=>c});var a,i=n(32735),r=n(2606),o=n(62712);function l(e){var t=i.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return i.createElement("svg",null,i.createElement("circle",{r:(0,r.pu)(e.size),className:o.Z.backgroundCircle}),!(0,r.zR)(e.percentage)&&i.createElement("circle",{ref:t,r:(0,r.pu)(e.size),className:(0,r.V4)(e.percentage,e.scoreThresholds)}))}function c(e){var t,n=(0,r.Ki)(e.percentage),c=e.size||(e.layout===a.LabelInside?r.Mk.Large:r.Mk.Small),s=e.customLabel||(0,r.DV)(n);return e.layout===a.LabelOnly?i.createElement("span",{className:(0,r.IA)(n)},s):i.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===a.LabelBefore&&i.createElement("span",{className:"me-2"},s),i.createElement("div",{className:(0,r.tw)(c,n)},i.createElement(l,{percentage:n,size:c,scoreThresholds:e.scoreThresholds}),e.layout===a.LabelInside&&i.createElement("span",{className:o.Z.centredPercentageText},s)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(a||(a={})),c.defaultProps={layout:a.CircleOnly}},2606:(e,t,n)=>{n.d(t,{DV:()=>g,IA:()=>p,Ki:()=>f,Mk:()=>l,V4:()=>m,pu:()=>d,tw:()=>v,zR:()=>h});var a=n(94892),i=n(62712);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l,c=.2,s=.36;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(l||(l={}));var u=o(o(o({},l.ExtraSmall,{size:2}),l.Small,{size:2}),l.Large,{size:5.8});function d(e){var t=u[e].size,n=e===l.Large?s:c;return"".concat(t/2-2*n,"rem")}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.i;return e>=t.HIGH?i.Z.circleSuccess:e>=t.MODERATE?i.Z.circleWarning:i.Z.circleDanger}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.i;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function v(e,t){var n="d-inline-block ".concat(i.Z.circleContainer);return e===l.Large&&(n+=" ".concat(i.Z.lgCircleContainer)),e===l.ExtraSmall&&(n+=" ".concat(i.Z.xsCircleContainer)),h(t)&&(n+=" ".concat(i.Z.pendingCircle)),n}function f(e){if(!h(e))return+e.toFixed(2)}function g(e){return h(e)?"--%":"".concat(Math.round(100*e),"%")}function h(e){return"number"!=typeof e}},34004:(e,t,n)=>{n.d(t,{r:()=>v});var a=n(32735),i=n(40955),r=n(18559),o=n(75163),l=n(5465),c=n(54610),s=n(37963),u=n(80143);const d={labelContainer:"ieonz",hoverActive:"vqHCl",mask:"qEOPN",largeHoverTitle:"ZYApF",smallHoverTitle:"qcfHO",description:"jnkdI",largeHoverDescription:"Uh4gM",hasTableOfContents:"RdHkK",smallHoverDescription:"TiqqV"};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function p(e){return a.createElement("div",{className:"py-3 mx-2 px-2 rounded bg-white text-center ".concat(d.mask," d-flex flex-column align-items-center")},a.createElement("h3",{className:"fw-semibold mb-0 ".concat(d.hoverTitle," ").concat(e.isSmall?d.smallHoverTitle:d.largeHoverTitle)},a.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&a.createElement("p",{className:"".concat(e.hasTableOfContents?d.hasTableOfContents:""," ").concat(d.hoverDescription," ").concat(e.isSmall?d.smallHoverDescription:d.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?a.createElement(i.P,{audience:e.mergedAudience,border:"dark",className:"mt-2 w-fit"}):a.createElement(r.C,{type:r.g.Rating,data:e.series.rating,className:"mt-2"}))}function v(e){var t,n,v=(t=(0,s.L)({className:d.hoverActive}),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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(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.")}()),f=v[0],g=v[1],h=e.series&&e.series.subjectPresentationAudiences&&e.series.subjectPresentationAudiences.data||[],y=(0,u.n)(h,e.presentationAudiences),b=!!(h&&h.length&&y);return a.createElement("div",{ref:f},a.createElement(o.Z,{data:e.series.tallPoster,alt:e.series.name,imageType:c.__.TallPosters,preload:e.preloadImage,imageOptions:{size:c.h2.Large},imageClassName:e.imageClass?e.imageClass:"rounded-3"},g&&a.createElement(p,{isSmall:e.isSmall,series:e.series,mergedAudience:h&&h.length?y:null,hasTableOfContents:e.hasTableOfContents}),a.createElement(l.oy,{type:l.mS.Series}),a.createElement("div",{className:"position-absolute text-white text-shadow ".concat(d.labelContainer)},b?a.createElement(i.P,{audience:y,border:"white"}):a.createElement(r.C,{type:r.g.Rating,data:e.series.rating}))))}},36202:(e,t,n)=>{n.d(t,{I:()=>E});var a=n(32735),i=n(75896),r=n(65858),o=n(36848),l=n(83914),c=n(83345);const s={thumbnailTitle:"OsWjL"};function u(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function d(e){return e.appLink?a.createElement(o.F,{appLink:e.appLink,className:"".concat(s.thumbnailTitle)},a.createElement(u,Object.assign({},e))):a.createElement(u,Object.assign({},e))}var m=n(72431),p=n(60995),v=n(4594),f=n(68626),g=n(45778),h=n(35223);const y={badge:"M4zat",mask:"r0Ztg",thumbnailContainer:"uD9dz"};var b="shared.collectionThumbnail";function E(e){var t,n,s,u,E=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===v.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return i.m.first(n.data)}}(),w=function(){var t,n,a=0;if(e.collection.videos&&e.collection.videos.count&&(a+=e.collection.videos.count),e.collection.typeId===v.E.Playlist){var i=e.collection;(null===(t=i.interactives)||void 0===t?void 0:t.count)&&(a+=i.interactives.count),(null===(n=i.clips)||void 0===n?void 0:n.count)&&(a+=i.clips.count)}return a}(),k=(null===(t=e.title)||void 0===t?void 0:t.length)||(null===(n=e.subText)||void 0===n?void 0:n.length),L=Object.assign({id:e.collection.id.toString(),name:e.collection.name},e.analyticsData),x=Object.assign({actionType:r.Vw.Click,entity:(u=e.collection,g.G.isType(u,v.E.Playlist)?r.py.Playlist:g.G.isType(u,v.E.Series)?r.py.Series:void 0)},e.analyticsOptions);return a.createElement("div",null,a.createElement("div",{className:"position-relative ".concat(y.thumbnailContainer," z-1")},a.createElement(o.F,{appLink:e.appLink,analyticsData:L,analyticsOptions:x,preventFocus:!0},e.showMask&&a.createElement("div",{className:"".concat(y.mask," position-absolute w-100 h-100 rounded-3 bg-dark bg-gradient z-1 bg-opacity-50 pointer-events-none")},a.createElement("div",{className:"".concat(y.badge," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(l.x,{svgName:h.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(s=e.hoverText)||void 0===s?void 0:s.length)?a.createElement("span",null,e.hoverText):a.createElement(c.x,{namespace:b,phrase:"playAll"})))),E&&a.createElement(m.u,{video:E,imageOptions:e.imageOptions,textPosition:f.z.Independent,type:"cosmetic",hideMask:!0,hideRating:!0,hideDuration:!0,hideVideoTypeBadge:!0}),!E&&a.createElement("div",{className:"ratio ratio-16x9 bg-light rounded-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center"},a.createElement(l.x,{svgName:h.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(y.badge," d-flex align-items-center w-fit bg-dark bg-opacity-75 rounded-pill position-absolute bottom-0 end-0 ps-1 m-2")},a.createElement(l.x,{svgName:h.vn.Series,className:"svg-container text-white me-1"}),a.createElement("p",{className:"d-inline fw-semibold text-white mb-0"},a.createElement(c.x,{namespace:b,phrase:"videos",options:{count:w,smartCount:w}}))))),k&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(p.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(d,{title:e.collection.name,appLink:e.titleAppLink})))}},40785:(e,t,n)=>{n.d(t,{L:()=>Ka});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(49985),c=n(65858),s=n(83914),u=n(83345),d=n(54610),m=n(12778),p=n(67453),v=n(35223);const f="TTPKV",g="nF3tK";var h="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function b(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function E(e){return e.person?a.createElement(b,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(u.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function w(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var L=n(5281),x=n(31453),C=n(36848),T=n(7733),S=n(9085);var N=function(e){var t,n,i,r,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,S.x)(e.data.name,T.o),u=Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.data)||void 0===i?void 0:i.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company}),v={backgroundImage:o?"url('".concat(o,"')"):null,backgroundColor:l};return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:u,analyticsOptions:m},a.createElement("div",{className:(0,x.A)("rounded-circle w-100 h-100","vt0gx",!l&&s),style:v}))},O=n(58704),j=n(40424);function D(e){var t;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:N,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var P=n(55827),A=n(79967);var I=n(47770),F=n(68050),M=n(69111),U=n(9513),V=n(92802),_=n(23481),G=n(98364),R=n(23201),H=n(38365),B=n(82644),z=n(10874),Z=n(69883),W=n(5173),Y=W.Ry().shape({feedbackInput:W.Z_().max(5e3,(function(){return _.T.getPhrase("shared.feedbackForm","tooLong")}))});const q="UFm9h",$="na9Vb";function K(e){return K="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},K(e)}function X(){X=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==K(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(K(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var J="shared.feedbackForm";function ee(e){var t,n,r=(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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(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=r[0],l=r[1],c=(0,Z.Z)();function s(t,n){return a=this,i=void 0,r=void 0,s=X().mark((function a(){return X().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(_.T.getPhrase(J,"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]])})),new(r||(r=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,i||[])).next())}));var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(G.V,{emoji:"🔎"},a.createElement(u.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(z.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(u.x,{namespace:J,phrase:"yes"})),a.createElement(z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(u.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(G.V,{emoji:"👏"},a.createElement(u.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(J,"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(u.x,{namespace:J,phrase:"back"})),a.createElement(R.A,{variant:"dark",submitText:_.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(B.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(G.V,{emoji:"😢"},a.createElement(u.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(J,"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(u.x,{namespace:J,phrase:"back"})),a.createElement(R.A,{variant:"dark",submitText:_.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(G.V,{emoji:"🙌"},a.createElement(u.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(F.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(M.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(98981),ie=n(88513),re={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:re}))}))))}var le=n(16450),ce=n(43741),se=n(55171),ue=n(78479),de=n(42308),me=n(87114);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function fe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:d.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===j.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:ve(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===j.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return pe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||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:function(t){return function(t){var n,a,i,r,l,c,s,u;return t.id===j.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===j.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:U.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===de.z.Classifications&&e.templateId===ue.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?fe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===j.OL.ClassificationDirectory}}})}var he=n(65163),ye=n(98269),be=n(1048),Ee=n(11607),we=n(17808),ke=n(1287),Le=n(2102),xe=n(83523),Ce=n(92038),Te="shared.subjectWidgetItem",Se=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Ce.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" 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(Ce.Z.widgetItem," ").concat(Ce.Z.draggingItem),style:be.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Ce.Z.widgetItem),style:be.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Ce.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(xe.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?_.T.getPhrase(Te,e.isVisible?"hideFromDashboard":"showOnDashboard"):_.T.getPhrase(Te,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Ne=n(91028),Oe=n(16714),je=n(54569),De=n(49542);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 Ae(){Ae=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Pe(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Pe(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(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 Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Me="shared.editableCoverFixedPillListSmall";function Ue(e){var t,n,i,r=Ie(a.useState(!1),2),o=r[0],s=r[1],d=Ie(a.useState(!1),2),m=d[0],p=d[1],v=De.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,f=a.useMemo((function(){return v.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)}))}),[v]),g=a.useMemo((function(){var e;return null!==(e=null==v?void 0:v.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ie(a.useState(g),2),y=h[0],b=h[1],E=Ie(a.useState(g),2),w=E[0],k=E[1],L=a.useMemo((function(){return o?v.filter((function(e){return!!w[e.id]})).sort((function(e,t){return w[e.id].index-w[t.id].index})):v.filter((function(e){var t;return!!y[e.id]&&!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return y[e.id].index-y[t.id].index}))}),[v,w,y,o]),x=(0,Z.Z)();a.useEffect((function(){s(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var C=a.useMemo((function(){return!(o||!L.length)&&Object.values(w).some((function(e){return e.hidden}))}),[o,w]);function T(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function S(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},w),n=S(e);t[e.id]={id:e.id,hidden:n,index:T(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),k(t)}var O=a.useMemo((function(){return!be.t.isEqual(g,w)}),[g,w]),j={id:e.presentation.id,name:_.T.getPhrase(Me,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},D=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:_.T.getPhrase(Me,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],P=!o&&D.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),I={location:c.LZ.EditableSubjectPreferencesWidget};return L.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"},o?_.T.getPhrase(Me,"updating"):e.name),!o&&A&&a.createElement(Ee.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},_.T.getPhrase(Me,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(u.x,{namespace:Me,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ye.Z,{variant:"link",className:"me-2",onClick:function(){k(y),s(!1)}},a.createElement(u.x,{namespace:Me,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=Ae().mark((function t(){var n;return Ae().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=f?v.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(w)).then((function(){b(w),p(!1),s(!1)})).catch((function(){p(!1),x.error(_.T.getPhrase(Me,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(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((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(u.x,{namespace:Me,phrase:"update"})))),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},C&&a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Ne.V,{data:j,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:I,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(we.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(Se,{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!0,canToggle:!S(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=T({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},w);je.l.reorder(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!S(e)}})),k(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(ke.W,{id:t.id,childComponent:Se,childProps:{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!1,canToggle:!S(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Ne.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:I,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),P&&D.map((function(t){return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Ne.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},I),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Ve=n(11518),_e=n(56752),Ge=n(73679);const Re="k2Xse";function He(e){return a.createElement("div",{className:"".concat(Re," 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(_e.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,responsiveText:!1,hideDay:!0})))}function Be(e){var t=e.data,n=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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Re," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Ge.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:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(He,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:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})})):a.createElement(He,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){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return se.e.SpecialEvents[e.id]},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:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function ze(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ze(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 Ze(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ye=_.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=ze(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(ze(t.events),[e.event])}))}else f.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<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ye("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ye("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ye("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Ze(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(w),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),r=e.contentType===j.VH.Livestream?{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(Ve.kM,{id:e.id,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:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,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):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,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:i,childComponent:Be,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var $e=n(39202),Ke=n(72431),Xe=n(37963);function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Je=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Xe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===j.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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(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="eo8oY";return o.type===j.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Ke.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,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,isPlugin:e.isPlugin}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n,i=De.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(C.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(et," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":tt),analyticsData:{url:$e.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{id:e.id,type:j.l9.Row,contents:O.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:Je,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,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function it(e){return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"".concat("TzZuL"," ").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:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(at.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===rt.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ct(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 st=n(75896);const ut="iCyo4",dt="cgv_6";function mt(e){var t,n,i,r,o,l,s=(0,A.k)(),u={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(C.F,{appLink:function(){var t,n,a=st.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:u},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ut),style:{backgroundImage:"url('".concat((l=st.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:d.__.Banners},{size:d.h2.Large})),"')")}},e.name&&a.createElement("div",{className:dt},a.createElement("p",{className:(o="text-white clamp-2",s.xs||s.sm?o+=" h4":s.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ut)},a.createElement("div",{className:"".concat(dt)}))}function vt(e){return vt="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},vt(e)}function ft(e,t,n){return(t=function(e){var t=function(e){if("object"!=vt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt,ht,yt;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(gt||(gt={})),function(e){e.Dark="dark",e.White="white"}(ht||(ht={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(yt||(yt={})),gt.H1,gt.H2,gt.H3,gt.H4,gt.H5,gt.H6,ht.Dark,ht.White,yt.NewWindow;var bt=ft(ft(ft(ft({},yt.NewWindow,v.vn.NewWindow),yt.TopicDirectory,v.vn.Grid),yt.TopicNewReleases,v.vn.Sparkle),yt.CuratedTopic,v.vn.Rectangles),Et=ft(ft(ft(ft(ft(ft(ft(ft({},gt.H1,"h1"),gt.H2,"h2"),gt.H3,"h3"),gt.H4,"h4"),gt.H5,"h5"),gt.H6,"h6"),ht.Dark,"text-dark"),ht.White,"text-white");const wt="b5ljD",kt="dj_1H",Lt="UBcVE",xt="fGBlR",Ct="lkPfM";function Tt(e){var t,n,i,r=Et[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||gt.H6],o=Et[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||ht.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(kt," ").concat(Lt," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Ct," ").concat(e.widgetTypeId===de.z.Blurb?Lt:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(z.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function St(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(z.h,{svgName:bt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function Nt(e){return a.createElement(C.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(St,{cta:e.cta}))))}function Ot(e){var t,n,i,r=st.m.first(e.content),o={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(Nt,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:d.__.Banners},{size:d.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function jt(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget};return a.createElement(C.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(kt," ").concat(xt),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(Ct," ").concat(xt," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",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(st.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Dt(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(Tt,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(jt,Object.assign({},e,{content:e.content}));default:return a.createElement(Ot,Object.assign({},e,{content:e.content}))}}function Pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Ct)}))}function At(e){var t,n,i=st.m.first(e.content),r=(0,A.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Nt,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function It(e){var t,n,i,r,o,l,s,u=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in u&&p.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:d.h2.Medium}),v="metadata"in u&&(null===(i=u.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Nt,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,u),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:_.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(Dt,Object.assign({},e))}var Ft=n(45716),Mt=n(2158),Ut=n(38304),Vt=n(40782),_t=n(64818);var Gt="widgets.onboardingSteps",Rt=_.T.encloseNamespace(Gt);function Ht(e){var t,n,i,r,o,l,d,m,p=(0,Mt.T)(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),f=p.getPathway,g=p.hasLoadedPathway,h=g&&f(),y=_t.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||g&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Oe.C.ViewOnboarding)&&!h.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var b=function(){if(e.isPreviewing)return{};var t=Ft.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:Ut.m.getProgress(h)},Ut.m.getOnboardingScreenStates(h))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Ut.m.getProgress(h);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),w=E.overallPercentage,k=E.totalScreens,L=E.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(Vt.O,{percentage:Math.round(w)/100,layout:Vt.I.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(r=Ft.H["select-videos"])||void 0===r?void 0:r.getWidgetHeading(y):null===(o=Ft.H[h.currentScreen])||void 0===o?void 0:o.getWidgetHeading(y)),a.createElement("div",{className:"dTKo5"},a.createElement(s.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=Ft.H[e];return t===n?"".concat(Rt("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Rt("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Rt("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":h.currentScreen,L,k,y))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(l=e.imageUrls)||void 0===l?void 0:l.onboardingTeacherBackground,"')")}},a.createElement(C.F,{appLink:null===(m=null===(d=e.appLinks)||void 0===d?void 0:d.onboardingStep)||void 0===m?void 0:m.call(d,null==h?void 0:h.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:b,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Gt,phrase:"completeSetup"}))))}function Bt(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 zt=n(17082),Zt=n(31908),Wt=n(80835);function Yt(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=zt.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,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:j.l9.LargeRow,contents:O.z.Videos,collection:g,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?_.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):""},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function qt(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 $t=n(38446);function Kt(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==de.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=me.i.getCounts(e.classification).childDashboardNewVideoCount;return t?a.createElement("div",{className:"ms-2"},a.createElement($t.A,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Xt(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=zt.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,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:j.l9.Row,contents:O.z.Videos,collection:g,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?_.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):""},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Kt,Object.assign({},e))})}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Jt=n(34004);function en(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}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Series,descriptor:c._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?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Jt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function tn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:en,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},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})}const nn="fgIje",an="CJwKL";var rn=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?nn:an," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function on(e){for(var t,n,i=(t=e.type,(n=(0,A.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(rn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(P.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var ln=n(75163),cn=n(5465);function sn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(nn):t+=" ".concat(an),t)},a.createElement(ln.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:d.__.TallPosters,preload:i,imageOptions:{size:d.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(cn.oy,{type:cn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function un(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:sn,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})}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var mn="explore-all-topics";function pn(e){var t,n=function(e){var t,n,a,i,r;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)===j.OL.ExploreAllTopics?mn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=De.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return dn(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 dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(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:sn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===mn?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===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function vn(e){var t;return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:en,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var fn=n(57900),gn=n(2948),hn=n(96953),yn=n(10038),bn=n(16951),En=n.n(bn),wn=n(38946);function kn(e){return kn="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},kn(e)}function Ln(){Ln=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==kn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(kn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var xn,Cn=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(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())}))},Tn="markdown-link",Sn=new wn.M2,Nn=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,On=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;Sn.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:function(e){for(var t,n=e;n;){if(-1===(t=n.indexOf("$")))return;if((0===t||" "===n.charAt(t-1))&&n.substring(t).match(Nn))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(Nn);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return xn?xn.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(On);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return xn?xn.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return Cn(void 0,void 0,void 0,Ln().mark((function t(){var a,i;return Ln().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("inlineKatex"!==e.type&&"blockKatex"!==e.type){t.next=6;break}return t.next=3,Promise.all([n.e(6510),n.e(5060)]).then(n.bind(n,15060));case 3:a=t.sent,i=a.katex,xn=i;case 6:case"end":return t.stop()}}),t)})))}});var jn={isLink:function(e){return e.classList.contains(Tn)},parse:function(e,t){return Cn(this,void 0,void 0,Ln().mark((function n(){var a;return Ln().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return","");case 2:return n.next=4,Sn.parse(e,{renderer:jn.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",En().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new Sn.Renderer;return t.heading=function(e){var t=e.text,n=e.depth;return"<h".concat(n,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n],'">').concat(t,"</h").concat(n,">")},t.link=function(t){var n=t.href,a=t.text,i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(Tn,'" ').concat(i,">").concat(a,"</a>")},t},getContainerClass:function(){return"AmtuH"}};function Dn(e){return Dn="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},Dn(e)}function Pn(){Pn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Dn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Dn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function An(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(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 In(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Fn="1.2rem";function Mn(e){var t=An((0,gn.D)("should:expand:".concat(e.id),e.isBot,{storage:fn.Z1.LocalStorage}),2),n=t[0],i=t[1],r=An(a.useState(n?"100%":Fn),2),o=r[0],u=r[1],d=An(a.useState(!n),2),m=d[0],p=d[1],f=An(a.useState(null),2),g=f[0],h=f[1],y=(0,hn.F)(),b=a.useRef(null),E=a.useRef(null),w=a.useRef(null);function k(){u(Fn),i(!1),b.current=window.setTimeout((function(){p(!0)}),500)}return a.useEffect((function(){!function(){var t,a,i,r;t=this,a=void 0,i=void 0,r=Pn().mark((function t(){var a;return Pn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jn.parse(e.answer,{focusableLinks:n});case 2:if(a=t.sent,y.current){t.next=5;break}return t.abrupt("return");case 5:if(null!==g){t.next=8;break}return h(a),t.abrupt("return");case 8:if(g!==a){t.next=10;break}return t.abrupt("return");case 10:g&&n&&k(),h(a);case 12:case"end":return t.stop()}}),t)})),new(i||(i=Promise))((function(e,n){function o(e){try{c(r.next(e))}catch(e){n(e)}}function l(e){try{c(r.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,a||[])).next())}))}()}),[e.answer]),a.useEffect((function(){"100%"===o&&w.current&&u(w.current.clientHeight+"px")}),[o]),(0,yn.H)((function(){n&&k()}),null,[n]),e.question&&g?a.createElement(Ee.L,{className:"".concat("r4X_X"," rounded-3"),onClick:function(t){var a;jn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:n?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionWidget})),n?k():((a=document.createElement("p")).innerHTML=g,a.style.visibility="hidden",E.current.appendChild(a),u("".concat(a.clientHeight,"px")),E.current.removeChild(a),i(!0),window.clearTimeout(b.current),p(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?v.vn.Minus:v.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:"dVLkj",style:{height:o}},a.createElement("p",{className:"mb-0 ".concat(m?"clamp-1":""," ").concat(jn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function Un(e){var t=st.m.first(e.content),n=t.question,i=t.answer;return a.createElement(Mn,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const Vn="Jg3am";function _n(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(Vn," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function Gn(e){return Gn="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},Gn(e)}function Rn(){Rn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.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 r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(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 w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=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 C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Gn(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,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(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===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 r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Gn(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(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(L),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"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=D,j.prototype={constructor:j,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(O),!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 i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("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 i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.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),O(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 i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(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 Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var zn=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(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())}))};function Zn(e){var t,n,i,r=Hn((0,gn.D)("should:expand:".concat(e.id),e.isBot,{storage:fn.Z1.LocalStorage}),2),o=r[0],u=r[1],d=Hn(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=Hn(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,hn.F)();function w(){var t;return zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),u(!1),n.next=4,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,E.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,yn.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(i=e.faq)||void 0===i?void 0:i.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(Ee.L,{onClick:function(t){jn.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:o?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget}),o?w():function(){var t;zn(this,void 0,void 0,Rn().mark((function n(){var a;return Rn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),u(!0),n.next=4,jn.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(Vn)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1 ".concat(jn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0})))}function Wn(e){return e.content.length?a.createElement(a.Fragment,null,a.createElement("h2",{className:"curated-widget-heading"},e.name),a.createElement("ul",{className:"list-unstyled mb-n2"},e.content.map((function(t,n){return a.createElement("li",{className:"mb-2",key:n},a.createElement(Zn,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}var Yn=n(83616);function qn(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(Yn.Z.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:Yn.Z.partialIcon},a.createElement(cn.oy,{type:cn.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var $n=n(30662);function Kn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Xn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Kn,null),a.createElement(Kn,null))}var Qn=n(3626);function Jn(e){var t,n,i,r,o,l,c,s=st.m.first(De.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(Qn.J,{video:s,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,s),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:Zt.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,showNewVideoIndicator:null===(c=e.settings)||void 0===c?void 0:c.hasTopicDirectories}))}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ta(e){var t,n,i={};return e.data.fallbackBackgroundColor&&(i.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(i.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(i.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("gKcbE"," ").concat(e.isLarge?"Ldth1":"z6ZxE"),style:i},a.createElement("div",{className:"".concat("aOotU"," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat("w5WZ1")},e.data.preTitle&&e.data.preTitle.length&&a.createElement("p",{className:"".concat("ReAEa"," mb-1 text-white"),title:e.data.preTitle},e.data.preTitle),a.createElement("p",{className:"".concat("bSXFz"," h3 text-shadow ").concat(e.isLarge||(null===(t=e.data)||void 0===t?void 0:t.preTitle)?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("XjSFw")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"c28_J"},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},(null===(n=e.data)||void 0===n?void 0:n.buttonText)||_.T.getPhrase("shared.thumbnailWidgetItem","buttonLabel")))),!e.data.thumbnailUrl&&!!e.data.coverUrl&&a.createElement("div",{className:"".concat("liG0R"),style:{backgroundImage:"url('".concat(e.data.coverUrl,"')")}}))}var na=a.memo((function(e){return e.appLink?a.createElement(C.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(ta,Object.assign({},e))):a.createElement(ta,Object.assign({},e))})),aa=n(2284),ia=_.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function ra(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(M.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(na,Object.assign({},function(e){var t,n,a,i,r,o,l,s,u,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===aa.W.ComingSoon,f=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!v}),g=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return Object.assign(Object.assign({},m),{data:Object.assign(Object.assign({},m.data),{backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium}),buttonText:ia("exploreTopic")}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const oa="HwejH";var la=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"}}))},ca=n(22843),sa=n(60318),ua=n(68626),da=n(80143);function ma(e){var t,n,i,r,o,l,s,u,m,p=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),v=Zt.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),f=a.useRef(null),g={actionType:c.Vw.Click,entity:Zt.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},h=(0,da.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:f},a.createElement(Ke.u,{analyticsData:e.analyticsData,analyticsOptions:g,video:e.video,appLink:p,imageOptions:{size:d.h2.Medium},textPosition:ua.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:h,hideRating:!!h,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(ca.h,{video:e.video,appLink:p,subTextAppLink:v,yearGroups:e.yearGroups,subTextType:e.subTextType,showNewVideoIndicator:null===(l=e.settings)||void 0===l?void 0:l.hasTopicDirectories}),Zt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(sa.u,{getClassroomGuideAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.classroomGuide,getResourceGuidanceAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.resourceGuidance,getInteractiveGuidanceAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function pa(e){var t=De.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(ma,Object.assign({key:t.id,video:t},e))}))))}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var fa=n(4594),ga=n(45778);function ha(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([de.z.SearchRelevantTopics,de.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==de.z.TrendingClassifications&&e.widgetTypeId!==de.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var i="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,r=function(e){var t,n,a,i,r,o,l,s,u,m,v,f,g={data:{name:e.item.name,description:e.item.description}};if(ga.G.isType(e.item,fa.E.Subject)){var h=(null===(t=e.item)||void 0===t?void 0:t.status)===aa.W.ComingSoon,y=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!h}),b=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),E=e.widgetTypeId===de.z.SearchRelevantTopics&&function(e,t){if(e&&t){var n=t.find((function(t){return t.id&&t.id===e.presentationId}));if(n)return n.name}}(e.item,e.availablePresentations);return Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{preTitle:E,backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium})}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),analyticsData:y,analyticsOptions:b})}return ga.G.isType(e.item,fa.E.Company)?Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{coverUrl:p.j.createUrl(null===(m=e.item.cover)||void 0===m?void 0:m.url,{size:d.h2.Small})}),appLink:null===(f=null===(v=e.appLinks)||void 0===v?void 0:v.company)||void 0===f?void 0:f.call(v,e.item)}):g}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:i,availablePresentations:e.availablePresentations});return a.createElement(M.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(na,Object.assign({},r)))}))))}function ya(e){var t,n,i,r,o,l,s=st.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return u&&m?a.createElement(a.Fragment,null,a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},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"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||_.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(mt,Object.assign({},e))}var ba=n(11882),Ea=n(29598);function wa(e){var t,n,i,r,o,l,s,u,m,p,v,f,g,h=st.m.first(De.d.getVideoContent(e.content)),y=a.useRef(),b=(0,da.n)(null===(t=h.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=Zt.M.hasSeries(h)||De.d.isCompanyWidget(e.widgetTypeId),w={actionType:c.Vw.Click,entity:Zt.M.getAnalyticsEntity(h),location:c.LZ.ThumbnailHeroMediaWidget},k=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,L=Zt.M.getCanBeConsumed(h).canNavigate;return h?a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{ref:y},a.createElement(Ke.u,{video:h,imageOptions:{size:d.h2.Large},type:"static",textPosition:ua.z.Independent,analyticsOptions:w,audience:b,hideRating:!!b,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,h,{}),subTextAppLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.subText)||void 0===l?void 0:l.call(o,h),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Zt.M.isVideo(h)&&a.createElement(ba.$,{type:De.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:h,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===u?void 0:u.call(s,h),analyticsOptions:w,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"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,h,{}),analyticsData:{id:h.id,name:h.name},analyticsOptions:Object.assign(Object.assign({},w),{descriptor:c._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement(Ea.O,{video:h,yearGroups:e.yearGroups,showNewVideoIndicator:k,titleSize:"h4",className:"mb-0"})))),Zt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(sa.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:h,analyticsData:e.analyticsData,analyticsOptions:w,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function ka(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink: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)})}function La(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},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,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink: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)})}var xa=n(74237),Ca=n(26733),Ta=n(89076);function Sa(e){return Zt.M.isVideoType(e.data)?a.createElement(Ta.b,Object.assign({},e)):a.createElement(Ca.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),xa.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Na(e){var t,n,i,r=e.hasLocalPermissions(Oe.E.ViewVideoResourceItems);return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Sa,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,getSubTextAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,subTextType:"series",isPlugin:e.isPlugin},getChildAppLink:function(t){var n,a,i,o;return Zt.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Oa=n(74696),ja=_.T.encloseNamespace("search.searchExchangeArchiveDescription");function Da(e){return a.createElement(a.Fragment,null,ja("searchExchangeArchiveDescription")," ",a.createElement(C.F,{appLink:e.appLink,className:"info-link"},ja("searchExchangeArchiveLink")))}var Pa=n(13231);function Aa(e){var t,n,i,r,o;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(Da,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[de.z.SearchExchangeArchive,de.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(Pa.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a,i;return"series"===e.subTextType?null===(n=e.appLinks)||void 0===n?void 0:n.series(null==t?void 0:t.series):"productionCompany"===e.subTextType?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.company)||void 0===i?void 0:i.call(a,t):void 0},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,canFavourite:e.canFavourite,setFavourite:e.setFavourite,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,companyLogoFallbackUrl:e.companyLogoFallbackUrl,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video},getAnalyticsData:e.getAnalyticsData}))}var Ia=n(12754),Fa=n(20710);function Ma(e){function t(t){var n,a,i;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var r=null===(i=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===i?void 0:i.id;return e.appLinks.folder(t,{libraryId:r})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(r):{};return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Fa.y,{folder:i,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}var Ua=n(36202);function Va(e){return Va="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},Va(e)}function _a(e,t,n){return(t=function(e){var t=function(e){if("object"!=Va(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Va(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ga,Ra=_.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function Ha(e){var t=_a(_a({},fa.E.Playlist,Ra("playlist")),fa.E.Series,Ra("series")),n=_a(_a({},fa.E.Playlist,Ra("viewPlaylist")),fa.E.Series,Ra("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o,l=(o=i,ga.G.isType(o,fa.E.Playlist)?e.appLinks.playlist(o):ga.G.isType(o,fa.E.Series)?e.appLinks.series(o):void 0),s=t[null==i?void 0:i.typeId],u=n[null==i?void 0:i.typeId];return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Ua.I,{collection:i,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(r),title:null==i?void 0:i.name,titleAppLink:l,imageOptions:{size:d.h2.Small},subText:s,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function Ba(e){return Ba="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},Ba(e)}function za(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ba(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ba(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Za=(za(za(za(za(za(za(za(za(za(za(Ga={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return wa},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(Xn,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListLarge,{getComponent:function(){return tn},partialLoading:function(e){var t,n,i=(t=(0,A.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return Qt(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 Qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(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.")}()).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("hMoHO"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return un},partialLoading:function(){return a.createElement(on,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case de.z.CuratedClassifications:return pn;case de.z.CuratedSeries:return vn;default:return pn}},partialLoading:function(){return a.createElement(on,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ia.x.StreamableLearning)return!1;switch(n){case de.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case de.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),ue.f.ThumbnailFeaturedMedia,{getComponent:function(){return Jn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(F.Z,null,a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(M.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(Xn,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return I.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(U.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return $n.q},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(qn,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),ue.f.CoverFixedPillListXSmall,{getComponent:function(){return ne},partialLoading:function(){return a.createElement("div",{className:"".concat(te.background," 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(F.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(M.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:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:U.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ia.x.StreamableLearning?n!==de.z.Classifications&&[j.ku.Discover,j.ku.Company,j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),za(za(za(za(za(za(za(za(za(za(Ga,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return nt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(et," ").concat(tt," mb-1 ")}),a.createElement(Ve.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return mt},partialLoading:pt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Ht},partialLoading:pt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return Dt},partialLoading:Pt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Pt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return At},partialLoading:function(){return a.createElement(Pt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return ya},partialLoading:function(){return a.createElement(pt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return ra},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ea(e)}(t=Array(2))||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 ea(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ea(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.")}();return a.createElement("div",null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(M.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return ha},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return va(e)}(t=Array(3))||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 va(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(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.")}();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(M.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:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Ue},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(F.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(U.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),za(za(za(za(za(za(za(za(za(za(Ga,ue.f.Heading,{getComponent:function(){return ct},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:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return w},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return Un},partialLoading:function(){return a.createElement("div",{className:"".concat("QrLg2"," rounded-3")},a.createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.5rem",width:"75%"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"100%"}}))},icon:v.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return Wn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"2rem",width:"30%"}}),a.createElement("div",{className:"mb-n2"},a.createElement(_n,null),a.createElement(_n,null),a.createElement(_n,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return pa},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(oa," partial-loading-background rounded-3")}),a.createElement(la,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Xn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(oa," partial-loading-background rounded-3")}),a.createElement(la,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Xn,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Yt},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",childComponent:Bt,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Xt},partialLoading:function(e){return a.createElement(Ve.j7,{size:"sm",childComponent:qt,name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription,hideHeading:e.hideHeading})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):t===j.ku.Classification?a:[j.ku.MoviesAndTv,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,A.k)();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return lt(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 lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(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 px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return D},partialLoading:function(e){var t=8,n=(0,A.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).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:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,A.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).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:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),za(za(za(za(za(za(Ga,ue.f.ThumbnailVerticalList,{getComponent:function(){return Aa},partialLoading:function(){return a.createElement(Oa.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ia.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Na},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ia.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return Ha},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return Ma},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return La},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return ka},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Wa=n(65294);const Ya={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function qa(e,t){if(e){if("string"==typeof e)return $a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$a(e,t):void 0}}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ka(e){var t,n,o,l,c,s,u=a.createRef(),d=(c=a.useState([]),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,s)||qa(c,s)||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],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,Wa.Y)({prevent:!v}),g=f.ref,h=f.inView,y=i.q.isFunction(e.getContentRequest),b=r.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),E=De.d.useGetContent(e.content||(null===(n=b.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=b.data)||void 0===o?void 0:o.preferences,m).content,w=(0,A.k)(),k=function(e,t){return!(De.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,E),L=!De.d.canDisplayOnScreenSize(w,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;y&&!b.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,k||L)}),[b.hasCompleted,k,L,y,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,u.current]);var x=e.appLinks?Object.assign({},e.appLinks):null;(null==x?void 0:x.videoType)&&(x.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var C=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}),T=y&&!b.hasCompleted||e.isEditing&&k,S=Za[e.templateId].partialLoading,N=Za[e.templateId].getComponent(e.widgetTypeId),O=Za[e.templateId].className;return T||!k&&!L?a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:u,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Ya.widgetHighlight," py-2 px-3 rounded-3"):""},De.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Ya.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),T?a.createElement("div",{ref:g},a.createElement(S,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(N,Object.assign({},e,{appLinks:x,content:E,preferences:null===(l=b.data)||void 0===l?void 0:l.preferences,analyticsData:C,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return p([].concat(function(e){return function(e){if(Array.isArray(e))return $a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qa(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.")}()}(m),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}})))):a.createElement(a.Fragment,null)}},80835:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),i=n(91967),r=n(72431),o=n(68626),l=n(79967),c=n(80143),s=n(40424),u=n(31908);var d=a.memo((function(e){var t,n=e.data,d=e.getSubTextAppLink,m=e.context,p=e.thumbnailSize,v=e.preloadImage,f=e.presentationAudiences,g=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,h=(0,c.n)(g,f),y=(0,l.k)(),b="JSM4l";return m.type===s.l9.LargeRow&&(b="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(b)},a.createElement(r.u,{type:e.preventPopout||y.xs?"static":"popout",textPosition:o.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:u.M.isVideo(n)&&(null==d?void 0:d(n)),imageOptions:{size:p},preload:v,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:h,hideRating:!!h,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.getClassroomGuideAppLink,showNewVideoIndicator:e.showNewVideoIndicator,onClickRemove:i.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip}))}))},26733:(e,t,n)=>{n.d(t,{s:()=>k,R:()=>L});var a=n(32735),i=n(39202),r=n(49985),o=n(65858),l=n(36848),c=n(11607),s=n(75891),u=n(83914),d=n(60995),m=n(36532),p=n(61150),v=n(71063),f=n(4594),g=n(1164),h=n(79967),y=n(45778),b=n(54297),E=n(35223);const w={imageStyle:"I9E5O",item:"tqUFn",dashboard:"o7j7p",playPage:"V2RwX",aspectRatio:"OnJDH",outerContainer:"CIFy7",innerContainer:"oUZPD",actions:"jzGAm",titleBelow:"Cpjs3",thumbnailContainer:"EDiGi",titleAbove:"e9ejn",teacherPack:"_tdVE",text:"g5NWS",hoverState:"xRYhX",atomGuide:"X39wU",studentActivity:"X9pMl",additionalMaterials:"qRVUo",userUploaded:"_18JaV",imageTypeResource:"KYtZL",download:"fbb_e"};function k(e){var t,n,i,r,o=null;"metadata"in e.data&&(o=e.data.metadata);var l=y.G.isType(e.data,f.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:w.aspectRatio},a.createElement("div",{className:w.outerContainer},a.createElement("div",{className:function(t){var n,a="\n d-flex flex-column align-items-center justify-content-end rounded-3 h-100\n position-relative ".concat(function(e){switch(e){case"atom-guide":return w.atomGuide;case"student-activity":return w.studentActivity;case"teacher-pack":return w.teacherPack;case"additional-materials":return w.additionalMaterials;default:return w.userUploaded}}(t)," ").concat(w.innerContainer);return(null===(n=e.theme)||void 0===n?void 0:n.containerClass)?a+=" ".concat(e.theme.containerClass):a+=" pt-3 px-3",e.applyHoverState&&(a+=" ".concat(w.hoverState)),a}(null==o?void 0:o.resourceType)},"above"===e.titlePosition&&a.createElement(m.u,{title:e.data.name},a.createElement("h3",{className:"text-center text-break h5 mb-3 ".concat(w.text)},a.createElement("span",{className:"clamp-1"},e.data.name))),a.createElement("div",{className:"\n ".concat(null!==(n=null===(t=e.theme)||void 0===t?void 0:t.thumbnailContainerClass)&&void 0!==n?n:""," w-75 overflow-hidden \n ").concat(w.thumbnailContainer," ").concat("above"===e.titlePosition?w.titleAbove:""," \n ").concat(w.imageStyle,"\n ")},a.createElement(s.C,{resource:e.data,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.imageErrorFallbackUrl,preloadImage:e.preloadImage})),l&&e.onClickDownload&&"normal"===e.actionBehaviour&&a.createElement("div",{className:w.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(w.download," d-flex align-items-center justify-content-center")},a.createElement(u.x,{svgName:E.vn.Download}))),!e.hideTypeBadge&&l&&a.createElement(p.y,{typeId:f.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(w.titleBelow)},y.G.isType(e.data,f.E.Resource)&&!!(null===(r=null===(i=e.data)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.resourceType)&&a.createElement(d.m,null,b.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}k.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var L=a.memo((function(e){var t,n,c,s,u=(t=e.data,n=e.actionBehaviour,s=(0,h.k)(),"public"===n||!s.xs&&!s.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===g.L.Image||(t.metadata.type===g.L.Pdf?!!t.url:!!(null===(c=t.pdf)||void 0===c?void 0:c.url)))),d=Object.assign(Object.assign({},e.analyticsData),e.data),m=Object.assign(Object.assign({},e.analyticsOptions),{actionType:o.Vw.Click,entity:e.data.typeId===f.E.Resource?o.py.Resource:o.py.Link});function p(){r.k.logUserAction(d,m)}var y,b=Object.assign(Object.assign({},e),{applyHoverState:u||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(w.item," ").concat("play-page"===e.location?w.playPage:w.dashboard," ").concat(v.M.RESOURCE_ITEM_SELECTOR)},(y="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:y,onClick:p},a.createElement(k,Object.assign({},b))):u?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(y," cursor-pointer d-inline"),onClick:function(){p(),i.C$.trigger(e.getAppLink(e.data))}},a.createElement(k,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:y,analyticsData:d,analyticsOptions:m},a.createElement(k,Object.assign({},b))):e.data.url?a.createElement("a",{href:e.data.url,className:y,onClick:p},a.createElement(k,Object.assign({},b))):a.createElement("div",{className:y},a.createElement(k,Object.assign({},b)))))}))},89076:(e,t,n)=>{n.d(t,{b:()=>c});var a=n(32735),i=n(72431),r=n(68626),o=n(80143),l=n(31908);var c=a.memo((function(e){var t,n,c,s=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,u=(0,o.n)(s,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(i.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:l.M.isVideo(e.data)&&(null===(c=e.getSubTextAppLink)||void 0===c?void 0:c.call(e,e.data.series)),imageOptions:{size:e.thumbnailSize},preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,subTextType:e.subTextType,textPosition:r.z.Below,audience:u,hideRating:!!u,hideDuration:!1,isPlugin:e.isPlugin}))}))},94892:(e,t,n)=>{n.d(t,{T:()=>i,i:()=>a});var a={HIGH:.75,MODERATE:.5},i={HIGH:.7,MODERATE:.7}},73814:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r,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,i),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}}},84231:(e,t,n)=>{n.d(t,{Z:()=>a});const a={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},62712:(e,t,n)=>{n.d(t,{Z:()=>a});const a={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",xsCircleContainer:"RPqZ2",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"}},82602:(e,t,n)=>{n.d(t,{WU:()=>s});var a=["second","minute","hour","day","week","month","year"],i=["秒","分钟","小时","天","周","个月","年"],r={},o=function(e,t){r[e]=t},l=[60,60,24,7,365/7/12,12];function c(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}var s=function(e,t,n){var a=function(e,t){return(+(t?c(t):new Date)-+c(e))/1e3}(e,n&&n.relativeDate);return function(e,t){for(var n=e<0?1:0,a=e=Math.abs(e),i=0;e>=l[i]&&i<l.length;i++)e/=l[i];return(e=Math.floor(e))>(0==(i*=2)?9:1)&&(i+=1),t(e,i,a)[n].replace("%s",e.toString())}(a,function(e){return r[e]||r.en_US}(t))};o("en_US",(function(e,t){if(0===t)return["just now","right now"];var n=a[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]})),o("zh_CN",(function(e,t){if(0===t)return["刚刚","片刻后"];var n=i[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}))}}]);
3
+ //# sourceMappingURL=2205-3e7a8f1a6b-lite.chunk.js.map