@clickview/lite 0.70.0-rc.3 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/css/{1924-lite-0bde0e9553.chunk.css → 9926-lite-53e53f702b.chunk.css} +1 -0
- package/dist/scripts/{1185-6b9909a4af-lite.chunk.js → 1185-66a45514be-lite.chunk.js} +3 -3
- package/dist/scripts/{1185-6b9909a4af-lite.chunk.js.map → 1185-66a45514be-lite.chunk.js.map} +1 -1
- package/dist/scripts/{91-668c1490fc-lite.chunk.js → 91-ad4ab33df0-lite.chunk.js} +3 -3
- package/dist/scripts/91-ad4ab33df0-lite.chunk.js.map +1 -0
- package/dist/scripts/{1924-6481fb66c5-lite.chunk.js → 9926-d9071b6ac0-lite.chunk.js} +2 -2
- package/dist/scripts/9926-d9071b6ac0-lite.chunk.js.map +1 -0
- package/dist/scripts/{bundle-bef9d522aa.min.js → bundle-e15a2ef92e.min.js} +3 -3
- package/dist/scripts/{bundle-bef9d522aa.min.js.map → bundle-e15a2ef92e.min.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/1924-6481fb66c5-lite.chunk.js.map +0 -1
- package/dist/scripts/91-668c1490fc-lite.chunk.js.map +0 -1
- /package/dist/scripts/{1185-6b9909a4af-lite.chunk.js.LICENSE.txt → 1185-66a45514be-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{91-668c1490fc-lite.chunk.js.LICENSE.txt → 91-ad4ab33df0-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-bef9d522aa.min.js.LICENSE.txt → bundle-e15a2ef92e.min.js.LICENSE.txt} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 91-
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[91],{2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),r=n(2948),i=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(1666),d=n(5112),u=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,r.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(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=i.a.useBasicFetch(m.N.currentUser()),x=i.a.useBasicFetch((null===(t=L.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.user(L.data.id)),C=i.a.useBasicFetch((null===(n=L.data)||void 0===n?void 0:n.isAuthenticated)&&s.h.customer(L.data.customerId)),S=i.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),N=i.a.useBasicFetch(c.x.presentation(l.R.Subject)),T=i.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),O=i.a.useBasicFetch(d.C.getUserPlaylists(new g.l)),j=i.a.useBasicFetch(u.o.mySubjectPreferences()),P=(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 D=L.hasCompleted&&x.hasCompleted&&C.hasCompleted&&S.hasCompleted&&T.hasCompleted&&N.hasCompleted&&O.hasCompleted&&j.hasCompleted&&null!==w,I=(0,v.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=x.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=r.preferredPresentationOverride||N.data;return D?o.m.getOnboardingPathway({jobTitle:i,userSettings:I.data,presentations:S.data,curriculums:T.data,preferredSubjects:j.data,preferredPresentation:l,appLink:f.O.getCurrentRoute().appLink,appLinks:e,masterUser:x.data,customer:C.data,hasPlaylist:w,hasPermissions:P,currentUser:L.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:D}}},91200:(e,t,n)=>{n.d(t,{Y:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(79382);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(r.Z,{className:"mx-n1 mb-n2"},n.map((function(e,t){return a.createElement(i.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),r=n(82602),i=n(23481),o=n(110),l=n(65858),c=n(83345),s="playlists.playlistCount";function d(e){var t=function(e){var t,n,a,r,i,o;return!!e&&(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==n?n:0)+(null!==(r=null===(a=e.interactives)||void 0===a?void 0:a.count)&&void 0!==r?r:0)+(null!==(o=null===(i=e.clips)||void 0===i?void 0:i.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 u=n(97408),m=n(97392),p=n(64818);function v(e){var t,n,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return a.createElement(m.F,null);if(!(null==i?void 0:i.id)||!(null===(n=e.currentUser)||void 0===n?void 0:n.id))return a.createElement(a.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return a.createElement(a.Fragment,null);var o="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return a.createElement(u.q,{imageUrl:o,imageCdnUrl:e.imageCdnUrl,initials:p.l.getInitials(i.name,i.surname)})}var f=n(15611),g=n(69776),h=n(7432),y=n(11834),b=n(54610),E=n(80143),w=n(9085),k=n(67453),L=n(79382),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,u=(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}),S=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Playlist});return a.createElement(f.F,{appLink:e.appLink,analyticsData:C,analyticsOptions:S,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":i.T.getPhrase(x,"lastUpdated",{timeago:(0,r.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(d,{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&&!!u&&a.createElement(g.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:u,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),r=n(68050),i=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(r.Z,{as:"ul",className:"list-unstyled mx-n1"},e.extraPlaylistItem&&a.createElement(i.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(i.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:()=>r.t});var a=n(91200),r=(n(31273),n(23162))},22204:(e,t,n)=>{n.d(t,{J:()=>w});var a=n(32735),r=n(68050),i=n(69111),o=n(49985),l=n(65858),c=n(69776),s=n(18559),d=n(17464),u=n(86348),m=n(60608),p=n(85784),v=n(70872),f=n(26339),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,w,k,L,x,C=null===(n=null===(t=e.video)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,S=(0,y.n)(C,e.presentationAudiences),N=o.k.mergeOptions(e.analyticsOptions,{location:l.LZ.ClassificationHero,entity:b.M.getAnalyticsEntity(e.video)}),T=a.useRef(null);return e.video?a.createElement(r.Z,null,a.createElement(i.Z,{xs:12,md:6},a.createElement("div",{ref:T},a.createElement(u.u,{analyticsOptions:N,video:e.video,appLink:null===(w=e.getVideoAppLink)||void 0===w?void 0:w.call(e,e.video,{}),imageOptions:{size:g.h2.Medium},textPosition:h.z.Independent,type:"static",audience:"thumbnail"===e.badgePosition?S:null,hideRating:"thumbnail"!==e.badgePosition||!!S,commonVideoProps:e.commonVideoProps}))),a.createElement(i.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.commonVideoProps.subTextType,appLink:null===(L=(k=e.commonVideoProps).getSubTextAppLink)||void 0===L?void 0:L.call(k,e.video),analyticsData:e.analyticsData,analyticsOptions:N,video:e.video,className:"text-reset clamp-1"}),a.createElement(v.u,{yearGroups:e.commonVideoProps.yearGroups,video:e.video,analyticsData:e.analyticsData,analyticsOptions:N,appLink:null===(x=e.getVideoAppLink)||void 0===x?void 0:x.call(e,e.video,{}),titleSize:"h4",showNewVideoIndicator:e.showNewVideoIndicator,showPadlock:!e.commonVideoProps.hasStudentExperience,titleClassName:e.titleClassName,clampLevel:2})),a.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:N,video:e.video})),"info-panel"===e.badgePosition&&a.createElement(d.c,{className:"pb-1"},!e.hideInteractiveBadge&&a.createElement(s.C,{type:s.g.Interactive,data:e.video.interactives}),a.createElement(s.C,{type:s.g.Rating,data:e.video.rating}),a.createElement(s.C,{type:s.g.ProductionYear,data:e.video.productionYear})),a.createElement("p",{className:"mb-1"},a.createElement("span",{className:E.description},e.video.description)),"info-panel"===e.badgePosition&&a.createElement(c.P,{audience:S,className:"mt-1",border:"dark"}),e.showVideoGuidance&&a.createElement(m.u,{video:e.video,analyticsData:e.analyticsData,analyticsOptions:N,containerClassName:"d-flex ".concat(E.guidance),responsiveClassName:E.responsiveGuidance,commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}w.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},85219:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},29057:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>k});var a=n(32735),r=n(80247),i=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(15611),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.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(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values,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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function w(e){var t,n,i=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.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=u[0],v=u[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===d.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,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=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)(),S=C.errors,N=C.touched,T=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=T),a.createElement(u,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(S,N,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=T),a.createElement(i.Z.Group,{className:"form-group"},!!t&&a.createElement(i.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(w,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(i.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(i.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:()=>d,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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.")}()),d=s[0],u=s[1];o(d,u)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},82146:(e,t,n)=>{n.d(t,{y:()=>p});var a=n(32735),r=n(97395),i=n(65858),o=n(83657),l=n(15611),c=n(88711),s=n(7432),d=n(11834),u=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?r._.urlBuilder(e.folder.thumbnail.url,{size:u.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)?r._.urlBuilder(y.logo.url,{size:u.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:i.Vw.Click,entity:i.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:u.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(d.oy,{name:e.folder.name,type:d.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,r=n(32735),i=n(2606),o=n(362);function l(e){var t=r.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return r.createElement("svg",null,r.createElement("circle",{r:(0,i.pu)(e.size),className:o.Z.backgroundCircle}),!(0,i.zR)(e.percentage)&&r.createElement("circle",{ref:t,r:(0,i.pu)(e.size),className:(0,i.V4)(e.percentage,e.scoreThresholds)}))}function c(e){var t,n=(0,i.Ki)(e.percentage),c=e.size||(e.layout===a.LabelInside?i.Mk.Large:i.Mk.Small),s=e.customLabel||(0,i.DV)(n);return e.layout===a.LabelOnly?r.createElement("span",{className:(0,i.IA)(n)},s):r.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===a.LabelBefore&&r.createElement("span",{className:"me-2"},s),r.createElement("div",{className:(0,i.tw)(c,n)},r.createElement(l,{percentage:n,size:c,scoreThresholds:e.scoreThresholds}),e.layout===a.LabelInside&&r.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:()=>u,tw:()=>v,zR:()=>h});var a=n(94892),r=n(362);function i(e){return i="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},i(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(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 d=o(o(o({},l.ExtraSmall,{size:2}),l.Small,{size:2}),l.Large,{size:5.8});function u(e){var t=d[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?r.Z.circleSuccess:e>=t.MODERATE?r.Z.circleWarning:r.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(r.Z.circleContainer);return e===l.Large&&(n+=" ".concat(r.Z.lgCircleContainer)),e===l.ExtraSmall&&(n+=" ".concat(r.Z.xsCircleContainer)),h(t)&&(n+=" ".concat(r.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}},90414:(e,t,n)=>{n.d(t,{r:()=>v});var a=n(32735),r=n(69776),i=n(18559),o=n(7432),l=n(11834),c=n(54610),s=n(37963),d=n(80143);const u={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(u.mask," d-flex flex-column align-items-center")},a.createElement("h3",{className:"fw-semibold mb-0 ".concat(u.hoverTitle," ").concat(e.isSmall?u.smallHoverTitle:u.largeHoverTitle)},a.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&a.createElement("p",{className:"".concat(e.hasTableOfContents?u.hasTableOfContents:""," ").concat(u.hoverDescription," ").concat(e.isSmall?u.smallHoverDescription:u.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?a.createElement(r.P,{audience:e.mergedAudience,border:"dark",className:"mt-2 w-fit"}):a.createElement(i.C,{type:i.g.Rating,data:e.series.rating,className:"mt-2"}))}function v(e){var t,n,v=(t=(0,s.L)({className:u.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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,d.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(u.labelContainer)},b?a.createElement(r.P,{audience:y,border:"white"}):a.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},56754:(e,t,n)=>{n.d(t,{I:()=>E});var a=n(32735),r=n(75896),i=n(65858),o=n(15611),l=n(83914),c=n(83345);const s={thumbnailTitle:"OsWjL"};function d(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function u(e){return e.appLink?a.createElement(o.F,{appLink:e.appLink,className:"".concat(s.thumbnailTitle)},a.createElement(d,Object.assign({},e))):a.createElement(d,Object.assign({},e))}var m=n(86348),p=n(62335),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,d,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 r.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 r=e.collection;(null===(t=r.interactives)||void 0===t?void 0:t.count)&&(a+=r.interactives.count),(null===(n=r.clips)||void 0===n?void 0:n.count)&&(a+=r.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:i.Vw.Click,entity:(d=e.collection,g.G.isType(d,v.E.Playlist)?i.py.Playlist:g.G.isType(d,v.E.Series)?i.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(u,{title:e.collection.name,appLink:e.titleAppLink})))}},6786:(e,t,n)=>{n.d(t,{L:()=>Qa});var a=n(32735),r=n(91967),i=n(20354),o=n(110),l=n(49985),c=n(65858),s=n(83914),d=n(83345),u=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=e.person.externalUrl,r=m.o.getAuthorBlogUrl(e.person.blogSlug);return r||n?a.createElement("a",{href:n||r,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,externalUrl:n,blogUrl:r},{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,u.__.Avatars,e.person.imageId,u.h2.Medium),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(d.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.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(d.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(d.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,r=t.author,i=t.lastUpdated,o=t.datePublished;return r&&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:r,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i}))):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(15611),S=n(7733),N=n(9085);var T=function(e){var t,n,r,i,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,N.x)(e.data.name,S.o),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(r=e.data)||void 0===r?void 0:r.id,name:null===(i=e.data)||void 0===i?void 0:i.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:d,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 P(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:T,extraChildComponentProps:{},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var D=n(55827),I=n(79967);var A=n(47770),M=n(68050),F=n(69111),V=n(9513),_=n(92802),U=n(23481),H=n(85219),B=n(23201),R=n(29057),z=n(82644),Z=n(91693),W=n(69883),G=n(5173),Y=G.Ry().shape({feedbackInput:G.Z_().max(5e3,(function(){return U.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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==K(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(K(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(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,i=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=i[0],l=i[1],c=(0,W.Z)();function s(t,n){return a=this,r=void 0,i=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(U.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(i||(i=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 i?a:new i((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,r||[])).next())}));var a,r,i,s}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(H.V,{emoji:"🔎"},a.createElement(d.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(d.x,{namespace:J,phrase:"yes"})),a.createElement(Z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(H.V,{emoji:"👏"},a.createElement(d.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(R.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:U.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(d.x,{namespace:J,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:U.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(H.V,{emoji:"😢"},a.createElement(d.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(R.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:U.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(d.x,{namespace:J,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:U.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(H.V,{emoji:"🙌"},a.createElement(d.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(M.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,r,i,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(F.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(C.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(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),re=n(22021),ie={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(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(F.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===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:ie}))}))))}var le=n(22171),ce=n(43741),se=n(55171),de=n(78479),ue=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,r,i=function(e,t){var n,a,r,i,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===(i=null===(r=e.classification)||void 0===r?void 0:r.cover)||void 0===i?void 0:i.url,{size:u.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,u.__.Covers,e.metadata.imageId,u.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:u.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:i?[i].concat((r=e.content,function(e){if(Array.isArray(e))return pe(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||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}}(r)||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,r,i,l,c,s,d;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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===i?void 0:i.call(r,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===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:V.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===ue.z.Classifications&&e.templateId===de.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(88241),Se="shared.subjectWidgetItem",Ne=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(Ce.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(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:r},a.createElement("label",{htmlFor:e.data.id,className:"".concat(i," ").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?U.T.getPhrase(Se,e.isVisible?"hideFromDashboard":"showOnDashboard"):U.T.getPhrase(Se,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Te=n(91028),Oe=n(16714),je=n(54569),Pe=n(49542);function De(e){return De="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},De(e)}function Ie(){Ie=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==De(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(De(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Me(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)?Me(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 Me(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 Fe="shared.editableCoverFixedPillListSmall";function Ve(e){var t,n,r,i=Ae(a.useState(!1),2),o=i[0],s=i[1],u=Ae(a.useState(!1),2),m=u[0],p=u[1],v=Pe.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,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!f,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ae(a.useState(g),2),y=h[0],b=h[1],E=Ae(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,W.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 S(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function N(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},w),n=N(e);t[e.id]={id:e.id,hidden:n,index:S(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:U.T.getPhrase(Fe,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},P=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:U.T.getPhrase(Fe,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],D=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),I=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),A={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?U.T.getPhrase(Fe,"updating"):e.name),!o&&I&&a.createElement(Ee.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},U.T.getPhrase(Fe,"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(d.x,{namespace:Fe,phrase:"editingDescription"}))),o&&I&&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(d.x,{namespace:Fe,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=Ie().mark((function t(){var n;return Ie().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(U.T.getPhrase(Fe,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:m,disabled:!O},a.createElement(d.x,{namespace:Fe,phrase:"update"})))),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},C&&a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Te.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:A,multiline:!0,highlightOnHover:null===(r=e.settings)||void 0===r?void 0:r.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(Ne,{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!0,canToggle:!N(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=S({id:t.id}),r=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=L[a];if(i){var o=Object.assign({},w);je.l.reorder(L,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}})),k(o),l.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,r;return a.createElement(F.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:Ne,childProps:{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Te.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:A,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),D&&P.map((function(t){return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Te.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({},A),{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 _e=n(11518),Ue=n(69798),He=n(78408);const Be="k2Xse";function Re(e){return a.createElement("div",{className:"".concat(Be," 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(Ue.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 ze(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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Be," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(He.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(Re,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(Re,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:u.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 Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(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 We(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}function Ge(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=U.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,r=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,r=o.O.format(a,"YYYY-MM-DD"),i=o.O.format(o.O.add(r,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"),d=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),u=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<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(r,"MMMM"),label:Ye("today")});else if(e.startDate!==i)if(e.startDate>i&&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<=d?g({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=u&&e.startDate<=m?g({group:"nextMonth",startDate:u,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:i,endDate:null,event:e,body:{text:o.O.format(i,"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=We(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 r,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,r=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw r}}}}(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]),i=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(_e.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,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.livestream)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:ze,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var $e=n(39202),Ke=n(86348),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,r=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=(t=(0,Xe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==i?void 0:i.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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.")}()),s=c[0],d=c[1];a.useEffect((function(){e.onHover(d)}),[d]);var u="eo8oY";return i.type===j.l9.LargeRow&&(u="lhqxB"),a.createElement("div",{ref:s,className:"px-1 flex-shrink-0 position-relative ".concat(u," ").concat("A7FeL")},a.createElement(Ke.u,{video:e.data,type:"expandable",appLink:e.getAppLink(r),imageOptions:{size:o},preload:l,hovering:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,commonVideoProps:e.commonVideoProps}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n=Pe.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,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(C.F,{appLink:n,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(n)},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:{commonVideoProps:e.commonVideoProps},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function rt(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 it=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===it.p.Level_1?64:128),r=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,r)},collection:r,childComponent:rt,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:r.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 dt="iCyo4",ut="cgv_6";function mt(e){var t,n,r,i,o,l,s=(0,I.k)(),d={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:d},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dt),style:{backgroundImage:"url('".concat((l=st.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:u.__.Banners},{size:u.h2.Large})),"')")}},e.name&&a.createElement("div",{className:ut},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===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text))))}function pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dt)},a.createElement("div",{className:"".concat(ut)}))}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 St(e){var t,n,r,i=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,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Ct," ").concat(e.widgetTypeId===ue.z.Blurb?Lt:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.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 Nt(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var r="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:r,openInNewTab:!0},e.cta.text):a.createElement("div",{className:r},e.cta.text)}function Tt(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(Nt,{cta:e.cta}))))}function Ot(e){var t,n,r,i=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(Tt,{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,i),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(i.banner,{fallbackBaseUrl:"",fallbackCategoryName:i.name,type:u.__.Banners},{size:u.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(r=e.metadata)||void 0===r?void 0:r.cta})}function jt(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),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===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:l},t.name)}var r=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,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Ct," ").concat(xt," px-3")},a.createElement("p",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(st.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Pt(e){switch(e.widgetTypeId){case ue.z.Blurb:return a.createElement(St,Object.assign({},e,{content:e.content}));case ue.z.Presentations:return a.createElement(jt,Object.assign({},e,{content:e.content}));default:return a.createElement(Ot,Object.assign({},e,{content:e.content}))}}function Dt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Ct)}))}function It(e){var t,n,r=st.m.first(e.content),i=(0,I.k)(),o={id:r.id,name:r.name,presentationId:r.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Tt,{heading:e.name,appLink:function(){var t,n,a,i,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===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===i?void 0:i.call(a,r);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,r);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,r)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=r.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:i.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function At(e){var t,n,r,i,o,l,s,d=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in d&&p.j.createUrl(null===(n=d.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),v="metadata"in d&&(null===(r=d.metadata)||void 0===r?void 0:r.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:"presentationId"in d&&d.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Tt,{heading:e.name,appLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,d),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:U.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(Pt,Object.assign({},e))}var Mt=n(45716),Ft=n(2158),Vt=n(38304),_t=n(40782),Ut=n(64818);var Ht="widgets.onboardingSteps",Bt=U.T.encloseNamespace(Ht);function Rt(e){var t,n,r,i,o,l,u,m,p=(0,Ft.T)(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),f=p.getPathway,g=p.hasLoadedPathway,h=g&&f(),y=Ut.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=Mt.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:Vt.m.getProgress(h)},Vt.m.getOnboardingScreenStates(h))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Vt.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(_t.O,{percentage:Math.round(w)/100,layout:_t.I.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(i=Mt.H["select-videos"])||void 0===i?void 0:i.getWidgetHeading(y):null===(o=Mt.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 r=Mt.H[e];return t===n?"".concat(Bt("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Bt("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Bt("descriptionPrefix")," ").concat(null==r?void 0:r.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===(u=e.appLinks)||void 0===u?void 0:u.onboardingStep)||void 0===m?void 0:m.call(u,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(d.x,{namespace:Ht,phrase:"completeSetup"}))))}function zt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Zt=n(17082),Wt=n(31908),Gt=n(27572);function Yt(e){var t,n,r,i,o,l,c,s,d,u=Zt.u[e.widgetTypeId],m=Pe.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:m,childComponent:Gt.U,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:Pe.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:Pe.d.showRemoveButton(e.widgetTypeId)?U.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},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!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,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(22678);function Kt(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==ue.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,r,i,o,l,c,s,d,u=Zt.u[e.widgetTypeId],m=Pe.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:m,childComponent:Gt.U,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),preventPopout:e.preventPopout,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:Pe.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:Pe.d.showRemoveButton(e.widgetTypeId)?U.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},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!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,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=function(e){var t,n,r=(t=(0,I.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(r),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")}))}))))},en=n(90414);function tn(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType: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:r},a.createElement(en.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function nn(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:tn,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)},appLink:e.seeMoreLink,showSeeMoreLink:!!e.seeMoreLink,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,headingBadgeComponent:e.badgeComponent})}const an="fgIje",rn="CJwKL";var on=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?an:rn," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function ln(e){for(var t,n,r=(t=e.type,(n=(0,I.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(on,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(D.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var cn=n(7432),sn=n(11834);function dn(e){var t,n=e.data,r=e.preloadImage,i=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(an):t+=" ".concat(rn),t)},a.createElement(cn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:r,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(sn.oy,{type:sn.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:dn,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 mn(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 pn="explore-all-topics";function vn(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?pn:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),r=Pe.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:r,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 mn(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 mn(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)?mn(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:dn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===pn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function fn(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:tn,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 gn=n(57900),hn=n(2948),yn=n(96953),bn=n(10038),En=n(16951),wn=n.n(En),kn=n(38946);function Ln(e){return Ln="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},Ln(e)}function xn(){xn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Ln(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ln(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var Cn,Sn=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},Nn="markdown-link",Tn=new kn.M2,On=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,jn=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;Tn.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(On))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(On);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return Cn?Cn.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(jn);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return Cn?Cn.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return Sn(void 0,void 0,void 0,xn().mark((function t(){var a,r;return xn().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(7887),n.e(5907)]).then(n.bind(n,85907));case 3:a=t.sent,r=a.katex,Cn=r;case 6:case"end":return t.stop()}}),t)})))}});var Pn={isLink:function(e){return e.classList.contains(Nn)},parse:function(e,t){return Sn(this,void 0,void 0,xn().mark((function n(){var a;return xn().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,Tn.parse(e,{renderer:Pn.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",wn().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new Tn.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,r=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(Nn,'" ').concat(r,">").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 In(){In=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Dn(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Dn(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mn(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)?Mn(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 Mn(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 Vn(e){var t=An((0,hn.D)("should:expand:".concat(e.id),e.isBot,{storage:gn.Z1.LocalStorage}),2),n=t[0],r=t[1],i=An(a.useState(n?"100%":Fn),2),o=i[0],d=i[1],u=An(a.useState(!n),2),m=u[0],p=u[1],f=An(a.useState(null),2),g=f[0],h=f[1],y=(0,yn.F)(),b=a.useRef(null),E=a.useRef(null),w=a.useRef(null);function k(){d(Fn),r(!1),b.current=window.setTimeout((function(){p(!0)}),500)}return a.useEffect((function(){!function(){var t,a,r,i;t=this,a=void 0,r=void 0,i=In().mark((function t(){var a;return In().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pn.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(r||(r=Promise))((function(e,n){function o(e){try{c(i.next(e))}catch(e){n(e)}}function l(e){try{c(i.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,a||[])).next())}))}()}),[e.answer]),a.useEffect((function(){"100%"===o&&w.current&&d(w.current.clientHeight+"px")}),[o]),(0,bn.H)((function(){n&&k()}),null,[n]),e.question&&g?a.createElement(Ee.L,{className:"".concat("r4X_X"," rounded-3"),onClick:function(t){var a;Pn.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),d("".concat(a.clientHeight,"px")),E.current.removeChild(a),r(!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(Pn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function _n(e){var t=st.m.first(e.content),n=t.question,r=t.answer;return a.createElement(Vn,{id:e.id,answer:r,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const Un="Jg3am";function Hn(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(Un," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function Bn(e){return Bn="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},Bn(e)}function Rn(){Rn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Bn(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Bn(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zn(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)?Zn(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 Zn(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 Wn=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function Gn(e){var t,n,r,i=zn((0,hn.D)("should:expand:".concat(e.id),e.isBot,{storage:gn.Z1.LocalStorage}),2),o=i[0],d=i[1],u=zn(a.useState(o?"100%":"0px"),2),m=u[0],p=u[1],f=zn(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,yn.F)();function w(){var t;return Wn(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"),d(!1),n.next=4,Pn.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;Wn(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,Pn.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,bn.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(r=e.faq)||void 0===r?void 0:r.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){Pn.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;Wn(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(),d(!0),n.next=4,Pn.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(Un)},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(Pn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0,className:Pn.getContainerClass()})))}function Yn(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(Gn,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}var qn=n(59359);function $n(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(qn.Z.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:qn.Z.partialIcon},a.createElement(sn.oy,{type:sn.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 Kn=n(30662);function Xn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Qn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Xn,null),a.createElement(Xn,null))}var Jn=n(22204);function ea(e){var t,n,r=st.m.first(Pe.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(Jn.J,{video:r,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,commonVideoProps:e.commonVideoProps}))}function ta(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 na(e){var t,n,r={};return e.data.fallbackBackgroundColor&&(r.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(r.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(r.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:r},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)||U.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 aa=a.memo((function(e){return e.appLink?a.createElement(C.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(na,Object.assign({},e))):a.createElement(na,Object.assign({},e))})),ra=n(2284),ia=U.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function oa(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(F.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(aa,Object.assign({},function(e){var t,n,a,r,i,o,l,s,d,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===ra.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===(r=e.item)||void 0===r?void 0:r.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===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:u.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:u.h2.Medium}),buttonText:ia("exploreTopic")}),appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const la="HwejH";var ca=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"}}))},sa=n(74801),da=n(60608),ua=n(68626),ma=n(80143);function pa(e){var t,n,r,i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),o=a.useRef(null),l={actionType:c.Vw.Click,entity:Wt.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},s=(0,ma.n)(null===(r=e.video.subjectPresentationAudiences)||void 0===r?void 0:r.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:o},a.createElement(Ke.u,{analyticsData:e.analyticsData,analyticsOptions:l,video:e.video,appLink:i,imageOptions:{size:u.h2.Medium},textPosition:ua.z.Independent,type:"static",audience:s,hideRating:!!s,commonVideoProps:Object.assign(Object.assign({},e.commonVideoProps),{subTextType:"none"})})),a.createElement(sa.h,{video:e.video,appLink:i,commonVideoProps:e.commonVideoProps}),Wt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(da.u,{commonVideoProps:e.commonVideoProps,video:e.video,analyticsData:e.analyticsData,analyticsOptions:l,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function va(e){var t=Pe.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(pa,Object.assign({key:t.id,video:t},e))}))))}function fa(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 ga=n(4594),ha=n(45778);function ya(e){return a.createElement(a.Fragment,null,a.createElement(re.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(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([ue.z.SearchRelevantTopics,ue.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==ue.z.TrendingClassifications&&e.widgetTypeId!==ue.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var r="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,i=function(e){var t,n,a,r,i,o,l,s,d,m,v,f,g,h={data:{name:e.item.name,description:e.item.description}};if(ha.G.isType(e.item,ga.E.Subject)){var y=(null===(t=e.item)||void 0===t?void 0:t.status)===ra.W.ComingSoon,b=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===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!y}),E=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),w=e.widgetTypeId===ue.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({},h),{data:Object.assign(Object.assign({},h.data),{preTitle:w,backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:u.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:u.h2.Medium})}),appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,e.item),analyticsData:b,analyticsOptions:E})}return ha.G.isType(e.item,ga.E.Company)?Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{coverUrl:p.j.createUrl(null===(m=e.item.logo)||void 0===m?void 0:m.url,{size:u.h2.Small}),backgroundColor:null===(v=e.item.metadata)||void 0===v?void 0:v.colour}),appLink:null===(g=null===(f=e.appLinks)||void 0===f?void 0:f.company)||void 0===g?void 0:g.call(f,e.item)}):h}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:r,availablePresentations:e.availablePresentations});return a.createElement(F.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(aa,Object.assign({},i)))}))))}function ba(e){var t,n,r,i,o,l,s=st.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};d&&(v.backgroundImage="url('".concat(d,"')"));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 d&&m?a.createElement(a.Fragment,null,a.createElement(C.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,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)||U.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(mt,Object.assign({},e))}var Ea=n(26339),wa=n(37845);function ka(e){var t,n,r,i,o,l,s,d,m=st.m.first(Pe.d.getVideoContent(e.content)),p=a.useRef(null),v=(0,ma.n)(null===(t=m.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),f=Wt.M.hasSeries(m)||Pe.d.isCompanyWidget(e.widgetTypeId),g={actionType:c.Vw.Click,entity:Wt.M.getAnalyticsEntity(m),location:c.LZ.ThumbnailHeroMediaWidget},h=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,y=Wt.M.getCanBeConsumed(m).canNavigate;return m?a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{ref:p},a.createElement(Ke.u,{video:m,imageOptions:{size:u.h2.Large},type:"static",textPosition:ua.z.Independent,analyticsOptions:g,audience:v,hideRating:!!v,appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.videoType)||void 0===i?void 0:i.call(r,m,{}),commonVideoProps:e.commonVideoProps})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Wt.M.isVideo(m)&&a.createElement(Ea.$,{type:Pe.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.commonVideoProps.subTextType,video:m,appLink:null===(l=(o=e.commonVideoProps).getSubTextAppLink)||void 0===l?void 0:l.call(o,m),analyticsOptions:g,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:f?"":"mt-2"},a.createElement(C.F,{appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.videoType)||void 0===d?void 0:d.call(s,m,{}),analyticsData:{id:m.id,name:m.name},analyticsOptions:Object.assign(Object.assign({},g),{descriptor:c._S.Title}),className:"d-inline-block ".concat(y?"":"cursor-default text-decoration-none disabled"),disabled:!y},a.createElement(wa.O,{video:m,yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:h,showPadlock:!e.commonVideoProps.hasStudentExperience,titleSize:"h4",className:"mb-0"})))),Wt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(da.u,{video:m,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD"),commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}function La(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:{commonVideoProps:e.commonVideoProps},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 xa(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:{commonVideoProps:e.commonVideoProps},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 Ca=n(74237),Sa=n(25023),Na=n(70621);function Ta(e){return Wt.M.isVideoType(e.data)?a.createElement(Na.b,Object.assign({},e)):a.createElement(Sa.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Ca.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Oa(e){var t,n,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:Ta,extraChildComponentProps:{imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,imageCdnUrl:e.commonVideoProps.imageCdnUrl},getChildAppLink:function(t){var n,a,i,o;return Wt.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===(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 ja=n(1860),Pa=U.T.encloseNamespace("search.searchExchangeArchiveDescription");function Da(e){return a.createElement(a.Fragment,null,Pa("searchExchangeArchiveDescription")," ",a.createElement(C.F,{appLink:e.appLink,className:"info-link"},Pa("searchExchangeArchiveLink")))}var Ia=n(75100);function Aa(e){var t;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===ue.z.SearchExchangeArchive?a.createElement(Da,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[ue.z.SearchExchangeArchive,ue.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(Ia.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,hasPermissions:e.hasPermissions,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,getAnalyticsData:e.getAnalyticsData,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video}}))}var Ma=n(12754);function Fa(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map((function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(C.F,{appLink:e.appLinks.series(t),className:"d-block mb-2",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{entity:c.py.Series,actionType:c.Vw.Click,descriptor:c._S.TallPoster,location:c.LZ.PosterFixedListLargeWidget}},a.createElement(en.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))}))))}var Va=n(82146);function _a(e){function t(t){var n,a,r;if(e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder){var i=null===(r=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===r?void 0:r.id;return e.appLinks.folder(t,{libraryId:i})}return e.appLinks.folder(t)}var n=e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(r,i){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(i):{};return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Va.y,{folder:r,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}var Ua=n(56754);function Ha(e){return Ha="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},Ha(e)}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ha(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ra,za=U.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function Za(e){var t=Ba(Ba({},ga.E.Playlist,za("playlist")),ga.E.Series,za("series")),n=Ba(Ba({},ga.E.Playlist,za("viewPlaylist")),ga.E.Series,za("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(r,i){var o,l=(o=r,ha.G.isType(o,ga.E.Playlist)?e.appLinks.playlist(o):ha.G.isType(o,ga.E.Series)?e.appLinks.series(o):void 0),s=t[null==r?void 0:r.typeId],d=n[null==r?void 0:r.typeId];return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Ua.I,{collection:r,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(i),title:null==r?void 0:r.name,titleAppLink:l,imageOptions:{size:u.h2.Medium},subText:s,subTextAppLink:l,hoverText:d,showVideoCount:!0,showMask:!0}))}))))}function Wa(e){return Wa="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},Wa(e)}function Ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=Wa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ya=(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra={},de.f.ThumbnailHeroMedia,{getComponent:function(){return ka},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(Qn,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:""}),de.f.PosterSlidingListLarge,{getComponent:function(){return nn},partialLoading:Jt,icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListMedium,{getComponent:function(){return un},partialLoading:function(){return a.createElement(ln,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case ue.z.CuratedClassifications:return vn;case ue.z.CuratedSeries:return fn;default:return vn}},partialLoading:function(){return a.createElement(ln,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ma.x.StreamableLearning)return!1;switch(n){case ue.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case ue.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),de.f.ThumbnailFeaturedMedia,{getComponent:function(){return ea},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(M.Z,null,a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(F.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(Qn,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ma.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Kn.q},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement($n,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),de.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(M.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(F.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===Ma.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:V.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ma.x.StreamableLearning?n!==ue.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:""}),de.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.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(_e.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.HeroBanner,{getComponent:function(){return mt},partialLoading:pt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.OnboardingSteps,{getComponent:function(){return Rt},partialLoading:pt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),de.f.HeroBannerSmall,{getComponent:function(){return Pt},partialLoading:Dt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroThumbnailSmall,{getComponent:function(){return At},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroBlockColourSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),de.f.ThumbnailFixedListXLarge,{getComponent:function(){return ba},partialLoading:function(){return a.createElement(pt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListLarge,{getComponent:function(){return oa},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ta(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 ta(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)?ta(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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(F.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListSmall,{getComponent:function(){return ya},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return fa(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 fa(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)?fa(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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(F.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Ve},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(M.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),de.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!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.Question,{getComponent:function(){return _n},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!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.QuestionAccordion,{getComponent:function(){return Yn},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(Hn,null),a.createElement(Hn,null),a.createElement(Hn,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return va},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.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(la," partial-loading-background rounded-3")}),a.createElement(ca,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Qn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(la," partial-loading-background rounded-3")}),a.createElement(ca,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Qn,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Yt},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",childComponent:zt,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Xt},partialLoading:function(e){return a.createElement(_e.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===Ma.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:""}),de.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,I.k)();return a.createElement(a.Fragment,null,a.createElement(D.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!==Ma.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.CircleLogoSlidingList,{getComponent:function(){return P},partialLoading:function(e){var t=8,n=(0,I.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(D.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===Ma.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,I.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(D.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===Ma.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.f.ThumbnailVerticalList,{getComponent:function(){return Aa},partialLoading:function(){return a.createElement(ja.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ma.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Oa},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return Za},partialLoading:_e.j7,icon:null,predicate:function(){return!1},className:""}),de.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return _a},partialLoading:_e.j7,icon:null,predicate:function(){return!1},className:""}),de.f.PosterFixedListLarge,{getComponent:function(){return Fa},partialLoading:Jt,icon:null,predicate:function(){return!1},className:""}),de.f.ThumbnailSlidingListSmall,{getComponent:function(){return xa},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),de.f.ThumbnailSlidingListLarge,{getComponent:function(){return La},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),qa=n(65294);const $a={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ka(e,t){if(e){if("string"==typeof e)return Xa(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)?Xa(e,t):void 0}}function Xa(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 Qa(e){var t,n,o,l,c,s,d=a.createRef(),u=(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(c,s)||Ka(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=u[0],p=u[1],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,qa.Y)({prevent:!v}),g=f.ref,h=f.inView,y=r.q.isFunction(e.getContentRequest),b=i.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),E=Pe.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,I.k)(),k=function(e,t){return!(Pe.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,E),L=!Pe.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&&d.current&&d.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,d.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}),S=y&&!b.hasCompleted||e.isEditing&&k,N=Ya[e.templateId].partialLoading,T=Ya[e.templateId].getComponent(e.widgetTypeId),O=Ya[e.templateId].className;return S||!k&&!L?a.createElement("div",{id:e.widgetTypeId===ue.z.ContinueWatching?"continue-watching-videos-widget":null,ref:d,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat($a.widgetHighlight," py-2 px-3 rounded-3"):""},Pe.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat($a.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),S?a.createElement("div",{ref:g},a.createElement(N,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(T,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 Xa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ka(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)}},27572:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),r=n(91967),i=n(86348),o=n(68626),l=n(79967),c=n(80143),s=n(40424);var d=a.memo((function(e){var t,n=e.data,d=e.context,u=e.thumbnailSize,m=e.preloadImage,p=e.presentationAudiences,v=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,f=(0,c.n)(v,p),g=(0,l.k)(),h="JSM4l";return d.type===s.l9.LargeRow&&(h="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(h)},a.createElement(i.u,{video:e.data,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,type:e.preventPopout||g.xs?"static":"popout",textPosition:o.z.Below,appLink:e.getAppLink(n),imageOptions:{size:u},preload:m,audience:f,hideRating:!!f,hideDuration:!1,onClickRemove:r.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip,commonVideoProps:e.commonVideoProps}))}))},25023:(e,t,n)=>{n.d(t,{s:()=>k,R:()=>L});var a=n(32735),r=n(39202),i=n(49985),o=n(65858),l=n(15611),c=n(11607),s=n(17848),d=n(83914),u=n(62335),m=n(36532),p=n(82308),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,r,i,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(d.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===(i=null===(r=e.data)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.resourceType)&&a.createElement(u.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,d=(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)))),u=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(){i.k.logUserAction(u,m)}var y,b=Object.assign(Object.assign({},e),{applyHoverState:d||!!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))):d?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(y," cursor-pointer d-inline"),onClick:function(){p(),r.C$.trigger(e.getAppLink(e.data))}},a.createElement(k,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:y,analyticsData:u,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)))))}))},70621:(e,t,n)=>{n.d(t,{b:()=>l});var a=n(32735),r=n(86348),i=n(68626),o=n(80143);var l=a.memo((function(e){var t,n,l=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,c=(0,o.n)(l,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(r.u,{video:e.data,preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,type:"static",appLink:e.getAppLink(e.data),imageOptions:{size:e.thumbnailSize},textPosition:i.z.Below,audience:c,hideRating:!!c,hideDuration:!1,commonVideoProps:e.commonVideoProps}))}))},94892:(e,t,n)=>{n.d(t,{T:()=>r,i:()=>a});var a={HIGH:.75,MODERATE:.5},r={HIGH:.7,MODERATE:.7}},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}}},58321:(e,t,n)=>{n.d(t,{U:()=>v});var a=n(20354),r=n(16714),i=n(39151),o=n(1666),l=n(31949),c=n(22902),s=n(37802),d=n(22490),u=n(82431),m=n(46390),p=n(27638);function v(e){var t,n,v,f=e||{},g=f.locationContext,h=f.mtv,y=f.flightNamespace,b=f.sharedPlaylist,E=(0,m.G)().isPlugin,w=(0,p.u)(g,y),k=w.setFavourite,L=w.canFavourite,x=(0,s.r)(null),C=x.hasTopicDirectories,S=x.isLoadingSettings,N=(0,c.T)(),T=N.hasPermissions,O=N.isLoaded,j=T(r.C.StudentExperience),P=a.a.useBasicFetch(i.L.config()),D=a.a.useBasicFetch(l.N.currentUser()),I=a.a.useBasicFetch((null===(t=D.data)||void 0===t?void 0:t.isAuthenticated)&&o.h.yearGroups(D.data.customerId));return{hasCommonVideoPropsCompleted:!S&&O&&P.hasCompleted&&D.hasCompleted&&(!(null===(n=D.data)||void 0===n?void 0:n.isAuthenticated)||I.hasCompleted),commonVideoProps:{subTextType:"series",getSubTextAppLink:function(e){var t;return"series"in e?b&&!(null===(t=D.data)||void 0===t?void 0:t.isAuthenticated)?null:u.j.getSeriesAppLink(e.series,{mtv:h}):null},isPlugin:E,canFavourite:L,setFavourite:k,imageCdnUrl:null===(v=P.data)||void 0===v?void 0:v.imageCdnUrl,yearGroups:I.data,getClassroomGuideAppLink:d.W.getClassroomGuideAppLink,getInteractiveGuidanceAppLink:d.W.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:d.W.getResourceGuidanceAppLink,showNewVideoIndicator:C,companyLogoFallbackUrl:null,hasStudentExperience:j}}}},79382:(e,t,n)=>{n.d(t,{Z:()=>a});const a={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},362:(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"],r=["秒","分钟","小时","天","周","个月","年"],i={},o=function(e,t){i[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),r=0;e>=l[r]&&r<l.length;r++)e/=l[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,a)[n].replace("%s",e.toString())}(a,function(e){return i[e]||i.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=r[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}))}}]);
|
|
3
|
-
//# sourceMappingURL=91-
|
|
1
|
+
/*! For license information please see 91-ad4ab33df0-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[91],{2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),r=n(2948),i=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(1666),d=n(5112),u=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,r.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(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=i.a.useBasicFetch(m.N.currentUser()),x=i.a.useBasicFetch((null===(t=L.data)||void 0===t?void 0:t.isAuthenticated)&&m.N.user(L.data.id)),C=i.a.useBasicFetch((null===(n=L.data)||void 0===n?void 0:n.isAuthenticated)&&s.h.customer(L.data.customerId)),S=i.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),N=i.a.useBasicFetch(c.x.presentation(l.R.Subject)),T=i.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),O=i.a.useBasicFetch(d.C.getUserPlaylists(new g.l)),j=i.a.useBasicFetch(u.o.mySubjectPreferences()),P=(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 D=L.hasCompleted&&x.hasCompleted&&C.hasCompleted&&S.hasCompleted&&T.hasCompleted&&N.hasCompleted&&O.hasCompleted&&j.hasCompleted&&null!==w,I=(0,v.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=x.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=r.preferredPresentationOverride||N.data;return D?o.m.getOnboardingPathway({jobTitle:i,userSettings:I.data,presentations:S.data,curriculums:T.data,preferredSubjects:j.data,preferredPresentation:l,appLink:f.O.getCurrentRoute().appLink,appLinks:e,masterUser:x.data,customer:C.data,hasPlaylist:w,hasPermissions:P,currentUser:L.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:D}}},91200:(e,t,n)=>{n.d(t,{Y:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(79382);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(r.Z,{className:"mx-n1 mb-n2"},n.map((function(e,t){return a.createElement(i.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),r=n(82602),i=n(23481),o=n(110),l=n(65858),c=n(83345),s="playlists.playlistCount";function d(e){var t=function(e){var t,n,a,r,i,o;return!!e&&(null!==(n=null===(t=e.videos)||void 0===t?void 0:t.count)&&void 0!==n?n:0)+(null!==(r=null===(a=e.interactives)||void 0===a?void 0:a.count)&&void 0!==r?r:0)+(null!==(o=null===(i=e.clips)||void 0===i?void 0:i.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 u=n(97408),m=n(97392),p=n(64818);function v(e){var t,n,r,i=e.playlist._liteOwner;if(null===(t=e.playlist._isClickViewCurated)||void 0===t?void 0:t.value)return a.createElement(m.F,null);if(!(null==i?void 0:i.id)||!(null===(n=e.currentUser)||void 0===n?void 0:n.id))return a.createElement(a.Fragment,null);if(i.id.toString()===e.currentUser.id.toString())return a.createElement(a.Fragment,null);var o="string"==typeof i.avatar?i.avatar:null===(r=i.avatar)||void 0===r?void 0:r.url;return a.createElement(u.q,{imageUrl:o,imageCdnUrl:e.imageCdnUrl,initials:p.l.getInitials(i.name,i.surname)})}var f=n(15611),g=n(69776),h=n(7432),y=n(11834),b=n(54610),E=n(80143),w=n(9085),k=n(67453),L=n(79382),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,u=(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}),S=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Playlist});return a.createElement(f.F,{appLink:e.appLink,analyticsData:C,analyticsOptions:S,title:function(){var t;return!e.data.contentModifiedDate||(null===(t=e.data._isClickViewCurated)||void 0===t?void 0:t.value)?"":i.T.getPhrase(x,"lastUpdated",{timeago:(0,r.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(d,{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&&!!u&&a.createElement(g.P,{className:"".concat(e.audienceLabelClass?e.audienceLabelClass:""," mt-1"),audience:u,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),r=n(68050),i=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(r.Z,{as:"ul",className:"list-unstyled mx-n1"},e.extraPlaylistItem&&a.createElement(i.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(i.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:()=>r.t});var a=n(91200),r=(n(31273),n(23162))},22204:(e,t,n)=>{n.d(t,{J:()=>w});var a=n(32735),r=n(68050),i=n(69111),o=n(49985),l=n(65858),c=n(69776),s=n(18559),d=n(17464),u=n(86348),m=n(60608),p=n(85784),v=n(70872),f=n(26339),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,w,k,L,x,C=null===(n=null===(t=e.video)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,S=(0,y.n)(C,e.presentationAudiences),N=o.k.mergeOptions(e.analyticsOptions,{location:l.LZ.ClassificationHero,entity:b.M.getAnalyticsEntity(e.video)}),T=a.useRef(null);return e.video?a.createElement(r.Z,null,a.createElement(i.Z,{xs:12,md:6},a.createElement("div",{ref:T},a.createElement(u.u,{analyticsOptions:N,video:e.video,appLink:null===(w=e.getVideoAppLink)||void 0===w?void 0:w.call(e,e.video,{}),imageOptions:{size:g.h2.Medium},textPosition:h.z.Independent,type:"static",audience:"thumbnail"===e.badgePosition?S:null,hideRating:"thumbnail"!==e.badgePosition||!!S,commonVideoProps:e.commonVideoProps}))),a.createElement(i.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.commonVideoProps.subTextType,appLink:null===(L=(k=e.commonVideoProps).getSubTextAppLink)||void 0===L?void 0:L.call(k,e.video),analyticsData:e.analyticsData,analyticsOptions:N,video:e.video,className:"text-reset clamp-1"}),a.createElement(v.u,{yearGroups:e.commonVideoProps.yearGroups,video:e.video,analyticsData:e.analyticsData,analyticsOptions:N,appLink:null===(x=e.getVideoAppLink)||void 0===x?void 0:x.call(e,e.video,{}),titleSize:"h4",showNewVideoIndicator:e.showNewVideoIndicator,showPadlock:!e.commonVideoProps.hasStudentExperience,titleClassName:e.titleClassName,clampLevel:2})),a.createElement(p.Q,{analyticsData:e.analyticsData,analyticsOptions:N,video:e.video})),"info-panel"===e.badgePosition&&a.createElement(d.c,{className:"pb-1"},!e.hideInteractiveBadge&&a.createElement(s.C,{type:s.g.Interactive,data:e.video.interactives}),a.createElement(s.C,{type:s.g.Rating,data:e.video.rating}),a.createElement(s.C,{type:s.g.ProductionYear,data:e.video.productionYear})),a.createElement("p",{className:"mb-1"},a.createElement("span",{className:E.description},e.video.description)),"info-panel"===e.badgePosition&&a.createElement(c.P,{audience:S,className:"mt-1",border:"dark"}),e.showVideoGuidance&&a.createElement(m.u,{video:e.video,analyticsData:e.analyticsData,analyticsOptions:N,containerClassName:"d-flex ".concat(E.guidance),responsiveClassName:E.responsiveGuidance,commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}w.defaultProps={newDurationStyle:!0,badgePosition:"thumbnail"}},85219:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},29057:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>k});var a=n(32735),r=n(80247),i=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(15611),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.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(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),f=n(35223);function g(e){var t=(0,o.u6)().values,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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function w(e){var t,n,i=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.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=u[0],v=u[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===d.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,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=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)(),S=C.errors,N=C.touched,T=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=T),a.createElement(u,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(S,N,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=T),a.createElement(i.Z.Group,{className:"form-group"},!!t&&a.createElement(i.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(w,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(i.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(i.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:()=>d,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(r.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.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.")}()),d=s[0],u=s[1];o(d,u)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},82146:(e,t,n)=>{n.d(t,{y:()=>p});var a=n(32735),r=n(97395),i=n(65858),o=n(83657),l=n(15611),c=n(88711),s=n(7432),d=n(11834),u=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?r._.urlBuilder(e.folder.thumbnail.url,{size:u.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)?r._.urlBuilder(y.logo.url,{size:u.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:i.Vw.Click,entity:i.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:u.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(d.oy,{name:e.folder.name,type:d.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,r=n(32735),i=n(2606),o=n(362);function l(e){var t=r.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return r.createElement("svg",null,r.createElement("circle",{r:(0,i.pu)(e.size),className:o.Z.backgroundCircle}),!(0,i.zR)(e.percentage)&&r.createElement("circle",{ref:t,r:(0,i.pu)(e.size),className:(0,i.V4)(e.percentage,e.scoreThresholds)}))}function c(e){var t,n=(0,i.Ki)(e.percentage),c=e.size||(e.layout===a.LabelInside?i.Mk.Large:i.Mk.Small),s=e.customLabel||(0,i.DV)(n);return e.layout===a.LabelOnly?r.createElement("span",{className:(0,i.IA)(n)},s):r.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===a.LabelBefore&&r.createElement("span",{className:"me-2"},s),r.createElement("div",{className:(0,i.tw)(c,n)},r.createElement(l,{percentage:n,size:c,scoreThresholds:e.scoreThresholds}),e.layout===a.LabelInside&&r.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:()=>u,tw:()=>v,zR:()=>h});var a=n(94892),r=n(362);function i(e){return i="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},i(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(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 d=o(o(o({},l.ExtraSmall,{size:2}),l.Small,{size:2}),l.Large,{size:5.8});function u(e){var t=d[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?r.Z.circleSuccess:e>=t.MODERATE?r.Z.circleWarning:r.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(r.Z.circleContainer);return e===l.Large&&(n+=" ".concat(r.Z.lgCircleContainer)),e===l.ExtraSmall&&(n+=" ".concat(r.Z.xsCircleContainer)),h(t)&&(n+=" ".concat(r.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}},90414:(e,t,n)=>{n.d(t,{r:()=>v});var a=n(32735),r=n(69776),i=n(18559),o=n(7432),l=n(11834),c=n(54610),s=n(37963),d=n(80143);const u={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(u.mask," d-flex flex-column align-items-center")},a.createElement("h3",{className:"fw-semibold mb-0 ".concat(u.hoverTitle," ").concat(e.isSmall?u.smallHoverTitle:u.largeHoverTitle)},a.createElement("span",{className:"clamp-3"},e.series.name)),!!e.series.description&&a.createElement("p",{className:"".concat(e.hasTableOfContents?u.hasTableOfContents:""," ").concat(u.hoverDescription," ").concat(e.isSmall?u.smallHoverDescription:u.largeHoverDescription," mb-0")},e.series.description),e.mergedAudience?a.createElement(r.P,{audience:e.mergedAudience,border:"dark",className:"mt-2 w-fit"}):a.createElement(i.C,{type:i.g.Rating,data:e.series.rating,className:"mt-2"}))}function v(e){var t,n,v=(t=(0,s.L)({className:u.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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,d.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(u.labelContainer)},b?a.createElement(r.P,{audience:y,border:"white"}):a.createElement(i.C,{type:i.g.Rating,data:e.series.rating}))))}},56754:(e,t,n)=>{n.d(t,{I:()=>E});var a=n(32735),r=n(75896),i=n(65858),o=n(15611),l=n(83914),c=n(83345);const s={thumbnailTitle:"OsWjL"};function d(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function u(e){return e.appLink?a.createElement(o.F,{appLink:e.appLink,className:"".concat(s.thumbnailTitle)},a.createElement(d,Object.assign({},e))):a.createElement(d,Object.assign({},e))}var m=n(86348),p=n(62335),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,d,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 r.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 r=e.collection;(null===(t=r.interactives)||void 0===t?void 0:t.count)&&(a+=r.interactives.count),(null===(n=r.clips)||void 0===n?void 0:n.count)&&(a+=r.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:i.Vw.Click,entity:(d=e.collection,g.G.isType(d,v.E.Playlist)?i.py.Playlist:g.G.isType(d,v.E.Series)?i.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(u,{title:e.collection.name,appLink:e.titleAppLink})))}},6786:(e,t,n)=>{n.d(t,{L:()=>Qa});var a=n(32735),r=n(91967),i=n(20354),o=n(110),l=n(49985),c=n(65858),s=n(83914),d=n(83345),u=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=e.person.externalUrl,r=m.o.getAuthorBlogUrl(e.person.blogSlug);return r||n?a.createElement("a",{href:n||r,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,externalUrl:n,blogUrl:r},{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,u.__.Avatars,e.person.imageId,u.h2.Medium),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(d.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.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(d.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(d.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,r=t.author,i=t.lastUpdated,o=t.datePublished;return r&&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:r,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i}))):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(15611),S=n(7733),N=n(9085);var T=function(e){var t,n,r,i,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,N.x)(e.data.name,S.o),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(r=e.data)||void 0===r?void 0:r.id,name:null===(i=e.data)||void 0===i?void 0:i.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:d,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 P(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:T,extraChildComponentProps:{},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var D=n(55827),I=n(79967);var A=n(47770),M=n(68050),F=n(69111),V=n(9513),_=n(92802),U=n(23481),H=n(85219),B=n(23201),R=n(29057),z=n(82644),Z=n(91693),W=n(69883),G=n(5173),Y=G.Ry().shape({feedbackInput:G.Z_().max(5e3,(function(){return U.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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==K(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(K(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(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,i=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=i[0],l=i[1],c=(0,W.Z)();function s(t,n){return a=this,r=void 0,i=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(U.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(i||(i=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 i?a:new i((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,r||[])).next())}));var a,r,i,s}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(H.V,{emoji:"🔎"},a.createElement(d.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(d.x,{namespace:J,phrase:"yes"})),a.createElement(Z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(H.V,{emoji:"👏"},a.createElement(d.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(R.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:U.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(d.x,{namespace:J,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:U.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:$},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(H.V,{emoji:"😢"},a.createElement(d.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(R.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:U.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(d.x,{namespace:J,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:U.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(H.V,{emoji:"🙌"},a.createElement(d.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(M.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,r,i,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(F.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(C.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(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),re=n(22021),ie={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(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(F.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===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:ie}))}))))}var le=n(22171),ce=n(43741),se=n(55171),de=n(78479),ue=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,r,i=function(e,t){var n,a,r,i,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===(i=null===(r=e.classification)||void 0===r?void 0:r.cover)||void 0===i?void 0:i.url,{size:u.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,u.__.Covers,e.metadata.imageId,u.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:u.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:i?[i].concat((r=e.content,function(e){if(Array.isArray(e))return pe(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||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}}(r)||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,r,i,l,c,s,d;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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===i?void 0:i.call(r,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===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:V.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===ue.z.Classifications&&e.templateId===de.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(88241),Se="shared.subjectWidgetItem",Ne=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(Ce.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(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:r},a.createElement("label",{htmlFor:e.data.id,className:"".concat(i," ").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?U.T.getPhrase(Se,e.isVisible?"hideFromDashboard":"showOnDashboard"):U.T.getPhrase(Se,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Te=n(91028),Oe=n(16714),je=n(54569),Pe=n(49542);function De(e){return De="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},De(e)}function Ie(){Ie=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==De(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(De(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Me(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)?Me(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 Me(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 Fe="shared.editableCoverFixedPillListSmall";function Ve(e){var t,n,r,i=Ae(a.useState(!1),2),o=i[0],s=i[1],u=Ae(a.useState(!1),2),m=u[0],p=u[1],v=Pe.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,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!f,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ae(a.useState(g),2),y=h[0],b=h[1],E=Ae(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,W.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 S(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function N(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},w),n=N(e);t[e.id]={id:e.id,hidden:n,index:S(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:U.T.getPhrase(Fe,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},P=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:U.T.getPhrase(Fe,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],D=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),I=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),A={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?U.T.getPhrase(Fe,"updating"):e.name),!o&&I&&a.createElement(Ee.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},U.T.getPhrase(Fe,"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(d.x,{namespace:Fe,phrase:"editingDescription"}))),o&&I&&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(d.x,{namespace:Fe,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=Ie().mark((function t(){var n;return Ie().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(U.T.getPhrase(Fe,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:m,disabled:!O},a.createElement(d.x,{namespace:Fe,phrase:"update"})))),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},C&&a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Te.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:A,multiline:!0,highlightOnHover:null===(r=e.settings)||void 0===r?void 0:r.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(Ne,{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!0,canToggle:!N(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=S({id:t.id}),r=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=L[a];if(i){var o=Object.assign({},w);je.l.reorder(L,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}})),k(o),l.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,r;return a.createElement(F.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:Ne,childProps:{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Te.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:A,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),D&&P.map((function(t){return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Te.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({},A),{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 _e=n(11518),Ue=n(69798),He=n(78408);const Be="k2Xse";function Re(e){return a.createElement("div",{className:"".concat(Be," 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(Ue.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 ze(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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Be," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(He.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(Re,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(Re,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:u.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 Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(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 We(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}function Ge(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=U.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,r=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,r=o.O.format(a,"YYYY-MM-DD"),i=o.O.format(o.O.add(r,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"),d=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),u=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<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(r,"MMMM"),label:Ye("today")});else if(e.startDate!==i)if(e.startDate>i&&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<=d?g({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=u&&e.startDate<=m?g({group:"nextMonth",startDate:u,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:i,endDate:null,event:e,body:{text:o.O.format(i,"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=We(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 r,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,r=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw r}}}}(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]),i=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(_e.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,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.livestream)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:ze,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var $e=n(39202),Ke=n(86348),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,r=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=(t=(0,Xe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==i?void 0:i.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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.")}()),s=c[0],d=c[1];a.useEffect((function(){e.onHover(d)}),[d]);var u="eo8oY";return i.type===j.l9.LargeRow&&(u="lhqxB"),a.createElement("div",{ref:s,className:"px-1 flex-shrink-0 position-relative ".concat(u," ").concat("A7FeL")},a.createElement(Ke.u,{video:e.data,type:"expandable",appLink:e.getAppLink(r),imageOptions:{size:o},preload:l,hovering:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,commonVideoProps:e.commonVideoProps}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n=Pe.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,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(C.F,{appLink:n,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(n)},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:{commonVideoProps:e.commonVideoProps},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function rt(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 it=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===it.p.Level_1?64:128),r=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,r)},collection:r,childComponent:rt,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:r.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 dt="iCyo4",ut="cgv_6";function mt(e){var t,n,r,i,o,l,s=(0,I.k)(),d={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:d},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dt),style:{backgroundImage:"url('".concat((l=st.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:u.__.Banners},{size:u.h2.Large})),"')")}},e.name&&a.createElement("div",{className:ut},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===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text))))}function pt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dt)},a.createElement("div",{className:"".concat(ut)}))}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 St(e){var t,n,r,i=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,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Ct," ").concat(e.widgetTypeId===ue.z.Blurb?Lt:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.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 Nt(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var r="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:r,openInNewTab:!0},e.cta.text):a.createElement("div",{className:r},e.cta.text)}function Tt(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(Nt,{cta:e.cta}))))}function Ot(e){var t,n,r,i=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(Tt,{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,i),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(i.banner,{fallbackBaseUrl:"",fallbackCategoryName:i.name,type:u.__.Banners},{size:u.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(r=e.metadata)||void 0===r?void 0:r.cta})}function jt(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),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===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:l},t.name)}var r=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,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Ct," ").concat(xt," px-3")},a.createElement("p",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(st.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Pt(e){switch(e.widgetTypeId){case ue.z.Blurb:return a.createElement(St,Object.assign({},e,{content:e.content}));case ue.z.Presentations:return a.createElement(jt,Object.assign({},e,{content:e.content}));default:return a.createElement(Ot,Object.assign({},e,{content:e.content}))}}function Dt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Ct)}))}function It(e){var t,n,r=st.m.first(e.content),i=(0,I.k)(),o={id:r.id,name:r.name,presentationId:r.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Tt,{heading:e.name,appLink:function(){var t,n,a,i,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===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===i?void 0:i.call(a,r);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,r);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,r)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=r.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:i.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function At(e){var t,n,r,i,o,l,s,d=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in d&&p.j.createUrl(null===(n=d.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),v="metadata"in d&&(null===(r=d.metadata)||void 0===r?void 0:r.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:"presentationId"in d&&d.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Tt,{heading:e.name,appLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,d),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:U.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(Pt,Object.assign({},e))}var Mt=n(45716),Ft=n(2158),Vt=n(38304),_t=n(40782),Ut=n(64818);var Ht="widgets.onboardingSteps",Bt=U.T.encloseNamespace(Ht);function Rt(e){var t,n,r,i,o,l,u,m,p=(0,Ft.T)(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),f=p.getPathway,g=p.hasLoadedPathway,h=g&&f(),y=Ut.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=Mt.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:Vt.m.getProgress(h)},Vt.m.getOnboardingScreenStates(h))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Vt.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(_t.O,{percentage:Math.round(w)/100,layout:_t.I.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(i=Mt.H["select-videos"])||void 0===i?void 0:i.getWidgetHeading(y):null===(o=Mt.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 r=Mt.H[e];return t===n?"".concat(Bt("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Bt("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Bt("descriptionPrefix")," ").concat(null==r?void 0:r.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===(u=e.appLinks)||void 0===u?void 0:u.onboardingStep)||void 0===m?void 0:m.call(u,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(d.x,{namespace:Ht,phrase:"completeSetup"}))))}function zt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Zt=n(17082),Wt=n(31908),Gt=n(27572);function Yt(e){var t,n,r,i,o,l,c,s,d,u=Zt.u[e.widgetTypeId],m=Pe.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:m,childComponent:Gt.U,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:Pe.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:Pe.d.showRemoveButton(e.widgetTypeId)?U.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},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!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,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(22678);function Kt(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==ue.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,r,i,o,l,c,s,d,u=Zt.u[e.widgetTypeId],m=Pe.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:m,childComponent:Gt.U,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),preventPopout:e.preventPopout,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:Pe.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:Pe.d.showRemoveButton(e.widgetTypeId)?U.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},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!==(c=null===(l=u.getCollectionAppLink)||void 0===l?void 0:l.call(u,e.appLinks,e.content))&&void 0!==c?c:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===d?void 0:d.call(s,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=function(e){var t,n,r=(t=(0,I.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(r),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")}))}))))},en=n(90414);function tn(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType: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:r},a.createElement(en.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function nn(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:tn,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)},appLink:e.seeMoreLink,showSeeMoreLink:!!e.seeMoreLink,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,headingBadgeComponent:e.badgeComponent})}const an="fgIje",rn="CJwKL";var on=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?an:rn," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function ln(e){for(var t,n,r=(t=e.type,(n=(0,I.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(on,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(D.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var cn=n(7432),sn=n(11834);function dn(e){var t,n=e.data,r=e.preloadImage,i=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(an):t+=" ".concat(rn),t)},a.createElement(cn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:r,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(sn.oy,{type:sn.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:dn,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 mn(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 pn="explore-all-topics";function vn(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?pn:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),r=Pe.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:r,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 mn(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 mn(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)?mn(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:dn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===pn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function fn(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:tn,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 gn=n(57900),hn=n(2948),yn=n(96953),bn=n(10038),En=n(16951),wn=n.n(En),kn=n(38946);function Ln(e){return Ln="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},Ln(e)}function xn(){xn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Ln(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ln(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}var Cn,Sn=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},Nn="markdown-link",Tn=new kn.M2,On=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,jn=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;Tn.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(On))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(On);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return Cn?Cn.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(jn);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return Cn?Cn.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return Sn(void 0,void 0,void 0,xn().mark((function t(){var a,r;return xn().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(7887),n.e(5907)]).then(n.bind(n,85907));case 3:a=t.sent,r=a.katex,Cn=r;case 6:case"end":return t.stop()}}),t)})))}});var Pn={isLink:function(e){return e.classList.contains(Nn)},parse:function(e,t){return Sn(this,void 0,void 0,xn().mark((function n(){var a;return xn().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,Tn.parse(e,{renderer:Pn.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",wn().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new Tn.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,r=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(Nn,'" ').concat(r,">").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 In(){In=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Dn(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Dn(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Mn(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)?Mn(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 Mn(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 Vn(e){var t=An((0,hn.D)("should:expand:".concat(e.id),e.isBot,{storage:gn.Z1.LocalStorage}),2),n=t[0],r=t[1],i=An(a.useState(n?"100%":Fn),2),o=i[0],d=i[1],u=An(a.useState(!n),2),m=u[0],p=u[1],f=An(a.useState(null),2),g=f[0],h=f[1],y=(0,yn.F)(),b=a.useRef(null),E=a.useRef(null),w=a.useRef(null);function k(){d(Fn),r(!1),b.current=window.setTimeout((function(){p(!0)}),500)}return a.useEffect((function(){!function(){var t,a,r,i;t=this,a=void 0,r=void 0,i=In().mark((function t(){var a;return In().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pn.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(r||(r=Promise))((function(e,n){function o(e){try{c(i.next(e))}catch(e){n(e)}}function l(e){try{c(i.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,a||[])).next())}))}()}),[e.answer]),a.useEffect((function(){"100%"===o&&w.current&&d(w.current.clientHeight+"px")}),[o]),(0,bn.H)((function(){n&&k()}),null,[n]),e.question&&g?a.createElement(Ee.L,{className:"".concat("r4X_X"," rounded-3"),onClick:function(t){var a;Pn.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),d("".concat(a.clientHeight,"px")),E.current.removeChild(a),r(!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(Pn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function _n(e){var t=st.m.first(e.content),n=t.question,r=t.answer;return a.createElement(Vn,{id:e.id,answer:r,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const Un="Jg3am";function Hn(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(Un," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function Bn(e){return Bn="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},Bn(e)}function Rn(){Rn=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:S(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;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(P([])));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(r,i,o,l){var c=u(e[r],e,i);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Bn(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function S(t,n,a){var r=m;return function(i,o){if(r===v)throw Error("Generator is already running");if(r===f){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=v;var s=u(t,n,a);if("normal"===s.type){if(r=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=f,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Bn(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(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,r,i){void 0===i&&(i=Promise);var o=new C(d(e,n,a,r),i);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=P,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 r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),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 r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function zn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zn(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)?Zn(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 Zn(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 Wn=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function Gn(e){var t,n,r,i=zn((0,hn.D)("should:expand:".concat(e.id),e.isBot,{storage:gn.Z1.LocalStorage}),2),o=i[0],d=i[1],u=zn(a.useState(o?"100%":"0px"),2),m=u[0],p=u[1],f=zn(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,yn.F)();function w(){var t;return Wn(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"),d(!1),n.next=4,Pn.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;Wn(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,Pn.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,bn.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(r=e.faq)||void 0===r?void 0:r.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){Pn.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;Wn(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(),d(!0),n.next=4,Pn.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(Un)},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(Pn.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0,className:Pn.getContainerClass()})))}function Yn(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(Gn,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}var qn=n(59359);function $n(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(qn.Z.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:qn.Z.partialIcon},a.createElement(sn.oy,{type:sn.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 Kn=n(30662);function Xn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Qn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Xn,null),a.createElement(Xn,null))}var Jn=n(22204);function ea(e){var t,n,r=st.m.first(Pe.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(Jn.J,{video:r,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:Wt.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,commonVideoProps:e.commonVideoProps}))}function ta(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 na(e){var t,n,r={};return e.data.fallbackBackgroundColor&&(r.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(r.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(r.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:r},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)||U.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 aa=a.memo((function(e){return e.appLink?a.createElement(C.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(na,Object.assign({},e))):a.createElement(na,Object.assign({},e))})),ra=n(2284),ia=U.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function oa(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(F.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(aa,Object.assign({},function(e){var t,n,a,r,i,o,l,s,d,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===ra.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===(r=e.item)||void 0===r?void 0:r.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===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:u.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:u.h2.Medium}),buttonText:ia("exploreTopic")}),appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const la="HwejH";var ca=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"}}))},sa=n(74801),da=n(60608),ua=n(68626),ma=n(80143);function pa(e){var t,n,r,i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),o=a.useRef(null),l={actionType:c.Vw.Click,entity:Wt.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},s=(0,ma.n)(null===(r=e.video.subjectPresentationAudiences)||void 0===r?void 0:r.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:o},a.createElement(Ke.u,{analyticsData:e.analyticsData,analyticsOptions:l,video:e.video,appLink:i,imageOptions:{size:u.h2.Medium},textPosition:ua.z.Independent,type:"static",audience:s,hideRating:!!s,commonVideoProps:Object.assign(Object.assign({},e.commonVideoProps),{subTextType:"none"})})),a.createElement(sa.h,{video:e.video,appLink:i,commonVideoProps:e.commonVideoProps}),Wt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(da.u,{commonVideoProps:e.commonVideoProps,video:e.video,analyticsData:e.analyticsData,analyticsOptions:l,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function va(e){var t=Pe.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(pa,Object.assign({key:t.id,video:t},e))}))))}function fa(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 ga=n(4594),ha=n(45778);function ya(e){return a.createElement(a.Fragment,null,a.createElement(re.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(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([ue.z.SearchRelevantTopics,ue.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==ue.z.TrendingClassifications&&e.widgetTypeId!==ue.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var r="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,i=function(e){var t,n,a,r,i,o,l,s,d,m,v,f,g,h={data:{name:e.item.name,description:e.item.description}};if(ha.G.isType(e.item,ga.E.Subject)){var y=(null===(t=e.item)||void 0===t?void 0:t.status)===ra.W.ComingSoon,b=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===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!y}),E=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),w=e.widgetTypeId===ue.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({},h),{data:Object.assign(Object.assign({},h.data),{preTitle:w,backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:u.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:u.h2.Medium})}),appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,e.item),analyticsData:b,analyticsOptions:E})}return ha.G.isType(e.item,ga.E.Company)?Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{coverUrl:p.j.createUrl(null===(m=e.item.logo)||void 0===m?void 0:m.url,{size:u.h2.Small}),backgroundColor:null===(v=e.item.metadata)||void 0===v?void 0:v.colour}),appLink:null===(g=null===(f=e.appLinks)||void 0===f?void 0:f.company)||void 0===g?void 0:g.call(f,e.item)}):h}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:r,availablePresentations:e.availablePresentations});return a.createElement(F.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(aa,Object.assign({},i)))}))))}function ba(e){var t,n,r,i,o,l,s=st.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};d&&(v.backgroundImage="url('".concat(d,"')"));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 d&&m?a.createElement(a.Fragment,null,a.createElement(C.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,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)||U.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(mt,Object.assign({},e))}var Ea=n(26339),wa=n(37845);function ka(e){var t,n,r,i,o,l,s,d,m=st.m.first(Pe.d.getVideoContent(e.content)),p=a.useRef(null),v=(0,ma.n)(null===(t=m.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),f=Wt.M.hasSeries(m)||Pe.d.isCompanyWidget(e.widgetTypeId),g={actionType:c.Vw.Click,entity:Wt.M.getAnalyticsEntity(m),location:c.LZ.ThumbnailHeroMediaWidget},h=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,y=Wt.M.getCanBeConsumed(m).canNavigate;return m?a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{ref:p},a.createElement(Ke.u,{video:m,imageOptions:{size:u.h2.Large},type:"static",textPosition:ua.z.Independent,analyticsOptions:g,audience:v,hideRating:!!v,appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.videoType)||void 0===i?void 0:i.call(r,m,{}),commonVideoProps:e.commonVideoProps})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Wt.M.isVideo(m)&&a.createElement(Ea.$,{type:Pe.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.commonVideoProps.subTextType,video:m,appLink:null===(l=(o=e.commonVideoProps).getSubTextAppLink)||void 0===l?void 0:l.call(o,m),analyticsOptions:g,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:f?"":"mt-2"},a.createElement(C.F,{appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.videoType)||void 0===d?void 0:d.call(s,m,{}),analyticsData:{id:m.id,name:m.name},analyticsOptions:Object.assign(Object.assign({},g),{descriptor:c._S.Title}),className:"d-inline-block ".concat(y?"":"cursor-default text-decoration-none disabled"),disabled:!y},a.createElement(wa.O,{video:m,yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:h,showPadlock:!e.commonVideoProps.hasStudentExperience,titleSize:"h4",className:"mb-0"})))),Wt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(da.u,{video:m,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD"),commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}function La(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:{commonVideoProps:e.commonVideoProps},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 xa(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:{commonVideoProps:e.commonVideoProps},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 Ca=n(74237),Sa=n(25023),Na=n(70621);function Ta(e){return Wt.M.isVideoType(e.data)?a.createElement(Na.b,Object.assign({},e)):a.createElement(Sa.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Ca.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Oa(e){var t,n,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:Ta,extraChildComponentProps:{imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,imageCdnUrl:e.commonVideoProps.imageCdnUrl},getChildAppLink:function(t){var n,a,i,o;return Wt.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===(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 ja=n(1860),Pa=U.T.encloseNamespace("search.searchExchangeArchiveDescription");function Da(e){return a.createElement(a.Fragment,null,Pa("searchExchangeArchiveDescription")," ",a.createElement(C.F,{appLink:e.appLink,className:"info-link"},Pa("searchExchangeArchiveLink")))}var Ia=n(75100);function Aa(e){var t;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===ue.z.SearchExchangeArchive?a.createElement(Da,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[ue.z.SearchExchangeArchive,ue.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(Ia.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,hasPermissions:e.hasPermissions,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,getAnalyticsData:e.getAnalyticsData,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video}}))}var Ma=n(12754);function Fa(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map((function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(C.F,{appLink:e.appLinks.series(t),className:"d-block mb-2",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{entity:c.py.Series,actionType:c.Vw.Click,descriptor:c._S.TallPoster,location:c.LZ.PosterFixedListLargeWidget}},a.createElement(en.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))}))))}var Va=n(82146);function _a(e){function t(t){var n,a,r;if(e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder){var i=null===(r=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===r?void 0:r.id;return e.appLinks.folder(t,{libraryId:i})}return e.appLinks.folder(t)}var n=e.widgetTypeId===ue.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(r,i){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(i):{};return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Va.y,{folder:r,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}var Ua=n(56754);function Ha(e){return Ha="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},Ha(e)}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ha(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ra,za=U.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function Za(e){var t=Ba(Ba({},ga.E.Playlist,za("playlist")),ga.E.Series,za("series")),n=Ba(Ba({},ga.E.Playlist,za("viewPlaylist")),ga.E.Series,za("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n3"},e.content.map((function(r,i){var o,l=(o=r,ha.G.isType(o,ga.E.Playlist)?e.appLinks.playlist(o):ha.G.isType(o,ga.E.Series)?e.appLinks.series(o):void 0),s=t[null==r?void 0:r.typeId],d=n[null==r?void 0:r.typeId];return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"mb-3 px-1"},a.createElement(Ua.I,{collection:r,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(i),title:null==r?void 0:r.name,titleAppLink:l,imageOptions:{size:u.h2.Medium},subText:s,subTextAppLink:l,hoverText:d,showVideoCount:!0,showMask:!0}))}))))}function Wa(e){return Wa="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},Wa(e)}function Ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=Wa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ya=(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra={},de.f.ThumbnailHeroMedia,{getComponent:function(){return ka},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(Qn,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:""}),de.f.PosterSlidingListLarge,{getComponent:function(){return nn},partialLoading:Jt,icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListMedium,{getComponent:function(){return un},partialLoading:function(){return a.createElement(ln,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),de.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case ue.z.CuratedClassifications:return vn;case ue.z.CuratedSeries:return fn;default:return vn}},partialLoading:function(){return a.createElement(ln,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ma.x.StreamableLearning)return!1;switch(n){case ue.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case ue.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),de.f.ThumbnailFeaturedMedia,{getComponent:function(){return ea},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(M.Z,null,a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(F.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(Qn,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ma.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Kn.q},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement($n,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),de.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(M.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(F.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===Ma.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:V.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ma.x.StreamableLearning?n!==ue.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:""}),de.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.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(_e.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.HeroBanner,{getComponent:function(){return mt},partialLoading:pt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),de.f.OnboardingSteps,{getComponent:function(){return Rt},partialLoading:pt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),de.f.HeroBannerSmall,{getComponent:function(){return Pt},partialLoading:Dt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroThumbnailSmall,{getComponent:function(){return At},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.HeroBlockColourSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),de.f.ThumbnailFixedListXLarge,{getComponent:function(){return ba},partialLoading:function(){return a.createElement(pt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListLarge,{getComponent:function(){return oa},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ta(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 ta(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)?ta(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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(F.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.ThumbnailFixedListSmall,{getComponent:function(){return ya},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return fa(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 fa(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)?fa(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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(F.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Ve},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(M.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.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!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),de.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!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.Question,{getComponent:function(){return _n},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!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.QuestionAccordion,{getComponent:function(){return Yn},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(Hn,null),a.createElement(Hn,null),a.createElement(Hn,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return va},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.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(la," partial-loading-background rounded-3")}),a.createElement(ca,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Qn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(la," partial-loading-background rounded-3")}),a.createElement(ca,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Qn,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Yt},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",childComponent:zt,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),de.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Xt},partialLoading:function(e){return a.createElement(_e.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===Ma.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:""}),de.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,I.k)();return a.createElement(a.Fragment,null,a.createElement(D.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!==Ma.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.CircleLogoSlidingList,{getComponent:function(){return P},partialLoading:function(e){var t=8,n=(0,I.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(D.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===Ma.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),de.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,I.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(D.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===Ma.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Ga(Ga(Ga(Ga(Ga(Ga(Ga(Ra,de.f.ThumbnailVerticalList,{getComponent:function(){return Aa},partialLoading:function(){return a.createElement(ja.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ma.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Oa},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ma.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),de.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return Za},partialLoading:_e.j7,icon:null,predicate:function(){return!1},className:"thumbnail-fixed-list-media-small-widget-template"}),de.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return _a},partialLoading:_e.j7,icon:null,predicate:function(){return!1},className:""}),de.f.PosterFixedListLarge,{getComponent:function(){return Fa},partialLoading:Jt,icon:null,predicate:function(){return!1},className:"poster-fixed-list-large-widget-template"}),de.f.ThumbnailSlidingListSmall,{getComponent:function(){return xa},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),de.f.ThumbnailSlidingListLarge,{getComponent:function(){return La},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),qa=n(65294);const $a={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ka(e,t){if(e){if("string"==typeof e)return Xa(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)?Xa(e,t):void 0}}function Xa(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 Qa(e){var t,n,o,l,c,s,d=a.createRef(),u=(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(c,s)||Ka(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=u[0],p=u[1],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,qa.Y)({prevent:!v}),g=f.ref,h=f.inView,y=r.q.isFunction(e.getContentRequest),b=i.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),E=Pe.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,I.k)(),k=function(e,t){return!(Pe.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,E),L=!Pe.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&&d.current&&d.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,d.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}),S=y&&!b.hasCompleted||e.isEditing&&k,N=Ya[e.templateId].partialLoading,T=Ya[e.templateId].getComponent(e.widgetTypeId),O=Ya[e.templateId].className;return S||!k&&!L?a.createElement("div",{id:e.widgetTypeId===ue.z.ContinueWatching?"continue-watching-videos-widget":null,ref:d,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat($a.widgetHighlight," py-2 px-3 rounded-3"):""},Pe.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat($a.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),S?a.createElement("div",{ref:g},a.createElement(N,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(T,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 Xa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ka(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)}},27572:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),r=n(91967),i=n(86348),o=n(68626),l=n(79967),c=n(80143),s=n(40424);var d=a.memo((function(e){var t,n=e.data,d=e.context,u=e.thumbnailSize,m=e.preloadImage,p=e.presentationAudiences,v=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,f=(0,c.n)(v,p),g=(0,l.k)(),h="JSM4l";return d.type===s.l9.LargeRow&&(h="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(h)},a.createElement(i.u,{video:e.data,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,type:e.preventPopout||g.xs?"static":"popout",textPosition:o.z.Below,appLink:e.getAppLink(n),imageOptions:{size:u},preload:m,audience:f,hideRating:!!f,hideDuration:!1,onClickRemove:r.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip,commonVideoProps:e.commonVideoProps}))}))},25023:(e,t,n)=>{n.d(t,{s:()=>k,R:()=>L});var a=n(32735),r=n(39202),i=n(49985),o=n(65858),l=n(15611),c=n(11607),s=n(17848),d=n(83914),u=n(62335),m=n(36532),p=n(82308),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,r,i,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(d.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===(i=null===(r=e.data)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.resourceType)&&a.createElement(u.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,d=(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)))),u=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(){i.k.logUserAction(u,m)}var y,b=Object.assign(Object.assign({},e),{applyHoverState:d||!!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))):d?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(y," cursor-pointer d-inline"),onClick:function(){p(),r.C$.trigger(e.getAppLink(e.data))}},a.createElement(k,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:y,analyticsData:u,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)))))}))},70621:(e,t,n)=>{n.d(t,{b:()=>l});var a=n(32735),r=n(86348),i=n(68626),o=n(80143);var l=a.memo((function(e){var t,n,l=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,c=(0,o.n)(l,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(r.u,{video:e.data,preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,type:"static",appLink:e.getAppLink(e.data),imageOptions:{size:e.thumbnailSize},textPosition:i.z.Below,audience:c,hideRating:!!c,hideDuration:!1,commonVideoProps:e.commonVideoProps}))}))},94892:(e,t,n)=>{n.d(t,{T:()=>r,i:()=>a});var a={HIGH:.75,MODERATE:.5},r={HIGH:.7,MODERATE:.7}},73814:(e,t,n)=>{n.d(t,{w:()=>r});var a=n(92802),r={getCustomFormControlClassName:function(e,t,n,r,i,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,r),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}}},58321:(e,t,n)=>{n.d(t,{U:()=>v});var a=n(20354),r=n(16714),i=n(39151),o=n(1666),l=n(31949),c=n(22902),s=n(37802),d=n(22490),u=n(82431),m=n(46390),p=n(27638);function v(e){var t,n,v,f=e||{},g=f.locationContext,h=f.mtv,y=f.flightNamespace,b=f.sharedPlaylist,E=(0,m.G)().isPlugin,w=(0,p.u)(g,y),k=w.setFavourite,L=w.canFavourite,x=(0,s.r)(null),C=x.hasTopicDirectories,S=x.isLoadingSettings,N=(0,c.T)(),T=N.hasPermissions,O=N.isLoaded,j=T(r.C.StudentExperience),P=a.a.useBasicFetch(i.L.config()),D=a.a.useBasicFetch(l.N.currentUser()),I=a.a.useBasicFetch((null===(t=D.data)||void 0===t?void 0:t.isAuthenticated)&&o.h.yearGroups(D.data.customerId));return{hasCommonVideoPropsCompleted:!S&&O&&P.hasCompleted&&D.hasCompleted&&(!(null===(n=D.data)||void 0===n?void 0:n.isAuthenticated)||I.hasCompleted),commonVideoProps:{subTextType:"series",getSubTextAppLink:function(e){var t;return"series"in e?b&&!(null===(t=D.data)||void 0===t?void 0:t.isAuthenticated)?null:u.j.getSeriesAppLink(e.series,{mtv:h}):null},isPlugin:E,canFavourite:L,setFavourite:k,imageCdnUrl:null===(v=P.data)||void 0===v?void 0:v.imageCdnUrl,yearGroups:I.data,getClassroomGuideAppLink:d.W.getClassroomGuideAppLink,getInteractiveGuidanceAppLink:d.W.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:d.W.getResourceGuidanceAppLink,showNewVideoIndicator:C,companyLogoFallbackUrl:null,hasStudentExperience:j}}}},79382:(e,t,n)=>{n.d(t,{Z:()=>a});const a={playlistItem:"CaRJx",playlistItemGradient:"BI7p2",playlistMetadata:"eDk1l",partialHeading:"w4lWh",ownerAvatarContainer:"JImqE"}},362:(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"],r=["秒","分钟","小时","天","周","个月","年"],i={},o=function(e,t){i[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),r=0;e>=l[r]&&r<l.length;r++)e/=l[r];return(e=Math.floor(e))>(0==(r*=2)?9:1)&&(r+=1),t(e,r,a)[n].replace("%s",e.toString())}(a,function(e){return i[e]||i.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=r[~~(t/2)];return[e+" "+n+"前",e+" "+n+"后"]}))}}]);
|
|
3
|
+
//# sourceMappingURL=91-ad4ab33df0-lite.chunk.js.map
|