@clickview/streamable-learning 0.13.1-rc.0 → 0.14.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/{9596-streamable-learning-31829a74b5.chunk.css → 7272-streamable-learning-ca6ff5e866.chunk.css} +1 -0
  3. package/dist/languages/en.json +1 -1
  4. package/dist/scripts/1067-1f2d39af18-streamable-learning.chunk.js +1 -0
  5. package/dist/scripts/1661-38a2a2c0f9-streamable-learning.chunk.js +1 -0
  6. package/dist/scripts/2861-e66f927434-streamable-learning.chunk.js +1 -0
  7. package/dist/scripts/370-8bdd9cc416-streamable-learning.chunk.js +1 -0
  8. package/dist/scripts/{4797-2e2988c896-streamable-learning.chunk.js → 4797-a810666b09-streamable-learning.chunk.js} +1 -1
  9. package/dist/scripts/{487-acdf2873c1-streamable-learning.chunk.js → 487-e8d70e6659-streamable-learning.chunk.js} +1 -1
  10. package/dist/scripts/625-dd3e3962d1-streamable-learning.chunk.js +1 -0
  11. package/dist/scripts/6533-e519c1ce78-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/7102-1ee44c0c40-streamable-learning.chunk.js +1 -0
  13. package/dist/scripts/719-06e5f38c43-streamable-learning.chunk.js +2 -0
  14. package/dist/scripts/7272-c7d7094d8c-streamable-learning.chunk.js +1 -0
  15. package/dist/scripts/7303-4bc7d2e06e-streamable-learning.chunk.js +2 -0
  16. package/dist/scripts/8352-2c3d85bae1-streamable-learning.chunk.js +1 -0
  17. package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js +2 -0
  18. package/dist/scripts/bundle-446e05d661.min.js +2 -0
  19. package/package.json +1 -1
  20. package/dist/scripts/1067-1ae5cb21b1-streamable-learning.chunk.js +0 -1
  21. package/dist/scripts/1661-6f55953c13-streamable-learning.chunk.js +0 -1
  22. package/dist/scripts/2861-b10177d969-streamable-learning.chunk.js +0 -1
  23. package/dist/scripts/4320-0600e34dce-streamable-learning.chunk.js +0 -1
  24. package/dist/scripts/520-8734f2e0f7-streamable-learning.chunk.js +0 -1
  25. package/dist/scripts/625-a3948043cc-streamable-learning.chunk.js +0 -1
  26. package/dist/scripts/6533-caa778d5da-streamable-learning.chunk.js +0 -1
  27. package/dist/scripts/7102-e382a2b1e6-streamable-learning.chunk.js +0 -1
  28. package/dist/scripts/719-5834e07d0d-streamable-learning.chunk.js +0 -2
  29. package/dist/scripts/7303-833f693f9c-streamable-learning.chunk.js +0 -2
  30. package/dist/scripts/9596-02a53132fb-streamable-learning.chunk.js +0 -1
  31. package/dist/scripts/9908-9e6a9a4a5e-streamable-learning.chunk.js +0 -2
  32. package/dist/scripts/bundle-25f87c29cd.min.js +0 -2
  33. /package/dist/scripts/{1437-fdc66a199a-streamable-learning.chunk.js → 1437-b8181e9b98-streamable-learning.chunk.js} +0 -0
  34. /package/dist/scripts/{2700-49c1bcb970-streamable-learning.chunk.js → 2700-483a746797-streamable-learning.chunk.js} +0 -0
  35. /package/dist/scripts/{2967-073ef8276e-streamable-learning.chunk.js → 2967-7e80c72627-streamable-learning.chunk.js} +0 -0
  36. /package/dist/scripts/{339-95c85b910e-streamable-learning.chunk.js → 339-2a8c706363-streamable-learning.chunk.js} +0 -0
  37. /package/dist/scripts/{4254-355be6131d-streamable-learning.chunk.js → 4254-de4c203ae6-streamable-learning.chunk.js} +0 -0
  38. /package/dist/scripts/{4797-2e2988c896-streamable-learning.chunk.js.LICENSE.txt → 4797-a810666b09-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  39. /package/dist/scripts/{719-5834e07d0d-streamable-learning.chunk.js.LICENSE.txt → 719-06e5f38c43-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  40. /package/dist/scripts/{7303-833f693f9c-streamable-learning.chunk.js.LICENSE.txt → 7303-4bc7d2e06e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  41. /package/dist/scripts/{9908-9e6a9a4a5e-streamable-learning.chunk.js.LICENSE.txt → 9908-ba44daa799-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  42. /package/dist/scripts/{bundle-25f87c29cd.min.js.LICENSE.txt → bundle-446e05d661.min.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 7303-833f693f9c-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7303],{39880:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(57408);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)))}},10731:(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)}},56097:(e,t,n)=>{n.d(t,{$:()=>b});var a=n(32735),i=n(16367),r=n(57900),o=n(2948),l=n(92582),c=n(65858),s=n(11607),u=n(83914),d=n(10038),m=n(52108),p=n(35223);const v={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function f(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 g(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)?g(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 g(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 y="1.2rem",h=500;function b(e){var t=f((0,o.D)("should:expand:".concat(e.id),e.isBot,{storage:r.Z1.LocalStorage}),2),n=t[0],g=t[1],b=f(a.useState(n?"100%":y),2),E=b[0],k=b[1],L=f(a.useState(!n),2),w=L[0],x=L[1],C=f(a.useState(i(e.answer,{renderer:m.M.getSeoWidgetRenderer()})),2),S=C[0],O=C[1],T=a.useRef(null),N=a.useRef(null),j=a.useRef(null);function D(){k(y),g(!1),T.current=window.setTimeout((function(){x(!0)}),h)}return a.useEffect((function(){var t=i(e.answer||"",{renderer:m.M.getSeoWidgetRenderer()});S!==t&&(S&&n&&D(),O(t))}),[e.answer]),a.useEffect((function(){"100%"===E&&j.current&&k(j.current.clientHeight+"px")}),[E]),(0,d.H)((function(){n&&D()}),null,[n]),e.question&&S?a.createElement(s.L,{className:"".concat(v.question," rounded-3"),onClick:function(t){var a;m.M.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:n?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionWidget})),n?D():((a=document.createElement("p")).innerHTML=S,a.style.visibility="hidden",N.current.appendChild(a),k("".concat(a.clientHeight,"px")),N.current.removeChild(a),g(!0),window.clearTimeout(T.current),x(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(u.x,{svgName:n?p.vn.Minus:p.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:v.description,style:{height:E}},a.createElement("p",{className:"mb-0 ".concat(w?"clamp-1":""),dangerouslySetInnerHTML:{__html:S},ref:j}),a.createElement("div",{ref:N}))):a.createElement(a.Fragment,null)}},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"}))}},1269:(e,t,n)=>{n.d(t,{n:()=>k,W:()=>L});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(57408),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(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={getCustomFormControlClassName:function(e,t,n,a,i,r){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}(r,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}},f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-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,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=d[0],v=d[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:y.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(y.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(y.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(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,u=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)(),S=C.errors,O=C.touched,T=function(){};if("checkbox"===x.type){var N=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(N.onChange=T),a.createElement(d,Object.assign({},N))}var j=Object.assign(Object.assign({},x),{className:v.getCustomFormControlClassName(S,O,x.name,L,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=T),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:f.vn.Info,title:s,tooltipPlacement:u,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(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(k,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!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,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)})))}k.defaultProps={autoComplete:"off"},L.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},71471:(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(u,Object.assign({},e)))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(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}},81326:(e,t,n)=>{n.d(t,{L:()=>vi});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(92582),c=n(65858),s=n(83914),u=n(83345),d=n(54610),m=n(12778),p=n(67453),v=n(35223);const f={card:"TTPKV",avatar:"nF3tK",time:"lwnZl"};var g="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function h(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f.card," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function b(e){return e.person?a.createElement(h,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(f.avatar," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:g,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:g,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:f.time},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:g,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:g,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(u.x,{namespace:g,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function E(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(b,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(b,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f.card," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(f.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 L=n(5281),w=n(57408),x=n(7733),C=n(9085);var S=function(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),o=(0,C.x)(e.data.name,x.o),l=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}),s=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company});return a.createElement(w.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:l,analyticsOptions:s},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))},O=n(58704),T=n(26154);function N(e){var t;return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:S,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 j=n(55827),D=n(79967);var A=n(47770),I=n(68050),P=n(69111),F=n(9513),M=n(92802),_=n(23481),R=n(10731),V=n(23201),B=n(1269),H=n(82644),W=n(63855),U=n(69883),G=n(5173),z=G.Ry().shape({feedbackInput:G.Z_().max(5e3,(function(){return _.T.getPhrase("shared.feedbackForm","tooLong")}))});const Z={promptContainer:"A_kCD",text:"UFm9h",form:"na9Vb"};function Y(e){return Y="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},Y(e)}function q(){q=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:S(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(D([])));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=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Y(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function S(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function 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")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Y(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(u(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=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var K=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())}))},X="shared.feedbackForm";function $(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],l=r[1],c=(0,U.Z)();function s(t,n){return K(this,void 0,void 0,q().mark((function a(){return q().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.onSubmit({content:t.feedbackInput,type:"yes"===o?"positive":"negative"});case 3:l("done"),a.next=10;break;case 6:a.prev=6,a.t0=a.catch(0),l("prompt"),c.error(_.T.getPhrase(X,"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:Z.promptContainer},a.createElement("p",{className:"fw-semibold me-2 ".concat(Z.text)},a.createElement(R.V,{emoji:"🔎"},a.createElement(u.x,{namespace:X,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(W.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(u.x,{namespace:X,phrase:"yes"})),a.createElement(W.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(u.x,{namespace:X,phrase:"no"})))):"yes"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:z},a.createElement(M.l0,{className:Z.form},a.createElement("p",{className:"fw-semibold ".concat(Z.text)},a.createElement(R.V,{emoji:"👏"},a.createElement(u.x,{namespace:X,phrase:"happyFeedback"}))),a.createElement(B.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(X,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:X,phrase:"back"})),a.createElement(V.A,{variant:"dark",submitText:_.T.getPhrase(X,"sendFeedback")})))):"no"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:z},a.createElement(M.l0,{className:Z.form},a.createElement("p",{className:"fw-semibold ".concat(Z.text)},a.createElement(R.V,{emoji:"😢"},a.createElement(u.x,{namespace:X,phrase:"unhappyFeedback"}))),a.createElement(B.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:_.T.getPhrase(X,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:X,phrase:"back"})),a.createElement(V.A,{variant:"dark",submitText:_.T.getPhrase(X,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(R.V,{emoji:"🙌"},a.createElement(u.x,{namespace:X,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const J={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ee(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(J.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(I.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(P.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(w.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(J.imageContainer," me-2")},a.createElement("div",{className:"".concat(J.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement($,{onSubmit:e.onSubmitFeedback}))}var te=n(75903),ne=n(66869),ae={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function ie(e){return a.createElement("div",null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(P.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(te.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),ae)}))}))))}var re=n(72861),oe=n(43741),le=n(55171),ce=n(78479),se=n(42308),ue=n(87114);function de(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 me(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function pe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ve(e){var t,n,i,r,o,l=function(e,t){var n,a,i,r,o;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===T.OL.ClassificationDirectory?{id:T.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(i=null===(a=e.classification)||void 0===a?void 0:a.cover)||void 0===i?void 0:i.url,{size:d.h2.Small})}}:(null===(r=e.metadata)||void 0===r?void 0:r.appLink)===T.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:me(t)}:(null===(o=e.metadata)||void 0===o?void 0:o.appLink)===T.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(le.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),c=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===T.OL.ClassificationLatestReleases;return a.createElement(re.e,{collection:l?[l].concat((o=e.content,function(e){if(Array.isArray(e))return de(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return de(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)?de(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,o,l,s,u;return t.id===T.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===T.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):c?null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classificationLatestReleases)||void 0===l?void 0:l.call(o,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:F.Vz,partialLoadingComponent:oe.Q,heading:e.name,headingAppLink:function(){var t,n;return e.classification&&ue.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===se.z.Classifications&&e.templateId===ce.f.CoverSlidingPillListSmall?null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classificationDirectory)||void 0===n?void 0:n.call(t,e.classification):null}(),getSubtitle:c?pe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,themeColor:null===(r=null===(i=e.classification)||void 0===i?void 0:i.metadata)||void 0===r?void 0:r.backgroundColor}})}var fe=n(65163),ge=n(98269),ye=n(1048),he=n(11607),be=n(17808),Ee=n(1287),ke=n(2102),Le=n(83523),we=n(29309),xe="shared.subjectWidgetItem",Ce=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(we.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(we.Z.widgetItem," ").concat(we.Z.draggingItem),style:ye.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(we.Z.widgetItem),style:ye.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(we.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(Le.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?_.T.getPhrase(xe,e.isVisible?"hideFromDashboard":"showOnDashboard"):_.T.getPhrase(xe,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Se=n(91028),Oe=n(16714),Te=n(75896);var Ne=n(49542);function je(e){return je="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},je(e)}function De(){De=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:S(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(D([])));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=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==je(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function S(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function 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")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(je(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(u(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=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;N(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,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 Ie(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)?Ie(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 Ie(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 Pe="shared.editableCoverFixedPillListSmall";function Fe(e){var t,n=Ae(a.useState(!1),2),i=n[0],r=n[1],o=Ae(a.useState(!1),2),s=o[0],d=o[1],m=Ne.d.useGetContent(e.widgetTypeId,e.content,e.preferences).unfilteredContent,p=a.useMemo((function(){return m.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)}))}),[m]),v=a.useMemo((function(){var e;return null!==(e=null==m?void 0:m.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)&&!p,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,p]),f=Ae(a.useState(v),2),g=f[0],y=f[1],h=Ae(a.useState(v),2),b=h[0],E=h[1],k=a.useMemo((function(){return i?m.filter((function(e){return!!b[e.id]})).sort((function(e,t){return b[e.id].index-b[t.id].index})):m.filter((function(e){var t;return!!g[e.id]&&!(null===(t=g[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return g[e.id].index-g[t.id].index}))}),[m,b,g,i]),L=(0,U.Z)();a.useEffect((function(){r(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var w=a.useMemo((function(){return!(i||!k.length)&&Object.values(b).some((function(e){return e.hidden}))}),[i,b]);function x(e){return b[e.id]?b[e.id].index:k.findIndex((function(t){return t.id===e.id}))}function C(e){var t;return!(null===(t=b[e.id])||void 0===t?void 0:t.hidden)}function S(e){var t=Object.assign({},b),n=C(e);t[e.id]={id:e.id,hidden:n,index:x(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),E(t)}var O=a.useMemo((function(){return!ye.t.isEqual(v,b)}),[v,b]),T={id:e.presentation.id,name:_.T.getPhrase(Pe,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover},N=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:_.T.getPhrase(Pe,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description}})):[],j=!i&&N.length>0&&e.settings.hasTopicDirectories,D=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),A=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.EditableSubjectPreferencesWidget});return k.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?_.T.getPhrase(Pe,"updating"):e.name),!i&&D&&a.createElement(he.L,{className:"hover-text-underline",onClick:function(){return r(!0)}},_.T.getPhrase(Pe,"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(u.x,{namespace:Pe,phrase:"editingDescription"}))),i&&D&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ge.Z,{variant:"link",className:"me-2",onClick:function(){E(g),r(!1)}},a.createElement(u.x,{namespace:Pe,phrase:"cancel"})),a.createElement(ke.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=De().mark((function t(){var n;return De().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:d(!0),n=p?m.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(g),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(b)).then((function(){y(b),d(!1),r(!1)})).catch((function(){d(!1),L.error(_.T.getPhrase(Pe,"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:s,disabled:!O},a.createElement(u.x,{namespace:Pe,phrase:"update"})))),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},w&&a.createElement(P.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Se.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:A,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories})),a.createElement(be.Q,{ids:k.map((function(e){return e.id})),getDragOverlay:function(e){var t=k.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(Ce,{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!0,canToggle:!C(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=k.find((function(t){return t.id.toString()===e.active.id.toString()})),n=k.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=x({id:t.id}),i=k.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=k[a];if(r){var o=Object.assign({},b);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=Te.m.moveItem(e,t,n),i=n<e.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:i}}})(k,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!C(e)}})),E(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},k.map((function(t){return a.createElement(P.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,i?a.createElement(Ee.W,{id:t.id,childComponent:Ce,childProps:{data:t,onToggleVisibility:S,isVisible:C(t),isDragging:!1,canToggle:!C(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Se.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:A,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories,showNewVideosCount:e.settings.hasTopicDirectories})))}))),j&&N.map((function(t){return a.createElement(P.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Se.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},A),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0}))})))):a.createElement(a.Fragment,null)}var Me=n(11518),_e=n(43933),Re=n(39880);const Ve={dateItemContainer:"Hrx2m",container:"k2Xse"};var Be=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 He(e){return a.createElement("div",{className:"".concat(Ve.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(w.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(_e.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function We(e){var t=e.data,n=Be(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ve.container," ").concat(Ve.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Re.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(He,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})})):a.createElement(He,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return le.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function Ue(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ge(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 Ge(e,t){if(e){if("string"==typeof e)return ze(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)?ze(e,t):void 0}}function ze(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 Ze=_.T.encloseNamespace("widgets.eventIconSlidingList");function Ye(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=Ue(t===T.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.endOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Ue(t.events),[e.event])}))}else f.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ze("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ze("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ze("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=Ge(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}}}}(f.values());try{for(b.s();!(y=b.n()).done;){var E=y.value,k={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};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===T.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(Me.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:T.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:We,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,prefetched:!0})}var qe=n(39202),Qe=n(57825),Ke=n(49439);function Xe(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 $e=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,Ke.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===T.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 Xe(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)?Xe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="eo8oY";return o.type===T.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Qe.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const Je="eSMIx",et="layDP";function tt(e){var t,n,i=Ne.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(w.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(Je," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":et),analyticsData:{url:qe.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{type:T.l9.Row,contents:O.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:$e,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 nt=n(81993);const at={rowWidth:"TzZuL"};function it(e){return a.createElement(w.F,{appLink:e.getAppLink(e.data),className:"".concat(at.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:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(nt.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt,ot,lt,ct=n(72639);function st(e){var t,n=(t=e.presentation,ue.i.getMappedPresentationLevel(t.learningLevel)===ct.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function ut(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 dt(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))}function mt(e){return mt="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},mt(e)}function pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=mt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=mt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(rt||(rt={})),function(e){e.Dark="dark",e.White="white"}(ot||(ot={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(lt||(lt={})),rt.H1,rt.H2,rt.H3,rt.H4,rt.H5,rt.H6,ot.Dark,ot.White,lt.NewWindow;var vt=pt(pt(pt(pt({},lt.NewWindow,v.vn.NewWindow),lt.TopicDirectory,v.vn.Grid),lt.TopicNewReleases,v.vn.Sparkle),lt.CuratedTopic,v.vn.Rectangles),ft=pt(pt(pt(pt(pt(pt(pt(pt({},rt.H1,"h1"),rt.H2,"h2"),rt.H3,"h3"),rt.H4,"h4"),rt.H5,"h5"),rt.H6,"h6"),ot.Dark,"text-dark"),ot.White,"text-white");const gt={banner:"MQAsk",bannerImage:"Sk9ox"};function yt(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(W.h,{svgName:vt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function ht(e){return a.createElement(w.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(gt.banner)},a.createElement("div",{className:"".concat(gt.bannerImage," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(yt,{cta:e.cta}))))}function bt(e){var t,n,i,r=Te.m.first(e.content),o=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner});return a.createElement(ht,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:d.__.Banners},{size:d.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function Et(e){return a.createElement(bt,Object.assign({},e))}const kt="iCyo4",Lt="cgv_6";function wt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kt)},a.createElement("div",{className:"".concat(Lt)}))}const xt={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function Ct(e){var t,n,i,r=ft[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||rt.H6],o=ft[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||ot.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerImage," ").concat(xt.blurb," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(xt.bannerContent," ").concat(e.widgetTypeId===se.z.Blurb?xt.blurb:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(W.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function St(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget});return a.createElement(w.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerImage," ").concat(xt.presentations),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(xt.bannerContent," ").concat(xt.presentations," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Te.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Ot(e){switch(e.widgetTypeId){case se.z.Blurb:return a.createElement(Ct,Object.assign({},e));case se.z.Presentations:return a.createElement(St,Object.assign({},e));default:return a.createElement(bt,Object.assign({},e))}}function Tt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(xt.banner)},a.createElement("div",{className:"".concat(xt.bannerContent)}))}function Nt(e){var t,n,i=Te.m.first(e.content),r=Object.assign(Object.assign({},e.analyticsData),{id:i.id,name:i.name,presentationId:i.presentationId}),o=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return a.createElement(ht,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case T.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case T.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case T.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:r,analyticsOptions:o,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function jt(e){var t,n,i,r,o,l,s=Te.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m,backgroundSize:"50%"};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return u&&m?a.createElement(ht,{heading:e.name,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),analyticsData:f,analyticsOptions:g,style:v,cta:Object.assign({text:_.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)&&void 0!==l?l:{})}):a.createElement(Ot,Object.assign({},e))}var Dt=n(43306),At=n(2948),It=n(46477),Pt=n(25925),Ft=n(21750),Mt=(n(99940),n(97395)),_t=n(1651),Rt=n(56050);function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Bt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Ht(a.key),a)}}function Ht(e){var t=function(e,t){if("object"!=Vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Vt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vt(t)?t:t+""}var Wt,Ut,Gt=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)},(t=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,a=e.sort,i=e.cursor;n&&(this.id=n),a&&(this.sort=a),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return _t.Ry.throw(new Rt.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Bt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function zt(e){return zt="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},zt(e)}function Zt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Yt(a.key),a)}}function Yt(e){var t=function(e,t){if("object"!=zt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=zt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}function qt(e,t,n){return t=Kt(t),function(e,t){if(t&&("object"==zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qt()?Reflect.construct(t,n||[],Kt(e).constructor):t.apply(e,n))}function Qt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qt=function(){return!!e})()}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xt(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(Wt||(Wt={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Ut||(Ut={}));var $t=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.OwnedByMe;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=qt(this,t,[{collectionPrefix:"user:playlists",cursor:a,sort:n}])).type=i,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&Zt(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Gt);var Jt=n(62803),en=(n(5960),n(4594),n(78417),n(40370)),tn=function(e){var t=e.sort,n=e.type,a={sort:t,query:"{limit:100}".concat(Jt.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")};return e.cursor&&(a.cursor=e.cursor),{url:Mt._.urlBuilder("/api/domain/v2/me/playlists/".concat(n),a),key:e.toString()}},nn=n(61699),an=n(31949),rn=n(22902),on=n(25964),ln=n(75795);function cn(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 sn={HIGH:.75,MODERATE:.5};const un={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var dn,mn,pn=2,vn=5.8,fn=.2,gn=.36;function yn(e){var t=e===dn.Large?vn:pn,n=e===dn.Large?gn:fn;return"".concat(t/2-2*n,"rem")}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn;return e>=t.HIGH?un.circleSuccess:e>=t.MODERATE?un.circleWarning:un.circleDanger}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function En(e,t){var n="d-inline-block ".concat(un.circleContainer);return e===dn.Large&&(n+=" ".concat(un.lgCircleContainer)),kn(t)&&(n+=" ".concat(un.pendingCircle)),n}function kn(e){return"number"!=typeof e}function Ln(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:yn(e.size),className:un.backgroundCircle}),!kn(e.percentage)&&a.createElement("circle",{ref:t,r:yn(e.size),className:hn(e.percentage,e.scoreThresholds)}))}function wn(e){var t,n,i=function(e){if(!kn(e))return+e.toFixed(2)}(e.percentage),r=e.layout===mn.LabelInside?dn.Large:dn.Small,o=e.customLabel||(kn(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===mn.LabelOnly?a.createElement("span",{className:bn(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===mn.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:En(r,i)},a.createElement(Ln,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===mn.LabelInside&&a.createElement("span",{className:un.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(dn||(dn={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(mn||(mn={})),wn.defaultProps={layout:mn.CircleOnly};var xn=n(64818);var Cn="widgets.onboardingSteps",Sn=_.T.encloseNamespace(Cn);function On(e){var t,n,i,o,l,d,m,p,f=function(e){var t,n,i,o=(n=(0,At.D)("has:playlist",null),i=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,i)||function(e,t){if(e){if("string"==typeof e)return cn(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)?cn(e,t):void 0}}(n,i)||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.")}()),l=o[0],c=o[1],s=r.a.useBasicFetch(an.N.currentUser()),u=r.a.useBasicFetch((null===(t=s.data)||void 0===t?void 0:t.isAuthenticated)&&an.N.user(s.data.id)),d=r.a.useBasicFetch(Ft.x.availablePresentations(Pt.R.Subject)),m=r.a.useBasicFetch(Ft.x.presentation(Pt.R.Subject)),p=r.a.useBasicFetch(Ft.x.availablePresentations(Pt.R.Curriculum)),v=r.a.useBasicFetch(tn(new $t)),f=r.a.useBasicFetch(nn.o.mySubjectPreferences()),g=(0,rn.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;v.hasCompleted&&l!==!!(null===(t=null===(e=v.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&c(!!(null===(a=null===(n=v.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[v.hasCompleted]);var y=s.hasCompleted&&u.hasCompleted&&d.hasCompleted&&p.hasCompleted&&m.hasCompleted&&v.hasCompleted&&f.hasCompleted&&null!==l,h=(0,on.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=u.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),o=i.preferredPresentationOverride||m.data;return y?It.m.getOnboardingPathway({jobTitle:r,userSettings:h.data,presentations:d.data,curriculums:p.data,preferredSubjects:f.data,preferredPresentation:o,appLink:ln.O.getCurrentRoute().appLink,appLinks:e,masterUser:u.data,hasPlaylist:l,hasPermissions:g,currentUser:s.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:y}}(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:{}),g=f.getPathway,y=f.hasLoadedPathway,h=y&&g(),b=xn.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||y&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Oe.C.ViewOnboarding)&&!h.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var E=function(){if(e.isPreviewing)return{};var t=Dt.H[h.currentScreen],n=h.screens[h.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:It.m.getProgress(h)},It.m.getOnboardingScreenStates(h))}(),k=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=It.m.getProgress(h);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),L=k.overallPercentage,x=k.totalScreens,C=k.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(wn,{percentage:Math.round(L)/100,layout:mn.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=Dt.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=Dt.H[h.currentScreen])||void 0===l?void 0:l.getWidgetHeading(b)),a.createElement("div",{className:"dTKo5"},a.createElement(s.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=Dt.H[e];return t===n?"".concat(Sn("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Sn("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Sn("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":h.currentScreen,C,x,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(d=e.imageUrls)||void 0===d?void 0:d.onboardingTeacherBackground,"')")}},a.createElement(w.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.onboardingStep)||void 0===p?void 0:p.call(m,h.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:E,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Cn,phrase:"completeSetup"}))))}function Tn(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 Nn=n(68626),jn=n(80143);var Dn=a.memo((function(e){var t,n=e.data,i=e.getSubTextAppLink,r=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,jn.n)(s,c),d=(0,D.k)(),m="JSM4l";return r.type===T.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Qe.u,{type:e.preventPopout||d.xs?"static":"popout",textPosition:Nn.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:en.M.isVideo(n)&&(null==i?void 0:i(n)),imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:u,hideRating:!!u,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}))}));function An(e){var t,n,i,r,o,l,c,s,u,d;return a.createElement(L.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:T.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:Dn,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:en.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance},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===(d=null===(u=e.appLinks)||void 0===u?void 0:u.widgetVideoList)||void 0===d?void 0:d.call(u,e.id,e.name)})}function In(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 Pn(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=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===se.z.ContinueWatching&&(null===(i=e.appLinks)||void 0===i?void 0:i.watchHistory)&&(f=null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.watchHistory)||void 0===o?void 0:o.call(r)),a.createElement(L.k,{name:!(null===(l=e.metadata)||void 0===l?void 0:l.hideWidgetHeading)&&e.name,description:!(null===(c=e.metadata)||void 0===c?void 0:c.hideWidgetDescription)&&e.description,type:T.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Dn,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(u=e.metadata)||void 0===u?void 0:u.hideObjectTitle,hideSeries:null===(d=e.metadata)||void 0===d?void 0:d.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:en.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.classroomGuide,getResourceGuidanceAppLink:null===(p=e.appLinks)||void 0===p?void 0:p.resourceGuidance,getInteractiveGuidanceAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.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:f})}const Fn={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var _n=n(70580);function Rn(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Series,descriptor:c._S.TallPoster});return a.createElement(w.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?Fn.smallSeriesItem:Fn.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(_n.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Vn(e){return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.Series,collection:e.content,childComponent:Rn,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const Bn={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var Hn=function(e){return a.createElement("div",{className:"".concat(e.type===T.l9.Row?Bn.slidingSubjectSmall:Bn.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(Bn.partialLoading," partial-loading-background rounded-3")}))};function Wn(e){for(var t,n,i=(t=e.type,(n=(0,D.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===T.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Hn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(j.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var Un=n(85473),Gn=n(85177);function zn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t=Bn.posterContainer,e.context.type===T.l9.Row?t+=" ".concat(Bn.slidingSubjectSmall):t+=" ".concat(Bn.slidingSubjectLarge),t)},a.createElement(Un.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(Gn.oy,{type:Gn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(Bn.heading)},n.name)))}function Zn(e){return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:zn,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 Yn(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 qn="explore-all-topics";function Qn(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)===T.OL.ExploreAllTopics?qn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=Ne.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{name:e.name,appLink:i,description:e.description,type:T.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return Yn(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 Yn(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)?Yn(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:zn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===qn?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 Kn(e){var t;return a.createElement("div",null,a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:Rn,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}))}var Xn=n(56097);function $n(e){var t=Te.m.first(e.content),n=t.question,i=t.answer;return a.createElement(Xn.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const Jn={question:"G1OXf",padding:"Jg3am",partialQuestion:"tWUKI",description:"z5LRc"};function ea(){return a.createElement("div",{className:"".concat(Jn.partialQuestion," ").concat(Jn.padding," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var ta=n(16367),na=n(57900),aa=n(10038),ia=n(52108);function ra(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 oa(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)?oa(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 oa(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 la="0px";function ca(e){var t,n,i,r,o,u=ra((0,At.D)("should:expand:".concat(e.id),e.isBot,{storage:na.Z1.LocalStorage}),2),d=u[0],m=u[1],p=ra(a.useState(d?"100%":la),2),f=p[0],g=p[1],y=ra(a.useState(ta(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ia.M.getSeoWidgetRenderer()})),2),h=y[0],b=y[1],E=a.useRef(null),k=a.useRef(null);function L(){g(la),m(!1)}return a.useEffect((function(){var t,n,a=ta(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ia.M.getSeoWidgetRenderer()});h!==a&&(h&&d&&L(),b(a))}),[null===(i=e.faq)||void 0===i?void 0:i.answer]),(0,aa.H)((function(){d&&L()}),null,[d]),a.useEffect((function(){"100%"===f&&k.current&&g(k.current.clientHeight+"px")}),[f]),(null===(r=e.faq)||void 0===r?void 0:r.question)&&(null===(o=e.faq)||void 0===o?void 0:o.answer)?a.createElement(he.L,{onClick:function(t){var n;ia.M.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:d?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget})),d?L():((n=document.createElement("p")).innerHTML=h,n.style.visibility="hidden",n.classList.add("py-1"),E.current.appendChild(n),g("".concat(n.clientHeight-10,"px")),E.current.removeChild(n),m(!0)))},className:"".concat(Jn.question," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(Jn.padding)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:d?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal"},e.faq.question)),a.createElement("div",{className:"".concat(Jn.description),style:{height:f}},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:h},ref:k}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function sa(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(ca,{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 ua={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function da(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(ua.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:ua.partialIcon},a.createElement(Gn.oy,{type:Gn.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var ma=n(2284);const pa={isNew:"KLRzE",newVideos:"xozwy",badge:"NWZxu",icon:"G9W_I"};var va=_.T.encloseNamespace("shared.subjectStatsBadge");function fa(e){var t=function(){var t;if(e.classification.status===ma.W.ComingSoon)return"coming-soon";var n=e.classification.datePublished;return n&&o.O.timeSince(n,"day")<=30?"new-topic":(null===(t=e.classification.externalMetadata)||void 0===t?void 0:t.dashboardNewVideosCount)>0?"new-videos":null}();return a.createElement("div",{className:function(){var e="fw-semibold d-inline-block rounded-pill px-2 ".concat(pa.badge);switch(t){case"coming-soon":return e+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return e+" ".concat(pa.isNew);case"new-videos":return e+" ".concat(pa.newVideos);default:return""}}()},"coming-soon"===t&&a.createElement(s.x,{svgName:v.vn.TimerSmall,className:"svg-container ".concat(pa.icon),size:s.S.ExtraSmall}),function(){var n;switch(t){case"coming-soon":return va("comingSoon");case"new-topic":return va("new");case"new-videos":return va("newVideos",{smartCount:null===(n=e.classification.externalMetadata)||void 0===n?void 0:n.dashboardNewVideosCount});default:return""}}())}function ga(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 ya=_.T.encloseNamespace("shared.subjectStatsWidgetItem");function ha(e){var t,n,i,r,o,l,u,m,p,f=(m=a.useState(!1),p=2,function(e){if(Array.isArray(e))return e}(m)||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}}(m,p)||function(e,t){if(e){if("string"==typeof e)return ga(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)?ga(e,t):void 0}}(m,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=f[0],y=f[1],h=(null===(t=e.classification)||void 0===t?void 0:t.status)===ma.W.ComingSoon,b=ue.i.isFollowing(e.classification),E=function(){var t,n,a,i,r="";return(null===(t=e.classification.externalMetadata)||void 0===t?void 0:t.dashboardVideoCount)&&(r+="".concat(ya("videos",{smartCount:null===(n=e.classification.externalMetadata)||void 0===n?void 0:n.dashboardVideoCount})," ")),(null===(a=e.classification.externalMetadata)||void 0===a?void 0:a.dashboardResourceCount)&&(r+=" • ".concat(ya("resources",{smartCount:null===(i=e.classification.externalMetadata)||void 0===i?void 0:i.dashboardResourceCount}))),r}();return a.createElement(w.F,{className:"d-flex no-decoration rounded ".concat(ua.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:!!h,dashboardVideoCount:null===(o=e.classification.externalMetadata)||void 0===o?void 0:o.dashboardVideoCount,dashboardResourceCount:null===(l=e.classification.externalMetadata)||void 0===l?void 0:l.dashboardResourceCount,dashboardNewVideosCount:null===(u=e.classification.externalMetadata)||void 0===u?void 0:u.dashboardNewVideosCount,datePublished:e.classification.datePublished}),analyticsOptions:Object.assign(Object.assign({location:c.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Cover})},!g&&a.createElement(Gn.oy,{type:Gn.mS.Subject,extraClasses:"ms-2 ".concat(ua.fallbackImage)}),a.createElement("div",{className:"".concat(ua.cover," me-2 rounded overflow-hidden")},a.createElement(Un.Z,{data:e.classification.cover,imageOptions:{size:d.h2.Medium},imageClassName:h?"opacity-50":"",onLoad:function(){return y(!0)}},e.canFollowTopics&&a.createElement(he.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,c.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(ua.bellContainer," ").concat(b?ua.followed:"","\n ")},a.createElement(s.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(ua.bell)}),a.createElement(s.x,{svgName:v.vn.Bell,className:"svg-container ".concat(ua.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!E&&a.createElement("p",{className:"mb-0 ".concat(ua.subText)},E),a.createElement(fa,{classification:e.classification})))}function ba(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(I.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(P.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(ha,{classification:t,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1}))}))))}function Ea(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function ka(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Ea,null),a.createElement(Ea,null))}var La=n(43889);function wa(e){var t,n,i,r,o,l,c=e.content[0];return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(La.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:en.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 xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const Ca="OZATG",Sa="hcAU2",Oa="Tbieu",Ta="mGGrd",Na="VtzxT",ja="jrY7R",Da="yAgR6",Aa="RjJ7O",Ia="TJ7Sl",Pa="hGi43";function Fa(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:d.h2.Small}),o=p.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(Sa," ").concat(e.isLarge?Oa:Ta),style:l},a.createElement("div",{className:"".concat(Na," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat(ja)},a.createElement("p",{className:"".concat(Da," h3 text-shadow ").concat(e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat(Aa)},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:Pa},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},_.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&a.createElement("div",{className:"".concat(Ia),style:{backgroundImage:"url('".concat(r,"')")}}))}var Ma=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===ma.W.ComingSoon,l=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}),s=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return e.appLink?a.createElement(w.F,{className:Ca,appLink:e.appLink,analyticsData:l,analyticsOptions:s},a.createElement(Fa,Object.assign({},e))):a.createElement(Fa,Object.assign({},e))}));function _a(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(P.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Ma,{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 Ra="HwejH";var Va=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"}}))},Ba=n(39802),Ha=n(99131);const Wa={guidance:"uCRU1",responsiveGuidance:"iwav4"};function Ua(e){var t,n,i,r,o,l,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=en.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),f={actionType:c.Vw.Click,entity:en.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},g=(0,jn.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(Qe.u,{analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),f),video:e.video,appLink:m,imageOptions:{size:d.h2.Medium},textPosition:Nn.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:g,hideRating:!!g,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(Ba.h,{video:e.video,appLink:m,subTextAppLink:p,yearGroups:e.yearGroups,subTextType:e.subTextType}),en.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Ha.u,{getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.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:f,responsiveClassName:Wa.responsiveGuidance,containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat(Wa.guidance)}))}function Ga(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},e.content.map((function(t){return a.createElement(Ua,Object.assign({key:t.id,video:t},e))}))))}function za(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 Za(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(P.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Ma,{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 Ya(e){var t,n,i,r,o,l,s=Te.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return u&&m?a.createElement(a.Fragment,null,a.createElement(w.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||_.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(Et,Object.assign({},e))}var qa=n(38647),Qa=n(17034);function Ka(e){var t,n,i,r,o,s,u,m,p,v,f,g,y=e.content[0],h=a.useRef(),b=(0,jn.n)(null===(t=y.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=en.M.hasSeries(y)||Ne.d.isCompanyWidget(e.widgetTypeId),k=l.k.mergeOptions(e.analyticsOptions,{actionType:c.Vw.Click,entity:en.M.getAnalyticsEntity(y),location:c.LZ.ThumbnailHeroMediaWidget}),L=en.M.getCanBeConsumed(y).canNavigate;return y?a.createElement("div",null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement("div",{ref:h},a.createElement(Qe.u,{video:y,imageOptions:{size:d.h2.Large},type:"static",textPosition:Nn.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,en.M.isVideo(y)&&a.createElement(Qa.$,{type:Ne.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(w.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:c._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(qa.m,{video:y,yearGroups:e.yearGroups}))))),en.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Ha.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:y,analyticsData:e.analyticsData,analyticsOptions:k,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Xa(e){var t,n;return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:$e,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 $a(e){var t,n;return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:$e,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 Ja=n(74237),ei=n(84342);var ti=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,jn.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(Qe.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:en.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:Nn.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function ni(e){return en.M.isVideoType(e.data)?a.createElement(ti,Object.assign({},e)):a.createElement(ei.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Ja.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function ai(e){var t,n,i,r=e.hasLocalPermissions(Oe.E.ViewVideoResourceItems);return a.createElement(L.k,{name:e.name,description:e.description,type:T.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:ni,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 en.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 ii=n(71471),ri=n(24546);function oi(e){var t,n,i,r;return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(ri.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:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance}))}var li,ci=n(12754);function si(e){return si="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},si(e)}function ui(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=si(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=si(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==si(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var di=(ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(li={},ce.f.ThumbnailHeroMedia,{getComponent:function(){return Ka},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(ka,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListLarge,{getComponent:function(){return Vn},partialLoading:function(){var e,t,n=(e=(0,D.k)()).xs?2:e.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(j.l,null),a.createElement("div",{className:"row mb-n2"},(t=Array(n),function(e){if(Array.isArray(e))return Mn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).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(Fn.partialLoading," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListMedium,{getComponent:function(){return Zn},partialLoading:function(){return a.createElement(Wn,{type:T.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case se.z.CuratedClassifications:return Qn;case se.z.CuratedSeries:return Kn;default:return Qn}},partialLoading:function(){return a.createElement(Wn,{type:T.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===ci.x.StreamableLearning)return!1;switch(n){case se.z.CuratedClassifications:return[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv].includes(t);case se.z.CuratedSeries:return[T.ku.MoviesAndTv,T.ku.Company].includes(t);default:return!1}},className:""}),ce.f.ThumbnailFeaturedMedia,{getComponent:function(){return wa},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(I.Z,null,a.createElement(P.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(P.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(ka,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(j.l,null),a.createElement(I.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(P.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===ci.x.StreamableLearning?[T.ku.Classification].includes(t):[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.StatsCoverFixedPillListLarge,{getComponent:function(){return ba},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(j.l,null),a.createElement(I.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(P.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(da,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory].includes(t)},className:""}),ce.f.CoverFixedPillListXSmall,{getComponent:function(){return ee},partialLoading:function(){return a.createElement("div",{className:"".concat(J.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(I.Z,{className:"mb-2 ".concat(J.row)},Array(8).fill(null).map((function(e,t){return a.createElement(P.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===ci.x.StreamableLearning?[T.ku.Discover].includes(t):[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.CoverSlidingPillListSmall,{getComponent:function(){return ve},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement(j.l,null),a.createElement(fe.QL,{partialLoadingComponent:F.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===ci.x.StreamableLearning?n!==se.z.Classifications&&[T.ku.Discover,T.ku.Company,T.ku.Classification].includes(t):[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv,T.ku.Company].includes(t)},className:""}),ce.f.CoverFixedTileList,{getComponent:function(){return ie},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(j.l,null),a.createElement(te.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(li,ce.f.FeaturedThumbnailSlidingList,{getComponent:function(){return tt},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Je," ").concat(et," mb-1 ")}),a.createElement(Me.j7,{hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.HeroBanner,{getComponent:function(){return Et},partialLoading:wt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover].includes(t)},className:""}),ce.f.OnboardingSteps,{getComponent:function(){return On},partialLoading:wt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Discover].includes(t)},className:""}),ce.f.HeroBannerSmall,{getComponent:function(){return Ot},partialLoading:Tt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroThumbnailSmall,{getComponent:function(){return jt},partialLoading:function(){return a.createElement(Tt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroBlockColourSmall,{getComponent:function(){return Nt},partialLoading:function(){return a.createElement(Tt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory,T.ku.ClassificationVideos].includes(t)},className:""}),ce.f.ThumbnailFixedListXLarge,{getComponent:function(){return Ya},partialLoading:function(){return a.createElement(wt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListLarge,{getComponent:function(){return _a},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return xa(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 xa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}}(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(j.l,null),a.createElement(I.Z,{className:"mx-n1"},t.map((function(e,t){return a.createElement(P.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListSmall,{getComponent:function(){return Za},partialLoading:function(){var e,t=function(e){if(Array.isArray(e))return za(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 za(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)?za(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(j.l,null),a.createElement(I.Z,{className:"mx-n1 "},t.map((function(e,t){return a.createElement(P.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Fe},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(I.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(P.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(F.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Discover].includes(t)},className:""}),ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(li,ce.f.Heading,{getComponent:function(){return dt},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.ClassificationDirectory,T.ku.Discover].includes(t)},className:"heading-widget-template"}),ce.f.AuthorReviewer,{getComponent:function(){return E},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.Question,{getComponent:function(){return $n},partialLoading:function(){return a.createElement("div",{className:"".concat("QrLg2"," rounded-3")},a.createElement("div",{className:"mb-2 partial-loading-background",style:{height:"1.5rem",width:"75%"}}),a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"100%"}}))},icon:v.vn.WidgetTemplateQuestion,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.QuestionAccordion,{getComponent:function(){return sa},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(ea,null),a.createElement(ea,null),a.createElement(ea,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Ga},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(j.l,null),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Ra," partial-loading-background rounded-3")}),a.createElement(Va,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(ka,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Ra," partial-loading-background rounded-3")}),a.createElement(Va,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(ka,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return An},partialLoading:function(){return a.createElement(Me.j7,{size:"lg",childComponent:Tn})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification,T.ku.Discover,T.ku.Company,T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Pn},partialLoading:function(){return a.createElement(Me.j7,{size:"sm",childComponent:In})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===ci.x.StreamableLearning?[T.ku.Discover,T.ku.Company].includes(t):t===T.ku.Classification?a:[T.ku.MoviesAndTv,T.ku.Discover,T.ku.Company].includes(t)},className:""}),ce.f.FilterSlidingPillListSmall,{getComponent:function(){return st},partialLoading:function(){var e,t=(0,D.k)();return a.createElement(a.Fragment,null,a.createElement(j.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 ut(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 ut(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)?ut(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:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.CircleLogoSlidingList,{getComponent:function(){return N},partialLoading:function(){var e=8,t=(0,D.k)();return(t.sm||t.xs)&&(e=4),t.md&&(e=6),a.createElement(a.Fragment,null,a.createElement(j.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:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===ci.x.StreamableLearning?[T.ku.Discover,T.ku.Company].includes(t):[T.ku.MoviesAndTv].includes(t)},className:""}),ce.f.EventIconSlidingList,{getComponent:function(){return Ye},partialLoading:function(){var e,t=(e=(0,D.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(j.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:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===ci.x.StreamableLearning?[T.ku.Discover,T.ku.Classification,T.ku.Company].includes(t):[T.ku.Discover,T.ku.Classification].includes(t)},className:""}),ui(ui(ui(ui(li,ce.f.ThumbnailVerticalList,{getComponent:function(){return oi},partialLoading:function(){return a.createElement(ii.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===ci.x.StreamableLearning&&[T.ku.Company,T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return ai},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==ci.x.StreamableLearning&&[T.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmall,{getComponent:function(){return $a},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ce.f.ThumbnailSlidingListLarge,{getComponent:function(){return Xa},partialLoading:function(){return a.createElement(Me.j7,{size:"lg"})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),mi=n(65294);const pi={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function vi(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,u=(0,mi.Y)({prevent:!s}),d=u.ref,m=u.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=Ne.d.useGetContent(e.widgetTypeId,e.content||(null===(n=v.data)||void 0===n?void 0:n.content),null===(o=v.data)||void 0===o?void 0:o.preferences),g=f.content,y=f.unfilteredContent,h=(0,D.k)(),b=function(e,t){return!(Ne.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,g),E=!Ne.d.canDisplayOnScreenSize(h,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,b||E)}),[v.hasCompleted,b,E,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var k=e.appLinks?Object.assign({},e.appLinks):null;(null==k?void 0:k.videoType)&&(k.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 L=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}),w=p&&!v.hasCompleted||e.isEditing&&b,x=di[e.templateId].partialLoading,C=di[e.templateId].getComponent(e.widgetTypeId),S=di[e.templateId].className;return w||!b&&!E?a.createElement("div",{id:e.widgetTypeId===se.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(S," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(pi.widgetHighlight," py-2 px-3 rounded-3"):""},Ne.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(pi.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),w?a.createElement("div",{ref:d},a.createElement(x,null)):a.createElement(C,Object.assign({},e,{appLinks:k,content:g,unfilteredContent:y,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:L,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(66869),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){var n;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,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q,eb:()=>a.e});var a=n(72861);n(14244)},72639:(e,t,n)=>{var a;n.d(t,{p:()=>a}),function(e){e[e.Level_1=1]="Level_1",e[e.Level_2=2]="Level_2",e[e.Level_3=3]="Level_3",e[e.Level_4=4]="Level_4"}(a||(a={}))},80889:(e,t,n)=>{n.d(t,{_:()=>g});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),u=n(45778);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var p=new Set([].concat(d(Object.values(c.e.Classifications.Twig.EnglandPrimary)),d(Object.values(c.e.Classifications.Twig.InternationalPrimary)),d(Object.values(c.e.Classifications.Twig.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function f(e){return v(o.t.pick(e,["audienceId"]))}var g={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:i._.urlBuilder("/api/discover/dashboards",o),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(a,":").concat(null==n?void 0:n.join(":")),formatData:function(e){var t;return a?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===a.toString()})):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){return l.d.formatResponseData(e,a)},normalizeOptions:{namespace:f(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall,success:r}},discoverWidgetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(t),n),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(t),n),key:"widget:".concat(t,":").concat(v(n)),formatData:function(t){var n=l.d.formatResponseData(t,r);if(e)return n;if(Array.isArray(n.content)){var a=n.content.filter((function(e){return!u.G.isClassification(e)||!p.has(e.id)}));n.content=a}return n},normalizeOptions:{namespace:f(n)},normalize:a!==s.f.EditableCoverFixedPillListSmall,success:o}},getDashboard:function(e,t,n,a,o,l){var c={target:n,status:t,userType:e};(null==a?void 0:a.length)&&(c["widgets.curriculum"]=a);var s="dashboard:".concat(n,":").concat(e,":").concat(o,":").concat(t.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:s,formatData:function(e){var t;return o?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===o.toString()})):r.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,t,n){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:a.k.PUT,data:{userId:n.id,customerId:n.customerId,metadata:t}}}}},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(92582),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))}}},52108:(e,t,n)=>{n.d(t,{M:()=>r});var a=n(16367);var i="markdown-link",r={isLink:function(e){return e.classList.contains(i)},getSeoWidgetRenderer:function(){var e=new a.Renderer;return e.link=function(e,t,n){return'<a href="'.concat(e,'" target="_blank" class="info-link ').concat(i,'">').concat(n,"</a>")},e.list=function(e){return'<ul class="'.concat("TIGbB",'">').concat(e,"</ul>")},e}}},87114:(e,t,n)=>{n.d(t,{i:()=>d});var a,i=n(23481);!function(e){e.Root="root"}(a||(a={}));var r=n(55171),o=n(52641),l=n(85594),c=n(72639),s=n(26154),u=i.T.encloseNamespace("subjects.utils"),d={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===l.A.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?c.p[e]:e},getMappedPresentationBackgroundColour:function(e){switch(d.getMappedPresentationLevel(e)){case c.p.Level_1:return"primary";case c.p.Level_3:return"secondary";default:case c.p.Level_2:return"tertiary"}},getPresentationLevelImage:function(e,t){switch(d.getMappedPresentationLevel(e)){case c.p.Level_1:if("topic-banner"===t)return r.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_1.TOPIC_TALL_POSTER;case c.p.Level_2:if("topic-banner"===t)return r.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_2.TOPIC_TALL_POSTER;default:case c.p.Level_3:if("topic-banner"===t)return r.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_3.TOPIC_TALL_POSTER;case c.p.Level_4:if("topic-banner"===t)return r.e.Images.Level_4.TOPIC_BANNER}},getExploreAllTopicsTitle:function(e,t){return t<o._.MULTI_PRESENTATION_THRESHOLD?u("exploreAllTopicsHeading"):u("exploreAllTopicsDynamicHeading",{presentationName:e})},isFollowing:function(e){var t,n;return 1===(null===(n=null===(t=null==e?void 0:e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},isTopLevelTopic:function(e){var t;return!!(null===(t=null==e?void 0:e.parentIds)||void 0===t?void 0:t.includes(a.Root))},canHaveVideoListTab:function(e){var t;return null===(t=null==e?void 0:e.widgets)||void 0===t?void 0:t.some((function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents}))},getActiveTopicTab:function(e,t){return d.isTopLevelTopic(e)?t===s.ku.Classification?"new-releases":"all-topics":t===s.ku.Classification?"curated-topic":"video-list"}}},73688:(e,t,n)=>{n.d(t,{B:()=>c});var a=n(20354),i=n(80889),r=n(26154),o=n(21366),l=n(31700);function c(e){var t=a.a.useBasicFetch(l.g.streamablePresentation());return{dashboard:a.a.useBasicFetch(t.hasCompleted&&i._.getDashboard(r.Yv.Any,e.dashboardId?[r.GL.Published,r.GL.Draft]:[r.GL.Published],o.S.getUnknownDashboardTarget({targetType:e.targetType,presentationId:t.data.id,companyId:e.companyId,classificationId:e.classificationId}),null,e.dashboardId)),isPreviewing:!!e.dashboardId}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[9596],{53855:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,f:()=>l});var r=n(32735),c=n(23481),a=n(83914),o=n(35223);const i="VSAPU",s="kgeXh";var l,u=c.T.encloseNamespace("shared.widgetButton");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(l||(l={}));var d=r.memo((function(e){var t,n,c,d=e.direction===l.Left,v=d?o.vn.ChevronLeft:o.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement("div",{className:"_ejId",style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(c=e.state)||void 0===c?void 0:c.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&r.createElement("div",{className:d?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("button",{onClick:e.onClick,className:"".concat("AtsWP"," ").concat(d?i:s),tabIndex:-1}),r.createElement("button",{className:"".concat((t="BVcIS",t+=d?" ".concat(i," ").concat(e.leftButtonClassName):" ".concat(s," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick,"aria-label":u(d?"previous":"next")},e.hoverText&&r.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),r.createElement(a.x,{svgName:v,size:a.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}))},5960:(e,t,n)=>{"use strict";var r,c;n.d(t,{H:()=>c,X:()=>r}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(r||(r={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(c||(c={}))},78417:(e,t,n)=>{"use strict";var r;n.d(t,{r:()=>r}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(r||(r={}))},1164:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>r}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(r||(r={}))},11565:(e,t,n)=>{"use strict";n.d(t,{R:()=>f});var r,c,a=n(99940),o=n(97395),i=n(62803),s=n(5960),l=n(4594),u=n(78417);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(r||(r={})),n(57900),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(c||(c={})),c.RecentlyAdded;var d=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:i.v.VIDEO})},v=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:u.r.StripMetadata,shareId:t})},m=function(e){return o._.urlBuilder("{gateway}/v1/objects",{"query.video":i.v.VIDEO_COLLECTION,"query.clip":i.v.CLIP_COLLECTION,"query.interactive":i.v.INTERACTIVE_COLLECTION,id:e})},p=function(e){var t=e.videoId,n=e.context,c=e.collectionId,a=e.moviesAndTv,s={videoId:t,limit:e.limit,query:i.v.VIDEO_COLLECTION};return n&&(n===r.Widget?s["context.widgetId"]=c:(s["context.collectionType"]=n,s["context.collectionId"]=c)),a&&(s["context.moviesAndTv"]=!0),o._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},f={video:function(e,t){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:i.v.VIDEO,permissionFilterOption:t}),publicUrl:o._.urlBuilder("/api/objects/".concat(e),{query:i.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,n,r){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:r}},sharedVideo:function(e,t,n,r){return{url:d(e,t),key:"shared:video:".concat(e),success:n,error:r}},myVideos:function(e,t){var n=i.v.VIDEO_COLLECTION,r=i.v.CLIP_COLLECTION,c=i.v.INTERACTIVE,a="videos[".concat(n,"]{libraries.typeid:").concat(l.E.WorkspaceCollection,"}"),d="clips[".concat(r,"]"),v="interactives[".concat(c,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),m={query:"(".concat(a,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:u.r.StripMetadata};return t&&(m.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),m),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:m(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:m(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,r,c){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:a.k.PUT,data:t,success:n,error:r,always:c}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:o._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:o._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(l.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:a.k.DELETE,success:t,error:n,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,n,r,c){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),i=["categoryId=".concat(n),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(i),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(n),type:a.k.DELETE,success:r,error:c,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv;return{url:p(e),key:"related:videos:".concat(t,":").concat(n,":").concat(r,":").concat(c)}},collectionVideos:function(e,t,n,r,a,l){var d=function(e){switch(e){case c.AtoZ:return"orderby:name";case c.ZtoA:return"orderbydesc:name";case c.Newest:return"orderbydesc:datecreated";case c.Oldest:return"orderby:datecreated";case c.RecentlyAdded:return"orderbydesc:timestamp";case c.Series:return"orderby:seriessort";default:return}}(t),v=i.v.VIDEO_COLLECTION,m=i.v.CLIP_COLLECTION,p=i.v.INTERACTIVE,f="videos[".concat(v,"]"),y="clips[".concat(m,"]"),g="interactives[".concat(p,"]{status:[").concat(s.X.Published,",").concat(s.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(y,"|").concat(g,")").concat(d?"{".concat(d,"}"):""),permissionFilterOption:u.r.FilterOut},n?{cursor:n}:{}),h=["folder","videos",e,n,t].filter((function(e){return!!e})).join(":");return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:h,success:r,error:a,always:l}},pointsOfInterest:function(e,t,n,r,c){var a={query:"{limit:100}",cursor:t};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),a),publicUrl:o._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),a),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:r,always:c}},regionAlternatives:function(e,t,n,r){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},74237:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(97395),c=n(92582),a=n(65858),o=null,i={getVideoDownloadUrl:function(e,t){return r._.safeUrlConcat(r._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n){var r,i=o;o||(i=o=document.createElement("iframe"),document.body.appendChild(i),i.style.display="none"),i.src=e.url,c.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(r=null==e?void 0:e.metadata)||void 0===r?void 0:r.resourceType},t),Object.assign({actionType:a.Vw.Download,entity:a.py.Resource,workflowPhase:a.eu.Complete},n))}}},38400:(e,t,n)=>{"use strict";n.r(t),n.d(t,{PreviewPdfView:()=>T});var r=n(32735),c=n(74027),a=n(17327),o=n.n(a),i=n(97395),s=n(20354),l=n(92582),u=n(65858),d=n(63855),v=n(58960),m=n(50023),p=n(83914),f=n(83345),y=n(53855),g=n(1164),b=n(99940),h=n(45157),E={resource:function(e){return{url:"/api/domain/v2/objects/".concat(e),key:"resources:".concat(e)}},publicResource:function(e,t){var n="/api/objects/".concat(e);return t&&(n+="?shareId=".concat(t)),{url:n,key:"resources:".concat(e,":").concat(t)}},videoResources:function(e){return{url:"/api/domain/v2/objects/".concat(e,"/resources?query=customer"),key:"videos:".concat(e,":resources")}},addResource:function(e,t,n,r,c){return{url:"/api/domain/v2/objects/".concat(e,"/resources"),key:"create:resource:".concat(t.fileId||h.Y.getRandomInt()),data:t,type:b.k.POST,invalidationKeys:"videos:".concat(e,":resources"),success:n,error:r,always:c}},updateResource:function(e,t,n,r,c){return{url:"/api/domain/v2/objects/".concat(e),key:"update:resource:".concat(e),data:t,type:b.k.PUT,success:n,error:r,always:c}},deleteResource:function(e,t,n,r,c){return{url:"/api/domain/v2/objects/".concat(e),key:"delete:resource:".concat(e),type:b.k.DELETE,invalidationKeys:"videos:".concat(t,":resources"),success:n,error:r,always:c}}},w=n(11565),I=n(74237),k=n(35223);const j={document:"frWZr",page:"BxRha",documentError:"swyjp",buttonLeft:"mVvyw",buttonRight:"XSAEx"};function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,c,a,o,i=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);s=!0);}catch(e){l=!0,c=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw c}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(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)?N(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 N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=80,L="shared.previewPdf";function P(e){var t,n,r;return e?(null===(t=e.metadata)||void 0===t?void 0:t.type)===g.L.Pdf||(null===(n=e.metadata)||void 0===n?void 0:n.type)===g.L.Image?e.url:null===(r=e.pdf)||void 0===r?void 0:r.url:null}function A(e){return r.createElement("div",{className:"d-flex flex-column align-items-center justify-content-center"},r.createElement("img",{alt:"",role:"presentation",src:e.errorImageUrl,className:"w-50 pb-3"}),r.createElement("h2",{className:"h5"},r.createElement(f.x,{namespace:L,phrase:"errorHeading"})),r.createElement("p",null,r.createElement(f.x,{namespace:L,phrase:"downloadAnyway"})),r.createElement(d.h,{svgName:k.vn.Download,onClick:e.onClickDownload,className:"btn btn-dark"},r.createElement(f.x,{namespace:L,phrase:"download"})))}function T(e){var t,n,a,d=C(r.useState(null),2),b=d[0],h=d[1],N=C(r.useState(1),2),T=N[0],R=N[1],x=C(r.useState(!1),2),_=x[0],B=x[1],S=r.useRef(null),V=s.a.useBasicFetch(E.publicResource(e.id,e.shareId)),D=s.a.useBasicFetch(e.shareId?w.R.sharedVideo(e.videoId,e.shareId):w.R.video(e.videoId));function U(e){var t,n,r;!function(e){if(S.current){var t=S.current.style.height;e>+t.substring(0,t.length-2)&&(S.current.style.height=e+"px")}}(e.height),(t=e.width)>+(r=(n=document.getElementsByClassName("modal-dialog")[0]).style.width).substring(0,r.length-2)&&(n.style.width=t+O+"px"),n.style.maxWidth="100%"}function q(e){h(e.numPages)}function F(){T===b||_||R(T+1)}function z(){1===T||_||R(T-1)}function W(){var e,t;I.T.downloadResource(V.data,{videoId:null===(e=D.data)||void 0===e?void 0:e.id,videoName:null===(t=D.data)||void 0===t?void 0:t.name},{location:u.LZ.Popup})}return r.createElement(v.G,{title:null!==(n=null===(t=V.data)||void 0===t?void 0:t.name)&&void 0!==n?n:"",showLoadingSpinner:!V.data,size:"lg",closePopup:e.closePopup,headerButtons:(a=[{svgName:k.vn.Download,onClick:W,className:"btn btn-link me-2",svgSize:p.S.Large}],_||a.push({svgName:k.vn.Print,onClick:function(){var e;_||(o()(i._.urlBuilder(P(V.data),{dl:"false"}),V.data.metadata.type===g.L.Image?"image":"pdf"),l.k.logUserAction({id:null===(e=V.data)||void 0===e?void 0:e.id},{location:u.LZ.Popup,actionType:u.Vw.Print,entity:u.py.Resource,workflowPhase:u.eu.Complete}))},className:"btn btn-link",svgSize:p.S.Large}),a)},function(){var t;return V.data?(null===(t=V.data.metadata)||void 0===t?void 0:t.type)===g.L.Image?r.createElement("div",{className:"d-flex justify-content-center w-100 h-100"},r.createElement("img",{alt:V.data.name,className:"img-fluid",src:P(V.data)})):r.createElement(r.Fragment,null,r.createElement(c.BB,{file:P(V.data),className:"".concat(j.document," ").concat(_?j.documentError:""),onLoadSuccess:q,onLoadError:function(){return B(!0)},error:function(){return r.createElement(A,{onClickDownload:W,errorImageUrl:e.errorImageUrl})},loading:m.E},r.createElement(c.T3,{pageNumber:T,loading:m.E,inputRef:function(e){return S.current=e},className:"".concat(j.page," d-flex justify-content-center position-relative"),onLoadSuccess:U,onLoadError:function(){return B(!0)},error:function(){return r.createElement(A,{onClickDownload:W,errorImageUrl:e.errorImageUrl})}}),r.createElement(y.W,{onClick:z,direction:y.f.Left,hide:_||1===T,className:j.buttonLeft}),r.createElement(y.W,{onClick:F,direction:y.f.Right,hide:_||T===b,className:j.buttonRight})),!(!(b&&b>1)||_)&&r.createElement("p",{className:"mt-3 text-center"},r.createElement(f.x,{namespace:L,phrase:"pageNumber",options:{current:T,total:b}}))):r.createElement(r.Fragment,null)}())}},90502:()=>{},98530:()=>{},74042:()=>{},88312:()=>{},81465:()=>{}}]);