@clickview/streamable-learning 0.16.1 → 0.16.2-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/bundles.json +0 -4
- package/dist/css/1067-streamable-learning-629bbd0a42.chunk.css +0 -8
- package/dist/css/1437-streamable-learning-4e8b60a4ff.chunk.css +0 -12
- package/dist/css/2146-streamable-learning-2d8c1745cf.chunk.css +0 -13
- package/dist/css/2967-streamable-learning-a004e2d423.chunk.css +0 -4
- package/dist/css/2987-streamable-learning-b5d226bbb6.chunk.css +0 -5
- package/dist/css/3498-streamable-learning-8c9306617b.chunk.css +0 -2
- package/dist/css/4018-streamable-learning-e5335c9805.chunk.css +0 -6
- package/dist/css/4109-streamable-learning-8f682301c6.chunk.css +0 -1
- package/dist/css/4254-streamable-learning-e493f4a027.chunk.css +0 -2
- package/dist/css/5594-streamable-learning-18a676a2f8.chunk.css +0 -48
- package/dist/css/6533-streamable-learning-57edcfcad7.chunk.css +0 -6
- package/dist/css/719-streamable-learning-7133f6f383.chunk.css +0 -10
- package/dist/css/7272-streamable-learning-ca6ff5e866.chunk.css +0 -3
- package/dist/css/7303-streamable-learning-cf56e2be0a.chunk.css +0 -88
- package/dist/css/7545-streamable-learning-16b4fe0f3a.chunk.css +0 -22
- package/dist/css/7694-streamable-learning-35adffc1e3.chunk.css +0 -9
- package/dist/css/7730-streamable-learning-55cdf7ecba.chunk.css +0 -2
- package/dist/css/8069-streamable-learning-d400800d3e.chunk.css +0 -32
- package/dist/css/9638-streamable-learning-9e6986fa70.chunk.css +0 -5
- package/dist/css/9861-streamable-learning-7ae7bbdf80.chunk.css +0 -78
- package/dist/css/9908-streamable-learning-850d8debe8.chunk.css +0 -13
- package/dist/css/streamable-learning-9f5a620058.css +0 -21
- package/dist/languages/en.json +0 -1
- package/dist/scripts/1067-8f45d4c0c4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1437-aced338a12-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1661-b235a2d101-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js +0 -2
- package/dist/scripts/1934-3a87d81fd0-streamable-learning.chunk.js.LICENSE.txt +0 -9
- package/dist/scripts/2012-3194a5bd39-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2042-2eb4fc393d-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2087-c594edcf24-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2146-05b86ba590-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2215-71ae9c9e39-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2676-7762258774-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2700-15cd0e4a48-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2861-e66f927434-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2877-068bcf885b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2967-4209d1c930-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-66f91261bd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3093-c91e44e996-streamable-learning.chunk.js +0 -1
- package/dist/scripts/339-75d7ad2471-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3498-2099b4714e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/370-cc0e747219-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3933-27535488c4-streamable-learning.chunk.js +0 -1
- package/dist/scripts/3958-7d615280bd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js +0 -2
- package/dist/scripts/4018-d20660c121-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/4064-5f3be1a2ea-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4109-fdf1494406-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4254-5cb6b89e64-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-5aafa404c6-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5173-a67ee71a21-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5446-588d118d63-streamable-learning.chunk.js +0 -1
- package/dist/scripts/5594-8fc2f58dcd-streamable-learning.chunk.js +0 -1
- package/dist/scripts/625-654fffada2-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6367-3e950e235f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js +0 -2
- package/dist/scripts/65-278dc73de9-streamable-learning.chunk.js.LICENSE.txt +0 -105
- package/dist/scripts/6533-1921070558-streamable-learning.chunk.js +0 -1
- package/dist/scripts/6909-31e9162346-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7102-c2772fda5e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js +0 -2
- package/dist/scripts/719-9c019a490c-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7272-c7d7094d8c-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7303-b05c17cd62-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7303-b05c17cd62-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7545-9045e9952b-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7694-9633b20fb9-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7730-af616f4052-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7897-83ecf29c44-streamable-learning.chunk.js +0 -1
- package/dist/scripts/7925-28c7dfa1ff-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8069-f88756e557-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8352-2c3d85bae1-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js +0 -2
- package/dist/scripts/8598-2184349983-streamable-learning.chunk.js.LICENSE.txt +0 -32
- package/dist/scripts/8599-f4b6336a38-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8937-2cb21b93cf-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9531-6e0529dcb6-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9638-617862d0d0-streamable-learning.chunk.js +0 -1
- package/dist/scripts/9861-9c6a96ddd0-streamable-learning.chunk.js +0 -2
- package/dist/scripts/9861-9c6a96ddd0-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js +0 -2
- package/dist/scripts/9908-ba44daa799-streamable-learning.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/bundle-c4b42f88a5.min.js +0 -2
- package/dist/scripts/bundle-c4b42f88a5.min.js.LICENSE.txt +0 -108
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js +0 -2
- package/dist/scripts/pdf.worker.entry-5059106716.min.worker.js.LICENSE.txt +0 -21
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7303-b05c17cd62-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),d=n(83914),u=n(10038),m=n(52108),p=n(35223);const v={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function g(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 f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(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 f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var y="1.2rem",h=500;function b(e){var t=g((0,o.D)("should:expand:".concat(e.id),e.isBot,{storage:r.Z1.LocalStorage}),2),n=t[0],f=t[1],b=g(a.useState(n?"100%":y),2),E=b[0],w=b[1],k=g(a.useState(!n),2),L=k[0],C=k[1],x=g(a.useState(i(e.answer,{renderer:m.M.getSeoWidgetRenderer()})),2),T=x[0],S=x[1],O=a.useRef(null),N=a.useRef(null),j=a.useRef(null);function D(){w(y),f(!1),O.current=window.setTimeout((function(){C(!0)}),h)}return a.useEffect((function(){var t=i(e.answer||"",{renderer:m.M.getSeoWidgetRenderer()});T!==t&&(T&&n&&D(),S(t))}),[e.answer]),a.useEffect((function(){"100%"===E&&j.current&&w(j.current.clientHeight+"px")}),[E]),(0,u.H)((function(){n&&D()}),null,[n]),e.question&&T?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=T,a.style.visibility="hidden",N.current.appendChild(a),w("".concat(a.clientHeight,"px")),N.current.removeChild(a),f(!0),window.clearTimeout(O.current),C(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(d.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(L?"clamp-1":""),dangerouslySetInnerHTML:{__html:T},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:()=>w,W:()=>k});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(57408),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v={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}},g=n(35223);function f(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const y={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function w(e){var t,n,r=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=u[0],v=u[1],f=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f),a.createElement("div",{className:y.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),f);var E="position-relative ".concat(y.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(y.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(y.passwordInput," border-0 w-100 h-100 outline-none rounded")}),f),"password"===d.type&&a.createElement(m.x,{svgName:"password"===p?g.vn.VisibleOn:g.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(y.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=e.infoTooltipPlacement,h=e.infoText,k=e.formSize,L=e.showOptionalLabel,C=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),x=(0,o.u6)(),T=x.errors,S=x.touched,O=function(){};if("checkbox"===C.type){var N=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(N.onChange=O),a.createElement(u,Object.assign({},N))}var j=Object.assign(Object.assign({},C),{className:v.getCustomFormControlClassName(T,S,C.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=O),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:C.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(y.infoTooltip),svgName:g.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!C.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(f,{fieldName:C.name,limit:C.maxLength}))),a.createElement(w,Object.assign({},j,{"aria-errormessage":"".concat(C.name,"Error")})),!!h&&a.createElement(r.Z.Text,{className:"text-secondary"},h),a.createElement(o.Bc,{name:C.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(C.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>d,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];o(d,u)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},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(d,Object.assign({},e)))})))}function d(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},81326:(e,t,n)=>{n.d(t,{L:()=>gi});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(92582),c=n(65858),s=n(83914),d=n(83345),u=n(54610),m=n(12778),p=n(67453),v=n(35223);const g={card:"TTPKV",avatar:"nF3tK",time:"lwnZl"};var f="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function h(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(g.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(g.avatar," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,u.__.Avatars,e.person.imageId,u.h2.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(d.x,{namespace:f,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:f,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:g.time},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:f,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:f,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(d.x,{namespace:f,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 w(){return a.createElement("div",{className:"".concat(g.card," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g.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 k=n(5281),L=n(57408),C=n(7733),x=n(9085);var T=function(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,x.x)(e.data.name,C.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(L.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,")")}}))},S=n(58704),O=n(26154);function N(e){var t;return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.z.Companies,collection:e.content,childComponent:T,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 P=n(47770),A=n(68050),I=n(69111),F=n(9513),M=n(92802),_=n(23481),V=n(10731),R=n(23201),B=n(1269),H=n(82644),U=n(63855),W=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 d(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:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=y.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Y(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function O(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(O,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(L,"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(L),e},t.awrap=function(e){return{__await:e}},C(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(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,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;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),f}},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,W.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(V.V,{emoji:"🔎"},a.createElement(d.x,{namespace:X,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(U.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(d.x,{namespace:X,phrase:"yes"})),a.createElement(U.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.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(V.V,{emoji:"👏"},a.createElement(d.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(d.x,{namespace:X,phrase:"back"})),a.createElement(R.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(V.V,{emoji:"😢"},a.createElement(d.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(d.x,{namespace:X,phrase:"back"})),a.createElement(R.A,{variant:"dark",submitText:_.T.getPhrase(X,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(V.V,{emoji:"🙌"},a.createElement(d.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(A.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:u.h2.Small});return a.createElement(I.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(L.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(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(I.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),de=n(87114);function ue(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=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===O.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:O.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:u.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===O.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:me(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===O.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(le.e.Images.STREAMABLE_TOPIC_COVER,{size:u.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===O.OL.ClassificationLatestReleases;return a.createElement(re.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return ue(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return ue(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)?ue(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,d;return t.id===O.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===O.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:F.Vz,partialLoadingComponent:oe.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&de.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===se.z.Classifications&&e.templateId===ce.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?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,shouldHighlight:function(e){return e.id===O.OL.ClassificationDirectory}}})}var ge=n(65163),fe=n(98269),ye=n(1048),he=n(11607),be=n(17808),Ee=n(1287),we=n(2102),ke=n(83523),Le=n(29309),Ce="shared.subjectWidgetItem",xe=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Le.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(Le.Z.widgetItem," ").concat(Le.Z.draggingItem),style:ye.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Le.Z.widgetItem),style:ye.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Le.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(ke.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?_.T.getPhrase(Ce,e.isVisible?"hideFromDashboard":"showOnDashboard"):_.T.getPhrase(Ce,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Te=n(91028),Se=n(16714),Oe=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 d(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:T(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",f={};function y(){}function h(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=y.prototype=Object.create(E);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==je(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===f)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?g:p,s.arg===f)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=g,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function O(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(O,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(L,"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(L),e},t.awrap=function(e){return{__await:e}},C(x.prototype),s(x.prototype,l,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new x(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(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,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;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),f}},t}function Pe(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 Ae(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)?Ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ie="shared.editableCoverFixedPillListSmall";function Fe(e){var t,n=Pe(a.useState(!1),2),i=n[0],r=n[1],o=Pe(a.useState(!1),2),s=o[0],u=o[1],m=Ne.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,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]),g=Pe(a.useState(v),2),f=g[0],y=g[1],h=Pe(a.useState(v),2),b=h[0],E=h[1],w=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!!f[e.id]&&!(null===(t=f[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return f[e.id].index-f[t.id].index}))}),[m,b,f,i]),k=(0,W.Z)();a.useEffect((function(){r(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var L=a.useMemo((function(){return!(i||!w.length)&&Object.values(b).some((function(e){return e.hidden}))}),[i,b]);function C(e){return b[e.id]?b[e.id].index:w.findIndex((function(t){return t.id===e.id}))}function x(e){var t;return!(null===(t=b[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},b),n=x(e);t[e.id]={id:e.id,hidden:n,index:C(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 S=a.useMemo((function(){return!ye.t.isEqual(v,b)}),[v,b]),O={id:e.presentation.id,name:_.T.getPhrase(Ie,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:de.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},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(Ie,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:de.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],j=!i&&N.length>0&&e.settings.hasTopicDirectories,D=e.hasLocalPermissions(Se.E.ManageDiscoverPreferences),P=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.EditableSubjectPreferencesWidget});return w.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(Ie,"updating"):e.name),!i&&D&&a.createElement(he.L,{className:"hover-text-underline",onClick:function(){return r(!0)}},_.T.getPhrase(Ie,"edit"))),!!e.description&&!i&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),i&&a.createElement("p",{className:"description mb-2"},a.createElement(d.x,{namespace:Ie,phrase:"editingDescription"}))),i&&D&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(fe.Z,{variant:"link",className:"me-2",onClick:function(){E(f),r(!1)}},a.createElement(d.x,{namespace:Ie,phrase:"cancel"})),a.createElement(we.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:u(!0),n=p?m.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(f),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(b)).then((function(){y(b),u(!1),r(!1)})).catch((function(){u(!1),k.error(_.T.getPhrase(Ie,"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:!S},a.createElement(d.x,{namespace:Ie,phrase:"update"})))),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},L&&a.createElement(I.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Te.V,{data:O,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:P,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories,shouldHighlight:function(){return e.settings.hasTopicDirectories}})),a.createElement(be.Q,{ids:w.map((function(e){return e.id})),getDragOverlay:function(e){var t=w.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(xe,{data:t,onToggleVisibility:T,isVisible:x(t),isDragging:!0,canToggle:!x(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=w.find((function(t){return t.id.toString()===e.active.id.toString()})),n=w.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=C({id:t.id}),i=w.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=w[a];if(r){var o=Object.assign({},b);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=Oe.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}}})(w,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!x(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},w.map((function(t){return a.createElement(I.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:xe,childProps:{data:t,onToggleVisibility:T,isVisible:x(t),isDragging:!1,canToggle:!x(t)||Object.values(b).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Te.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:P,multiline:!0,highlightOnHover:e.settings.hasTopicDirectories,showNewVideosCount:e.settings.hasTopicDirectories})))}))),j&&N.map((function(t){return a.createElement(I.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Te.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},P),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){return e.settings.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Me=n(11518),_e=n(43933),Ve=n(39880);const Re={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(Re.container," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(L.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 Ue(e){var t=e.data,n=Be(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Re.container," ").concat(Re.dateItemContainer," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Ve.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:u.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 We(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=We(t===O.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"),d=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.endOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),g=new Map;function f(e){if(g.has(e.group)){var t=g.get(e.group);g.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(We(t.events),[e.event])}))}else g.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)f({group:"today",startDate:i,endDate:null,event:e,body:{text: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");f({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?f({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<=d?f({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("thisMonth")}):e.startDate>=u&&e.startDate<=m?f({group:"nextMonth",startDate:u,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("nextMonth")}):e.startDate>=p&&e.startDate<=v&&f({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("later")});else f({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}}}}(g.values());try{for(b.s();!(y=b.n()).done;){var E=y.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};h.push(w),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===O.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,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:O.l9.Row,contents:S.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:Ue,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,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)===O.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.")}()),d=s[0],u=s[1];a.useEffect((function(){e.onHover(u)}),[u]);var m="eo8oY";return o.type===O.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:d,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:u,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,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(L.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(k.k,{id:e.id,type:O.l9.Row,contents:S.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(L.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,de.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(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.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 dt(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 ut(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),gt=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 ft={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(U.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(L.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ft.banner)},a.createElement("div",{className:"".concat(ft.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=Oe.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:u.__.Banners},{size:u.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 wt="iCyo4",kt="cgv_6";function Lt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(kt)}))}const Ct={cta:"nA9th",banner:"b5ljD",bannerImage:"dj_1H",blurb:"UBcVE",presentations:"fGBlR",bannerContent:"lkPfM"};function xt(e){var t,n,i,r=gt[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||rt.H6],o=gt[(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(Ct.banner)},a.createElement("div",{className:"".concat(Ct.bannerImage," ").concat(Ct.blurb," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Ct.bannerContent," ").concat(e.widgetTypeId===se.z.Blurb?Ct.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(U.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function Tt(e){var t=e.hasPermissions(Se.C.ManageSubjectPreferences)||e.hasLocalPermissions(Se.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(L.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(Ct.banner)},a.createElement("div",{className:"".concat(Ct.bannerImage," ").concat(Ct.presentations),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(Ct.bannerContent," ").concat(Ct.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(Oe.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function St(e){switch(e.widgetTypeId){case se.z.Blurb:return a.createElement(xt,Object.assign({},e));case se.z.Presentations:return a.createElement(Tt,Object.assign({},e));default:return a.createElement(bt,Object.assign({},e))}}function Ot(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(Ct.banner)},a.createElement("div",{className:"".concat(Ct.bannerContent)}))}function Nt(e){var t,n,i=Oe.m.first(e.content),r=(0,D.k)(),o=Object.assign(Object.assign({},e.analyticsData),{id:i.id,name:i.name,presentationId:i.presentationId}),l=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 O.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 O.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 O.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function jt(e){var t,n,i,r,o,l,s=Oe.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m,backgroundSize:"50%"};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),f=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return d&&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:g,analyticsOptions:f,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(St,Object.assign({},e))}var Dt=n(43306),Pt=n(2948),At=n(46477),It=n(25925),Ft=n(21750),Mt=(n(99940),n(97395)),_t=n(1651),Vt=n(56050);function Rt(e){return Rt="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},Rt(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"!=Rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=Rt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rt(t)?t:t+""}var Ut,Wt,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 Vt.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"}(Ut||(Ut={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Wt||(Wt={}));var $t=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ut.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wt.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 dn={circleContainer:"p8Vgz",backgroundCircle:"asGGE",circleSuccess:"PXLNj",circleWarning:"ZckRN",circleDanger:"slBRg",lgCircleContainer:"N8KCI",pendingCircle:"DKrcq",centredPercentageText:"tpmLR"};var un,mn,pn=2,vn=5.8,gn=.2,fn=.36;function yn(e){var t=e===un.Large?vn:pn,n=e===un.Large?fn:gn;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?dn.circleSuccess:e>=t.MODERATE?dn.circleWarning:dn.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(dn.circleContainer);return e===un.Large&&(n+=" ".concat(dn.lgCircleContainer)),wn(t)&&(n+=" ".concat(dn.pendingCircle)),n}function wn(e){return"number"!=typeof e}function kn(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:dn.backgroundCircle}),!wn(e.percentage)&&a.createElement("circle",{ref:t,r:yn(e.size),className:hn(e.percentage,e.scoreThresholds)}))}function Ln(e){var t,n,i=function(e){if(!wn(e))return+e.toFixed(2)}(e.percentage),r=e.layout===mn.LabelInside?un.Large:un.Small,o=e.customLabel||(wn(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(kn,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===mn.LabelInside&&a.createElement("span",{className:dn.centredPercentageText},o)))}!function(e){e.Small="small",e.Large="large"}(un||(un={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(mn||(mn={})),Ln.defaultProps={layout:mn.CircleOnly};var Cn=n(64818);var xn="widgets.onboardingSteps",Tn=_.T.encloseNamespace(xn);function Sn(e){var t,n,i,o,l,u,m,p,g=function(e){var t,n,i,o=(n=(0,Pt.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()),d=r.a.useBasicFetch((null===(t=s.data)||void 0===t?void 0:t.isAuthenticated)&&an.N.user(s.data.id)),u=r.a.useBasicFetch(Ft.x.availablePresentations(It.R.Subject)),m=r.a.useBasicFetch(Ft.x.presentation(It.R.Subject)),p=r.a.useBasicFetch(Ft.x.availablePresentations(It.R.Curriculum)),v=r.a.useBasicFetch(tn(new $t)),g=r.a.useBasicFetch(nn.o.mySubjectPreferences()),f=(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&&d.hasCompleted&&u.hasCompleted&&p.hasCompleted&&m.hasCompleted&&v.hasCompleted&&g.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=d.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?At.m.getOnboardingPathway({jobTitle:r,userSettings:h.data,presentations:u.data,curriculums:p.data,preferredSubjects:g.data,preferredPresentation:o,appLink:ln.O.getCurrentRoute().appLink,appLinks:e,masterUser:d.data,hasPlaylist:l,hasPermissions:f,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:{}),f=g.getPathway,y=g.hasLoadedPathway,h=y&&f(),b=Cn.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(Se.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:At.m.getProgress(h)},At.m.getOnboardingScreenStates(h))}(),w=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=At.m.getProgress(h);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=w.overallPercentage,C=w.totalScreens,x=w.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(Ln,{percentage:Math.round(k)/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(Tn("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Tn("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Tn("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":h.currentScreen,x,C,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(u=e.imageUrls)||void 0===u?void 0:u.onboardingTeacherBackground,"')")}},a.createElement(L.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(d.x,{namespace:xn,phrase:"completeSetup"}))))}function On(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(31015),jn=n(68626),Dn=n(80143);var Pn=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,d=(0,Dn.n)(s,c),u=(0,D.k)(),m="JSM4l";return r.type===O.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Qe.u,{type:e.preventPopout||u.xs?"static":"popout",textPosition:jn.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:d,hideRating:!!d,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,d,u,m,p,v=Nn.u[e.widgetTypeId],g=Ne.d.getVideoContent(e.content);return a.createElement(k.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:O.l9.LargeRow,contents:S.z.Videos,collection:g,childComponent:Pn,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!==(u=null===(d=v.getCollectionAppLink)||void 0===d?void 0:d.call(v,e.appLinks,e.content))&&void 0!==u?u:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.widgetVideoList)||void 0===p?void 0:p.call(m,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}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 Fn(e){var t,n,i,r,o,l,c,s,d,u,m,p,v=Nn.u[e.widgetTypeId],g=Ne.d.getVideoContent(e.content);return a.createElement(k.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:O.l9.Row,contents:S.z.Videos,collection:g,childComponent:Pn,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:en.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance},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!==(u=null===(d=v.getCollectionAppLink)||void 0===d?void 0:d.call(v,e.appLinks,e.content))&&void 0!==u?u:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.widgetVideoList)||void 0===p?void 0:p.call(m,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}const Mn={largeSeriesItem:"HZ00X",smallSeriesItem:"PQ2sv",partialLoading:"hMoHO"};function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Vn=n(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(L.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?Mn.smallSeriesItem:Mn.largeSeriesItem," "),analyticsData:n,analyticsOptions:i},a.createElement(Vn.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Bn(e){return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.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 Hn={slidingSubjectSmall:"fgIje",slidingSubjectLarge:"CJwKL",heading:"P16Yg",posterContainer:"VtrLt",partialLoading:"IgCcl",labelContainer:"ujwlj"};var Un=function(e){return a.createElement("div",{className:"".concat(e.type===O.l9.Row?Hn.slidingSubjectSmall:Hn.slidingSubjectLarge," px-1")},a.createElement("div",{className:"".concat(Hn.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===O.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Un,{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 Gn=n(85473),zn=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=Hn.posterContainer,e.context.type===O.l9.Row?t+=" ".concat(Hn.slidingSubjectSmall):t+=" ".concat(Hn.slidingSubjectLarge),t)},a.createElement(Gn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:i,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(zn.oy,{type:zn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat(Hn.heading)},n.name)))}function Yn(e){return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.LargeRow,contents:S.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 qn(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 Kn(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)===O.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,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),i=Ne.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(k.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:O.l9.Row,contents:S.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return qn(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 qn(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)?qn(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 Xn(e){var t;return a.createElement("div",null,a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.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 $n=n(56097);function Jn(e){var t=Oe.m.first(e.content),n=t.question,i=t.answer;return a.createElement($n.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions})}const ea={question:"G1OXf",padding:"Jg3am",partialQuestion:"tWUKI",description:"z5LRc"};function ta(){return a.createElement("div",{className:"".concat(ea.partialQuestion," ").concat(ea.padding," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var na=n(16367),aa=n(57900),ia=n(10038),ra=n(52108);function oa(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 la(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)?la(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 la(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 ca="0px";function sa(e){var t,n,i,r,o,d=oa((0,Pt.D)("should:expand:".concat(e.id),e.isBot,{storage:aa.Z1.LocalStorage}),2),u=d[0],m=d[1],p=oa(a.useState(u?"100%":ca),2),g=p[0],f=p[1],y=oa(a.useState(na(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ra.M.getSeoWidgetRenderer()})),2),h=y[0],b=y[1],E=a.useRef(null),w=a.useRef(null);function k(){f(ca),m(!1)}return a.useEffect((function(){var t,n,a=na(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:ra.M.getSeoWidgetRenderer()});h!==a&&(h&&u&&k(),b(a))}),[null===(i=e.faq)||void 0===i?void 0:i.answer]),(0,ia.H)((function(){u&&k()}),null,[u]),a.useEffect((function(){"100%"===g&&w.current&&f(w.current.clientHeight+"px")}),[g]),(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;ra.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:u?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget})),u?k():((n=document.createElement("p")).innerHTML=h,n.style.visibility="hidden",n.classList.add("py-1"),E.current.appendChild(n),f("".concat(n.clientHeight-10,"px")),E.current.removeChild(n),m(!0)))},className:"".concat(ea.question," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(ea.padding)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:u?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(ea.description),style:{height:g}},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:h},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function da(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(sa,{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 ma(){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(zn.oy,{type:zn.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 pa=n(2284);const va={isNew:"KLRzE",newVideos:"xozwy",badge:"NWZxu",icon:"G9W_I"};var ga=_.T.encloseNamespace("shared.subjectStatsBadge");function fa(e){var t=de.i.getCounts(e.classification),n=t.dashboardNewVideosCount+t.childDashboardNewVideoCount,i=function(){if(e.classification.status===pa.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&o.O.timeSince(t,"day")<=30?"new-topic":n>0?"new-videos":null}();return a.createElement("div",{className:function(){var e="fw-semibold d-inline-block rounded-pill px-2 ".concat(va.badge);switch(i){case"coming-soon":return e+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return e+" ".concat(va.isNew);case"new-videos":return e+" ".concat(va.newVideos);default:return""}}()},"coming-soon"===i&&a.createElement(s.x,{svgName:v.vn.TimerSmall,className:"svg-container ".concat(va.icon),size:s.S.ExtraSmall}),function(){switch(i){case"coming-soon":return ga("comingSoon");case"new-topic":return ga("new");case"new-videos":return ga("newVideos",{smartCount:n});default:return""}}())}function ya(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 ha=_.T.encloseNamespace("shared.subjectStatsWidgetItem");function ba(e){var t,n,i,r,o,l,d=(o=a.useState(!1),l=2,function(e){if(Array.isArray(e))return e}(o)||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}}(o,l)||function(e,t){if(e){if("string"==typeof e)return ya(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)?ya(e,t):void 0}}(o,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===pa.W.ComingSoon,f=de.i.isFollowing(e.classification),y=de.i.getCounts(e.classification),h=y.dashboardNewVideosCount,b=y.childDashboardNewVideoCount,E=y.dashboardResourceCount,w=y.childDashboardResourceCount,k=y.dashboardVideoCount,C=y.childDashboardVideoCount,x=y.childClassificationCount,T=k+C,S=E+w,O=h+b,N=function(){if(e.classification.status===pa.W.ComingSoon)return"";var t="";if(T&&(t+="".concat(ha("videos",{smartCount:T})," ")),S&&(t+=" • ".concat(ha("resources",{smartCount:S}))),de.i.isTopLevelTopic(e.classification)&&x>0){if(!t)return ha("topics",{smartCount:x});t="".concat(ha("topics",{smartCount:x})," • ")+t}return t}();return a.createElement(L.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:!!g,videoCount:T,resourceCount:S,newVideoCount:O,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})},!m&&a.createElement(zn.oy,{type:zn.mS.Subject,extraClasses:"ms-2 ".concat(ua.fallbackImage)}),a.createElement("div",{className:"".concat(ua.cover," me-2 rounded overflow-hidden")},a.createElement(Gn.Z,{data:e.classification.cover,imageOptions:{size:u.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return p(!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(f?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),!!N&&a.createElement("p",{className:"mb-0 ".concat(ua.subText)},N),a.createElement(fa,{classification:e.classification})))}function Ea(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement(A.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(I.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(ba,{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 wa(){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(wa,null),a.createElement(wa,null))}var La=n(43889);function Ca(e){var t,n,i,r,o,l,c=Oe.m.first(Ne.d.getVideoContent(e.content));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 Ta="OZATG",Sa="hcAU2",Oa="Tbieu",Na="mGGrd",ja="VtzxT",Da="jrY7R",Pa="yAgR6",Aa="RjJ7O",Ia="TJ7Sl",Fa="hGi43";function Ma(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=p.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.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:Na),style:l},a.createElement("div",{className:"".concat(ja," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat(Da)},a.createElement("p",{className:"".concat(Pa," 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:Fa},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 _a=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===pa.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(L.F,{className:Ta,appLink:e.appLink,analyticsData:l,analyticsOptions:s},a.createElement(Ma,Object.assign({},e))):a.createElement(Ma,Object.assign({},e))}));function Va(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(I.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(_a,{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 Ba=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"}}))},Ha=n(39802),Ua=n(99131);const Wa={guidance:"uCRU1",responsiveGuidance:"iwav4"};function Ga(e){var t,n,i,r,o,l,s,d,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),g={actionType:c.Vw.Click,entity:en.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},f=(0,Dn.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),g),video:e.video,appLink:m,imageOptions:{size:u.h2.Medium},textPosition:jn.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:f,hideRating:!!f,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(Ha.h,{video:e.video,appLink:m,subTextAppLink:p,yearGroups:e.yearGroups,subTextType:e.subTextType}),en.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Ua.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===(d=e.appLinks)||void 0===d?void 0:d.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:Wa.responsiveGuidance,containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat(Wa.guidance)}))}function za(e){var t=Ne.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(Ga,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 Ya(e){return a.createElement(a.Fragment,null,a.createElement(ne.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},(e.widgetTypeId!==se.z.TrendingClassifications&&e.widgetTypeId!==se.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t){var n,i;return a.createElement(I.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(_a,{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 qa(e){var t,n,i,r,o,l,s=Oe.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),f=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return d&&m?a.createElement(a.Fragment,null,a.createElement(L.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:g,analyticsOptions:f},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),Ka=n(17034);function Xa(e){var t,n,i,r,o,s,d,m,p,v,g,f,y=Oe.m.first(Ne.d.getVideoContent(e.content)),h=a.useRef(),b=(0,Dn.n)(null===(t=y.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=en.M.hasSeries(y)||Ne.d.isCompanyWidget(e.widgetTypeId),w=l.k.mergeOptions(e.analyticsOptions,{actionType:c.Vw.Click,entity:en.M.getAnalyticsEntity(y),location:c.LZ.ThumbnailHeroMediaWidget}),k=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:u.h2.Large},type:"static",textPosition:jn.z.Independent,analyticsOptions:w,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(Ka.$,{type:Ne.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:y,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===d?void 0:d.call(s,y),analyticsOptions:w,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"mt-2"},a.createElement(L.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({},w),{descriptor:c._S.Title}),className:"d-inline-block ".concat(k?"":"cursor-default text-decoration-none disabled"),disabled:!k},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(Ua.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.resourceGuidance,getInteractiveGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.interactiveGuidance,video:y,analyticsData:e.analyticsData,analyticsOptions:w,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function $a(e){var t,n;return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.LargeRow,contents:S.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 Ja(e){var t,n;return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.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 ei=n(74237),ti=n(84342);var ni=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,Dn.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:jn.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function ai(e){return en.M.isVideoType(e.data)?a.createElement(ni,Object.assign({},e)):a.createElement(ti.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),ei.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function ii(e){var t,n,i,r=e.hasLocalPermissions(Se.E.ViewVideoResourceItems);return a.createElement(k.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:S.z.Videos,collection:e.content,childComponent:ai,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 ri=n(71471),oi=n(24546);function li(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(oi.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 ci,si=n(12754);function di(e){return di="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},di(e)}function ui(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=di(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!=di(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==di(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mi=(ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(ci={},ce.f.ThumbnailHeroMedia,{getComponent:function(){return Xa},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[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListLarge,{getComponent:function(){return Bn},partialLoading:function(e){var t,n,i=(t=(0,D.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return _n(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return _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}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat(Mn.partialLoading," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListMedium,{getComponent:function(){return Yn},partialLoading:function(){return a.createElement(Wn,{type:O.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),ce.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case se.z.CuratedClassifications:return Kn;case se.z.CuratedSeries:return Xn;default:return Kn}},partialLoading:function(){return a.createElement(Wn,{type:O.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===si.x.StreamableLearning)return!1;switch(n){case se.z.CuratedClassifications:return[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv].includes(t);case se.z.CuratedSeries:return[O.ku.MoviesAndTv,O.ku.Company].includes(t);default:return!1}},className:""}),ce.f.ThumbnailFeaturedMedia,{getComponent:function(){return Ca},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(A.Z,null,a.createElement(I.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(I.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!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),ce.f.CoverFixedPillListLarge,{getComponent:function(){return P.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(I.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===si.x.StreamableLearning?[O.ku.Classification].includes(t):[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),ce.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Ea},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(I.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(ma,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.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(A.Z,{className:"mb-2 ".concat(J.row)},Array(8).fill(null).map((function(e,t){return a.createElement(I.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===si.x.StreamableLearning?[O.ku.Discover].includes(t):[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),ce.f.CoverSlidingPillListSmall,{getComponent:function(){return ve},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ge.QL,{partialLoadingComponent:F.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===si.x.StreamableLearning?n!==se.z.Classifications&&[O.ku.Discover,O.ku.Company,O.ku.Classification].includes(t):[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),ce.f.CoverFixedTileList,{getComponent:function(){return ie},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(te.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(ci,ce.f.FeaturedThumbnailSlidingList,{getComponent:function(){return tt},partialLoading:function(e){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,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),ce.f.HeroBanner,{getComponent:function(){return Et},partialLoading:Lt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),ce.f.OnboardingSteps,{getComponent:function(){return Sn},partialLoading:Lt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Discover].includes(t)},className:""}),ce.f.HeroBannerSmall,{getComponent:function(){return St},partialLoading:Ot,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroThumbnailSmall,{getComponent:function(){return jt},partialLoading:function(){return a.createElement(Ot,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.HeroBlockColourSmall,{getComponent:function(){return Nt},partialLoading:function(){return a.createElement(Ot,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.ClassificationDirectory,O.ku.ClassificationVideos].includes(t)},className:""}),ce.f.ThumbnailFixedListXLarge,{getComponent:function(){return qa},partialLoading:function(){return a.createElement(Lt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListLarge,{getComponent:function(){return Va},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return xa(e)}(t=Array(2))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return 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}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(I.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!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.ThumbnailFixedListSmall,{getComponent:function(){return Ya},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Za(e)}(t=Array(3))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return 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}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(A.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(I.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!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.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(A.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(I.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!==si.x.StreamableLearning&&[O.ku.Discover].includes(t)},className:""}),ui(ui(ui(ui(ui(ui(ui(ui(ui(ui(ci,ce.f.Heading,{getComponent:function(){return ut},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!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.ClassificationDirectory,O.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(w,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),ce.f.Question,{getComponent:function(){return Jn},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!==si.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),ce.f.QuestionAccordion,{getComponent:function(){return da},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(ta,null),a.createElement(ta,null),a.createElement(ta,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return za},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Ra," partial-loading-background rounded-3")}),a.createElement(Ba,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(Ba,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!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return An},partialLoading:function(e){return a.createElement(Me.j7,{size:"lg",childComponent:On,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Fn},partialLoading:function(e){return a.createElement(Me.j7,{size:"sm",childComponent:In,name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription,hideHeading:e.hideHeading})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.product,a=e.isTopLevelClassification;return n===si.x.StreamableLearning?[O.ku.Discover,O.ku.Company].includes(t):t===O.ku.Classification?a:[O.ku.MoviesAndTv,O.ku.Discover,O.ku.Company].includes(t)},className:""}),ce.f.FilterSlidingPillListSmall,{getComponent:function(){return st},partialLoading:function(e){var t,n=(0,D.k)();return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return dt(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 dt(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)?dt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.CircleLogoSlidingList,{getComponent:function(){return N},partialLoading:function(e){var t=8,n=(0,D.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===si.x.StreamableLearning?[O.ku.Discover,O.ku.Company].includes(t):[O.ku.MoviesAndTv].includes(t)},className:""}),ce.f.EventIconSlidingList,{getComponent:function(){return Ye},partialLoading:function(e){var t,n=(t=(0,D.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(j.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===si.x.StreamableLearning?[O.ku.Discover,O.ku.Classification,O.ku.Company].includes(t):[O.ku.Discover,O.ku.Classification].includes(t)},className:""}),ui(ui(ui(ui(ci,ce.f.ThumbnailVerticalList,{getComponent:function(){return li},partialLoading:function(){return a.createElement(ri.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===si.x.StreamableLearning&&[O.ku.Company,O.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return ii},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==si.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),ce.f.ThumbnailSlidingListSmall,{getComponent:function(){return Ja},partialLoading:Me.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ce.f.ThumbnailSlidingListLarge,{getComponent:function(){return $a},partialLoading:function(e){return a.createElement(Me.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),pi=n(65294);const vi={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function gi(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,d=(0,pi.Y)({prevent:!s}),u=d.ref,m=d.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),g=Ne.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=v.data)||void 0===o?void 0:o.preferences),f=g.content,y=g.unfilteredContent,h=(0,D.k)(),b=function(e,t){return!(Ne.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,f),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 w=e.appLinks?Object.assign({},e.appLinks):null;(null==w?void 0:w.videoType)&&(w.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 k=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}),L=p&&!v.hasCompleted||e.isEditing&&b,C=mi[e.templateId].partialLoading,x=mi[e.templateId].getComponent(e.widgetTypeId),T=mi[e.templateId].className;return L||!b&&!E?a.createElement("div",{id:e.widgetTypeId===se.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(T," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(vi.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(vi.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),L?a.createElement("div",{ref:u},a.createElement(C,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(x,Object.assign({},e,{appLinks:w,content:f,unfilteredContent:y,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:k,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,{_:()=>f});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),d=n(45778);function u(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(u(Object.values(c.e.Classifications.Twig.EnglandPrimary)),u(Object.values(c.e.Classifications.Twig.InternationalPrimary)),u(Object.values(c.e.Classifications.Twig.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function g(e){return v(o.t.pick(e,["audienceId"]))}var f={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:g(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!d.G.isClassification(e)||!p.has(e.id)}));n.content=a}return n},normalizeOptions:{namespace:g(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:()=>u});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),d=i.T.encloseNamespace("subjects.utils"),u={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},getMappedPresentationBackgroundColourClass:function(e){switch(u.getMappedPresentationLevel(e)){case c.p.Level_1:return"bg-indigo";case c.p.Level_3:return"bg-blue";default:case c.p.Level_2:return"bg-green"}},getMappedPresentationBackgroundColourCode:function(e){switch(u.getMappedPresentationLevel(e)){case c.p.Level_1:return"#7A76E8";case c.p.Level_3:return"#38A2E8";default:case c.p.Level_2:return"#5DC786"}},getPresentationLevelImage:function(e,t){switch(u.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?d("exploreAllTopicsHeading"):d("exploreAllTopicsDynamicHeading",{presentationName:e})},getExploreAllTopicsBreadcrumb:function(e,t){return t<o._.MULTI_PRESENTATION_THRESHOLD?d("exploreAllTopicsHeading"):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 u.isTopLevelTopic(e)?t===s.ku.Classification?"new-releases":"all-topics":t===s.ku.Classification?"curated-topic":"video-list"},getCounts:function(e){var t,n,a=null!==(n=null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.childClassificationCount)&&void 0!==n?n:0;return(null==e?void 0:e.externalMetadata)?{childClassificationCount:a,dashboardVideoCount:e.externalMetadata.dashboardVideoCount||0,childDashboardVideoCount:e.externalMetadata.childDashboardVideoCount||0,dashboardResourceCount:e.externalMetadata.dashboardResourceCount||0,childDashboardResourceCount:e.externalMetadata.childDashboardResourceCount||0,dashboardNewVideosCount:e.externalMetadata.dashboardNewVideosCount||0,childDashboardNewVideoCount:e.externalMetadata.childDashboardNewVideoCount||0}:{childClassificationCount:a,dashboardVideoCount:0,childDashboardVideoCount:0,dashboardResourceCount:0,childDashboardResourceCount:0,dashboardNewVideosCount:0,childDashboardNewVideoCount:0}}}},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
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7545],{78259:(e,t,n)=>{n.d(t,{O:()=>c});var r=n(58176),a=n.n(r),i=n(21161),o={className:"info-link",defaultProtocol:"https"},c={linkifyText:function(e,t){if(e){var n=t?i.extend({},o,t):o;return a()(e,n)}}}},23062:(e,t,n)=>{n.d(t,{b:()=>E});var r=n(32735),a=n(110),i=n(78259),o=n(28400),c=n(92582),l=n(65858),s=n(79878),u=n(12324),d=n(42735),m=n(57408),p=n(85473),v=n(83914),f=n(83345),g=n(2284),y=n(35223);const h={modalWidth:"SgHYb",banner:"PLw1p",pill:"UNBr0",logo:"xv_tc"};var b="shared.specialEventListItem";function E(e){var t,n,E,w,C,k,O=e.getAppLink(e.event.content,o.m.slugify(e.event.name)),L=null===(t=e.getBackgroundColor)||void 0===t?void 0:t.call(e,e.event.content),S=null===(n=e.getIconUrl)||void 0===n?void 0:n.call(e,e.event.content),x=null===(E=e.getBannerUrl)||void 0===E?void 0:E.call(e,e.event.content),D=!!e.event.endDate,T=e.event.content.status===g.W.ComingSoon,A=null===(w=e.getStartTime)||void 0===w?void 0:w.call(e,e.event.content),P=null===(C=e.getActionLabel)||void 0===C?void 0:C.call(e),M=null===(k=e.isPastEvent)||void 0===k?void 0:k.call(e,e.event.content),N={actionType:l.Vw.Click,entity:l.py.SpecialEvent,location:e.inPopup?l.LZ.CalendarPopup:l.LZ.CalendarDay},I={topicId:e.event.content.id,eventId:e.event.specialEventId,presentationId:e.presentationId,date:a.O.format(new Date(e.event.startDate),"YYYY-MM-DD"),status:e.event.content.status};return r.createElement("div",null,A&&r.createElement("h6",null,A),r.createElement("div",{onClick:function(){T&&c.k.logUserAction(I,N)}},r.createElement(m.F,{appLink:!T&&O,className:"".concat(T?"":"cursor-pointer"," text-decoration-none"),onClick:e.onClick,analyticsOptions:N,analyticsData:I},r.createElement("div",{className:"banner rounded-3 position-relative position-relative ".concat(h.banner),style:{backgroundColor:L,backgroundImage:"url('".concat(x,"')")}},M&&r.createElement("div",{className:"bg-white w-100 h-100 opacity-50 position-absolute top-0 left-0 z-0"}),r.createElement("div",{className:"d-flex justify-content-between align-items-center w-100 h-100 px-3"},r.createElement("div",{className:"d-flex align-items-center z-1"},S&&r.createElement("div",{className:"".concat(h.logo," rounded-circle flex-shrink-0 overflow-hidden me-2")},r.createElement(p.Z,{data:S})),r.createElement("div",null,T&&r.createElement(s.r,{className:"pe-2 fw-semibold mb-1 rounded-pill justify-content-start ".concat(h.pill)}),M&&r.createElement("div",{className:"d-inline-block rounded-pill bg-light-green mb-1"},r.createElement(v.x,{svgName:y.vn.CalendarCheck}),r.createElement("p",{className:"d-inline ms-1 mb-0"},r.createElement(f.x,{namespace:b,phrase:"pastEvent"}))),D&&r.createElement("p",{className:"text-white text-shadow mb-1"},u.T.getDisplayDate(e.event.startDate,e.event.endDate)),r.createElement("h2",{className:"h4 text-white text-shadow ".concat(e.event.description?"clamp-2":"clamp-1"),title:e.event.name},e.event.name))),r.createElement("div",{className:"d-none d-sm-block flex-shrink-0 z-1"},!T&&r.createElement(d.K,{className:"btn ".concat(M?"btn-outline-dark":"btn-dark"," fw-semibold")},P))))),r.createElement("div",{className:"mt-2 mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:i.O.linkifyText(e.event.description||e.event.content.description)}})))}},19716:(e,t,n)=>{n.d(t,{D:()=>u});var r=n(32735),a=n(39202),i=n(23481),o=n(65858),c=n(88818);const l={pillTab:"Vrjid"};var s="streamable.header";function u(e){var t,n,u,d,m,p,v=[{name:i.T.getPhrase(s,"heading"),appLink:null===(t=e.appLinks)||void 0===t?void 0:t.discover,active:"discover"===e.active,analyticsData:{name:i.T.getPhrase(s,"heading"),url:a.C$.getHref(null===(n=e.appLinks)||void 0===n?void 0:n.discover)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"livestreams"),appLink:null===(u=e.appLinks)||void 0===u?void 0:u.calendar,active:"calendar"===e.active,analyticsData:{name:i.T.getPhrase(s,"livestreams"),url:a.C$.getHref(null===(d=e.appLinks)||void 0===d?void 0:d.calendar)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}},{name:i.T.getPhrase(s,"partners"),appLink:null===(m=e.appLinks)||void 0===m?void 0:m.partners,active:"partners"===e.active,analyticsData:{name:i.T.getPhrase(s,"partners"),url:a.C$.getHref(null===(p=e.appLinks)||void 0===p?void 0:p.partners)},analyticsOptions:{actionType:o.Vw.Click,entity:o.py.Url,location:o.LZ.MagicTabs}}];return r.createElement("div",{className:"py-3 text-center"},r.createElement(c.r,{tabs:v,className:l.pillTab}))}},54168:(e,t,n)=>{n.d(t,{d:()=>c});var r=n(32735),a=n(40290),i=n(83914),o=n(35223);function c(){var e;return r.createElement("div",null,r.createElement(i.x,{svgName:o.vn.Globe}),r.createElement("span",{className:"ms-1"},null===(e=a.F[a.r.ET])||void 0===e?void 0:e.name))}},18559:(e,t,n)=>{n.d(t,{C:()=>g,g:()=>s});var r,a=n(32735),i=n(23481),o=n(83914),c=n(64444),l=n(5960);!function(e){e.Exchange="exchange",e.Streamable="streamable",e.MoviesAndTv="movies_and_tv",e.Twig="twig"}(r||(r={}));var s,u=n(93264),d=n(26361),m=n(35223),p=n(81993),v=n(86474),f=i.T.encloseNamespace("shared.badges");function g(e){var t=e.type,n=e.data;if(!function(e,t){var n,r;return"boolean"==typeof t?!!t:e===s.Rating?t&&!!t.value:e===s.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===s.Captions?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===s.Status?"number"==typeof t:!!t}(t,n))return a.createElement(a.Fragment,null);var i=function(e,t){var n,a="";if(e===s.DurationApproximate&&(a="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===s.DurationExact&&(a="duration-badge"),e===s.Interactive&&(a="interactive-badge"),e===s.Rating&&(a="rating-badge text-shadow ".concat(p.u.mapRatingToClass(t.value))),e===s.ProductionYear&&(a="production-year-badge text-shadow"),e===s.Captions)return"p-0";if(e===s.Status)return"badge ".concat(function(e){switch(e){case l.X.Published:return"bg-success";case l.X.Archived:case l.X.Rejected:return"bg-danger";case l.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case l.X.Pending:case l.X.Processing:return"bg-warning"}}(t));if(e===s.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===s.Count&&(a="count-badge px-1 rounded"),e===s.Restriction){var i=d.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(i)}return e===s.Source&&(a=(n=t).includes(r.Streamable)?"px-1 text-nowrap d-flex align-items-center ".concat(v.Z.streamable):n.includes(r.MoviesAndTv)?"bg-indigo text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Exchange)?"bg-orange text-white px-1 text-nowrap d-flex align-items-center":n.includes(r.Twig)?"bg-pink text-white px-1 text-nowrap d-flex align-items-center":""),"".concat("badge"," ").concat(a)}(t,n);i="".concat(i," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var g=function(e,t){if(e===s.Interactive)return f("interactive");if(e===s.DurationApproximate)return u.T.ToDisplayDurationNewStyle(t);if(e===s.DurationExact)return u.T.ToDisplayDuration(t);if(e===s.Rating)return t.code;if(e===s.ProductionYear)return t;if(e===s.Captions)return a.createElement(o.x,{svgName:m.vn.CloseCaptionBadge});if(e===s.Status)return l.X[t];if(e===s.Trending)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:m.vn.Trending}),a.createElement("span",{className:"ps-1"},t));if(e===s.Count)return t;if(e===s.Restriction)return a.createElement(a.Fragment,null,a.createElement(o.x,{svgName:d.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,d.l.mapRestrictionToText(t.restrictions,t.yearGroups)));if(e===s.Source){var n=t;return n.includes(r.Streamable)?"streamable":n.includes(r.MoviesAndTv)?"movies + tv":n.includes(r.Exchange)?"exchange":n.includes(r.Twig)?"twig":"-"}}(t,n),y=function(e,t){return e===s.Rating?{title:t.name,placement:"top"}:null}(t,n),h=e.inline&&"d-inline-block";return y?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(c.u,Object.assign({},y,{spanHack:!0,spanHackClassName:h}),a.createElement("span",{className:i},g))):a.createElement("span",{className:"".concat(i," badge-wrapper")},g)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction",e.Source="source"}(s||(s={}))},85473:(e,t,n)=>{n.d(t,{Z:()=>d});var r=n(32735),a=n(1048),i=n(57408),o=n(16107),c=n(54610),l=n(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,n="";return e.imageType===c.__.Thumbnails&&(n="thumbnail ".concat(s.thumbnail)),e.imageType===c.__.TallPosters&&(n=s.tallPoster),e.imageType===c.__.Covers&&(n=s.cover),e.imageType===c.__.Banners&&(n=s.banner),e.imageType===c.__.Posters&&(n=s.poster),e.imageType===c.__.Pdf&&(n=s.pdf),e.imageType===c.__.Link&&(n=s.link),n&&(t+=" ".concat(n)),e.className&&(t+=" ".concat(e.className)),t}function d(e){var t=e.data,n=e.imageOptions,c=e.appLink,s=e.preload,d=e.preventLoad,m=e.analyticsOptions,p=e.analyticsData,v=e.imageClassName,f=e.alt,g="";"string"==typeof t?g=t:a.t.isObject(t)&&(g=t.url);var y=g&&n?l.j.createUrl(g,n):g;return r.createElement("div",{className:u(e),style:e.imageStyle},r.createElement(i.F,{appLink:c,analyticsData:p,analyticsOptions:m,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName},e.children,y&&r.createElement(o.w,{src:y,alt:f,forceLoad:s,preventLoad:d,extraClasses:v,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})))}},16107:(e,t,n)=>{n.d(t,{w:()=>c});var r=n(32735),a=n(65294);const i="fVSzb";function o(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 c=r.memo((function(e){var t,n,c=e.forceLoad,l=e.extraClasses,s=void 0===l?"":l,u=e.errorFallbackImageSrc,d=e.preventLoad,m=void 0!==d&&d,p=e.errorFallbackImageClassName,v=e.src,f=e.alt,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["forceLoad","extraClasses","errorFallbackImageSrc","preventLoad","errorFallbackImageClassName","src","alt"]),y=(0,a.Y)({rootMargin:"500px"}),h=y.ref,b=y.inView,E=(t=r.useState(!1),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 r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(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.")}()),w=E[0],C=E[1];function k(){return w&&u?u:e.src}if(r.useEffect((function(){if((c||b)&&!m){var e=new Image;return e.onerror=function(){C(!0),u&&(e.src=u)},e.src=v,function(){return e.onerror=null}}}),[b,m]),w&&!u)return r.createElement(r.Fragment,null);if(!h)return r.createElement("img",Object.assign({className:"".concat(i," ").concat(s," ").concat(w&&p||""),alt:f,src:k()},g));var O=Object.assign(Object.assign({alt:f},g),!b&&!c||m?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{src:k()});return c||(O.ref=h),r.createElement("img",Object.assign({className:"".concat(i," ").concat(s," ").concat(w&&p||"")},O))}))},88818:(e,t,n)=>{n.d(t,{r:()=>d});var r=n(32735),a=n(92582),i=n(57408),o=n(18559),c=n(11607),l=n(83914);const s={pillTabSelector:"Hdi6o",tab:"RvNxr",minWidth:"GHSz9",radiusSmall:"VhJJa",tabLink:"WFyvo"};function u(e){return r.createElement(r.Fragment,null,!!e.tab.svgName&&r.createElement("div",{className:e.tab.name?"pe-1":""},r.createElement(l.x,{svgName:e.tab.svgName})),e.tab.name,"number"==typeof e.tab.count&&r.createElement("div",{className:"ps-2"},r.createElement(o.C,{type:o.g.Count,data:e.tab.count})))}function d(e){var t;return r.createElement("nav",{className:null!==(t=e.className)&&void 0!==t?t:"",ref:e.containerRef},r.createElement("ul",{className:"\n list-unstyled d-inline-block m-0 ".concat(s.pillTabSelector,"\n ").concat(e.borderRadius?s.radiusSmall:"","\n ").concat(e.listClassName,"\n ")},e.tabs.map((function(e,t){return r.createElement("li",{className:"\n p-0 ".concat(s.tab," ").concat(e.active?"btn btn-dark":"btn btn-outline-dark","\n ").concat(e.name?s.minWidth:""," ").concat(e.className,"\n "),key:t},e.appLink?r.createElement(i.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset px-2 text-nowrap ".concat(s.tabLink,"\n ")},r.createElement(u,{tab:e})):r.createElement(c.L,{className:"\n cursor-pointer d-flex align-items-center justify-content-center\n text-decoration-none text-reset p-2 text-nowrap ".concat(s.tabLink,"\n "),onClick:function(){return function(e){!e.active&&e.onSelect&&(e.onSelect(),e.analyticsData&&e.analyticsOptions&&a.k.logUserAction(e.analyticsData,e.analyticsOptions))}(e)}},r.createElement(u,{tab:e})))}))))}d.defaultProps={borderRadius:"lg"}},71063:(e,t,n)=>{n.d(t,{M:()=>r});var r={WELCOME_POPUP_SELECTOR:"welcome-dialog",RESOURCE_ITEM_SELECTOR:"resource-item",GLOBAL_PLAYER_SELECTOR:"global-player"}},2284:(e,t,n)=>{var r;n.d(t,{W:()=>r}),function(e){e.Draft="Draft",e.ComingSoon="ComingSoon",e.Published="Published"}(r||(r={}))},5960:(e,t,n)=>{var r,a;n.d(t,{H:()=>a,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"}(a||(a={}))},1164:(e,t,n)=>{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={}))},5345:(e,t,n)=>{var r;n.d(t,{c:()=>r}),function(e){e.Custom="custom",e.User="year_group"}(r||(r={}))},89454:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(97395),a=n(25925),i={presentationAudiences:function(e,t){var n=t||a.R.Subject.toLowerCase(),i={type:n,presentationId:e};return{bootstrapName:"presentationAudiences",url:r._.urlBuilder("/api/domain/v1/subjects/audiences",i),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),i),key:"presentation:audiences:".concat(e,":").concat(n),normalize:!1}},audiencesByPresentationId:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e,"/audiences"),publicUrl:r._.urlBuilder("/api/subjects/presentation/".concat(e,"/audiences"),{type:a.R.Subject.toLowerCase(),presentationId:e}),key:"presentation:".concat(e,":audiences"),normalize:!1}}}},93264:(e,t,n)=>{n.d(t,{T:()=>i});var r=n(21161),a=function(e,t,n){var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},i={ToDisplayDuration:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),i=n.getUTCHours(),o=a(n.getUTCMinutes(),2,"0"),c=a(n.getUTCSeconds(),2,"0");return t||i>0?"".concat(i,":").concat(o,":").concat(c):"".concat(o,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!r.isNumber(e))return"";var n=new Date(e),a=n.getUTCHours(),i=n.getUTCMinutes(),o=n.getUTCSeconds();if((a>0||i>0)&&o>=30&&(i+=1),a>0){var c=a>1?"hrs":"hr";return i>0?t&&o>0?"".concat(a).concat(c," ").concat(i,"m ").concat(o,"s"):"".concat(a).concat(c," ").concat(i,"m "):"".concat(a," ").concat(c)}return i>0?t&&o>0?"".concat(i,"m ").concat(o,"s"):"".concat(i,"m"):"".concat(o,"s")}}},25301:(e,t,n)=>{n.d(t,{CG:()=>E});var r,a=n(23481),i=n(110),o=n(71063);function c(e){return c="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},c(e)}function l(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}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(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.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var u=a.T.encloseNamespace("shared.shared-utils"),d=/^(.*)\s/,m="pageTitle",p="pageDescription",v=s(s(s(s(s(s({},"au",r.AU),"gb",r.UK),"us",r.US),r.AU,"au"),r.UK,"gb"),r.US,"us");function f(e){return e?e.substring(0,e.length-3)+"...":""}function g(e){var t,n,r=e.title,a=e.phraseContext,i=e.product,o=void 0===i?"ClickView":i;if(!r)return"";if(!a)return u(m,{title:r,product:o});var c=70-(null!==(n=null===(t=a.phraseHandler(a.titlePhrase,{value:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);return r.length>=c?u(m,{title:r,product:o}):a.phraseHandler(a.titlePhrase,{title:r})}function y(e){var t,n,r,a,i,o=e.title,c=e.description,l=e.phraseContext,s=f((160,(i=c||o)?i.substring(0,160):""));if(!l)return u(p,{description:s});var m=160-(null!==(n=null===(t=l.phraseHandler(l.descriptionPhrase,{title:"",description:""}))||void 0===t?void 0:t.length)&&void 0!==n?n:0);if((null==o?void 0:o.length)>=m)return u(p,{description:s});var v=f(function(e,t,n){if(!e)return"";var r=160-n;if(e.length<=r)return e;var a=e.slice(0,r),i=a.match(d);return i?i[1]:a}(c,0,null!==(a=null===(r=l.phraseHandler(l.descriptionPhrase,{title:o,description:""}))||void 0===r?void 0:r.length)&&void 0!==a?a:0));return l.phraseHandler(l.descriptionPhrase,{title:o,description:v})}function h(e,t){var n;return null!==(n=null==e?void 0:e.reduce((function(e,n){var r,a,i=null===(r=v[n.contentRegion])||void 0===r?void 0:r.toUpperCase();return(null===(a=n.id)||void 0===a?void 0:a.toString())===(null==t?void 0:t.toString())&&i?[].concat(function(e){return function(e){if(Array.isArray(e))return l(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 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)||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),[{"@type":"Place",name:i}]):e}),[]))&&void 0!==n?n:[]}function b(e,t,n){var r;return{"@context":"https://schema.org","@type":"VideoObject",mainEntityOfPage:{"@type":"WebPage","@id":t},name:null==e?void 0:e.name,description:null==e?void 0:e.description,thumbnailUrl:null===(r=null==e?void 0:e.thumbnail)||void 0===r?void 0:r.url,uploadDate:null==e?void 0:e.dateCreated,duration:i.O.getDurationISOString(null==e?void 0:e.duration,"milliseconds"),hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.GLOBAL_PLAYER_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.RESOURCE_ITEM_SELECTOR)},{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".".concat(o.M.WELCOME_POPUP_SELECTOR)}],requiresSubscription:!0,isAccessibleForFree:!1,regionsAllowed:h(n,null==e?void 0:e.id),potentialAction:{"@type":"WatchAction",actionAccessibilityRequirement:{"@type":"ActionAccessSpecification",requiresSubscription:!0}}}}var E={getDefaultMetadata:function(e){var t=e.title,n=e.description,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing,o=e.hrefLang;return{title:g({title:t,phraseContext:a,product:e.product}),description:y({title:t,description:n,phraseContext:a}),canonicalLink:r,allowIndexing:i,hrefLang:o}},getVideoMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.regionAlternatives,c=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:c}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),jsonLd:b(t,n,o),canonicalLink:n,allowIndexing:a,hrefLang:i}},getClipMetadata:function(e){var t,n=e.content,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:a}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:a}),canonicalLink:r,allowIndexing:i}},getInteractiveMetadata:function(e){var t,n=e.content,r=e.canonicalLink,a=e.phraseContext,i=e.allowIndexing;return{title:g({title:null==n?void 0:n.name,phraseContext:a}),description:y({title:null==n?void 0:n.name,description:(null==n?void 0:n.description)||(null===(t=null==n?void 0:n._parentVideo)||void 0===t?void 0:t.description),phraseContext:a}),canonicalLink:r,allowIndexing:i}},getPlaylistMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:r}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a}},getSeriesMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing;return{title:g({title:null==t?void 0:t.name,phraseContext:r}),description:y({title:null==t?void 0:t.name,description:null==t?void 0:t.description,phraseContext:r}),canonicalLink:n,allowIndexing:a}},getClassificationMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a,hrefLang:i}},getDiscoverMetadata:function(e){var t=e.content,n=e.canonicalLink,r=e.phraseContext,a=e.allowIndexing,i=e.hrefLang,o=e.product;return{title:g({title:null==t?void 0:t.name,phraseContext:r,product:o}),description:y({title:null==t?void 0:t.name,phraseContext:r}),canonicalLink:n,allowIndexing:a,hrefLang:i}}}},26361:(e,t,n)=>{n.d(t,{l:()=>f});var r=n(23481),a=n(110),i=n(86474),o=n(5345),c=n(35223);function l(e){return l="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},l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.T.encloseNamespace("shared.shared-utils"),d=s(s({},o.c.Custom,i.Z.restrictionBadgeCustom),o.c.User,i.Z.restrictionBadgeUser),m=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),v=s(s({},o.c.Custom,200),o.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=f.getWeightedRestriction(e.value);return m[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var r=f.getWeightedRestriction(e.value),a=t.find((function(e){return e.value===r.yearGroup})),i=p[r.type];if(r.type===o.c.User)return null===r.yearGroup?u("restrictionStaff"):a?u(i,{yearGroup:a.name}):"";if(r.type===o.c.Custom){var c=f.getRestrictionDuration(r);return c?u(i,{duration:c,smartCount:c}):u("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var r=v[e.type],a=v[n.type];return"highest"===t&&r>a||"lowest"===t&&r<a?e:n}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],r=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return f.getWeightedRestriction(r)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=a.O.convertUTCToLocal(e.expiresOn);if(t)return a.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},81993:(e,t,n)=>{n.d(t,{u:()=>u});var r=n(23481),a=n(96560),i=n(1164),o=n(35223);function c(e){return c="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},c(e)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="shared.shared-utils",u={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-blue";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return r.T.getPhrase(s,"exchange");case a.r.Workspace:return r.T.getPhrase(s,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-blue";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=l(l(l(l(l(l(l({},i.L.Pdf,o.vn.FilePDF),i.L.Image,o.vn.FileImg),i.L.PowerPoint,o.vn.FilePowerpoint),i.L.Document,o.vn.FileWord),i.L.Excel,o.vn.FileExcel),i.L.Zip,o.vn.FileZip),i.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case i.L.Pdf:return"icon-red";case i.L.Image:return"icon-purple";case i.L.Document:return"icon-blue";case i.L.Excel:return"icon-green";case i.L.PowerPoint:return"icon-orange";case i.L.Zip:return"icon-teal";case i.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case i.L.Pdf:return r.T.getPhrase(s,"pdf");case i.L.Image:return r.T.getPhrase(s,"image");case i.L.Document:return r.T.getPhrase(s,"document");case i.L.Excel:return r.T.getPhrase(s,"spreadsheet");case i.L.PowerPoint:return r.T.getPhrase(s,"presentation");case i.L.Zip:return r.T.getPhrase(s,"zipArchive");case i.L.File:return r.T.getPhrase(s,"file");default:return""}}}},26255:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(110),a=n(59795),i={getStartTime:function(e){return r.O.format(a.t.convertUTCToTimezoneDate(e.startDateTime),"h:mm a")},isSameTime:function(e,t){return 0!==t&&r.O.isSame(e[t].content.startDateTime,e[t-1].content.startDateTime)},isPastEvent:function(e){return r.O.isBefore(e.endDateTime,new Date)}}},42553:(e,t,n)=>{n.r(t),n.d(t,{CalendarView:()=>Pe});var r=n(32735),a=n(23481),i=n(57900),o=n(2948),c=n(20354),l=n(110),s=n(1048),u=n(80247),d=n(43933),m=n(41353);const p={wrapper:"WRLhh",weekend:"mF0ka"};function v(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}function f(e){var t,n,a,i=e.date,o=e.notCurrentMonth,c=(n=r.useState(0),a=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 r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1],f="position-relative border ".concat(e.theme.border," ").concat(p.wrapper);(function(e){return 0===l.O.getWeekday(e)||6===l.O.getWeekday(e)})(i)&&(f+=" ".concat(p.weekend)),o&&(f+="opacity-50");var g=(null===(t=e.events)||void 0===t?void 0:t.filter((function(t){return l.O.isSame(e.date,t.startDate)})))||[],y=Object.assign(Object.assign({},e),{eventsOnDay:g,sliderStep:s,setSliderStep:u});return r.createElement("td",{className:f},(null==g?void 0:g.length)>0?r.createElement(m.K,{hoverableComponent:d.X,componentProps:y,hoverScale:1.35}):r.createElement(d.X,Object.assign({},y,{isHovering:!1})))}var g=n(12324),y=n(79967),h=n(57408),b=n(15800),E=n(83345),w="specialEvent.eventsEmptyState",C=a.T.encloseNamespace(w);function k(e){return r.createElement(E.D.Provider,{value:w},r.createElement(b.u,null,r.createElement(b.u.Image,{src:e.imageUrl,altText:C("info")}),r.createElement(b.u.Heading,null,e.heading||r.createElement(E.x,{phrase:"heading"})),e.appLink&&r.createElement(b.u.Info,null,r.createElement(r.Fragment,null,r.createElement(E.x,{namespace:w,phrase:"info"}),r.createElement(h.F,{appLink:e.appLink},r.createElement("span",{className:"text-info"},C("link")))))))}var O=n(28400),L=n(23062);const S={date:"k2lLG",first:"E18Bv"};function x(e){var t={};e.events.forEach((function(e){var n=e.startDate;t[n]?t[n].push(e):t[n]=[e]}));var n=Object.keys(t);return n.sort((function(e,t){return l.O.isBefore(e,t)?-1:0})),r.createElement("div",{className:"py-1"},n.map((function(n,a){var i="",o="";return r.createElement("div",{key:n},r.createElement("div",{className:"h4 mt-4 ".concat(S.date," ").concat(0===a?S.first:"")},g.T.getOrdinalDate(n)),t[n].map((function(t){var n;return i=o,o=null===(n=e.getStartTime)||void 0===n?void 0:n.call(e,t.content),r.createElement(L.b,{key:t.content.id,getAppLink:function(t,n){return e.appLink(t,O.m.slugify(n))},event:t,presentationId:e.presentationId,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:function(){return e.getActionLabel(t.content)},getStartTime:e.getStartTime&&i!==o?e.getStartTime:null,isPastEvent:e.isPastEvent})})))})))}const D={header:"sTIcQ",thead:"ekxZd"};function T(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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(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 A(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}function P(e){var t,n=e.appLinks,a=e.imageUrls,i=(0,y.k)(),o=g.T.getEventsInMonth(e.events||[],e.viewingMonth),c=T(r.useState(!1),2),l=c[0],s=c[1],d=T(r.useState(null),2),m=d[0],p=d[1];return e.eventsLoaded&&!(null==o?void 0:o.length)?r.createElement(k,{imageUrl:a.emptyState,appLink:null===(t=n.emptyStateRedirect)||void 0===t?void 0:t.call(n),heading:e.emptyStateHeading}):"list"===e.viewMode||i.xs||i.sm||i.md?e.eventsLoaded?r.createElement(x,{events:o,presentationId:e.presentationId,appLink:e.appLinks.event,getIconUrl:e.getIconUrl,getBannerUrl:e.getBannerUrl,getBackgroundColor:e.getBackgroundColor,getActionLabel:e.getActionLabel,getStartTime:e.getStartTime,isPastEvent:e.isPastEvent}):r.createElement("div",{className:"d-flex justify-content-center align-items-center mb-4"},r.createElement(u.Z,{as:"div",animation:"border",role:"status"})):r.createElement("table",{className:"user-select-none w-100 mt-3 overflow-hidden rounded-top-lg"},r.createElement("thead",{className:"border ".concat(e.theme.border," ").concat(D.thead)},r.createElement("tr",{className:"fw-semibold ".concat(e.theme.background," ").concat(D.header)},e.weekDaysHeader.map((function(e){return r.createElement("th",{key:e,className:"px-2 h4",scope:"col"},e)})))),r.createElement("tbody",null,e.weekDays.map((function(t){return r.createElement("tr",{key:t[0].toString()},t.map((function(t){return r.createElement(f,{key:t.toString(),date:t,notCurrentMonth:!!t.notCurrentMonth,events:e.events,monthQuery:e.monthQuery,hasInitialized:l,setHasInitialized:s,presentationId:e.presentationId,hoveredEvent:m,theme:e.theme,setHoveredEvent:p,getEventsListAppLink:function(){return e.appLinks.eventList(e.monthQuery,t,e.presentationId)},getTopicAppLink:function(t,n){return e.appLinks.event(t,n)},getIconUrl:e.getIconUrl,getBackgroundColor:e.getBackgroundColor,getCoverUrl:e.getCoverUrl,getHardCodedEvent:e.getHardCodedEvent,fadePastEvents:e.fadePastEvents,timezone:e.timezone})})))}))))}P.defaultProps={theme:{border:"border-light-blue",background:"bg-light-blue"}};var M=n(81886),N=n(65858),I=n(75896),j=new Date("2023-01-01"),Y=12;function R(e,t){for(var n=l.O.startOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?0===r?6:r-1:r,o=t?1:0;o<=i;o++){var c=n,s=l.O.weekday(c,r-o);a.push(Object.assign(s,{notCurrentMonth:!0}))}return a.reverse()}function U(e,t){for(var n=l.O.endOf(e,"month"),r=l.O.getWeekday(n),a=[],i=t?7-(0===r?7:r):7-r,o=1;o<=i;o+=1){var c=l.O.add(n,o,"days");a.push(Object.assign(c,{notCurrentMonth:!0}))}return a}function F(e){var t=l.O.startOf(e,"month");return 1===l.O.getWeekday(t)?t:I.m.first(R(e,!0))}function _(e){var t=l.O.endOf(e,"month");return 0===l.O.getWeekday(t)?t:I.m.last(U(e,!0))}function B(e){return[F(e),_(e)]}function H(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=new Date,W=n(63855),G=n(83914),Z=n(35223);const z={chevron:"U_GAM",left:"t_wDz",right:"KgpGw",viewModeContainer:"csNfk"};var q="specialEventCalendar.calendarNav";function $(e){return r.createElement("div",{className:"".concat(z.viewModeContainer," d-none d-lg-block")},r.createElement(W.h,{svgName:Z.vn.Calendar,className:"".concat("calendar"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-start rounded-end-0 border-end-0 px-3 h-100"),onClick:function(){return e.setViewMode("calendar")},analyticsData:{},analyticsOptions:{entity:N.py.AppLink,actionType:N.Vw.Click,descriptor:N.Jf.Calendar,location:N.LZ.CalendarNav}}),r.createElement(W.h,{svgName:Z.vn.TableOfContents,className:"".concat("list"===e.viewMode?"bg-dark text-white":""," btn btn-outline-dark rounded-end rounded-start-0 border-start-0 px-3 h-100"),onClick:function(){return e.setViewMode("list")},analyticsData:{},analyticsOptions:{entity:N.py.AppLink,actionType:N.Vw.Click,descriptor:N.Jf.List,location:N.LZ.CalendarNav}}))}function Q(e){var t="previous"===e.action?Z.vn.ChevronLeft:Z.vn.ChevronRight,n="previous"===e.action?z.left:z.right;return r.createElement(h.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"".concat(z.chevron," ").concat(n," border border-dark rounded-circle bg-white d-flex align-items-center justify-content-center"),onClick:function(){M.Q.C$.trigger(e.appLink),e.onClick()}},r.createElement(G.x,{svgName:t,size:G.S.Medium,className:"svg-container d-inline-block ".concat(z.svg)}))}var X=new Date;function J(e){var t=e.appLinks,n=(0,y.k)();function i(n){var r,a,i=l.O.format(n,"MMMM").toLocaleLowerCase(),o=t.month(i),c={};if(n){var s=(new Date).getFullYear(),u=n.getFullYear();s!==u&&(c.year=u)}return(null===(r=e.queryParams)||void 0===r?void 0:r.classification)&&(c.classification=e.queryParams.classification),(null===(a=e.queryParams)||void 0===a?void 0:a.yearGroup)&&(c.yearGroup=e.queryParams.yearGroup),o.params=c,o}var o,c,s=(o=e.monthDate,c=l.O.diffBetween(l.O.startOf(o,"month"),l.O.startOf(V,"month"),"months"),{showPrev:l.O.isAfter(o,j,"month"),showNext:c<Y}),u=s.showPrev,d=s.showNext,m={actionType:N.Vw.Click,entity:N.py.SpecialEvent,location:N.LZ.CalendarNav};function p(e){return l.O.format(e,"YYYY-MM-DD")}return r.createElement("div",{className:"d-flex flex-wrap gap-3 justify-content-end align-items-center"},r.createElement("h1",{className:"mb-0 h2 me-auto"},l.O.format(e.monthDate,n.xs?"MMM YYYY":"MMMM YYYY")),e.children,e.setViewMode&&r.createElement($,{viewMode:e.viewMode,setViewMode:e.setViewMode}),r.createElement("div",{className:"d-flex gap-3"},u&&r.createElement(Q,{appLink:i(l.O.startOf(l.O.subtract(e.monthDate,1,"month"),"month")),action:"previous",onClick:function(){var t=l.O.subtract(e.monthDate,1,"month");e.setViewingMonthDate(t)},analyticsOptions:m,analyticsData:{action:"previous",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))}}),r.createElement(h.F,{appLink:i(),className:"".concat(z.todayWrapper," btn btn-outline-dark fw-semibold"),onClick:function(){l.O.format(X,"M YY")!==l.O.format(e.monthDate,"M YY")&&e.setViewingMonthDate()},analyticsOptions:m,analyticsData:{action:"today",date:p(l.O.startOf(X,"month"))}},a.T.getPhrase(q,"today")),d&&r.createElement(Q,{appLink:i(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month")),analyticsOptions:m,analyticsData:{action:"next",date:p(l.O.startOf(l.O.add(e.monthDate,1,"month"),"month"))},action:"next",onClick:function(){var t=l.O.add(e.monthDate,1,"month");e.setViewingMonthDate(t)}})))}var K="specialEvent.eventsErrorState",ee=a.T.encloseNamespace(K);function te(e){return r.createElement(E.D.Provider,{value:K},r.createElement(b.u,null,r.createElement(b.u.Image,{src:e.imageUrl}),r.createElement(b.u.Heading,null,r.createElement(E.x,{phrase:"heading"})),r.createElement(b.u.Info,null,r.createElement(E.x,{namespace:K,phrase:"info"}),r.createElement("br",null),r.createElement(h.F,{appLink:e.appLink},r.createElement("span",{className:"text-info"},ee("link"))))))}function ne(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 re=new Date;function ae(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,a=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=function(e){var t=e?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],n=new Date;return t.map((function(e){return l.O.format(l.O.weekday(n,e),"ddd")}))}(i),c=r.useRef({}),s=(e=r.useState([]),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 r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(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)?ne(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],m=l.O.format(n,"YYYY-MM");r.useEffect((function(){var e=c.current[m];if(e)d(e.weeksTable);else{var t=function(e,t){for(var n=[],r={},a=R(e,t).concat(function(e){for(var t=l.O.daysInMonth(e),n=[],r=1;r<=t;r++){var a=l.O.set(e,"date",r);n.push(Object.assign(a,{notCurrentMonth:!1}))}return n}(e)).concat(U(e,t)),i=function(e){var t=a.slice(o,o+7);t.forEach((function(t,n){r[l.O.format(t,"YYYY-MM-DD")]={row:e,col:n}})),n.push(t),e++,c=e},o=0,c=0;o<a.length;o+=7)i(c);return{datePositionMap:r,weeksTable:n}}(n,i),r=t.weeksTable,a=t.datePositionMap;c.current[m]={weeksTable:r,datePositionMap:a},d(r)}}),[l.O.format(n,"YYYY-MM")]);var p=I.m.first(I.m.first(u)),v=I.m.last(I.m.last(u));return{weekDaysHeader:o,weekDays:u,monthDate:n,setMonthDate:function(e){if(e){if(m!==l.O.format(e,"YYYY-MM")){var t=l.O.format(e,"MMMM").toLocaleLowerCase(),r=(new Date).getFullYear(),i=n.getFullYear(),o=a.month(t);r!==i&&(o.params={year:i}),M.Q.C$.trigger(o)}}else M.Q.C$.trigger(a.calendar())},startDate:p,endDate:v}}var ie=n(56909),oe=n(19716),ce=n(54168),le=n(40290),se=n(54610),ue=n(16714),de=n(25925),me=n(89454),pe=n(21750),ve=n(22902),fe=n(79612),ge=n(67453),ye=n(25301),he=n(41760),be=n(31700),Ee=n(6117),we=n(55941);function Ce(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oe(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 ke(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,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||Oe(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 Oe(e,t){if(e){if("string"==typeof e)return Le(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)?Le(e,t):void 0}}function Le(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 Se=n(26255),xe=n(323),De=n(27051);function Te(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 Ae=a.T.encloseNamespace("livestreamCalendar.calendarView");function Pe(e){var t,n,a,u,d,m=(u=(0,o.D)("calendar:mode",{viewMode:"calendar"},{storage:i.Z1.LocalStorage}),d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(u,d)||function(e,t){if(e){if("string"==typeof e)return Te(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)?Te(e,t):void 0}}(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0].viewMode,v=m[1],f=(0,(0,ve.T)().hasPermissions)(ue.C.StudentExperience),y=c.a.useBasicFetch(be.g.streamablePresentation()),h=c.a.useBasicFetch(y.data&&me.O.presentationAudiences(y.data.id,de.R.StreamableLearning)),b=c.a.useBasicFetch(y.data&&pe.x.topicsFromAllAvailablePresentations([y.data.id])),E=function(e){if(!e)return!0;var t=H(e);if(!l.O.formatIsValid(t,"MMMM-YYYY",!0))return!1;var n=l.O.parseDateString(t,"MMMM-YYYY");return l.O.isSame(n,j,"month")||l.O.isAfter(n,j,"month")}(e.month),w=function(e){if(!e)return l.O.parseDateString();var t=H(e);return l.O.parseDateString(t,"MMMM-YYYY")}(e.month),C=ae(w,(0,xe.C)()),k=C.monthDate,O=C.setMonthDate,L=C.weekDays,S=C.weekDaysHeader,x=C.startDate,D=C.endDate,T=function(e,t){var n=ke(B(e),2),r=n[0],a=n[1],i=ke(B(l.O.add(e,1,"month")),2),o=i[0],s=i[1],u=ke(B(l.O.subtract(e,1,"month")),2),d=u[0],m=u[1],p={};t.yearGroup&&(p.audienceId=t.yearGroup),t.classification&&(p.topicId=t.classification,p.includeChildrenTopics=!0);var v=c.a.useBasicFetch(r&&a&&we.H.calendarLivestreams(Object.assign({from:l.O.format(r,"YYYY-MM-DD"),to:l.O.format(a,"YYYY-MM-DD")},p))),f=c.a.useBasicFetch(o&&s&&we.H.calendarLivestreams(Object.assign({from:l.O.format(o,"YYYY-MM-DD"),to:l.O.format(s,"YYYY-MM-DD")},p))),g=c.a.useBasicFetch(d&&m&&we.H.calendarLivestreams(Object.assign({from:l.O.format(d,"YYYY-MM-DD"),to:l.O.format(m,"YYYY-MM-DD")},p)));return{events:I.m.uniq([].concat(Ce(g.data||[]),Ce(v.data||[]),Ce(f.data||[])),(function(e){return e.id})),loaded:v.hasCompleted}}(w,e.queryParams),A=T.events,M=T.loaded,N=l.O.format(k,"MMMM YYYY");if((0,fe.M)(ye.CG.getDefaultMetadata({title:N,phraseContext:{phraseHandler:Ae,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:Ee.f.getCanonicalLink({allowedParams:["year"]}),allowIndexing:!0,product:he.L.PRODUCT_NAME})),null!==e.month&&!E)return r.createElement(te,{imageUrl:(0,xe.j)().errorState,appLink:(0,De.h)().calendar});var Y,R,U,F,_,V=[{id:"classification",name:Ae("subjectFilter"),options:null===(t=b.data)||void 0===t?void 0:t.topics.map((function(e){return{name:e.name,id:e.topicIds.join(":")}})),type:"checkbox",compatibleIndices:[]},{id:"yearGroup",name:Ae("gradeFilter"),type:"checkbox",options:null===(n=h.data)||void 0===n?void 0:n.map((function(e){return{name:e.name,id:e.masterId}})),compatibleIndices:[]}];return r.createElement("div",{className:"bg-white px-4"},r.createElement(oe.D,{appLinks:(0,De.h)(),active:"calendar"}),r.createElement(J,{monthDate:k,setViewingMonthDate:O,appLinks:(0,xe.C)(),queryParams:e.queryParams,viewMode:p,setViewMode:function(e){return v({viewMode:e})}},r.createElement("div",{className:"mx-n1 order-1 order-sm-0"},r.createElement(ie.J,{queryParams:s.t.omit(e.queryParams,["year"]),mainFilters:V,appLink:(Y=l.O.format(k,"MMMM").toLocaleLowerCase(),R=(new Date).getFullYear(),U=k.getFullYear(),F=(0,xe.C)().month(Y),_={},R!==U&&(_.year=U),e.queryParams.classification&&(_.classification=e.queryParams.classification),e.queryParams.yearGroup&&(_.yearGroup=e.queryParams.yearGroup),F),isFetchingOptions:!b.data||!y.data||!h.data,alignResetButtonLeft:!0,hideDivider:!0,hideHeading:!0,hideCaret:!1}))),r.createElement("div",{className:"position-relative mt-3 ".concat("list"===p?"":"mt-lg-0")},r.createElement("div",{className:"d-block ".concat("list"===p?"":"d-lg-none"," position-absolute top-0 end-0 mt-2")},r.createElement(ce.d,null)),r.createElement(P,{weekDays:L,weekDaysHeader:S,events:A,monthQuery:{from:null==x?void 0:x.toString(),to:null==D?void 0:D.toString()},viewingMonth:w,eventsLoaded:M,presentationId:null===(a=y.data)||void 0===a?void 0:a.id,appLinks:(0,xe.C)(),imageUrls:(0,xe.j)(),viewMode:p,getActionLabel:function(e){return Ae(function(e){return f||l.O.isBefore(e.endDateTime,new Date)?"pastActionLabel":"actionLabel"}(e))},getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getBannerUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.banner)||void 0===t?void 0:t.url,{size:se.h2.Large})},getIconUrl:function(e){var t;return ge.j.createUrl(null===(t=e.company.logo)||void 0===t?void 0:t.url,{size:se.h2.Small})},getStartTime:Se.y.getStartTime,theme:{background:"bg-light-green",border:"border-light-green"},emptyStateHeading:function(){if(!g.T.getEventsInMonth(A||[],w).length&&(e.queryParams.yearGroup||e.queryParams.classification))return Ae("emptyStateText")}(),fadePastEvents:!0,timezone:le.r.ET,isPastEvent:Se.y.isPastEvent})))}Pe.defaultProps={queryParams:{}}},323:(e,t,n)=>{n.d(t,{C:()=>c,j:()=>o});var r=n(99742),a=n(96359),i=n(41135);function o(){return{emptyState:r.W.EmptyStates.CALENDAR.NO_EVENTS,errorState:r.W.EmptyStates.CALENDAR.INVALID_DATE}}function c(){return{calendar:function(){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR}},month:function(e){return{application:i.O.CALENDAR,action:a.e.Calendar.CALENDAR_MONTH,args:[e]}},event:function(e,t){return{application:i.O.LIVESTREAMS,action:a.e.Livestreams.LIVESTREAM,args:[e.id,t]}},eventList:function(e,t,n){return{application:i.O.CALENDAR,action:a.e.Calendar.SPECIAL_EVENT_LIST,params:Object.assign(Object.assign({},e),{date:t.toString(),presentationId:n})}}}}},27051:(e,t,n)=>{n.d(t,{E:()=>o,h:()=>c});var r=n(96359),a=n(41135),i=n(65751);function o(e){return Object.assign(Object.assign({},i.y),{classification:function(t){return i.y.classification(t,e)},classificationDirectory:function(){return i.y.classificationDirectory(e)}})}function c(){return{discover:{application:a.O.DASHBOARD,action:r.e.Dashboard.HOME},calendar:{application:a.O.CALENDAR,action:r.e.Calendar.CALENDAR},partners:{application:a.O.DASHBOARD,action:r.e.Dashboard.CONTENT_PARTNERS}}}},55941:(e,t,n)=>{n.d(t,{H:()=>c});var r=n(97395),a=n(110),i=n(59795),o=n(5960),c={livestream:function(e){return{url:r._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:r._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:o.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:a.O.format(i.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}},6117:(e,t,n)=>{n.d(t,{f:()=>c});var r=n(39202),a=n(14292),i=n(97395);function o(e){return o="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},o(e)}var c={isBot:function(){if(!window.URLSearchParams)return!1;var e=new URLSearchParams(window.location.search);return"true"===(null==e?void 0:e.get("isBot"))},getCanonicalLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.A.GetCurrentOrigin(),n=(null==e?void 0:e.customAppLink)||r.C$.getCurrentAppLink(),c=function(e,t){if(!(null==t?void 0:t.length)||"string"==typeof e||!e)return{};var n=t.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},a=!0,(r=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(r=t))in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n));var n,r,a}),{});return Object.keys(e).reduce((function(t,r){return r in n&&(t[r]=e[r]),t}),{})}(n.params,e.allowedParams),l=r.C$.getHref(Object.assign(Object.assign({},n),{params:c}));return"function"==typeof e.hrefTransformer&&(l=e.hrefTransformer(l)),i._.safeUrlConcat(t,l)}}},86474:(e,t,n)=>{n.d(t,{Z:()=>r});const r={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);
|