@clickview/streamable-learning 0.23.0 → 0.24.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{7834-streamable-learning-c6345c9876.chunk.css → 7834-streamable-learning-090ed84b25.chunk.css} +1 -1
  3. package/dist/css/{streamable-learning-aebcc147f2.css → streamable-learning-322d70ec8a.css} +1 -1
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/{1067-4e7c5ec2cb-streamable-learning.chunk.js → 1067-a2b54f7f76-streamable-learning.chunk.js} +1 -1
  6. package/dist/scripts/1661-09e40ae6be-streamable-learning.chunk.js +1 -0
  7. package/dist/scripts/{2967-28e0a8c7ef-streamable-learning.chunk.js → 2967-3ed7f5169d-streamable-learning.chunk.js} +1 -1
  8. package/dist/scripts/{3263-df8d5843ae-streamable-learning.chunk.js → 3263-0b43641e63-streamable-learning.chunk.js} +1 -1
  9. package/dist/scripts/{6426-654f4d218e-streamable-learning.chunk.js → 3578-6e78123113-streamable-learning.chunk.js} +2 -2
  10. package/dist/scripts/{4254-163e31db10-streamable-learning.chunk.js → 4254-cf5d843b12-streamable-learning.chunk.js} +1 -1
  11. package/dist/scripts/5910-dc6e7a42bb-streamable-learning.chunk.js +1 -0
  12. package/dist/scripts/{6909-7de2475531-streamable-learning.chunk.js → 6909-37573b3841-streamable-learning.chunk.js} +1 -1
  13. package/dist/scripts/{7730-232b7d5355-streamable-learning.chunk.js → 7730-35ad2bb003-streamable-learning.chunk.js} +1 -1
  14. package/dist/scripts/7834-a9e05c3c9a-streamable-learning.chunk.js +2 -0
  15. package/dist/scripts/8461-923a97806c-streamable-learning.chunk.js +2 -0
  16. package/dist/scripts/{8819-053c1cd68c-streamable-learning.chunk.js → 8819-c96456ae75-streamable-learning.chunk.js} +1 -1
  17. package/dist/scripts/bundle-44ceba7d18.min.js +2 -0
  18. package/package.json +1 -1
  19. package/dist/scripts/1661-a612406762-streamable-learning.chunk.js +0 -1
  20. package/dist/scripts/5910-4af36003ae-streamable-learning.chunk.js +0 -1
  21. package/dist/scripts/7834-1a61dce2df-streamable-learning.chunk.js +0 -2
  22. package/dist/scripts/8461-6cdf1c27f6-streamable-learning.chunk.js +0 -2
  23. package/dist/scripts/bundle-0809f389da.min.js +0 -2
  24. /package/dist/css/{6426-streamable-learning-4c45e4cbdf.chunk.css → 3578-streamable-learning-4c45e4cbdf.chunk.css} +0 -0
  25. /package/dist/scripts/{6426-654f4d218e-streamable-learning.chunk.js.LICENSE.txt → 3578-6e78123113-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  26. /package/dist/scripts/{7834-1a61dce2df-streamable-learning.chunk.js.LICENSE.txt → 7834-a9e05c3c9a-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  27. /package/dist/scripts/{8461-6cdf1c27f6-streamable-learning.chunk.js.LICENSE.txt → 8461-923a97806c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  28. /package/dist/scripts/{bundle-0809f389da.min.js.LICENSE.txt → bundle-44ceba7d18.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 6426-654f4d218e-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[6426],{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,{$:()=>k});var a=n(32735),i=n(57900),r=n(2948),o=n(92582),l=n(65858),c=n(11607),s=n(83914),u=n(96953),d=n(10038),m=n(35223),p=n(44902);const v={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function f(e){return f="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},f(e)}function g(){g=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof b?t:b,o=Object.create(r.prototype),l=new P(a||[]);return i(o,"_invoke",{value:N(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",h="completed",y={};function b(){}function w(){}function E(){}var k={};s(k,o,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(I([])));x&&x!==n&&a.call(x,o)&&(k=x);var S=E.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==f(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?h:p,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;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,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(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(f(t)+" is not iterable")}return w.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(S),s(S,c,"Generator"),s(S,o,(function(){return this})),s(S,"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=I,P.prototype={constructor:P,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(D),!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,y):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),y},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),D(n),y}},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;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function h(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 y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t,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())}))},w="1.2rem",E=500;function k(e){var t=h((0,r.D)("should:expand:".concat(e.id),e.isBot,{storage:i.Z1.LocalStorage}),2),n=t[0],f=t[1],y=h(a.useState(n?"100%":w),2),k=y[0],L=y[1],x=h(a.useState(!n),2),S=x[0],T=x[1],C=h(a.useState(null),2),N=C[0],O=C[1],j=(0,u.F)(),D=a.useRef(null),P=a.useRef(null),I=a.useRef(null);function A(){L(w),f(!1),D.current=window.setTimeout((function(){T(!0)}),E)}return a.useEffect((function(){!function(){b(this,void 0,void 0,g().mark((function t(){var a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p.R.parse(e.answer,{focusableLinks:n});case 2:if(a=t.sent,j.current){t.next=5;break}return t.abrupt("return");case 5:if(null!==N){t.next=8;break}return O(a),t.abrupt("return");case 8:if(N!==a){t.next=10;break}return t.abrupt("return");case 10:N&&n&&A(),O(a);case 12:case"end":return t.stop()}}),t)})))}()}),[e.answer]),a.useEffect((function(){"100%"===k&&I.current&&L(I.current.clientHeight+"px")}),[k]),(0,d.H)((function(){n&&A()}),null,[n]),e.question&&N?a.createElement(c.L,{className:"".concat(v.question," rounded-3"),onClick:function(t){var a;p.R.isLink(t.target)||0===window.getSelection().toString().length&&(o.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Faq,actionType:l.Vw.Click,descriptor:n?l._S.Collapse:l._S.Expand,location:l.LZ.FaqQuestionWidget})),n?A():((a=document.createElement("p")).innerHTML=N,a.style.visibility="hidden",P.current.appendChild(a),L("".concat(a.clientHeight,"px")),P.current.removeChild(a),f(!0),window.clearTimeout(D.current),T(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?m.vn.Minus:m.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:v.description,style:{height:k}},a.createElement("p",{className:"mb-0 ".concat(S?"clamp-1":""),dangerouslySetInnerHTML:{__html:N},ref:I}),a.createElement("div",{ref:P}))):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:()=>E,W:()=>k});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(57408),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(E,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v={getCustomFormControlClassName:function(e,t,n,a,i,r){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(r,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}},f=n(35223);function g(e){var t=(0,o.u6)().values,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},w="shared.formField";function E(e){var t,n,r=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],v=d[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var w="position-relative ".concat(h.passwordContainer);return u.className&&(w+=" ".concat(u.className)),u.disabled&&(w+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:w},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),S=(0,o.u6)(),T=S.errors,C=S.touched,N=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=N),a.createElement(d,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.getCustomFormControlClassName(T,C,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=N),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:w,phrase:"optional"})),!!i&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(E,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(r.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)})))}E.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},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(a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(u,Object.assign({},e)))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},87976:(e,t,n)=>{n.d(t,{L:()=>Ci});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(92582),c=n(65858),s=n(83914),u=n(83345),d=n(54610),m=n(12778),p=n(67453),v=n(35223);const f="TTPKV",g="nF3tK";var h="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function b(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function w(e){return e.person?a.createElement(b,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(u.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function 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(w,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var L=n(5281),x=n(31453),S=n(57408),T=n(7733),C=n(9085);var N=function(e){var t,n,i,r,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,C.x)(e.data.name,T.o),u=Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.data)||void 0===i?void 0:i.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company}),v={backgroundImage:o?"url('".concat(o,"')"):null,backgroundColor:l};return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:u,analyticsOptions:m},a.createElement("div",{className:(0,x.A)("rounded-circle w-100 h-100","vt0gx",!l&&s),style:v}))},O=n(58704),j=n(26154);function D(e){var t;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:N,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var P=n(55827),I=n(79967);var A=n(47770),F=n(68050),M=n(69111),_=n(9513),V=n(92802),B=n(23481),R=n(10731),U=n(23201),G=n(1269),z=n(82644),H=n(63855),W=n(69883),Z=n(5173),Y=Z.Ry().shape({feedbackInput:Z.Z_().max(5e3,(function(){return B.T.getPhrase("shared.feedbackForm","tooLong")}))});const q="UFm9h",K="na9Vb";function $(e){return $="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},$(e)}function Q(){Q=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==$(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError($(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var J="shared.feedbackForm";function ee(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return X(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)?X(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 a=this,i=void 0,r=void 0,s=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(B.T.getPhrase(J,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})),new(r||(r=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,i||[])).next())}));var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(R.V,{emoji:"🔎"},a.createElement(u.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(H.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(u.x,{namespace:J,phrase:"yes"})),a.createElement(H.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(u.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"👏"},a.createElement(u.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(G.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:B.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"😢"},a.createElement(u.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(G.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:B.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(R.V,{emoji:"🙌"},a.createElement(u.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(F.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(M.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(S.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(75903),ie=n(66869),re={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:re}))}))))}var le=n(72861),ce=n(43741),se=n(55171),ue=n(78479),de=n(42308),me=n(87114);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function fe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:d.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===j.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:ve(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===j.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return pe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,u;return t.id===j.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===j.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:_.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===de.z.Classifications&&e.templateId===ue.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?fe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===j.OL.ClassificationDirectory}}})}var he=n(65163),ye=n(98269),be=n(1048),we=n(11607),Ee=n(17808),ke=n(1287),Le=n(2102),xe=n(83523),Se=n(29309),Te="shared.subjectWidgetItem",Ce=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Se.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(Se.Z.widgetItem," ").concat(Se.Z.draggingItem),style:be.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Se.Z.widgetItem),style:be.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Se.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(xe.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?B.T.getPhrase(Te,e.isVisible?"hideFromDashboard":"showOnDashboard"):B.T.getPhrase(Te,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Ne=n(91028),Oe=n(16714),je=n(75896),De=n(49542);function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Ie(){Ie=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Pe(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Pe(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Me="shared.editableCoverFixedPillListSmall";function _e(e){var t,n,i,r=Ae(a.useState(!1),2),o=r[0],s=r[1],d=Ae(a.useState(!1),2),m=d[0],p=d[1],v=De.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,f=a.useMemo((function(){return v.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[v]),g=a.useMemo((function(){var e;return null!==(e=null==v?void 0:v.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ae(a.useState(g),2),y=h[0],b=h[1],w=Ae(a.useState(g),2),E=w[0],k=w[1],L=a.useMemo((function(){return o?v.filter((function(e){return!!E[e.id]})).sort((function(e,t){return E[e.id].index-E[t.id].index})):v.filter((function(e){var t;return!!y[e.id]&&!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return y[e.id].index-y[t.id].index}))}),[v,E,y,o]),x=(0,W.Z)();a.useEffect((function(){s(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var S=a.useMemo((function(){return!(o||!L.length)&&Object.values(E).some((function(e){return e.hidden}))}),[o,E]);function T(e){return E[e.id]?E[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function C(e){var t;return!(null===(t=E[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},E),n=C(e);t[e.id]={id:e.id,hidden:n,index:T(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),k(t)}var O=a.useMemo((function(){return!be.t.isEqual(g,E)}),[g,E]),j={id:e.presentation.id,name:B.T.getPhrase(Me,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},D=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:B.T.getPhrase(Me,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],P=!o&&D.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),I=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),A={location:c.LZ.EditableSubjectPreferencesWidget};return L.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},o?B.T.getPhrase(Me,"updating"):e.name),!o&&I&&a.createElement(we.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},B.T.getPhrase(Me,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(u.x,{namespace:Me,phrase:"editingDescription"}))),o&&I&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ye.Z,{variant:"link",className:"me-2",onClick:function(){k(y),s(!1)}},a.createElement(u.x,{namespace:Me,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=Ie().mark((function t(){var n;return Ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=f?v.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(E)).then((function(){b(E),p(!1),s(!1)})).catch((function(){p(!1),x.error(B.T.getPhrase(Me,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(u.x,{namespace:Me,phrase:"update"})))),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},S&&a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Ne.V,{data:j,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:A,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Ee.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(Ce,{data:t,onToggleVisibility:N,isVisible:C(t),isDragging:!0,canToggle:!C(t)||Object.values(E).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=T({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},E);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=je.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}}})(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!C(e)}})),k(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(ke.W,{id:t.id,childComponent:Ce,childProps:{data:t,onToggleVisibility:N,isVisible:C(t),isDragging:!1,canToggle:!C(t)||Object.values(E).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Ne.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:A,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),P&&D.map((function(t){return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Ne.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},A),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Ve=n(11518),Be=n(43933),Re=n(39880);const Ue="k2Xse";function Ge(e){return a.createElement("div",{className:"".concat(Ue," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(S.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(Be.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function ze(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ue," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Re.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Ge,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(Ge,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return se.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function He(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)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){if(e){if("string"==typeof e)return 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 Ye=B.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=He(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(He(t.events),[e.event])}))}else f.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ye("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ye("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ye("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=We(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(h=b.n()).done;){var w=h.value,E={label:w.label,body:w.body,month:w.monthLabel,appLinkMonth:o.O.format(w.startDate,"MMMM"),appLinkYear:o.O.format(w.startDate,"YYYY"),type:"date-widget-item"};y.push(E),w.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),r=e.contentType===j.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Ve.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:ze,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var Ke=n(39202),$e=n(16742),Qe=n(37963);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 Je=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Qe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===j.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="eo8oY";return o.type===j.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement($e.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n,i=De.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(S.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(et," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":tt),analyticsData:{url:Ke.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{id:e.id,type:j.l9.Row,contents:O.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function it(e){return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"".concat("TzZuL"," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(at.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===rt.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ct(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}const st="iCyo4",ut="cgv_6";function dt(e){var t,n,i,r,o,l,s=(0,I.k)(),u={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(S.F,{appLink:function(){var t,n,a=je.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:u},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(st),style:{backgroundImage:"url('".concat((l=je.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:d.__.Banners},{size:d.h2.Large})),"')")}},e.name&&a.createElement("div",{className:ut},a.createElement("p",{className:(o="text-white clamp-2",s.xs||s.sm?o+=" h4":s.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function mt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(st)},a.createElement("div",{className:"".concat(ut)}))}function pt(e){return pt="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},pt(e)}function vt(e,t,n){return(t=function(e){var t=function(e){if("object"!=pt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft,gt,ht;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(ft||(ft={})),function(e){e.Dark="dark",e.White="white"}(gt||(gt={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(ht||(ht={})),ft.H1,ft.H2,ft.H3,ft.H4,ft.H5,ft.H6,gt.Dark,gt.White,ht.NewWindow;var yt=vt(vt(vt(vt({},ht.NewWindow,v.vn.NewWindow),ht.TopicDirectory,v.vn.Grid),ht.TopicNewReleases,v.vn.Sparkle),ht.CuratedTopic,v.vn.Rectangles),bt=vt(vt(vt(vt(vt(vt(vt(vt({},ft.H1,"h1"),ft.H2,"h2"),ft.H3,"h3"),ft.H4,"h4"),ft.H5,"h5"),ft.H6,"h6"),gt.Dark,"text-dark"),gt.White,"text-white");const wt="b5ljD",Et="dj_1H",kt="UBcVE",Lt="fGBlR",xt="lkPfM";function St(e){var t,n,i,r=bt[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||ft.H6],o=bt[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||gt.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Et," ").concat(kt," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(xt," ").concat(e.widgetTypeId===de.z.Blurb?kt:""," 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(H.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,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(H.h,{svgName:yt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function Ct(e){return a.createElement(S.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(Tt,{cta:e.cta}))))}function Nt(e){var t,n,i,r=je.m.first(e.content),o={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(Ct,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:d.__.Banners},{size:d.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function Ot(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget};return a.createElement(S.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Et," ").concat(Lt),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(xt," ").concat(Lt," 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(je.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function jt(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(St,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(Ot,Object.assign({},e,{content:e.content}));default:return a.createElement(Nt,Object.assign({},e,{content:e.content}))}}function Dt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(xt)}))}function Pt(e){var t,n,i=je.m.first(e.content),r=(0,I.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Ct,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function It(e){var t,n,i,r,o,l,s,u=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in u&&p.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:d.h2.Medium}),v="metadata"in u&&(null===(i=u.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Ct,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,u),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:B.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(jt,Object.assign({},e))}var At=n(43306),Ft=n(2948),Mt=n(46477),_t=n(25925),Vt=n(21750),Bt=n(1666),Rt=(n(99940),n(97395)),Ut=n(1651),Gt=n(56050);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 Ht(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,Wt(a.key),a)}}function Wt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}var Zt,Yt,qt=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 Ut.Ry.throw(new Gt.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Ht(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Kt(e){return Kt="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},Kt(e)}function $t(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,Qt(a.key),a)}}function Qt(e){var t=function(e){if("object"!=Kt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kt(t)?t:t+""}function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(e)}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},en(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(Zt||(Zt={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Yt||(Yt={}));var tn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yt.OwnedByMe;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Jt(t),function(e,t){if(t&&("object"==Kt(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,Xt()?Reflect.construct(t,n||[],Jt(e).constructor):t.apply(e,n))}(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&&en(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&$t(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(qt),nn=n(62803),an=(n(5960),n(4594)),rn=(n(78417),n(40370)),on=n(61699),ln=n(31949),cn=n(22902),sn=n(25964),un=n(75795);function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var mn={HIGH:.75,MODERATE:.5};function pn(e){return pn="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},pn(e)}function vn(e,t,n){return(t=function(e){var t=function(e){if("object"!=pn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(fn||(fn={}));var gn,hn=vn(vn(vn({},fn.ExtraSmall,{size:2}),fn.Small,{size:2}),fn.Large,{size:5.8});function yn(e){var t=hn[e].size,n=e===fn.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function En(e,t){var n="d-inline-block ".concat("p8Vgz");return e===fn.Large&&(n+=" ".concat("N8KCI")),e===fn.ExtraSmall&&(n+=" ".concat("RPqZ2")),kn(t)&&(n+=" ".concat("DKrcq")),n}function kn(e){return"number"!=typeof e}function Ln(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:yn(e.size),className:"asGGE"}),!kn(e.percentage)&&a.createElement("circle",{ref:t,r:yn(e.size),className:bn(e.percentage,e.scoreThresholds)}))}function xn(e){var t,n,i=function(e){if(!kn(e))return+e.toFixed(2)}(e.percentage),r=e.size||(e.layout===gn.LabelInside?fn.Large:fn.Small),o=e.customLabel||(kn(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===gn.LabelOnly?a.createElement("span",{className:wn(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===gn.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:En(r,i)},a.createElement(Ln,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===gn.LabelInside&&a.createElement("span",{className:"tpmLR"},o)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(gn||(gn={})),xn.defaultProps={layout:gn.CircleOnly};var Sn=n(64818);var Tn="widgets.onboardingSteps",Cn=B.T.encloseNamespace(Tn);function Nn(e){var t,n,i,o,l,d,m,p,f=function(e){var t,n,i,o,l,c,s,u,d=(s=(0,Ft.D)("has:playlist",null),u=2,function(e){if(Array.isArray(e))return e}(s)||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}}(s,u)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1],v=r.a.useBasicFetch(ln.N.currentUser()),f=r.a.useBasicFetch((null===(t=v.data)||void 0===t?void 0:t.isAuthenticated)&&ln.N.user(v.data.id)),g=r.a.useBasicFetch((null===(n=v.data)||void 0===n?void 0:n.isAuthenticated)&&Bt.h.customer(v.data.customerId)),h=r.a.useBasicFetch(Vt.x.availablePresentations(_t.R.Subject)),y=r.a.useBasicFetch(Vt.x.presentation(_t.R.Subject)),b=r.a.useBasicFetch(Vt.x.availablePresentations(_t.R.Curriculum)),w=r.a.useBasicFetch((i=new tn,o=i.sort,l=i.type,c={sort:o,query:"{limit:100}".concat(nn.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},i.cursor&&(c.cursor=i.cursor),{url:Rt._.urlBuilder("/api/domain/v2/me/playlists/".concat(l),c),key:i.toString()})),E=r.a.useBasicFetch(on.o.mySubjectPreferences()),k=(0,cn.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;w.hasCompleted&&m!==!!(null===(t=null===(e=w.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&p(!!(null===(a=null===(n=w.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[w.hasCompleted]);var L=v.hasCompleted&&f.hasCompleted&&g.hasCompleted&&h.hasCompleted&&b.hasCompleted&&y.hasCompleted&&w.hasCompleted&&E.hasCompleted&&null!==m,x=(0,sn.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=f.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||y.data;return L?Mt.m.getOnboardingPathway({jobTitle:r,userSettings:x.data,presentations:h.data,curriculums:b.data,preferredSubjects:E.data,preferredPresentation:o,appLink:un.O.getCurrentRoute().appLink,appLinks:e,masterUser:f.data,customer:g.data,hasPlaylist:m,hasPermissions:k,currentUser:v.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:L}}(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),g=f.getPathway,h=f.hasLoadedPathway,y=h&&g(),b=Sn.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||h&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Oe.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var w=function(){if(e.isPreviewing)return{};var t=At.H[y.currentScreen],n=y.screens[y.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:Mt.m.getProgress(y)},Mt.m.getOnboardingScreenStates(y))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Mt.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=E.overallPercentage,L=E.totalScreens,x=E.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(xn,{percentage:Math.round(k)/100,layout:gn.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=At.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=At.H[y.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=At.H[e];return t===n?"".concat(Cn("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Cn("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Cn("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":y.currentScreen,x,L,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(d=e.imageUrls)||void 0===d?void 0:d.onboardingTeacherBackground,"')")}},a.createElement(S.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.onboardingStep)||void 0===p?void 0:p.call(m,null==y?void 0:y.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:w,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Tn,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 jn=n(31015),Dn=n(68626),Pn=n(80143);var In=a.memo((function(e){var t,n=e.data,r=e.getSubTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=e.presentationAudiences,u=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,Pn.n)(u,s),m=(0,I.k)(),p="JSM4l";return o.type===j.l9.LargeRow&&(p="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(p)},a.createElement($e.u,{type:e.preventPopout||m.xs?"static":"popout",textPosition:Dn.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:rn.M.isVideo(n)&&(null==r?void 0:r(n)),imageOptions:{size:l},preload:c,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,showNewVideoIndicator:e.showNewVideoIndicator,onClickRemove:i.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip}))}));function An(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=jn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:g,childComponent:In,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:rn.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):""},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function Fn(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 Mn=B.T.encloseNamespace("shared.subjectStatsBadge");function _n(e){return a.createElement("div",{className:function(){var t="fw-semibold d-inline-block rounded-pill px-2 ".concat("NWZxu");switch(e.badgeType){case"coming-soon":return t+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return t+" ".concat("KLRzE");case"new-videos":return t+" ".concat("xozwy");default:return""}}()},"coming-soon"===e.badgeType&&a.createElement(s.x,{svgName:v.vn.Timer,className:"svg-container ".concat("G9W_I"),size:s.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return Mn("comingSoon");case"new-topic":return Mn("new");case"new-videos":return Mn("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function Vn(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==de.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=me.i.getCounts(e.classification).childDashboardNewVideoCount;return t?a.createElement("div",{className:"ms-2"},a.createElement(_n,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Bn(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=jn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.Row,contents:O.z.Videos,collection:g,childComponent:In,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:rn.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):""},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Vn,Object.assign({},e))})}function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Un=n(70580);function Gn(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(S.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Un.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function zn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:Gn,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData})}const Hn="fgIje",Wn="CJwKL";var Zn=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?Hn:Wn," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function Yn(e){for(var t,n,i=(t=e.type,(n=(0,I.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Zn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(P.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var qn=n(85473),Kn=n(85177);function $n(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(Hn):t+=" ".concat(Wn),t)},a.createElement(qn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:d.__.TallPosters,preload:i,imageOptions:{size:d.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(Kn.oy,{type:Kn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function Qn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:$n,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData})}function Xn(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 Jn="explore-all-topics";function ea(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?Jn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=De.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return Xn(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 Xn(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)?Xn(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:$n,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===Jn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function ta(e){var t;return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:Gn,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var na=n(56097);function aa(e){var t=je.m.first(e.content),n=t.question,i=t.answer;return a.createElement(na.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const ia="Jg3am";function ra(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(ia," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var oa=n(57900),la=n(96953),ca=n(10038),sa=n(44902);function ua(e){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(e)}function da(){da=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==ua(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(ua(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function ma(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 pa(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)?pa(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 pa(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 va=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function fa(e){var t,n,i,r=ma((0,Ft.D)("should:expand:".concat(e.id),e.isBot,{storage:oa.Z1.LocalStorage}),2),o=r[0],u=r[1],d=ma(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=ma(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),w=(0,la.F)();function E(){var t;return va(this,void 0,void 0,da().mark((function n(){var a;return da().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),u(!1),n.next=4,sa.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,w.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;va(this,void 0,void 0,da().mark((function n(){var a;return da().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,sa.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,w.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,ca.H)((function(){o&&E()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(i=e.faq)||void 0===i?void 0:i.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(we.L,{onClick:function(t){sa.R.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:o?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget}),o?E():function(){var t;va(this,void 0,void 0,da().mark((function n(){var a;return da().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),u(!0),n.next=4,sa.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,w.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(ia)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0})))}function ga(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(fa,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const ha={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function ya(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(ha.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:ha.partialIcon},a.createElement(Kn.oy,{type:Kn.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 ba=n(2284);function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ea=B.T.encloseNamespace("shared.subjectStatsWidgetItem");function ka(e){var t,n,i,r,l,u,m=(l=a.useState(!1),u=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(l,u)||function(e,t){if(e){if("string"==typeof e)return wa(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)?wa(e,t):void 0}}(l,u)||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],f=m[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===ba.W.ComingSoon,h=me.i.isFollowing(e.classification),y=me.i.getCounts(e.classification),b=y.dashboardNewVideosCount,w=y.childDashboardNewVideoCount,E=y.dashboardResourceCount,k=y.childDashboardResourceCount,L=y.dashboardVideoCount,x=y.childDashboardVideoCount,T=y.childClassificationCount,C=L+x,N=E+k,O=b+w,j=function(){if(e.classification.status===ba.W.ComingSoon||e.hideCounts)return"";var t="";if(C&&(t+="".concat(Ea("videos",{smartCount:C})," ")),N&&(t+=" • ".concat(Ea("resources",{smartCount:N}))),me.i.isTopLevelTopic(e.classification)&&T>0){if(!t)return Ea("topics",{smartCount:T});t="".concat(Ea("topics",{smartCount:T})," • ")+t}return t}();return a.createElement(S.F,{className:"d-flex no-decoration rounded ".concat(ha.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:C,resourceCount:N,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:c.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Cover})},!p&&a.createElement(Kn.oy,{type:Kn.mS.Subject,extraClasses:"ms-2 rounded-end-lg ".concat(ha.fallbackImage)}),a.createElement("div",{className:"".concat(ha.cover," me-2 rounded overflow-hidden")},a.createElement(qn.Z,{data:e.classification.cover,imageOptions:{size:d.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return f(!0)}},e.canFollowTopics&&a.createElement(we.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(ha.bellContainer," ").concat(h?ha.followed:"","\n ")},a.createElement(s.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(ha.bell)}),a.createElement(s.x,{svgName:v.vn.Bell,className:"svg-container ".concat(ha.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!j&&a.createElement("p",{className:"mb-0 ".concat(ha.subText)},j),a.createElement(_n,{badgeType:function(){if(e.classification.status===ba.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&o.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function La(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(M.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(ka,{classification:t,analyticsData:e.analyticsData,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1,hideCounts:e.isTertiaryCustomerWithoutExchange}))}))))}function xa(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Sa(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(xa,null),a.createElement(xa,null))}var Ta=n(43889);function Ca(e){var t,n,i,r,o,l,c,s=je.m.first(De.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(Ta.J,{video:s,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,s),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:rn.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,showNewVideoIndicator:null===(c=e.settings)||void 0===c?void 0:c.hasTopicDirectories}))}function Na(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 Oa(e){var t,n,i={};return e.data.fallbackBackgroundColor&&(i.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(i.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(i.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("gKcbE"," ").concat(e.isLarge?"Ldth1":"z6ZxE"),style:i},a.createElement("div",{className:"".concat("aOotU"," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat("w5WZ1")},e.data.preTitle&&e.data.preTitle.length&&a.createElement("p",{className:"".concat("ReAEa"," mb-1 text-white"),title:e.data.preTitle},e.data.preTitle),a.createElement("p",{className:"".concat("bSXFz"," h3 text-shadow ").concat(e.isLarge||(null===(t=e.data)||void 0===t?void 0:t.preTitle)?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("XjSFw")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"c28_J"},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},(null===(n=e.data)||void 0===n?void 0:n.buttonText)||B.T.getPhrase("shared.thumbnailWidgetItem","buttonLabel")))),!e.data.thumbnailUrl&&!!e.data.coverUrl&&a.createElement("div",{className:"".concat("liG0R"),style:{backgroundImage:"url('".concat(e.data.coverUrl,"')")}}))}var ja=a.memo((function(e){return e.appLink?a.createElement(S.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(Oa,Object.assign({},e))):a.createElement(Oa,Object.assign({},e))})),Da=B.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function Pa(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(M.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(ja,Object.assign({},function(e){var t,n,a,i,r,o,l,s,u,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===ba.W.ComingSoon,f=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!v}),g=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return Object.assign(Object.assign({},m),{data:Object.assign(Object.assign({},m.data),{backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium}),buttonText:Da("exploreTopic")}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const Ia="HwejH";var Aa=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"}}))},Fa=n(39802),Ma=n(99131);function _a(e){var t,n,i,r,o,l,s,u,m,p=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),v=rn.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),f=a.useRef(null),g={actionType:c.Vw.Click,entity:rn.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},h=(0,Pn.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:f},a.createElement($e.u,{analyticsData:e.analyticsData,analyticsOptions:g,video:e.video,appLink:p,imageOptions:{size:d.h2.Medium},textPosition:Dn.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:h,hideRating:!!h,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(Fa.h,{video:e.video,appLink:p,subTextAppLink:v,yearGroups:e.yearGroups,subTextType:e.subTextType,showNewVideoIndicator:null===(l=e.settings)||void 0===l?void 0:l.hasTopicDirectories}),rn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Ma.u,{getClassroomGuideAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.classroomGuide,getResourceGuidanceAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.resourceGuidance,getInteractiveGuidanceAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function Va(e){var t=De.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(_a,Object.assign({key:t.id,video:t},e))}))))}function Ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ra=n(45778);function Ua(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([de.z.SearchRelevantTopics,de.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==de.z.TrendingClassifications&&e.widgetTypeId!==de.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var i="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,r=function(e){var t,n,a,i,r,o,l,s,u,m,v,f,g={data:{name:e.item.name,description:e.item.description}};if(Ra.G.isType(e.item,an.E.Subject)){var h=(null===(t=e.item)||void 0===t?void 0:t.status)===ba.W.ComingSoon,y=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!h}),b=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),w=e.widgetTypeId===de.z.SearchRelevantTopics&&function(e,t){if(e&&t){var n=t.find((function(t){return t.id&&t.id===e.presentationId}));if(n)return n.name}}(e.item,e.availablePresentations);return Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{preTitle:w,backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium})}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),analyticsData:y,analyticsOptions:b})}return Ra.G.isType(e.item,an.E.Company)?Object.assign(Object.assign({},g),{data:Object.assign(Object.assign({},g.data),{coverUrl:p.j.createUrl(null===(m=e.item.cover)||void 0===m?void 0:m.url,{size:d.h2.Small})}),appLink:null===(f=null===(v=e.appLinks)||void 0===v?void 0:v.company)||void 0===f?void 0:f.call(v,e.item)}):g}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:i,availablePresentations:e.availablePresentations});return a.createElement(M.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(ja,Object.assign({},r)))}))))}function Ga(e){var t,n,i,r,o,l,s=je.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return u&&m?a.createElement(a.Fragment,null,a.createElement(S.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||B.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(dt,Object.assign({},e))}var za=n(17034),Ha=n(35082);function Wa(e){var t,n,i,r,o,l,s,u,m,p,v,f,g,h=je.m.first(De.d.getVideoContent(e.content)),y=a.useRef(),b=(0,Pn.n)(null===(t=h.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),w=rn.M.hasSeries(h)||De.d.isCompanyWidget(e.widgetTypeId),E={actionType:c.Vw.Click,entity:rn.M.getAnalyticsEntity(h),location:c.LZ.ThumbnailHeroMediaWidget},k=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,L=rn.M.getCanBeConsumed(h).canNavigate;return h?a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{ref:y},a.createElement($e.u,{video:h,imageOptions:{size:d.h2.Large},type:"static",textPosition:Dn.z.Independent,analyticsOptions:E,audience:b,hideRating:!!b,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,h,{}),subTextAppLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.subText)||void 0===l?void 0:l.call(o,h),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,rn.M.isVideo(h)&&a.createElement(za.$,{type:De.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:h,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===u?void 0:u.call(s,h),analyticsOptions:E,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:w?"":"mt-2"},a.createElement(S.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,h,{}),analyticsData:{id:h.id,name:h.name},analyticsOptions:Object.assign(Object.assign({},E),{descriptor:c._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement(Ha.O,{video:h,yearGroups:e.yearGroups,showNewVideoIndicator:k,titleSize:"h4",className:"mb-0"})))),rn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Ma.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:h,analyticsData:e.analyticsData,analyticsOptions:E,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Za(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function Ya(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var qa=n(74237),Ka=n(84342);var $a=a.memo((function(e){var t,n,i,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,o=(0,Pn.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement($e.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:rn.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:Dn.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function Qa(e){return rn.M.isVideoType(e.data)?a.createElement($a,Object.assign({},e)):a.createElement(Ka.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),qa.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Xa(e){var t,n,i,r=e.hasLocalPermissions(Oe.E.ViewVideoResourceItems);return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Qa,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 rn.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Ja=n(71471),ei=B.T.encloseNamespace("search.searchExchangeArchiveDescription");function ti(e){return a.createElement(a.Fragment,null,ei("searchExchangeArchiveDescription")," ",a.createElement(S.F,{appLink:e.appLink,className:"info-link"},ei("searchExchangeArchiveLink")))}var ni=n(70393);function ai(e){var t,n,i,r,o;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(ti,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[de.z.SearchExchangeArchive,de.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(ni.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a,i;return"series"===e.subTextType?null===(n=e.appLinks)||void 0===n?void 0:n.series(null==t?void 0:t.series):"productionCompany"===e.subTextType?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.company)||void 0===i?void 0:i.call(a,t):void 0},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,canFavourite:e.canFavourite,setFavourite:e.setFavourite,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,companyLogoFallbackUrl:e.companyLogoFallbackUrl,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video},getAnalyticsData:e.getAnalyticsData}))}var ii=n(12754),ri=n(64887),oi=n(88711);function li(e){var t,n,i,r,o,l,s=e.folder.thumbnail?Rt._.urlBuilder(e.folder.thumbnail.url,{size:d.h2.Small}):null,u=null===(r=null===(i=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===i?void 0:i[0])||void 0===r?void 0:r.owner,m=e.showOwnerLogo&&(null===(o=null==u?void 0:u.logo)||void 0===o?void 0:o.url)?Rt._.urlBuilder(u.logo.url,{size:d.h2.Small}):null,p=null===(l=e.getFolderActions)||void 0===l?void 0:l.call(e,e.folder),v=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,f=e.analyticsOptions?Object.assign({actionType:c.Vw.Click,entity:c.py.Folder},e.analyticsOptions):void 0;return a.createElement(oi.j,{draggable:e.drag&&{id:e.folder.id,data:e.folder},droppable:e.drop&&{id:e.folder.id,data:e.folder},dropStye:"kvCLS",dragStyle:"md9Na"},a.createElement("div",{className:"position-relative"},a.createElement(S.F,{className:"rounded-3 d-block text-decoration-none",appLink:e.getAppLink(e.folder),title:e.folder.name,analyticsData:v,analyticsOptions:f},a.createElement(qn.Z,{data:s,imageType:d.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(Kn.oy,{name:e.folder.name,type:Kn.mS.Folder,extraClasses:"rounded-top-lg"})),a.createElement("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2"},a.createElement("span",{className:"text-truncate d-block"},e.folder.name))),(null==p?void 0:p.length)&&a.createElement(ri.e,{actions:p,className:"xM37V",actionsDropdownClassName:"cN3nB",dropdownToggleSvgSize:null}),!!m&&a.createElement("img",{src:m,className:"rounded-circle ".concat("g3JFo"),alt:"".concat(null==u?void 0:u.name," logo"),title:(null==u?void 0:u.name)||""})))}function ci(e){function t(t){var n,a,i;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var r=null===(i=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===i?void 0:i.id;return e.appLinks.folder(t,{libraryId:r})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(r):{};return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(li,{folder:i,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}function si(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function ui(e){return e.appLink?a.createElement(S.F,{appLink:e.appLink,className:"".concat("OsWjL")},a.createElement(si,Object.assign({},e))):a.createElement(si,Object.assign({},e))}var di=n(97663);const mi="M4zat";var pi="shared.collectionThumbnail";function vi(e){var t,n,i,r,o=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===an.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return je.m.first(n.data)}}(),l=function(){var t,n,a=0;if(e.collection.videos&&e.collection.videos.count&&(a+=e.collection.videos.count),e.collection.typeId===an.E.Playlist){var i=e.collection;(null===(t=i.interactives)||void 0===t?void 0:t.count)&&(a+=i.interactives.count),(null===(n=i.clips)||void 0===n?void 0:n.count)&&(a+=i.clips.count)}return a}(),d=(null===(t=e.title)||void 0===t?void 0:t.length)||(null===(n=e.subText)||void 0===n?void 0:n.length),m=Object.assign({id:e.collection.id.toString(),name:e.collection.name},e.analyticsData),p=Object.assign({actionType:c.Vw.Click,entity:(r=e.collection,Ra.G.isType(r,an.E.Playlist)?c.py.Playlist:Ra.G.isType(r,an.E.Series)?c.py.Series:void 0)},e.analyticsOptions);return a.createElement("div",null,a.createElement("div",{className:"position-relative ".concat("uD9dz"," z-1")},a.createElement(S.F,{appLink:e.appLink,analyticsData:m,analyticsOptions:p,preventFocus:!0},e.showMask&&a.createElement("div",{className:"".concat("r0Ztg"," position-absolute w-100 h-100 rounded-3 bg-dark bg-gradient z-1 bg-opacity-50 pointer-events-none")},a.createElement("div",{className:"".concat(mi," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(s.x,{svgName:v.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(i=e.hoverText)||void 0===i?void 0:i.length)?a.createElement("span",null,e.hoverText):a.createElement(u.x,{namespace:pi,phrase:"playAll"})))),o&&a.createElement($e.u,{video:o,imageOptions:e.imageOptions,textPosition:Dn.z.Independent,type:"cosmetic",hideMask:!0,hideRating:!0,hideDuration:!0,hideVideoTypeBadge:!0}),!o&&a.createElement("div",{className:"ratio ratio-16x9 bg-light rounded-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center"},a.createElement(s.x,{svgName:v.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(mi," d-flex align-items-center w-fit bg-dark bg-opacity-75 rounded-pill position-absolute bottom-0 end-0 ps-1 m-2")},a.createElement(s.x,{svgName:v.vn.Series,className:"svg-container text-white me-1"}),a.createElement("p",{className:"d-inline fw-semibold text-white mb-0"},a.createElement(u.x,{namespace:pi,phrase:"videos",options:{count:l,smartCount:l}}))))),d&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(di.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(ui,{title:e.collection.name,appLink:e.titleAppLink})))}function fi(e){return fi="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},fi(e)}function gi(e,t,n){return(t=function(e){var t=function(e){if("object"!=fi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hi,yi=B.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function bi(e){var t=gi(gi({},an.E.Playlist,yi("playlist")),an.E.Series,yi("series")),n=gi(gi({},an.E.Playlist,yi("viewPlaylist")),an.E.Series,yi("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o,l=(o=i,Ra.G.isType(o,an.E.Playlist)?e.appLinks.playlist(o):Ra.G.isType(o,an.E.Series)?e.appLinks.series(o):void 0),s=t[null==i?void 0:i.typeId],u=n[null==i?void 0:i.typeId];return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(vi,{collection:i,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(r),title:null==i?void 0:i.name,titleAppLink:l,imageOptions:{size:d.h2.Small},subText:s,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function wi(e){return wi="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},wi(e)}function Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=wi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ki=(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(hi={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return Wa},partialLoading:function(){return a.createElement("div",null,a.createElement("div",{className:"w-100 partial-loading-background rounded-3",style:{paddingBottom:"56.25%"}}),a.createElement("div",{className:"KjaI4"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Sa,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListLarge,{getComponent:function(){return zn},partialLoading:function(e){var t,n,i=(t=(0,I.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return Rn(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 Rn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat("hMoHO"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return Qn},partialLoading:function(){return a.createElement(Yn,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case de.z.CuratedClassifications:return ea;case de.z.CuratedSeries:return ta;default:return ea}},partialLoading:function(){return a.createElement(Yn,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===ii.x.StreamableLearning)return!1;switch(n){case de.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case de.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),ue.f.ThumbnailFeaturedMedia,{getComponent:function(){return Ca},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(F.Z,null,a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Sa,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(_.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===ii.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return La},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(ya,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),ue.f.CoverFixedPillListXSmall,{getComponent:function(){return ne},partialLoading:function(){return a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(F.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===ii.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:_.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===ii.x.StreamableLearning?n!==de.z.Classifications&&[j.ku.Discover,j.ku.Company,j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(hi,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return nt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(et," ").concat(tt," mb-1 ")}),a.createElement(Ve.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return dt},partialLoading:mt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Nn},partialLoading:mt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return jt},partialLoading:Dt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return Pt},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return Ga},partialLoading:function(){return a.createElement(mt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return Pa},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Na(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 Na(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)?Na(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(M.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return Ua},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Ba(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 Ba(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ba(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(M.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return _e},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(F.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(_.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(Ei(hi,ue.f.Heading,{getComponent:function(){return ct},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return E},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return aa},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!==ii.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return ga},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(ra,null),a.createElement(ra,null),a.createElement(ra,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Va},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Ia," partial-loading-background rounded-3")}),a.createElement(Aa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Sa,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Ia," partial-loading-background rounded-3")}),a.createElement(Aa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Sa,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return An},partialLoading:function(e){return a.createElement(Ve.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!==ii.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Bn},partialLoading:function(e){return a.createElement(Ve.j7,{size:"sm",childComponent:Fn,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===ii.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):t===j.ku.Classification?a:[j.ku.MoviesAndTv,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,I.k)();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return lt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return D},partialLoading:function(e){var t=8,n=(0,I.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===ii.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,I.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===ii.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Ei(Ei(Ei(Ei(Ei(Ei(hi,ue.f.ThumbnailVerticalList,{getComponent:function(){return ai},partialLoading:function(){return a.createElement(Ja.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===ii.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Xa},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==ii.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return bi},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return ci},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return Ya},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return Za},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Li=n(65294);const xi={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Si(e,t){if(e){if("string"==typeof e)return Ti(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)?Ti(e,t):void 0}}function Ti(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 Ci(e){var t,n,o,l,c,s,u=a.createRef(),d=(c=a.useState([]),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,s)||Si(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,Li.Y)({prevent:!v}),g=f.ref,h=f.inView,y=i.q.isFunction(e.getContentRequest),b=r.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),w=De.d.useGetContent(e.content||(null===(n=b.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=b.data)||void 0===o?void 0:o.preferences,m).content,E=(0,I.k)(),k=function(e,t){return!(De.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,w),L=!De.d.canDisplayOnScreenSize(E,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;y&&!b.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,k||L)}),[b.hasCompleted,k,L,y,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,u.current]);var x=e.appLinks?Object.assign({},e.appLinks):null;(null==x?void 0:x.videoType)&&(x.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var S=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),T=y&&!b.hasCompleted||e.isEditing&&k,C=ki[e.templateId].partialLoading,N=ki[e.templateId].getComponent(e.widgetTypeId),O=ki[e.templateId].className;return T||!k&&!L?a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:u,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(xi.widgetHighlight," py-2 px-3 rounded-3"):""},De.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(xi.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),T?a.createElement("div",{ref:g},a.createElement(C,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(N,Object.assign({},e,{appLinks:x,content:w,preferences:null===(l=b.data)||void 0===l?void 0:l.preferences,analyticsData:S,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return p([].concat(function(e){return function(e){if(Array.isArray(e))return Ti(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Si(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(m),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}})))):a.createElement(a.Fragment,null)}},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,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)},80889:(e,t,n)=>{n.d(t,{_:()=>g});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),u=n(45778);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var p=new Set([].concat(d(Object.values(c.e.Classifications.Twig.EnglandPrimary)),d(Object.values(c.e.Classifications.Twig.InternationalPrimary)),d(Object.values(c.e.Classifications.Twig.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function f(e){return v(o.t.pick(e,["audienceId"]))}var g={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:i._.urlBuilder("/api/discover/dashboards",o),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(a,":").concat(null==n?void 0:n.join(":")),formatData:function(e){var t;return a?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===a.toString()})):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){return l.d.formatResponseData(e,a)},normalizeOptions:{namespace:f(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall,success:r}},discoverWidgetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(t),n),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(t),n),key:"widget:".concat(t,":").concat(v(n)),formatData:function(t){var n=l.d.formatResponseData(t,r);if(e)return n;if(Array.isArray(n.content)){var a=n.content.filter((function(e){return!u.G.isClassification(e)||!p.has(e.id)}));n.content=a}return n},normalizeOptions:{namespace:f(n)},normalize:a!==s.f.EditableCoverFixedPillListSmall,success:o}},getDashboard:function(e,t,n,a,o,l){var c={target:n,status:t,userType:e};(null==a?void 0:a.length)&&(c["widgets.curriculum"]=a);var s="dashboard:".concat(n,":").concat(e,":").concat(o,":").concat(t.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:s,formatData:function(e){var t;return o?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===o.toString()})):r.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,t,n){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:a.k.PUT,data:{userId:n.id,customerId:n.customerId,metadata:t}}}}},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(92582),r=n(65858),o=null,l={getVideoDownloadUrl:function(e,t){return a._.safeUrlConcat(a._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n,a){var l,c=o;o||(c=o=document.createElement("iframe"),document.body.appendChild(c),c.style.display="none"),c.src=e.url,a||i.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(l=null==e?void 0:e.metadata)||void 0===l?void 0:l.resourceType},t),Object.assign({actionType:r.Vw.Download,entity:r.py.Resource,workflowPhase:r.eu.Complete},n))}}},44902:(e,t,n)=>{n.d(t,{R:()=>v});var a=n(16951),i=n.n(a),r=n(38946);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)}function l(){l=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:{},c=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function m(e,t,n,a){var r=t&&t.prototype instanceof b?t:b,o=Object.create(r.prototype),l=new P(a||[]);return i(o,"_invoke",{value:N(e,n,l)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var v="suspendedStart",f="suspendedYield",g="executing",h="completed",y={};function b(){}function w(){}function E(){}var k={};d(k,c,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(I([])));x&&x!==n&&a.call(x,c)&&(k=x);var S=E.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,l,c){var s=p(e[i],e,r);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==o(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=v;return function(r,o){if(i===g)throw Error("Generator is already running");if(i===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===v)throw i=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=g;var s=p(t,n,a);if("normal"===s.type){if(i=a.done?h:f,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var r=p(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;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,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[c];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(o(t)+" is not iterable")}return w.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=d(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(C.prototype),d(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(m(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(S),d(S,u,"Generator"),d(S,c,(function(){return this})),d(S,"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=I,P.prototype={constructor:P,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(D),!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,y):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),y},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),D(n),y}},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;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}var c,s=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())}))},u="markdown-link",d=new r.M2,m=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,p=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;d.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:function(e){for(var t,n=e;n;){if(-1===(t=n.indexOf("$")))return;if((0===t||" "===n.charAt(t-1))&&n.substring(t).match(m))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(m);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(p);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return s(void 0,void 0,void 0,l().mark((function t(){var a,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("inlineKatex"!==e.type&&"blockKatex"!==e.type){t.next=6;break}return t.next=3,Promise.all([n.e(785),n.e(1659)]).then(n.bind(n,61659));case 3:a=t.sent,i=a.katex,c=i;case 6:case"end":return t.stop()}}),t)})))}});var v={isLink:function(e){return e.classList.contains(u)},parse:function(e,t){return s(this,void 0,void 0,l().mark((function n(){var a;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return","");case 2:return n.next=4,d.parse(e,{renderer:v.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",i().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new d.Renderer;return t.heading=function(e){var t=e.text,n=e.depth;return"<h".concat(n,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n],'">').concat(t,"</h").concat(n,">")},t.link=function(t){var n=t.href,a=t.text,i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(u,'" ').concat(i,">").concat(a,"</a>")},t.list=function(e){var t=e.ordered?"ol":"ul";return"\n <".concat(t,' class="').concat("jGiRj",'">\n ').concat(e.items.map((function(e){return"<li>".concat(e.text,"</li>")})).join(""),"\n </").concat(t,">\n ")},t}}},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
+ /*! For license information please see 3578-6e78123113-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[3578],{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,{$:()=>k});var a=n(32735),i=n(57900),r=n(2948),o=n(92582),l=n(65858),c=n(11607),s=n(83914),u=n(96953),d=n(10038),m=n(35223),p=n(44902);const v={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function f(e){return f="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},f(e)}function g(){g=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof b?t:b,o=Object.create(r.prototype),l=new P(a||[]);return i(o,"_invoke",{value:N(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",h="completed",y={};function b(){}function w(){}function E(){}var k={};s(k,o,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(I([])));x&&x!==n&&a.call(x,o)&&(k=x);var S=E.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==f(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?h:p,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;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,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(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(f(t)+" is not iterable")}return w.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=s(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(C.prototype),s(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(S),s(S,c,"Generator"),s(S,o,(function(){return this})),s(S,"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=I,P.prototype={constructor:P,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(D),!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,y):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),y},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),D(n),y}},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;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}function h(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 y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t,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())}))},w="1.2rem",E=500;function k(e){var t=h((0,r.D)("should:expand:".concat(e.id),e.isBot,{storage:i.Z1.LocalStorage}),2),n=t[0],f=t[1],y=h(a.useState(n?"100%":w),2),k=y[0],L=y[1],x=h(a.useState(!n),2),S=x[0],T=x[1],C=h(a.useState(null),2),N=C[0],O=C[1],j=(0,u.F)(),D=a.useRef(null),P=a.useRef(null),I=a.useRef(null);function A(){L(w),f(!1),D.current=window.setTimeout((function(){T(!0)}),E)}return a.useEffect((function(){!function(){b(this,void 0,void 0,g().mark((function t(){var a;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p.R.parse(e.answer,{focusableLinks:n});case 2:if(a=t.sent,j.current){t.next=5;break}return t.abrupt("return");case 5:if(null!==N){t.next=8;break}return O(a),t.abrupt("return");case 8:if(N!==a){t.next=10;break}return t.abrupt("return");case 10:N&&n&&A(),O(a);case 12:case"end":return t.stop()}}),t)})))}()}),[e.answer]),a.useEffect((function(){"100%"===k&&I.current&&L(I.current.clientHeight+"px")}),[k]),(0,d.H)((function(){n&&A()}),null,[n]),e.question&&N?a.createElement(c.L,{className:"".concat(v.question," rounded-3"),onClick:function(t){var a;p.R.isLink(t.target)||0===window.getSelection().toString().length&&(o.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:l.py.Faq,actionType:l.Vw.Click,descriptor:n?l._S.Collapse:l._S.Expand,location:l.LZ.FaqQuestionWidget})),n?A():((a=document.createElement("p")).innerHTML=N,a.style.visibility="hidden",P.current.appendChild(a),L("".concat(a.clientHeight,"px")),P.current.removeChild(a),f(!0),window.clearTimeout(D.current),T(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(s.x,{svgName:n?m.vn.Minus:m.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:v.description,style:{height:k}},a.createElement("p",{className:"mb-0 ".concat(S?"clamp-1":""),dangerouslySetInnerHTML:{__html:N},ref:I}),a.createElement("div",{ref:P}))):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:()=>E,W:()=>k});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(57408),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(E,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v={getCustomFormControlClassName:function(e,t,n,a,i,r){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(r,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}},f=n(35223);function g(e){var t=(0,o.u6)().values,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},w="shared.formField";function E(e){var t,n,r=e.children,s=e.showLoadingSpinner,u=b(e,["children","showLoadingSpinner"]),d=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],v=d[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==u.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var w="position-relative ".concat(h.passwordContainer);return u.className&&(w+=" ".concat(u.className)),u.disabled&&(w+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:w},a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===u.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),S=(0,o.u6)(),T=S.errors,C=S.touched,N=function(){};if("checkbox"===x.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=N),a.createElement(d,Object.assign({},O))}var j=Object.assign(Object.assign({},x),{className:v.getCustomFormControlClassName(T,C,x.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(j.onChange=N),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:x.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:w,phrase:"optional"})),!!i&&!!x.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:x.name,limit:x.maxLength}))),a.createElement(E,Object.assign({},j,{"aria-errormessage":"".concat(x.name,"Error")})),!!y&&a.createElement(r.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:x.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(x.name,"Error"),type:"invalid",role:"status"},e)})))}E.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,u=e.onSubmit,d=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},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(a.Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(u,Object.assign({},e)))})))}function u(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},60442:(e,t,n)=>{n.d(t,{L:()=>Oi});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(92582),c=n(65858),s=n(83914),u=n(83345),d=n(54610),m=n(12778),p=n(67453),v=n(35223);const f="TTPKV",g="nF3tK";var h="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function b(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function w(e){return e.person?a.createElement(b,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,d.__.Avatars,e.person.imageId,d.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(u.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(u.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(u.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function 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(w,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var L=n(5281),x=n(31453),S=n(57408),T=n(7733),C=n(9085);var N=function(e){var t,n,i,r,o=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:d.h2.Medium}),l=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,s=(0,C.x)(e.data.name,T.o),u=Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.data)||void 0===i?void 0:i.id,name:null===(r=e.data)||void 0===r?void 0:r.name}),m=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company}),v={backgroundImage:o?"url('".concat(o,"')"):null,backgroundColor:l};return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:u,analyticsOptions:m},a.createElement("div",{className:(0,x.A)("rounded-circle w-100 h-100","vt0gx",!l&&s),style:v}))},O=n(58704),j=n(26154);function D(e){var t;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:N,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var P=n(55827),I=n(79967);var A=n(47770),F=n(68050),M=n(69111),_=n(9513),V=n(92802),B=n(23481),R=n(10731),U=n(23201),G=n(1269),z=n(82644),H=n(63855),W=n(69883),Z=n(5173),Y=Z.Ry().shape({feedbackInput:Z.Z_().max(5e3,(function(){return B.T.getPhrase("shared.feedbackForm","tooLong")}))});const q="UFm9h",K="na9Vb";function $(e){return $="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},$(e)}function Q(){Q=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==$(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError($(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var J="shared.feedbackForm";function ee(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return X(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)?X(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 a=this,i=void 0,r=void 0,s=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(B.T.getPhrase(J,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})),new(r||(r=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,i||[])).next())}));var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(R.V,{emoji:"🔎"},a.createElement(u.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(H.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(u.x,{namespace:J,phrase:"yes"})),a.createElement(H.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(u.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"👏"},a.createElement(u.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(G.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:B.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(z.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(V.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"😢"},a.createElement(u.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(G.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:B.T.getPhrase(J,"feedbackPlaceholder"),spellCheck:!1}),a.createElement("div",{className:"d-flex justify-content-end w-100"},a.createElement("button",{className:"btn btn-link",onClick:function(){return l("prompt")}},a.createElement(u.x,{namespace:J,phrase:"back"})),a.createElement(U.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(R.V,{emoji:"🙌"},a.createElement(u.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(F.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:d.h2.Small});return a.createElement(M.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(S.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(75903),ie=n(66869),re={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:re}))}))))}var le=n(72861),ce=n(43741),se=n(55171),ue=n(78479),de=n(42308),me=n(87114);function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ve(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function fe(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:d.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===j.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,d.__.Covers,e.metadata.imageId,d.h2.Medium)},totalVideos:ve(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===j.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:d.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return pe(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,u;return t.id===j.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===j.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:_.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===de.z.Classifications&&e.templateId===ue.f.CoverSlidingPillListSmall&&(null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):null}(),getSubtitle:o?fe:void 0,description:e.description,hideButtons:e.showHighlight,analyticsData:e.analyticsData,childComponentProps:{highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,shouldHighlight:function(e){return e.id===j.OL.ClassificationDirectory}}})}var he=n(65163),ye=n(98269),be=n(1048),we=n(11607),Ee=n(17808),ke=n(1287),Le=n(2102),xe=n(83523),Se=n(29309),Te="shared.subjectWidgetItem",Ce=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Se.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(Se.Z.widgetItem," ").concat(Se.Z.draggingItem),style:be.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Se.Z.widgetItem),style:be.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Se.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(xe.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?B.T.getPhrase(Te,e.isVisible?"hideFromDashboard":"showOnDashboard"):B.T.getPhrase(Te,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Ne=n(91028),Oe=n(16714),je=n(75896),De=n(49542);function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Ie(){Ie=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==Pe(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Pe(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Me="shared.editableCoverFixedPillListSmall";function _e(e){var t,n,i,r=Ae(a.useState(!1),2),o=r[0],s=r[1],d=Ae(a.useState(!1),2),m=d[0],p=d[1],v=De.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,f=a.useMemo((function(){return v.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[v]),g=a.useMemo((function(){var e;return null!==(e=null==v?void 0:v.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ae(a.useState(g),2),y=h[0],b=h[1],w=Ae(a.useState(g),2),E=w[0],k=w[1],L=a.useMemo((function(){return o?v.filter((function(e){return!!E[e.id]})).sort((function(e,t){return E[e.id].index-E[t.id].index})):v.filter((function(e){var t;return!!y[e.id]&&!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return y[e.id].index-y[t.id].index}))}),[v,E,y,o]),x=(0,W.Z)();a.useEffect((function(){s(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var S=a.useMemo((function(){return!(o||!L.length)&&Object.values(E).some((function(e){return e.hidden}))}),[o,E]);function T(e){return E[e.id]?E[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function C(e){var t;return!(null===(t=E[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},E),n=C(e);t[e.id]={id:e.id,hidden:n,index:T(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),k(t)}var O=a.useMemo((function(){return!be.t.isEqual(g,E)}),[g,E]),j={id:e.presentation.id,name:B.T.getPhrase(Me,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},D=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:B.T.getPhrase(Me,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],P=!o&&D.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),I=e.hasLocalPermissions(Oe.E.ManageDiscoverPreferences),A={location:c.LZ.EditableSubjectPreferencesWidget};return L.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},o?B.T.getPhrase(Me,"updating"):e.name),!o&&I&&a.createElement(we.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},B.T.getPhrase(Me,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(u.x,{namespace:Me,phrase:"editingDescription"}))),o&&I&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(ye.Z,{variant:"link",className:"me-2",onClick:function(){k(y),s(!1)}},a.createElement(u.x,{namespace:Me,phrase:"cancel"})),a.createElement(Le.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=Ie().mark((function t(){var n;return Ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=f?v.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(E)).then((function(){b(E),p(!1),s(!1)})).catch((function(){p(!1),x.error(B.T.getPhrase(Me,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(u.x,{namespace:Me,phrase:"update"})))),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},S&&a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Ne.V,{data:j,getChildAppLink:function(){var t,n;return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.allTopics)||void 0===n?void 0:n.call(t,e.presentation.id)},analyticsData:e.analyticsData,analyticsOptions:A,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Ee.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(Ce,{data:t,onToggleVisibility:N,isVisible:C(t),isDragging:!0,canToggle:!C(t)||Object.values(E).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=T({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},E);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=je.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}}})(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!C(e)}})),k(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,i;return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(ke.W,{id:t.id,childComponent:Ce,childProps:{data:t,onToggleVisibility:N,isVisible:C(t),isDragging:!1,canToggle:!C(t)||Object.values(E).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Ne.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:A,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),P&&D.map((function(t){return a.createElement(M.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(Ne.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},A),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var Ve=n(11518),Be=n(43933),Re=n(39880);const Ue="k2Xse";function Ge(e){return a.createElement("div",{className:"".concat(Ue," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(S.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(Be.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function ze(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ue," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Re.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Ge,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(Ge,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:d.h2.Small})}(e)},getHardCodedEvent:function(e){return se.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function He(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)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){if(e){if("string"==typeof e)return 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 Ye=B.T.encloseNamespace("widgets.eventIconSlidingList");function qe(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=He(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(He(t.events),[e.event])}))}else f.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ye("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ye("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ye("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ye("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=We(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(h=b.n()).done;){var w=h.value,E={label:w.label,body:w.body,month:w.monthLabel,appLinkMonth:o.O.format(w.startDate,"MMMM"),appLinkYear:o.O.format(w.startDate,"YYYY"),type:"date-widget-item"};y.push(E),w.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),r=e.contentType===j.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Ve.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:ze,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var Ke=n(39202),$e=n(16742),Qe=n(37963);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 Je=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Qe.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===j.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];a.useEffect((function(){e.onHover(d)}),[d]);var m="eo8oY";return o.type===j.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:u,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement($e.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:d,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const et="eSMIx",tt="layDP";function nt(e){var t,n,i=De.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Medium):"";return a.createElement("div",null,a.createElement(S.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(et," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":tt),analyticsData:{url:Ke.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{id:e.id,type:j.l9.Row,contents:O.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var at=n(81993);function it(e){return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"".concat("TzZuL"," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(at.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var rt=n(72639);function ot(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===rt.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:it,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ct(e){return a.createElement("div",{className:"curated-widget-header"},a.createElement("h2",{className:"curated-widget-heading"},e.name),!!e.description&&a.createElement("p",{className:"description curated-widget-description"},e.description))}const st="iCyo4",ut="cgv_6";function dt(e){var t,n,i,r,o,l,s=(0,I.k)(),u={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(S.F,{appLink:function(){var t,n,a=je.m.first(e.content);return null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,a)}(),analyticsData:e.analyticsData,analyticsOptions:u},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(st),style:{backgroundImage:"url('".concat((l=je.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:d.__.Banners},{size:d.h2.Large})),"')")}},e.name&&a.createElement("div",{className:ut},a.createElement("p",{className:(o="text-white clamp-2",s.xs||s.sm?o+=" h4":s.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function mt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(st)},a.createElement("div",{className:"".concat(ut)}))}function pt(e){return pt="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},pt(e)}function vt(e,t,n){return(t=function(e){var t=function(e){if("object"!=pt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft,gt,ht;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(ft||(ft={})),function(e){e.Dark="dark",e.White="white"}(gt||(gt={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(ht||(ht={})),ft.H1,ft.H2,ft.H3,ft.H4,ft.H5,ft.H6,gt.Dark,gt.White,ht.NewWindow;var yt=vt(vt(vt(vt({},ht.NewWindow,v.vn.NewWindow),ht.TopicDirectory,v.vn.Grid),ht.TopicNewReleases,v.vn.Sparkle),ht.CuratedTopic,v.vn.Rectangles),bt=vt(vt(vt(vt(vt(vt(vt(vt({},ft.H1,"h1"),ft.H2,"h2"),ft.H3,"h3"),ft.H4,"h4"),ft.H5,"h5"),ft.H6,"h6"),gt.Dark,"text-dark"),gt.White,"text-white");const wt="b5ljD",Et="dj_1H",kt="UBcVE",Lt="fGBlR",xt="lkPfM";function St(e){var t,n,i,r=bt[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||ft.H6],o=bt[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||gt.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Et," ").concat(kt," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(xt," ").concat(e.widgetTypeId===de.z.Blurb?kt:""," 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(H.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,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(H.h,{svgName:yt[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function Ct(e){return a.createElement(S.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(Tt,{cta:e.cta}))))}function Nt(e){var t,n,i,r=je.m.first(e.content),o={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(Ct,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:d.__.Banners},{size:d.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function Ot(e){var t=e.hasPermissions(Oe.C.ManageSubjectPreferences)||e.hasLocalPermissions(Oe.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget};return a.createElement(S.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(Et," ").concat(Lt),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,d.__.Banners,e.metadata.imageId,d.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(xt," ").concat(Lt," 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(je.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function jt(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(St,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(Ot,Object.assign({},e,{content:e.content}));default:return a.createElement(Nt,Object.assign({},e,{content:e.content}))}}function Dt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(wt)},a.createElement("div",{className:"".concat(xt)}))}function Pt(e){var t,n,i=je.m.first(e.content),r=(0,I.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(Ct,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function It(e){var t,n,i,r,o,l,s,u=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in u&&p.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:d.h2.Medium}),v="metadata"in u&&(null===(i=u.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(Ct,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,u),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:B.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(jt,Object.assign({},e))}var At=n(43306),Ft=n(2948),Mt=n(46477),_t=n(25925),Vt=n(21750),Bt=n(1666),Rt=(n(99940),n(97395)),Ut=n(1651),Gt=n(56050);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 Ht(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,Wt(a.key),a)}}function Wt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}var Zt,Yt,qt=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 Ut.Ry.throw(new Gt.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Ht(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Kt(e){return Kt="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},Kt(e)}function $t(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,Qt(a.key),a)}}function Qt(e){var t=function(e){if("object"!=Kt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kt(t)?t:t+""}function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(e)}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},en(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(Zt||(Zt={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Yt||(Yt={}));var tn=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yt.OwnedByMe;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Jt(t),function(e,t){if(t&&("object"==Kt(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,Xt()?Reflect.construct(t,n||[],Jt(e).constructor):t.apply(e,n))}(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&&en(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&$t(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(qt),nn=n(62803),an=(n(5960),n(4594)),rn=(n(78417),n(40370)),on=n(61699),ln=n(31949),cn=n(22902),sn=n(25964),un=n(75795);function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var mn={HIGH:.75,MODERATE:.5};function pn(e){return pn="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},pn(e)}function vn(e,t,n){return(t=function(e){var t=function(e){if("object"!=pn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fn;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(fn||(fn={}));var gn,hn=vn(vn(vn({},fn.ExtraSmall,{size:2}),fn.Small,{size:2}),fn.Large,{size:5.8});function yn(e){var t=hn[e].size,n=e===fn.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mn;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function En(e,t){var n="d-inline-block ".concat("p8Vgz");return e===fn.Large&&(n+=" ".concat("N8KCI")),e===fn.ExtraSmall&&(n+=" ".concat("RPqZ2")),kn(t)&&(n+=" ".concat("DKrcq")),n}function kn(e){return"number"!=typeof e}function Ln(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:yn(e.size),className:"asGGE"}),!kn(e.percentage)&&a.createElement("circle",{ref:t,r:yn(e.size),className:bn(e.percentage,e.scoreThresholds)}))}function xn(e){var t,n,i=function(e){if(!kn(e))return+e.toFixed(2)}(e.percentage),r=e.size||(e.layout===gn.LabelInside?fn.Large:fn.Small),o=e.customLabel||(kn(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===gn.LabelOnly?a.createElement("span",{className:wn(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===gn.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:En(r,i)},a.createElement(Ln,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===gn.LabelInside&&a.createElement("span",{className:"tpmLR"},o)))}!function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(gn||(gn={})),xn.defaultProps={layout:gn.CircleOnly};var Sn=n(64818);var Tn="widgets.onboardingSteps",Cn=B.T.encloseNamespace(Tn);function Nn(e){var t,n,i,o,l,d,m,p,f=function(e){var t,n,i,o,l,c,s,u,d=(s=(0,Ft.D)("has:playlist",null),u=2,function(e){if(Array.isArray(e))return e}(s)||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}}(s,u)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(s,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1],v=r.a.useBasicFetch(ln.N.currentUser()),f=r.a.useBasicFetch((null===(t=v.data)||void 0===t?void 0:t.isAuthenticated)&&ln.N.user(v.data.id)),g=r.a.useBasicFetch((null===(n=v.data)||void 0===n?void 0:n.isAuthenticated)&&Bt.h.customer(v.data.customerId)),h=r.a.useBasicFetch(Vt.x.availablePresentations(_t.R.Subject)),y=r.a.useBasicFetch(Vt.x.presentation(_t.R.Subject)),b=r.a.useBasicFetch(Vt.x.availablePresentations(_t.R.Curriculum)),w=r.a.useBasicFetch((i=new tn,o=i.sort,l=i.type,c={sort:o,query:"{limit:100}".concat(nn.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},i.cursor&&(c.cursor=i.cursor),{url:Rt._.urlBuilder("/api/domain/v2/me/playlists/".concat(l),c),key:i.toString()})),E=r.a.useBasicFetch(on.o.mySubjectPreferences()),k=(0,cn.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;w.hasCompleted&&m!==!!(null===(t=null===(e=w.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&p(!!(null===(a=null===(n=w.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[w.hasCompleted]);var L=v.hasCompleted&&f.hasCompleted&&g.hasCompleted&&h.hasCompleted&&b.hasCompleted&&y.hasCompleted&&w.hasCompleted&&E.hasCompleted&&null!==m,x=(0,sn.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=f.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||y.data;return L?Mt.m.getOnboardingPathway({jobTitle:r,userSettings:x.data,presentations:h.data,curriculums:b.data,preferredSubjects:E.data,preferredPresentation:o,appLink:un.O.getCurrentRoute().appLink,appLinks:e,masterUser:f.data,customer:g.data,hasPlaylist:m,hasPermissions:k,currentUser:v.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:L}}(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),g=f.getPathway,h=f.hasLoadedPathway,y=h&&g(),b=Sn.l.isKDM(e.jobTitle);if(function(){var t,n;return!(e.isPreviewing||h&&!(null===(t=e.settings)||void 0===t?void 0:t.hasCompletedOnboardingV2)&&(null===(n=e.settings)||void 0===n?void 0:n.hasOnboardingV2)&&e.hasPermissions(Oe.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var w=function(){if(e.isPreviewing)return{};var t=At.H[y.currentScreen],n=y.screens[y.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:Mt.m.getProgress(y)},Mt.m.getOnboardingScreenStates(y))}(),E=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Mt.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=E.overallPercentage,L=E.totalScreens,x=E.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(xn,{percentage:Math.round(k)/100,layout:gn.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=At.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=At.H[y.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=At.H[e];return t===n?"".concat(Cn("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Cn("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Cn("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":y.currentScreen,x,L,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(d=e.imageUrls)||void 0===d?void 0:d.onboardingTeacherBackground,"')")}},a.createElement(S.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.onboardingStep)||void 0===p?void 0:p.call(m,null==y?void 0:y.currentScreen),className:"btn btn-dark btn-lg ".concat("CHWcH"),analyticsData:w,analyticsOptions:{actionType:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(u.x,{namespace:Tn,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 jn=n(31015),Dn=n(68626),Pn=n(80143);var In=a.memo((function(e){var t,n=e.data,r=e.getSubTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=e.presentationAudiences,u=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,Pn.n)(u,s),m=(0,I.k)(),p="JSM4l";return o.type===j.l9.LargeRow&&(p="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(p)},a.createElement($e.u,{type:e.preventPopout||m.xs?"static":"popout",textPosition:Dn.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:rn.M.isVideo(n)&&(null==r?void 0:r(n)),imageOptions:{size:l},preload:c,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,showNewVideoIndicator:e.showNewVideoIndicator,onClickRemove:i.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip}))}));function An(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=jn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:g,childComponent:In,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:rn.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):""},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function Fn(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 Mn=B.T.encloseNamespace("shared.subjectStatsBadge");function _n(e){return a.createElement("div",{className:function(){var t="fw-semibold d-inline-block rounded-pill px-2 ".concat("NWZxu");switch(e.badgeType){case"coming-soon":return t+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return t+" ".concat("KLRzE");case"new-videos":return t+" ".concat("xozwy");default:return""}}()},"coming-soon"===e.badgeType&&a.createElement(s.x,{svgName:v.vn.Timer,className:"svg-container ".concat("G9W_I"),size:s.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return Mn("comingSoon");case"new-topic":return Mn("new");case"new-videos":return Mn("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function Vn(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==de.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=me.i.getCounts(e.classification).childDashboardNewVideoCount;return t?a.createElement("div",{className:"ms-2"},a.createElement(_n,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Bn(e){var t,n,i,r,o,l,c,s,u,d,m,p,v,f=jn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.Row,contents:O.z.Videos,collection:g,childComponent:In,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:rn.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(u=e.settings)||void 0===u?void 0:u.hasTopicDirectories,onClickRemoveItem:De.d.showRemoveButton(e.widgetTypeId)&&function(t,n){var a;null===(a=e.onClickRemoveItem)||void 0===a||a.call(e,t,n,e.id,e.widgetTypeId)},removeButtonTooltip:De.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):""},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(d=f.getCollectionAppLink)||void 0===d?void 0:d.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Vn,Object.assign({},e))})}function Rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Un=function(e){var t,n,i=(t=(0,I.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return Rn(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 Rn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat("hMoHO"," partial-loading-background rounded-3")}))}))))},Gn=n(70580);function zn(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(S.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Gn.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Hn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:zn,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},appLink:e.seeMoreLink,showSeeMoreLink:!!e.seeMoreLink,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,headingBadgeComponent:e.badgeComponent})}const Wn="fgIje",Zn="CJwKL";var Yn=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?Wn:Zn," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function qn(e){for(var t,n,i=(t=e.type,(n=(0,I.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Yn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(P.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var Kn=n(85473),$n=n(85177);function Qn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(Wn):t+=" ".concat(Zn),t)},a.createElement(Kn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:d.__.TallPosters,preload:i,imageOptions:{size:d.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement($n.oy,{type:$n.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function Xn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:Qn,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData})}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ea="explore-all-topics";function ta(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?ea:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,d.__.TallPosters,e.metadata.imageId,d.h2.Medium):""}}}(e),i=De.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return Jn(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 Jn(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)?Jn(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:Qn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===ea?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function na(e){var t;return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:zn,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var aa=n(56097);function ia(e){var t=je.m.first(e.content),n=t.question,i=t.answer;return a.createElement(aa.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const ra="Jg3am";function oa(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(ra," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var la=n(57900),ca=n(96953),sa=n(10038),ua=n(44902);function da(e){return da="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},da(e)}function ma(){ma=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new j(a||[]);return i(o,"_invoke",{value:T(e,n,l)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var m="suspendedStart",p="suspendedYield",v="executing",f="completed",g={};function h(){}function y(){}function b(){}var w={};s(w,o,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(D([])));k&&k!==n&&a.call(k,o)&&(w=k);var L=b.prototype=h.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,r,o,l){var c=d(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==da(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function T(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=C(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=d(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function C(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,C(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=d(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(da(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new S(u(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=D,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:D(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function pa(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 va(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(e,t):void 0}}(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 va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var fa=function(e,t,n,a){return new(n||(n=Promise))((function(i,r){function o(e){try{c(a.next(e))}catch(e){r(e)}}function l(e){try{c(a.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function ga(e){var t,n,i,r=pa((0,Ft.D)("should:expand:".concat(e.id),e.isBot,{storage:la.Z1.LocalStorage}),2),o=r[0],u=r[1],d=pa(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=pa(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),w=(0,ca.F)();function E(){var t;return fa(this,void 0,void 0,ma().mark((function n(){var a;return ma().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),u(!1),n.next=4,ua.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,w.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;fa(this,void 0,void 0,ma().mark((function n(){var a;return ma().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ua.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,w.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,sa.H)((function(){o&&E()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(i=e.faq)||void 0===i?void 0:i.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(we.L,{onClick:function(t){ua.R.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:o?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget}),o?E():function(){var t;fa(this,void 0,void 0,ma().mark((function n(){var a;return ma().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),u(!0),n.next=4,ua.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,w.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(ra)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0})))}function ha(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(ga,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const ya={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function ba(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(ya.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:ya.partialIcon},a.createElement($n.oy,{type:$n.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 wa=n(2284);function Ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var ka=B.T.encloseNamespace("shared.subjectStatsWidgetItem");function La(e){var t,n,i,r,l,u,m=(l=a.useState(!1),u=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(l,u)||function(e,t){if(e){if("string"==typeof e)return Ea(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ea(e,t):void 0}}(l,u)||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],f=m[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===wa.W.ComingSoon,h=me.i.isFollowing(e.classification),y=me.i.getCounts(e.classification),b=y.dashboardNewVideosCount,w=y.childDashboardNewVideoCount,E=y.dashboardResourceCount,k=y.childDashboardResourceCount,L=y.dashboardVideoCount,x=y.childDashboardVideoCount,T=y.childClassificationCount,C=L+x,N=E+k,O=b+w,j=function(){if(e.classification.status===wa.W.ComingSoon||e.hideCounts)return"";var t="";if(C&&(t+="".concat(ka("videos",{smartCount:C})," ")),N&&(t+=" • ".concat(ka("resources",{smartCount:N}))),me.i.isTopLevelTopic(e.classification)&&T>0){if(!t)return ka("topics",{smartCount:T});t="".concat(ka("topics",{smartCount:T})," • ")+t}return t}();return a.createElement(S.F,{className:"d-flex no-decoration rounded ".concat(ya.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:C,resourceCount:N,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:c.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Cover})},!p&&a.createElement($n.oy,{type:$n.mS.Subject,extraClasses:"ms-2 rounded-end-lg ".concat(ya.fallbackImage)}),a.createElement("div",{className:"".concat(ya.cover," me-2 rounded overflow-hidden")},a.createElement(Kn.Z,{data:e.classification.cover,imageOptions:{size:d.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return f(!0)}},e.canFollowTopics&&a.createElement(we.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(ya.bellContainer," ").concat(h?ya.followed:"","\n ")},a.createElement(s.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(ya.bell)}),a.createElement(s.x,{svgName:v.vn.Bell,className:"svg-container ".concat(ya.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!j&&a.createElement("p",{className:"mb-0 ".concat(ya.subText)},j),a.createElement(_n,{badgeType:function(){if(e.classification.status===wa.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&o.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function xa(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(F.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(M.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(La,{classification:t,analyticsData:e.analyticsData,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1,hideCounts:e.isTertiaryCustomerWithoutExchange}))}))))}function Sa(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Ta(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Sa,null),a.createElement(Sa,null))}var Ca=n(43889);function Na(e){var t,n,i,r,o,l,c,s=je.m.first(De.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement(Ca.J,{video:s,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,s),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:rn.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,showNewVideoIndicator:null===(c=e.settings)||void 0===c?void 0:c.hasTopicDirectories}))}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function ja(e){var t,n,i={};return e.data.fallbackBackgroundColor&&(i.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(i.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(i.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("gKcbE"," ").concat(e.isLarge?"Ldth1":"z6ZxE"),style:i},a.createElement("div",{className:"".concat("aOotU"," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat("w5WZ1")},e.data.preTitle&&e.data.preTitle.length&&a.createElement("p",{className:"".concat("ReAEa"," mb-1 text-white"),title:e.data.preTitle},e.data.preTitle),a.createElement("p",{className:"".concat("bSXFz"," h3 text-shadow ").concat(e.isLarge||(null===(t=e.data)||void 0===t?void 0:t.preTitle)?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("XjSFw")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"c28_J"},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},(null===(n=e.data)||void 0===n?void 0:n.buttonText)||B.T.getPhrase("shared.thumbnailWidgetItem","buttonLabel")))),!e.data.thumbnailUrl&&!!e.data.coverUrl&&a.createElement("div",{className:"".concat("liG0R"),style:{backgroundImage:"url('".concat(e.data.coverUrl,"')")}}))}var Da=a.memo((function(e){return e.appLink?a.createElement(S.F,{className:"YtffT",appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(ja,Object.assign({},e))):a.createElement(ja,Object.assign({},e))})),Pa=B.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function Ia(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(M.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Da,Object.assign({},function(e){var t,n,a,i,r,o,l,s,u,m={data:{name:e.item.name,description:e.item.description}},v=(null===(t=e.item)||void 0===t?void 0:t.status)===wa.W.ComingSoon,f=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!v}),g=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return Object.assign(Object.assign({},m),{data:Object.assign(Object.assign({},m.data),{backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium}),buttonText:Pa("exploreTopic")}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),isLarge:!0,analyticsData:f,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const Aa="HwejH";var Fa=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"}}))},Ma=n(39802),_a=n(99131);function Va(e){var t,n,i,r,o,l,s,u,m,p=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),v=rn.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),f=a.useRef(null),g={actionType:c.Vw.Click,entity:rn.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},h=(0,Pn.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:f},a.createElement($e.u,{analyticsData:e.analyticsData,analyticsOptions:g,video:e.video,appLink:p,imageOptions:{size:d.h2.Medium},textPosition:Dn.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:h,hideRating:!!h,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(Ma.h,{video:e.video,appLink:p,subTextAppLink:v,yearGroups:e.yearGroups,subTextType:e.subTextType,showNewVideoIndicator:null===(l=e.settings)||void 0===l?void 0:l.hasTopicDirectories}),rn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(_a.u,{getClassroomGuideAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.classroomGuide,getResourceGuidanceAppLink:null===(u=e.appLinks)||void 0===u?void 0:u.resourceGuidance,getInteractiveGuidanceAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function Ba(e){var t=De.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(Va,Object.assign({key:t.id,video:t},e))}))))}function Ra(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 Ua=n(45778);function Ga(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([de.z.SearchRelevantTopics,de.z.SearchCompanies].includes(e.widgetTypeId)||e.widgetTypeId!==de.z.TrendingClassifications&&e.widgetTypeId!==de.z.LatestReleasedClassifications?e.content:e.content.length<6?e.content.slice(0,3):e.content).map((function(t,n){var i="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,r=function(e){var t,n,a,i,r,o,l,s,u,m,v,f,g,h={data:{name:e.item.name,description:e.item.description}};if(Ua.G.isType(e.item,an.E.Subject)){var y=(null===(t=e.item)||void 0===t?void 0:t.status)===wa.W.ComingSoon,b=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(i=e.item)||void 0===i?void 0:i.presentationId,comingSoon:!!y}),w=Object.assign(Object.assign({location:c.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail}),E=e.widgetTypeId===de.z.SearchRelevantTopics&&function(e,t){if(e&&t){var n=t.find((function(t){return t.id&&t.id===e.presentationId}));if(n)return n.name}}(e.item,e.availablePresentations);return Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{preTitle:E,backgroundColor:null===(r=e.item.metadata)||void 0===r?void 0:r.backgroundColor,coverUrl:p.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:d.h2.Small}),thumbnailUrl:p.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:d.h2.Medium})}),appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,e.item),analyticsData:b,analyticsOptions:w})}return Ua.G.isType(e.item,an.E.Company)?Object.assign(Object.assign({},h),{data:Object.assign(Object.assign({},h.data),{coverUrl:p.j.createUrl(null===(m=e.item.logo)||void 0===m?void 0:m.url,{size:d.h2.Small}),backgroundColor:null===(v=e.item.metadata)||void 0===v?void 0:v.colour}),appLink:null===(g=null===(f=e.appLinks)||void 0===f?void 0:f.company)||void 0===g?void 0:g.call(f,e.item)}):h}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:i,availablePresentations:e.availablePresentations});return a.createElement(M.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Da,Object.assign({},r)))}))))}function za(e){var t,n,i,r,o,l,s=je.m.first(e.content),u=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:d.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};u&&(v.backgroundImage="url('".concat(u,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return u&&m?a.createElement(a.Fragment,null,a.createElement(S.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||B.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(dt,Object.assign({},e))}var Ha=n(17034),Wa=n(35082);function Za(e){var t,n,i,r,o,l,s,u,m,p,v,f,g,h=je.m.first(De.d.getVideoContent(e.content)),y=a.useRef(),b=(0,Pn.n)(null===(t=h.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),w=rn.M.hasSeries(h)||De.d.isCompanyWidget(e.widgetTypeId),E={actionType:c.Vw.Click,entity:rn.M.getAnalyticsEntity(h),location:c.LZ.ThumbnailHeroMediaWidget},k=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,L=rn.M.getCanBeConsumed(h).canNavigate;return h?a.createElement("div",null,a.createElement(ie.B,{name:e.name,description:e.description}),a.createElement("div",{ref:y},a.createElement($e.u,{video:h,imageOptions:{size:d.h2.Large},type:"static",textPosition:Dn.z.Independent,analyticsOptions:E,audience:b,hideRating:!!b,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,h,{}),subTextAppLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.subText)||void 0===l?void 0:l.call(o,h),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,rn.M.isVideo(h)&&a.createElement(Ha.$,{type:De.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:h,appLink:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===u?void 0:u.call(s,h),analyticsOptions:E,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:w?"":"mt-2"},a.createElement(S.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,h,{}),analyticsData:{id:h.id,name:h.name},analyticsOptions:Object.assign(Object.assign({},E),{descriptor:c._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement(Wa.O,{video:h,yearGroups:e.yearGroups,showNewVideoIndicator:k,titleSize:"h4",className:"mb-0"})))),rn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(_a.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:h,analyticsData:e.analyticsData,analyticsOptions:E,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Ya(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function qa(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Je,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var Ka=n(74237),$a=n(84342);var Qa=a.memo((function(e){var t,n,i,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,o=(0,Pn.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement($e.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:rn.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:Dn.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function Xa(e){return rn.M.isVideoType(e.data)?a.createElement(Qa,Object.assign({},e)):a.createElement($a.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Ka.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Ja(e){var t,n,i,r=e.hasLocalPermissions(Oe.E.ViewVideoResourceItems);return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:Xa,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 rn.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var ei=n(71471),ti=B.T.encloseNamespace("search.searchExchangeArchiveDescription");function ni(e){return a.createElement(a.Fragment,null,ti("searchExchangeArchiveDescription")," ",a.createElement(S.F,{appLink:e.appLink,className:"info-link"},ti("searchExchangeArchiveLink")))}var ai=n(70393);function ii(e){var t,n,i,r,o;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(ni,{appLink:e.appLinks.searchSettings()}):e.description),showSeeMoreLink:!!e.seeMoreLink&&[de.z.SearchExchangeArchive,de.z.SearchMySchoolLibraryVideos].includes(e.widgetTypeId),appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(ai.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a,i;return"series"===e.subTextType?null===(n=e.appLinks)||void 0===n?void 0:n.series(null==t?void 0:t.series):"productionCompany"===e.subTextType?null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.company)||void 0===i?void 0:i.call(a,t):void 0},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,canFavourite:e.canFavourite,setFavourite:e.setFavourite,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,companyLogoFallbackUrl:e.companyLogoFallbackUrl,analyticsOptions:{location:c.LZ.ThumbnailVerticalListWidget,entity:c.py.Video},getAnalyticsData:e.getAnalyticsData}))}var ri=n(12754);function oi(e){return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map((function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(S.F,{appLink:e.appLinks.series(t),className:"d-block mb-2",analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,name:t.name}),analyticsOptions:{entity:c.py.Series,actionType:c.Vw.Click,descriptor:c._S.TallPoster,location:c.LZ.PosterFixedListLargeWidget}},a.createElement(Gn.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))}))))}var li=n(64887),ci=n(88711);function si(e){var t,n,i,r,o,l,s=e.folder.thumbnail?Rt._.urlBuilder(e.folder.thumbnail.url,{size:d.h2.Small}):null,u=null===(r=null===(i=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===i?void 0:i[0])||void 0===r?void 0:r.owner,m=e.showOwnerLogo&&(null===(o=null==u?void 0:u.logo)||void 0===o?void 0:o.url)?Rt._.urlBuilder(u.logo.url,{size:d.h2.Small}):null,p=null===(l=e.getFolderActions)||void 0===l?void 0:l.call(e,e.folder),v=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,f=e.analyticsOptions?Object.assign({actionType:c.Vw.Click,entity:c.py.Folder},e.analyticsOptions):void 0;return a.createElement(ci.j,{draggable:e.drag&&{id:e.folder.id,data:e.folder},droppable:e.drop&&{id:e.folder.id,data:e.folder},dropStye:"kvCLS",dragStyle:"md9Na"},a.createElement("div",{className:"position-relative"},a.createElement(S.F,{className:"rounded-3 d-block text-decoration-none",appLink:e.getAppLink(e.folder),title:e.folder.name,analyticsData:v,analyticsOptions:f},a.createElement(Kn.Z,{data:s,imageType:d.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement($n.oy,{name:e.folder.name,type:$n.mS.Folder,extraClasses:"rounded-top-lg"})),a.createElement("h3",{className:"bg-white border-start border-end border-bottom rounded-bottom-lg font-size-normal fw-semibold mb-0 p-2"},a.createElement("span",{className:"text-truncate d-block"},e.folder.name))),(null==p?void 0:p.length)&&a.createElement(li.e,{actions:p,className:"xM37V",actionsDropdownClassName:"cN3nB",dropdownToggleSvgSize:null}),!!m&&a.createElement("img",{src:m,className:"rounded-circle ".concat("g3JFo"),alt:"".concat(null==u?void 0:u.name," logo"),title:(null==u?void 0:u.name)||""})))}function ui(e){function t(t){var n,a,i;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var r=null===(i=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===i?void 0:i.id;return e.appLinks.folder(t,{libraryId:r})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(r):{};return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(si,{folder:i,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:c.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}function di(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function mi(e){return e.appLink?a.createElement(S.F,{appLink:e.appLink,className:"".concat("OsWjL")},a.createElement(di,Object.assign({},e))):a.createElement(di,Object.assign({},e))}var pi=n(97663);const vi="M4zat";var fi="shared.collectionThumbnail";function gi(e){var t,n,i,r,o=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===an.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return je.m.first(n.data)}}(),l=function(){var t,n,a=0;if(e.collection.videos&&e.collection.videos.count&&(a+=e.collection.videos.count),e.collection.typeId===an.E.Playlist){var i=e.collection;(null===(t=i.interactives)||void 0===t?void 0:t.count)&&(a+=i.interactives.count),(null===(n=i.clips)||void 0===n?void 0:n.count)&&(a+=i.clips.count)}return a}(),d=(null===(t=e.title)||void 0===t?void 0:t.length)||(null===(n=e.subText)||void 0===n?void 0:n.length),m=Object.assign({id:e.collection.id.toString(),name:e.collection.name},e.analyticsData),p=Object.assign({actionType:c.Vw.Click,entity:(r=e.collection,Ua.G.isType(r,an.E.Playlist)?c.py.Playlist:Ua.G.isType(r,an.E.Series)?c.py.Series:void 0)},e.analyticsOptions);return a.createElement("div",null,a.createElement("div",{className:"position-relative ".concat("uD9dz"," z-1")},a.createElement(S.F,{appLink:e.appLink,analyticsData:m,analyticsOptions:p,preventFocus:!0},e.showMask&&a.createElement("div",{className:"".concat("r0Ztg"," position-absolute w-100 h-100 rounded-3 bg-dark bg-gradient z-1 bg-opacity-50 pointer-events-none")},a.createElement("div",{className:"".concat(vi," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(s.x,{svgName:v.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(i=e.hoverText)||void 0===i?void 0:i.length)?a.createElement("span",null,e.hoverText):a.createElement(u.x,{namespace:fi,phrase:"playAll"})))),o&&a.createElement($e.u,{video:o,imageOptions:e.imageOptions,textPosition:Dn.z.Independent,type:"cosmetic",hideMask:!0,hideRating:!0,hideDuration:!0,hideVideoTypeBadge:!0}),!o&&a.createElement("div",{className:"ratio ratio-16x9 bg-light rounded-3"},a.createElement("div",{className:"d-flex justify-content-center align-items-center"},a.createElement(s.x,{svgName:v.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(vi," d-flex align-items-center w-fit bg-dark bg-opacity-75 rounded-pill position-absolute bottom-0 end-0 ps-1 m-2")},a.createElement(s.x,{svgName:v.vn.Series,className:"svg-container text-white me-1"}),a.createElement("p",{className:"d-inline fw-semibold text-white mb-0"},a.createElement(u.x,{namespace:fi,phrase:"videos",options:{count:l,smartCount:l}}))))),d&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(pi.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(mi,{title:e.collection.name,appLink:e.titleAppLink})))}function hi(e){return hi="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},hi(e)}function yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=hi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hi(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bi,wi=B.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function Ei(e){var t=yi(yi({},an.E.Playlist,wi("playlist")),an.E.Series,wi("series")),n=yi(yi({},an.E.Playlist,wi("viewPlaylist")),an.E.Series,wi("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(ie.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(F.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(i,r){var o,l=(o=i,Ua.G.isType(o,an.E.Playlist)?e.appLinks.playlist(o):Ua.G.isType(o,an.E.Series)?e.appLinks.series(o):void 0),s=t[null==i?void 0:i.typeId],u=n[null==i?void 0:i.typeId];return a.createElement(M.Z,{as:"li",key:i.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(gi,{collection:i,appLink:l,analyticsOptions:{location:c.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(r),title:null==i?void 0:i.name,titleAppLink:l,imageOptions:{size:d.h2.Medium},subText:s,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function ki(e){return ki="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},ki(e)}function Li(e,t,n){return(t=function(e){var t=function(e){if("object"!=ki(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ki(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xi=(Li(Li(Li(Li(Li(Li(Li(Li(Li(Li(bi={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return Za},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(Ta,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListLarge,{getComponent:function(){return Hn},partialLoading:Un,icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return Xn},partialLoading:function(){return a.createElement(qn,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case de.z.CuratedClassifications:return ta;case de.z.CuratedSeries:return na;default:return ta}},partialLoading:function(){return a.createElement(qn,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===ri.x.StreamableLearning)return!1;switch(n){case de.z.CuratedClassifications:return[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t);case de.z.CuratedSeries:return[j.ku.MoviesAndTv,j.ku.Company].includes(t);default:return!1}},className:""}),ue.f.ThumbnailFeaturedMedia,{getComponent:function(){return Na},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(F.Z,null,a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(M.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Ta,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(_.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===ri.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return xa},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(ba,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory].includes(t)},className:""}),ue.f.CoverFixedPillListXSmall,{getComponent:function(){return ne},partialLoading:function(){return a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(F.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===ri.x.StreamableLearning?[j.ku.Discover].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.CoverSlidingPillListSmall,{getComponent:function(){return ge},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:_.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===ri.x.StreamableLearning?n!==de.z.Classifications&&[j.ku.Discover,j.ku.Company,j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedTileList,{getComponent:function(){return oe},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Li(Li(Li(Li(Li(Li(Li(Li(Li(Li(bi,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return nt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(et," ").concat(tt," mb-1 ")}),a.createElement(Ve.j7,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0,hideHeading:!0}))},icon:v.vn.WidgetTemplateFeaturedThumbnailSlidingList,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return dt},partialLoading:mt,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Nn},partialLoading:mt,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return jt},partialLoading:Dt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return It},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return Pt},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationVideos].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return za},partialLoading:function(){return a.createElement(mt,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return Ia},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Oa(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 Oa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oa(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(M.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return Ga},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Ra(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 Ra(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)?Ra(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(F.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(M.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return _e},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(F.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(M.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(_.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Li(Li(Li(Li(Li(Li(Li(Li(Li(Li(bi,ue.f.Heading,{getComponent:function(){return ct},partialLoading:function(){return a.createElement("div",{className:"curated-widget-header"},a.createElement("div",{className:"partial-loading-background curated-widget-heading",style:{height:"2.099625rem",width:"16.5rem",maxWidth:"80%"}}," "),a.createElement("div",{className:"partial-loading-background description curated-widget-description",style:{width:"21rem",height:"1.3125rem",maxWidth:"90%"}}," "))},icon:v.vn.WidgetTemplateHeading,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return E},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return ia},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!==ri.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return ha},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(oa,null),a.createElement(oa,null),a.createElement(oa,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return Ba},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Aa," partial-loading-background rounded-3")}),a.createElement(Fa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ta,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Aa," partial-loading-background rounded-3")}),a.createElement(Fa,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ta,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return An},partialLoading:function(e){return a.createElement(Ve.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!==ri.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Bn},partialLoading:function(e){return a.createElement(Ve.j7,{size:"sm",childComponent:Fn,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===ri.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):t===j.ku.Classification?a:[j.ku.MoviesAndTv,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.FilterSlidingPillListSmall,{getComponent:function(){return ot},partialLoading:function(e){var t,n=(0,I.k)();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return lt(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col px-1"},a.createElement("div",{className:"d-inline-block w-100 partial-loading-background rounded-3 pb-5"}))}))))},icon:v.vn.WidgetTemplateFilterSlidingPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return D},partialLoading:function(e){var t=8,n=(0,I.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===ri.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return qe},partialLoading:function(e){var t,n=(t=(0,I.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===ri.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Li(Li(Li(Li(Li(Li(Li(bi,ue.f.ThumbnailVerticalList,{getComponent:function(){return ii},partialLoading:function(){return a.createElement(ei.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===ri.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Ja},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==ri.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return Ei},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return ui},partialLoading:Ve.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.PosterFixedListLarge,{getComponent:function(){return oi},partialLoading:Un,icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return qa},partialLoading:Ve.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return Ya},partialLoading:function(e){return a.createElement(Ve.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Si=n(65294);const Ti={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ci(e,t){if(e){if("string"==typeof e)return Ni(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)?Ni(e,t):void 0}}function Ni(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 Oi(e){var t,n,o,l,c,s,u=a.createRef(),d=(c=a.useState([]),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,s)||Ci(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=d[0],p=d[1],v=null===(t=e.lazyLoad)||void 0===t||t,f=(0,Si.Y)({prevent:!v}),g=f.ref,h=f.inView,y=i.q.isFunction(e.getContentRequest),b=r.a.useBasicFetch(!(!h||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),w=De.d.useGetContent(e.content||(null===(n=b.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=b.data)||void 0===o?void 0:o.preferences,m).content,E=(0,I.k)(),k=function(e,t){return!(De.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,w),L=!De.d.canDisplayOnScreenSize(E,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;y&&!b.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,k||L)}),[b.hasCompleted,k,L,y,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&u.current&&u.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,u.current]);var x=e.appLinks?Object.assign({},e.appLinks):null;(null==x?void 0:x.videoType)&&(x.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var S=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),T=y&&!b.hasCompleted||e.isEditing&&k,C=xi[e.templateId].partialLoading,N=xi[e.templateId].getComponent(e.widgetTypeId),O=xi[e.templateId].className;return T||!k&&!L?a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:u,className:"curated-widget ".concat(O," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Ti.widgetHighlight," py-2 px-3 rounded-3"):""},De.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Ti.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),T?a.createElement("div",{ref:g},a.createElement(C,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(N,Object.assign({},e,{appLinks:x,content:w,preferences:null===(l=b.data)||void 0===l?void 0:l.preferences,analyticsData:S,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return p([].concat(function(e){return function(e){if(Array.isArray(e))return Ni(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ci(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(m),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}})))):a.createElement(a.Fragment,null)}},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,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)},80889:(e,t,n)=>{n.d(t,{_:()=>g});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),u=n(45778);function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var p=new Set([].concat(d(Object.values(c.e.Classifications.Twig.EnglandPrimary)),d(Object.values(c.e.Classifications.Twig.InternationalPrimary)),d(Object.values(c.e.Classifications.Twig.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function f(e){return v(o.t.pick(e,["audienceId"]))}var g={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:i._.urlBuilder("/api/discover/dashboards",o),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(a,":").concat(null==n?void 0:n.join(":")),formatData:function(e){var t;return a?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===a.toString()})):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){return l.d.formatResponseData(e,a)},normalizeOptions:{namespace:f(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall,success:r}},discoverWidgetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(t),n),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(t),n),key:"widget:".concat(t,":").concat(v(n)),formatData:function(t){var n=l.d.formatResponseData(t,r);if(e)return n;if(Array.isArray(n.content)){var a=n.content.filter((function(e){return!u.G.isClassification(e)||!p.has(e.id)}));n.content=a}return n},normalizeOptions:{namespace:f(n)},normalize:a!==s.f.EditableCoverFixedPillListSmall,success:o}},getDashboard:function(e,t,n,a,o,l){var c={target:n,status:t,userType:e};(null==a?void 0:a.length)&&(c["widgets.curriculum"]=a);var s="dashboard:".concat(n,":").concat(e,":").concat(o,":").concat(t.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:s,formatData:function(e){var t;return o?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===o.toString()})):r.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,t,n){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:a.k.PUT,data:{userId:n.id,customerId:n.customerId,metadata:t}}}}},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(92582),r=n(65858),o=null,l={getVideoDownloadUrl:function(e,t){return a._.safeUrlConcat(a._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n,a){var l,c=o;o||(c=o=document.createElement("iframe"),document.body.appendChild(c),c.style.display="none"),c.src=e.url,a||i.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(l=null==e?void 0:e.metadata)||void 0===l?void 0:l.resourceType},t),Object.assign({actionType:r.Vw.Download,entity:r.py.Resource,workflowPhase:r.eu.Complete},n))}}},44902:(e,t,n)=>{n.d(t,{R:()=>v});var a=n(16951),i=n.n(a),r=n(38946);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)}function l(){l=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:{},c=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function m(e,t,n,a){var r=t&&t.prototype instanceof b?t:b,o=Object.create(r.prototype),l=new P(a||[]);return i(o,"_invoke",{value:N(e,n,l)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var v="suspendedStart",f="suspendedYield",g="executing",h="completed",y={};function b(){}function w(){}function E(){}var k={};d(k,c,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(I([])));x&&x!==n&&a.call(x,c)&&(k=x);var S=E.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,l,c){var s=p(e[i],e,r);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==o(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function N(t,n,a){var i=v;return function(r,o){if(i===g)throw Error("Generator is already running");if(i===h){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=O(l,a);if(c){if(c===y)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===v)throw i=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=g;var s=p(t,n,a);if("normal"===s.type){if(i=a.done?h:f,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),y;var r=p(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;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,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[c];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(o(t)+" is not iterable")}return w.prototype=E,i(S,"constructor",{value:E,configurable:!0}),i(E,"constructor",{value:w,configurable:!0}),w.displayName=d(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},T(C.prototype),d(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new C(m(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},T(S),d(S,u,"Generator"),d(S,c,(function(){return this})),d(S,"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=I,P.prototype={constructor:P,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(D),!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,y):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),y},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),D(n),y}},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;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:I(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),y}},t}var c,s=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())}))},u="markdown-link",d=new r.M2,m=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,p=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;d.use({breaks:!0,async:!0,extensions:[{name:"inlineKatex",level:"inline",start:function(e){for(var t,n=e;n;){if(-1===(t=n.indexOf("$")))return;if((0===t||" "===n.charAt(t-1))&&n.substring(t).match(m))return t;n=n.substring(t+1).replace(/^\$+/,"")}},tokenizer:function(e){var t=e.match(m);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}},{name:"blockKatex",level:"block",tokenizer:function(e){var t=e.match(p);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:function(e){return c?c.renderToString(e.text,{displayMode:e.displayMode}):e.text}}],walkTokens:function(e){return s(void 0,void 0,void 0,l().mark((function t(){var a,i;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("inlineKatex"!==e.type&&"blockKatex"!==e.type){t.next=6;break}return t.next=3,Promise.all([n.e(785),n.e(1659)]).then(n.bind(n,61659));case 3:a=t.sent,i=a.katex,c=i;case 6:case"end":return t.stop()}}),t)})))}});var v={isLink:function(e){return e.classList.contains(u)},parse:function(e,t){return s(this,void 0,void 0,l().mark((function n(){var a;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return","");case 2:return n.next=4,d.parse(e,{renderer:v.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",i().sanitize(a));case 6:case"end":return n.stop()}}),n)})))},getRenderer:function(e){var t=new d.Renderer;return t.heading=function(e){var t=e.text,n=e.depth;return"<h".concat(n,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[n],'">').concat(t,"</h").concat(n,">")},t.link=function(t){var n=t.href,a=t.text,i=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(u,'" ').concat(i,">").concat(a,"</a>")},t.list=function(e){var t=e.ordered?"ol":"ul";return"\n <".concat(t,' class="').concat("jGiRj",'">\n ').concat(e.items.map((function(e){return"<li>".concat(e.text,"</li>")})).join(""),"\n </").concat(t,">\n ")},t}}},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}}}}]);