@clickview/lite 0.50.2 → 0.50.3
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/scripts/{1437-5b1889cf0d-lite.chunk.js → 1437-f76bfeecb0-lite.chunk.js} +1 -1
- package/dist/scripts/{1437-5b1889cf0d-lite.chunk.js.map → 1437-f76bfeecb0-lite.chunk.js.map} +1 -1
- package/dist/scripts/9839-8d44a3235c-lite.chunk.js +3 -0
- package/dist/scripts/9839-8d44a3235c-lite.chunk.js.map +1 -0
- package/dist/scripts/{bundle-83d3367a0c.min.js → bundle-2535722aa2.min.js} +3 -3
- package/dist/scripts/{bundle-83d3367a0c.min.js.map → bundle-2535722aa2.min.js.map} +1 -1
- package/package.json +1 -1
- package/dist/scripts/9839-5befd54d51-lite.chunk.js +0 -3
- package/dist/scripts/9839-5befd54d51-lite.chunk.js.map +0 -1
- /package/dist/scripts/{9839-5befd54d51-lite.chunk.js.LICENSE.txt → 9839-8d44a3235c-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-83d3367a0c.min.js.LICENSE.txt → bundle-2535722aa2.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 9839-8d44a3235c-lite.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[9839],{29711:(e,t,n)=>{n.d(t,{X:()=>N});var a=n(32735),i=n(110),r=n(23481),o=n(49439);const l={cellDate:"qcD_n",label:"sp6Gw",isHovering:"_6xWx",numberWrapper:"KZfe0"};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var s=r.T.encloseNamespace("specialEventCalendar.calendarCellDate");function d(e){var t=i.O.isToday(e.date),n="".concat(l.cellDate," d-flex flex-nowrap");t&&(n+=" bg-dark text-white"),e.notCurrentMonth&&!e.isHovering&&(n+=" text-secondary"),e.hasEvent&&(n+=" text-white"),e.className&&(n+=" ".concat(e.className));var r,d,u=(r=(0,o.L)({delay:250}),d=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(r,d)||function(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}(r,d)||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];return a.createElement("div",{className:"".concat(n," ").concat(p?l.isHovering:""),ref:m},a.createElement("div",{className:"".concat(l.numberWrapper," ").concat("d-flex text-center justify-content-center align-items-center flex-shrink-0")},i.O.format(e.date,"D")),t&&a.createElement("div",{className:"".concat(l.label," justify-content-start align-items-center")},s("today")))}var u=n(49985),m=n(65858),p=n(84963),v=n(12324),g=n(36848),f=n(11607),y=n(36518),h=n(44435),b=n(83914),E=n(2284),k=n(35223);const L={hardcodedCover:"ByD0q",tag:"ZHW8B",date:"AKOWh",backgroundImage:"RDtch",eventCard:"YtMiS",wrapper:"ylxwf",left:"iTqxB",right:"bUUXX",noAnimation:"oZacR",cover:"kpH3Y",tagWrap:"KvlZ8",appear:"xlSdc",displayDate:"rkBJb",title:"c4_Kj",titleText:"nRMvg",circle:"wu4hg",active:"tbdFj",arrow:"omZKz",bottomBar:"hxKUP",bottomPlaceholder:"dzeZ7",multiEventFilter:"dSxjc"};function w(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 x(e){var t,n,r,o,l,c,s=e.sliderStep,x=e.setSliderStep,C=e.eventsOnDay.length>1,N=e.eventsOnDay.find((function(e,t){return t===s})),O=!!N.endDate,S=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,N.content),T=null===(n=e.getHardCodedEvent)||void 0===n?void 0:n.call(e,N.content),D=null===(r=e.getIconUrl)||void 0===r?void 0:r.call(e,N.content),j=null===(o=e.getCoverUrl)||void 0===o?void 0:o.call(e,N.content),A=N.content.status===E.W.ComingSoon,I=(l=a.useState(e.hasInitialized?L.appear:""),c=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(l,c)||function(e,t){if(e){if("string"==typeof e)return w(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)?w(e,t):void 0}}(l,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),P=I[0],F=I[1];a.useEffect((function(){if(!e.hasInitialized){var t=Math.floor(600*Math.random()+400);window.setTimeout((function(){F(L.appear),window.setTimeout((function(){e.setHasInitialized(!0)}),400)}),t)}}),[e.hasInitialized]),a.useEffect((function(){e.isHovering&&e.setHoveredEvent(N)}),[e.isHovering,N]),a.useEffect((function(){return function(){var t;e.isHovering&&(null===(t=e.hoveredEvent)||void 0===t?void 0:t.specialEventId)===N.specialEventId&&e.setHoveredEvent(null)}}),[e.isHovering,e.hoveredEvent,N]);var M=function(){var t={date:i.O.format(e.date,"YYYY-MM-DD"),presentationId:e.presentationId,eventCount:e.eventsOnDay.length};return C?(t.eventId=e.eventsOnDay.map((function(e){return e.specialEventId})).join(","),t.topicId=e.eventsOnDay.map((function(e){return e.content.id})).join(",")):(t.eventId=N.specialEventId,t.topicId=N.content.id,t.eventStatus=N.content.status),t}(),R={actionType:m.Vw.Click,entity:m.py.SpecialEvent,location:m.LZ.CalendarDay};function U(e){return i.O.format(e,"YYYY-MM-DD")}function H(){return"".concat(e.className," ").concat(P," ")+[T?"".concat(L.hardcodedCover," position-absolute"):L.backgroundImage,D?"my-auto":L.cover,A?L.comingSoon:"",e.hasInitialized?L.noAnimation:"",e.isHovering?"rounded-3":"",e.isMultiEventDate?L.multiEventFilter:"","company"in N.content?"rounded-circle":""].join(" ")}return a.createElement("div",{onClick:function(){A&&u.k.logUserAction(M,R)}},a.createElement(g.F,{appLink:function(){var t,n;return C?null===(t=e.getEventsListAppLink)||void 0===t?void 0:t.call(e):A?null:null===(n=e.getTopicAppLink)||void 0===n?void 0:n.call(e,N.content.id,N.name)}(),className:"d-flex justify-content-end",analyticsOptions:R,analyticsData:M},a.createElement("div",{className:"".concat(L.tagWrap," p-1")},A&&a.createElement(p.r,{className:"justify-content-center p-0 rounded-circle ".concat(L.tag," ").concat(P),onlyIcon:!0})),!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth,className:"".concat(L.date," ").concat(P),isHovering:e.isHovering,hasEvent:!0}),a.createElement("div",{className:"postion-relative ".concat(L.wrapper)},a.createElement("div",{style:{backgroundColor:S},className:"position-absolute d-flex flex-column justify-content-end align-items-center text-white px-1 pt-2 pb-1 ".concat(L.eventCard," ").concat(P," ").concat(e.isHovering?"rounded-3":""," ").concat(e.isMultiEventDate?L.multiEventFilter:""," ").concat(e.className)},D&&a.createElement(y.w,{src:D,alt:N.content.name,className:H()}),j&&!D&&a.createElement("div",{style:{backgroundImage:"url('".concat(j,"')")},className:H()}),O&&a.createElement("div",{className:"".concat(L.displayDate)},v.T.getDisplayDate(N.startDate,N.endDate)),a.createElement("div",{className:"text-center ".concat(L.title," ").concat(C?"mb-1":"mb-2")},a.createElement("div",{className:"".concat(L.titleText," ").concat(e.isHovering?"mb-0":"clamp-2"," h6"),title:N.name},N.name)),C&&0!==s&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.left)},a.createElement(f.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e-1})),u.k.logUserAction({date:U(e.date),action:"previous",eventCount:e.eventsOnDay.length},R)}},a.createElement(b.x,{svgName:k.vn.ChevronLeft,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),C&&s!==e.eventsOnDay.length-1&&a.createElement("div",{className:"position-absolute bg-white rounded-circle ".concat(L.right)},a.createElement(f.L,{onClick:function(t){t.stopPropagation(),t.preventDefault(),x((function(e){return e+1})),u.k.logUserAction({date:U(e.date),action:"next",eventCount:e.eventsOnDay.length},R)}},a.createElement(b.x,{svgName:k.vn.ChevronRight,className:"d-inline-block svg-container text-dark ".concat(L.arrow)}))),C&&a.createElement("div",{className:"d-flex ".concat(L.bottomBar," ").concat(C?"":L.bottomPlaceholder)},a.createElement(h.e,{sliderStep:s,sliderLength:e.eventsOnDay.length,size:"sm",className:"".concat(e.isHovering?"mb-2":"mb-1"),onSliderDotClick:function(t){x(t),u.k.logUserAction({date:U(e.date),action:"jump",eventCount:e.eventsOnDay.length},R)}}))))))}const C={cell:"nsEjO",multiEventCell:"vvFYj",fadeIn:"BX0cX"};function N(e){var t,n,r=a.useMemo((function(){var t,n,a,r;return(null===(t=e.hoveredEvent)||void 0===t?void 0:t.endDate)&&!i.O.isSame(e.date,null===(n=e.hoveredEvent)||void 0===n?void 0:n.startDate)&&i.O.isBetween(i.O.format(e.date,"YYYY-MM-DD"),null===(a=e.hoveredEvent)||void 0===a?void 0:a.startDate,null===(r=e.hoveredEvent)||void 0===r?void 0:r.endDate)}),[e.hoveredEvent]),o=e.hoveredEvent?null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.hoveredEvent.content):null;return a.createElement("div",{className:"".concat(C.cell," fw-semibold")},!e.hideDay&&a.createElement(d,{date:e.date,notCurrentMonth:e.notCurrentMonth}),r&&a.createElement("div",{style:{backgroundColor:o},className:C.multiEventCell}),(null===(n=e.eventsOnDay)||void 0===n?void 0:n.length)>0&&a.createElement(x,Object.assign({},e,{isMultiEventDate:r})))}},84963:(e,t,n)=>{n.d(t,{r:()=>d});var a=n(32735),i=n(23481),r=n(83914),o=n(76177),l=n(35223);const c={tag:"XRj8d",tooltip:"X6mLk"};var s="specialEventCalendar.comingSoonTag";function d(e){return a.createElement(o.u,{title:i.T.getPhrase(s,"tooltip"),spanHackClassName:"d-block ".concat(c.tooltip),spanHack:!0},a.createElement("div",{className:"d-flex text-dark align-items-center ".concat(c.tag," ").concat(e.className)},a.createElement(r.x,{svgName:l.vn.Timer}),!e.onlyIcon&&i.T.getPhrase(s,"comingSoon")))}},73679:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(36848);const r={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(i.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(r.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(r.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return r.bodyRange;case"day":return r.bodyDay;case"month":return r.bodyMonth}}()," ").concat(r.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(r.month)},e.month)))}},12324:(e,t,n)=>{n.d(t,{T:()=>i});var a=n(110),i={getDisplayDate:function(e,t){return t?e.slice(5,7)!==t.slice(5,7)?"".concat(a.O.format(e,"D MMM")," - ").concat(a.O.format(t,"D MMM")):"".concat(a.O.format(e,"D")," - ").concat(a.O.format(t,"D")," ").concat(a.O.format(e,"MMM")):a.O.format(e,"D MMM")},getEventsInMonth:function(e,t){return e.filter((function(e){return a.O.format(e.startDate,"YYYY-MM")===a.O.format(t,"YYYY-MM")}))},getOrdinalDate:function(e){return"".concat(a.O.getLocalDateOrdinal(a.O.get(e,"date"))," ").concat(a.O.format(e,"MMMM"))}}},2158:(e,t,n)=>{n.d(t,{T:()=>y});var a=n(32735),i=n(2948),r=n(20354),o=n(38304),l=n(25925),c=n(21750),s=n(5112),d=n(61699),u=n(31949),m=n(22902),p=n(37802),v=n(75795),g=n(33857);function f(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,h=(n=(0,i.D)("has:playlist",null),y=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(n,y)||function(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}(n,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=h[0],E=h[1],k=r.a.useBasicFetch(u.N.currentUser()),L=r.a.useBasicFetch((null===(t=k.data)||void 0===t?void 0:t.isAuthenticated)&&u.N.user(k.data.id)),w=r.a.useBasicFetch(c.x.availablePresentations(l.R.Subject)),x=r.a.useBasicFetch(c.x.presentation(l.R.Subject)),C=r.a.useBasicFetch(c.x.availablePresentations(l.R.Curriculum)),N=r.a.useBasicFetch(s.C.getUserPlaylists(new g.l)),O=r.a.useBasicFetch(d.o.mySubjectPreferences()),S=(0,m.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;N.hasCompleted&&b!==!!(null===(t=null===(e=N.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&E(!!(null===(a=null===(n=N.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[N.hasCompleted]);var T=k.hasCompleted&&L.hasCompleted&&w.hasCompleted&&C.hasCompleted&&x.hasCompleted&&N.hasCompleted&&O.hasCompleted&&null!==b,D=(0,p.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=L.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),l=i.preferredPresentationOverride||x.data;return T?o.m.getOnboardingPathway({jobTitle:r,userSettings:D.data,presentations:w.data,curriculums:C.data,preferredSubjects:O.data,preferredPresentation:l,appLink:v.O.getCurrentRoute().appLink,appLinks:e,masterUser:L.data,hasPlaylist:b,hasPermissions:S,currentUser:k.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:T}}},98364:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},38365:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>L});var a=n(32735),i=n(80247),r=n(80130),o=n(92802),l=n(91967),c=n(1048),s=n(36848),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 i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(k,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v=n(73814),g=n(35223);function f(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const y={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};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}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function k(e){var t,n,r=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,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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}}(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],f=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f),a.createElement("div",{className:y.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f);var E="position-relative ".concat(y.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(y.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===d.type&&a.createElement(m.x,{svgName:"password"===p?g.vn.VisibleOn:g.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(y.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function L(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=e.infoTooltipPlacement,h=e.infoText,L=e.formSize,w=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),C=(0,o.u6)(),N=C.errors,O=C.touched,S=function(){};if("checkbox"===x.type){var T=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(T.onChange=S),a.createElement(u,Object.assign({},T))}var D=Object.assign(Object.assign({},x),{className:v.w.getCustomFormControlClassName(N,O,x.name,L,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=S),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(y.infoTooltip),svgName:g.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),w&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(f,{fieldName:x.name,limit:x.maxLength}))),a.createElement(k,Object.assign({},D)),!!h&&a.createElement(r.Z.Text,{className:"text-secondary"},h),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(r.Z.Control.Feedback,{type:"invalid"},e)})))}k.defaultProps={autoComplete:"off"},L.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>d,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,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(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];o(d,u)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},75891:(e,t,n)=>{n.d(t,{C:()=>p});var a=n(32735),i=n(86073),r=n(54610),o=n(1164),l=n(67453),c=n(45778),s=n(75163);const d={imageStyle:"FFgf3",imageTypeResource:"z4O5p",fallBackImage:"Xy4zX"};var u={width:200,resizeType:r.Nq.Cover};function m(e){var t;return c.G.isResource(e)?e.metadata.type===o.L.Pdf||(null===(t=e.pdf)||void 0===t?void 0:t.url)?r.__.Pdf:r.__.Thumbnails:r.__.Link}function p(e){var t,n,p,v=null,g=0;c.G.isResource(e.resource)&&(v=e.resource.metadata,g=null!==(p=null===(n=null===(t=e.resource.thumbnail)||void 0===t?void 0:t.metadata)||void 0===n?void 0:n.rotation)&&void 0!==p?p:0);var f=function(e,t){var n,a,s,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,p=m(t);if("thumbnail"in t&&(null===(n=t.thumbnail)||void 0===n?void 0:n.url))return l.j.createUrl(null===(a=t.thumbnail)||void 0===a?void 0:a.url,Object.assign({},d));var v=i._.safeUrlConcat(e,"/v1/previews");return c.G.isResource(t)?p===r.__.Pdf?t.metadata.type===o.L.Pdf?l.j.createResourceImage(v,t.url,Object.assign({},d)):l.j.createResourceImage(v,null===(s=t.pdf)||void 0===s?void 0:s.url,Object.assign({},d)):t.metadata.type!==o.L.Zip?l.j.createUrl(t.url,{size:r.h2.Medium,resizeType:r.Nq.Cover}):"/images/zip-resource.png":l.j.createResourceImage(v,t.url,Object.assign({},d))}(e.imageCdnUrl,e.resource,e.dynamicRatioImageOptions);return a.createElement(s.Z,{data:f,imageType:m(e.resource),imageStyle:{transform:"rotate(".concat(g,"deg)")},alt:e.resource.name,errorFallbackImageSrc:e.imageErrorFallbackUrl,errorFallbackImageClassName:d.fallBackImage,imageClassName:(null==v?void 0:v.type)===o.L.Image?"".concat(d.imageTypeResource," ").concat(d.imageStyle):"",preload:e.preloadImage,preventLoad:!e.preloadImage})}},74696:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(d,Object.assign({},e)))})))}function d(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},97717:(e,t,n)=>{n.d(t,{L:()=>Ga});var a=n(32735),i=n(91967),r=n(20354),o=n(5281),l=n(65858),c=n(36848),s=n(7733),d=n(54610),u=n(9085),m=n(67453);var p=function(e){var t,n,i,r=m.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),o=(0,u.x)(e.data.name,s.o),p=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),v=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.CircleLogoSlidingListWidget,actionType:l.Vw.Click,entity:l.py.Company});return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:p,analyticsOptions:v},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))},v=n(58704),g=n(40424);function f(e){var t;return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.Companies,collection:e.content,childComponent:p,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var y=n(55827),h=n(79967);var b=n(47770),E=n(68050),k=n(69111),L=n(9513),w=n(92802),x=n(23481),C=n(98364),N=n(23201),O=n(38365),S=n(82644),T=n(10874),D=n(83345),j=n(69883),A=n(35223),I=n(5173),P=I.Ry().shape({feedbackInput:I.Z_().max(5e3,(function(){return x.T.getPhrase("shared.feedbackForm","tooLong")}))});const F={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function M(e){return M="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},M(e)}function R(){R=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:N(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",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=y.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==M(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(M(t)+" is not iterable")}return h.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:h,configurable:!0}),h.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):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),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),f}},t}function U(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 H=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},V="shared.feedbackForm";function B(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return U(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)?U(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],l=r[1],c=(0,j.Z)();function s(t,n){return H(this,void 0,void 0,R().mark((function a(){return R().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(x.T.getPhrase(V,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})))}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:F.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(F.text)},a.createElement(C.V,{emoji:"🔎"},a.createElement(D.x,{namespace:V,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(T.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:A.vn.ThumbsUp},a.createElement(D.x,{namespace:V,phrase:"yes"})),a.createElement(T.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:A.vn.ThumbsDown},a.createElement(D.x,{namespace:V,phrase:"no"})))):"yes"===o?a.createElement(S.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:P},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(C.V,{emoji:"👏"},a.createElement(D.x,{namespace:V,phrase:"happyFeedback"}))),a.createElement(O.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(V,"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:V,phrase:"back"})),a.createElement(N.A,{variant:"dark",submitText:x.T.getPhrase(V,"sendFeedback")})))):"no"===o?a.createElement(S.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:P},a.createElement(w.l0,{className:F.form},a.createElement("p",{className:"fw-semibold ".concat(F.text)},a.createElement(C.V,{emoji:"😢"},a.createElement(D.x,{namespace:V,phrase:"unhappyFeedback"}))),a.createElement(O.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:x.T.getPhrase(V,"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:V,phrase:"back"})),a.createElement(N.A,{variant:"dark",submitText:x.T.getPhrase(V,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(C.V,{emoji:"🙌"},a.createElement(D.x,{namespace:V,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const W={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function G(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(W.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(E.Z,{className:"mb-2 w-100"},e.content.map((function(t){var n,i,r,o=m.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(k.Z,{key:t.id,xs:12,sm:6,lg:4},a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(W.imageContainer," me-2")},a.createElement("div",{className:"".concat(W.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(B,{onSubmit:e.onSubmitFeedback}))}var Y=n(98981),_=n(88513),z={actionType:l.Vw.Click,entity:l.py.Playlist,location:l.LZ.PlaylistListItem,descriptor:l._S.Cover};function Z(e){return a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(Y.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),z)}))}))))}var q=n(16450),X=n(43741),Q=n(55171);function K(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 $(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function J(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ee(e){var t,n,i=function(e,t){var n,a;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===g.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:m.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:$(t)}:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===g.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:m.j.createUrl(Q.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),r=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===g.OL.ClassificationLatestReleases;return a.createElement(q.e,{collection:i?[i].concat((n=e.content,function(e){if(Array.isArray(e))return K(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 K(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)?K(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,o,l,c;return t.id===g.OL.ExploreAllTopics?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,t):r?null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classificationLatestReleases)||void 0===o?void 0:o.call(i,t):null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classification)||void 0===c?void 0:c.call(l,t)}(t)},childComponent:L.Vz,partialLoadingComponent:X.Q,heading:e.name,getSubtitle:r?J:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}var te=n(65163),ne=n(98269),ae=n(1048),ie=n(49985),re=n(11607),oe=n(17808),le=n(1287),ce=n(2102),se=n(83914),de=n(83523),ue=n(92038),me="shared.subjectWidgetItem",pe=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(ue.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(ue.Z.widgetItem," ").concat(ue.Z.draggingItem),style:ae.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(ue.Z.widgetItem),style:ae.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(ue.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(se.x,{svgName:A.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("h3",{className:"".concat(r," ").concat(e.isVisible?"":"text-secondary")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(de.Z,{on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?x.T.getPhrase(me,e.isVisible?"hideFromDashboard":"showOnDashboard"):x.T.getPhrase(me,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),ve=n(91028),ge=n(16714),fe=n(54569),ye=n(49542);function he(e){return he="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},he(e)}function be(){be=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:N(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",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(j([])));L&&L!==n&&a.call(L,o)&&(E=L);var w=b.prototype=y.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==he(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 r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(he(t)+" is not iterable")}return h.prototype=b,i(w,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:h,configurable:!0}),h.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),s(w,c,"Generator"),s(w,o,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):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),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:j(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),f}},t}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(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)?ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Le="shared.editableCoverFixedPillListSmall";function we(e){var t,n=Ee(a.useState(!1),2),i=n[0],r=n[1],o=Ee(a.useState(!1),2),c=o[0],s=o[1],d=ye.d.useGetContent(e.content,e.preferences).unfilteredContent,u=a.useMemo((function(){return d.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)}))}),[d]),m=a.useMemo((function(){var e;return null!==(e=null==d?void 0:d.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!u,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,u]),p=Ee(a.useState(m),2),v=p[0],g=p[1],f=Ee(a.useState(m),2),y=f[0],h=f[1],b=a.useMemo((function(){return i?d.sort((function(e,t){return y[e.id].index-y[t.id].index})):d.filter((function(e){var t;return!(null===(t=v[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return v[e.id].index-v[t.id].index}))}),[d,y,v,i]),L=(0,j.Z)();a.useEffect((function(){r(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var w=a.useMemo((function(){return!(i||!b.length)&&Object.values(y).some((function(e){return e.hidden}))}),[i,y]);function C(e){return y[e.id]?y[e.id].index:b.findIndex((function(t){return t.id===e.id}))}function N(e){var t;return!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)}function O(e){var t=Object.assign({},y),n=N(e);t[e.id]={id:e.id,hidden:n,index:C(e)},ie.k.logUserAction({id:e.id,name:e.name},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Hide,descriptor:n?l.DL.On:l.DL.Off}),h(t)}var S=a.useMemo((function(){return!ae.t.isEqual(m,y)}),[m,y]),T={id:e.presentation.id,name:x.T.getPhrase(Le,"exploreAll"),cover:e.presentation.cover},A=e.hasLocalPermissions(ge.E.ManageDiscoverPreferences);return b.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},i?x.T.getPhrase(Le,"updating"):e.name),!i&&A&&a.createElement(re.L,{className:"hover-text-underline",onClick:function(){return r(!0)}},x.T.getPhrase(Le,"edit"))),!!e.description&&!i&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),i&&a.createElement("p",{className:"description mb-2"},a.createElement(D.x,{namespace:Le,phrase:"editingDescription"}))),i&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ne.Z,{variant:"link",className:"me-2",onClick:function(){h(v),r(!1)}},a.createElement(D.x,{namespace:Le,phrase:"cancel"})),a.createElement(ce.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=be().mark((function t(){var n;return be().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s(!0),n=u?d.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(v),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(y)).then((function(){g(y),s(!1),r(!1)})).catch((function(){s(!1),L.error(x.T.getPhrase(Le,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:c,disabled:!S},a.createElement(D.x,{namespace:Le,phrase:"update"})))),a.createElement(E.Z,{className:"mx-n1 mb-n2"},w&&a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(ve.V,{data:T,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})),a.createElement(oe.Q,{ids:b.map((function(e){return e.id})),getDragOverlay:function(e){var t=b.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(pe,{data:t,onToggleVisibility:O,isVisible:N(t),isDragging:!0,canToggle:!N(t)||Object.values(y).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=b.find((function(t){return t.id.toString()===e.active.id.toString()})),n=b.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));ie.k.logUserAction({id:t.id,name:t.name,index:n},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=C({id:t.id}),i=b.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=b[a];if(r){var o=Object.assign({},y);fe.l.reorder(b,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}})),h(o),ie.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:l.LZ.EditableSubjectPreferencesWidget,entity:l.py.Classification,actionType:l.Vw.Move,workflowPhase:l.eu.Complete})}}},vertical:!1},b.map((function(t){return a.createElement(k.Z,{className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,i?a.createElement(le.W,{id:t.id,childComponent:pe,childProps:{data:t,onToggleVisibility:O,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(y).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(ve.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,multiline:!0})))}))))):a.createElement(a.Fragment,null)}var xe=n(110),Ce=n(11518),Ne=n(29711),Oe=n(73679);const Se={dateItemContainer:"Hrx2m",container:"k2Xse"};var Te=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function De(e){return a.createElement("div",{className:"".concat(Se.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Ne.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,hideDay:!0})))}function je(e){var t=e.data,n=Te(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Se.container," ").concat(Se.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Oe.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Url,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(De,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})})):a.createElement(De,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 m.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return Q.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:l.py.SpecialEvent,actionType:l.Vw.Click,location:l.LZ.EventIconSlidingListWidget})}))}function Ae(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ie(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 Ie(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}}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}var Fe=x.T.encloseNamespace("widgets.eventIconSlidingList");function Me(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=Ae(t===g.VH.Livestream?e.map((function(e){return{id:e.id,startDate:xe.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=xe.O.format(a,"YYYY-MM-DD"),r=xe.O.format(xe.O.add(i,1,"day"),"YYYY-MM-DD"),o=xe.O.format(xe.O.add(xe.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),l=xe.O.format(xe.O.add(o,6,"days"),"YYYY-MM-DD"),c=xe.O.format(xe.O.startOf(a,"month"),"YYYY-MM-DD"),s=xe.O.format(xe.O.endOf(a,"month"),"YYYY-MM-DD"),d=xe.O.format(xe.O.startOf(xe.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),u=xe.O.format(xe.O.endOf(xe.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=xe.O.format(xe.O.startOf(xe.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),p=xe.O.format(xe.O.endOf(xe.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=new Map;function f(e){if(v.has(e.group)){var t=v.get(e.group);v.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ae(t.events),[e.event])}))}else v.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)f({group:"today",startDate:i,endDate:null,event:e,body:{text:xe.O.format(i,"DD"),type:"day"},monthLabel:xe.O.format(i,"MMMM"),label:Fe("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<o){var t=xe.O.format(e.startDate,"dddd");f({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:xe.O.format(e.startDate,"MMMM"),body:{text:xe.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=l?f({group:"nextWeek",startDate:o,endDate:l,event:e,monthLabel:xe.O.isSame(o,l,"month")?xe.O.format(o,"MMMM"):"".concat(xe.O.format(o,"MMM")," - ").concat(xe.O.format(l,"MMM")),body:{text:"".concat(xe.O.format(o,"DD"),"-").concat(xe.O.format(l,"DD")),type:"range"},label:Fe("nextWeek")}):e.startDate>=c&&e.startDate<=s?f({group:"thisMonth",startDate:c,endDate:s,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("thisMonth")}):e.startDate>=d&&e.startDate<=u?f({group:"nextMonth",startDate:d,endDate:u,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("nextMonth")}):e.startDate>=m&&e.startDate<=p&&f({group:"later",startDate:m,endDate:p,event:e,monthLabel:"",body:{text:xe.O.format(e.startDate,"MMM"),type:"month"},label:Fe("later")});else f({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:xe.O.format(r,"DD"),type:"day"},monthLabel:xe.O.format(e.startDate,"MMMM"),label:Fe("tomorrow")})}));var y,h=[],b=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ie(e))){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}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,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}(v.values());try{for(b.s();!(y=b.n()).done;){var E=y.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:xe.O.format(E.startDate,"MMMM"),appLinkYear:xe.O.format(E.startDate,"YYYY"),type:"date-widget-item"};h.push(k),E.events.forEach((function(e){h.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return h}(e.content,e.contentType)}),[e.content]),r=e.contentType===g.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(Ce.kM,{name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:g.l9.Row,contents:v.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:je,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var Re=n(39202),Ue=n(89118),He=n(49439);function Ve(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 Be=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,He.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===g.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Ve(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)?Ve(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.")}()),d=s[0],u=s[1];a.useEffect((function(){e.onHover(u)}),[u]);var m="eo8oY";return o.type===g.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:d,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Ue.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:u,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const We="eSMIx",Ge="layDP";function Ye(e){var t,n,i=ye.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?m.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(c.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(We," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":Ge),analyticsData:{url:Re.C$.getHref(i)},analyticsOptions:{actionType:l.Vw.Click,entity:l.py.Url,location:l.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(o.k,{type:g.l9.Row,contents:v.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var _e=n(81993);const ze={rowWidth:"TzZuL"};function Ze(e){return a.createElement(c.F,{appLink:e.getAppLink(e.data),className:"".concat(ze.rowWidth," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Rating,actionType:l.Vw.Click,location:l.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(_e.u.mapRatingToClass(e.data.value)," py-3 rounded-3 ")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white"},a.createElement(se.x,{svgName:A.vn.Search,size:se.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var qe=n(72639),Xe=n(87114);function Qe(e){var t,n=(t=e.presentation,Xe.i.getMappedPresentationLevel(t.learningLevel)===qe.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:Ze,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function Ke(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 $e(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 Je=n(75896);const et={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function tt(e){var t,n,i,r,o,s,u=Je.m.first(e.content),p=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.Classification,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Banner});return a.createElement(c.F,{appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,u),analyticsData:e.analyticsData,analyticsOptions:p},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(et.banner)},a.createElement("div",{className:et.bannerImage,style:{backgroundImage:"url('".concat(m.j.createBannerUrl(u.banner,{fallbackBaseUrl:"",fallbackCategoryName:u.name,type:d.__.Banners},{size:d.h2.Large}),"')")}},e.name&&a.createElement("div",{className:"".concat(et.bannerContent," px-3")},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),!!(null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text)&&a.createElement("div",{className:et.cta},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)))))}function nt(e){return a.createElement(tt,Object.assign({},e))}const at="iCyo4",it="cgv_6";function rt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(at)},a.createElement("div",{className:"".concat(it)}))}function ot(e){return ot="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},ot(e)}function lt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=ot(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct,st,dt;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(ct||(ct={})),function(e){e.Dark="dark",e.White="white"}(st||(st={})),function(e){e.NewWindow="new-window"}(dt||(dt={})),ct.H1,ct.H2,ct.H3,ct.H4,ct.H5,ct.H6,st.Dark,st.White,dt.NewWindow;var ut=lt(lt(lt(lt(lt(lt(lt(lt({},ct.H1,"h1"),ct.H2,"h2"),ct.H3,"h3"),ct.H4,"h4"),ct.H5,"h5"),ct.H6,"h6"),st.Dark,"text-dark"),st.White,"text-white"),mt=n(42308);function pt(e){var t,n,i,r=ut[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||ct.H6],o=ut[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||st.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(et.banner)},a.createElement("div",{className:"".concat(et.bannerImage," ").concat(et.blurb," d-flex"),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(et.bannerContent," ").concat(e.widgetTypeId===mt.z.Blurb?et.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("h2",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(T.h,{svgName:A.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function vt(e){var t=e.hasPermissions(ge.C.ManageSubjectPreferences)||e.hasLocalPermissions(ge.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Presentation,actionType:l.Vw.Click,location:l.LZ.HeroBannerSmallWidget});return a.createElement(c.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:s},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(et.banner)},a.createElement("div",{className:"".concat(et.bannerImage," ").concat(et.presentations),style:{backgroundImage:"url('".concat(m.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(et.bannerContent," ").concat(et.presentations," px-3")},a.createElement("h2",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Je.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function gt(e){switch(e.widgetTypeId){case mt.z.Blurb:return a.createElement(pt,Object.assign({},e));case mt.z.Presentations:return a.createElement(vt,Object.assign({},e));default:return a.createElement(tt,Object.assign({},e))}}function ft(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(et.banner)},a.createElement("div",{className:"".concat(et.bannerContent)}))}function yt(e){var t,n,i,r,o,s,u=Je.m.first(e.content),p=m.j.createUrl(null===(t=u.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),v=null===(n=u.metadata)||void 0===n?void 0:n.backgroundColor,g={backgroundColor:v};p&&!e.metadata.hideImage&&(g.backgroundImage="url('".concat(p,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:u.presentationId}),y=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,u),className:"text-decoration-none",analyticsData:f,analyticsOptions:y},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("LPw_x")},a.createElement("div",{className:"".concat("UJ8IR"," d-flex justify-content-between align-items-center"),style:g},e.name&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white h4 clamp-1"},e.name)),a.createElement("div",{className:"btn btn-outline-dark me-3"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.heroThumbnailSmall","buttonLabel"))))):a.createElement(gt,Object.assign({},e))}var ht=n(45716),bt=n(2158),Et=n(38304),kt={HIGH:.75,MODERATE:.5};const Lt={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var wt,xt,Ct=2,Nt=5.8,Ot=.2,St=.36;function Tt(e){var t=e===wt.Large?Nt:Ct,n=e===wt.Large?St:Ot;return"".concat(t/2-2*n,"rem")}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return e>=t.HIGH?Lt.circleSuccess:e>=t.MODERATE?Lt.circleWarning:Lt.circleDanger}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function At(e,t){var n="d-inline-block ".concat(Lt.circleContainer);return e===wt.Large&&(n+=" ".concat(Lt.lgCircleContainer)),It(t)&&(n+=" ".concat(Lt.pendingCircle)),n}function It(e){return"number"!=typeof e}function Pt(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:Tt(e.size),className:Lt.backgroundCircle}),!It(e.percentage)&&a.createElement("circle",{ref:t,r:Tt(e.size),className:Dt(e.percentage,e.scoreThresholds)}))}function Ft(e){var t,n,i=function(e){if(!It(e))return+e.toFixed(2)}(e.percentage),r=e.layout===xt.LabelInside?wt.Large:wt.Small,o=e.customLabel||(It(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===xt.LabelOnly?a.createElement("span",{className:jt(i)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===xt.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:At(r,i)},a.createElement(Pt,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===xt.LabelInside&&a.createElement("span",{className:Lt.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(wt||(wt={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(xt||(xt={})),Ft.defaultProps={layout:xt.CircleOnly};var Mt=n(64818);var Rt="widgets.onboardingSteps",Ut=x.T.encloseNamespace(Rt);function Ht(e){var t,n,i,r,o,s,d,u,m=(0,bt.T)(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),p=m.getPathway,v=m.hasLoadedPathway,g=v&&p(),f=Mt.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||v&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(ge.C.ViewOnboarding)&&!g.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var y=function(){if(e.isPreviewing)return{};var t=ht.H[g.currentScreen],n=g.screens[g.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:Et.m.getProgress(g)},Et.m.getOnboardingScreenStates(g))}(),h=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Et.m.getProgress(g);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),b=h.overallPercentage,E=h.totalScreens,k=h.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(Ft,{percentage:Math.round(b)/100,layout:xt.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(r=ht.H["select-videos"])||void 0===r?void 0:r.getWidgetHeading(f):null===(o=ht.H[g.currentScreen])||void 0===o?void 0:o.getWidgetHeading(f)),a.createElement("div",{className:"dTKo5"},a.createElement(se.x,{svgName:A.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=ht.H[e];return t===n?"".concat(Ut("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Ut("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Ut("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":g.currentScreen,k,E,f))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(s=e.imageUrls)||void 0===s?void 0:s.onboardingTeacherBackground,"')")}},a.createElement(c.F,{appLink:null===(u=null===(d=e.appLinks)||void 0===d?void 0:d.onboardingStep)||void 0===u?void 0:u.call(d,g.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:y,analyticsOptions:{actionType:l.Vw.Click,entity:l.py.User,location:l.LZ.OnboardingStepsWidget,descriptor:l.Ix.FinishPersonalising}},a.createElement(D.x,{namespace:Rt,phrase:"completeSetup"}))))}function Vt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}var Bt=n(31908),Wt=n(80835);function Gt(e){var t,n,i,r,l,c,s,d,u,m;return a.createElement(o.k,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:g.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(l=e.metadata)||void 0===l?void 0:l.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:Bt.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.classroomGuide,getResourceGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.resourceGuidance,getInteractiveGuidanceAppLink:null===(d=e.appLinks)||void 0===d?void 0:d.interactiveGuidance},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,analyticsOptions:e.analyticsOptions,appLink:null===(m=null===(u=e.appLinks)||void 0===u?void 0:u.widgetVideoList)||void 0===m?void 0:m.call(u,e.id,e.name)})}function Yt(e){return a.createElement("div",{className:"col-".concat(e.colSize," px-1")},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"mt-2"},a.createElement("div",{style:{height:"1.4rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.1rem",width:"70%"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.33875rem",width:"80%"}})))}function _t(e){var t,n,i,r,l,c,s,d,u,m,p,f,y,h=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name);return e.widgetTypeId===mt.z.ContinueWatching&&(null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)&&(h=null===(l=null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)||void 0===l?void 0:l.call(r)),a.createElement(o.k,{name:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetHeading)&&e.name,description:!(null===(s=e.metadata)||void 0===s?void 0:s.hideWidgetDescription)&&e.description,type:g.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Wt.U,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(d=e.appLinks)||void 0===d?void 0:d.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(u=e.metadata)||void 0===u?void 0:u.hideObjectTitle,hideSeries:null===(m=e.metadata)||void 0===m?void 0:m.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:Bt.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(y=e.appLinks)||void 0===y?void 0:y.interactiveGuidance},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,analyticsOptions:e.analyticsOptions,appLink:h})}const zt={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function Zt(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 qt=n(34004);function Xt(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Series,descriptor:l._S.TallPoster});return a.createElement(c.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?zt.smallSeriesItem:zt.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(qt.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall}))}function Qt(e){return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.Series,collection:e.content,childComponent:Xt,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const Kt={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var $t=function(e){return a.createElement("div",{className:"".concat(e.type===g.l9.Row?Kt.slidingSubjectSmall:Kt.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(Kt.partialLoading," partial-loading-background rounded-3")}))};function Jt(e){for(var t,n,i=(t=e.type,(n=(0,h.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===g.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement($t,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(y.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var en=n(75163),tn=n(5465);function nn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Classification,actionType:l.Vw.Click,descriptor:l._S.TallPoster});return a.createElement("div",{className:(t=Kt.posterContainer,e.context.type===g.l9.Row?t+=" ".concat(Kt.slidingSubjectSmall):t+=" ".concat(Kt.slidingSubjectLarge),t)},a.createElement(en.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:d.__.TallPosters,preload:i,imageOptions:{size:d.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(tn.oy,{type:tn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(Kt.heading)},n.name)))}function an(e){return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.LargeRow,contents:v.z.Subjects,collection:e.content,childComponent:nn,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}function rn(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 on="explore-all-topics";function ln(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===g.OL.ExploreAllTopics?on:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?m.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=ye.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(o.k,{name:e.name,appLink:i,description:e.description,type:g.l9.Row,contents:v.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return rn(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 rn(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)?rn(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:nn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===on?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function cn(e){var t;return a.createElement("div",null,a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.SmallSeries,collection:e.content,childComponent:Xt,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function sn(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function dn(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(sn,null),a.createElement(sn,null))}var un=n(3626);function mn(e){var t,n,i,r,o,l,c=e.content[0];return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(un.J,{video:c,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,c),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideInteractiveBadge:!0,showVideoGuidance:Bt.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide}))}function pn(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 vn=n(2284);const gn="OZATG",fn="hcAU2",yn="Tbieu",hn="mGGrd",bn="VtzxT",En="jrY7R",kn="yAgR6",Ln="RjJ7O",wn="TJ7Sl",xn="yzmvY",Cn="hGi43";function Nn(e){var t,n,i,r=m.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:d.h2.Small}),o=m.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:d.h2.Medium}),l={backgroundColor:null===(i=e.data.metadata)||void 0===i?void 0:i.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat(fn," ").concat(e.isLarge?yn:hn),style:l},a.createElement("div",{className:"".concat(bn)},a.createElement("div",{className:"".concat(En)},a.createElement("h3",{className:"".concat(kn," h4 ").concat(e.isLarge?"text-nowrap text-truncate":"text-wrap clamp-3")},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start ".concat(Ln)},a.createElement("p",{className:xn},e.data.description))),e.isLarge&&a.createElement("div",{className:Cn},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},x.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&a.createElement("div",{className:"".concat(wn),style:{backgroundImage:"url('".concat(r,"')")}}))}var On=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===vn.W.ComingSoon,s=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name,presentationId:null===(r=e.data)||void 0===r?void 0:r.presentationId,comingSoon:!!o}),d=Object.assign(Object.assign({location:l.LZ.ClassificationListItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return e.appLink?a.createElement(c.F,{className:gn,appLink:e.appLink,analyticsData:s,analyticsOptions:d},a.createElement(Nn,Object.assign({},e))):a.createElement(Nn,Object.assign({},e))}));function Sn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,sm:12,md:6,className:"px-1 pb-2"},a.createElement(On,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),isLarge:!0,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}const Tn="HwejH";var Dn=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"}}))},jn=n(22843),An=n(60318),In=n(68626),Pn=n(80143);const Fn={guidance:"uCRU1",responsiveGuidance:"iwav4"};function Mn(e){var t,n,i,r,o,c,s,u,m=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),p=Bt.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),v=a.useRef(null),g={actionType:l.Vw.Click,entity:Bt.M.getAnalyticsEntity(e.video),location:l.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:l._S.Thumbnail},f=(0,Pn.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:v},a.createElement(Ue.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),g),video:e.video,appLink:m,imageOptions:{size:d.h2.Medium},textPosition:In.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:f,hideRating:!!f,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(jn.h,{video:e.video,appLink:m,subTextAppLink:p,yearGroups:e.yearGroups,subTextType:e.subTextType}),Bt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(An.u,{getClassroomGuideAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.classroomGuide,getResourceGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.resourceGuidance,getInteractiveGuidanceAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:Fn.responsiveGuidance,containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat(Fn.guidance)}))}function Rn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(Mn,Object.assign({key:t.id,video:t},e))}))))}function Un(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 Hn(e){return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(k.Z,{key:t.id,lg:4,md:6,sm:6,xs:12,className:"px-1 pb-2"},a.createElement(On,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions}))}))))}function Vn(e){var t,n,i,r,o,s,u=Je.m.first(e.content),p=m.j.createUrl(null===(t=u.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),v=null===(n=u.metadata)||void 0===n?void 0:n.backgroundColor,g={backgroundColor:v};p&&(g.backgroundImage="url('".concat(p,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:u.presentationId}),y=Object.assign(Object.assign({},e.analyticsOptions),{location:l.LZ.ClassificationListItem,actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Thumbnail});return p&&v?a.createElement(a.Fragment,null,a.createElement(c.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,u),className:"text-decoration-none",analyticsData:f,analyticsOptions:y},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:g},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"},u.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(s=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.text)||x.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(nt,Object.assign({},e))}var Bn=n(38647),Wn=n(11882);function Gn(e){var t,n,i,r,o,s,u,m,p,v,g,f,y=e.content[0],h=a.useRef(),b=(0,Pn.n)(null===(t=y.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=Bt.M.hasSeries(y)||ye.d.isCompanyWidget(e.widgetTypeId),k=ie.k.mergeOptions(e.analyticsOptions,{actionType:l.Vw.Click,entity:Bt.M.getAnalyticsEntity(y),location:l.LZ.ThumbnailHeroMediaWidget}),L=Bt.M.getCanBeConsumed(y).canNavigate;return y?a.createElement("div",null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement("div",{ref:h},a.createElement(Ue.u,{video:y,imageOptions:{size:d.h2.Large},type:"static",textPosition:In.z.Independent,analyticsOptions:k,audience:b,hideRating:!!b,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===i?void 0:i.call(n,y,{}),subTextAppLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.subText)||void 0===o?void 0:o.call(r,y),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,Bt.M.isVideo(y)&&a.createElement(Wn.$,{type:ye.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:y,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===u?void 0:u.call(s,y),analyticsOptions:k,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"mt-2"},a.createElement(c.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,y,{}),analyticsData:{id:y.id,name:y.name},analyticsOptions:Object.assign(Object.assign({},k),{descriptor:l._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement("h3",{className:"h4 mb-0"},y.name,a.createElement(Bn.m,{video:y,yearGroups:e.yearGroups}))))),Bt.M.showVideoGuidance(e.hasPermissions)&&a.createElement(An.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.resourceGuidance,getInteractiveGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.interactiveGuidance,video:y,analyticsData:e.analyticsData,analyticsOptions:k,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Yn(e){var t,n;return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.LargeRow,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,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 _n(e){var t,n;return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Be,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,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 zn=n(74696),Zn=n(13231);function qn(e){var t,n,i,r;return a.createElement(a.Fragment,null,a.createElement(_.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(Zn.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.company)||void 0===a?void 0:a.call(n,t)},hasPermissions:e.hasPermissions,subTextType:"productionCompany",getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance}))}var Xn=n(78479),Qn=n(12778);const Kn={card:"TTPKV",avatar:"nF3tK"};var $n="shared.authorReviewerWidgetTemplate";function Jn(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(Kn.card," h-100 rounded-2 d-flex flex-column"),n=Qn.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){ie.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:l.py.Author,location:l.LZ.AuthorReviewerWidget,actionType:l.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function ea(e){return e.person?a.createElement(Jn,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(Kn.avatar," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:m.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(se.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?A.vn.Verified:A.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(D.x,{namespace:$n,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(D.x,{namespace:$n,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-1 flex-grow-1"},e.person.bio),a.createElement("div",null,"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(D.x,{namespace:$n,phrase:"reviewed",options:{date:xe.O.format(e.datePublished,"DD/MM/YYYY")}})):a.createElement(a.Fragment,null,a.createElement(D.x,{namespace:$n,phrase:"published",options:{date:xe.O.format(e.datePublished,"DD/MM/YYYY")}})," • ",a.createElement(D.x,{namespace:$n,phrase:"lastUpdated",options:{date:xe.O.format(e.lastUpdated,"DD/MM/YYYY")}})))):a.createElement(a.Fragment,null)}function ta(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(ea,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(ea,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function na(){return a.createElement("div",{className:"".concat(Kn.card," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(Kn.avatar)}),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 aa=n(16367),ia=n(57900),ra=n(2948),oa=n(10038);var la="markdown-link",ca={isLink:function(e){return e.classList.contains(la)},getSeoWidgetRenderer:function(){var e=new aa.Renderer;return e.link=function(e,t,n){return'<a href="'.concat(e,'" target="_blank" class="info-link ').concat(la,'">').concat(n,"</a>")},e.list=function(e){return'<ul class="'.concat("TIGbB",'">').concat(e,"</ul>")},e}};const sa={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function da(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ua(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)?ua(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 ua(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 ma="1.2rem",pa=500;function va(e){var t=da((0,ra.D)("should:expand:".concat(e.id),e.isBot,{storage:ia.Z1.LocalStorage}),2),n=t[0],i=t[1],r=da(a.useState(n?"100%":ma),2),o=r[0],c=r[1],s=da(a.useState(!n),2),d=s[0],u=s[1],m=da(a.useState(aa(e.answer,{renderer:ca.getSeoWidgetRenderer()})),2),p=m[0],v=m[1],g=a.useRef(null),f=a.useRef(null),y=a.useRef(null);function h(){c(ma),i(!1),g.current=window.setTimeout((function(){u(!0)}),pa)}return a.useEffect((function(){var t=aa(e.answer||"",{renderer:ca.getSeoWidgetRenderer()});p!==t&&(p&&n&&h(),v(t))}),[e.answer]),a.useEffect((function(){"100%"===o&&y.current&&c(y.current.clientHeight+"px")}),[o]),(0,oa.H)((function(){n&&h()}),null,[n]),e.question&&p?a.createElement(re.L,{className:"".concat(sa.question," rounded-3"),onClick:function(t){var a;ca.isLink(t.target)||0===window.getSelection().toString().length&&(ie.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Faq,actionType:l.Vw.Click,descriptor:n?l._S.Collapse:l._S.Expand,location:l.LZ.FaqQuestionWidget})),n?h():((a=document.createElement("p")).innerHTML=p,a.style.visibility="hidden",f.current.appendChild(a),c("".concat(a.clientHeight,"px")),f.current.removeChild(a),i(!0),window.clearTimeout(g.current),u(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(se.x,{svgName:n?A.vn.Minus:A.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:sa.description,style:{height:o}},a.createElement("p",{className:"mb-0 ".concat(d?"clamp-1":""),dangerouslySetInnerHTML:{__html:p},ref:y}),a.createElement("div",{ref:f}))):a.createElement(a.Fragment,null)}function ga(e){var t=Je.m.first(e.content),n=t.question,i=t.answer;return a.createElement(va,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const fa={question:"G1OXf",padding:"Jg3am",partialQuestion:"tWUKI",description:"z5LRc"};function ya(){return a.createElement("div",{className:"".concat(fa.partialQuestion," ").concat(fa.padding," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}function ha(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ba(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)?ba(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 ba(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 Ea="0px";function ka(e){var t,n,i,r,o,c=ha((0,ra.D)("should:expand:".concat(e.id),e.isBot,{storage:ia.Z1.LocalStorage}),2),s=c[0],d=c[1],u=ha(a.useState(s?"100%":Ea),2),m=u[0],p=u[1],v=ha(a.useState(aa(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ca.getSeoWidgetRenderer()})),2),g=v[0],f=v[1],y=a.useRef(null),h=a.useRef(null);function b(){p(Ea),d(!1)}return a.useEffect((function(){var t,n,a=aa(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ca.getSeoWidgetRenderer()});g!==a&&(g&&s&&b(),f(a))}),[null===(i=e.faq)||void 0===i?void 0:i.answer]),(0,oa.H)((function(){s&&b()}),null,[s]),a.useEffect((function(){"100%"===m&&h.current&&p(h.current.clientHeight+"px")}),[m]),(null===(r=e.faq)||void 0===r?void 0:r.question)&&(null===(o=e.faq)||void 0===o?void 0:o.answer)?a.createElement(re.L,{onClick:function(t){var n;ca.isLink(t.target)||0===window.getSelection().toString().length&&(ie.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Faq,actionType:l.Vw.Click,descriptor:s?l._S.Collapse:l._S.Expand,location:l.LZ.FaqQuestionAccordionWidget})),s?b():((n=document.createElement("p")).innerHTML=g,n.style.visibility="hidden",n.classList.add("py-1"),y.current.appendChild(n),p("".concat(n.clientHeight-10,"px")),y.current.removeChild(n),d(!0)))},className:"".concat(fa.question," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(fa.padding)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(se.x,{svgName:s?A.vn.Minus:A.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal"},e.faq.question)),a.createElement("div",{className:"".concat(fa.description),style:{height:m}},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:g},ref:h}),a.createElement("div",{ref:y}))):a.createElement(a.Fragment,null)}function La(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(ka,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const wa={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",subText:"p0kUV"};function xa(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(wa.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:wa.partialIcon},a.createElement(tn.oy,{type:tn.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%"}})))}const Ca={isNew:"KLRzE",newVideos:"xozwy",badge:"NWZxu"};var Na=x.T.encloseNamespace("shared.subjectStatsBadge");function Oa(e){function t(){if(e.classification.status===vn.W.ComingSoon)return"coming-soon";var t=e.classification.initialDatePublished;return t&&xe.O.timeSince(t,"day")<=30?"new-topic":e.classification.newVideoCount>0?"new-videos":null}return a.createElement("div",{className:function(){var e="fw-semibold d-inline-block rounded-pill px-2 ".concat(Ca.badge);switch(t()){case"coming-soon":return e+" bg-light";case"new-topic":return e+" ".concat(Ca.isNew);case"new-videos":return e+" ".concat(Ca.newVideos);default:return""}}()},function(){switch(t()){case"coming-soon":return Na("comingSoon");case"new-topic":return Na("new");case"new-videos":return Na("newVideos",{smartCount:e.classification.newVideoCount});default:return""}}())}var Sa=x.T.encloseNamespace("shared.subjectStatsWidgetItem");function Ta(e){var t,n,i,r,o,s=(null===(t=e.classification)||void 0===t?void 0:t.status)===vn.W.ComingSoon,u=Xe.i.isFollowing(e.classification),m=(o="",e.classification.videoCount&&(o+="".concat(Sa("videos",{smartCount:e.classification.videoCount})," ")),e.classification.resourceCount&&(o+=" • ".concat(Sa("resources",{smartCount:e.classification.resourceCount}))),o);return a.createElement(c.F,{className:"d-flex no-decoration ".concat(wa.container),appLink:null===(n=e.getAppLink)||void 0===n?void 0:n.call(e,e.classification),analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.classification)||void 0===i?void 0:i.id,name:null===(r=e.classification)||void 0===r?void 0:r.name,presentationId:e.classification.presentationId,comingSoon:!!s,videoCount:e.classification.videoCount,resourceCount:e.classification.resourceCount,initialDatePublished:e.classification.initialDatePublished}),analyticsOptions:Object.assign(Object.assign({location:l.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:l.Vw.Click,entity:l.py.Classification,descriptor:l._S.Cover})},a.createElement("div",{className:"".concat(wa.cover," me-2 rounded overflow-hidden")},a.createElement(en.Z,{data:e.classification.cover,imageOptions:{size:d.h2.Medium}},e.canFollowTopics&&a.createElement(re.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,l.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(wa.bellContainer," ").concat(u?wa.followed:"","\n ")},a.createElement(se.x,{svgName:A.vn.BellFilled,className:"svg-container ".concat(wa.bell)}),a.createElement(se.x,{svgName:A.vn.Bell,className:"svg-container ".concat(wa.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!m&&a.createElement("p",{className:"mb-0 ".concat(wa.subText)},m),a.createElement(Oa,{classification:e.classification})))}function Da(e){var t=e.hasPermissions(ge.C.FollowSubjects)&&!!e.onToggleFollowClassification;return a.createElement(a.Fragment,null,a.createElement(_.B,{name:e.name,description:e.description}),a.createElement(E.Z,{className:"mb-n2"},e.content.map((function(n){var i;return a.createElement(k.Z,{className:"position-relative pb-2",key:n.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(Ta,{classification:n,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:t}))}))))}var ja=n(74237),Aa=n(26733);var Ia=a.memo((function(e){var t,n,i,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,o=(0,Pn.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(Ue.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:Bt.M.isVideo(e.data)&&(null===(i=e.getSubTextAppLink)||void 0===i?void 0:i.call(e,e.data.series)),imageOptions:{size:e.thumbnailSize},preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,subTextType:e.subTextType,textPosition:In.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function Pa(e){return Bt.M.isVideoType(e.data)?a.createElement(Ia,Object.assign({},e)):a.createElement(Aa.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),ja.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Fa(e){var t,n,i,r=e.hasLocalPermissions(ge.E.ViewVideoResourceItems);return a.createElement(o.k,{name:e.name,description:e.description,type:g.l9.Row,contents:v.z.Videos,collection:e.content,childComponent:Pa,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,getSubTextAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,subTextType:"series",isPlugin:e.isPlugin},getChildAppLink:function(t){var n,a,i,o;return Bt.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,analyticsOptions:e.analyticsOptions,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Ma,Ra=n(12754);function Ua(e){return Ua="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},Ua(e)}function Ha(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Ua(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Va=(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ma={},Xn.f.ThumbnailHeroMedia,{getComponent:function(){return Gn},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(dn,null))))},icon:A.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[g.ku.Classification,g.ku.Discover,g.ku.Company].includes(t)},className:""}),Xn.f.PosterSlidingListLarge,{getComponent:function(){return Qt},partialLoading:function(){var e,t,n=(e=(0,h.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(y.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return Zt(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 Zt(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)?Zt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(zt.partialLoading," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.MoviesAndTv,g.ku.Company].includes(t)},className:""}),Xn.f.PosterSlidingListMedium,{getComponent:function(){return an},partialLoading:function(){return a.createElement(Jt,{type:g.l9.LargeRow})},icon:A.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.MoviesAndTv,g.ku.Company].includes(t)},className:""}),Xn.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case mt.z.CuratedClassifications:return ln;case mt.z.CuratedSeries:return cn;default:return ln}},partialLoading:function(){return a.createElement(Jt,{type:g.l9.Row})},icon:A.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ra.x.StreamableLearning)return!1;switch(n){case mt.z.CuratedClassifications:return[g.ku.Classification,g.ku.Discover,g.ku.MoviesAndTv].includes(t);case mt.z.CuratedSeries:return[g.ku.MoviesAndTv,g.ku.Company].includes(t);default:return!1}},className:""}),Xn.f.ThumbnailFeaturedMedia,{getComponent:function(){return mn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(E.Z,null,a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(k.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(dn,null))))))},icon:A.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company].includes(t)},className:""}),Xn.f.CoverFixedPillListLarge,{getComponent:function(){return b.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(y.l,null),a.createElement(E.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Ml,null)))}))))},icon:A.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[g.ku.Classification].includes(t):[g.ku.Classification,g.ku.ClassificationDirectory,g.ku.Discover].includes(t)},className:""}),Xn.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Da},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(y.l,null),a.createElement(E.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(xa,null)))}))))},icon:A.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&t===g.ku.ClassificationDirectory},className:""}),Xn.f.CoverFixedPillListXSmall,{getComponent:function(){return G},partialLoading:function(){return a.createElement("div",{className:"".concat(W.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(E.Z,{className:"mb-2 ".concat(W.row)},Array(8).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:A.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[g.ku.Discover].includes(t):[g.ku.Classification,g.ku.Discover].includes(t)},className:""}),Xn.f.CoverSlidingPillListSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(y.l,null),a.createElement(te.QL,{partialLoadingComponent:L.Qh}))},icon:A.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ra.x.StreamableLearning?n!==mt.z.Classifications&&[g.ku.Discover,g.ku.Company,g.ku.Classification].includes(t):[g.ku.Classification,g.ku.Discover,g.ku.MoviesAndTv,g.ku.Company].includes(t)},className:""}),Xn.f.CoverFixedTileList,{getComponent:function(){return Z},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(y.l,null),a.createElement(Y.YA,{itemClassName:"columns-of-five"}))},icon:A.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company].includes(t)},className:""}),Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ma,Xn.f.FeaturedThumbnailSlidingList,{getComponent:function(){return Ye},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(We," ").concat(Ge," mb-1 ")}),a.createElement(Ce.j7,{hideDescription:!0,hideHeading:!0}))},icon:A.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover].includes(t)},className:""}),Xn.f.HeroBanner,{getComponent:function(){return nt},partialLoading:rt,icon:A.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover].includes(t)},className:""}),Xn.f.OnboardingSteps,{getComponent:function(){return Ht},partialLoading:rt,icon:A.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Discover].includes(t)},className:""}),Xn.f.HeroBannerSmall,{getComponent:function(){return gt},partialLoading:ft,icon:A.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.HeroThumbnailSmall,{getComponent:function(){return yt},partialLoading:function(){return a.createElement(ft,null)},icon:A.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.ClassificationDirectory,g.ku.Discover,g.ku.Company,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.ThumbnailFixedListXLarge,{getComponent:function(){return Vn},partialLoading:function(){return a.createElement(rt,null)},icon:A.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.ThumbnailFixedListLarge,{getComponent:function(){return Sn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return pn(e)}(e=Array(2))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pn(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)?pn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(y.l,null),a.createElement(E.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(k.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.ThumbnailFixedListSmall,{getComponent:function(){return Hn},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return Un(e)}(e=Array(3))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Un(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)?Un(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(y.l,null),a.createElement(E.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(k.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:A.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.EditableCoverFixedPillListSmall,{getComponent:function(){return we},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(E.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(k.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(L.Qh,null)))}))))},icon:A.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Discover].includes(t)},className:""}),Xn.f.Heading,{getComponent:function(){return $e},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:A.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.ClassificationDirectory,g.ku.Discover].includes(t)},className:"heading-widget-template"}),Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ha(Ma,Xn.f.AuthorReviewer,{getComponent:function(){return ta},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(na,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(na,null)))},icon:A.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification].includes(t)},className:""}),Xn.f.Question,{getComponent:function(){return ga},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:A.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification].includes(t)},className:""}),Xn.f.QuestionAccordion,{getComponent:function(){return La},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(ya,null),a.createElement(ya,null),a.createElement(ya,null)))},icon:A.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification].includes(t)},className:""}),Xn.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Rn},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(y.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Tn," partial-loading-background rounded-3")}),a.createElement(Dn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(dn,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Tn," partial-loading-background rounded-3")}),a.createElement(Dn,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(dn,null)))))},icon:A.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company].includes(t)},className:""}),Xn.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Gt},partialLoading:function(){return a.createElement(Ce.j7,{size:"lg",childComponent:Vt})},icon:A.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification,g.ku.Discover,g.ku.Company,g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return _t},partialLoading:function(){return a.createElement(Ce.j7,{size:"sm",childComponent:Yt})},icon:A.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===Ra.x.StreamableLearning?[g.ku.Discover,g.ku.Company].includes(t):t===g.ku.Classification?a:[g.ku.MoviesAndTv,g.ku.Discover,g.ku.Company].includes(t)},className:""}),Xn.f.FilterSlidingPillListSmall,{getComponent:function(){return Qe},partialLoading:function(){var e,t=(0,h.k)();return a.createElement(a.Fragment,null,a.createElement(y.l,{hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(e=Array(t.xs||t.sm?3:t.md||t.lg?4:5),function(e){if(Array.isArray(e))return Ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:A.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.CircleLogoSlidingList,{getComponent:function(){return f},partialLoading:function(){var e=8,t=(0,h.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(y.l,null),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(e).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:A.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[g.ku.Discover,g.ku.Company].includes(t):[g.ku.MoviesAndTv].includes(t)},className:""}),Xn.f.EventIconSlidingList,{getComponent:function(){return Me},partialLoading:function(){var e,t=(e=(0,h.k)()).xs?2:e.sm?3:e.md?4:e.lg?5:e.xl||e.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(y.l,{hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:A.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning?[g.ku.Discover,g.ku.Classification,g.ku.Company].includes(t):[g.ku.Discover].includes(t)},className:""}),Xn.f.ThumbnailVerticalList,{getComponent:function(){return qn},partialLoading:function(){return a.createElement(zn.S,{numVideos:3})},icon:A.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ra.x.StreamableLearning&&[g.ku.Company,g.ku.Classification].includes(t)},className:""}),Ha(Ha(Ha(Ma,Xn.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Fa},partialLoading:Ce.j7,icon:A.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ra.x.StreamableLearning&&[g.ku.Classification].includes(t)},className:""}),Xn.f.ThumbnailSlidingListSmall,{getComponent:function(){return _n},partialLoading:Ce.j7,icon:A.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),Xn.f.ThumbnailSlidingListLarge,{getComponent:function(){return Yn},partialLoading:function(){return a.createElement(Ce.j7,{size:"lg"})},icon:A.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Ba=n(65294);const Wa={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ga(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,d=(0,Ba.Y)({prevent:!s}),u=d.ref,m=d.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),g=ye.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),f=g.content,y=g.unfilteredContent,b=(0,h.k)(),E=function(e,t){return!(ye.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,f),k=!ye.d.canDisplayOnScreenSize(b,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,E||k)}),[v.hasCompleted,E,k,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var L=e.appLinks?Object.assign({},e.appLinks):null;(null==L?void 0:L.videoType)&&(L.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id}))});var w=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),x=p&&!v.hasCompleted||e.isEditing&&E,C=Va[e.templateId].partialLoading,N=Va[e.templateId].getComponent(e.widgetTypeId),O=Va[e.templateId].className;return x||!E&&!k?a.createElement("div",{id:e.widgetTypeId===mt.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Wa.widgetHighlight," py-2 px-3 rounded-3"):""},ye.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Wa.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),x?a.createElement("div",{ref:u},a.createElement(C,null)):a.createElement(N,Object.assign({},e,{appLinks:L,content:f,unfilteredContent:y,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:w,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(88513),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map((function(t){return a.createElement(r.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q,eb:()=>a.e});var a=n(16450);n(14244)},80835:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(32735),i=n(89118),r=n(68626),o=n(79967),l=n(80143),c=n(40424),s=n(31908);var d=a.memo((function(e){var t,n=e.data,d=e.getSubTextAppLink,u=e.context,m=e.thumbnailSize,p=e.preloadImage,v=e.presentationAudiences,g=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,f=(0,l.n)(g,v),y=(0,o.k)(),h="JSM4l";return u.type===c.l9.LargeRow&&(h="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(h)},a.createElement(i.u,{type:e.preventPopout||y.xs?"static":"popout",textPosition:r.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:s.M.isVideo(n)&&(null==d?void 0:d(n)),imageOptions:{size:m},preload:p,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:f,hideRating:!!f,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.getClassroomGuideAppLink}))}))},26733:(e,t,n)=>{n.d(t,{s:()=>L,R:()=>w});var a=n(32735),i=n(39202),r=n(49985),o=n(65858),l=n(36848),c=n(11607),s=n(75891),d=n(83914),u=n(60995),m=n(76177),p=n(61150),v=n(71063),g=n(4594),f=n(1164),y=n(79967),h=n(45778),b=n(54297),E=n(35223);const k={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 L(e){var t,n,i,r,o=null;"metadata"in e.data&&(o=e.data.metadata);var l=h.G.isType(e.data,g.E.Resource);return a.createElement(a.Fragment,null,a.createElement("div",{className:k.aspectRatio},a.createElement("div",{className:k.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 k.atomGuide;case"student-activity":return k.studentActivity;case"teacher-pack":return k.teacherPack;case"additional-materials":return k.additionalMaterials;default:return k.userUploaded}}(t)," ").concat(k.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(k.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(k.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(k.thumbnailContainer," ").concat("above"===e.titlePosition?k.titleAbove:""," \n ").concat(k.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:k.actions},a.createElement(c.L,{onClick:function(t){return e.onClickDownload(t,e.data)},className:"".concat(k.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:g.E.Resource})))),"below"===e.titlePosition&&a.createElement("div",{className:"mt-1 ".concat(k.titleBelow)},h.G.isType(e.data,g.E.Resource)&&!!(null===(r=null===(i=e.data)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.resourceType)&&a.createElement(u.m,null,b.C.getResourceTypeName(e.data.metadata.resourceType)),a.createElement("h3",{className:"h6 clamp-2"},e.data.name)))}L.defaultProps={preloadImage:!0,actionBehaviour:"normal"};var w=a.memo((function(e){var t,n,c,s,d=(t=e.data,n=e.actionBehaviour,s=(0,y.k)(),"public"===n||!s.xs&&!s.sm&&"resource"===t.type&&"metadata"in t&&(t.metadata.type===f.L.Image||(t.metadata.type===f.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===g.E.Resource?o.py.Resource:o.py.Link});function p(){r.k.logUserAction(u,m)}var h,b=Object.assign(Object.assign({},e),{applyHoverState:d||!!e.data.url});return a.createElement("div",{className:"px-1 flex-shrink-0 ".concat(k.item," ").concat("play-page"===e.location?k.playPage:k.dashboard," ").concat(v.M.RESOURCE_ITEM_SELECTOR)},(h="d-block no-decoration","link"===e.data.type?a.createElement("a",{href:e.data.url,target:"_blank",className:h,onClick:p},a.createElement(L,Object.assign({},b))):d?"public"===e.actionBehaviour?a.createElement("div",{className:"".concat(h," cursor-pointer d-inline"),onClick:function(){p(),i.C$.trigger(e.getAppLink(e.data))}},a.createElement(L,Object.assign({},b))):a.createElement(l.F,{appLink:e.getAppLink(e.data),className:h,analyticsData:u,analyticsOptions:m},a.createElement(L,Object.assign({},b))):e.data.url?a.createElement("a",{href:e.data.url,className:h,onClick:p},a.createElement(L,Object.assign({},b))):a.createElement("div",{className:h},a.createElement(L,Object.assign({},b)))))}))},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(49985),r=n(65858),o=null,l={getVideoDownloadUrl:function(e,t){return a._.safeUrlConcat(a._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n){var a,l=o;o||(l=o=document.createElement("iframe"),document.body.appendChild(l),l.style.display="none"),l.src=e.url,i.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(a=null==e?void 0:e.metadata)||void 0===a?void 0:a.resourceType},t),Object.assign({actionType:r.Vw.Download,entity:r.py.Resource,workflowPhase:r.eu.Complete},n))}}},73814:(e,t,n)=>{n.d(t,{w:()=>i});var a=n(92802),i={getCustomFormControlClassName:function(e,t,n,i,r,o){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(o,i),(0,a.u9)(t,n)&&(0,a.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}}},54297:(e,t,n)=>{n.d(t,{C:()=>a});var a={getResourceTypeName:function(e){switch(e){case"additional-materials":return"Additional Materials";case"atom-guide":return"ATOM Guide";case"teacher-pack":return"Teacher Pack";case"student-activity":return"Student Activity";default:return"N/A"}}}}}]);
|
|
3
|
+
//# sourceMappingURL=9839-8d44a3235c-lite.chunk.js.map
|