@clickview/streamable-learning 0.29.0 → 0.30.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 (54) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{7256-streamable-learning-b4a2e93279.chunk.css → 8092-streamable-learning-b0541b5505.chunk.css} +1 -1
  3. package/dist/css/{streamable-learning-2fd2cde691.css → streamable-learning-f6bffb5d9f.css} +1 -1
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/{1457-deb73448e4-streamable-learning.chunk.js → 1457-914045bf9e-streamable-learning.chunk.js} +1 -1
  6. package/dist/scripts/3838-968ee087c6-streamable-learning.chunk.js +1 -0
  7. package/dist/scripts/{4772-4944cb8a75-streamable-learning.chunk.js → 4772-b9bfba27b2-streamable-learning.chunk.js} +1 -1
  8. package/dist/scripts/4951-df158eb796-streamable-learning.chunk.js +1 -0
  9. package/dist/scripts/5155-ce14a5bf01-streamable-learning.chunk.js +1 -0
  10. package/dist/scripts/578-d42b4d0f60-streamable-learning.chunk.js +1 -0
  11. package/dist/scripts/{6979-5e3685db89-streamable-learning.chunk.js → 6979-91780e153e-streamable-learning.chunk.js} +1 -1
  12. package/dist/scripts/7347-98a35b1ab5-streamable-learning.chunk.js +1 -0
  13. package/dist/scripts/{7570-0498b6853c-streamable-learning.chunk.js → 7570-dbc6c56c06-streamable-learning.chunk.js} +1 -1
  14. package/dist/scripts/{7619-21ed814e2a-streamable-learning.chunk.js → 7619-3fa1a4077a-streamable-learning.chunk.js} +1 -1
  15. package/dist/scripts/8092-bf8f41ff8c-streamable-learning.chunk.js +2 -0
  16. package/dist/scripts/8496-98ab21a36d-streamable-learning.chunk.js +2 -0
  17. package/dist/scripts/8601-d2cfb43f67-streamable-learning.chunk.js +1 -0
  18. package/dist/scripts/{9758-ecfd85851d-streamable-learning.chunk.js → 9758-988f1f61cf-streamable-learning.chunk.js} +1 -1
  19. package/dist/scripts/{9766-c8c4090ec3-streamable-learning.chunk.js → 9766-3b90e0712f-streamable-learning.chunk.js} +1 -1
  20. package/dist/scripts/{9899-8cb8ead9da-streamable-learning.chunk.js → 9899-ca44997722-streamable-learning.chunk.js} +1 -1
  21. package/dist/scripts/{999-5cdf24f9d9-streamable-learning.chunk.js → 999-13c769d864-streamable-learning.chunk.js} +2 -2
  22. package/dist/scripts/bundle-398c5a6037.min.js +2 -0
  23. package/package.json +1 -1
  24. package/dist/scripts/3838-4c9b93b287-streamable-learning.chunk.js +0 -1
  25. package/dist/scripts/4951-a4d6dcf65e-streamable-learning.chunk.js +0 -1
  26. package/dist/scripts/5678-5cc884e338-streamable-learning.chunk.js +0 -1
  27. package/dist/scripts/7256-eb2d9e0b5b-streamable-learning.chunk.js +0 -2
  28. package/dist/scripts/7347-ee4fb91116-streamable-learning.chunk.js +0 -1
  29. package/dist/scripts/8496-6ded6d1baf-streamable-learning.chunk.js +0 -2
  30. package/dist/scripts/8601-e883027cac-streamable-learning.chunk.js +0 -1
  31. package/dist/scripts/8819-896613e766-streamable-learning.chunk.js +0 -1
  32. package/dist/scripts/bundle-cda12d2e94.min.js +0 -2
  33. /package/dist/scripts/{103-70966a08b7-streamable-learning.chunk.js → 103-650aafeda9-streamable-learning.chunk.js} +0 -0
  34. /package/dist/scripts/{2334-be54069c81-streamable-learning.chunk.js → 2334-bd75128ffc-streamable-learning.chunk.js} +0 -0
  35. /package/dist/scripts/{3322-c217f0abcc-streamable-learning.chunk.js → 3322-36eb03efbf-streamable-learning.chunk.js} +0 -0
  36. /package/dist/scripts/{3896-50ae9a8603-streamable-learning.chunk.js → 3896-12241cfcbe-streamable-learning.chunk.js} +0 -0
  37. /package/dist/scripts/{4254-4714907720-streamable-learning.chunk.js → 4254-412ab66570-streamable-learning.chunk.js} +0 -0
  38. /package/dist/scripts/{4772-4944cb8a75-streamable-learning.chunk.js.LICENSE.txt → 4772-b9bfba27b2-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  39. /package/dist/scripts/{5543-4239cfea02-streamable-learning.chunk.js → 5543-45984403df-streamable-learning.chunk.js} +0 -0
  40. /package/dist/scripts/{5565-13dcf9c530-streamable-learning.chunk.js → 5565-afed233482-streamable-learning.chunk.js} +0 -0
  41. /package/dist/scripts/{6979-5e3685db89-streamable-learning.chunk.js.LICENSE.txt → 6979-91780e153e-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  42. /package/dist/scripts/{7317-a6d5c4d053-streamable-learning.chunk.js → 7317-360af3d281-streamable-learning.chunk.js} +0 -0
  43. /package/dist/scripts/{7256-eb2d9e0b5b-streamable-learning.chunk.js.LICENSE.txt → 7570-dbc6c56c06-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  44. /package/dist/scripts/{7904-dc6587cd09-streamable-learning.chunk.js → 7904-3180eccbe6-streamable-learning.chunk.js} +0 -0
  45. /package/dist/scripts/{8058-d769255230-streamable-learning.chunk.js → 8058-bbcf3c4c6a-streamable-learning.chunk.js} +0 -0
  46. /package/dist/scripts/{7570-0498b6853c-streamable-learning.chunk.js.LICENSE.txt → 8092-bf8f41ff8c-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  47. /package/dist/scripts/{8397-e31e6524cf-streamable-learning.chunk.js → 8397-6a1b807943-streamable-learning.chunk.js} +0 -0
  48. /package/dist/scripts/{8496-6ded6d1baf-streamable-learning.chunk.js.LICENSE.txt → 8496-98ab21a36d-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  49. /package/dist/scripts/{9390-d3947e1ce5-streamable-learning.chunk.js → 9390-6402a297f5-streamable-learning.chunk.js} +0 -0
  50. /package/dist/scripts/{9758-ecfd85851d-streamable-learning.chunk.js.LICENSE.txt → 9758-988f1f61cf-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  51. /package/dist/scripts/{9842-5ef83843d1-streamable-learning.chunk.js → 9842-3535e70145-streamable-learning.chunk.js} +0 -0
  52. /package/dist/scripts/{9899-8cb8ead9da-streamable-learning.chunk.js.LICENSE.txt → 9899-ca44997722-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{999-5cdf24f9d9-streamable-learning.chunk.js.LICENSE.txt → 999-13c769d864-streamable-learning.chunk.js.LICENSE.txt} +0 -0
  54. /package/dist/scripts/{bundle-cda12d2e94.min.js.LICENSE.txt → bundle-398c5a6037.min.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see 999-5cdf24f9d9-streamable-learning.chunk.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[999],{40451:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(28825);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.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(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.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 i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},42923:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},34864:(e,t,n)=>{n.d(t,{$:()=>k});var a=n(32735),r=n(57900),i=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(25104);const f={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function v(e){return v="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},v(e)}function g(){g=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),l=new D(a||[]);return r(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",f="executing",h="completed",y={};function b(){}function E(){}function w(){}var k={};s(k,o,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(A([])));x&&x!==n&&a.call(x,o)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==v(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===h){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=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(r===m)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?h:p,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,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 i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(v(t)+" is not iterable")}return E.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(N.prototype),s(N.prototype,l,(function(){return this})),t.AsyncIterator=N,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new N(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(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=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,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),P(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 r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return 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(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},E="1.2rem",w=500;function k(e){var t=h((0,i.D)("should:expand:".concat(e.id),e.isBot,{storage:r.Z1.LocalStorage}),2),n=t[0],v=t[1],y=h(a.useState(n?"100%":E),2),k=y[0],L=y[1],x=h(a.useState(!n),2),S=x[0],C=x[1],N=h(a.useState(null),2),T=N[0],O=N[1],j=(0,u.F)(),P=a.useRef(null),D=a.useRef(null),A=a.useRef(null);function I(){L(E),v(!1),P.current=window.setTimeout((function(){C(!0)}),w)}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!==T){t.next=8;break}return O(a),t.abrupt("return");case 8:if(T!==a){t.next=10;break}return t.abrupt("return");case 10:T&&n&&I(),O(a);case 12:case"end":return t.stop()}}),t)})))}()}),[e.answer]),a.useEffect((function(){"100%"===k&&A.current&&L(A.current.clientHeight+"px")}),[k]),(0,d.H)((function(){n&&I()}),null,[n]),e.question&&T?a.createElement(c.L,{className:"".concat(f.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?I():((a=document.createElement("p")).innerHTML=T,a.style.visibility="hidden",D.current.appendChild(a),L("".concat(a.clientHeight,"px")),D.current.removeChild(a),v(!0),window.clearTimeout(P.current),C(!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:f.description,style:{height:k}},a.createElement("p",{className:"mb-0 ".concat(S?"clamp-1":""," ").concat(p.R.getContainerClass()),dangerouslySetInnerHTML:{__html:T},ref:A}),a.createElement("div",{ref:D}))):a.createElement(a.Fragment,null)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},11904:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>k});var a=n(32735),r=n(80247),i=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(28825),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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),f={getCustomFormControlClassName:function(e,t,n,a,r,i){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}(i,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}},v=n(35223);function g(e){var t=(0,o.u6)().values,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function w(e){var t,n,i=e.children,s=e.showLoadingSpinner,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i: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(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},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?v.vn.VisibleOn:v.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){f("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=e.formGroupClassname,S=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","formGroupClassname"]),C=(0,o.u6)(),N=C.errors,T=C.touched,O=function(){};if("checkbox"===S.type){var j=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(j.onChange=O),a.createElement(d,Object.assign({},j))}var P=Object.assign(Object.assign({},S),{className:f.getCustomFormControlClassName(N,T,S.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(P.onChange=O),a.createElement(i.Z.Group,{className:"form-group ".concat(x)},!!t&&a.createElement(i.Z.Label,{htmlFor:S.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:v.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!S.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:S.name,limit:S.maxLength}))),a.createElement(w,Object.assign({},P,{"aria-errormessage":"".concat(S.name,"Error")})),!!y&&a.createElement(i.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:S.name},(function(e){return a.createElement(i.Z.Control.Feedback,{id:"".concat(S.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,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(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1809:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),r=n(68050),i=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(r.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(i.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(r.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(i.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(i.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}},39071:(e,t,n)=>{n.d(t,{L:()=>Mi});var a=n(32735),r=n(91967),i=n(20354),o=n(31453),l=n(110),c=n(92582),s=n(65858),u=n(83914),d=n(83345),m=n(54610),p=n(12778),f=n(67453),v=n(35223);const g="TTPKV",h="nF3tK";var y="shared.authorReviewerWidgetTemplate",b="MMMM D, YYYY";function E(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(g," h-100 rounded-2 d-flex flex-column"),n=e.person.externalUrl,r=p.o.getAuthorBlogUrl(e.person.blogSlug);return r||n?a.createElement("a",{href:n||r,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){c.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,externalUrl:n,blogUrl:r},{entity:s.py.Author,location:s.LZ.AuthorReviewerWidget,actionType:s.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function w(e){return e.person?a.createElement(E,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(h," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:f.j.getUrlById(e.imageCdnUrl,m.__.Avatars,e.person.imageId,m.h2.Medium),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(u.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:y,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:y,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:y,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:y,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},l.O.format(e.datePublished,b))," • ",a.createElement(d.x,{namespace:y,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))))):a.createElement(a.Fragment,null)}function k(e){var t=e.content[0],n=t.reviewer,r=t.author,i=t.lastUpdated,o=t.datePublished;return r&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"author",person:r,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i}))):a.createElement(a.Fragment,null)}function L(){return a.createElement("div",{className:"".concat(g," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(h)}),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 x=n(5281),S=n(28825),C=n(7733),N=n(9085);var T=function(e){var t,n,r,i,l=f.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:m.h2.Medium}),c=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,u=(0,N.x)(e.data.name,C.o),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(r=e.data)||void 0===r?void 0:r.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),p=Object.assign(Object.assign({},e.analyticsOptions),{location:s.LZ.CircleLogoSlidingListWidget,actionType:s.Vw.Click,entity:s.py.Company}),v={backgroundImage:l?"url('".concat(l,"')"):null,backgroundColor:c};return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:d,analyticsOptions:p},a.createElement("div",{className:(0,o.A)("rounded-circle w-100 h-100","vt0gx",!c&&u),style:v}))},O=n(58704),j=n(57401);function P(e){var t;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:T,extraChildComponentProps:{},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var D=n(55827),A=n(79967);var I=n(47770),M=n(68050),F=n(69111),V=n(9513),_=n(92802),B=n(23481),R=n(42923),z=n(23201),W=n(11904),H=n(82644),Z=n(74097),U=n(69883),G=n(5173),Y=G.Ry().shape({feedbackInput:G.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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError($(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function 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,i=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=i[0],l=i[1],c=(0,U.Z)();function s(t,n){return a=this,r=void 0,i=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(i||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,r||[])).next())}));var a,r,i,s}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(R.V,{emoji:"🔎"},a.createElement(d.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(Z.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(d.x,{namespace:J,phrase:"yes"})),a.createElement(Z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"👏"},a.createElement(d.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(W.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(d.x,{namespace:J,phrase:"back"})),a.createElement(z.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"😢"},a.createElement(d.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(W.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(d.x,{namespace:J,phrase:"back"})),a.createElement(z.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(d.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(M.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,r,i,o=f.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:m.h2.Small});return a.createElement(F.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(S.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(6714),re=n(62400),ie={actionType:s.Vw.Click,entity:s.py.Playlist,location:s.LZ.PlaylistListItem,descriptor:s._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(F.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:ie}))}))))}var le=n(19653),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 fe(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function ve(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,r,i=function(e,t){var n,a,r,i,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:f.j.createUrl(null===(i=null===(r=e.classification)||void 0===r?void 0:r.cover)||void 0===i?void 0:i.url,{size:m.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:f.j.getUrlById(e.imageCdnUrl,m.__.Covers,e.metadata.imageId,m.h2.Medium)},totalVideos:fe(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:f.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:m.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:i?[i].concat((r=e.content,function(e){if(Array.isArray(e))return pe(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,r,i,l,c,s,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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===i?void 0:i.call(r,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:V.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===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?ve: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(46279),be=B.T.encloseNamespace("search.searchExchangeArchiveDescription");function Ee(e){return a.createElement(a.Fragment,null,be("searchExchangeArchiveDescription")," ",a.createElement(S.F,{appLink:e.appLink,className:"info-link"},be("searchExchangeArchiveLink")))}var we=n(87347);function ke(e){var t,n;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(Ee,{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(we.E4,{videos:e.content,getVideoAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.videoType,hasPermissions:e.hasPermissions,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,getAnalyticsData:e.getAnalyticsData,analyticsOptions:{location:s.LZ.ThumbnailVerticalListWidget,entity:s.py.Video}}))}function Le(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"bg-gray-100 p-3 rounded-3 mb-3"},a.createElement("h2",{className:"h6"},e.name),a.createElement(ye.k,{code:e.metadata.curriculumLeafName,description:e.metadata.curriculumLeafDescription,id:null,locationContext:s.LZ.SearchCurriculumCodeWidget})),a.createElement(ke,{metadata:{hideWidgetHeading:!0,hideWidgetDescription:!0},name:"",description:"",widgetTypeId:de.z.SearchCurriculumCode,hasPermissions:e.hasPermissions,content:e.content,audiences:e.audiences,seeMoreLink:null,appLinks:e.appLinks,commonVideoProps:e.commonVideoProps,badgeComponent:null,settings:e.settings,getAnalyticsData:e.getAnalyticsData}))}var xe=n(95685),Se=n.n(xe),Ce=n(80638),Ne=n(46304),Te=n(11858),Oe=n(35355),je=n(76e3),Pe=n(26664);const De=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};var Ae=n(65169),Ie=n(35308),Me=n(74512);const Fe={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Ve(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],a=Fe[e];return n+parseInt((0,Te.Z)(t,a[0]),10)+parseInt((0,Te.Z)(t,a[1]),10)}const _e={[Oe.Wj]:"collapse",[Oe.Ix]:"collapsing",[Oe.d0]:"collapsing",[Oe.cn]:"collapse show"},Be=a.forwardRef((({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:l,dimension:c="height",in:s=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:m=!1,appear:p=!1,getDimensionValue:f=Ve,...v},g)=>{const h="function"==typeof c?c():c,y=(0,a.useMemo)((()=>De((e=>{e.style[h]="0"}),e)),[h,e]),b=(0,a.useMemo)((()=>De((e=>{const t=`scroll${h[0].toUpperCase()}${h.slice(1)}`;e.style[h]=`${e[t]}px`}),t)),[h,t]),E=(0,a.useMemo)((()=>De((e=>{e.style[h]=null}),n)),[h,n]),w=(0,a.useMemo)((()=>De((e=>{e.style[h]=`${f(h,e)}px`,(0,Ae.Z)(e)}),r)),[r,f,h]),k=(0,a.useMemo)((()=>De((e=>{e.style[h]=null}),i)),[h,i]);return(0,Me.jsx)(Ie.Z,{ref:g,addEndListener:Pe.Z,...v,"aria-expanded":v.role?s:null,onEnter:y,onEntering:b,onEntered:E,onExit:w,onExiting:k,childRef:(0,je.IV)(l),in:s,timeout:u,mountOnEnter:d,unmountOnExit:m,appear:p,children:(e,t)=>a.cloneElement(l,{...t,className:Se()(o,l.props.className,_e[e],"width"===h&&"collapse-horizontal")})})}));function Re(e,t){return Array.isArray(e)?e.includes(t):e===t}const ze=a.createContext({});ze.displayName="AccordionContext";const We=ze,He=a.forwardRef((({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},l)=>{const{activeEventKey:c}=(0,a.useContext)(We);return t=(0,Ne.vE)(t,"accordion-collapse"),(0,Me.jsx)(Be,{ref:l,in:Re(c,i),...o,className:Se()(n,t),children:(0,Me.jsx)(e,{children:a.Children.only(r)})})}));He.displayName="AccordionCollapse";const Ze=He,Ue=a.createContext({eventKey:""});Ue.displayName="AccordionItemContext";const Ge=Ue,Ye=a.forwardRef((({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:l,onExiting:c,onExited:s,...u},d)=>{t=(0,Ne.vE)(t,"accordion-body");const{eventKey:m}=(0,a.useContext)(Ge);return(0,Me.jsx)(Ze,{eventKey:m,onEnter:r,onEntering:i,onEntered:o,onExit:l,onExiting:c,onExited:s,children:(0,Me.jsx)(e,{ref:d,...u,className:Se()(n,t)})})}));Ye.displayName="AccordionBody";const qe=Ye;function Ke(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=(0,a.useContext)(We);return a=>{let o=e===n?null:e;i&&(o=Array.isArray(n)?n.includes(e)?n.filter((t=>t!==e)):[...n,e]:[e]),null==r||r(o,a),null==t||t(a)}}const $e=a.forwardRef((({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=(0,Ne.vE)(t,"accordion-button");const{eventKey:l}=(0,a.useContext)(Ge),c=Ke(l,r),{activeEventKey:s}=(0,a.useContext)(We);return"button"===e&&(i.type="button"),(0,Me.jsx)(e,{ref:o,onClick:c,...i,"aria-expanded":Array.isArray(s)?s.includes(l):l===s,className:Se()(n,t,!Re(s,l)&&"collapsed")})}));$e.displayName="AccordionButton";const Qe=$e,Xe=a.forwardRef((({as:e="h2","aria-controls":t,bsPrefix:n,className:a,children:r,onClick:i,...o},l)=>(n=(0,Ne.vE)(n,"accordion-header"),(0,Me.jsx)(e,{ref:l,...o,className:Se()(a,n),children:(0,Me.jsx)(Qe,{onClick:i,"aria-controls":t,children:r})}))));Xe.displayName="AccordionHeader";const Je=Xe,et=a.forwardRef((({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=(0,Ne.vE)(t,"accordion-item");const l=(0,a.useMemo)((()=>({eventKey:r})),[r]);return(0,Me.jsx)(Ge.Provider,{value:l,children:(0,Me.jsx)(e,{ref:o,...i,className:Se()(n,t)})})}));et.displayName="AccordionItem";const tt=et,nt=a.forwardRef(((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:l,flush:c,alwaysOpen:s,...u}=(0,Ce.Ch)(e,{activeKey:"onSelect"}),d=(0,Ne.vE)(i,"accordion"),m=(0,a.useMemo)((()=>({activeEventKey:r,onSelect:l,alwaysOpen:s})),[r,l,s]);return(0,Me.jsx)(We.Provider,{value:m,children:(0,Me.jsx)(n,{ref:t,...u,className:Se()(o,d,c&&`${d}-flush`)})})}));nt.displayName="Accordion";const at=Object.assign(nt,{Button:Qe,Collapse:Ze,Item:tt,Header:Je,Body:qe});function rt(e){var t=a.useContext(We).activeEventKey,n=Ke(e.name),r=t===e.name;return a.createElement("button",{type:"button",onClick:n,className:"w-100 p-3 ".concat("AlqWW"," ").concat(r?"L8zQ5":"")},a.createElement("div",{className:"d-flex align-items-center justify-content-between"},a.createElement("h3",{className:"mb-0 h5 fw-normal"},e.name),a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(u.x,{svgName:r?v.vn.Minus:v.vn.Plus}))))}var it=n(39323),ot=n(71740),lt=n(70872),ct=n(82302);const st={video:"uLiyf",thumbnail:"Yeh7O"};var ut="shared.curriculumAccordionVideoList";function dt(e){var t=!!e.outcome.name&&!!e.outcome.description;return a.createElement(a.Fragment,null,a.createElement("h4",{className:"h6"},a.createElement(d.x,{namespace:ut,phrase:"alignedVideos"})),a.createElement("ul",{className:"list-unstyled"},e.outcome.videos.map((function(t,n){var r={analyticsData:e.analyticsData,analyticsOptions:{entity:s.py.Video,actionType:s.Vw.Click,location:s.LZ.CurriculumResourcesAccordionWidget}};return a.createElement("li",{key:"".concat(e.outcomeIndex,":").concat(n),className:"".concat(st.video," d-flex")},a.createElement("div",{className:"".concat(st.thumbnail," me-2")},a.createElement(it.u,Object.assign({appLink:e.getVideoAppLink(t,{}),video:t,type:"static",imageOptions:{size:m.h2.Medium},commonVideoProps:e.commonVideoProps,hideDuration:!0},r))),a.createElement("div",{className:"d-flex flex-column justify-content-between"},a.createElement("div",null,a.createElement(ct.$,Object.assign({},r,{video:t,appLink:e.getSeriesAppLink(t.series),type:"series"})),a.createElement(lt.u,Object.assign({},r,{video:t,appLink:e.getVideoAppLink(t,{}),size:"sm",titleClassName:"mb-0",yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:e.commonVideoProps.showNewVideoIndicator,showPadlock:!e.commonVideoProps.hasStudentExperience}))),a.createElement(ot.u,Object.assign({video:t,getVideoAppLink:e.getVideoAppLink,commonVideoProps:e.commonVideoProps,containerClassName:"d-flex justify-content-start align-items-center pt-sm-1 gap-1",responsiveClassName:st.responsiveGuidance},r))))}))),a.createElement(S.F,{appLink:e.getOutcomeAppLink(e.outcome.name),className:"info-link mt-2 d-inline-block"},t?a.createElement(d.x,{namespace:ut,phrase:"viewAllVideosCode",options:{code:e.outcome.name}}):a.createElement(d.x,{namespace:ut,phrase:"viewAllVideosNoCode"})))}function mt(e){return a.createElement(at.Collapse,{eventKey:e.audience.name},a.createElement("div",{className:"".concat("dygFS"," px-3 pb-3")},a.createElement("ul",{className:"bg-white p-3 rounded-3 list-unstyled mb-0"},e.audience.areas.map((function(t,n){return a.createElement("li",{key:n,className:"xr2ol"},a.createElement("h3",{className:"h5 fw-normal mb-3"},t.name),a.createElement("ul",{className:"list-unstyled"},t.outcomes.map((function(t,n){return a.createElement("li",{key:n,className:"r0JiR"},a.createElement("h4",{className:"h6"},a.createElement(d.x,{namespace:"shared.audienceSection",phrase:"outcome"})),a.createElement("div",{className:"pb-2"},a.createElement(ye.k,{id:t.id,code:t.name,description:t.description,getCodeAppLink:e.getSearchAppLink,locationContext:s.LZ.CurriculumResourcesAccordionWidget,uiContainsCodes:!0})),a.createElement(dt,{outcome:t,analyticsData:e.analyticsData,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,getOutcomeAppLink:e.getSearchAppLink,commonVideoProps:e.commonVideoProps,outcomeIndex:n}))}))))})))))}var pt=n(85597);function ft(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}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,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function vt(e,t){if(e){if("string"==typeof e)return gt(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)?gt(e,t):void 0}}function gt(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 ht(e){var t=new Map;function n(e,a){if(e.type!==pt.k.Area)e.type===pt.k.Leaf&&(t.has(a)||t.set(a,{name:a,outcomes:[]}),t.get(a).outcomes.push(e));else{a.length&&(a+=" - "),a+=e.name;var r,i=ft(e.children);try{for(i.s();!(r=i.n()).done;)n(r.value,a)}catch(e){i.e(e)}finally{i.f()}}}var a,r=ft(e.children);try{for(r.s();!(a=r.n()).done;)n(a.value,"")}catch(e){r.e(e)}finally{r.f()}return Array.from(t.values())}function yt(e){var t=a.useMemo((function(){return function(e){var t,n,a=new Map,r=ft(e);try{for(r.s();!(t=r.n()).done;){var i,o=ft(t.value.children);try{for(o.s();!(i=o.n()).done;){var l,c=i.value;a.has(c.name)||a.set(c.name,{name:c.name,areas:[]}),(l=a.get(c.name).areas).push.apply(l,function(e){if(Array.isArray(e))return gt(e)}(n=ht(c))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vt(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.")}())}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return Array.from(a.values())}(e.content)}),[e.content]);return a.createElement("div",null,a.createElement("div",{className:"d-flex align-items-end justify-content-between mb-2"},a.createElement("h2",{className:"h3 mb-0"},e.curriculums.preferredCurriculum.name),e.curriculums.availableCurriculums.length>1&&a.createElement(S.F,{appLink:e.appLinks.editCurriculum()},a.createElement(d.x,{namespace:"shared.curriculumResourcesAccordion",phrase:"changeCurriculum"}))),a.createElement(at,{className:"mb-n3"},t.map((function(t,n){return a.createElement("div",{className:"mb-3",key:n},a.createElement(rt,{name:t.name}),a.createElement(mt,{audience:t,getSearchAppLink:e.appLinks.search,getVideoAppLink:e.appLinks.videoType,getSeriesAppLink:e.appLinks.series,commonVideoProps:e.commonVideoProps,analyticsData:e.analyticsData}))}))))}var bt=function(){return a.createElement("div",{className:"partial-loading-background mb-3 rounded-3",style:{height:"3.5rem"}})},Et=n(98269),wt=n(1048),kt=n(11607),Lt=n(17808),xt=n(1287),St=n(2102),Ct=n(83523),Nt=n(17027),Tt="shared.subjectWidgetItem",Ot=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(Nt.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(Nt.Z.widgetItem," ").concat(Nt.Z.draggingItem),style:wt.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Nt.Z.widgetItem),style:wt.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Nt.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(u.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:r},a.createElement("label",{htmlFor:e.data.id,className:"".concat(i," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(Ct.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?B.T.getPhrase(Tt,e.isVisible?"hideFromDashboard":"showOnDashboard"):B.T.getPhrase(Tt,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),jt=n(91028),Pt=n(16714),Dt=n(75896),At=n(49542);function It(e){return It="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},It(e)}function Mt(){Mt=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==It(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(It(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(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)?Vt(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 Vt(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 _t="shared.editableCoverFixedPillListSmall";function Bt(e){var t,n,r,i=Ft(a.useState(!1),2),o=i[0],l=i[1],u=Ft(a.useState(!1),2),m=u[0],p=u[1],f=At.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,v=a.useMemo((function(){return f.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)}))}),[f]),g=a.useMemo((function(){var e;return null!==(e=null==f?void 0:f.reduce((function(e,t,n){var a,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!v,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,v]),h=Ft(a.useState(g),2),y=h[0],b=h[1],E=Ft(a.useState(g),2),w=E[0],k=E[1],L=a.useMemo((function(){return o?f.filter((function(e){return!!w[e.id]})).sort((function(e,t){return w[e.id].index-w[t.id].index})):f.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}))}),[f,w,y,o]),x=(0,U.Z)();a.useEffect((function(){l(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var S=a.useMemo((function(){return!(o||!L.length)&&Object.values(w).some((function(e){return e.hidden}))}),[o,w]);function C(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function N(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},w),n=N(e);t[e.id]={id:e.id,hidden:n,index:C(e)},c.k.logUserAction({id:e.id,name:e.name},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Hide,descriptor:n?s.DL.On:s.DL.Off}),k(t)}var O=a.useMemo((function(){return!wt.t.isEqual(g,w)}),[g,w]),j={id:e.presentation.id,name:B.T.getPhrase(_t,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},P=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:B.T.getPhrase(_t,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],D=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Pt.E.ManageDiscoverPreferences),I={location:s.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(_t,"updating"):e.name),!o&&A&&a.createElement(kt.L,{className:"hover-text-underline",onClick:function(){return l(!0)}},B.T.getPhrase(_t,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(d.x,{namespace:_t,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(Et.Z,{variant:"link",className:"me-2",onClick:function(){k(y),l(!1)}},a.createElement(d.x,{namespace:_t,phrase:"cancel"})),a.createElement(St.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=Mt().mark((function t(){var n;return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=v?f.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(w)).then((function(){b(w),p(!1),l(!1)})).catch((function(){p(!1),x.error(B.T.getPhrase(_t,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:m,disabled:!O},a.createElement(d.x,{namespace:_t,phrase:"update"})))),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},S&&a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(jt.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:I,multiline:!0,highlightOnHover:null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Lt.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(Ot,{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!0,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));c.k.logUserAction({id:t.id,name:t.name,index:n},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=C({id:t.id}),r=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=L[a];if(i){var o=Object.assign({},w);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=Dt.m.moveItem(e,t,n),r=n<e.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:r}}})(L,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}})),k(o),c.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Complete})}}},vertical:!1},L.map((function(t){var n,r;return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(xt.W,{id:t.id,childComponent:Ot,childProps:{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(jt.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:I,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),D&&P.map((function(t){return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(jt.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({},I),{entity:s.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 Rt=n(11518),zt=n(15543),Wt=n(40451);const Ht="k2Xse";function Zt(e){return a.createElement("div",{className:"".concat(Ht," 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(zt.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 Ut(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ht," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Wt.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:s.py.Url,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Zt,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:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})})):a.createElement(Zt,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 f.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:m.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:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})}))}function Gt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yt(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 Yt(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Kt=B.T.encloseNamespace("widgets.eventIconSlidingList");function $t(e){var t,n,r=a.useMemo((function(){return function(e,t){var n=Gt(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:l.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,r=l.O.format(a,"YYYY-MM-DD"),i=l.O.format(l.O.add(r,1,"day"),"YYYY-MM-DD"),o=l.O.format(l.O.add(l.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=l.O.format(l.O.add(o,6,"days"),"YYYY-MM-DD"),s=l.O.format(l.O.startOf(a,"month"),"YYYY-MM-DD"),u=l.O.format(l.O.endOf(a,"month"),"YYYY-MM-DD"),d=l.O.format(l.O.startOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=l.O.format(l.O.endOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=l.O.format(l.O.startOf(l.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),f=l.O.format(l.O.add(a,1,"year"),"YYYY-MM-DD"),v=new Map;function g(e){if(v.has(e.group)){var t=v.get(e.group);v.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Gt(t.events),[e.event])}))}else v.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:l.O.format(r,"DD"),type:"day"},monthLabel:l.O.format(r,"MMMM"),label:Kt("today")});else if(e.startDate!==i)if(e.startDate>i&&e.startDate<o){var t=l.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:l.O.format(e.startDate,"MMMM"),body:{text:l.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=c?g({group:"nextWeek",startDate:o,endDate:c,event:e,monthLabel:l.O.isSame(o,c,"month")?l.O.format(o,"MMMM"):"".concat(l.O.format(o,"MMM")," - ").concat(l.O.format(c,"MMM")),body:{text:"".concat(l.O.format(o,"DD"),"-").concat(l.O.format(c,"DD")),type:"range"},label:Kt("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("nextMonth")}):e.startDate>=p&&e.startDate<=f&&g({group:"later",startDate:p,endDate:f,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("later")});else g({group:"tomorrow",startDate:i,endDate:null,event:e,body:{text:l.O.format(i,"DD"),type:"day"},monthLabel:l.O.format(e.startDate,"MMMM"),label:Kt("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Yt(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,r=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw r}}}}(v.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:l.O.format(E.startDate,"MMMM"),appLinkYear:l.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(w),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),i=e.contentType===j.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Rt.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.livestream)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:Ut,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var Qt=n(39202),Xt=n(37963);function Jt(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 en=a.memo((function(e){var t,n,r=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=(t=(0,Xt.L)({className:"x7nyG",style:{transform:"scale(".concat((null==i?void 0:i.type)===j.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Jt(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)?Jt(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1];a.useEffect((function(){e.onHover(u)}),[u]);var d="eo8oY";return i.type===j.l9.LargeRow&&(d="lhqxB"),a.createElement("div",{ref:s,className:"px-1 flex-shrink-0 position-relative ".concat(d," ").concat("A7FeL")},a.createElement(it.u,{video:e.data,type:"expandable",appLink:e.getAppLink(r),imageOptions:{size:o},preload:l,hovering:u,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,commonVideoProps:e.commonVideoProps}))}));const tn="eSMIx",nn="layDP";function an(e){var t,n=At.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Medium):"";return a.createElement("div",null,a.createElement(S.F,{appLink:n,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(tn," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":nn),analyticsData:{url:Qt.C$.getHref(n)},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(x.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:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var rn=n(81993);function on(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:s.py.Rating,actionType:s.Vw.Click,location:s.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(rn.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(u.x,{svgName:v.vn.Search,size:u.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var ln=n(72639);function cn(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===ln.p.Level_1?64:128),r=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,r)},collection:r,childComponent:on,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:r.length},prefetched:!0}))}function sn(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 un(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 dn="iCyo4",mn="cgv_6";function pn(e){var t,n,r,i,o,l,c=(0,A.k)(),u={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(S.F,{appLink:function(){var t,n,a=Dt.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(dn),style:{backgroundImage:"url('".concat((l=Dt.m.first(e.content),f.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:m.__.Banners},{size:m.h2.Large})),"')")}},e.name&&a.createElement("div",{className:mn},a.createElement("p",{className:(o="text-white clamp-2",c.xs||c.sm?o+=" h4":c.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text))))}function fn(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dn)},a.createElement("div",{className:"".concat(mn)}))}function vn(e){return vn="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},vn(e)}function gn(e,t,n){return(t=function(e){var t=function(e){if("object"!=vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn,yn,bn;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(hn||(hn={})),function(e){e.Dark="dark",e.White="white"}(yn||(yn={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(bn||(bn={})),hn.H1,hn.H2,hn.H3,hn.H4,hn.H5,hn.H6,yn.Dark,yn.White,bn.NewWindow;var En=gn(gn(gn(gn({},bn.NewWindow,v.vn.NewWindow),bn.TopicDirectory,v.vn.Grid),bn.TopicNewReleases,v.vn.Sparkle),bn.CuratedTopic,v.vn.Rectangles),wn=gn(gn(gn(gn(gn(gn(gn(gn({},hn.H1,"h1"),hn.H2,"h2"),hn.H3,"h3"),hn.H4,"h4"),hn.H5,"h5"),hn.H6,"h6"),yn.Dark,"text-dark"),yn.White,"text-white");const kn="b5ljD",Ln="dj_1H",xn="UBcVE",Sn="fGBlR",Cn="lkPfM";function Nn(e){var t,n,r,i=wn[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||hn.H6],o=wn[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||yn.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Ln," ").concat(xn," d-flex"),style:{backgroundImage:"url('".concat(f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Cn," ").concat(e.widgetTypeId===de.z.Blurb?xn:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.text)&&a.createElement(Z.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function Tn(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var r="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(Z.h,{svgName:En[e.cta.icon],className:r,openInNewTab:!0},e.cta.text):a.createElement("div",{className:r},e.cta.text)}function On(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(Tn,{cta:e.cta}))))}function jn(e){var t,n,r,i=Dt.m.first(e.content),o={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(On,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,i),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(f.j.createBannerUrl(i.banner,{fallbackBaseUrl:"",fallbackCategoryName:i.name,type:m.__.Banners},{size:m.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(r=e.metadata)||void 0===r?void 0:r.cta})}function Pn(e){var t=e.hasPermissions(Pt.C.ManageSubjectPreferences)||e.hasLocalPermissions(Pt.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:s.py.Presentation,actionType:s.Vw.Click,location:s.LZ.HeroBannerSmallWidget};return a.createElement(S.F,{className:"info-link d-inline",appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:l},t.name)}var r=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Ln," ").concat(Sn),style:{backgroundImage:"url('".concat(f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Cn," ").concat(Sn," px-3")},a.createElement("p",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Dt.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Dn(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(Nn,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(Pn,Object.assign({},e,{content:e.content}));default:return a.createElement(jn,Object.assign({},e,{content:e.content}))}}function An(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Cn)}))}function In(e){var t,n,r=Dt.m.first(e.content),i=(0,A.k)(),o={id:r.id,name:r.name,presentationId:r.presentationId},l={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return a.createElement(On,{heading:e.name,appLink:function(){var t,n,a,i,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===i?void 0:i.call(a,r);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,r);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,r)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=r.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:i.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function Mn(e){var t,n,r,i,o,l,c,u=null===(t=e.content)||void 0===t?void 0:t[0],d="thumbnail"in u&&f.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:m.h2.Medium}),p="metadata"in u&&(null===(r=u.metadata)||void 0===r?void 0:r.backgroundColor),v={backgroundColor:p,backgroundSize:"50%"};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return d&&p?a.createElement(On,{heading:e.name,appLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,u),analyticsData:g,analyticsOptions:h,style:v,cta:Object.assign({text:B.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(c=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==c?c:{})}):a.createElement(Dn,Object.assign({},e))}var Fn=n(43306),Vn=n(2948),_n=n(23873),Bn=n(25925),Rn=n(21750),zn=n(1666),Wn=(n(99940),n(97395)),Hn=n(1651),Zn=n(56050);function Un(e){return Un="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},Un(e)}function Gn(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,Yn(a.key),a)}}function Yn(e){var t=function(e){if("object"!=Un(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Un(t)?t:t+""}var qn,Kn,$n=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,r=e.cursor;n&&(this.id=n),a&&(this.sort=a),r&&(this.cursor=r),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 Hn.Ry.throw(new Zn.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Qn(e){return Qn="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},Qn(e)}function Xn(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,Jn(a.key),a)}}function Jn(e){var t=function(e){if("object"!=Qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ea=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ta(e)}function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},na(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(qn||(qn={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Kn||(Kn={}));var aa=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kn.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=ta(t),function(e,t){if(t&&("object"==Qn(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,ea()?Reflect.construct(t,n||[],ta(e).constructor):t.apply(e,n))}(this,t,[{collectionPrefix:"user:playlists",cursor:a,sort:n}])).type=r,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&&na(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&Xn(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}($n),ra=n(62803),ia=(n(5960),n(4594)),oa=(n(78417),n(17447)),la=n(61699),ca=n(31949),sa=n(22902),ua=n(25964),da=n(75795);function ma(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 pa={HIGH:.75,MODERATE:.5};function fa(e){return fa="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},fa(e)}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=fa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ga;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(ga||(ga={}));var ha,ya=va(va(va({},ga.ExtraSmall,{size:2}),ga.Small,{size:2}),ga.Large,{size:5.8});function ba(e){var t=ya[e].size,n=e===ga.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function Ea(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function wa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function ka(e,t){var n="d-inline-block ".concat("p8Vgz");return e===ga.Large&&(n+=" ".concat("N8KCI")),e===ga.ExtraSmall&&(n+=" ".concat("RPqZ2")),La(t)&&(n+=" ".concat("DKrcq")),n}function La(e){return"number"!=typeof e}function xa(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:ba(e.size),className:"asGGE"}),!La(e.percentage)&&a.createElement("circle",{ref:t,r:ba(e.size),className:Ea(e.percentage,e.scoreThresholds)}))}function Sa(e){var t,n,r=function(e){if(!La(e))return+e.toFixed(2)}(e.percentage),i=e.size||(e.layout===ha.LabelInside?ga.Large:ga.Small),o=e.customLabel||(La(n=r)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===ha.LabelOnly?a.createElement("span",{className:wa(r)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===ha.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:ka(i,r)},a.createElement(xa,{percentage:r,size:i,scoreThresholds:e.scoreThresholds}),e.layout===ha.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"}(ha||(ha={})),Sa.defaultProps={layout:ha.CircleOnly};var Ca=n(64818);var Na="widgets.onboardingSteps",Ta=B.T.encloseNamespace(Na);function Oa(e){var t,n,r,o,l,c,m,p,f=function(e){var t,n,r,o,l,c,s,u,d=(s=(0,Vn.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(s,u)||function(e,t){if(e){if("string"==typeof e)return ma(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)?ma(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],f=i.a.useBasicFetch(ca.N.currentUser()),v=i.a.useBasicFetch((null===(t=f.data)||void 0===t?void 0:t.isAuthenticated)&&ca.N.user(f.data.id)),g=i.a.useBasicFetch((null===(n=f.data)||void 0===n?void 0:n.isAuthenticated)&&zn.h.customer(f.data.customerId)),h=i.a.useBasicFetch(Rn.x.availablePresentations(Bn.R.Subject)),y=i.a.useBasicFetch(Rn.x.presentation(Bn.R.Subject)),b=i.a.useBasicFetch(Rn.x.availablePresentations(Bn.R.Curriculum)),E=i.a.useBasicFetch((r=new aa,o=r.sort,l=r.type,c={sort:o,query:"{limit:100}".concat(ra.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},r.cursor&&(c.cursor=r.cursor),{url:Wn._.urlBuilder("/api/domain/v2/me/playlists/".concat(l),c),key:r.toString()})),w=i.a.useBasicFetch(la.o.mySubjectPreferences()),k=(0,sa.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;E.hasCompleted&&m!==!!(null===(t=null===(e=E.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&p(!!(null===(a=null===(n=E.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[E.hasCompleted]);var L=f.hasCompleted&&v.hasCompleted&&g.hasCompleted&&h.hasCompleted&&b.hasCompleted&&y.hasCompleted&&E.hasCompleted&&w.hasCompleted&&null!==m,x=(0,ua.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=v.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),o=r.preferredPresentationOverride||y.data;return L?_n.m.getOnboardingPathway({jobTitle:i,userSettings:x.data,presentations:h.data,curriculums:b.data,preferredSubjects:w.data,preferredPresentation:o,appLink:da.O.getCurrentRoute().appLink,appLinks:e,masterUser:v.data,customer:g.data,hasPlaylist:m,hasPermissions:k,currentUser:f.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:L}}(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),g=f.getPathway,h=f.hasLoadedPathway,y=h&&g(),b=Ca.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(Pt.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var E=function(){if(e.isPreviewing)return{};var t=Fn.H[y.currentScreen],n=y.screens[y.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:_n.m.getProgress(y)},_n.m.getOnboardingScreenStates(y))}(),w=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=_n.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=w.overallPercentage,L=w.totalScreens,x=w.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(Sa,{percentage:Math.round(k)/100,layout:ha.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=Fn.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=Fn.H[y.currentScreen])||void 0===l?void 0:l.getWidgetHeading(b)),a.createElement("div",{className:"dTKo5"},a.createElement(u.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var r=Fn.H[e];return t===n?"".concat(Ta("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Ta("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Ta("descriptionPrefix")," ").concat(null==r?void 0:r.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===(c=e.imageUrls)||void 0===c?void 0:c.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:E,analyticsOptions:{actionType:s.Vw.Click,entity:s.py.User,location:s.LZ.OnboardingStepsWidget,descriptor:s.Ix.FinishPersonalising}},a.createElement(d.x,{namespace:Na,phrase:"completeSetup"}))))}function ja(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 Pa=n(31015),Da=n(68626),Aa=n(80143);var Ia=a.memo((function(e){var t,n=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,Aa.n)(s,c),d=(0,A.k)(),m="JSM4l";return i.type===j.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(it.u,{video:e.data,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,type:e.preventPopout||d.xs?"static":"popout",textPosition:Da.z.Below,appLink:e.getAppLink(n),imageOptions:{size:o},preload:l,audience:u,hideRating:!!u,hideDuration:!1,onClickRemove:r.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip,commonVideoProps:e.commonVideoProps}))}));function Ma(e){var t,n,r,i,o,l,c,s,u,d=Pa.u[e.widgetTypeId],m=At.d.getVideoContent(e.content);return a.createElement(x.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:m,childComponent:Ia,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:At.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:At.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=d.getCollectionAppLink)||void 0===l?void 0:l.call(d,e.appLinks,e.content))&&void 0!==c?c:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function Fa(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 Va=B.T.encloseNamespace("shared.subjectStatsBadge");function _a(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(u.x,{svgName:v.vn.Timer,className:"svg-container ".concat("G9W_I"),size:u.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return Va("comingSoon");case"new-topic":return Va("new");case"new-videos":return Va("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function Ba(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(_a,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Ra(e){var t,n,r,i,o,l,c,s,u,d=Pa.u[e.widgetTypeId],m=At.d.getVideoContent(e.content);return a.createElement(x.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.Row,contents:O.z.Videos,collection:m,childComponent:Ia,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),preventPopout:e.preventPopout,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:At.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:At.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=d.getCollectionAppLink)||void 0===l?void 0:l.call(d,e.appLinks,e.content))&&void 0!==c?c:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Ba,Object.assign({},e))})}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Wa=function(e){var t,n,r=(t=(0,A.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(r),function(e){if(Array.isArray(e))return za(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 za(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}(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")}))}))))},Ha=n(56210);function Za(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map((function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(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:s.py.Series,actionType:s.Vw.Click,descriptor:s._S.TallPoster,location:s.LZ.PosterFixedListLargeWidget}},a.createElement(Ha.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))}))))}function Ua(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Series,descriptor:s._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:r},a.createElement(Ha.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Ga(e){return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:Ua,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 Ya="fgIje",qa="CJwKL";var Ka=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?Ya:qa," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function $a(e){for(var t,n,r=(t=e.type,(n=(0,A.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(Ka,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(D.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var Qa=n(87611),Xa=n(26533);function Ja(e){var t,n=e.data,r=e.preloadImage,i=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Classification,actionType:s.Vw.Click,descriptor:s._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(Ya):t+=" ".concat(qa),t)},a.createElement(Qa.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:m.__.TallPosters,preload:r,imageOptions:{size:m.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(Xa.oy,{type:Xa.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function er(e){return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:Ja,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 tr(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 nr="explore-all-topics";function ar(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?nr:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?f.j.getUrlById(e.imageCdnUrl,m.__.TallPosters,e.metadata.imageId,m.h2.Medium):""}}}(e),r=At.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(x.k,{id:e.id,name:e.name,appLink:r,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return tr(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 tr(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)?tr(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:Ja,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===nr?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function rr(e){var t;return a.createElement("div",null,a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:Ua,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 ir=n(34864);function or(e){var t=Dt.m.first(e.content),n=t.question,r=t.answer;return a.createElement(ir.$,{id:e.id,answer:r,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const lr="Jg3am";function cr(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(lr," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var sr=n(57900),ur=n(96953),dr=n(10038),mr=n(25104);function pr(e){return pr="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},pr(e)}function fr(){fr=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==pr(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(pr(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gr(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)?gr(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 gr(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 hr=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function yr(e){var t,n,r,i=vr((0,Vn.D)("should:expand:".concat(e.id),e.isBot,{storage:sr.Z1.LocalStorage}),2),o=i[0],l=i[1],d=vr(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=vr(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,ur.F)();function w(){var t;return hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),l(!1),n.next=4,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,E.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,dr.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(r=e.faq)||void 0===r?void 0:r.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(kt.L,{onClick:function(t){mr.R.isLink(t.target)||0===window.getSelection().toString().length&&(c.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:s.py.Faq,actionType:s.Vw.Click,descriptor:o?s._S.Collapse:s._S.Expand,location:s.LZ.FaqQuestionAccordionWidget}),o?w():function(){var t;hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),l(!0),n.next=4,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(lr)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(u.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1 ".concat(mr.R.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0,className:mr.R.getContainerClass()})))}function br(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(yr,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const Er={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function wr(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(Er.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:Er.partialIcon},a.createElement(Xa.oy,{type:Xa.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 kr=n(2284);function Lr(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 xr=B.T.encloseNamespace("shared.subjectStatsWidgetItem");function Sr(e){var t,n,r,i,o,c,d=(o=a.useState(!1),c=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(o,c)||function(e,t){if(e){if("string"==typeof e)return Lr(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)?Lr(e,t):void 0}}(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===kr.W.ComingSoon,h=me.i.isFollowing(e.classification),y=me.i.getCounts(e.classification),b=y.dashboardNewVideosCount,E=y.childDashboardNewVideoCount,w=y.dashboardResourceCount,k=y.childDashboardResourceCount,L=y.dashboardVideoCount,x=y.childDashboardVideoCount,C=y.childClassificationCount,N=L+x,T=w+k,O=b+E,j=function(){if(e.classification.status===kr.W.ComingSoon||e.hideCounts)return"";var t="";if(N&&(t+="".concat(xr("videos",{smartCount:N})," ")),T&&(t+=" • ".concat(xr("resources",{smartCount:T}))),me.i.isTopLevelTopic(e.classification)&&C>0){if(!t)return xr("topics",{smartCount:C});t="".concat(xr("topics",{smartCount:C})," • ")+t}return t}();return a.createElement(S.F,{className:"d-flex no-decoration rounded ".concat(Er.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===(r=e.classification)||void 0===r?void 0:r.id,name:null===(i=e.classification)||void 0===i?void 0:i.name,presentationId:e.classification.presentationId,comingSoon:!!g,videoCount:N,resourceCount:T,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:s.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Cover})},!p&&a.createElement(Xa.oy,{type:Xa.mS.Subject,extraClasses:"ms-2 rounded-end-lg ".concat(Er.fallbackImage)}),a.createElement("div",{className:"".concat(Er.cover," me-2 rounded overflow-hidden")},a.createElement(Qa.Z,{data:e.classification.cover,imageOptions:{size:m.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return f(!0)}},e.canFollowTopics&&a.createElement(kt.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,s.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(Er.bellContainer," ").concat(h?Er.followed:"","\n ")},a.createElement(u.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(Er.bell)}),a.createElement(u.x,{svgName:v.vn.Bell,className:"svg-container ".concat(Er.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(Er.subText)},j),a.createElement(_a,{badgeType:function(){if(e.classification.status===kr.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&l.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function Cr(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(F.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(Sr,{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}))}))))}var Nr=n(63112);function Tr(){return a.createElement("div",{className:"me-2"},a.createElement(Nr.o,null))}var Or=n(30699);function jr(e){return function(e){if(Array.isArray(e))return Pr(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 Pr(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)?Pr(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 Pr(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 Dr(e){var t=e.getSelectedItems(e.widgetTypeId),n=e.content.filter((function(e){return!t.find((function(t){return t.id===e.id}))})),r=[].concat(jr(t),jr(n));function i(t){Qt.C$.trigger(e.appLinks.tag(t))}return a.createElement(he.eb,{collection:r,childComponent:function(e){return a.createElement(Or.a,Object.assign({},e,{selectedItems:t,onClick:i}))},partialLoadingComponent:Tr,partialLoadingOptions:{numItems:4}})}function Ar(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Ir(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Ar,null),a.createElement(Ar,null))}var Mr=n(84431);function Fr(e){var t,n,r=Dt.m.first(At.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(Mr.J,{video:r,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,commonVideoProps:e.commonVideoProps}))}var Vr=n(18967),_r=n(88711);function Br(e){var t,n,r,i,o,l,c=e.folder.thumbnail?Wn._.urlBuilder(e.folder.thumbnail.url,{size:m.h2.Small}):null,u=null===(i=null===(r=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===r?void 0:r[0])||void 0===i?void 0:i.owner,d=e.showOwnerLogo&&(null===(o=null==u?void 0:u.logo)||void 0===o?void 0:o.url)?Wn._.urlBuilder(u.logo.url,{size:m.h2.Small}):null,p=null===(l=e.getFolderActions)||void 0===l?void 0:l.call(e,e.folder),f=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,v=e.analyticsOptions?Object.assign({actionType:s.Vw.Click,entity:s.py.Folder},e.analyticsOptions):void 0;return a.createElement(_r.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:f,analyticsOptions:v},a.createElement(Qa.Z,{data:c,imageType:m.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(Xa.oy,{name:e.folder.name,type:Xa.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(Vr.e,{actions:p,className:"xM37V",actionsDropdownClassName:"cN3nB",dropdownToggleSvgSize:null}),!!d&&a.createElement("img",{src:d,className:"rounded-circle ".concat("g3JFo"),alt:"".concat(null==u?void 0:u.name," logo"),title:(null==u?void 0:u.name)||""})))}function Rr(e){function t(t){var n,a,r;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var i=null===(r=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===r?void 0:r.id;return e.appLinks.folder(t,{libraryId:i})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(r,i){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(i):{};return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Br,{folder:r,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:s.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}function zr(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 Wr(e){var t,n={};return e.data.fallbackBackgroundColor&&(n.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(n.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(n.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:(0,o.A)("d-flex position-relative rounded-3 h-100","gKcbE",e.isLarge?"Ldth1":"z6ZxE"),style:n},a.createElement("div",{className:(0,o.A)("aOotU",!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",{title:e.data.name,className:(0,o.A)("h5 text-shadow hover-text-underline","bSXFz",e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3")},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:(0,o.A)(!e.appLink&&"cursor-default","btn btn-outline-dark")},(null===(t=e.data)||void 0===t?void 0:t.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 Hr=a.memo((function(e){return e.appLink?a.createElement(S.F,{className:"YtffT",appLink:e.appLink,appLinkOptions:e.appLinkOptions,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(Wr,Object.assign({},e))):a.createElement(Wr,Object.assign({},e))})),Zr=B.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function Ur(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(F.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Hr,Object.assign({},function(e){var t,n,a,r,i,o,l,c,u,d={data:{name:e.item.name,description:e.item.description}},p=(null===(t=e.item)||void 0===t?void 0:t.status)===kr.W.ComingSoon,v=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!p}),g=Object.assign(Object.assign({location:s.LZ.ClassificationListItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail});return Object.assign(Object.assign({},d),{data:Object.assign(Object.assign({},d.data),{backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:f.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:f.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium}),buttonText:Zr("exploreTopic")}),appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===u?void 0:u.call(c,e.item),isLarge:!0,analyticsData:v,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const Gr="HwejH";var Yr=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"}}))},qr=n(89452);function Kr(e){var t,n,r,i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),o=a.useRef(null),l={actionType:s.Vw.Click,entity:oa.M.getAnalyticsEntity(e.video),location:s.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:s._S.Thumbnail},c=(0,Aa.n)(null===(r=e.video.subjectPresentationAudiences)||void 0===r?void 0:r.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:o},a.createElement(it.u,{analyticsData:e.analyticsData,analyticsOptions:l,video:e.video,appLink:i,imageOptions:{size:m.h2.Medium},textPosition:Da.z.Independent,type:"static",audience:c,hideRating:!!c,commonVideoProps:Object.assign(Object.assign({},e.commonVideoProps),{subTextType:"none"})})),a.createElement(qr.h,{video:e.video,appLink:i,commonVideoProps:e.commonVideoProps}),oa.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{commonVideoProps:e.commonVideoProps,video:e.video,analyticsData:e.analyticsData,analyticsOptions:l,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function $r(e){var t=At.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(Kr,Object.assign({key:t.id,video:t},e))}))))}function Qr(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function Xr(e){return e.appLink?a.createElement(S.F,{appLink:e.appLink,className:"".concat("OsWjL")},a.createElement(Qr,Object.assign({},e))):a.createElement(Qr,Object.assign({},e))}var Jr=n(26117),ei=n(45778);const ti="M4zat";var ni="shared.collectionThumbnail";function ai(e){var t,n,r,i,o=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===ia.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return Dt.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===ia.E.Playlist){var r=e.collection;(null===(t=r.interactives)||void 0===t?void 0:t.count)&&(a+=r.interactives.count),(null===(n=r.clips)||void 0===n?void 0:n.count)&&(a+=r.clips.count)}return a}(),c=(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:s.Vw.Click,entity:(i=e.collection,ei.G.isType(i,ia.E.Playlist)?s.py.Playlist:ei.G.isType(i,ia.E.Series)?s.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(ti," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(u.x,{svgName:v.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(r=e.hoverText)||void 0===r?void 0:r.length)?a.createElement("span",null,e.hoverText):a.createElement(d.x,{namespace:ni,phrase:"playAll"})))),o&&a.createElement(it.u,{video:o,imageOptions:e.imageOptions,textPosition:Da.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(u.x,{svgName:v.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(ti," 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(u.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(d.x,{namespace:ni,phrase:"videos",options:{count:l,smartCount:l}}))))),c&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(Jr.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(Xr,{title:e.collection.name,appLink:e.titleAppLink})))}function ri(e){return ri="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},ri(e)}function ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=ri(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ri(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oi=B.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function li(e){var t=ii(ii({},ia.E.Playlist,oi("playlist")),ia.E.Series,oi("series")),n=ii(ii({},ia.E.Playlist,oi("viewPlaylist")),ia.E.Series,oi("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n3"},e.content.map((function(r,i){var o,l=(o=r,ei.G.isType(o,ia.E.Playlist)?e.appLinks.playlist(o):ei.G.isType(o,ia.E.Series)?e.appLinks.series(o):void 0),c=t[null==r?void 0:r.typeId],u=n[null==r?void 0:r.typeId];return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"mb-3 px-1"},a.createElement(ai,{collection:r,appLink:l,analyticsOptions:{location:s.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(i),title:null==r?void 0:r.name,titleAppLink:l,imageOptions:{size:m.h2.Medium},subText:c,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function ci(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 si(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([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 r="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,i=function(e){var t,n,a,r,i,o,l,c,u,d,p,v,g,h,y={data:{name:e.item.name,description:e.item.description}};if(ei.G.isType(e.item,ia.E.Subject)){var b=(null===(t=e.item)||void 0===t?void 0:t.status)===kr.W.ComingSoon,E=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!b}),w=Object.assign(Object.assign({location:s.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail}),k=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({},y),{data:Object.assign(Object.assign({},y.data),{preTitle:k,backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:f.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:f.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium})}),appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===u?void 0:u.call(c,e.item),analyticsData:E,analyticsOptions:w})}return ei.G.isType(e.item,ia.E.Company)?Object.assign(Object.assign({},y),{data:Object.assign(Object.assign({},y.data),{coverUrl:f.j.createUrl(null===(d=e.item.logo)||void 0===d?void 0:d.url,{size:m.h2.Small}),backgroundColor:null===(p=e.item.metadata)||void 0===p?void 0:p.colour}),appLink:null===(g=null===(v=e.appLinks)||void 0===v?void 0:v.company)||void 0===g?void 0:g.call(v,e.item),appLinkOptions:null===(h=e.appLinkOptions)||void 0===h?void 0:h.company(e.item)}):y}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:r,availablePresentations:e.availablePresentations,appLinkOptions:e.appLinkOptions});return a.createElement(F.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Hr,Object.assign({},i)))}))))}function ui(e){var t,n,r,i,o,l,c=Dt.m.first(e.content),u=f.j.createUrl(null===(t=c.thumbnail)||void 0===t?void 0:t.url,{size:m.h2.Medium}),d=null===(n=c.metadata)||void 0===n?void 0:n.backgroundColor,p={backgroundColor:d};u&&(p.backgroundImage="url('".concat(u,"')"));var v=Object.assign(Object.assign({},e.analyticsData),{id:c.id,name:c.name,presentationId:c.presentationId}),g={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return u&&d?a.createElement(a.Fragment,null,a.createElement(S.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,c),className:"text-decoration-none",analyticsData:v,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:p},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"},c.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(pn,Object.assign({},e))}var di=n(45756);function mi(e){var t,n,r,i,o,l,c,u,d=Dt.m.first(At.d.getVideoContent(e.content)),p=a.useRef(null),f=(0,Aa.n)(null===(t=d.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),v=oa.M.hasSeries(d)||At.d.isCompanyWidget(e.widgetTypeId),g={actionType:s.Vw.Click,entity:oa.M.getAnalyticsEntity(d),location:s.LZ.ThumbnailHeroMediaWidget},h=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,y=oa.M.getCanBeConsumed(d).canNavigate;return d?a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{ref:p},a.createElement(it.u,{video:d,imageOptions:{size:m.h2.Large},type:"static",textPosition:Da.z.Independent,analyticsOptions:g,audience:f,hideRating:!!f,appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.videoType)||void 0===i?void 0:i.call(r,d,{}),commonVideoProps:e.commonVideoProps})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,oa.M.isVideo(d)&&a.createElement(ct.$,{type:At.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.commonVideoProps.subTextType,video:d,appLink:null===(l=(o=e.commonVideoProps).getSubTextAppLink)||void 0===l?void 0:l.call(o,d),analyticsOptions:g,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:v?"":"mt-2"},a.createElement(S.F,{appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.videoType)||void 0===u?void 0:u.call(c,d,{}),analyticsData:{id:d.id,name:d.name},analyticsOptions:Object.assign(Object.assign({},g),{descriptor:s._S.Title}),className:"d-inline-block ".concat(y?"":"cursor-default text-decoration-none disabled"),disabled:!y},a.createElement(di.O,{video:d,yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:h,showPadlock:!e.commonVideoProps.hasStudentExperience,titleSize:"h4",className:"mb-0"})))),oa.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{video:d,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD"),commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}function pi(e){var t,n;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function fi(e){var t,n;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var vi=n(74237),gi=n(47198);var hi=a.memo((function(e){var t,n,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,i=(0,Aa.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(it.u,{video:e.data,preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,type:"static",appLink:e.getAppLink(e.data),imageOptions:{size:e.thumbnailSize},textPosition:Da.z.Below,audience:i,hideRating:!!i,hideDuration:!1,commonVideoProps:e.commonVideoProps}))}));function yi(e){return oa.M.isVideoType(e.data)?a.createElement(hi,Object.assign({},e)):a.createElement(gi.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),vi.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function bi(e){var t,n,r=e.hasLocalPermissions(Pt.E.ViewVideoResourceItems);return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:yi,extraChildComponentProps:{imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,imageCdnUrl:e.commonVideoProps.imageCdnUrl},getChildAppLink:function(t){var n,a,i,o;return oa.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var Ei=n(1809);function wi(){return a.createElement(Ei.S,{numVideos:3})}var ki,Li=n(12754),xi="shared.searchSuggestionsBlurbWidgetTemplate",Si=B.T.encloseNamespace(xi);function Ci(e){return a.createElement(a.Fragment,null,'"',a.createElement(S.F,{appLink:e.appLink,appLinkOptions:{replace:!0}},a.createElement("span",{className:"text-info hover-text-underline cursor-pointer"},e.name)),'"')}function Ni(e){var t=e.content.splice(0,2);return t.length?a.createElement("div",{className:"rounded-2"},a.createElement(d.x,{phrase:"prompt",namespace:xi})," ",t.map((function(n,r){var i=t.length-1===r;return a.createElement(a.Fragment,{key:n.name},a.createElement(Ci,{appLink:e.appLinks.searchHome({query:n.name},{replace:!0}),name:n.name}),i?"?":a.createElement(a.Fragment,null," ",Si("or")," "))}))):a.createElement(a.Fragment,null)}function Ti(e){return Ti="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},Ti(e)}function Oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ti(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ti(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ji=(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return mi},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(Ir,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 Ga},partialLoading:Wa,icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return er},partialLoading:function(){return a.createElement($a,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Li.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 ar;case de.z.CuratedSeries:return rr;default:return ar}},partialLoading:function(){return a.createElement($a,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Li.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 Fr},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(M.Z,null,a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Ir,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return I.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Cr},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(wr,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.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(M.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Li.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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:V.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Li.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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return an},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(tn," ").concat(nn," mb-1 ")}),a.createElement(Rt.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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return pn},partialLoading:fn,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Oa},partialLoading:fn,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return Dn},partialLoading:An,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return Mn},partialLoading:function(){return a.createElement(An,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return In},partialLoading:function(){return a.createElement(An,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationCurriculum].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return ui},partialLoading:function(){return a.createElement(fn,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return Ur},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return zr(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 zr(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)?zr(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(F.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return si},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ci(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 ci(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)?ci(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription}),a.createElement(M.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(F.Z,{key:t,xl:4,md: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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Bt},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(M.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.Heading,{getComponent:function(){return un},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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return k},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return or},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!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return br},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(cr,null),a.createElement(cr,null),a.createElement(cr,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return $r},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Gr," partial-loading-background rounded-3")}),a.createElement(Yr,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ir,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Gr," partial-loading-background rounded-3")}),a.createElement(Yr,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ir,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Ma},partialLoading:function(e){return a.createElement(Rt.j7,{size:"lg",childComponent:ja,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Ra},partialLoading:function(e){return a.createElement(Rt.j7,{size:"sm",childComponent:Fa,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===Li.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 cn},partialLoading:function(e){var t,n=(0,A.k)();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return sn(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 sn(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)?sn(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!==Li.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return P},partialLoading:function(e){var t=8,n=(0,A.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return $t},partialLoading:function(e){var t,n=(t=(0,A.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.ThumbnailVerticalList,{getComponent:function(){return ke},partialLoading:wi,icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return bi},partialLoading:Rt.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.CurriculumResourcesAccordion,{getComponent:function(){return yt},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2 w-25",style:{height:"1.7325rem"}}),a.createElement("div",{className:"mb-n3"},a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null)))},icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return li},partialLoading:Rt.j7,icon:null,predicate:function(){return!1},className:"thumbnail-fixed-list-media-small-widget-template"}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return Rr},partialLoading:Rt.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.TagSlidingList,{getComponent:function(){return Dr},partialLoading:function(e){var t="function"==typeof e.predicate&&e.predicate()||!1;return a.createElement(a.Fragment,null,a.createElement(he.QL,{partialLoadingComponent:Tr,partialLoadingOptions:{numItems:4}}),t&&a.createElement("hr",null))},icon:null,predicate:function(){return!1},className:"tag-sliding-list-widget-template"}),ue.f.CurriculumCodeSearchResults,{getComponent:function(){return Le},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background rounded-3 mb-3 w-100",style:{height:"5rem"}}),a.createElement(wi,null))},icon:null,predicate:function(){return!1},className:""}),ue.f.PosterFixedListLarge,{getComponent:function(){return Za},partialLoading:Wa,icon:null,predicate:function(){return!1},className:"poster-fixed-list-large-widget-template"}),ue.f.SearchSuggestionsBlurb,{getComponent:function(){return Ni},partialLoading:function(){return a.createElement("div",{className:"d-flex flex-row gap-1"},a.createElement("div",{className:"partial-loading-background",style:{width:"12rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"3rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"1rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"4rem",height:"1.25rem"}}))},icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return fi},partialLoading:Rt.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),Oi(ki,ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return pi},partialLoading:function(e){return a.createElement(Rt.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Pi=n(65294);const Di={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ai(e,t){if(e){if("string"==typeof e)return Ii(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)?Ii(e,t):void 0}}function Ii(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 Mi(e){var t,n,l,c,s,u,d=a.createRef(),m=(s=a.useState([]),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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(s,u)||Ai(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.")}()),p=m[0],f=m[1],v=null===(t=e.lazyLoad)||void 0===t||t,g=(0,Pi.Y)({prevent:!v}),h=g.ref,y=g.inView,b=r.q.isFunction(e.getContentRequest),E=i.a.useBasicFetch(!(!y||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),w=At.d.useGetContent(e.content||(null===(n=E.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(l=E.data)||void 0===l?void 0:l.preferences,p).content,k=(0,A.k)(),L=function(e,t){return!(At.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,w),x=!At.d.canDisplayOnScreenSize(k,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;b&&!E.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,L||x)}),[E.hasCompleted,L,x,b,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&d.current&&d.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,d.current]);var S=e.appLinks?Object.assign({},e.appLinks):null;(null==S?void 0:S.videoType)&&(S.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var C=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),N=b&&!E.hasCompleted||e.isEditing&&L,T=ji[e.templateId];if(!T||!N&&(L||x))return a.createElement(a.Fragment,null);var O=T.partialLoading,j=T.getComponent(e.widgetTypeId),P=(0,o.A)(T.className,e.className);return a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:d,className:"curated-widget ".concat(P," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Di.widgetHighlight," py-2 px-3 rounded-3"):""},At.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Di.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),N?a.createElement("div",{ref:h},a.createElement(O,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(j,Object.assign({},e,{appLinks:S,content:w,preferences:null===(c=E.data)||void 0===c?void 0:c.preferences,analyticsData:C,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return f([].concat(function(e){return function(e){if(Array.isArray(e))return Ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ai(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.")}()}(p),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}}))))}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(62400),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(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(19653);n(14244)},80889:(e,t,n)=>{n.d(t,{_:()=>h});var a=n(99940),r=n(97395),i=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.EnglandSecondary)),d(Object.values(c.e.Classifications.Twig.InternationalSecondary)),d(Object.values(c.e.Classifications.Twig.ScotlandSecondary)))),f=new Set([].concat(d(Object.values(c.e.Classifications.Tigtag.EnglandPrimary)),d(Object.values(c.e.Classifications.Tigtag.InternationalPrimary)),d(Object.values(c.e.Classifications.Tigtag.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function g(e){return v(o.t.pick(e,["audienceId"]))}var h={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:r._.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()})):i.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,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{url:r._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:r._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){var t=l.d.formatResponseData(e,a);if(!i.hideTigTag&&!i.hideTwig)return t;if(Array.isArray(t.content)){var n=t.content.filter((function(e){return!(u.G.isClassification(e)&&(f.has(e.id)?i.hideTigTag:p.has(e.id)&&i.hideTwig))}));t.content=n}return t},normalizeOptions:{namespace:g(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall}},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:r._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:r._.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()})):i.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}}}}},25104:(e,t,n)=>{n.d(t,{R:()=>f});var a=n(16951),r=n.n(a),i=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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.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 i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:T(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 f="suspendedStart",v="suspendedYield",g="executing",h="completed",y={};function b(){}function E(){}function w(){}var k={};d(k,c,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(A([])));x&&x!==n&&a.call(x,c)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,l,c){var s=p(e[r],e,i);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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=f;return function(i,o){if(r===g)throw Error("Generator is already running");if(r===h){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=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(r===f)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var s=p(t,n,a);if("normal"===s.type){if(r=a.done?h:v,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,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 i=p(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(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 r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(N.prototype),d(N.prototype,s,(function(){return this})),t.AsyncIterator=N,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new N(m(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(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=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,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),P(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 r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(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(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},u="markdown-link",d=new i.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}},{start:function(e){return e.indexOf("^")},name:"superscript",level:"inline",tokenizer:function(e){var t=e.match(/^\^([^\^]+?)\^/);if(t)return{type:"superscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sup>".concat(e.text,"</sup>")}},{name:"subscript",level:"inline",start:function(e){return e.indexOf("~")},tokenizer:function(e){var t=e.match(/^\~([^\~]+?)\~/);if(t)return{type:"subscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sub>".concat(e.text,"</sub>")}}],walkTokens:function(e){return s(void 0,void 0,void 0,l().mark((function t(){var a,r;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(8294),n.e(6356)]).then(n.bind(n,66356));case 3:a=t.sent,r=a.katex,c=r;case 6:case"end":return t.stop()}}),t)})))}});var f={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:f.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",r().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,r=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(u,'" ').concat(r,">").concat(a,"</a>")},t},getContainerClass:function(){return"AmtuH"}}},73688:(e,t,n)=>{n.d(t,{B:()=>c});var a=n(20354),r=n(80889),i=n(57401),o=n(21366),l=n(31700);function c(e){var t=a.a.useBasicFetch(l.g.streamablePresentation());return{dashboard:a.a.useBasicFetch(t.hasCompleted&&r._.getDashboard(i.Yv.Any,e.dashboardId?[i.GL.Published,i.GL.Draft]:[i.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 999-13c769d864-streamable-learning.chunk.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[999],{40451:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),r=n(28825);const i={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(r.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(i.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(i.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 i.bodyRange;case"day":return i.bodyDay;case"month":return i.bodyMonth}}()," ").concat(i.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(i.month)},e.month)))}},42923:(e,t,n)=>{n.d(t,{V:()=>i});var a=n(32735);const r={emoji:"d86p2"};function i(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:r.emoji},e.emoji),e.children)}},34864:(e,t,n)=>{n.d(t,{$:()=>k});var a=n(32735),r=n(57900),i=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(25104);const f={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function v(e){return v="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},v(e)}function g(){g=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),l=new D(a||[]);return r(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",f="executing",h="completed",y={};function b(){}function E(){}function w(){}var k={};s(k,o,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(A([])));x&&x!==n&&a.call(x,o)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==v(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===h){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=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(r===m)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?h:p,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,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 i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(v(t)+" is not iterable")}return E.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(N.prototype),s(N.prototype,l,(function(){return this})),t.AsyncIterator=N,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new N(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(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=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,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),P(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 r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return 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(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},E="1.2rem",w=500;function k(e){var t=h((0,i.D)("should:expand:".concat(e.id),e.isBot,{storage:r.Z1.LocalStorage}),2),n=t[0],v=t[1],y=h(a.useState(n?"100%":E),2),k=y[0],L=y[1],x=h(a.useState(!n),2),S=x[0],C=x[1],N=h(a.useState(null),2),T=N[0],O=N[1],j=(0,u.F)(),P=a.useRef(null),D=a.useRef(null),A=a.useRef(null);function I(){L(E),v(!1),P.current=window.setTimeout((function(){C(!0)}),w)}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!==T){t.next=8;break}return O(a),t.abrupt("return");case 8:if(T!==a){t.next=10;break}return t.abrupt("return");case 10:T&&n&&I(),O(a);case 12:case"end":return t.stop()}}),t)})))}()}),[e.answer]),a.useEffect((function(){"100%"===k&&A.current&&L(A.current.clientHeight+"px")}),[k]),(0,d.H)((function(){n&&I()}),null,[n]),e.question&&T?a.createElement(c.L,{className:"".concat(f.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?I():((a=document.createElement("p")).innerHTML=T,a.style.visibility="hidden",D.current.appendChild(a),L("".concat(a.clientHeight,"px")),D.current.removeChild(a),v(!0),window.clearTimeout(P.current),C(!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:f.description,style:{height:k}},a.createElement("p",{className:"mb-0 ".concat(S?"clamp-1":""," ").concat(p.R.getContainerClass()),dangerouslySetInnerHTML:{__html:T},ref:A}),a.createElement("div",{ref:D}))):a.createElement(a.Fragment,null)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),r=n(92802),i=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,r.u6)(),n=(0,l.l)(t);return a.createElement(i.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},11904:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>k});var a=n(32735),r=n(80247),i=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(28825),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 r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function d(e){var t=e.label,n=e.checkboxLabelClassName,r=e.checkboxLabelFontWeight,o=e.className,l=u(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(i.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(i.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===r?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),f={getCustomFormControlClassName:function(e,t,n,a,r,i){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}(i,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),r&&(l+=" ".concat(r)),l}},v=n(35223);function g(e){var t=(0,o.u6)().values,n=c.t.get(t,e.fieldName);return"string"!=typeof n?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},n.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},E="shared.formField";function w(e){var t,n,i=e.children,s=e.showLoadingSpinner,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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],g=l.q.isFunction(i)?function(e){return i(e)}:a.Children.count(i)?i: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(r.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(u,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return u.className&&(E+=" ".concat(u.className)),u.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},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?v.vn.VisibleOn:v.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){f("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,r=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,u=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,x=e.formGroupClassname,S=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel","formGroupClassname"]),C=(0,o.u6)(),N=C.errors,T=C.touched,O=function(){};if("checkbox"===S.type){var j=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(j.onChange=O),a.createElement(d,Object.assign({},j))}var P=Object.assign(Object.assign({},S),{className:f.getCustomFormControlClassName(N,T,S.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(P.onChange=O),a.createElement(i.Z.Group,{className:"form-group ".concat(x)},!!t&&a.createElement(i.Z.Label,{htmlFor:S.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:v.vn.Info,title:s,tooltipPlacement:u,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!r&&!!S.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:S.name,limit:S.maxLength}))),a.createElement(w,Object.assign({},P,{"aria-errormessage":"".concat(S.name,"Error")})),!!y&&a.createElement(i.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:S.name},(function(e){return a.createElement(i.Z.Control.Feedback,{id:"".concat(S.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>u,n:()=>s});var a=n(32735),r=n(92802),i=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,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(r.J9,Object.assign({enableReinitialize:!0},d,{initialValues:m,onSubmit:function(t,a){var r=a.setSubmitting,i=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;u(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&i(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],d=s[1];o(u,d)}r(!1)}))},initialStatus:p}),i.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function u(){return(0,r.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},1809:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),r=n(68050),i=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(r.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(i.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(r.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(i.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(i.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}},39071:(e,t,n)=>{n.d(t,{L:()=>Mi});var a=n(32735),r=n(91967),i=n(20354),o=n(31453),l=n(110),c=n(92582),s=n(65858),u=n(83914),d=n(83345),m=n(54610),p=n(12778),f=n(67453),v=n(35223);const g="TTPKV",h="nF3tK";var y="shared.authorReviewerWidgetTemplate",b="MMMM D, YYYY";function E(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(g," h-100 rounded-2 d-flex flex-column"),n=e.person.externalUrl,r=p.o.getAuthorBlogUrl(e.person.blogSlug);return r||n?a.createElement("a",{href:n||r,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){c.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,externalUrl:n,blogUrl:r},{entity:s.py.Author,location:s.LZ.AuthorReviewerWidget,actionType:s.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function w(e){return e.person?a.createElement(E,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(h," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:f.j.getUrlById(e.imageCdnUrl,m.__.Avatars,e.person.imageId,m.h2.Medium),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(u.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:y,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:y,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:y,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:y,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},l.O.format(e.datePublished,b))," • ",a.createElement(d.x,{namespace:y,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},l.O.format(e.lastUpdated,b))))):a.createElement(a.Fragment,null)}function k(e){var t=e.content[0],n=t.reviewer,r=t.author,i=t.lastUpdated,o=t.datePublished;return r&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"author",person:r,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(w,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:i}))):a.createElement(a.Fragment,null)}function L(){return a.createElement("div",{className:"".concat(g," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(h)}),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 x=n(5281),S=n(28825),C=n(7733),N=n(9085);var T=function(e){var t,n,r,i,l=f.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:m.h2.Medium}),c=null===(n=e.data.metadata)||void 0===n?void 0:n.colour,u=(0,N.x)(e.data.name,C.o),d=Object.assign(Object.assign({},e.analyticsData),{id:null===(r=e.data)||void 0===r?void 0:r.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),p=Object.assign(Object.assign({},e.analyticsOptions),{location:s.LZ.CircleLogoSlidingListWidget,actionType:s.Vw.Click,entity:s.py.Company}),v={backgroundImage:l?"url('".concat(l,"')"):null,backgroundColor:c};return a.createElement(S.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:d,analyticsOptions:p},a.createElement("div",{className:(0,o.A)("rounded-circle w-100 h-100","vt0gx",!c&&u),style:v}))},O=n(58704),j=n(57401);function P(e){var t;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Companies,collection:e.content,childComponent:T,extraChildComponentProps:{},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var D=n(55827),A=n(79967);var I=n(47770),M=n(68050),F=n(69111),V=n(9513),_=n(92802),B=n(23481),R=n(42923),z=n(23201),W=n(11904),H=n(82644),Z=n(74097),U=n(69883),G=n(5173),Y=G.Ry().shape({feedbackInput:G.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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError($(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function 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,i=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=i[0],l=i[1],c=(0,U.Z)();function s(t,n){return a=this,r=void 0,i=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(i||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof i?a:new i((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,r||[])).next())}));var a,r,i,s}return r.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(q)},a.createElement(R.V,{emoji:"🔎"},a.createElement(d.x,{namespace:J,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(Z.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(d.x,{namespace:J,phrase:"yes"})),a.createElement(Z.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:J,phrase:"no"})))):"yes"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"👏"},a.createElement(d.x,{namespace:J,phrase:"happyFeedback"}))),a.createElement(W.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(d.x,{namespace:J,phrase:"back"})),a.createElement(z.A,{variant:"dark",submitText:B.T.getPhrase(J,"sendFeedback")})))):"no"===o?a.createElement(H.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Y},a.createElement(_.l0,{className:K},a.createElement("p",{className:"fw-semibold ".concat(q)},a.createElement(R.V,{emoji:"😢"},a.createElement(d.x,{namespace:J,phrase:"unhappyFeedback"}))),a.createElement(W.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(d.x,{namespace:J,phrase:"back"})),a.createElement(z.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(d.x,{namespace:J,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const te={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function ne(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(te.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(M.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,r,i,o=f.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:m.h2.Small});return a.createElement(F.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(S.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(te.imageContainer," me-2")},a.createElement("div",{className:"".concat(te.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(ee,{onSubmit:e.onSubmitFeedback}))}var ae=n(6714),re=n(62400),ie={actionType:s.Vw.Click,entity:s.py.Playlist,location:s.LZ.PlaylistListItem,descriptor:s._S.Cover};function oe(e){return a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,r;return a.createElement(F.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ae.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===r?void 0:r.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:ie}))}))))}var le=n(19653),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 fe(e){return e.reduce((function(e,t){return e+((null==t?void 0:t.totalVideos)||0)}),0)}function ve(e){return e.totalVideos?"".concat(e.totalVideos," new video").concat(e.totalVideos>1?"s":""):""}function ge(e){var t,n,r,i=function(e,t){var n,a,r,i,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===j.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:j.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:f.j.createUrl(null===(i=null===(r=e.classification)||void 0===r?void 0:r.cover)||void 0===i?void 0:i.url,{size:m.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:f.j.getUrlById(e.imageCdnUrl,m.__.Covers,e.metadata.imageId,m.h2.Medium)},totalVideos:fe(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:f.j.createUrl(se.e.Images.STREAMABLE_TOPIC_COVER,{size:m.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===j.OL.ClassificationLatestReleases;return a.createElement(le.e,{id:e.id,collection:i?[i].concat((r=e.content,function(e){if(Array.isArray(e))return pe(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,r,i,l,c,s,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===(i=null===(r=e.appLinks)||void 0===r?void 0:r.allTopics)||void 0===i?void 0:i.call(r,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===u?void 0:u.call(s,t)}(t)},childComponent:V.Vz,partialLoadingComponent:ce.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&me.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===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?ve: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(46279),be=B.T.encloseNamespace("search.searchExchangeArchiveDescription");function Ee(e){return a.createElement(a.Fragment,null,be("searchExchangeArchiveDescription")," ",a.createElement(S.F,{appLink:e.appLink,className:"info-link"},be("searchExchangeArchiveLink")))}var we=n(87347);function ke(e){var t,n;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!e.metadata.hideWidgetDescription&&(e.widgetTypeId===de.z.SearchExchangeArchive?a.createElement(Ee,{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(we.E4,{videos:e.content,getVideoAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.videoType,hasPermissions:e.hasPermissions,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,getAnalyticsData:e.getAnalyticsData,analyticsOptions:{location:s.LZ.ThumbnailVerticalListWidget,entity:s.py.Video}}))}function Le(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"bg-gray-100 p-3 rounded-3 mb-3"},a.createElement("h2",{className:"h6"},e.name),a.createElement(ye.k,{code:e.metadata.curriculumLeafName,description:e.metadata.curriculumLeafDescription,id:null,locationContext:s.LZ.SearchCurriculumCodeWidget})),a.createElement(ke,{metadata:{hideWidgetHeading:!0,hideWidgetDescription:!0},name:"",description:"",widgetTypeId:de.z.SearchCurriculumCode,hasPermissions:e.hasPermissions,content:e.content,audiences:e.audiences,seeMoreLink:null,appLinks:e.appLinks,commonVideoProps:e.commonVideoProps,badgeComponent:null,settings:e.settings,getAnalyticsData:e.getAnalyticsData}))}var xe=n(95685),Se=n.n(xe),Ce=n(80638),Ne=n(46304),Te=n(11858),Oe=n(35355),je=n(76e3),Pe=n(26664);const De=function(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)};var Ae=n(65169),Ie=n(35308),Me=n(74512);const Fe={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Ve(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],a=Fe[e];return n+parseInt((0,Te.Z)(t,a[0]),10)+parseInt((0,Te.Z)(t,a[1]),10)}const _e={[Oe.Wj]:"collapse",[Oe.Ix]:"collapsing",[Oe.d0]:"collapsing",[Oe.cn]:"collapse show"},Be=a.forwardRef((({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:o,children:l,dimension:c="height",in:s=!1,timeout:u=300,mountOnEnter:d=!1,unmountOnExit:m=!1,appear:p=!1,getDimensionValue:f=Ve,...v},g)=>{const h="function"==typeof c?c():c,y=(0,a.useMemo)((()=>De((e=>{e.style[h]="0"}),e)),[h,e]),b=(0,a.useMemo)((()=>De((e=>{const t=`scroll${h[0].toUpperCase()}${h.slice(1)}`;e.style[h]=`${e[t]}px`}),t)),[h,t]),E=(0,a.useMemo)((()=>De((e=>{e.style[h]=null}),n)),[h,n]),w=(0,a.useMemo)((()=>De((e=>{e.style[h]=`${f(h,e)}px`,(0,Ae.Z)(e)}),r)),[r,f,h]),k=(0,a.useMemo)((()=>De((e=>{e.style[h]=null}),i)),[h,i]);return(0,Me.jsx)(Ie.Z,{ref:g,addEndListener:Pe.Z,...v,"aria-expanded":v.role?s:null,onEnter:y,onEntering:b,onEntered:E,onExit:w,onExiting:k,childRef:(0,je.IV)(l),in:s,timeout:u,mountOnEnter:d,unmountOnExit:m,appear:p,children:(e,t)=>a.cloneElement(l,{...t,className:Se()(o,l.props.className,_e[e],"width"===h&&"collapse-horizontal")})})}));function Re(e,t){return Array.isArray(e)?e.includes(t):e===t}const ze=a.createContext({});ze.displayName="AccordionContext";const We=ze,He=a.forwardRef((({as:e="div",bsPrefix:t,className:n,children:r,eventKey:i,...o},l)=>{const{activeEventKey:c}=(0,a.useContext)(We);return t=(0,Ne.vE)(t,"accordion-collapse"),(0,Me.jsx)(Be,{ref:l,in:Re(c,i),...o,className:Se()(n,t),children:(0,Me.jsx)(e,{children:a.Children.only(r)})})}));He.displayName="AccordionCollapse";const Ze=He,Ue=a.createContext({eventKey:""});Ue.displayName="AccordionItemContext";const Ge=Ue,Ye=a.forwardRef((({as:e="div",bsPrefix:t,className:n,onEnter:r,onEntering:i,onEntered:o,onExit:l,onExiting:c,onExited:s,...u},d)=>{t=(0,Ne.vE)(t,"accordion-body");const{eventKey:m}=(0,a.useContext)(Ge);return(0,Me.jsx)(Ze,{eventKey:m,onEnter:r,onEntering:i,onEntered:o,onExit:l,onExiting:c,onExited:s,children:(0,Me.jsx)(e,{ref:d,...u,className:Se()(n,t)})})}));Ye.displayName="AccordionBody";const qe=Ye;function Ke(e,t){const{activeEventKey:n,onSelect:r,alwaysOpen:i}=(0,a.useContext)(We);return a=>{let o=e===n?null:e;i&&(o=Array.isArray(n)?n.includes(e)?n.filter((t=>t!==e)):[...n,e]:[e]),null==r||r(o,a),null==t||t(a)}}const $e=a.forwardRef((({as:e="button",bsPrefix:t,className:n,onClick:r,...i},o)=>{t=(0,Ne.vE)(t,"accordion-button");const{eventKey:l}=(0,a.useContext)(Ge),c=Ke(l,r),{activeEventKey:s}=(0,a.useContext)(We);return"button"===e&&(i.type="button"),(0,Me.jsx)(e,{ref:o,onClick:c,...i,"aria-expanded":Array.isArray(s)?s.includes(l):l===s,className:Se()(n,t,!Re(s,l)&&"collapsed")})}));$e.displayName="AccordionButton";const Qe=$e,Xe=a.forwardRef((({as:e="h2","aria-controls":t,bsPrefix:n,className:a,children:r,onClick:i,...o},l)=>(n=(0,Ne.vE)(n,"accordion-header"),(0,Me.jsx)(e,{ref:l,...o,className:Se()(a,n),children:(0,Me.jsx)(Qe,{onClick:i,"aria-controls":t,children:r})}))));Xe.displayName="AccordionHeader";const Je=Xe,et=a.forwardRef((({as:e="div",bsPrefix:t,className:n,eventKey:r,...i},o)=>{t=(0,Ne.vE)(t,"accordion-item");const l=(0,a.useMemo)((()=>({eventKey:r})),[r]);return(0,Me.jsx)(Ge.Provider,{value:l,children:(0,Me.jsx)(e,{ref:o,...i,className:Se()(n,t)})})}));et.displayName="AccordionItem";const tt=et,nt=a.forwardRef(((e,t)=>{const{as:n="div",activeKey:r,bsPrefix:i,className:o,onSelect:l,flush:c,alwaysOpen:s,...u}=(0,Ce.Ch)(e,{activeKey:"onSelect"}),d=(0,Ne.vE)(i,"accordion"),m=(0,a.useMemo)((()=>({activeEventKey:r,onSelect:l,alwaysOpen:s})),[r,l,s]);return(0,Me.jsx)(We.Provider,{value:m,children:(0,Me.jsx)(n,{ref:t,...u,className:Se()(o,d,c&&`${d}-flush`)})})}));nt.displayName="Accordion";const at=Object.assign(nt,{Button:Qe,Collapse:Ze,Item:tt,Header:Je,Body:qe});function rt(e){var t=a.useContext(We).activeEventKey,n=Ke(e.name),r=t===e.name;return a.createElement("button",{type:"button",onClick:n,className:"w-100 p-3 ".concat("AlqWW"," ").concat(r?"L8zQ5":"")},a.createElement("div",{className:"d-flex align-items-center justify-content-between"},a.createElement("h3",{className:"mb-0 h5 fw-normal"},e.name),a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(u.x,{svgName:r?v.vn.Minus:v.vn.Plus}))))}var it=n(39323),ot=n(71740),lt=n(70872),ct=n(82302);const st={video:"uLiyf",thumbnail:"Yeh7O"};var ut="shared.curriculumAccordionVideoList";function dt(e){var t=!!e.outcome.name&&!!e.outcome.description;return a.createElement(a.Fragment,null,a.createElement("h4",{className:"h6"},a.createElement(d.x,{namespace:ut,phrase:"alignedVideos"})),a.createElement("ul",{className:"list-unstyled"},e.outcome.videos.map((function(t,n){var r={analyticsData:e.analyticsData,analyticsOptions:{entity:s.py.Video,actionType:s.Vw.Click,location:s.LZ.CurriculumResourcesAccordionWidget}};return a.createElement("li",{key:"".concat(e.outcomeIndex,":").concat(n),className:"".concat(st.video," d-flex")},a.createElement("div",{className:"".concat(st.thumbnail," me-2")},a.createElement(it.u,Object.assign({appLink:e.getVideoAppLink(t,{}),video:t,type:"static",imageOptions:{size:m.h2.Medium},commonVideoProps:e.commonVideoProps,hideDuration:!0},r))),a.createElement("div",{className:"d-flex flex-column justify-content-between"},a.createElement("div",null,a.createElement(ct.$,Object.assign({},r,{video:t,appLink:e.getSeriesAppLink(t.series),type:"series"})),a.createElement(lt.u,Object.assign({},r,{video:t,appLink:e.getVideoAppLink(t,{}),size:"sm",titleClassName:"mb-0",yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:e.commonVideoProps.showNewVideoIndicator,showPadlock:!e.commonVideoProps.hasStudentExperience}))),a.createElement(ot.u,Object.assign({video:t,getVideoAppLink:e.getVideoAppLink,commonVideoProps:e.commonVideoProps,containerClassName:"d-flex justify-content-start align-items-center pt-sm-1 gap-1",responsiveClassName:st.responsiveGuidance},r))))}))),a.createElement(S.F,{appLink:e.getOutcomeAppLink(e.outcome.name),className:"info-link mt-2 d-inline-block"},t?a.createElement(d.x,{namespace:ut,phrase:"viewAllVideosCode",options:{code:e.outcome.name}}):a.createElement(d.x,{namespace:ut,phrase:"viewAllVideosNoCode"})))}function mt(e){return a.createElement(at.Collapse,{eventKey:e.audience.name},a.createElement("div",{className:"".concat("dygFS"," px-3 pb-3")},a.createElement("ul",{className:"bg-white p-3 rounded-3 list-unstyled mb-0"},e.audience.areas.map((function(t,n){return a.createElement("li",{key:n,className:"xr2ol"},a.createElement("h3",{className:"h5 fw-normal mb-3"},t.name),a.createElement("ul",{className:"list-unstyled"},t.outcomes.map((function(t,n){return a.createElement("li",{key:n,className:"r0JiR"},a.createElement("h4",{className:"h6"},a.createElement(d.x,{namespace:"shared.audienceSection",phrase:"outcome"})),a.createElement("div",{className:"pb-2"},a.createElement(ye.k,{id:t.id,code:t.name,description:t.description,getCodeAppLink:e.getSearchAppLink,locationContext:s.LZ.CurriculumResourcesAccordionWidget,uiContainsCodes:!0})),a.createElement(dt,{outcome:t,analyticsData:e.analyticsData,getVideoAppLink:e.getVideoAppLink,getSeriesAppLink:e.getSeriesAppLink,getOutcomeAppLink:e.getSearchAppLink,commonVideoProps:e.commonVideoProps,outcomeIndex:n}))}))))})))))}var pt=n(85597);function ft(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=vt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}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,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function vt(e,t){if(e){if("string"==typeof e)return gt(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)?gt(e,t):void 0}}function gt(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 ht(e){var t=new Map;function n(e,a){if(e.type!==pt.k.Area)e.type===pt.k.Leaf&&(t.has(a)||t.set(a,{name:a,outcomes:[]}),t.get(a).outcomes.push(e));else{a.length&&(a+=" - "),a+=e.name;var r,i=ft(e.children);try{for(i.s();!(r=i.n()).done;)n(r.value,a)}catch(e){i.e(e)}finally{i.f()}}}var a,r=ft(e.children);try{for(r.s();!(a=r.n()).done;)n(a.value,"")}catch(e){r.e(e)}finally{r.f()}return Array.from(t.values())}function yt(e){var t=a.useMemo((function(){return function(e){var t,n,a=new Map,r=ft(e);try{for(r.s();!(t=r.n()).done;){var i,o=ft(t.value.children);try{for(o.s();!(i=o.n()).done;){var l,c=i.value;a.has(c.name)||a.set(c.name,{name:c.name,areas:[]}),(l=a.get(c.name).areas).push.apply(l,function(e){if(Array.isArray(e))return gt(e)}(n=ht(c))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||vt(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.")}())}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}return Array.from(a.values())}(e.content)}),[e.content]);return a.createElement("div",null,a.createElement("div",{className:"d-flex align-items-end justify-content-between mb-2"},a.createElement("h2",{className:"h3 mb-0"},e.curriculums.preferredCurriculum.name),e.curriculums.availableCurriculums.length>1&&a.createElement(S.F,{appLink:e.appLinks.editCurriculum()},a.createElement(d.x,{namespace:"shared.curriculumResourcesAccordion",phrase:"changeCurriculum"}))),a.createElement(at,{className:"mb-n3"},t.map((function(t,n){return a.createElement("div",{className:"mb-3",key:n},a.createElement(rt,{name:t.name}),a.createElement(mt,{audience:t,getSearchAppLink:e.appLinks.search,getVideoAppLink:e.appLinks.videoType,getSeriesAppLink:e.appLinks.series,commonVideoProps:e.commonVideoProps,analyticsData:e.analyticsData}))}))))}var bt=function(){return a.createElement("div",{className:"partial-loading-background mb-3 rounded-3",style:{height:"3.5rem"}})},Et=n(98269),wt=n(1048),kt=n(11607),Lt=n(17808),xt=n(1287),St=n(2102),Ct=n(83523),Nt=n(17027),Tt="shared.subjectWidgetItem",Ot=a.forwardRef((function(e,t){var n,r="px-3 d-flex flex-column justify-content-center",i="".concat(Nt.Z.name," h6");return e.multiline?i+=" clamp-3":(r+=" text-nowrap",i+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(Nt.Z.widgetItem," ").concat(Nt.Z.draggingItem),style:wt.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Nt.Z.widgetItem),style:wt.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Nt.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(u.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:r},a.createElement("label",{htmlFor:e.data.id,className:"".concat(i," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(Ct.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?B.T.getPhrase(Tt,e.isVisible?"hideFromDashboard":"showOnDashboard"):B.T.getPhrase(Tt,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),jt=n(91028),Pt=n(16714),Dt=n(75896),At=n(49542);function It(e){return It="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},It(e)}function Mt(){Mt=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==It(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(It(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(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)?Vt(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 Vt(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 _t="shared.editableCoverFixedPillListSmall";function Bt(e){var t,n,r,i=Ft(a.useState(!1),2),o=i[0],l=i[1],u=Ft(a.useState(!1),2),m=u[0],p=u[1],f=At.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences,[]).unfilteredContent,v=a.useMemo((function(){return f.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)}))}),[f]),g=a.useMemo((function(){var e;return null!==(e=null==f?void 0:f.reduce((function(e,t,n){var a,r,i={id:t.id,hidden:!(null===(r=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length)&&!v,index:n};return e[t.id]=i,e}),{}))&&void 0!==e?e:{}}),[e.preferences,v]),h=Ft(a.useState(g),2),y=h[0],b=h[1],E=Ft(a.useState(g),2),w=E[0],k=E[1],L=a.useMemo((function(){return o?f.filter((function(e){return!!w[e.id]})).sort((function(e,t){return w[e.id].index-w[t.id].index})):f.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}))}),[f,w,y,o]),x=(0,U.Z)();a.useEffect((function(){l(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var S=a.useMemo((function(){return!(o||!L.length)&&Object.values(w).some((function(e){return e.hidden}))}),[o,w]);function C(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function N(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function T(e){var t=Object.assign({},w),n=N(e);t[e.id]={id:e.id,hidden:n,index:C(e)},c.k.logUserAction({id:e.id,name:e.name},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Hide,descriptor:n?s.DL.On:s.DL.Off}),k(t)}var O=a.useMemo((function(){return!wt.t.isEqual(g,w)}),[g,w]),j={id:e.presentation.id,name:B.T.getPhrase(_t,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.presentation.learningLevel)}},P=e.availablePresentations?e.availablePresentations.filter((function(t){var n;return t.id!==(null===(n=e.presentation)||void 0===n?void 0:n.id)})).map((function(e){return{id:e.id,name:B.T.getPhrase(_t,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:me.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],D=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Pt.E.ManageDiscoverPreferences),I={location:s.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(_t,"updating"):e.name),!o&&A&&a.createElement(kt.L,{className:"hover-text-underline",onClick:function(){return l(!0)}},B.T.getPhrase(_t,"edit"))),!!e.description&&!o&&a.createElement("p",{className:"text-truncate description mb-2"},e.description),o&&a.createElement("p",{className:"description mb-2"},a.createElement(d.x,{namespace:_t,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(Et.Z,{variant:"link",className:"me-2",onClick:function(){k(y),l(!1)}},a.createElement(d.x,{namespace:_t,phrase:"cancel"})),a.createElement(St.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,r=Mt().mark((function t(){var n;return Mt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=v?f.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(w)).then((function(){b(w),p(!1),l(!1)})).catch((function(){p(!1),x.error(B.T.getPhrase(_t,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((r=r.apply(t,n||[])).next())}));var t,n,a,r},showSpinner:m,disabled:!O},a.createElement(d.x,{namespace:_t,phrase:"update"})))),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},S&&a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(jt.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:I,multiline:!0,highlightOnHover:null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Lt.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(Ot,{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!0,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1}))},onSortStart:function(e){var t=L.find((function(t){return t.id.toString()===e.active.id.toString()})),n=L.findIndex((function(t){return t.id.toString()===e.active.id.toString()}));c.k.logUserAction({id:t.id,name:t.name,index:n},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=C({id:t.id}),r=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==r){var i=L[a];if(i){var o=Object.assign({},w);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=Dt.m.moveItem(e,t,n),r=n<e.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:r}}})(L,a,r).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!N(e)}})),k(o),c.k.logUserAction({id:i.id,name:i.name,oldIndex:a,newIndex:r},{location:s.LZ.EditableSubjectPreferencesWidget,entity:s.py.Classification,actionType:s.Vw.Move,workflowPhase:s.eu.Complete})}}},vertical:!1},L.map((function(t){var n,r;return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(a.Fragment,null,o?a.createElement(xt.W,{id:t.id,childComponent:Ot,childProps:{data:t,onToggleVisibility:T,isVisible:N(t),isDragging:!1,canToggle:!N(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(jt.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:I,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(r=e.settings)||void 0===r?void 0:r.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),D&&P.map((function(t){return a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:t.id,sm:6,lg:4},a.createElement(jt.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({},I),{entity:s.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 Rt=n(11518),zt=n(15543),Wt=n(40451);const Ht="k2Xse";function Zt(e){return a.createElement("div",{className:"".concat(Ht," 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(zt.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 Ut(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Ht," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Wt.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:s.py.Url,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(Zt,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:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})})):a.createElement(Zt,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 f.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:m.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:s.py.SpecialEvent,actionType:s.Vw.Click,location:s.LZ.EventIconSlidingListWidget})}))}function Gt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yt(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 Yt(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Kt=B.T.encloseNamespace("widgets.eventIconSlidingList");function $t(e){var t,n,r=a.useMemo((function(){return function(e,t){var n=Gt(t===j.VH.Livestream?e.map((function(e){return{id:e.id,startDate:l.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,r=l.O.format(a,"YYYY-MM-DD"),i=l.O.format(l.O.add(r,1,"day"),"YYYY-MM-DD"),o=l.O.format(l.O.add(l.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=l.O.format(l.O.add(o,6,"days"),"YYYY-MM-DD"),s=l.O.format(l.O.startOf(a,"month"),"YYYY-MM-DD"),u=l.O.format(l.O.endOf(a,"month"),"YYYY-MM-DD"),d=l.O.format(l.O.startOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=l.O.format(l.O.endOf(l.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=l.O.format(l.O.startOf(l.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),f=l.O.format(l.O.add(a,1,"year"),"YYYY-MM-DD"),v=new Map;function g(e){if(v.has(e.group)){var t=v.get(e.group);v.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(Gt(t.events),[e.event])}))}else v.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=r)g({group:"today",startDate:r,endDate:null,event:e,body:{text:l.O.format(r,"DD"),type:"day"},monthLabel:l.O.format(r,"MMMM"),label:Kt("today")});else if(e.startDate!==i)if(e.startDate>i&&e.startDate<o){var t=l.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:l.O.format(e.startDate,"MMMM"),body:{text:l.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=o&&e.startDate<=c?g({group:"nextWeek",startDate:o,endDate:c,event:e,monthLabel:l.O.isSame(o,c,"month")?l.O.format(o,"MMMM"):"".concat(l.O.format(o,"MMM")," - ").concat(l.O.format(c,"MMM")),body:{text:"".concat(l.O.format(o,"DD"),"-").concat(l.O.format(c,"DD")),type:"range"},label:Kt("nextWeek")}):e.startDate>=s&&e.startDate<=u?g({group:"thisMonth",startDate:s,endDate:u,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("thisMonth")}):e.startDate>=d&&e.startDate<=m?g({group:"nextMonth",startDate:d,endDate:m,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("nextMonth")}):e.startDate>=p&&e.startDate<=f&&g({group:"later",startDate:p,endDate:f,event:e,monthLabel:"",body:{text:l.O.format(e.startDate,"MMM"),type:"month"},label:Kt("later")});else g({group:"tomorrow",startDate:i,endDate:null,event:e,body:{text:l.O.format(i,"DD"),type:"day"},monthLabel:l.O.format(e.startDate,"MMMM"),label:Kt("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Yt(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){o=!0,r=e},f:function(){try{i||null==t.return||t.return()}finally{if(o)throw r}}}}(v.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:l.O.format(E.startDate,"MMMM"),appLinkYear:l.O.format(E.startDate,"YYYY"),type:"date-widget-item"};y.push(w),E.events.forEach((function(e){y.push(e)}))}}catch(e){b.e(e)}finally{b.f()}return y}(e.content,e.contentType)}),[e.content]),i=e.contentType===j.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(Rt.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:j.l9.Row,contents:O.z.SpecialEvents,getChildAppLink:function(t){var n,a,r,i,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.livestream)||void 0===i?void 0:i.call(r,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:r,childComponent:Ut,extraChildComponentProps:{theme:i},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var Qt=n(39202),Xt=n(37963);function Jt(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 en=a.memo((function(e){var t,n,r=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=(t=(0,Xt.L)({className:"x7nyG",style:{transform:"scale(".concat((null==i?void 0:i.type)===j.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Jt(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)?Jt(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],u=c[1];a.useEffect((function(){e.onHover(u)}),[u]);var d="eo8oY";return i.type===j.l9.LargeRow&&(d="lhqxB"),a.createElement("div",{ref:s,className:"px-1 flex-shrink-0 position-relative ".concat(d," ").concat("A7FeL")},a.createElement(it.u,{video:e.data,type:"expandable",appLink:e.getAppLink(r),imageOptions:{size:o},preload:l,hovering:u,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,commonVideoProps:e.commonVideoProps}))}));const tn="eSMIx",nn="layDP";function an(e){var t,n=At.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Medium):"";return a.createElement("div",null,a.createElement(S.F,{appLink:n,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(tn," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":nn),analyticsData:{url:Qt.C$.getHref(n)},analyticsOptions:{actionType:s.Vw.Click,entity:s.py.Url,location:s.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(x.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:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var rn=n(81993);function on(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:s.py.Rating,actionType:s.Vw.Click,location:s.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(rn.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(u.x,{svgName:v.vn.Search,size:u.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var ln=n(72639);function cn(e){var t,n=(t=e.presentation,me.i.getMappedPresentationLevel(t.learningLevel)===ln.p.Level_1?64:128),r=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,r)},collection:r,childComponent:on,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:r.length},prefetched:!0}))}function sn(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 un(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 dn="iCyo4",mn="cgv_6";function pn(e){var t,n,r,i,o,l,c=(0,A.k)(),u={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(S.F,{appLink:function(){var t,n,a=Dt.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(dn),style:{backgroundImage:"url('".concat((l=Dt.m.first(e.content),f.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:m.__.Banners},{size:m.h2.Large})),"')")}},e.name&&a.createElement("div",{className:mn},a.createElement("p",{className:(o="text-white clamp-2",c.xs||c.sm?o+=" h4":c.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(i=null===(r=e.metadata)||void 0===r?void 0:r.cta)||void 0===i?void 0:i.text))))}function fn(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(dn)},a.createElement("div",{className:"".concat(mn)}))}function vn(e){return vn="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},vn(e)}function gn(e,t,n){return(t=function(e){var t=function(e){if("object"!=vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hn,yn,bn;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(hn||(hn={})),function(e){e.Dark="dark",e.White="white"}(yn||(yn={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(bn||(bn={})),hn.H1,hn.H2,hn.H3,hn.H4,hn.H5,hn.H6,yn.Dark,yn.White,bn.NewWindow;var En=gn(gn(gn(gn({},bn.NewWindow,v.vn.NewWindow),bn.TopicDirectory,v.vn.Grid),bn.TopicNewReleases,v.vn.Sparkle),bn.CuratedTopic,v.vn.Rectangles),wn=gn(gn(gn(gn(gn(gn(gn(gn({},hn.H1,"h1"),hn.H2,"h2"),hn.H3,"h3"),hn.H4,"h4"),hn.H5,"h5"),hn.H6,"h6"),yn.Dark,"text-dark"),yn.White,"text-white");const kn="b5ljD",Ln="dj_1H",xn="UBcVE",Sn="fGBlR",Cn="lkPfM";function Nn(e){var t,n,r,i=wn[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||hn.H6],o=wn[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||yn.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Ln," ").concat(xn," d-flex"),style:{backgroundImage:"url('".concat(f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Cn," ").concat(e.widgetTypeId===de.z.Blurb?xn:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(i," ").concat(o," mb-0")},e.name),(null===(r=e.metadata.cta)||void 0===r?void 0:r.text)&&a.createElement(Z.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function Tn(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var r="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(Z.h,{svgName:En[e.cta.icon],className:r,openInNewTab:!0},e.cta.text):a.createElement("div",{className:r},e.cta.text)}function On(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(Tn,{cta:e.cta}))))}function jn(e){var t,n,r,i=Dt.m.first(e.content),o={location:s.LZ.Classification,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Banner};return a.createElement(On,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,i),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(f.j.createBannerUrl(i.banner,{fallbackBaseUrl:"",fallbackCategoryName:i.name,type:m.__.Banners},{size:m.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(r=e.metadata)||void 0===r?void 0:r.cta})}function Pn(e){var t=e.hasPermissions(Pt.C.ManageSubjectPreferences)||e.hasLocalPermissions(Pt.E.ManagePublicPresentation);function n(t){var n,r,i={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:s.py.Presentation,actionType:s.Vw.Click,location:s.LZ.HeroBannerSmallWidget};return a.createElement(S.F,{className:"info-link d-inline",appLink:null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===r?void 0:r.call(n),appLinkOptions:i,analyticsData:o,analyticsOptions:l},t.name)}var r=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Ln," ").concat(Sn),style:{backgroundImage:"url('".concat(f.j.getUrlById(e.imageCdnUrl,m.__.Banners,e.metadata.imageId,m.h2.Large),"')")}},r&&a.createElement("div",{className:"".concat(Cn," ").concat(Sn," px-3")},a.createElement("p",{className:"h6 mb-0"},r," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Dt.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Dn(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(Nn,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(Pn,Object.assign({},e,{content:e.content}));default:return a.createElement(jn,Object.assign({},e,{content:e.content}))}}function An(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(kn)},a.createElement("div",{className:"".concat(Cn)}))}function In(e){var t,n,r=Dt.m.first(e.content),i=(0,A.k)(),o={id:r.id,name:r.name,presentationId:r.presentationId},l={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return a.createElement(On,{heading:e.name,appLink:function(){var t,n,a,i,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case j.NK.TopicDirectory:return null===(i=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===i?void 0:i.call(a,r);case j.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,r);case j.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,r)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=r.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:i.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function Mn(e){var t,n,r,i,o,l,c,u=null===(t=e.content)||void 0===t?void 0:t[0],d="thumbnail"in u&&f.j.createUrl(null===(n=u.thumbnail)||void 0===n?void 0:n.url,{size:m.h2.Medium}),p="metadata"in u&&(null===(r=u.metadata)||void 0===r?void 0:r.backgroundColor),v={backgroundColor:p,backgroundSize:"50%"};d&&(v.backgroundImage="url('".concat(d,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:u.id,name:u.name,presentationId:"presentationId"in u&&u.presentationId}),h={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return d&&p?a.createElement(On,{heading:e.name,appLink:null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===o?void 0:o.call(i,u),analyticsData:g,analyticsOptions:h,style:v,cta:Object.assign({text:B.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(c=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==c?c:{})}):a.createElement(Dn,Object.assign({},e))}var Fn=n(43306),Vn=n(2948),_n=n(19476),Bn=n(25925),Rn=n(21750),zn=n(1666),Wn=(n(99940),n(97395)),Hn=n(1651),Zn=n(56050);function Un(e){return Un="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},Un(e)}function Gn(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,Yn(a.key),a)}}function Yn(e){var t=function(e){if("object"!=Un(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Un(t)?t:t+""}var qn,Kn,$n=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,r=e.cursor;n&&(this.id=n),a&&(this.sort=a),r&&(this.cursor=r),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 Hn.Ry.throw(new Zn.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Gn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Qn(e){return Qn="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},Qn(e)}function Xn(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,Jn(a.key),a)}}function Jn(e){var t=function(e){if("object"!=Qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ea=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ta(e)}function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},na(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(qn||(qn={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Kn||(Kn={}));var aa=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kn.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=ta(t),function(e,t){if(t&&("object"==Qn(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,ea()?Reflect.construct(t,n||[],ta(e).constructor):t.apply(e,n))}(this,t,[{collectionPrefix:"user:playlists",cursor:a,sort:n}])).type=r,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&&na(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&Xn(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}($n),ra=n(62803),ia=(n(5960),n(4594)),oa=(n(78417),n(17447)),la=n(61699),ca=n(31949),sa=n(22902),ua=n(37802),da=n(75795);function ma(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 pa={HIGH:.75,MODERATE:.5};function fa(e){return fa="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},fa(e)}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=fa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ga;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(ga||(ga={}));var ha,ya=va(va(va({},ga.ExtraSmall,{size:2}),ga.Small,{size:2}),ga.Large,{size:5.8});function ba(e){var t=ya[e].size,n=e===ga.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function Ea(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function wa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pa;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function ka(e,t){var n="d-inline-block ".concat("p8Vgz");return e===ga.Large&&(n+=" ".concat("N8KCI")),e===ga.ExtraSmall&&(n+=" ".concat("RPqZ2")),La(t)&&(n+=" ".concat("DKrcq")),n}function La(e){return"number"!=typeof e}function xa(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,r=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=r.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:ba(e.size),className:"asGGE"}),!La(e.percentage)&&a.createElement("circle",{ref:t,r:ba(e.size),className:Ea(e.percentage,e.scoreThresholds)}))}function Sa(e){var t,n,r=function(e){if(!La(e))return+e.toFixed(2)}(e.percentage),i=e.size||(e.layout===ha.LabelInside?ga.Large:ga.Small),o=e.customLabel||(La(n=r)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===ha.LabelOnly?a.createElement("span",{className:wa(r)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===ha.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:ka(i,r)},a.createElement(xa,{percentage:r,size:i,scoreThresholds:e.scoreThresholds}),e.layout===ha.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"}(ha||(ha={})),Sa.defaultProps={layout:ha.CircleOnly};var Ca=n(64818);var Na="widgets.onboardingSteps",Ta=B.T.encloseNamespace(Na);function Oa(e){var t,n,r,o,l,c,m,p,f=function(e){var t,n,r,o,l,c,s,u,d=(s=(0,Vn.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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(s,u)||function(e,t){if(e){if("string"==typeof e)return ma(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)?ma(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],f=i.a.useBasicFetch(ca.N.currentUser()),v=i.a.useBasicFetch((null===(t=f.data)||void 0===t?void 0:t.isAuthenticated)&&ca.N.user(f.data.id)),g=i.a.useBasicFetch((null===(n=f.data)||void 0===n?void 0:n.isAuthenticated)&&zn.h.customer(f.data.customerId)),h=i.a.useBasicFetch(Rn.x.availablePresentations(Bn.R.Subject)),y=i.a.useBasicFetch(Rn.x.presentation(Bn.R.Subject)),b=i.a.useBasicFetch(Rn.x.availablePresentations(Bn.R.Curriculum)),E=i.a.useBasicFetch((r=new aa,o=r.sort,l=r.type,c={sort:o,query:"{limit:100}".concat(ra.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},r.cursor&&(c.cursor=r.cursor),{url:Wn._.urlBuilder("/api/domain/v2/me/playlists/".concat(l),c),key:r.toString()})),w=i.a.useBasicFetch(la.o.mySubjectPreferences()),k=(0,sa.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;E.hasCompleted&&m!==!!(null===(t=null===(e=E.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&p(!!(null===(a=null===(n=E.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[E.hasCompleted]);var L=f.hasCompleted&&v.hasCompleted&&g.hasCompleted&&h.hasCompleted&&b.hasCompleted&&y.hasCompleted&&E.hasCompleted&&w.hasCompleted&&null!==m,x=(0,ua.r)(null).userSettings;return{getPathway:function(){var t,n,a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.jobTitleOverride||(null===(a=null===(n=null===(t=v.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),o=r.preferredPresentationOverride||y.data;return L?_n.m.getOnboardingPathway({jobTitle:i,userSettings:x.data,presentations:h.data,curriculums:b.data,preferredSubjects:w.data,preferredPresentation:o,appLink:da.O.getCurrentRoute().appLink,appLinks:e,masterUser:v.data,customer:g.data,hasPlaylist:m,hasPermissions:k,currentUser:f.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:L}}(null!==(r=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==r?r:{}),g=f.getPathway,h=f.hasLoadedPathway,y=h&&g(),b=Ca.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(Pt.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var E=function(){if(e.isPreviewing)return{};var t=Fn.H[y.currentScreen],n=y.screens[y.currentScreen],a=null==n?void 0:n.next,r=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:r,progress:_n.m.getProgress(y)},_n.m.getOnboardingScreenStates(y))}(),w=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=_n.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=w.overallPercentage,L=w.totalScreens,x=w.currentStepNumber;return a.createElement("div",{className:"rounded-3 bg-light-yellow border border-2 border-dark position-relative d-flex align-items-center ".concat("QU4re")},a.createElement("div",{className:"".concat("zmH98")},a.createElement("div",{className:"T9LAC"},a.createElement(Sa,{percentage:Math.round(k)/100,layout:ha.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=Fn.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=Fn.H[y.currentScreen])||void 0===l?void 0:l.getWidgetHeading(b)),a.createElement("div",{className:"dTKo5"},a.createElement(u.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var r=Fn.H[e];return t===n?"".concat(Ta("lastStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):1===t?"".concat(Ta("firstStepDescriptionPrefix")," ").concat(null==r?void 0:r.getWidgetDescription(a)):"".concat(Ta("descriptionPrefix")," ").concat(null==r?void 0:r.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===(c=e.imageUrls)||void 0===c?void 0:c.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:E,analyticsOptions:{actionType:s.Vw.Click,entity:s.py.User,location:s.LZ.OnboardingStepsWidget,descriptor:s.Ix.FinishPersonalising}},a.createElement(d.x,{namespace:Na,phrase:"completeSetup"}))))}function ja(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 Pa=n(31015),Da=n(68626),Aa=n(80143);var Ia=a.memo((function(e){var t,n=e.data,i=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,u=(0,Aa.n)(s,c),d=(0,A.k)(),m="JSM4l";return i.type===j.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(it.u,{video:e.data,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,type:e.preventPopout||d.xs?"static":"popout",textPosition:Da.z.Below,appLink:e.getAppLink(n),imageOptions:{size:o},preload:l,audience:u,hideRating:!!u,hideDuration:!1,onClickRemove:r.q.isFunction(e.onClickRemoveItem)&&function(){return e.onClickRemoveItem(n.id,n.name)},removeButtonTooltip:e.removeButtonTooltip,commonVideoProps:e.commonVideoProps}))}));function Ma(e){var t,n,r,i,o,l,c,s,u,d=Pa.u[e.widgetTypeId],m=At.d.getVideoContent(e.content);return a.createElement(x.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:m,childComponent:Ia,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:At.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:At.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListLarge","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=d.getCollectionAppLink)||void 0===l?void 0:l.call(d,e.appLinks,e.content))&&void 0!==c?c:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function Fa(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 Va=B.T.encloseNamespace("shared.subjectStatsBadge");function _a(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(u.x,{svgName:v.vn.Timer,className:"svg-container ".concat("G9W_I"),size:u.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return Va("comingSoon");case"new-topic":return Va("new");case"new-videos":return Va("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function Ba(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(_a,{badgeType:"new-videos",newVideoCount:t})):a.createElement(a.Fragment,null)}function Ra(e){var t,n,r,i,o,l,c,s,u,d=Pa.u[e.widgetTypeId],m=At.d.getVideoContent(e.content);return a.createElement(x.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:j.l9.Row,contents:O.z.Videos,collection:m,childComponent:Ia,extraChildComponentProps:{presentationAudiences:e.audiences,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(i=e.metadata)||void 0===i?void 0:i.hideObjectSeries,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),preventPopout:e.preventPopout,showNewVideoIndicator:null===(o=e.settings)||void 0===o?void 0:o.hasTopicDirectories,onClickRemoveItem:At.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:At.d.showRemoveButton(e.widgetTypeId)?B.T.getPhrase("widgets.popoutThumbnailSlidingListSmall","removeFromWatchHistory"):"",commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(c=null===(l=d.getCollectionAppLink)||void 0===l?void 0:l.call(d,e.appLinks,e.content))&&void 0!==c?c:null===(u=null===(s=e.appLinks)||void 0===s?void 0:s.widgetVideoList)||void 0===u?void 0:u.call(s,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Ba,Object.assign({},e))})}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Wa=function(e){var t,n,r=(t=(0,A.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(r),function(e){if(Array.isArray(e))return za(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 za(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?za(e,t):void 0}}(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")}))}))))},Ha=n(56210);function Za(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement("ul",{className:"list-unstyled mx-n1 mb-n2 row"},e.content.map((function(t){return a.createElement("li",{key:t.id,className:"px-1 col-lg-3 col-md-4 col-sm-6 col-xs-12"},a.createElement(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:s.py.Series,actionType:s.Vw.Click,descriptor:s._S.TallPoster,location:s.LZ.PosterFixedListLargeWidget}},a.createElement(Ha.r,{series:t,presentationAudiences:e.audiences,preloadImage:!1})))}))))}function Ua(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),r=Object.assign(Object.assign({},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Series,descriptor:s._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:r},a.createElement(Ha.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Ga(e){return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Series,collection:e.content,childComponent:Ua,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 Ya="fgIje",qa="CJwKL";var Ka=function(e){return a.createElement("div",{className:"".concat(e.type===j.l9.Row?Ya:qa," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function $a(e){for(var t,n,r=(t=e.type,(n=(0,A.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===j.l9.LargeRow?5:6),i=[],o=0;o<r;o++)i.push(a.createElement(Ka,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(D.l,null),a.createElement("div",{className:"row g-0 mx-n1"},i))}var Qa=n(87611),Xa=n(26533);function Ja(e){var t,n=e.data,r=e.preloadImage,i=Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Classification,actionType:s.Vw.Click,descriptor:s._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===j.l9.Row?t+=" ".concat(Ya):t+=" ".concat(qa),t)},a.createElement(Qa.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:m.__.TallPosters,preload:r,imageOptions:{size:m.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:i},a.createElement(Xa.oy,{type:Xa.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function er(e){return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Subjects,collection:e.content,childComponent:Ja,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 tr(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 nr="explore-all-topics";function ar(e){var t,n=function(e){var t,n,a,r,i;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===j.OL.ExploreAllTopics?nr:"",name:null===(r=e.metadata)||void 0===r?void 0:r.text,tallPoster:{url:(null===(i=e.metadata)||void 0===i?void 0:i.imageId)?f.j.getUrlById(e.imageCdnUrl,m.__.TallPosters,e.metadata.imageId,m.h2.Medium):""}}}(e),r=At.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(x.k,{id:e.id,name:e.name,appLink:r,description:e.description,type:j.l9.Row,contents:O.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return tr(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 tr(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)?tr(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:Ja,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,r,i;return t.id?t.id===nr?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function rr(e){var t;return a.createElement("div",null,a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.SmallSeries,collection:e.content,childComponent:Ua,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 ir=n(34864);function or(e){var t=Dt.m.first(e.content),n=t.question,r=t.answer;return a.createElement(ir.$,{id:e.id,answer:r,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const lr="Jg3am";function cr(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(lr," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var sr=n(57900),ur=n(96953),dr=n(10038),mr=n(25104);function pr(e){return pr="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},pr(e)}function fr(){fr=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,a){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),l=new j(a||[]);return r(o,"_invoke",{value:C(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",f="executing",v="completed",g={};function h(){}function y(){}function b(){}var E={};s(E,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(P([])));k&&k!==n&&a.call(k,o)&&(E=k);var L=b.prototype=h.prototype=Object.create(E);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,o,l){var c=d(e[r],e,i);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==pr(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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function C(t,n,a){var r=m;return function(i,o){if(r===f)throw Error("Generator is already running");if(r===v){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=N(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===m)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=f;var s=d(t,n,a);if("normal"===s.type){if(r=a.done?v:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=v,a.method="throw",a.arg=s.arg)}}}function N(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,N(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(pr(t)+" is not iterable")}return y.prototype=b,r(L,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},x(S.prototype),s(S.prototype,l,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new S(u(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gr(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)?gr(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 gr(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 hr=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))};function yr(e){var t,n,r,i=vr((0,Vn.D)("should:expand:".concat(e.id),e.isBot,{storage:sr.Z1.LocalStorage}),2),o=i[0],l=i[1],d=vr(a.useState(o?"100%":"0px"),2),m=d[0],p=d[1],f=vr(a.useState(null),2),g=f[0],h=f[1],y=a.useRef(null),b=a.useRef(null),E=(0,ur.F)();function w(){var t;return hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p("0px"),l(!1),n.next=4,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!1});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}function k(){var e=document.createElement("p");e.innerHTML=g,e.style.visibility="hidden",e.classList.add("py-1"),y.current.appendChild(e),p("".concat(e.clientHeight-10,"px")),y.current.removeChild(e)}if(a.useEffect((function(){!function(){var t;hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:o});case 2:if(a=n.sent,E.current){n.next=5;break}return n.abrupt("return");case 5:h(a),o&&k();case 7:case"end":return n.stop()}}),n)})))}()}),[null===(t=e.faq)||void 0===t?void 0:t.answer]),(0,dr.H)((function(){o&&w()}),null,[o]),!(null===(n=e.faq)||void 0===n?void 0:n.question)||!(null===(r=e.faq)||void 0===r?void 0:r.answer))return a.createElement(a.Fragment,null);var L="question-".concat(e.id),x="answer-".concat(e.id);return a.createElement(kt.L,{onClick:function(t){mr.R.isLink(t.target)||0===window.getSelection().toString().length&&(c.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:s.py.Faq,actionType:s.Vw.Click,descriptor:o?s._S.Collapse:s._S.Expand,location:s.LZ.FaqQuestionAccordionWidget}),o?w():function(){var t;hr(this,void 0,void 0,fr().mark((function n(){var a;return fr().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return k(),l(!0),n.next=4,mr.R.parse(null===(t=e.faq)||void 0===t?void 0:t.answer,{focusableLinks:!0});case 4:if(a=n.sent,E.current){n.next=7;break}return n.abrupt("return");case 7:h(a);case 8:case"end":return n.stop()}}),n)})))}())},"aria-expanded":o,"aria-controls":x,className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(lr)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(u.x,{svgName:o?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal",id:L},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:m},id:x,"aria-labelledby":L,"aria-live":"polite","aria-hidden":!o},a.createElement("p",{className:"mb-0 py-1 ".concat(mr.R.getContainerClass()),dangerouslySetInnerHTML:{__html:g},ref:b}),a.createElement("div",{ref:y,"aria-hidden":!0,className:mr.R.getContainerClass()})))}function br(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(yr,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const Er={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function wr(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(Er.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:Er.partialIcon},a.createElement(Xa.oy,{type:Xa.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 kr=n(2284);function Lr(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 xr=B.T.encloseNamespace("shared.subjectStatsWidgetItem");function Sr(e){var t,n,r,i,o,c,d=(o=a.useState(!1),c=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(o,c)||function(e,t){if(e){if("string"==typeof e)return Lr(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)?Lr(e,t):void 0}}(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===kr.W.ComingSoon,h=me.i.isFollowing(e.classification),y=me.i.getCounts(e.classification),b=y.dashboardNewVideosCount,E=y.childDashboardNewVideoCount,w=y.dashboardResourceCount,k=y.childDashboardResourceCount,L=y.dashboardVideoCount,x=y.childDashboardVideoCount,C=y.childClassificationCount,N=L+x,T=w+k,O=b+E,j=function(){if(e.classification.status===kr.W.ComingSoon||e.hideCounts)return"";var t="";if(N&&(t+="".concat(xr("videos",{smartCount:N})," ")),T&&(t+=" • ".concat(xr("resources",{smartCount:T}))),me.i.isTopLevelTopic(e.classification)&&C>0){if(!t)return xr("topics",{smartCount:C});t="".concat(xr("topics",{smartCount:C})," • ")+t}return t}();return a.createElement(S.F,{className:"d-flex no-decoration rounded ".concat(Er.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===(r=e.classification)||void 0===r?void 0:r.id,name:null===(i=e.classification)||void 0===i?void 0:i.name,presentationId:e.classification.presentationId,comingSoon:!!g,videoCount:N,resourceCount:T,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:s.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Cover})},!p&&a.createElement(Xa.oy,{type:Xa.mS.Subject,extraClasses:"ms-2 rounded-end-lg ".concat(Er.fallbackImage)}),a.createElement("div",{className:"".concat(Er.cover," me-2 rounded overflow-hidden")},a.createElement(Qa.Z,{data:e.classification.cover,imageOptions:{size:m.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return f(!0)}},e.canFollowTopics&&a.createElement(kt.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,s.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(Er.bellContainer," ").concat(h?Er.followed:"","\n ")},a.createElement(u.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(Er.bell)}),a.createElement(u.x,{svgName:v.vn.Bell,className:"svg-container ".concat(Er.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(Er.subText)},j),a.createElement(_a,{badgeType:function(){if(e.classification.status===kr.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&l.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function Cr(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(M.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(F.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(Sr,{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}))}))))}var Nr=n(63112);function Tr(){return a.createElement("div",{className:"me-2"},a.createElement(Nr.o,null))}var Or=n(30699);function jr(e){return function(e){if(Array.isArray(e))return Pr(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 Pr(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)?Pr(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 Pr(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 Dr(e){var t=e.getSelectedItems(e.widgetTypeId),n=e.content.filter((function(e){return!t.find((function(t){return t.id===e.id}))})),r=[].concat(jr(t),jr(n));function i(t){Qt.C$.trigger(e.appLinks.tag(t))}return a.createElement(he.eb,{collection:r,childComponent:function(e){return a.createElement(Or.a,Object.assign({},e,{selectedItems:t,onClick:i}))},partialLoadingComponent:Tr,partialLoadingOptions:{numItems:4}})}function Ar(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Ir(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(Ar,null),a.createElement(Ar,null))}var Mr=n(84431);function Fr(e){var t,n,r=Dt.m.first(At.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement(Mr.J,{video:r,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:oa.M.showVideoGuidance(e.hasPermissions),showNewVideoIndicator:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,commonVideoProps:e.commonVideoProps}))}var Vr=n(18967),_r=n(88711);function Br(e){var t,n,r,i,o,l,c=e.folder.thumbnail?Wn._.urlBuilder(e.folder.thumbnail.url,{size:m.h2.Small}):null,u=null===(i=null===(r=null===(n=null===(t=e.folder)||void 0===t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===r?void 0:r[0])||void 0===i?void 0:i.owner,d=e.showOwnerLogo&&(null===(o=null==u?void 0:u.logo)||void 0===o?void 0:o.url)?Wn._.urlBuilder(u.logo.url,{size:m.h2.Small}):null,p=null===(l=e.getFolderActions)||void 0===l?void 0:l.call(e,e.folder),f=e.analyticsData?Object.assign({id:e.folder.id.toString(),name:e.folder.name},e.analyticsData):void 0,v=e.analyticsOptions?Object.assign({actionType:s.Vw.Click,entity:s.py.Folder},e.analyticsOptions):void 0;return a.createElement(_r.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:f,analyticsOptions:v},a.createElement(Qa.Z,{data:c,imageType:m.__.Thumbnails,imageClassName:"rounded-top-lg"},a.createElement(Xa.oy,{name:e.folder.name,type:Xa.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(Vr.e,{actions:p,className:"xM37V",actionsDropdownClassName:"cN3nB",dropdownToggleSvgSize:null}),!!d&&a.createElement("img",{src:d,className:"rounded-circle ".concat("g3JFo"),alt:"".concat(null==u?void 0:u.name," logo"),title:(null==u?void 0:u.name)||""})))}function Rr(e){function t(t){var n,a,r;if(e.widgetTypeId===de.z.SearchMySchoolLibraryFolder){var i=null===(r=null===(a=null===(n=null==t?void 0:t.libraries)||void 0===n?void 0:n.data)||void 0===a?void 0:a[0])||void 0===r?void 0:r.id;return e.appLinks.folder(t,{libraryId:i})}return e.appLinks.folder(t)}var n=e.widgetTypeId===de.z.SearchMySchoolLibraryFolder;return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(r,i){var o="function"==typeof e.getAnalyticsData?e.getAnalyticsData(i):{};return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"pb-3 px-1"},a.createElement(Br,{folder:r,getAppLink:t,showOwnerLogo:n,analyticsData:o,analyticsOptions:{location:s.LZ.ThumbnailFixedListFolderSmallWidget}}))}))))}function zr(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 Wr(e){var t,n={};return e.data.fallbackBackgroundColor&&(n.backgroundColor=e.data.fallbackBackgroundColor),e.data.backgroundColor&&(n.backgroundColor=e.data.backgroundColor),e.data.thumbnailUrl&&(n.backgroundImage="url('".concat(e.data.thumbnailUrl,"')")),a.createElement("div",{className:(0,o.A)("d-flex position-relative rounded-3 h-100","gKcbE",e.isLarge?"Ldth1":"z6ZxE"),style:n},a.createElement("div",{className:(0,o.A)("aOotU",!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",{title:e.data.name,className:(0,o.A)("h5 text-shadow hover-text-underline","bSXFz",e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3")},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:(0,o.A)(!e.appLink&&"cursor-default","btn btn-outline-dark")},(null===(t=e.data)||void 0===t?void 0:t.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 Hr=a.memo((function(e){return e.appLink?a.createElement(S.F,{className:"YtffT",appLink:e.appLink,appLinkOptions:e.appLinkOptions,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement(Wr,Object.assign({},e))):a.createElement(Wr,Object.assign({},e))})),Zr=B.T.encloseNamespace("shared.thumbnailFixedListLargeWidgetTemplate");function Ur(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){return a.createElement(F.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Hr,Object.assign({},function(e){var t,n,a,r,i,o,l,c,u,d={data:{name:e.item.name,description:e.item.description}},p=(null===(t=e.item)||void 0===t?void 0:t.status)===kr.W.ComingSoon,v=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!p}),g=Object.assign(Object.assign({location:s.LZ.ClassificationListItem},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail});return Object.assign(Object.assign({},d),{data:Object.assign(Object.assign({},d.data),{backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:f.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:f.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium}),buttonText:Zr("exploreTopic")}),appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===u?void 0:u.call(c,e.item),isLarge:!0,analyticsData:v,analyticsOptions:g})}({appLinks:e.appLinks,item:t,analyticsData:e.analyticsData}))))}))))}const Gr="HwejH";var Yr=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"}}))},qr=n(89452);function Kr(e){var t,n,r,i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),o=a.useRef(null),l={actionType:s.Vw.Click,entity:oa.M.getAnalyticsEntity(e.video),location:s.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:s._S.Thumbnail},c=(0,Aa.n)(null===(r=e.video.subjectPresentationAudiences)||void 0===r?void 0:r.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:o},a.createElement(it.u,{analyticsData:e.analyticsData,analyticsOptions:l,video:e.video,appLink:i,imageOptions:{size:m.h2.Medium},textPosition:Da.z.Independent,type:"static",audience:c,hideRating:!!c,commonVideoProps:Object.assign(Object.assign({},e.commonVideoProps),{subTextType:"none"})})),a.createElement(qr.h,{video:e.video,appLink:i,commonVideoProps:e.commonVideoProps}),oa.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{commonVideoProps:e.commonVideoProps,video:e.video,analyticsData:e.analyticsData,analyticsOptions:l,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function $r(e){var t=At.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(Kr,Object.assign({key:t.id,video:t},e))}))))}function Qr(e){return a.createElement("h3",{title:e.title,className:"h6"},e.title)}function Xr(e){return e.appLink?a.createElement(S.F,{appLink:e.appLink,className:"".concat("OsWjL")},a.createElement(Qr,Object.assign({},e))):a.createElement(Qr,Object.assign({},e))}var Jr=n(26117),ei=n(45778);const ti="M4zat";var ni="shared.collectionThumbnail";function ai(e){var t,n,r,i,o=function(){var t,n=null===(t=e.collection)||void 0===t?void 0:t.videos;if(n){if(!n.count&&e.collection.typeId===ia.E.Playlist){var a=e.collection;a.clips.count&&(n=a.clips),a.interactives.count&&(n=a.interactives)}return Dt.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===ia.E.Playlist){var r=e.collection;(null===(t=r.interactives)||void 0===t?void 0:t.count)&&(a+=r.interactives.count),(null===(n=r.clips)||void 0===n?void 0:n.count)&&(a+=r.clips.count)}return a}(),c=(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:s.Vw.Click,entity:(i=e.collection,ei.G.isType(i,ia.E.Playlist)?s.py.Playlist:ei.G.isType(i,ia.E.Series)?s.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(ti," d-flex align-items-center w-fit flex-grow-0 bg-dark rounded-pill ps-1 m-2")},a.createElement(u.x,{svgName:v.vn.Play,className:"svg-container text-white"}),a.createElement("p",{className:"d-inline fw-medium text-white mb-0"},(null===(r=e.hoverText)||void 0===r?void 0:r.length)?a.createElement("span",null,e.hoverText):a.createElement(d.x,{namespace:ni,phrase:"playAll"})))),o&&a.createElement(it.u,{video:o,imageOptions:e.imageOptions,textPosition:Da.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(u.x,{svgName:v.vn.Play,className:"w-33 opacity-25 text-gray-400"}))),e.showVideoCount&&a.createElement("div",{className:"".concat(ti," 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(u.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(d.x,{namespace:ni,phrase:"videos",options:{count:l,smartCount:l}}))))),c&&a.createElement("div",{className:"mt-2 d-flex flex-column"},e.subText&&a.createElement(Jr.m,{title:e.subText,appLink:e.subTextAppLink},e.subText),e.title&&a.createElement(Xr,{title:e.collection.name,appLink:e.titleAppLink})))}function ri(e){return ri="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},ri(e)}function ii(e,t,n){return(t=function(e){var t=function(e){if("object"!=ri(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ri(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oi=B.T.encloseNamespace("widgets.thumbnailFixedListMediaSmallWidgetTemplate");function li(e){var t=ii(ii({},ia.E.Playlist,oi("playlist")),ia.E.Series,oi("series")),n=ii(ii({},ia.E.Playlist,oi("viewPlaylist")),ia.E.Series,oi("viewSeries"));return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n3"},e.content.map((function(r,i){var o,l=(o=r,ei.G.isType(o,ia.E.Playlist)?e.appLinks.playlist(o):ei.G.isType(o,ia.E.Series)?e.appLinks.series(o):void 0),c=t[null==r?void 0:r.typeId],u=n[null==r?void 0:r.typeId];return a.createElement(F.Z,{as:"li",key:r.id,lg:3,md:4,sm:6,xs:12,className:"mb-3 px-1"},a.createElement(ai,{collection:r,appLink:l,analyticsOptions:{location:s.LZ.ThumbnailFixedListMediaSmallWidget},analyticsData:e.getAnalyticsData(i),title:null==r?void 0:r.name,titleAppLink:l,imageOptions:{size:m.h2.Medium},subText:c,subTextAppLink:l,hoverText:u,showVideoCount:!0,showMask:!0}))}))))}function ci(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 si(e){return a.createElement(a.Fragment,null,a.createElement(re.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing,showSeeMoreLink:!!e.seeMoreLink,appLink:e.seeMoreLink,badgeComponent:e.badgeComponent}),a.createElement(M.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},([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 r="function"==typeof e.getAnalyticsData?e.getAnalyticsData(n):e.analyticsData,i=function(e){var t,n,a,r,i,o,l,c,u,d,p,v,g,h,y={data:{name:e.item.name,description:e.item.description}};if(ei.G.isType(e.item,ia.E.Subject)){var b=(null===(t=e.item)||void 0===t?void 0:t.status)===kr.W.ComingSoon,E=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.item)||void 0===n?void 0:n.id,name:null===(a=e.item)||void 0===a?void 0:a.name,presentationId:null===(r=e.item)||void 0===r?void 0:r.presentationId,comingSoon:!!b}),w=Object.assign(Object.assign({location:s.LZ.ThumbnailFixedListSmallWidget},e.analyticsOptions),{actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail}),k=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({},y),{data:Object.assign(Object.assign({},y.data),{preTitle:k,backgroundColor:null===(i=e.item.metadata)||void 0===i?void 0:i.backgroundColor,coverUrl:f.j.createUrl(null===(o=e.item.cover)||void 0===o?void 0:o.url,{size:m.h2.Small}),thumbnailUrl:f.j.createUrl(null===(l=e.item.thumbnail)||void 0===l?void 0:l.url,{size:m.h2.Medium})}),appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===u?void 0:u.call(c,e.item),analyticsData:E,analyticsOptions:w})}return ei.G.isType(e.item,ia.E.Company)?Object.assign(Object.assign({},y),{data:Object.assign(Object.assign({},y.data),{coverUrl:f.j.createUrl(null===(d=e.item.logo)||void 0===d?void 0:d.url,{size:m.h2.Small}),backgroundColor:null===(p=e.item.metadata)||void 0===p?void 0:p.colour}),appLink:null===(g=null===(v=e.appLinks)||void 0===v?void 0:v.company)||void 0===g?void 0:g.call(v,e.item),appLinkOptions:null===(h=e.appLinkOptions)||void 0===h?void 0:h.company(e.item)}):y}({item:t,widgetTypeId:e.widgetTypeId,appLinks:e.appLinks,analyticsData:r,availablePresentations:e.availablePresentations,appLinkOptions:e.appLinkOptions});return a.createElement(F.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Hr,Object.assign({},i)))}))))}function ui(e){var t,n,r,i,o,l,c=Dt.m.first(e.content),u=f.j.createUrl(null===(t=c.thumbnail)||void 0===t?void 0:t.url,{size:m.h2.Medium}),d=null===(n=c.metadata)||void 0===n?void 0:n.backgroundColor,p={backgroundColor:d};u&&(p.backgroundImage="url('".concat(u,"')"));var v=Object.assign(Object.assign({},e.analyticsData),{id:c.id,name:c.name,presentationId:c.presentationId}),g={location:s.LZ.ClassificationListItem,actionType:s.Vw.Click,entity:s.py.Classification,descriptor:s._S.Thumbnail};return u&&d?a.createElement(a.Fragment,null,a.createElement(S.F,{appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===i?void 0:i.call(r,c),className:"text-decoration-none",analyticsData:v,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:p},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"},c.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(pn,Object.assign({},e))}var di=n(45756);function mi(e){var t,n,r,i,o,l,c,u,d=Dt.m.first(At.d.getVideoContent(e.content)),p=a.useRef(null),f=(0,Aa.n)(null===(t=d.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),v=oa.M.hasSeries(d)||At.d.isCompanyWidget(e.widgetTypeId),g={actionType:s.Vw.Click,entity:oa.M.getAnalyticsEntity(d),location:s.LZ.ThumbnailHeroMediaWidget},h=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,y=oa.M.getCanBeConsumed(d).canNavigate;return d?a.createElement("div",null,a.createElement(re.B,{name:e.name,description:e.description}),a.createElement("div",{ref:p},a.createElement(it.u,{video:d,imageOptions:{size:m.h2.Large},type:"static",textPosition:Da.z.Independent,analyticsOptions:g,audience:f,hideRating:!!f,appLink:null===(i=null===(r=e.appLinks)||void 0===r?void 0:r.videoType)||void 0===i?void 0:i.call(r,d,{}),commonVideoProps:e.commonVideoProps})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,oa.M.isVideo(d)&&a.createElement(ct.$,{type:At.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.commonVideoProps.subTextType,video:d,appLink:null===(l=(o=e.commonVideoProps).getSubTextAppLink)||void 0===l?void 0:l.call(o,d),analyticsOptions:g,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:v?"":"mt-2"},a.createElement(S.F,{appLink:null===(u=null===(c=e.appLinks)||void 0===c?void 0:c.videoType)||void 0===u?void 0:u.call(c,d,{}),analyticsData:{id:d.id,name:d.name},analyticsOptions:Object.assign(Object.assign({},g),{descriptor:s._S.Title}),className:"d-inline-block ".concat(y?"":"cursor-default text-decoration-none disabled"),disabled:!y},a.createElement(di.O,{video:d,yearGroups:e.commonVideoProps.yearGroups,showNewVideoIndicator:h,showPadlock:!e.commonVideoProps.hasStudentExperience,titleSize:"h4",className:"mb-0"})))),oa.M.showVideoGuidance(e.hasPermissions)&&a.createElement(ot.u,{video:d,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD"),commonVideoProps:e.commonVideoProps}))):a.createElement(a.Fragment,null)}function pi(e){var t,n;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.LargeRow,contents:O.z.Videos,collection:e.content,childComponent:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}function fi(e){var t,n;return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:en,extraChildComponentProps:{commonVideoProps:e.commonVideoProps},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var vi=n(74237),gi=n(47198);var hi=a.memo((function(e){var t,n,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,i=(0,Aa.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(it.u,{video:e.data,preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,type:"static",appLink:e.getAppLink(e.data),imageOptions:{size:e.thumbnailSize},textPosition:Da.z.Below,audience:i,hideRating:!!i,hideDuration:!1,commonVideoProps:e.commonVideoProps}))}));function yi(e){return oa.M.isVideoType(e.data)?a.createElement(hi,Object.assign({},e)):a.createElement(gi.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),vi.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function bi(e){var t,n,r=e.hasLocalPermissions(Pt.E.ViewVideoResourceItems);return a.createElement(x.k,{id:e.id,name:e.name,description:e.description,type:j.l9.Row,contents:O.z.Videos,collection:e.content,childComponent:yi,extraChildComponentProps:{imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,commonVideoProps:e.commonVideoProps,imageCdnUrl:e.commonVideoProps.imageCdnUrl},getChildAppLink:function(t){var n,a,i,o;return oa.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.widgetVideoList)||void 0===n?void 0:n.call(t,e.id,e.name)})}var Ei=n(1809);function wi(){return a.createElement(Ei.S,{numVideos:3})}var ki,Li=n(12754),xi="shared.searchSuggestionsBlurbWidgetTemplate",Si=B.T.encloseNamespace(xi);function Ci(e){return a.createElement(a.Fragment,null,'"',a.createElement(S.F,{appLink:e.appLink,appLinkOptions:{replace:!0}},a.createElement("span",{className:"text-info hover-text-underline cursor-pointer"},e.name)),'"')}function Ni(e){var t=e.content.splice(0,2);return t.length?a.createElement("div",{className:"rounded-2"},a.createElement(d.x,{phrase:"prompt",namespace:xi})," ",t.map((function(n,r){var i=t.length-1===r;return a.createElement(a.Fragment,{key:n.name},a.createElement(Ci,{appLink:e.appLinks.searchHome({query:n.name},{replace:!0}),name:n.name}),i?"?":a.createElement(a.Fragment,null," ",Si("or")," "))}))):a.createElement(a.Fragment,null)}function Ti(e){return Ti="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},Ti(e)}function Oi(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ti(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ti(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ji=(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki={},ue.f.ThumbnailHeroMedia,{getComponent:function(){return mi},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(Ir,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 Ga},partialLoading:Wa,icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv,j.ku.Company].includes(t)},className:""}),ue.f.PosterSlidingListMedium,{getComponent:function(){return er},partialLoading:function(){return a.createElement($a,{type:j.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Li.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 ar;case de.z.CuratedSeries:return rr;default:return ar}},partialLoading:function(){return a.createElement($a,{type:j.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Li.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 Fr},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(M.Z,null,a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"".concat("P3cF6"," partial-loading-background rounded-3")})),a.createElement(F.Z,{xs:12,md:6},a.createElement("div",{className:"J5CAD"},a.createElement("div",null,a.createElement("div",{style:{height:"1.5rem"}},a.createElement("div",{className:"partial-loading-background",style:{height:"1.2rem",width:"12rem"}})),a.createElement("div",{className:"partial-loading-background",style:{height:"1.5625rem",width:"15rem"}})),a.createElement("div",{className:"pt-2 mw-100"},a.createElement(Ir,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.CoverFixedPillListLarge,{getComponent:function(){return I.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(5).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Classification].includes(t):[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.StatsCoverFixedPillListLarge,{getComponent:function(){return Cr},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"g-0"},Array(6).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(wr,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.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(M.Z,{className:"mb-2 ".concat(te.row)},Array(8).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,xs:12,sm:6,lg:4},a.createElement("div",{className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"partial-loading-background me-2 rounded",style:{width:"2rem",height:"2rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"5rem",height:"1.3125rem"}})))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListXSmall,predicate:function(e){var t=e.targetType;return e.product===Li.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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(he.QL,{partialLoadingComponent:V.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Li.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(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ae.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.FeaturedThumbnailSlidingList,{getComponent:function(){return an},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(tn," ").concat(nn," mb-1 ")}),a.createElement(Rt.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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.HeroBanner,{getComponent:function(){return pn},partialLoading:fn,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover].includes(t)},className:""}),ue.f.OnboardingSteps,{getComponent:function(){return Oa},partialLoading:fn,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),ue.f.HeroBannerSmall,{getComponent:function(){return Dn},partialLoading:An,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroThumbnailSmall,{getComponent:function(){return Mn},partialLoading:function(){return a.createElement(An,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.HeroBlockColourSmall,{getComponent:function(){return In},partialLoading:function(){return a.createElement(An,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.ClassificationCurriculum].includes(t)},className:""}),ue.f.ThumbnailFixedListXLarge,{getComponent:function(){return ui},partialLoading:function(){return a.createElement(fn,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListLarge,{getComponent:function(){return Ur},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return zr(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 zr(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)?zr(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(M.Z,{className:"mx-n1"},n.map((function(e,t){return a.createElement(F.Z,{key:t,sm:12,md:6,className:"p-1"},a.createElement("div",{className:"".concat("pRXSM"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.ThumbnailFixedListSmall,{getComponent:function(){return si},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return ci(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 ci(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)?ci(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:e.hideDescription}),a.createElement(M.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(F.Z,{key:t,xl:4,md: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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Bt},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(M.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(V.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Discover].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.Heading,{getComponent:function(){return un},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!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.ClassificationDirectory,j.ku.Discover].includes(t)},className:"heading-widget-template"}),ue.f.AuthorReviewer,{getComponent:function(){return k},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(L,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.Question,{getComponent:function(){return or},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!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.QuestionAccordion,{getComponent:function(){return br},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(cr,null),a.createElement(cr,null),a.createElement(cr,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return $r},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Gr," partial-loading-background rounded-3")}),a.createElement(Yr,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ir,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Gr," partial-loading-background rounded-3")}),a.createElement(Yr,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ir,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Ma},partialLoading:function(e){return a.createElement(Rt.j7,{size:"lg",childComponent:ja,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification,j.ku.Discover,j.ku.Company,j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Ra},partialLoading:function(e){return a.createElement(Rt.j7,{size:"sm",childComponent:Fa,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===Li.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 cn},partialLoading:function(e){var t,n=(0,A.k)();return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return sn(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 sn(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)?sn(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!==Li.x.StreamableLearning&&[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.CircleLogoSlidingList,{getComponent:function(){return P},partialLoading:function(e){var t=8,n=(0,A.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Discover,j.ku.Company].includes(t):[j.ku.MoviesAndTv].includes(t)},className:""}),ue.f.EventIconSlidingList,{getComponent:function(){return $t},partialLoading:function(e){var t,n=(t=(0,A.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(D.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning?[j.ku.Discover,j.ku.Classification,j.ku.Company].includes(t):[j.ku.Discover,j.ku.Classification].includes(t)},className:""}),Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(Oi(ki,ue.f.ThumbnailVerticalList,{getComponent:function(){return ke},partialLoading:wi,icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Li.x.StreamableLearning&&[j.ku.Company,j.ku.Classification].includes(t)},className:""}),ue.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return bi},partialLoading:Rt.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Li.x.StreamableLearning&&[j.ku.Classification].includes(t)},className:""}),ue.f.CurriculumResourcesAccordion,{getComponent:function(){return yt},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background mb-2 w-25",style:{height:"1.7325rem"}}),a.createElement("div",{className:"mb-n3"},a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null),a.createElement(bt,null)))},icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailFixedListMediaSmall,{getComponent:function(){return li},partialLoading:Rt.j7,icon:null,predicate:function(){return!1},className:"thumbnail-fixed-list-media-small-widget-template"}),ue.f.ThumbnailFixedListFolderSmall,{getComponent:function(){return Rr},partialLoading:Rt.j7,icon:null,predicate:function(){return!1},className:""}),ue.f.TagSlidingList,{getComponent:function(){return Dr},partialLoading:function(e){var t="function"==typeof e.predicate&&e.predicate()||!1;return a.createElement(a.Fragment,null,a.createElement(he.QL,{partialLoadingComponent:Tr,partialLoadingOptions:{numItems:4}}),t&&a.createElement("hr",null))},icon:null,predicate:function(){return!1},className:"tag-sliding-list-widget-template"}),ue.f.CurriculumCodeSearchResults,{getComponent:function(){return Le},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement("div",{className:"partial-loading-background rounded-3 mb-3 w-100",style:{height:"5rem"}}),a.createElement(wi,null))},icon:null,predicate:function(){return!1},className:""}),ue.f.PosterFixedListLarge,{getComponent:function(){return Za},partialLoading:Wa,icon:null,predicate:function(){return!1},className:"poster-fixed-list-large-widget-template"}),ue.f.SearchSuggestionsBlurb,{getComponent:function(){return Ni},partialLoading:function(){return a.createElement("div",{className:"d-flex flex-row gap-1"},a.createElement("div",{className:"partial-loading-background",style:{width:"12rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"3rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"1rem",height:"1.25rem"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"4rem",height:"1.25rem"}}))},icon:null,predicate:function(){return!1},className:""}),ue.f.ThumbnailSlidingListSmall,{getComponent:function(){return fi},partialLoading:Rt.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),Oi(ki,ue.f.ThumbnailSlidingListLarge,{getComponent:function(){return pi},partialLoading:function(e){return a.createElement(Rt.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),Pi=n(65294);const Di={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function Ai(e,t){if(e){if("string"==typeof e)return Ii(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)?Ii(e,t):void 0}}function Ii(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 Mi(e){var t,n,l,c,s,u,d=a.createRef(),m=(s=a.useState([]),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,r,i,o,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=i.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(s,u)||Ai(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.")}()),p=m[0],f=m[1],v=null===(t=e.lazyLoad)||void 0===t||t,g=(0,Pi.Y)({prevent:!v}),h=g.ref,y=g.inView,b=r.q.isFunction(e.getContentRequest),E=i.a.useBasicFetch(!(!y||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),w=At.d.useGetContent(e.content||(null===(n=E.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(l=E.data)||void 0===l?void 0:l.preferences,p).content,k=(0,A.k)(),L=function(e,t){return!(At.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,w),x=!At.d.canDisplayOnScreenSize(k,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;b&&!E.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,L||x)}),[E.hasCompleted,L,x,b,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&d.current&&d.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,d.current]);var S=e.appLinks?Object.assign({},e.appLinks):null;(null==S?void 0:S.videoType)&&(S.videoType=function(t,n){var a;return null===(a=e.appLinks)||void 0===a?void 0:a.videoType(t,Object.assign(Object.assign({},n),{contextId:e.id,includeContext:n.includeContext}))});var C=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),N=b&&!E.hasCompleted||e.isEditing&&L,T=ji[e.templateId];if(!T||!N&&(L||x))return a.createElement(a.Fragment,null);var O=T.partialLoading,j=T.getComponent(e.widgetTypeId),P=(0,o.A)(T.className,e.className);return a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:d,className:"curated-widget ".concat(P," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(Di.widgetHighlight," py-2 px-3 rounded-3"):""},At.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(Di.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),N?a.createElement("div",{ref:h},a.createElement(O,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(j,Object.assign({},e,{appLinks:S,content:w,preferences:null===(c=E.data)||void 0===c?void 0:c.preferences,analyticsData:C,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing,onClickRemoveItem:function(t,n){if(e.onClickRemoveItem)return f([].concat(function(e){return function(e){if(Array.isArray(e))return Ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ai(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.")}()}(p),[t])),e.onClickRemoveItem(t,n,e.id,e.widgetTypeId)}}))))}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),r=n(68050),i=n(69111),o=n(62400),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(r.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(i.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(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(19653);n(14244)},80889:(e,t,n)=>{n.d(t,{_:()=>h});var a=n(99940),r=n(97395),i=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.EnglandSecondary)),d(Object.values(c.e.Classifications.Twig.InternationalSecondary)),d(Object.values(c.e.Classifications.Twig.ScotlandSecondary)))),f=new Set([].concat(d(Object.values(c.e.Classifications.Tigtag.EnglandPrimary)),d(Object.values(c.e.Classifications.Tigtag.InternationalPrimary)),d(Object.values(c.e.Classifications.Tigtag.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function g(e){return v(o.t.pick(e,["audienceId"]))}var h={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:r._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:r._.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()})):i.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,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return{url:r._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:r._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){var t=l.d.formatResponseData(e,a);if(!i.hideTigTag&&!i.hideTwig)return t;if(Array.isArray(t.content)){var n=t.content.filter((function(e){return!(u.G.isClassification(e)&&(f.has(e.id)?i.hideTigTag:p.has(e.id)&&i.hideTwig))}));t.content=n}return t},normalizeOptions:{namespace:g(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall}},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:r._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:r._.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()})):i.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}}}}},25104:(e,t,n)=>{n.d(t,{R:()=>f});var a=n(16951),r=n.n(a),i=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,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.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 i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),l=new D(a||[]);return r(o,"_invoke",{value:T(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 f="suspendedStart",v="suspendedYield",g="executing",h="completed",y={};function b(){}function E(){}function w(){}var k={};d(k,c,(function(){return this}));var L=Object.getPrototypeOf,x=L&&L(L(A([])));x&&x!==n&&a.call(x,c)&&(k=x);var S=w.prototype=b.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function n(r,i,l,c){var s=p(e[r],e,i);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 i;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){n(e,a,t,r)}))}return i=i?i.then(r,r):r()}})}function T(t,n,a){var r=f;return function(i,o){if(r===g)throw Error("Generator is already running");if(r===h){if("throw"===i)throw o;return{value:e,done:!0}}for(a.method=i,a.arg=o;;){var l=a.delegate;if(l){var c=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(r===f)throw r=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=g;var s=p(t,n,a);if("normal"===s.type){if(r=a.done?h:v,s.arg===y)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(r=h,a.method="throw",a.arg=s.arg)}}}function O(t,n){var a=n.method,r=t.iterator[a];if(r===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,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 i=p(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function A(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 r=-1,i=function n(){for(;++r<t.length;)if(a.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:E,configurable:!0}),E.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},C(N.prototype),d(N.prototype,s,(function(){return this})),t.AsyncIterator=N,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new N(m(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(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=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(a,r){return l.type="throw",l.arg=t,n.next=a,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,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),P(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 r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:A(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(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function l(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}c((a=a.apply(e,t||[])).next())}))},u="markdown-link",d=new i.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}},{start:function(e){return e.indexOf("^")},name:"superscript",level:"inline",tokenizer:function(e){var t=e.match(/^\^([^\^]+?)\^/);if(t)return{type:"superscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sup>".concat(e.text,"</sup>")}},{name:"subscript",level:"inline",start:function(e){return e.indexOf("~")},tokenizer:function(e){var t=e.match(/^\~([^\~]+?)\~/);if(t)return{type:"subscript",raw:t[0],text:t[1]}},renderer:function(e){return"<sub>".concat(e.text,"</sub>")}}],walkTokens:function(e){return s(void 0,void 0,void 0,l().mark((function t(){var a,r;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(8294),n.e(6356)]).then(n.bind(n,66356));case 3:a=t.sent,r=a.katex,c=r;case 6:case"end":return t.stop()}}),t)})))}});var f={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:f.getRenderer(t)});case 4:return a=n.sent,n.abrupt("return",r().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,r=e.focusableLinks?'tabIndex="0"':'tabIndex="-1"';return'<a href="'.concat(n,'" target="_blank" class="info-link ').concat(u,'" ').concat(r,">").concat(a,"</a>")},t},getContainerClass:function(){return"AmtuH"}}},73688:(e,t,n)=>{n.d(t,{B:()=>c});var a=n(20354),r=n(80889),i=n(57401),o=n(21366),l=n(31700);function c(e){var t=a.a.useBasicFetch(l.g.streamablePresentation());return{dashboard:a.a.useBasicFetch(t.hasCompleted&&r._.getDashboard(i.Yv.Any,e.dashboardId?[i.GL.Published,i.GL.Draft]:[i.GL.Published],o.S.getUnknownDashboardTarget({targetType:e.targetType,presentationId:t.data.id,companyId:e.companyId,classificationId:e.classificationId}),null,e.dashboardId)),isPreviewing:!!e.dashboardId}}}}]);