@clickview/streamable-learning 0.19.0 → 0.20.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.
- package/dist/bundles.json +1 -1
- package/dist/css/{4942-streamable-learning-9e6986fa70.chunk.css → 4942-streamable-learning-2806db78c9.chunk.css} +1 -0
- package/dist/css/{704-streamable-learning-2d9962f5ae.chunk.css → 5924-streamable-learning-02f42af5bc.chunk.css} +4 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1067-d176cb4b6f-streamable-learning.chunk.js → 1067-c3ec2adc7e-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/1437-af4933def4-streamable-learning.chunk.js +1 -0
- package/dist/scripts/1977-873c87eccd-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{2215-9c88af2c61-streamable-learning.chunk.js → 2215-e60327adbe-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/2700-16b8f461a5-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2967-265d13529f-streamable-learning.chunk.js +1 -0
- package/dist/scripts/2987-f1f0299c23-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{303-716885883e-streamable-learning.chunk.js → 303-fbdbbc38ac-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{3933-251b4751a4-streamable-learning.chunk.js → 3933-d7861ee55b-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{4018-ccd4bef2ba-streamable-learning.chunk.js → 4018-481bb58310-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/{4109-1b8f7a86d4-streamable-learning.chunk.js → 4109-235d3f00bc-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/{4254-adb80f4eaa-streamable-learning.chunk.js → 4254-ffe009e96f-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/487-84cc150f3e-streamable-learning.chunk.js +1 -0
- package/dist/scripts/4942-6d887de373-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5770-cc77f41251-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5910-055777f325-streamable-learning.chunk.js +1 -0
- package/dist/scripts/5924-f138415b74-streamable-learning.chunk.js +2 -0
- package/dist/scripts/{6909-4b58095da5-streamable-learning.chunk.js → 6909-97b9365bb2-streamable-learning.chunk.js} +1 -1
- package/dist/scripts/7130-0142b9b473-streamable-learning.chunk.js +1 -0
- package/dist/scripts/7694-0cfe8fe45d-streamable-learning.chunk.js +2 -0
- package/dist/scripts/7730-4f344dfbde-streamable-learning.chunk.js +1 -0
- package/dist/scripts/8352-50f9ae4e9d-streamable-learning.chunk.js +1 -0
- package/dist/scripts/{9861-a9b2a9f711-streamable-learning.chunk.js → 9861-50fa54eaa3-streamable-learning.chunk.js} +2 -2
- package/dist/scripts/bundle-89d4ec9411.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1437-d36e94336f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/1977-d5515ab075-streamable-learning.chunk.js +0 -2
- package/dist/scripts/2700-4645d2dd9a-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2967-3e08aa52b1-streamable-learning.chunk.js +0 -1
- package/dist/scripts/2987-6c42e66472-streamable-learning.chunk.js +0 -1
- package/dist/scripts/339-bb5cdbc1a6-streamable-learning.chunk.js +0 -1
- package/dist/scripts/487-70fe842004-streamable-learning.chunk.js +0 -1
- package/dist/scripts/4942-12b756448f-streamable-learning.chunk.js +0 -1
- package/dist/scripts/625-20561b736e-streamable-learning.chunk.js +0 -1
- package/dist/scripts/704-6f92cce6ad-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7694-88511578c6-streamable-learning.chunk.js +0 -2
- package/dist/scripts/7730-1b0a449df5-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8352-a67b7f7be9-streamable-learning.chunk.js +0 -1
- package/dist/scripts/8405-d26a9cfba5-streamable-learning.chunk.js +0 -1
- package/dist/scripts/bundle-78452f5540.min.js +0 -2
- /package/dist/css/{8405-streamable-learning-6f4396ba2f.chunk.css → 5770-streamable-learning-6f4396ba2f.chunk.css} +0 -0
- /package/dist/scripts/{1977-d5515ab075-streamable-learning.chunk.js.LICENSE.txt → 1977-873c87eccd-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2215-9c88af2c61-streamable-learning.chunk.js.LICENSE.txt → 2215-e60327adbe-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{370-baabd050d8-streamable-learning.chunk.js → 370-c90e59ec06-streamable-learning.chunk.js} +0 -0
- /package/dist/scripts/{4018-ccd4bef2ba-streamable-learning.chunk.js.LICENSE.txt → 4018-481bb58310-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{704-6f92cce6ad-streamable-learning.chunk.js.LICENSE.txt → 5924-f138415b74-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7694-88511578c6-streamable-learning.chunk.js.LICENSE.txt → 7694-0cfe8fe45d-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9861-a9b2a9f711-streamable-learning.chunk.js.LICENSE.txt → 9861-50fa54eaa3-streamable-learning.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-78452f5540.min.js.LICENSE.txt → bundle-89d4ec9411.min.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 704-6f92cce6ad-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[704],{39880:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(32735),i=n(57408);const r={dateItem:"I3SBm",label:"PRORs",body:"RfiM_",bodyDay:"ZOVny",bodyRange:"vYhXN",bodyMonth:"mYslO",month:"EPkkQ"};function o(e){var t,n,o;return a.createElement(i.F,{appLink:null===(t=e.getAppLink)||void 0===t?void 0:t.call(e),className:"text-decoration-none text-center bg-white text-dark border border-3 ".concat(null===(n=e.theme)||void 0===n?void 0:n.border," rounded-3 d-block fw-semibold ").concat(e.className),analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"position-relative ".concat(r.dateItem)},a.createElement("div",{className:"".concat(null===(o=e.theme)||void 0===o?void 0:o.background," py-1 ").concat(r.label," d-flex align-items-center justify-content-center")},e.label?e.label:a.createElement(a.Fragment,null," ")),a.createElement("div",{className:"".concat(function(){switch(e.body.type){case"range":return r.bodyRange;case"day":return r.bodyDay;case"month":return r.bodyMonth}}()," ").concat(r.body," my-2")},e.body.text),a.createElement("div",{className:"mb-0 ".concat(r.month)},e.month)))}},10731:(e,t,n)=>{n.d(t,{V:()=>r});var a=n(32735);const i={emoji:"d86p2"};function r(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:i.emoji},e.emoji),e.children)}},56097:(e,t,n)=>{n.d(t,{$:()=>E});var a=n(32735),i=n(81024),r=n.n(i),o=n(57900),l=n(2948),c=n(92582),s=n(65858),d=n(11607),u=n(83914),m=n(10038),p=n(52108),v=n(35223);const f={question:"r4X_X",partialQuestion:"aE9qQ",description:"dVLkj"};function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var y="1.2rem",b=500;function E(e){var t=g((0,l.D)("should:expand:".concat(e.id),e.isBot,{storage:o.Z1.LocalStorage}),2),n=t[0],i=t[1],h=g(a.useState(n?"100%":y),2),E=h[0],w=h[1],k=g(a.useState(!n),2),L=k[0],C=k[1],T=g(a.useState(r()(e.answer,{renderer:p.M.getSeoWidgetRenderer()})),2),x=T[0],S=T[1],N=a.useRef(null),O=a.useRef(null),D=a.useRef(null);function P(){w(y),i(!1),N.current=window.setTimeout((function(){C(!0)}),b)}return a.useEffect((function(){var t=r()(e.answer||"",{renderer:p.M.getSeoWidgetRenderer()});x!==t&&(x&&n&&P(),S(t))}),[e.answer]),a.useEffect((function(){"100%"===E&&D.current&&w(D.current.clientHeight+"px")}),[E]),(0,m.H)((function(){n&&P()}),null,[n]),e.question&&x?a.createElement(d.L,{className:"".concat(f.question," rounded-3"),onClick:function(t){var a;p.M.isLink(t.target)||0===window.getSelection().toString().length&&(c.k.logUserAction(Object.assign(Object.assign({},e.analyticsData),{question:e.question,answer:e.answer}),Object.assign(Object.assign({},e.analyticsOptions),{entity:s.py.Faq,actionType:s.Vw.Click,descriptor:n?s._S.Collapse:s._S.Expand,location:s.LZ.FaqQuestionWidget})),n?P():((a=document.createElement("p")).innerHTML=x,a.style.visibility="hidden",O.current.appendChild(a),w("".concat(a.clientHeight,"px")),O.current.removeChild(a),i(!0),window.clearTimeout(N.current),C(!1)))}},a.createElement("div",{className:"pb-2"},a.createElement("div",{className:"float-end rounded-circle bg-white"},a.createElement(u.x,{svgName:n?v.vn.Minus:v.vn.Plus})),a.createElement("h2",{className:"h4 mb-0 clear-end"},e.question)),a.createElement("div",{className:f.description,style:{height:E}},a.createElement("p",{className:"mb-0 ".concat(L?"clamp-1":""),dangerouslySetInnerHTML:{__html:x},ref:D}),a.createElement("div",{ref:O}))):a.createElement(a.Fragment,null)}},23201:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(32735),i=n(92802),r=n(2102),o=n(83345),l=n(33936),c="shared.formButtons";function s(e){var t=(0,i.u6)(),n=(0,l.l)(t);return a.createElement(r.m,{variant:e.variant||"primary",type:"submit",disabled:!n,size:e.size,className:e.className?e.className:"",showSpinner:t.isSubmitting},e.submitText?a.createElement(a.Fragment,null,e.submitText):a.createElement(o.x,{namespace:c,phrase:e.isNew?"create":"save"}))}},1269:(e,t,n)=>{n.d(t,{n:()=>w,W:()=>k});var a=n(32735),i=n(80247),r=n(50132),o=n(92802),l=n(91967),c=n(1048),s=n(57408),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function u(e){var t=e.label,n=e.checkboxLabelClassName,i=e.checkboxLabelFontWeight,o=e.className,l=d(e,["label","checkboxLabelClassName","checkboxLabelFontWeight","className"]);return a.createElement(r.Z.Group,{className:"form-group"},a.createElement("div",{className:"form-check ".concat(o||"")},a.createElement(w,Object.assign({className:"form-check-input"},l)),a.createElement(r.Z.Label,{className:"form-check-label cursor-pointer ".concat("normal"===i?"fw-normal":""," \n ").concat(n),htmlFor:l.id},t),e.checkboxAppLink&&e.checkboxAppLinkText&&a.createElement(a.Fragment,null,a.createElement("span",null," "),a.createElement(s.F,{appLink:e.checkboxAppLink,className:"info-link"},e.checkboxAppLinkText))))}var m=n(83914),p=n(83345),v={getCustomFormControlClassName:function(e,t,n,a,i,r){var l="";return l=function(e,t){var n="";return n="select"===e?"form-select":"form-control","sm"===t&&(n+=" ".concat(n,"-sm")),"lg"===t&&(n+=" ".concat(n,"-lg")),n}(r,a),(0,o.u9)(t,n)&&(0,o.u9)(e,n)&&(l+=" is-invalid"),i&&(l+=" ".concat(i)),l}},f=n(35223);function g(e){var t=(0,o.u6)().values[e.fieldName];return"string"!=typeof t?a.createElement(a.Fragment,null):a.createElement("div",{className:"float-end text-secondary fw-normal"},t.length,"/",e.limit," characters")}const h={revealPassword:"jCfI0",passwordInput:"RBJnf",passwordContainer:"d78lK",passwordContainerDisabled:"asbVo",infoTooltip:"wzyOG",spinner:"CycFx"};function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var b=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n},E="shared.formField";function w(e){var t,n,r=e.children,s=e.showLoadingSpinner,d=b(e,["children","showLoadingSpinner"]),u=(t=a.useState(e.type),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return 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=u[0],v=u[1],g=l.q.isFunction(r)?function(e){return r(e)}:a.Children.count(r)?r:null;if("password"!==d.type)return s?a.createElement("div",{className:"position-relative"},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g),a.createElement("div",{className:h.spinner},a.createElement(i.Z,{animation:"border",size:"sm"}))):a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize"])),g);var E="position-relative ".concat(h.passwordContainer);return d.className&&(E+=" ".concat(d.className)),d.disabled&&(E+=" ".concat(h.passwordContainerDisabled)),a.createElement("div",{className:E},a.createElement(o.gN,Object.assign({},c.t.omit(d,["formSize","type","className"]),{type:p,className:"".concat(h.passwordInput," border-0 w-100 h-100 outline-none rounded")}),g),"password"===d.type&&a.createElement(m.x,{svgName:"password"===p?f.vn.VisibleOn:f.vn.VisibleOff,className:"svg-container cursor-pointer ".concat(h.revealPassword),onClick:function(){v("password"===p?"text":"password")}}))}function k(e){var t=e.label,n=e.className,i=e.showCharacterCounter,l=e.showRequiredStar,s=e.infoTooltip,d=e.infoTooltipPlacement,y=e.infoText,k=e.formSize,L=e.showOptionalLabel,C=b(e,["label","className","showCharacterCounter","showRequiredStar","infoTooltip","infoTooltipPlacement","infoText","formSize","showOptionalLabel"]),T=(0,o.u6)(),x=T.errors,S=T.touched,N=function(){};if("checkbox"===C.type){var O=c.t.omit(e,["formSize","infoTooltipPlacement"]);return e.disabled&&(O.onChange=N),a.createElement(u,Object.assign({},O))}var D=Object.assign(Object.assign({},C),{className:v.getCustomFormControlClassName(x,S,C.name,k,n,"string"==typeof e.as?e.as:null)});return e.disabled&&(D.onChange=N),a.createElement(r.Z.Group,{className:"form-group"},!!t&&a.createElement(r.Z.Label,{htmlFor:C.id,className:"d-flex align-items-center"},t,l&&a.createElement("span",{className:"text-danger"},"*"),s&&a.createElement(m.x,{className:"svg-container text-secondary ".concat(h.infoTooltip),svgName:f.vn.Info,title:s,tooltipPlacement:d,tooltipSpanHack:!0}),L&&a.createElement("span",{className:"text-secondary"}," ",a.createElement(p.x,{namespace:E,phrase:"optional"})),!!i&&!!C.maxLength&&a.createElement("div",{className:"ms-auto"},a.createElement(g,{fieldName:C.name,limit:C.maxLength}))),a.createElement(w,Object.assign({},D,{"aria-errormessage":"".concat(C.name,"Error")})),!!y&&a.createElement(r.Z.Text,{className:"text-secondary"},y),a.createElement(o.Bc,{name:C.name},(function(e){return a.createElement(r.Z.Control.Feedback,{id:"".concat(C.name,"Error"),type:"invalid",role:"status"},e)})))}w.defaultProps={autoComplete:"off"},k.defaultProps={autoComplete:"off",infoTooltipPlacement:"top"}},82644:(e,t,n)=>{n.d(t,{b:()=>d,n:()=>s});var a=n(32735),i=n(92802),r=n(91967),o=n(1048);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};function s(e){var t=e.castInitialValues,n=e.castValuesOnSubmit,s=e.initialValues,d=e.onSubmit,u=c(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),m=t&&e.validationSchema?e.validationSchema.cast(function(e){if(!e)return{};var t=o.t.deepClone(e);return function e(n){Object.keys(t).forEach((function(a){t.hasOwnProperty(a)&&(o.t.isObject(n[a])?e(n[a]):null===t[a]&&delete t[a])}))}(t),t}(s)):s,p={allowInitialSubmit:e.allowInitialSubmit};return a.createElement(i.J9,Object.assign({enableReinitialize:!0},u,{initialValues:m,onSubmit:function(t,a){var i=a.setSubmitting,r=a.resetForm,o=a.setFieldError,c=n&&e.validationSchema?e.validationSchema.cast(t):t;d(c,(function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.reset&&r(),n.errors)for(var a=0,c=Object.entries(n.errors);a<c.length;a++){var s=(e=c[a],t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];o(d,u)}i(!1)}))},initialStatus:p}),r.q.isFunction(e.children)?function(t){return e.children(t)}:a.Children.count(e.children)?e.children:null)}function d(){return(0,i.u6)()}s.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},71471:(e,t,n)=>{n.d(t,{S:()=>s});var a=n(32735),i=n(68050),r=n(69111),o=n(9977),l=n(79967);const c={partialOptions:"Gufgq",partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function s(e){return a.createElement("div",{className:"mx-2"},Array(e.numVideos).fill(null).map((function(t,n){return a.createElement("div",{className:"d-flex",key:n},e.allowBulkActions&&a.createElement("div",{className:"form-check pe-3 pe-sm-2 mx-0 mx-md-2"}),a.createElement(d,Object.assign({},e)))})))}function d(e){var t=(0,l.k)(),n="sm"===o.O.getSize(t,"md"),s=e.withReordering&&!t.xs;return a.createElement(i.Z,{className:"".concat(n?"":"py-2"," flex-grow-1")},a.createElement(r.Z,Object.assign({},o.O.getThumbnailColumns(),{className:"flex-column align-items-flex-start ".concat(n?"pb-2 pe-1":"mb-1 pe-3 pe-md-2")}),a.createElement(i.Z,null,!!s&&a.createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a.createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a.createElement(r.Z,{xs:o.O.getThumbnailColSize(s)},a.createElement("div",{className:"partial-loading-background ".concat(n?"rounded":"rounded-3"," ").concat(c.partialThumbnail)})))),a.createElement(r.Z,Object.assign({},o.O.getDetailsColumns(),{className:n?"pb-2":"px-2"}),a.createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a.createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)})))}s.defaultProps={numVideos:15}},81326:(e,t,n)=>{n.d(t,{L:()=>ni});var a=n(32735),i=n(91967),r=n(20354),o=n(110),l=n(92582),c=n(65858),s=n(83914),d=n(83345),u=n(54610),m=n(12778),p=n(67453),v=n(35223);const f="TTPKV",g="nF3tK";var h="shared.authorReviewerWidgetTemplate",y="MMMM D, YYYY";function b(e){if(!e.person)return a.createElement(a.Fragment,null);var t="".concat(f," h-100 rounded-2 d-flex flex-column"),n=m.o.getAuthorBlogUrl(e.person.blogSlug);return n?a.createElement("a",{href:n,target:"_blank",className:"".concat(t," no-decoration"),onClick:function(){l.k.logUserAction({id:e.person.id,firstName:e.person.firstName,lastName:e.person.lastName,imageId:e.person.imageId,blogUrl:n},{entity:c.py.Author,location:c.LZ.AuthorReviewerWidget,actionType:c.Vw.Click})}},e.children):a.createElement("div",{className:t},e.children)}function E(e){return e.person?a.createElement(b,{person:e.person},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"".concat(g," rounded-circle me-2 overflow-hidden")},a.createElement("img",{className:"img-fluid",src:p.j.getUrlById(e.imageCdnUrl,u.__.Avatars,e.person.imageId,u.h2.Small),alt:"".concat(e.person.firstName," ").concat(e.person.lastName)})),a.createElement("div",null,a.createElement("h2",{className:"h6 mb-0 fw-normal"},a.createElement(s.x,{className:"align-middle svg-container d-inline-block",svgName:"reviewer"===e.type?v.vn.Verified:v.vn.Edit}),"reviewer"===e.type?a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:h,phrase:"reviewedBy"})," ",e.person.firstName," ",e.person.lastName):a.createElement("span",{className:"align-middle"},a.createElement(d.x,{namespace:h,phrase:"authoredBy"})," ",e.person.firstName," ",e.person.lastName)),a.createElement("div",null,e.person.title))),a.createElement("p",{className:"mb-2 flex-grow-1"},e.person.bio),a.createElement("div",{className:"lwnZl"},"reviewer"===e.type?a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:h,phrase:"reviewed"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))):a.createElement(a.Fragment,null,a.createElement(d.x,{namespace:h,phrase:"published"})," ",a.createElement("time",{dateTime:e.datePublished},o.O.format(e.datePublished,y))," • ",a.createElement(d.x,{namespace:h,phrase:"lastUpdated"})," ",a.createElement("time",{dateTime:e.lastUpdated},o.O.format(e.lastUpdated,y))))):a.createElement(a.Fragment,null)}function w(e){var t=e.content[0],n=t.reviewer,i=t.author,r=t.lastUpdated,o=t.datePublished;return i&&n?a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"author",person:i,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r})),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(E,{type:"reviewer",person:n,imageCdnUrl:e.imageCdnUrl,datePublished:o,lastUpdated:r}))):a.createElement(a.Fragment,null)}function k(){return a.createElement("div",{className:"".concat(f," rounded-2")},a.createElement("div",{className:"d-flex mb-2"},a.createElement("div",{className:"partial-loading-background rounded-circle me-2 ".concat(g)}),a.createElement("div",{className:"w-75"},a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"90%",height:"21px"}}),a.createElement("div",{className:"partial-loading-background",style:{width:"65%",height:"1rem"}}))),a.createElement("div",null,a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"100%",height:"1rem"}}),a.createElement("div",{className:"partial-loading-background mb-1",style:{width:"75%",height:"1rem"}})),a.createElement("div",{className:"partial-loading-background",style:{width:"50%",height:"1rem"}}))}var L=n(5281),C=n(57408),T=n(7733),x=n(9085);var S=function(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.logo)||void 0===t?void 0:t.url,{size:u.h2.Medium}),o=(0,x.x)(e.data.name,T.o),l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name}),s=Object.assign(Object.assign({},e.analyticsOptions),{location:c.LZ.CircleLogoSlidingListWidget,actionType:c.Vw.Click,entity:c.py.Company});return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"position-relative px-1 flex-shrink-0 ".concat("z6iYz"),analyticsData:l,analyticsOptions:s},a.createElement("div",{className:"rounded-circle w-100 h-100 ".concat("vt0gx"," ").concat(o),style:{backgroundImage:"url(".concat(r,")")}}))},N=n(58704),O=n(26154);function D(e){var t;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.Companies,collection:e.content,childComponent:S,extraChildComponentProps:{imageCdnUrl:e.imageCdnUrl},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.company})}var P=n(55827),j=n(79967);var A=n(47770),I=n(68050),F=n(69111),M=n(9513),_=n(92802),V=n(23481),R=n(10731),B=n(23201),H=n(1269),U=n(82644),W=n(63855),z=n(69883),G=n(5173),Z=G.Ry().shape({feedbackInput:G.Z_().max(5e3,(function(){return V.T.getPhrase("shared.feedbackForm","tooLong")}))});const Y="UFm9h",q="na9Vb";function Q(e){return Q="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},Q(e)}function K(){K=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:x(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",f="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 C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Q(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function x(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Q(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},C(T.prototype),s(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new T(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,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(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator: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 $="shared.feedbackForm";function J(e){var t,n,r=(t=a.useState("prompt"),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],l=r[1],c=(0,z.Z)();function s(t,n){return a=this,i=void 0,r=void 0,s=K().mark((function a(){return K().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(V.T.getPhrase($,"error"));case 10:return a.prev=10,n({reset:!0}),a.finish(10);case 13:case"end":return a.stop()}}),a,null,[[0,6,10,13]])})),new(r||(r=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var a;t.done?e(t.value):(a=t.value,a instanceof r?a:new r((function(e){e(a)}))).then(n,o)}l((s=s.apply(a,i||[])).next())}));var a,i,r,s}return i.q.isFunction(e.onSubmit)?"prompt"===o?a.createElement("div",{className:"A_kCD"},a.createElement("p",{className:"fw-semibold me-2 ".concat(Y)},a.createElement(R.V,{emoji:"🔎"},a.createElement(d.x,{namespace:$,phrase:"feedbackQuestion"}))),a.createElement("div",{className:"d-flex align-items-center"},a.createElement(W.h,{className:"btn btn-outline-dark me-2",onClick:function(){l("yes")},svgName:v.vn.ThumbsUp},a.createElement(d.x,{namespace:$,phrase:"yes"})),a.createElement(W.h,{className:"btn btn-outline-dark",onClick:function(){l("no")},svgName:v.vn.ThumbsDown},a.createElement(d.x,{namespace:$,phrase:"no"})))):"yes"===o?a.createElement(U.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Z},a.createElement(_.l0,{className:q},a.createElement("p",{className:"fw-semibold ".concat(Y)},a.createElement(R.V,{emoji:"👏"},a.createElement(d.x,{namespace:$,phrase:"happyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:V.T.getPhrase($,"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:$,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:V.T.getPhrase($,"sendFeedback")})))):"no"===o?a.createElement(U.n,{onSubmit:s,initialValues:{feedbackInput:""},validationSchema:Z},a.createElement(_.l0,{className:q},a.createElement("p",{className:"fw-semibold ".concat(Y)},a.createElement(R.V,{emoji:"😢"},a.createElement(d.x,{namespace:$,phrase:"unhappyFeedback"}))),a.createElement(H.W,{name:"feedbackInput",as:"textarea",autoComplete:"off",autoFocus:!0,rows:4,placeholder:V.T.getPhrase($,"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:$,phrase:"back"})),a.createElement(B.A,{variant:"dark",submitText:V.T.getPhrase($,"sendFeedback")})))):"done"===o?a.createElement("p",{className:"fw-semibold text-center"},a.createElement(R.V,{emoji:"🙌"},a.createElement(d.x,{namespace:$,phrase:"thankYou"}))):a.createElement(a.Fragment,null):a.createElement(a.Fragment,null)}const ee={imageContainer:"ZMjnx",image:"SsxEf",background:"MtcB3"};function te(e){return a.createElement(a.Fragment,null,a.createElement("div",{className:"".concat(ee.background," px-4 py-3 rounded-3 mb-3")},a.createElement("h2",{className:"h5"},e.name),a.createElement(I.Z,{as:"ul",className:"list-unstyled mb-2 w-100"},e.content.map((function(t){var n,i,r,o=p.j.createUrl(null===(n=t.cover)||void 0===n?void 0:n.url,{size:u.h2.Small});return a.createElement(F.Z,{as:"li",key:t.id,xs:12,sm:6,lg:4},a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t),className:"d-flex align-items-center mb-2"},a.createElement("div",{className:"".concat(ee.imageContainer," me-2")},a.createElement("div",{className:"".concat(ee.image," rounded"),style:{backgroundImage:"url('".concat(o,"')")}})),a.createElement("div",null,t.name)))})))),a.createElement(J,{onSubmit:e.onSubmitFeedback}))}var ne=n(75903),ae=n(66869),ie={actionType:c.Vw.Click,entity:c.py.Playlist,location:c.LZ.PlaylistListItem,descriptor:c._S.Cover};function re(e){return a.createElement("div",null,a.createElement(ae.B,{name:e.name,description:e.description}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(F.Z,{as:"li",key:t.id,xs:6,sm:4,lg:3,className:"px-1 pb-2 columns-of-five"},a.createElement(ne.tN,{data:t,presentationAudiences:e.audiences,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.playlist)||void 0===i?void 0:i.call(n,t),itemStyle:"round",analyticsData:e.analyticsData,analyticsOptions:ie}))}))))}var oe=n(72861),le=n(43741),ce=n(55171),se=n(78479),de=n(42308),ue=n(87114);function me(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 pe(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 fe(e){var t,n,i,r=function(e,t){var n,a,i,r,o,l,c,s;return(null===(n=e.metadata)||void 0===n?void 0:n.appLink)===O.OL.ClassificationDirectory&&(null===(a=e.settings)||void 0===a?void 0:a.hasTopicDirectories)?{id:O.OL.ClassificationDirectory,name:"Explore all topics",cover:{url:p.j.createUrl(null===(r=null===(i=e.classification)||void 0===i?void 0:i.cover)||void 0===r?void 0:r.url,{size:u.h2.Small})},metadata:{backgroundColor:null===(l=null===(o=e.classification)||void 0===o?void 0:o.metadata)||void 0===l?void 0:l.backgroundColor}}:(null===(c=e.metadata)||void 0===c?void 0:c.appLink)===O.OL.ClassificationLatestReleases?{id:"classification-latest-releases",name:"All new releases",cover:{url:p.j.getUrlById(e.imageCdnUrl,u.__.Covers,e.metadata.imageId,u.h2.Medium)},totalVideos:pe(t)}:(null===(s=e.metadata)||void 0===s?void 0:s.appLink)===O.OL.ExploreAllTopics?{id:"explore-all-topics",name:"Explore all subjects",cover:{url:p.j.createUrl(ce.e.Images.STREAMABLE_TOPIC_COVER,{size:u.h2.Small})}}:void 0}(e,e.content),o=(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===O.OL.ClassificationLatestReleases;return a.createElement(oe.e,{id:e.id,collection:r?[r].concat((i=e.content,function(e){if(Array.isArray(e))return me(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return me(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)?me(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,getChildAppLink:function(t){return function(t){var n,a,i,r,l,c,s,d;return t.id===O.OL.ClassificationDirectory?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classificationDirectory)||void 0===a?void 0:a.call(n,e.classification):t.id===O.OL.ExploreAllTopics?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.allTopics)||void 0===r?void 0:r.call(i,t):o?null===(c=null===(l=e.appLinks)||void 0===l?void 0:l.classificationLatestReleases)||void 0===c?void 0:c.call(l,t):null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.classification)||void 0===d?void 0:d.call(s,t)}(t)},childComponent:M.Vz,partialLoadingComponent:le.Q,heading:e.name,headingAppLink:function(){var t,n,a;return e.classification&&ue.i.isTopLevelTopic(e.classification)&&e.widgetTypeId===de.z.Classifications&&e.templateId===se.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===O.OL.ClassificationDirectory}}})}var ge=n(65163),he=n(98269),ye=n(1048),be=n(11607),Ee=n(17808),we=n(1287),ke=n(2102),Le=n(83523),Ce=n(29309),Te="shared.subjectWidgetItem",xe=a.forwardRef((function(e,t){var n,i="px-3 d-flex flex-column justify-content-center",r="".concat(Ce.Z.name," h6");return e.multiline?r+=" clamp-3":(i+=" text-nowrap",r+=" text-truncate"),"hidden"===(null===(n=e.style)||void 0===n?void 0:n.visibility)?a.createElement("div",{ref:t,className:"d-flex align-items-center position-relative clamp-2 ".concat(Ce.Z.widgetItem," ").concat(Ce.Z.draggingItem),style:ye.t.omit(e.style,["visibility"])}):a.createElement("div",{ref:t,className:"border d-flex align-items-center position-relative ".concat(Ce.Z.widgetItem),style:ye.t.omit(e.style,["visibility"])},a.createElement("div",Object.assign({className:"\n ".concat(Ce.Z.dragHandle," ms-3 d-flex justify-content-center align-items-center \n ").concat(e.isDragging?"cursor-grabbing":"cursor-grab"," ").concat(e.isVisible?"":"text-secondary","\n ")},e.dragAttributes,e.dragListeners),a.createElement(s.x,{svgName:v.vn.Hamburger})),a.createElement("div",{className:i},a.createElement("label",{htmlFor:e.data.id,className:"".concat(r," ").concat(e.isVisible?"":"text-secondary"," mb-0")},e.data.name)),a.createElement("div",{className:"ms-auto me-3"},a.createElement(Le.Z,{id:e.data.id,on:e.isVisible,onClick:function(){return e.onToggleVisibility(e.data)},tooltipText:e.canToggle?V.T.getPhrase(Te,e.isVisible?"hideFromDashboard":"showOnDashboard"):V.T.getPhrase(Te,"cantToggle"),disabled:!e.canToggle,showStateWhenDisabled:!0})))})),Se=n(91028),Ne=n(16714),Oe=n(75896),De=n(49542);function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function je(){je=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var r=t&&t.prototype instanceof h?t:h,o=Object.create(r.prototype),l=new D(a||[]);return i(o,"_invoke",{value:x(e,n,l)}),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",f="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 C(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,r,o,l){var c=u(e[i],e,r);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==Pe(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,i){n(e,a,t,i)}))}return r=r?r.then(i,i):i()}})}function x(t,n,a){var i=m;return function(r,o){if(i===v)throw Error("Generator is already running");if(i===f){if("throw"===r)throw o;return{value:e,done:!0}}for(a.method=r,a.arg=o;;){var l=a.delegate;if(l){var c=S(l,a);if(c){if(c===g)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===m)throw i=f,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=v;var s=u(t,n,a);if("normal"===s.type){if(i=a.done?f:p,s.arg===g)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i=f,a.method="throw",a.arg=s.arg)}}}function S(t,n){var a=n.method,i=t.iterator[a];if(i===e)return n.delegate=null,"throw"===a&&t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,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 i=-1,r=function n(){for(;++i<t.length;)if(a.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(Pe(t)+" is not iterable")}return y.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,c,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},C(T.prototype),s(T.prototype,l,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,a,i,r){void 0===r&&(r=Promise);var o=new T(d(e,n,a,i),r);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(L),s(L,c,"Generator"),s(L,o,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=P,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(O),!t)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(a,i){return l.type="throw",l.arg=t,n.next=a,i&&(n.method="next",n.arg=e),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var i=a.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,a){return this.delegate={iterator:P(t),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ie(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Fe="shared.editableCoverFixedPillListSmall";function Me(e){var t,n,i,r=Ae(a.useState(!1),2),o=r[0],s=r[1],u=Ae(a.useState(!1),2),m=u[0],p=u[1],v=De.d.useGetContent(e.content,e.widgetTypeId,e.isPreviewing,e.preferences).unfilteredContent,f=a.useMemo((function(){return v.every((function(e){var t,n;return!(null===(n=null===(t=e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)}))}),[v]),g=a.useMemo((function(){var e;return null!==(e=null==v?void 0:v.reduce((function(e,t,n){var a,i,r={id:t.id,hidden:!(null===(i=null===(a=t.followers)||void 0===a?void 0:a.data)||void 0===i?void 0:i.length)&&!f,index:n};return e[t.id]=r,e}),{}))&&void 0!==e?e:{}}),[e.preferences,f]),h=Ae(a.useState(g),2),y=h[0],b=h[1],E=Ae(a.useState(g),2),w=E[0],k=E[1],L=a.useMemo((function(){return o?v.filter((function(e){return!!w[e.id]})).sort((function(e,t){return w[e.id].index-w[t.id].index})):v.filter((function(e){var t;return!!y[e.id]&&!(null===(t=y[e.id])||void 0===t?void 0:t.hidden)})).sort((function(e,t){return y[e.id].index-y[t.id].index}))}),[v,w,y,o]),C=(0,z.Z)();a.useEffect((function(){s(!1)}),[null===(t=e.presentation)||void 0===t?void 0:t.id]);var T=a.useMemo((function(){return!(o||!L.length)&&Object.values(w).some((function(e){return e.hidden}))}),[o,w]);function x(e){return w[e.id]?w[e.id].index:L.findIndex((function(t){return t.id===e.id}))}function S(e){var t;return!(null===(t=w[e.id])||void 0===t?void 0:t.hidden)}function N(e){var t=Object.assign({},w),n=S(e);t[e.id]={id:e.id,hidden:n,index:x(e)},l.k.logUserAction({id:e.id,name:e.name},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Hide,descriptor:n?c.DL.On:c.DL.Off}),k(t)}var O=a.useMemo((function(){return!ye.t.isEqual(g,w)}),[g,w]),D={id:e.presentation.id,name:V.T.getPhrase(Fe,"exploreAll",{name:e.presentation.name}),cover:e.presentation.cover,metadata:{backgroundColor:ue.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:V.T.getPhrase(Fe,"changeTo",{name:e.name}),cover:e.cover,vanitySlug:e.vanitySlug,description:e.description,metadata:{backgroundColor:ue.i.getMappedPresentationBackgroundColourCode(e.learningLevel)}}})):[],j=!o&&P.length>0&&(null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories),A=e.hasLocalPermissions(Ne.E.ManageDiscoverPreferences),M={location:c.LZ.EditableSubjectPreferencesWidget};return L.length?a.createElement("div",null,a.createElement("div",{className:"d-flex flex-wrap align-items-center justify-content-between"},a.createElement("div",{className:"col"},a.createElement("div",{className:"d-flex justify-content-between w-100 no-wrap flex-row mb-2"},a.createElement("h2",{className:"h4 mb-0 align-self-end flex-shrink-0"},o?V.T.getPhrase(Fe,"updating"):e.name),!o&&A&&a.createElement(be.L,{className:"hover-text-underline",onClick:function(){return s(!0)}},V.T.getPhrase(Fe,"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:Fe,phrase:"editingDescription"}))),o&&A&&a.createElement("div",{className:"d-flex align-items-start"},a.createElement(he.Z,{variant:"link",className:"me-2",onClick:function(){k(y),s(!1)}},a.createElement(d.x,{namespace:Fe,phrase:"cancel"})),a.createElement(ke.m,{variant:"dark",onClick:function(){return t=this,n=void 0,a=void 0,i=je().mark((function t(){var n;return je().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p(!0),n=f?v.map((function(e,t){return{id:e.id,hidden:!0,index:t}})):Object.values(y),e.updatePreferences(e.id,e.widgetTypeId,n,Object.values(w)).then((function(){b(w),p(!1),s(!1)})).catch((function(){p(!1),C.error(V.T.getPhrase(Fe,"error"))}));case 3:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function o(e){try{c(i.next(e))}catch(e){r(e)}}function l(e){try{c(i.throw(e))}catch(e){r(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,l)}c((i=i.apply(t,n||[])).next())}));var t,n,a,i},showSpinner:m,disabled:!O},a.createElement(d.x,{namespace:Fe,phrase:"update"})))),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},T&&a.createElement(F.Z,{as:"li",className:"position-relative pb-2 px-1",key:e.presentation.id,sm:6,lg:4},a.createElement(Se.V,{data:D,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:M,multiline:!0,highlightOnHover:null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}})),a.createElement(Ee.Q,{ids:L.map((function(e){return e.id})),getDragOverlay:function(e){var t=L.find((function(t){return t.id===e}));return a.createElement("div",{className:"bg-white rounded-3 ".concat("K1Ce4")},a.createElement(xe,{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!0,canToggle:!S(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()}));l.k.logUserAction({id:t.id,name:t.name,index:n},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Start})},onSortEnd:function(e){var t=e.active,n=e.over,a=x({id:t.id}),i=L.findIndex((function(e){return e.id.toString()===n.id.toString()}));if(a!==i){var r=L[a];if(r){var o=Object.assign({},w);(function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var a=Oe.m.moveItem(e,t,n),i=n<e.length-1?a[n+1].id:null;return{reorderedItems:a,reorderRequest:{sourceMemberId:a[n].id,destinationMemberId:i}}})(L,a,i).reorderedItems.forEach((function(e,t){o[e.id]={id:e.id,index:t,hidden:!S(e)}})),k(o),l.k.logUserAction({id:r.id,name:r.name,oldIndex:a,newIndex:i},{location:c.LZ.EditableSubjectPreferencesWidget,entity:c.py.Classification,actionType:c.Vw.Move,workflowPhase:c.eu.Complete})}}},vertical:!1},L.map((function(t){var n,i;return a.createElement(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(we.W,{id:t.id,childComponent:xe,childProps:{data:t,onToggleVisibility:N,isVisible:S(t),isDragging:!1,canToggle:!S(t)||Object.values(w).filter((function(e){return!e.hidden})).length>1,multiline:!0}}):a.createElement(Se.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,analyticsOptions:M,multiline:!0,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,showNewVideosCount:(null===(i=e.settings)||void 0===i?void 0:i.hasTopicDirectories)&&!e.isTertiaryCustomerWithoutExchange})))}))),j&&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(Se.V,{data:t,getChildAppLink:function(){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===a?void 0:a.call(n,t.id)},getChildAppLinkOptions:function(){return{middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}}},analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationId:t.id,presentationDescription:t.description}),analyticsOptions:Object.assign(Object.assign({},M),{entity:c.py.Presentation}),multiline:!0,highlightOnHover:!0,shouldHighlight:function(){var t;return null===(t=e.settings)||void 0===t?void 0:t.hasTopicDirectories}}))})))):a.createElement(a.Fragment,null)}var _e=n(11518),Ve=n(43933),Re=n(39880);const Be="k2Xse";function He(e){return a.createElement("div",{className:"".concat(Be," position-relative flex-shrink-0 ").concat(e.theme.backgroundSecondary)},a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"text-decoration-none my-2 mx-1 rounded-3 d-block position-relative",analyticsData:e.analyticsData(e.data),analyticsOptions:e.analyticsOptions},a.createElement(Ve.X,{isHovering:!1,date:new Date(e.data.startDate),notCurrentMonth:!1,monthQuery:null,eventsOnDay:[e.data],events:[e.data],sliderStep:0,presentationId:e.data.content.presentationId,hoveredEvent:null,isMultiEventDate:!1,className:"rounded-3",getBackgroundColor:e.getBackgroundColor,getIconUrl:e.getIconUrl,hasInitialized:!0,responsiveText:!1,hideDay:!0})))}function Ue(e){var t=e.data,n=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n}(e,["data"]);return"date-widget-item"===t.type?a.createElement("div",{className:"".concat(Be," ").concat("Hrx2m"," flex-shrink-0 ").concat(e.theme.backgroundSecondary," position-relative")},a.createElement(Re.s,{month:t.month,body:t.body,label:t.label,getAppLink:function(){return e.getAppLink(t)},analyticsData:Object.assign(Object.assign({},e.analyticsData),{label:t.label,month:t.month,body:t.body.text}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Url,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget}),className:"my-2 mx-1",theme:e.theme})):"Livestream"===t.type?a.createElement(He,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.company.metadata)||void 0===t?void 0:t.colour},getIconUrl:function(e){var t;return null===(t=e.company.logo)||void 0===t?void 0:t.url},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.content.id,name:t.content.name,startDateTime:t.content.startDateTime,endDateTime:t.content.endDateTime})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})})):a.createElement(He,Object.assign({},n,{data:t,getBackgroundColor:function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.backgroundColor},getIconUrl:function(e){return function(e){var t;return p.j.createUrl(null===(t=e.icon)||void 0===t?void 0:t.url,{size:u.h2.Small})}(e)},getHardCodedEvent:function(e){return ce.e.SpecialEvents[e.id]},analyticsData:function(t){return Object.assign(Object.assign({},e.analyticsData),{id:t.specialEventId,name:t.name,startDate:t.startDate,endDate:t.endDate,classificationId:t.content.id,classificationName:t.content.name})},analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.SpecialEvent,actionType:c.Vw.Click,location:c.LZ.EventIconSlidingListWidget})}))}function We(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ze(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 ze(e,t){if(e){if("string"==typeof e)return Ge(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)?Ge(e,t):void 0}}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Ze=V.T.encloseNamespace("widgets.eventIconSlidingList");function Ye(e){var t,n,i=a.useMemo((function(){return function(e,t){var n=We(t===O.VH.Livestream?e.map((function(e){return{id:e.id,startDate:o.O.format(e.startDateTime,"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}})):e).sort((function(e,t){return e.startDate.localeCompare(t.startDate)})),a=new Date,i=o.O.format(a,"YYYY-MM-DD"),r=o.O.format(o.O.add(i,1,"day"),"YYYY-MM-DD"),l=o.O.format(o.O.add(o.O.startOf(a,"week"),8,"days"),"YYYY-MM-DD"),c=o.O.format(o.O.add(l,6,"days"),"YYYY-MM-DD"),s=o.O.format(o.O.startOf(a,"month"),"YYYY-MM-DD"),d=o.O.format(o.O.endOf(a,"month"),"YYYY-MM-DD"),u=o.O.format(o.O.startOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),m=o.O.format(o.O.endOf(o.O.add(a,1,"month"),"month"),"YYYY-MM-DD"),p=o.O.format(o.O.startOf(o.O.add(a,2,"month"),"month"),"YYYY-MM-DD"),v=o.O.format(o.O.add(a,1,"year"),"YYYY-MM-DD"),f=new Map;function g(e){if(f.has(e.group)){var t=f.get(e.group);f.set(e.group,Object.assign(Object.assign({},t),{events:[].concat(We(t.events),[e.event])}))}else f.set(e.group,{events:[e.event],label:e.label,body:e.body,monthLabel:e.monthLabel,startDate:e.startDate,endDate:e.endDate})}n.forEach((function(e){if(e.startDate<=i)g({group:"today",startDate:i,endDate:null,event:e,body:{text:o.O.format(i,"DD"),type:"day"},monthLabel:o.O.format(i,"MMMM"),label:Ze("today")});else if(e.startDate!==r)if(e.startDate>r&&e.startDate<l){var t=o.O.format(e.startDate,"dddd");g({group:t,startDate:e.startDate,endDate:e.endDate,event:e,monthLabel:o.O.format(e.startDate,"MMMM"),body:{text:o.O.format(e.startDate,"DD"),type:"day"},label:t})}else e.startDate>=l&&e.startDate<=c?g({group:"nextWeek",startDate:l,endDate:c,event:e,monthLabel:o.O.isSame(l,c,"month")?o.O.format(l,"MMMM"):"".concat(o.O.format(l,"MMM")," - ").concat(o.O.format(c,"MMM")),body:{text:"".concat(o.O.format(l,"DD"),"-").concat(o.O.format(c,"DD")),type:"range"},label:Ze("nextWeek")}):e.startDate>=s&&e.startDate<=d?g({group:"thisMonth",startDate:s,endDate:d,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("thisMonth")}):e.startDate>=u&&e.startDate<=m?g({group:"nextMonth",startDate:u,endDate:m,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("nextMonth")}):e.startDate>=p&&e.startDate<=v&&g({group:"later",startDate:p,endDate:v,event:e,monthLabel:"",body:{text:o.O.format(e.startDate,"MMM"),type:"month"},label:Ze("later")});else g({group:"tomorrow",startDate:r,endDate:null,event:e,body:{text:o.O.format(r,"DD"),type:"day"},monthLabel:o.O.format(e.startDate,"MMMM"),label:Ze("tomorrow")})}));var h,y=[],b=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ze(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){o=!0,i=e},f:function(){try{r||null==t.return||t.return()}finally{if(o)throw i}}}}(f.values());try{for(b.s();!(h=b.n()).done;){var E=h.value,w={label:E.label,body:E.body,month:E.monthLabel,appLinkMonth:o.O.format(E.startDate,"MMMM"),appLinkYear:o.O.format(E.startDate,"YYYY"),type:"date-widget-item"};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]),r=e.contentType===O.VH.Livestream?{background:"bg-light-green",border:"border-light-green",backgroundSecondary:"bg-light-blue"}:{background:"bg-light-blue",border:"border-light-blue",backgroundSecondary:"bg-light-yellow"};return a.createElement(_e.kM,{id:e.id,name:e.name,description:e.description,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.calendar)||void 0===n?void 0:n.call(t),type:O.l9.Row,contents:N.z.SpecialEvents,getChildAppLink:function(t){var n,a,i,r,o,l;return"date-widget-item"===t.type?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.calendarMonth)||void 0===a?void 0:a.call(n,t.appLinkMonth,t.appLinkYear):"Livestream"===t.type?null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.livestream)||void 0===r?void 0:r.call(i,t.content):null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,t.content)},collection:i,childComponent:Ue,extraChildComponentProps:{theme:r},analyticsData:e.analyticsData,isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,prefetched:!0})}var qe=n(39202),Qe=n(57825),Ke=n(49439);function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var $e=a.memo((function(e){var t,n,i=e.data,r=e.subTextAppLink,o=e.context,l=e.thumbnailSize,c=e.preloadImage,s=(t=(0,Ke.L)({className:"x7nyG",style:{transform:"scale(".concat((null==o?void 0:o.type)===O.l9.LargeRow?1.1:1.15,")")}}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Xe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xe(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],u=s[1];a.useEffect((function(){e.onHover(u)}),[u]);var m="eo8oY";return o.type===O.l9.LargeRow&&(m="lhqxB"),a.createElement("div",{ref:d,className:"px-1 flex-shrink-0 position-relative ".concat(m," ").concat("A7FeL")},a.createElement(Qe.u,{video:i,type:"expandable",appLink:e.getAppLink(i),subTextAppLink:r,imageOptions:{size:l},preload:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,hovering:u,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin}))}));const Je="eSMIx",et="layDP";function tt(e){var t,n,i=De.d.getCustomAppLink(e),r=(null==e?void 0:e.imageCdnUrl)&&(null===(t=e.metadata)||void 0===t?void 0:t.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Medium):"";return a.createElement("div",null,a.createElement(C.F,{appLink:i,style:r?{backgroundImage:"url(".concat(r,")")}:{},className:"".concat(Je," mb-2 d-flex justify-content-between no-decoration ").concat(e.name?"":et),analyticsData:{url:qe.C$.getHref(i)},analyticsOptions:{actionType:c.Vw.Click,entity:c.py.Url,location:c.LZ.ContentUpdatesBanner}},a.createElement("h2",{className:"h4 text-white mb-0"},e.name)),a.createElement(L.k,{id:e.id,type:O.l9.Row,contents:N.z.Videos,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,seriesAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.series},hideBleedingContent:e.showHighlight,analyticsData:e.analyticsData,limitTotalItems:e.limitTotalItems,prefetched:!0,hideName:!0}))}var nt=n(81993);function at(e){return a.createElement(C.F,{appLink:e.getAppLink(e.data),className:"".concat("TzZuL"," ").concat(e.ratingsLength>4?"":4===e.ratingsLength?"col-4 col-md-3":"col"," position-relative flex-shrink-0 px-1 mt-1 text-decoration-none"),analyticsData:Object.assign(Object.assign({},e.analyticsData),{code:e.data.code,id:e.data.id}),analyticsOptions:Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Rating,actionType:c.Vw.Click,location:c.LZ.FilterSlidingPillListSmallWidget})},a.createElement("div",{className:"".concat(nt.u.mapRatingToClass(e.data.value)," py-3 rounded-3")},a.createElement("div",{className:"d-flex justify-content-center align-items-center text-white text-shadow"},a.createElement(s.x,{svgName:v.vn.Search,size:s.S.Medium}),a.createElement("h4",{className:"mb-0"},e.data.code))))}var it=n(72639);function rt(e){var t,n=(t=e.presentation,ue.i.getMappedPresentationLevel(t.learningLevel)===it.p.Level_1?64:128),i=e.content.filter((function(e){return e.code&&e.value<n}));return a.createElement(a.Fragment,null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.Ratings,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.rating)||void 0===a?void 0:a.call(n,t,i)},collection:i,childComponent:at,analyticsData:e.analyticsData,extraChildComponentProps:{ratingsLength:i.length},prefetched:!0}))}function ot(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 lt(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 ct="iCyo4",st="cgv_6";function dt(e){var t,n,i,r,o,l,s=(0,j.k)(),d={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(C.F,{appLink:function(){var t,n,a=Oe.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:d},a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ct),style:{backgroundImage:"url('".concat((l=Oe.m.first(e.content),p.j.createBannerUrl(l.banner,{fallbackBaseUrl:"",fallbackCategoryName:l.name,type:u.__.Banners},{size:u.h2.Large})),"')")}},e.name&&a.createElement("div",{className:st},a.createElement("p",{className:(o="text-white clamp-2",s.xs||s.sm?o+=" h4":s.md?o+=" h3":o+=" h2",o+=" text-white")},e.name)),!!(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.text)&&a.createElement("div",{className:"BXwH2"},a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},null===(r=null===(i=e.metadata)||void 0===i?void 0:i.cta)||void 0===r?void 0:r.text))))}function ut(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(ct)},a.createElement("div",{className:"".concat(st)}))}function mt(e){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt(e)}function pt(e,t,n){return(t=function(e){var t=function(e){if("object"!=mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt,ft,gt;!function(e){e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6"}(vt||(vt={})),function(e){e.Dark="dark",e.White="white"}(ft||(ft={})),function(e){e.NewWindow="new-window",e.TopicDirectory="topic-directory",e.TopicNewReleases="topic-new-releases",e.CuratedTopic="curated-topic"}(gt||(gt={})),vt.H1,vt.H2,vt.H3,vt.H4,vt.H5,vt.H6,ft.Dark,ft.White,gt.NewWindow;var ht=pt(pt(pt(pt({},gt.NewWindow,v.vn.NewWindow),gt.TopicDirectory,v.vn.Grid),gt.TopicNewReleases,v.vn.Sparkle),gt.CuratedTopic,v.vn.Rectangles),yt=pt(pt(pt(pt(pt(pt(pt(pt({},vt.H1,"h1"),vt.H2,"h2"),vt.H3,"h3"),vt.H4,"h4"),vt.H5,"h5"),vt.H6,"h6"),ft.Dark,"text-dark"),ft.White,"text-white");const bt="b5ljD",Et="dj_1H",wt="UBcVE",kt="fGBlR",Lt="lkPfM";function Ct(e){var t,n,i,r=yt[(null===(t=e.metadata.theming)||void 0===t?void 0:t.headingSize)||vt.H6],o=yt[(null===(n=e.metadata.theming)||void 0===n?void 0:n.headingColor)||ft.Dark];return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(bt)},a.createElement("div",{className:"".concat(Et," ").concat(wt," d-flex"),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},e.name&&a.createElement("div",{className:"".concat(Lt," ").concat(e.widgetTypeId===de.z.Blurb?wt:""," d-flex justify-content-between w-100 px-3")},a.createElement("p",{className:"".concat(r," ").concat(o," mb-0")},e.name),(null===(i=e.metadata.cta)||void 0===i?void 0:i.text)&&a.createElement(W.h,{svgName:v.vn.NewWindow,className:"btn btn-dark text-nowrap",href:e.metadata.cta.href,openInNewTab:!0},e.metadata.cta.text))))}function Tt(e){var t,n;if(!(null===(t=e.cta)||void 0===t?void 0:t.text))return a.createElement("div",null);var i="btn btn-outline-dark text-nowrap me-3";return(null===(n=e.cta)||void 0===n?void 0:n.icon)?a.createElement(W.h,{svgName:ht[e.cta.icon],className:i,openInNewTab:!0},e.cta.text):a.createElement("div",{className:i},e.cta.text)}function xt(e){return a.createElement(C.F,{appLink:e.appLink,className:"text-decoration-none",analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions},a.createElement("div",{className:"banner rounded-3 position-relative ".concat("MQAsk")},a.createElement("div",{className:"".concat("Sk9ox"," d-flex justify-content-between align-items-center"),style:e.style},!!e.heading&&a.createElement("div",{className:"d-flex align-items-center ps-3 h-100"},a.createElement("h2",{className:"text-white text-shadow h4 clamp-1"},e.heading)),a.createElement(Tt,{cta:e.cta}))))}function St(e){var t,n,i,r=Oe.m.first(e.content),o={location:c.LZ.Classification,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Banner};return a.createElement(xt,{heading:e.name,appLink:null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.classification)||void 0===n?void 0:n.call(t,r),analyticsData:e.analyticsData,analyticsOptions:o,style:{backgroundImage:"url('".concat(p.j.createBannerUrl(r.banner,{fallbackBaseUrl:"",fallbackCategoryName:r.name,type:u.__.Banners},{size:u.h2.Large}),"')"),backgroundSize:"100%"},cta:null===(i=e.metadata)||void 0===i?void 0:i.cta})}function Nt(e){var t=e.hasPermissions(Ne.C.ManageSubjectPreferences)||e.hasLocalPermissions(Ne.E.ManagePublicPresentation);function n(t){var n,i,r={middlewareOptions:{presentationSlug:null==t?void 0:t.vanitySlug}},o=Object.assign(Object.assign({},e.analyticsData),{id:t.id,presentationName:t.name}),l={entity:c.py.Presentation,actionType:c.Vw.Click,location:c.LZ.HeroBannerSmallWidget};return a.createElement(C.F,{className:"info-link d-inline",appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.discover)||void 0===i?void 0:i.call(n),appLinkOptions:r,analyticsData:o,analyticsOptions:l},t.name)}var i=e.name;return t?a.createElement("div",{className:"banner rounded-3 position-relative ".concat(bt)},a.createElement("div",{className:"".concat(Et," ").concat(kt),style:{backgroundImage:"url('".concat(p.j.getUrlById(e.imageCdnUrl,u.__.Banners,e.metadata.imageId,u.h2.Large),"')")}},i&&a.createElement("div",{className:"".concat(Lt," ").concat(kt," px-3")},a.createElement("p",{className:"h6 mb-0"},i," ",1===e.content.length?n(e.content[0]):2===e.content.length?a.createElement(a.Fragment,null,n(e.content[0])," or ",n(e.content[1])):a.createElement(a.Fragment,null,e.content.slice(0,e.content.length-1).map((function(e){return a.createElement(a.Fragment,{key:e.id},n(e),", ")})),"or ",n(Oe.m.last(e.content))),".")))):a.createElement(a.Fragment,null)}function Ot(e){switch(e.widgetTypeId){case de.z.Blurb:return a.createElement(Ct,Object.assign({},e,{content:e.content}));case de.z.Presentations:return a.createElement(Nt,Object.assign({},e,{content:e.content}));default:return a.createElement(St,Object.assign({},e,{content:e.content}))}}function Dt(){return a.createElement("div",{className:"banner rounded-3 position-relative ".concat(bt)},a.createElement("div",{className:"".concat(Lt)}))}function Pt(e){var t,n,i=Oe.m.first(e.content),r=(0,j.k)(),o={id:i.id,name:i.name,presentationId:i.presentationId},l={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return a.createElement(xt,{heading:e.name,appLink:function(){var t,n,a,r,o,l,c,s;switch(null===(n=null===(t=e.metadata)||void 0===t?void 0:t.cta)||void 0===n?void 0:n.appLink){case O.NK.TopicDirectory:return null===(r=null===(a=e.appLinks)||void 0===a?void 0:a.classificationDirectory)||void 0===r?void 0:r.call(a,i);case O.NK.CuratedTopic:return null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.classification)||void 0===l?void 0:l.call(o,i);case O.NK.TopicNewReleases:return null===(s=null===(c=e.appLinks)||void 0===c?void 0:c.classification)||void 0===s?void 0:s.call(c,i)}return null}(),analyticsData:o,analyticsOptions:l,style:{backgroundColor:null===(t=i.metadata)||void 0===t?void 0:t.backgroundColor,backgroundSize:"100%"},cta:r.xs?null:null===(n=e.metadata)||void 0===n?void 0:n.cta})}function jt(e){var t,n,i,r,o,l,s,d=null===(t=e.content)||void 0===t?void 0:t[0],m="thumbnail"in d&&p.j.createUrl(null===(n=d.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),v="metadata"in d&&(null===(i=d.metadata)||void 0===i?void 0:i.backgroundColor),f={backgroundColor:v,backgroundSize:"50%"};m&&(f.backgroundImage="url('".concat(m,"')"));var g=Object.assign(Object.assign({},e.analyticsData),{id:d.id,name:d.name,presentationId:"presentationId"in d&&d.presentationId}),h={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return m&&v?a.createElement(xt,{heading:e.name,appLink:null===(o=null===(r=e.appLinks)||void 0===r?void 0:r.classification)||void 0===o?void 0:o.call(r,d),analyticsData:g,analyticsOptions:h,style:f,cta:Object.assign({text:V.T.getPhrase("shared.heroThumbnailSmall","buttonLabel")},null!==(s=null===(l=e.metadata)||void 0===l?void 0:l.cta)&&void 0!==s?s:{})}):a.createElement(Ot,Object.assign({},e))}var At=n(43306),It=n(2948),Ft=n(46477),Mt=n(25925),_t=n(21750),Vt=(n(99940),n(97395)),Rt=n(1651),Bt=n(56050);function Ht(e){return Ht="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},Ht(e)}function Ut(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Wt(a.key),a)}}function Wt(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ht(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}var zt,Gt,Zt=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)},(t=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,a=e.sort,i=e.cursor;n&&(this.id=n),a&&(this.sort=a),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return Rt.Ry.throw(new Bt.H("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&Ut(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Yt(e){return Yt="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},Yt(e)}function qt(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Qt(a.key),a)}}function Qt(e){var t=function(e){if("object"!=Yt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yt(t)?t:t+""}function Kt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kt=function(){return!!e})()}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}function $t(e,t){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$t(e,t)}n(20588),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(zt||(zt={})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(Gt||(Gt={}));var Jt=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt.Newest,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gt.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=Xt(t),function(e,t){if(t&&("object"==Yt(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,Kt()?Reflect.construct(t,n||[],Xt(e).constructor):t.apply(e,n))}(this,t,[{collectionPrefix:"user:playlists",cursor:a,sort:n}])).type=i,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$t(e,t)}(t,e),n=t,(a=[{key:"toString",value:function(){return[this.collectionPrefix,this.sort,this.cursor,this.type].filter(Boolean).join(":")}}])&&qt(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(Zt),en=n(62803),tn=(n(5960),n(4594),n(78417),n(40370)),nn=n(61699),an=n(31949),rn=n(22902),on=n(25964),ln=n(75795);function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var sn={HIGH:.75,MODERATE:.5};function dn(e){return dn="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},dn(e)}function un(e,t,n){return(t=function(e){var t=function(e){if("object"!=dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn;!function(e){e.Small="small",e.Large="large",e.ExtraSmall="extraSmall"}(mn||(mn={}));var pn,vn=un(un(un({},mn.ExtraSmall,{size:2}),mn.Small,{size:2}),mn.Large,{size:5.8});function fn(e){var t=vn[e].size,n=e===mn.Large?.36:.2;return"".concat(t/2-2*n,"rem")}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn;return e>=t.HIGH?"PXLNj":e>=t.MODERATE?"ZckRN":"slBRg"}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sn;return e>=t.HIGH?"text-success":e>=t.MODERATE?"text-warning":"text-danger"}function yn(e,t){var n="d-inline-block ".concat("p8Vgz");return e===mn.Large&&(n+=" ".concat("N8KCI")),e===mn.ExtraSmall&&(n+=" ".concat("RPqZ2")),bn(t)&&(n+=" ".concat("DKrcq")),n}function bn(e){return"number"!=typeof e}function En(e){var t=a.useCallback((function(t){if(t){var n=t.r.baseVal.value,a=2*Math.PI*n,i=a-e.percentage*a;t.style.strokeDasharray="".concat(a," ").concat(a),t.style.strokeDashoffset=i.toString()}}),[e.percentage]);return a.createElement("svg",null,a.createElement("circle",{r:fn(e.size),className:"asGGE"}),!bn(e.percentage)&&a.createElement("circle",{ref:t,r:fn(e.size),className:gn(e.percentage,e.scoreThresholds)}))}function wn(e){var t,n,i=function(e){if(!bn(e))return+e.toFixed(2)}(e.percentage),r=e.size||(e.layout===pn.LabelInside?mn.Large:mn.Small),o=e.customLabel||(bn(n=i)?"--%":"".concat(Math.round(100*n),"%"));return e.layout===pn.LabelOnly?a.createElement("span",{className:hn(i)},o):a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===pn.LabelBefore&&a.createElement("span",{className:"me-2"},o),a.createElement("div",{className:yn(r,i)},a.createElement(En,{percentage:i,size:r,scoreThresholds:e.scoreThresholds}),e.layout===pn.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"}(pn||(pn={})),wn.defaultProps={layout:pn.CircleOnly};var kn=n(64818);var Ln="widgets.onboardingSteps",Cn=V.T.encloseNamespace(Ln);function Tn(e){var t,n,i,o,l,u,m,p,f=function(e){var t,n,i,o,l,c,s,d=(c=(0,It.D)("has:playlist",null),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(c,s)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(e,t):void 0}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],m=d[1],p=r.a.useBasicFetch(an.N.currentUser()),v=r.a.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.isAuthenticated)&&an.N.user(p.data.id)),f=r.a.useBasicFetch(_t.x.availablePresentations(Mt.R.Subject)),g=r.a.useBasicFetch(_t.x.presentation(Mt.R.Subject)),h=r.a.useBasicFetch(_t.x.availablePresentations(Mt.R.Curriculum)),y=r.a.useBasicFetch((n=new Jt,i=n.sort,o=n.type,l={sort:i,query:"{limit:100}".concat(en.v.PLAYLIST_COLLECTION,",_isClickViewCurated,_liteOwner")},n.cursor&&(l.cursor=n.cursor),{url:Vt._.urlBuilder("/api/domain/v2/me/playlists/".concat(o),l),key:n.toString()})),b=r.a.useBasicFetch(nn.o.mySubjectPreferences()),E=(0,rn.T)().hasPermissions;a.useEffect((function(){var e,t,n,a;y.hasCompleted&&u!==!!(null===(t=null===(e=y.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.length)&&m(!!(null===(a=null===(n=y.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.length))}),[y.hasCompleted]);var w=p.hasCompleted&&v.hasCompleted&&f.hasCompleted&&h.hasCompleted&&g.hasCompleted&&y.hasCompleted&&b.hasCompleted&&null!==u,k=(0,on.r)(null).userSettings;return{getPathway:function(){var t,n,a,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.jobTitleOverride||(null===(a=null===(n=null===(t=v.data)||void 0===t?void 0:t.userProfile)||void 0===n?void 0:n.metadata)||void 0===a?void 0:a.jobTitle),o=i.preferredPresentationOverride||g.data;return w?Ft.m.getOnboardingPathway({jobTitle:r,userSettings:k.data,presentations:f.data,curriculums:h.data,preferredSubjects:b.data,preferredPresentation:o,appLink:ln.O.getCurrentRoute().appLink,appLinks:e,masterUser:v.data,hasPlaylist:u,hasPermissions:E,currentUser:p.data}):{screens:{},currentScreen:null,totalScreens:0,totalScreensInProgressBar:0,hasCompletedAllSteps:!1}},hasLoadedPathway:w}}(null!==(i=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.onboardingAppLinks)||void 0===n?void 0:n.call(t))&&void 0!==i?i:{}),g=f.getPathway,h=f.hasLoadedPathway,y=h&&g(),b=kn.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(Ne.C.ViewOnboarding)&&!y.hasCompletedAllSteps)}())return a.createElement("div",{className:"mb-n3"});var E=function(){if(e.isPreviewing)return{};var t=At.H[y.currentScreen],n=y.screens[y.currentScreen],a=null==n?void 0:n.next,i=null==n?void 0:n.previous;return Object.assign({currentScreen:null==t?void 0:t.id,nextScreen:a,previousScreen:i,progress:Ft.m.getProgress(y)},Ft.m.getOnboardingScreenStates(y))}(),w=function(){if(e.isPreviewing)return{overallPercentage:75,totalScreens:8,currentStepNumber:6};var t=Ft.m.getProgress(y);return 0===t.overallPercentage?Object.assign(Object.assign({},t),{overallPercentage:10}):t}(),k=w.overallPercentage,L=w.totalScreens,T=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(wn,{percentage:Math.round(k)/100,layout:pn.LabelInside,scoreThresholds:{HIGH:.75,MODERATE:0}})),a.createElement("div",null,a.createElement("h2",{className:"h4"},e.isPreviewing?null===(o=At.H["select-videos"])||void 0===o?void 0:o.getWidgetHeading(b):null===(l=At.H[y.currentScreen])||void 0===l?void 0:l.getWidgetHeading(b)),a.createElement("div",{className:"dTKo5"},a.createElement(s.x,{svgName:v.vn.ArrowRight,className:"svg-container me-1"}),a.createElement("p",{className:"ypP5M"},function(e,t,n,a){var i=At.H[e];return t===n?"".concat(Cn("lastStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):1===t?"".concat(Cn("firstStepDescriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a)):"".concat(Cn("descriptionPrefix")," ").concat(null==i?void 0:i.getWidgetDescription(a))}(e.isPreviewing?"select-videos":y.currentScreen,T,L,b))))),a.createElement("div",{className:"align-items-center justify-content-end h-100 ".concat("w05om"),style:{backgroundImage:"url('".concat(null===(u=e.imageUrls)||void 0===u?void 0:u.onboardingTeacherBackground,"')")}},a.createElement(C.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:c.Vw.Click,entity:c.py.User,location:c.LZ.OnboardingStepsWidget,descriptor:c.Ix.FinishPersonalising}},a.createElement(d.x,{namespace:Ln,phrase:"completeSetup"}))))}function xn(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 Sn=n(31015),Nn=n(68626),On=n(80143);var Dn=a.memo((function(e){var t,n=e.data,i=e.getSubTextAppLink,r=e.context,o=e.thumbnailSize,l=e.preloadImage,c=e.presentationAudiences,s=null===(t=null==n?void 0:n.subjectPresentationAudiences)||void 0===t?void 0:t.data,d=(0,On.n)(s,c),u=(0,j.k)(),m="JSM4l";return r.type===O.l9.LargeRow&&(m="YYpNz"),a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat(m)},a.createElement(Qe.u,{type:e.preventPopout||u.xs?"static":"popout",textPosition:Nn.z.Below,video:n,appLink:e.getAppLink(n),subTextAppLink:tn.M.isVideo(n)&&(null==i?void 0:i(n)),imageOptions:{size:o},preload:l,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,canFavourite:e.canFavourite,setFavourite:e.setFavourite,imageCdnUrl:e.imageCdnUrl,audience:d,hideRating:!!d,hideDuration:!1,yearGroups:e.yearGroups,hideTitle:e.hideTitle,showVideoGuidance:e.showVideoGuidance,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:e.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:e.getResourceGuidanceAppLink,getClassroomGuideAppLink:e.getClassroomGuideAppLink,showNewVideoIndicator:e.showNewVideoIndicator}))}));function Pn(e){var t,n,i,r,o,l,c,s,d,u,m,p,v,f=Sn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:O.l9.LargeRow,contents:N.z.Videos,collection:g,childComponent:Dn,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,yearGroups:e.yearGroups,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,companyLogoFallbackUrl:e.companyLogoFallbackUrl,showVideoGuidance:tn.M.showVideoGuidance(e.hasPermissions),subTextType:e.subTextType,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(d=e.settings)||void 0===d?void 0:d.hasTopicDirectories},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(u=f.getCollectionAppLink)||void 0===u?void 0:u.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId})}function jn(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 An=V.T.encloseNamespace("shared.subjectStatsBadge");function In(e){return a.createElement("div",{className:function(){var t="fw-semibold d-inline-block rounded-pill px-2 ".concat("NWZxu");switch(e.badgeType){case"coming-soon":return t+" bg-light ps-1 d-inline-flex align-items-center";case"new-topic":return t+" ".concat("KLRzE");case"new-videos":return t+" ".concat("xozwy");default:return""}}()},"coming-soon"===e.badgeType&&a.createElement(s.x,{svgName:v.vn.TimerSmall,className:"svg-container ".concat("G9W_I"),size:s.S.ExtraSmall}),function(){switch(e.badgeType){case"coming-soon":return An("comingSoon");case"new-topic":return An("new");case"new-videos":return An("newVideos",{smartCount:e.newVideoCount});default:return""}}())}function Fn(e){if(e.isTertiaryCustomerWithoutExchange||e.widgetTypeId!==de.z.ClassificationLatestReleasedVideosV2||!e.classification)return a.createElement(a.Fragment,null);var t=ue.i.getCounts(e.classification),n=t.dashboardNewVideosCount+t.childDashboardNewVideoCount;return n?a.createElement("div",{className:"ms-2"},a.createElement(In,{badgeType:"new-videos",newVideoCount:n})):a.createElement(a.Fragment,null)}function Mn(e){var t,n,i,r,o,l,c,s,d,u,m,p,v,f=Sn.u[e.widgetTypeId],g=De.d.getVideoContent(e.content);return a.createElement(L.k,{id:e.id,name:!(null===(t=e.metadata)||void 0===t?void 0:t.hideWidgetHeading)&&e.name,description:!(null===(n=e.metadata)||void 0===n?void 0:n.hideWidgetDescription)&&e.description,type:O.l9.Row,contents:N.z.Videos,collection:g,childComponent:Dn,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,presentationAudiences:e.audiences,getSubTextAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.subText,imageCdnUrl:e.imageCdnUrl,hideTitle:null===(r=e.metadata)||void 0===r?void 0:r.hideObjectTitle,hideSeries:null===(o=e.metadata)||void 0===o?void 0:o.hideObjectSeries,yearGroups:e.yearGroups,showVideoGuidance:tn.M.showVideoGuidance(e.hasPermissions),companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,preventPopout:e.preventPopout,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,getResourceGuidanceAppLink:null===(c=e.appLinks)||void 0===c?void 0:c.resourceGuidance,getInteractiveGuidanceAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.interactiveGuidance,showNewVideoIndicator:null===(d=e.settings)||void 0===d?void 0:d.hasTopicDirectories},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null!==(m=null===(u=f.getCollectionAppLink)||void 0===u?void 0:u.call(f,e.appLinks,e.content))&&void 0!==m?m:null===(v=null===(p=e.appLinks)||void 0===p?void 0:p.widgetVideoList)||void 0===v?void 0:v.call(p,e.id,e.name),isPreviewing:e.isPreviewing,widgetTypeId:e.widgetTypeId,headingBadgeComponent:a.createElement(Fn,Object.assign({},e))})}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Vn=n(70580);function Rn(e){var t=e.data,n=Object.assign(Object.assign({},e.analyticsData),{id:null==t?void 0:t.id,name:null==t?void 0:t.name}),i=Object.assign(Object.assign({},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Series,descriptor:c._S.TallPoster});return a.createElement(C.F,{key:t.id,appLink:e.getAppLink(t),className:"position-relative px-1 flex-shrink-0 ".concat(e.isSmall?"PQ2sv":"HZ00X"," "),analyticsData:n,analyticsOptions:i},a.createElement(Vn.r,{series:t,presentationAudiences:e.audiences,preloadImage:e.preloadImage,isSmall:e.isSmall,hasTableOfContents:e.hasTableOfContents}))}function Bn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.Series,collection:e.content,childComponent:Rn,extraChildComponentProps:{audiences:e.audiences,hasTableOfContents:e.hasTableOfContents},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.series)||void 0===a?void 0:a.call(n,t)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData})}const Hn="fgIje",Un="CJwKL";var Wn=function(e){return a.createElement("div",{className:"".concat(e.type===O.l9.Row?Hn:Un," px-1")},a.createElement("div",{className:"".concat("IgCcl"," partial-loading-background rounded-3")}))};function zn(e){for(var t,n,i=(t=e.type,(n=(0,j.k)()).xs?2:n.sm?3:n.md?4:n.lg||t===O.l9.LargeRow?5:6),r=[],o=0;o<i;o++)r.push(a.createElement(Wn,{key:o,type:e.type}));return a.createElement("div",{className:"pb-3"},a.createElement(P.l,null),a.createElement("div",{className:"row g-0 mx-n1"},r))}var Gn=n(85473),Zn=n(85177);function Yn(e){var t,n=e.data,i=e.preloadImage,r=Object.assign(Object.assign({},e.analyticsOptions),{entity:c.py.Classification,actionType:c.Vw.Click,descriptor:c._S.TallPoster});return a.createElement("div",{className:(t="VtrLt",e.context.type===O.l9.Row?t+=" ".concat(Hn):t+=" ".concat(Un),t)},a.createElement(Gn.Z,{data:n.tallPoster,alt:n.name,appLink:e.getAppLink(n),imageType:u.__.TallPosters,preload:i,imageOptions:{size:u.h2.Medium},imageClassName:"rounded-3",analyticsData:e.analyticsData,analyticsOptions:r},a.createElement(Zn.oy,{type:Zn.mS.TallSubject}),a.createElement("h3",{className:"px-2 ".concat("P16Yg")},n.name)))}function qn(e){return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.LargeRow,contents:N.z.Subjects,collection:e.content,childComponent:Yn,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 Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Kn="explore-all-topics";function Xn(e){var t,n=function(e){var t,n,a,i,r;if((null===(t=e.metadata)||void 0===t?void 0:t.text)||(null===(n=e.metadata)||void 0===n?void 0:n.imageId))return{id:(null===(a=e.metadata)||void 0===a?void 0:a.appLink)===O.OL.ExploreAllTopics?Kn:"",name:null===(i=e.metadata)||void 0===i?void 0:i.text,tallPoster:{url:(null===(r=e.metadata)||void 0===r?void 0:r.imageId)?p.j.getUrlById(e.imageCdnUrl,u.__.TallPosters,e.metadata.imageId,u.h2.Medium):""}}}(e),i=De.d.getCustomAppLink(e);return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,appLink:i,description:e.description,type:O.l9.Row,contents:N.z.Subjects,collection:n?[n].concat((t=e.content,function(e){if(Array.isArray(e))return Qn(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):e.content,childComponent:Yn,extraChildComponentProps:{audiences:e.audiences},getChildAppLink:function(t){var n,a,i,r;return t.id?t.id===Kn?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.allTopics)||void 0===a?void 0:a.call(n,e.presentation.id):null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,t):null},analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}function $n(e){var t;return a.createElement("div",null,a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.SmallSeries,collection:e.content,childComponent:Rn,extraChildComponentProps:{audiences:e.audiences,isSmall:!0},getChildAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,analyticsData:e.analyticsData,prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight}))}var Jn=n(56097);function ea(e){var t=Oe.m.first(e.content),n=t.question,i=t.answer;return a.createElement(Jn.$,{id:e.id,answer:i,question:n,isBot:e.isBot,analyticsData:e.analyticsData})}const ta="Jg3am";function na(){return a.createElement("div",{className:"".concat("tWUKI"," ").concat(ta," rounded-2 mb-2")},a.createElement("div",{className:"partial-loading-background",style:{height:"1.5rem",width:"75%"}}))}var aa=n(81024),ia=n.n(aa),ra=n(57900),oa=n(10038),la=n(52108);function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sa(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)?sa(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 sa(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 da(e){var t,n,i,r,o,d=ca((0,It.D)("should:expand:".concat(e.id),e.isBot,{storage:ra.Z1.LocalStorage}),2),u=d[0],m=d[1],p=ca(a.useState(u?"100%":"0px"),2),f=p[0],g=p[1],h=ca(a.useState(ia()(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:la.M.getSeoWidgetRenderer()})),2),y=h[0],b=h[1],E=a.useRef(null),w=a.useRef(null);function k(){g("0px"),m(!1)}return a.useEffect((function(){var t,n,a=ia()(null!==(n=null===(t=e.faq)||void 0===t?void 0:t.answer)&&void 0!==n?n:"",{renderer:la.M.getSeoWidgetRenderer()});y!==a&&(y&&u&&k(),b(a))}),[null===(i=e.faq)||void 0===i?void 0:i.answer]),(0,oa.H)((function(){u&&k()}),null,[u]),a.useEffect((function(){"100%"===f&&w.current&&g(w.current.clientHeight+"px")}),[f]),(null===(r=e.faq)||void 0===r?void 0:r.question)&&(null===(o=e.faq)||void 0===o?void 0:o.answer)?a.createElement(be.L,{onClick:function(t){var n;la.M.isLink(t.target)||0===window.getSelection().toString().length&&(l.k.logUserAction(Object.assign(Object.assign(Object.assign({},e.analyticsData),e.faq),{questionIndex:e.index}),{entity:c.py.Faq,actionType:c.Vw.Click,descriptor:u?c._S.Collapse:c._S.Expand,location:c.LZ.FaqQuestionAccordionWidget}),u?k():((n=document.createElement("p")).innerHTML=y,n.style.visibility="hidden",n.classList.add("py-1"),E.current.appendChild(n),g("".concat(n.clientHeight-10,"px")),E.current.removeChild(n),m(!0)))},className:"".concat("G1OXf"," rounded-2")},a.createElement("div",{className:"d-flex align-items-center ".concat(ta)},a.createElement("div",{className:"rounded-circle bg-white me-2"},a.createElement(s.x,{svgName:u?v.vn.Minus:v.vn.Plus})),a.createElement("h3",{className:"mb-0 font-size-normal fw-normal"},e.faq.question)),a.createElement("div",{className:"".concat("z5LRc"),style:{height:f}},a.createElement("p",{className:"mb-0 py-1",dangerouslySetInnerHTML:{__html:y},ref:w}),a.createElement("div",{ref:E}))):a.createElement(a.Fragment,null)}function ua(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(da,{key:n,id:"".concat(e.id,":").concat(n),faq:t,index:n,analyticsData:e.analyticsData,isBot:e.isBot}))})))):a.createElement(a.Fragment,null)}const ma={container:"wzt8R",bellContainer:"X7Jgx",bell:"HoKe4",followed:"Pdmdk",bellOutline:"bEQDk",cover:"luOU3",fallbackImage:"ReXqz",subText:"p0kUV"};function pa(){return a.createElement("div",{className:"d-flex"},a.createElement("div",{className:"".concat(ma.cover," me-2 rounded overflow-hidden border rounded d-inline-block")},a.createElement("div",{className:ma.partialIcon},a.createElement(Zn.oy,{type:Zn.mS.Subject}))),a.createElement("div",{className:"d-inline-block",style:{flexBasis:"50%"}},a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"19px",width:"100%"}}),a.createElement("div",{className:"partial-loading-background mt-1",style:{height:"16.5px",width:"75%"}})))}var va=n(2284);function fa(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 ga=V.T.encloseNamespace("shared.subjectStatsWidgetItem");function ha(e){var t,n,i,r,l,d,m=(l=a.useState(!1),d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=r.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(l,d)||function(e,t){if(e){if("string"==typeof e)return fa(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)?fa(e,t):void 0}}(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=m[0],f=m[1],g=(null===(t=e.classification)||void 0===t?void 0:t.status)===va.W.ComingSoon,h=ue.i.isFollowing(e.classification),y=ue.i.getCounts(e.classification),b=y.dashboardNewVideosCount,E=y.childDashboardNewVideoCount,w=y.dashboardResourceCount,k=y.childDashboardResourceCount,L=y.dashboardVideoCount,T=y.childDashboardVideoCount,x=y.childClassificationCount,S=L+T,N=w+k,O=b+E,D=function(){if(e.classification.status===va.W.ComingSoon||e.hideCounts)return"";var t="";if(S&&(t+="".concat(ga("videos",{smartCount:S})," ")),N&&(t+=" • ".concat(ga("resources",{smartCount:N}))),ue.i.isTopLevelTopic(e.classification)&&x>0){if(!t)return ga("topics",{smartCount:x});t="".concat(ga("topics",{smartCount:x})," • ")+t}return t}();return a.createElement(C.F,{className:"d-flex no-decoration rounded ".concat(ma.container),appLink:null===(n=e.getAppLink)||void 0===n?void 0:n.call(e,e.classification),analyticsData:Object.assign(Object.assign({},e.analyticsData),{id:null===(i=e.classification)||void 0===i?void 0:i.id,name:null===(r=e.classification)||void 0===r?void 0:r.name,presentationId:e.classification.presentationId,comingSoon:!!g,videoCount:S,resourceCount:N,newVideoCount:O,datePublished:e.classification.datePublished,countsHidden:!!e.hideCounts}),analyticsOptions:Object.assign(Object.assign({location:c.LZ.SubjectStatsWidgetItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Cover})},!p&&a.createElement(Zn.oy,{type:Zn.mS.Subject,extraClasses:"ms-2 ".concat(ma.fallbackImage)}),a.createElement("div",{className:"".concat(ma.cover," me-2 rounded overflow-hidden")},a.createElement(Gn.Z,{data:e.classification.cover,imageOptions:{size:u.h2.Medium},imageClassName:g?"opacity-50":"",onLoad:function(){return f(!0)}},e.canFollowTopics&&a.createElement(be.L,{onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),e.canFollowTopics&&(null===(n=e.onToggleFollowClassification)||void 0===n||n.call(e,e.classification,c.LZ.SubjectStatsWidgetItem))},className:"\n align-items-center justify-content-center cursor-pointer\n ".concat(ma.bellContainer," ").concat(h?ma.followed:"","\n ")},a.createElement(s.x,{svgName:v.vn.BellFilled,className:"svg-container ".concat(ma.bell)}),a.createElement(s.x,{svgName:v.vn.Bell,className:"svg-container ".concat(ma.bellOutline)})))),a.createElement("div",null,a.createElement("h3",{className:"h6 mb-0 clamp-2 mt-1"},e.classification.name),!!D&&a.createElement("p",{className:"mb-0 ".concat(ma.subText)},D),a.createElement(In,{badgeType:function(){if(e.classification.status===va.W.ComingSoon)return"coming-soon";var t=e.classification.datePublished;return t&&o.O.timeSince(t,"day")<=30?"new-topic":O>0&&!e.hideCounts?"new-videos":null}(),newVideoCount:O})))}function ya(e){return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:e.name,description:e.description}),a.createElement(I.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(ha,{classification:t,analyticsData:e.analyticsData,getAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classification,onToggleFollowClassification:e.onToggleFollowClassification,canFollowTopics:!1,hideCounts:e.isTertiaryCustomerWithoutExchange}))}))))}function ba(){return a.createElement("div",{className:"partial-loading-background rounded-pill me-2",style:{height:"2.5rem",width:"9.375rem"}})}function Ea(){return a.createElement("div",{className:"d-flex align-items-center mw-100"},a.createElement(ba,null),a.createElement(ba,null))}var wa=n(43889);function ka(e){var t,n,i,r,o,l,c,s=Oe.m.first(De.d.getVideoContent(e.content));return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:e.name,description:e.description}),a.createElement(wa.J,{video:s,presentationAudiences:e.audiences,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,subTextAppLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.subText)||void 0===i?void 0:i.call(n,s),setFavourite:e.setFavourite,canFavourite:e.canFavourite,analyticsData:e.analyticsData,hideInteractiveBadge:!0,showVideoGuidance:tn.M.showVideoGuidance(e.hasPermissions),yearGroups:e.yearGroups,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:e.subTextType,imageCdnUrl:e.imageCdnUrl,isPlugin:e.isPlugin,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance,getResourceGuidanceAppLink:null===(o=e.appLinks)||void 0===o?void 0:o.resourceGuidance,getClassroomGuideAppLink:null===(l=e.appLinks)||void 0===l?void 0:l.classroomGuide,showNewVideoIndicator:null===(c=e.settings)||void 0===c?void 0:c.hasTopicDirectories}))}function La(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ca(e){var t,n,i,r=p.j.createUrl(null===(t=e.data.cover)||void 0===t?void 0:t.url,{size:u.h2.Small}),o=p.j.createUrl(null===(n=e.data.thumbnail)||void 0===n?void 0:n.url,{size:u.h2.Medium}),l={backgroundColor:null===(i=e.data.metadata)||void 0===i?void 0:i.backgroundColor};return o&&(l.backgroundImage="url('".concat(o,"')")),a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("hcAU2"," ").concat(e.isLarge?"Tbieu":"mGGrd"),style:l},a.createElement("div",{className:"".concat("VtzxT"," ").concat(e.isLarge?"":"justify-content-center")},a.createElement("div",{className:"".concat("jrY7R")},a.createElement("p",{className:"".concat("yAgR6"," h3 text-shadow ").concat(e.isLarge?"mb-0 text-wrap clamp-2":"text-wrap clamp-3"),title:e.data.name},e.data.name),e.isLarge&&a.createElement("div",{className:"text-start text-shadow ".concat("RjJ7O")},a.createElement("p",{className:"clamp-3",title:e.data.description},e.data.description))),e.isLarge&&a.createElement("div",{className:"hGi43"},a.createElement("div",{className:"".concat(!e.appLink&&"cursor-default"," btn btn-outline-dark")},V.T.getPhrase("shared.subjectThumbnailWidgetItem","buttonLabel")))),!o&&!!r&&a.createElement("div",{className:"".concat("TJ7Sl"),style:{backgroundImage:"url('".concat(r,"')")}}))}var Ta=a.memo((function(e){var t,n,i,r,o=(null===(t=e.data)||void 0===t?void 0:t.status)===va.W.ComingSoon,l=Object.assign(Object.assign({},e.analyticsData),{id:null===(n=e.data)||void 0===n?void 0:n.id,name:null===(i=e.data)||void 0===i?void 0:i.name,presentationId:null===(r=e.data)||void 0===r?void 0:r.presentationId,comingSoon:!!o}),s=Object.assign(Object.assign({location:c.LZ.ClassificationListItem},e.analyticsOptions),{actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail});return e.appLink?a.createElement(C.F,{className:"OZATG",appLink:e.appLink,analyticsData:l,analyticsOptions:s},a.createElement(Ca,Object.assign({},e))):a.createElement(Ca,Object.assign({},e))}));function xa(e){return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},e.content.map((function(t){var n,i;return a.createElement(F.Z,{as:"li",key:t.id,sm:12,xl:6,className:"px-1 pb-2"},a.createElement(Ta,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),isLarge:!0,analyticsData:e.analyticsData}))}))))}const Sa="HwejH";var Na=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"}}))},Oa=n(39802),Da=n(99131);function Pa(e){var t,n,i,r,o,l,s,d,m,p=null===(n=null===(t=e.appLinks)||void 0===t?void 0:t.videoType)||void 0===n?void 0:n.call(t,e.video,{}),v=tn.M.isVideo(e.video)&&(null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.subText)||void 0===r?void 0:r.call(i,e.video)),f=a.useRef(null),g={actionType:c.Vw.Click,entity:tn.M.getAnalyticsEntity(e.video),location:c.LZ.ThumbnailFixedListMediaLargeWidget,descriptor:c._S.Thumbnail},h=(0,On.n)(null===(o=e.video.subjectPresentationAudiences)||void 0===o?void 0:o.data,e.audiences);return a.createElement("div",{className:"col-md-6"},a.createElement("div",{ref:f},a.createElement(Qe.u,{analyticsData:e.analyticsData,analyticsOptions:g,video:e.video,appLink:p,imageOptions:{size:u.h2.Medium},textPosition:Nn.z.Independent,type:"static",setFavourite:e.setFavourite,canFavourite:e.canFavourite,audience:h,hideRating:!!h,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement(Oa.h,{video:e.video,appLink:p,subTextAppLink:v,yearGroups:e.yearGroups,subTextType:e.subTextType,showNewVideoIndicator:null===(l=e.settings)||void 0===l?void 0:l.hasTopicDirectories}),tn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Da.u,{getClassroomGuideAppLink:null===(s=e.appLinks)||void 0===s?void 0:s.classroomGuide,getResourceGuidanceAppLink:null===(d=e.appLinks)||void 0===d?void 0:d.resourceGuidance,getInteractiveGuidanceAppLink:null===(m=e.appLinks)||void 0===m?void 0:m.interactiveGuidance,video:e.video,analyticsData:e.analyticsData,analyticsOptions:g,responsiveClassName:"iwav4",containerClassName:"d-flex justify-content-start align-items-center pt-1 ".concat("uCRU1")}))}function ja(e){var t=De.d.getVideoContent(e.content);return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:e.name,description:e.description}),a.createElement("div",{className:"row ".concat("KItVW")},t.map((function(t){return a.createElement(Pa,Object.assign({key:t.id,video:t},e))}))))}function Aa(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 Ia(e){return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:e.name,description:e.description,content:e.content,widgetTypeId:e.widgetTypeId,isPreviewing:e.isPreviewing}),a.createElement(I.Z,{as:"ul",className:"list-unstyled mx-n1 mb-n2"},(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){var n,i;return a.createElement(F.Z,{as:"li",key:t.id,xl:4,md:6,xs:12,className:"px-1 pb-2"},a.createElement(Ta,{data:t,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===i?void 0:i.call(n,t),analyticsData:e.analyticsData}))}))))}function Fa(e){var t,n,i,r,o,l,s=Oe.m.first(e.content),d=p.j.createUrl(null===(t=s.thumbnail)||void 0===t?void 0:t.url,{size:u.h2.Medium}),m=null===(n=s.metadata)||void 0===n?void 0:n.backgroundColor,v={backgroundColor:m};d&&(v.backgroundImage="url('".concat(d,"')"));var f=Object.assign(Object.assign({},e.analyticsData),{id:s.id,name:s.name,presentationId:s.presentationId}),g={location:c.LZ.ClassificationListItem,actionType:c.Vw.Click,entity:c.py.Classification,descriptor:c._S.Thumbnail};return d&&m?a.createElement(a.Fragment,null,a.createElement(C.F,{appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.classification)||void 0===r?void 0:r.call(i,s),className:"text-decoration-none",analyticsData:f,analyticsOptions:g},a.createElement("div",{className:"d-flex position-relative rounded-3 h-100 ".concat("EkoYD"),style:v},a.createElement("div",{className:"".concat("SSmWX")},a.createElement("div",{className:"".concat("vEXH2")},a.createElement("h2",{className:"".concat("bMbF2"," text-decoration-none h4 text-nowrap text-truncate")},e.name),a.createElement("div",{className:"text-start ".concat("gDFxm")},a.createElement("p",{className:"clamp-3"},s.description))),a.createElement("div",null,a.createElement("div",{className:"btn btn-outline-dark text-nowrap"},(null===(l=null===(o=e.metadata)||void 0===o?void 0:o.cta)||void 0===l?void 0:l.text)||V.T.getPhrase("shared.thumbnailFixedListXLarge","buttonLabel"))))))):a.createElement(dt,Object.assign({},e))}var Ma=n(17034),_a=n(35082);function Va(e){var t,n,i,r,o,l,s,d,m,p,v,f,g,h=Oe.m.first(De.d.getVideoContent(e.content)),y=a.useRef(),b=(0,On.n)(null===(t=h.subjectPresentationAudiences)||void 0===t?void 0:t.data,e.audiences),E=tn.M.hasSeries(h)||De.d.isCompanyWidget(e.widgetTypeId),w={actionType:c.Vw.Click,entity:tn.M.getAnalyticsEntity(h),location:c.LZ.ThumbnailHeroMediaWidget},k=null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,L=tn.M.getCanBeConsumed(h).canNavigate;return h?a.createElement("div",null,a.createElement(ae.B,{name:e.name,description:e.description}),a.createElement("div",{ref:y},a.createElement(Qe.u,{video:h,imageOptions:{size:u.h2.Large},type:"static",textPosition:Nn.z.Independent,analyticsOptions:w,audience:b,hideRating:!!b,appLink:null===(r=null===(i=e.appLinks)||void 0===i?void 0:i.videoType)||void 0===r?void 0:r.call(i,h,{}),subTextAppLink:null===(l=null===(o=e.appLinks)||void 0===o?void 0:o.subText)||void 0===l?void 0:l.call(o,h),setFavourite:e.setFavourite,canFavourite:e.canFavourite,companyLogoFallbackUrl:e.companyLogoFallbackUrl,subTextType:"none",isPlugin:e.isPlugin})),a.createElement("div",{className:"RmYET"},a.createElement("div",null,tn.M.isVideo(h)&&a.createElement(Ma.$,{type:De.d.isCompanyWidget(e.widgetTypeId)?"productionCompany":e.subTextType,video:h,appLink:null===(d=null===(s=e.appLinks)||void 0===s?void 0:s.subText)||void 0===d?void 0:d.call(s,h),analyticsOptions:w,className:"mt-2 ".concat("zmtsM")}),a.createElement("div",{className:E?"":"mt-2"},a.createElement(C.F,{appLink:null===(p=null===(m=e.appLinks)||void 0===m?void 0:m.videoType)||void 0===p?void 0:p.call(m,h,{}),analyticsData:{id:h.id,name:h.name},analyticsOptions:Object.assign(Object.assign({},w),{descriptor:c._S.Title}),className:"d-inline-block ".concat(L?"":"cursor-default text-decoration-none disabled"),disabled:!L},a.createElement(_a.O,{video:h,yearGroups:e.yearGroups,textClassName:"h4",showNewVideoIndicator:k,headingClassName:"mb-0"})))),tn.M.showVideoGuidance(e.hasPermissions)&&a.createElement(Da.u,{getClassroomGuideAppLink:null===(v=e.appLinks)||void 0===v?void 0:v.classroomGuide,getResourceGuidanceAppLink:null===(f=e.appLinks)||void 0===f?void 0:f.resourceGuidance,getInteractiveGuidanceAppLink:null===(g=e.appLinks)||void 0===g?void 0:g.interactiveGuidance,video:h,analyticsData:e.analyticsData,analyticsOptions:w,responsiveClassName:"RoK8y",containerClassName:"d-flex mt-2 ".concat("EQXKD")}))):a.createElement(a.Fragment,null)}function Ra(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.LargeRow,contents:N.z.Videos,collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,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 Ba(e){var t,n;return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.Videos,collection:e.content,childComponent:$e,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite},getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{})},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,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 Ha=n(74237),Ua=n(84342);var Wa=a.memo((function(e){var t,n,i,r=null===(n=null===(t=e.data)||void 0===t?void 0:t.subjectPresentationAudiences)||void 0===n?void 0:n.data,o=(0,On.n)(r,e.presentationAudiences);return a.createElement("div",{className:"px-1 flex-shrink-0 position-relative ".concat("YY2CD")},a.createElement(Qe.u,{video:e.data,type:"static",appLink:e.getAppLink(e.data),subTextAppLink:tn.M.isVideo(e.data)&&(null===(i=e.getSubTextAppLink)||void 0===i?void 0:i.call(e,e.data.series)),imageOptions:{size:e.thumbnailSize},preload:e.preloadImage,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,setFavourite:e.setFavourite,canFavourite:e.canFavourite,subTextType:e.subTextType,textPosition:Nn.z.Below,audience:o,hideRating:!!o,hideDuration:!1,isPlugin:e.isPlugin}))}));function za(e){return tn.M.isVideoType(e.data)?a.createElement(Wa,Object.assign({},e)):a.createElement(Ua.R,Object.assign({},e,{location:"dashboard",onClickDownload:function(t,n){t.preventDefault(),t.stopPropagation(),Ha.T.downloadResource(n,e.analyticsData,e.analyticsOptions)}}))}function Ga(e){var t,n,i,r=e.hasLocalPermissions(Ne.E.ViewVideoResourceItems);return a.createElement(L.k,{id:e.id,name:e.name,description:e.description,type:O.l9.Row,contents:N.z.Videos,collection:e.content,childComponent:za,extraChildComponentProps:{setFavourite:e.setFavourite,canFavourite:e.canFavourite,imageCdnUrl:e.imageCdnUrl,imageErrorFallbackUrl:e.resourceThumbnailFallbackImageUrl,getSubTextAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.series,location:"dashboard",titlePosition:"below",actionBehaviour:r?"normal":"public",presentationAudiences:e.audiences,subTextType:"series",isPlugin:e.isPlugin},getChildAppLink:function(t){var n,a,i,o;return tn.M.isVideoType(t)?null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.videoType)||void 0===a?void 0:a.call(n,t,{}):null===(o=null===(i=e.appLinks)||void 0===i?void 0:i.resource)||void 0===o?void 0:o.call(i,t,t.parentId,r)},prefetched:!0,hideBleedingContent:e.showHighlight,hideButtons:e.showHighlight,analyticsData:e.analyticsData,appLink:null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.widgetVideoList)||void 0===i?void 0:i.call(n,e.id,e.name)})}var Za=n(71471),Ya=n(24546);function qa(e){var t,n,i,r;return a.createElement(a.Fragment,null,a.createElement(ae.B,{name:!e.metadata.hideWidgetHeading&&e.name,description:!e.metadata.hideWidgetDescription&&e.description}),a.createElement(Ya.E4,{videos:e.content,getVideoAppLink:null===(t=e.appLinks)||void 0===t?void 0:t.videoType,getSubTextAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.company)||void 0===a?void 0:a.call(n,t)},hasPermissions:e.hasPermissions,subTextType:e.subTextType,getPreviewQuestionsAppLink:function(){return null},presentationAudiences:e.audiences,isPlugin:e.isPlugin,getClassroomGuideAppLink:null===(n=e.appLinks)||void 0===n?void 0:n.classroomGuide,getResourceGuidanceAppLink:null===(i=e.appLinks)||void 0===i?void 0:i.resourceGuidance,getInteractiveGuidanceAppLink:null===(r=e.appLinks)||void 0===r?void 0:r.interactiveGuidance}))}var Qa,Ka=n(12754);function Xa(e){return Xa="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},Xa(e)}function $a(e,t,n){return(t=function(e){var t=function(e){if("object"!=Xa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ja=($a($a($a($a($a($a($a($a($a($a(Qa={},se.f.ThumbnailHeroMedia,{getComponent:function(){return Va},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(Ea,null))))},icon:v.vn.WidgetTemplateThumbnailHeroMedia,predicate:function(e){var t=e.targetType;return[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),se.f.PosterSlidingListLarge,{getComponent:function(){return Bn},partialLoading:function(e){var t,n,i=(t=(0,j.k)()).xs?2:t.sm?3:4;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row mb-n2"},(n=Array(i),function(e){if(Array.isArray(e))return _n(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return _n(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return a.createElement("div",{key:t,className:"col-6 col-sm-4 col-md-3 col-lg-3 pb-2"},a.createElement("div",{className:"".concat("hMoHO"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplatePosterSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),se.f.PosterSlidingListMedium,{getComponent:function(){return qn},partialLoading:function(){return a.createElement(zn,{type:O.l9.LargeRow})},icon:v.vn.WidgetTemplatePosterSlidingListMedium,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),se.f.PosterSlidingListSmall,{getComponent:function(e){switch(e){case de.z.CuratedClassifications:return Xn;case de.z.CuratedSeries:return $n;default:return Xn}},partialLoading:function(){return a.createElement(zn,{type:O.l9.Row})},icon:v.vn.WidgetTemplatePosterSlidingListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;if(e.product===Ka.x.StreamableLearning)return!1;switch(n){case de.z.CuratedClassifications:return[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv].includes(t);case de.z.CuratedSeries:return[O.ku.MoviesAndTv,O.ku.Company].includes(t);default:return!1}},className:""}),se.f.ThumbnailFeaturedMedia,{getComponent:function(){return ka},partialLoading:function(){return a.createElement(a.Fragment,null,a.createElement(I.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(Ea,null))))))},icon:v.vn.WidgetTemplateThumbnailFeaturedMedia,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),se.f.CoverFixedPillListLarge,{getComponent:function(){return A.K},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(I.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(M.Ml,null)))}))))},icon:v.vn.WidgetTemplateCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product===Ka.x.StreamableLearning?[O.ku.Classification].includes(t):[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),se.f.StatsCoverFixedPillListLarge,{getComponent:function(){return ya},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(I.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(pa,null)))}))))},icon:v.vn.WidgetTemplateStatsCoverFixedPillListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.ClassificationDirectory].includes(t)},className:""}),se.f.CoverFixedPillListXSmall,{getComponent:function(){return te},partialLoading:function(){return a.createElement("div",{className:"".concat(ee.background," px-4 py-3 rounded-3 mb-3")},a.createElement("div",{className:"partial-loading-background mb-2",style:{height:"1.35rem",width:"8rem"}}),a.createElement(I.Z,{className:"mb-2 ".concat(ee.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===Ka.x.StreamableLearning?[O.ku.Discover].includes(t):[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),se.f.CoverSlidingPillListSmall,{getComponent:function(){return fe},partialLoading:function(e){return a.createElement("div",{className:"py-2"},a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ge.QL,{partialLoadingComponent:M.Qh}))},icon:v.vn.WidgetTemplateCoverSlidingPillListSmall,predicate:function(e){var t=e.targetType,n=e.widgetTypeId;return e.product===Ka.x.StreamableLearning?n!==de.z.Classifications&&[O.ku.Discover,O.ku.Company,O.ku.Classification].includes(t):[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv,O.ku.Company].includes(t)},className:""}),se.f.CoverFixedTileList,{getComponent:function(){return re},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(ne.YA,{itemClassName:"columns-of-five"}))},icon:v.vn.WidgetTemplateCoverFixedTileList,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),$a($a($a($a($a($a($a($a($a($a(Qa,se.f.FeaturedThumbnailSlidingList,{getComponent:function(){return tt},partialLoading:function(e){return a.createElement("div",null,a.createElement("div",{className:"banner rounded-3 position-relative partial-loading-background ".concat(Je," ").concat(et," mb-1 ")}),a.createElement(_e.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!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),se.f.HeroBanner,{getComponent:function(){return dt},partialLoading:ut,icon:v.vn.WidgetTemplateHeroBanner,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover].includes(t)},className:""}),se.f.OnboardingSteps,{getComponent:function(){return Tn},partialLoading:ut,icon:v.vn.WidgetTemplateOnboardingSteps,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Discover].includes(t)},className:""}),se.f.HeroBannerSmall,{getComponent:function(){return Ot},partialLoading:Dt,icon:v.vn.WidgetTemplateHeroBannerSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.HeroThumbnailSmall,{getComponent:function(){return jt},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroThumbnailSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.HeroBlockColourSmall,{getComponent:function(){return Pt},partialLoading:function(){return a.createElement(Dt,null)},icon:v.vn.WidgetTemplateHeroBlockColourSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.ClassificationDirectory,O.ku.ClassificationVideos].includes(t)},className:""}),se.f.ThumbnailFixedListXLarge,{getComponent:function(){return Fa},partialLoading:function(){return a.createElement(ut,null)},icon:v.vn.WidgetTemplateThumbnailFixedListXLarge,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.ThumbnailFixedListLarge,{getComponent:function(){return xa},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return La(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 La(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement("div",null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(I.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!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.ThumbnailFixedListSmall,{getComponent:function(){return Ia},partialLoading:function(e){var t,n=function(e){if(Array.isArray(e))return Aa(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 Aa(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)?Aa(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement(I.Z,{className:"mx-n1 "},n.map((function(e,t){return a.createElement(F.Z,{key:t,lg:4,md:6,sm:6,xs:12,className:"p-1"},a.createElement("div",{className:"".concat("SNBRD"," partial-loading-background rounded-3")}))}))))},icon:v.vn.WidgetTemplateThumbnailFixedListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.EditableCoverFixedPillListSmall,{getComponent:function(){return Me},partialLoading:function(){return a.createElement("div",{className:"py-2"},a.createElement("div",{className:"partial-loading-background mb-2 ".concat("hjdMb")}),a.createElement(I.Z,{className:"g-0"},Array(7).fill(null).map((function(e,t){return a.createElement(F.Z,{key:t,sm:6,lg:4},a.createElement("div",{className:"position-relative mb-2"},a.createElement(M.Qh,null)))}))))},icon:v.vn.WidgetTemplateEditableCoverFixedPillListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Discover].includes(t)},className:""}),$a($a($a($a($a($a($a($a($a($a(Qa,se.f.Heading,{getComponent:function(){return lt},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!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.ClassificationDirectory,O.ku.Discover].includes(t)},className:"heading-widget-template"}),se.f.AuthorReviewer,{getComponent:function(){return w},partialLoading:function(){return a.createElement("div",{className:"row mb-n3"},a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)),a.createElement("div",{className:"col-12 col-md-6 mb-3"},a.createElement(k,null)))},icon:v.vn.WidgetTemplateAuthorReviewer,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),se.f.Question,{getComponent:function(){return ea},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!==Ka.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),se.f.QuestionAccordion,{getComponent:function(){return ua},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(na,null),a.createElement(na,null),a.createElement(na,null)))},icon:v.vn.WidgetTemplateQuestionAccordion,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),se.f.ThumbnailFixedListMediaLarge,{getComponent:function(){return ja},partialLoading:function(e){return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"row ".concat("hk2Ed")},a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Sa," partial-loading-background rounded-3")}),a.createElement(Na,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ea,null))),a.createElement("div",{className:"col-sm-12 col-md-6"},a.createElement("div",{className:"".concat(Sa," partial-loading-background rounded-3")}),a.createElement(Na,null),a.createElement("div",{className:"pt-1 mw-100"},a.createElement(Ea,null)))))},icon:v.vn.WidgetTemplateThumbnailFixedListMediaLarge,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company].includes(t)},className:""}),se.f.PopoutThumbnailSlidingListLarge,{getComponent:function(){return Pn},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",childComponent:xn,name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplatePopoutThumbnailSlidingListLarge,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification,O.ku.Discover,O.ku.Company,O.ku.MoviesAndTv].includes(t)},className:""}),se.f.PopoutThumbnailSlidingListSmall,{getComponent:function(){return Mn},partialLoading:function(e){return a.createElement(_e.j7,{size:"sm",childComponent:jn,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===Ka.x.StreamableLearning?[O.ku.Discover,O.ku.Company].includes(t):t===O.ku.Classification?a:[O.ku.MoviesAndTv,O.ku.Discover,O.ku.Company].includes(t)},className:""}),se.f.FilterSlidingPillListSmall,{getComponent:function(){return rt},partialLoading:function(e){var t,n=(0,j.k)();return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row mx-n1"},(t=Array(n.xs||n.sm?3:n.md||n.lg?4:5),function(e){if(Array.isArray(e))return ot(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 ot(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)?ot(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!==Ka.x.StreamableLearning&&[O.ku.MoviesAndTv].includes(t)},className:""}),se.f.CircleLogoSlidingList,{getComponent:function(){return D},partialLoading:function(e){var t=8,n=(0,j.k)();return(n.sm||n.xs)&&(t=4),n.md&&(t=6),a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing}),a.createElement("div",{className:"d-flex flex-no-wrap"},Array(t).fill(null).map((function(e,t){return a.createElement("div",{key:t,className:"uVZyX"},a.createElement("div",{className:"".concat("KbaRB"," h-100 d-inline-block partial-loading-background rounded-circle")}))}))))},icon:v.vn.WidgetTemplateCircleLogoSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ka.x.StreamableLearning?[O.ku.Discover,O.ku.Company].includes(t):[O.ku.MoviesAndTv].includes(t)},className:""}),se.f.EventIconSlidingList,{getComponent:function(){return Ye},partialLoading:function(e){var t,n=(t=(0,j.k)()).xs?2:t.sm?3:t.md?4:t.lg?5:t.xl||t.xxl?6:void 0;return a.createElement(a.Fragment,null,a.createElement(P.l,{name:e.name,description:e.description,isPreviewing:e.isPreviewing,hideDescription:!0}),a.createElement("div",{className:"row g-0 mx-n1"},Array(n).fill(null).map((function(e,t){return a.createElement("div",{className:"col px-1",key:t},a.createElement("div",{className:"partial-loading-background rounded-3",style:{paddingBottom:"100%"}}))}))))},icon:v.vn.WidgetTemplateEventIconSlidingList,predicate:function(e){var t=e.targetType;return e.product===Ka.x.StreamableLearning?[O.ku.Discover,O.ku.Classification,O.ku.Company].includes(t):[O.ku.Discover,O.ku.Classification].includes(t)},className:""}),$a($a($a($a(Qa,se.f.ThumbnailVerticalList,{getComponent:function(){return qa},partialLoading:function(){return a.createElement(Za.S,{numVideos:3})},icon:v.vn.WidgetTemplateThumbnailVerticalList,predicate:function(e){var t=e.targetType;return e.product===Ka.x.StreamableLearning&&[O.ku.Company,O.ku.Classification].includes(t)},className:""}),se.f.ThumbnailSlidingListSmallV2,{getComponent:function(){return Ga},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(e){var t=e.targetType;return e.product!==Ka.x.StreamableLearning&&[O.ku.Classification].includes(t)},className:""}),se.f.ThumbnailSlidingListSmall,{getComponent:function(){return Ba},partialLoading:_e.j7,icon:v.vn.WidgetTemplateThumbnailSlidingListSmall,predicate:function(){return!1},className:""}),se.f.ThumbnailSlidingListLarge,{getComponent:function(){return Ra},partialLoading:function(e){return a.createElement(_e.j7,{size:"lg",name:e.name,description:e.description,isPreviewing:e.isPreviewing})},icon:v.vn.WidgetTemplateThumbnailSlidingListLarge,predicate:function(){return!1},className:""})),ei=n(65294);const ti={anchor:"FRyJT",widgetHighlight:"e4uXN",blinker:"e7d4o"};function ni(e){var t,n,o,l,c=a.createRef(),s=null===(t=e.lazyLoad)||void 0===t||t,d=(0,ei.Y)({prevent:!s}),u=d.ref,m=d.inView,p=i.q.isFunction(e.getContentRequest),v=r.a.useBasicFetch(!(!m||!e.getContentRequest)&&e.getContentRequest(e.id,e.widgetTypeId,e.templateId)),f=De.d.useGetContent(e.content||(null===(n=v.data)||void 0===n?void 0:n.content),e.widgetTypeId,e.isPreviewing,null===(o=v.data)||void 0===o?void 0:o.preferences).content,g=(0,j.k)(),h=function(e,t){return!(De.d.hasNoContent(e)||t&&(!Array.isArray(t)||t.length))}(e.widgetTypeId,f),y=!De.d.canDisplayOnScreenSize(g,e.widgetTypeId,e.templateId);a.useEffect((function(){var t;p&&!v.hasCompleted||null===(t=e.setIsEmpty)||void 0===t||t.call(e,e.id,h||y)}),[v.hasCompleted,h,y,p,e.setIsEmpty]),a.useEffect((function(){e.isScrollToTargetWidget&&c.current&&c.current.scrollIntoView({behavior:"smooth",block:"start"})}),[e.isScrollToTargetWidget,c.current]);var b=e.appLinks?Object.assign({},e.appLinks):null;(null==b?void 0:b.videoType)&&(b.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 E=Object.assign(Object.assign({},e.analyticsData),{widgetId:e.widgetTypeId,templateId:e.templateId,dashboardTarget:null==e?void 0:e.dashboardTarget,widgetIndex:null==e?void 0:e.widgetIndex,widgetName:e.name}),w=p&&!v.hasCompleted||e.isEditing&&h,k=Ja[e.templateId].partialLoading,L=Ja[e.templateId].getComponent(e.widgetTypeId),C=Ja[e.templateId].className;return w||!h&&!y?a.createElement("div",{id:e.widgetTypeId===de.z.ContinueWatching?"continue-watching-videos-widget":null,ref:c,className:"curated-widget ".concat(C," ").concat(e.name?"has-heading":""," ").concat(e.isScrollToTargetWidget?"my-n2 mx-n3":"")},a.createElement("div",{className:e.isScrollToTargetWidget?"".concat(ti.widgetHighlight," py-2 px-3 rounded-3"):""},De.d.isWidgetInTableOfContents(e.metadata)&&a.createElement("a",{href:"#".concat(e.id),id:"".concat(e.id),className:"".concat(ti.anchor),ref:function(t){var n;t&&(null===(n=e.headingElementRef)||void 0===n?void 0:n.current)&&e.headingElementRef.current.add(t)}}),w?a.createElement("div",{ref:u},a.createElement(k,{name:e.name,description:e.description,isPreviewing:e.isPreviewing})):a.createElement(L,Object.assign({},e,{appLinks:b,content:f,preferences:null===(l=v.data)||void 0===l?void 0:l.preferences,analyticsData:E,showHighlight:e.isScrollToTargetWidget,isPreviewing:e.isPreviewing})))):a.createElement(a.Fragment,null)}},47770:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(32735),i=n(68050),r=n(69111),o=n(66869),l=n(91028);function c(e){return a.createElement(a.Fragment,null,a.createElement(o.B,{name:e.name,description:e.description}),a.createElement(i.Z,{className:"mb-n2"},e.content.map((function(t){var n;return a.createElement(r.Z,{className:"position-relative pb-2",key:t.id,xs:12,sm:6,lg:e.hasTableOfContents?6:4,xl:4},a.createElement(l.V,{data:t,getChildAppLink:function(t){var n,a;return null===(a=null===(n=e.appLinks)||void 0===n?void 0:n.classification)||void 0===a?void 0:a.call(n,t)},analyticsData:e.analyticsData,highlightOnHover:null===(n=e.settings)||void 0===n?void 0:n.hasTopicDirectories,isLarge:!0}))}))))}},65163:(e,t,n)=>{n.d(t,{QL:()=>a.Q,eb:()=>a.e});var a=n(72861);n(14244)},72639:(e,t,n)=>{var a;n.d(t,{p:()=>a}),function(e){e[e.Level_1=1]="Level_1",e[e.Level_2=2]="Level_2",e[e.Level_3=3]="Level_3",e[e.Level_4=4]="Level_4"}(a||(a={}))},80889:(e,t,n)=>{n.d(t,{_:()=>g});var a=n(99940),i=n(97395),r=n(75896),o=n(1048),l=n(49542),c=n(55171),s=n(78479),d=n(45778);function u(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var p=new Set([].concat(u(Object.values(c.e.Classifications.Twig.EnglandPrimary)),u(Object.values(c.e.Classifications.Twig.InternationalPrimary)),u(Object.values(c.e.Classifications.Twig.ScotlandPrimary))));function v(e){return Object.keys(e).map((function(t){return e[t]})).join(":")}function f(e){return v(o.t.pick(e,["audienceId"]))}var g={classificationDashboard:function(e,t,n,a){var o={target:"classification:".concat(e),status:n,userType:t};return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",o),publicUrl:i._.urlBuilder("/api/discover/dashboards",o),key:"classification:dashboard:".concat(e,":").concat(t,":").concat(a,":").concat(null==n?void 0:n.join(":")),formatData:function(e){var t;return a?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===a.toString()})):r.m.first(e.data)}}},dashboardWidgetContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(e),t),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(e),t),key:"widget:".concat(e,":").concat(v(t)),formatData:function(e){return l.d.formatResponseData(e,a)},normalizeOptions:{namespace:f(t)},normalize:n!==s.f.EditableCoverFixedPillListSmall,success:r}},discoverWidgetContent:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;return{url:i._.urlBuilder("{gateway}/v1/discover/widgets/".concat(t),n),publicUrl:i._.urlBuilder("/api/discover/widgets/".concat(t),n),key:"widget:".concat(t,":").concat(v(n)),formatData:function(t){var n=l.d.formatResponseData(t,r);if(e)return n;if(Array.isArray(n.content)){var a=n.content.filter((function(e){return!d.G.isClassification(e)||!p.has(e.id)}));n.content=a}return n},normalizeOptions:{namespace:f(n)},normalize:a!==s.f.EditableCoverFixedPillListSmall,success:o}},getDashboard:function(e,t,n,a,o,l){var c={target:n,status:t,userType:e};(null==a?void 0:a.length)&&(c["widgets.curriculum"]=a);var s="dashboard:".concat(n,":").concat(e,":").concat(o,":").concat(t.join(":"));return{url:i._.urlBuilder("{gateway}/v1/discover/dashboards",c),publicUrl:i._.urlBuilder("/api/discover/dashboards",c),key:s,formatData:function(e){var t;return o?null===(t=e.data)||void 0===t?void 0:t.find((function(e){return e.id.toString()===o.toString()})):r.m.first(e.data)},success:l}},updateWidgetPreferences:function(e,t,n){return{url:"{gateway}/v1/discover/widgets/".concat(e,"/preferences"),key:"update:widget:preferences",invalidationKeys:["widget:".concat(e)],type:a.k.PUT,data:{userId:n.id,customerId:n.customerId,metadata:t}}}}},74237:(e,t,n)=>{n.d(t,{T:()=>l});var a=n(97395),i=n(92582),r=n(65858),o=null,l={getVideoDownloadUrl:function(e,t){return a._.safeUrlConcat(a._.makeHttps(e),"/download?token=".concat(t))},downloadResource:function(e,t,n){var a,l=o;o||(l=o=document.createElement("iframe"),document.body.appendChild(l),l.style.display="none"),l.src=e.url,i.k.logUserAction(Object.assign({id:null==e?void 0:e.id,name:null==e?void 0:e.name,resourceType:null===(a=null==e?void 0:e.metadata)||void 0===a?void 0:a.resourceType},t),Object.assign({actionType:r.Vw.Download,entity:r.py.Resource,workflowPhase:r.eu.Complete},n))}}},52108:(e,t,n)=>{n.d(t,{M:()=>o});var a=n(81024),i=n.n(a);var r="markdown-link",o={isLink:function(e){return e.classList.contains(r)},getSeoWidgetRenderer:function(){var e=new(i().Renderer);return e.link=function(e,t,n){return'<a href="'.concat(e,'" target="_blank" class="info-link ').concat(r,'">').concat(n,"</a>")},e.list=function(e,t){var n=t?"ol":"ul";return"<".concat(n,' class="').concat("LTJss",'">').concat(e,"</").concat(n,">")},e.heading=function(e,t){return"<h".concat(t,' class="').concat({1:"h1",2:"h2",3:"h6",4:"h6",5:"h6",6:"h6"}[t],'">').concat(e,"</h").concat(t,">")},e}}},87114:(e,t,n)=>{n.d(t,{i:()=>u});var a,i=n(23481);!function(e){e.Root="root"}(a||(a={}));var r=n(55171),o=n(52641),l=n(85594),c=n(72639),s=n(26154),d=i.T.encloseNamespace("subjects.utils"),u={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===l.A.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?c.p[e]:e},getMappedPresentationBackgroundColourClass:function(e){switch(u.getMappedPresentationLevel(e)){case c.p.Level_1:return"bg-indigo";case c.p.Level_3:return"bg-blue";case c.p.Level_4:return"bg-navy";default:case c.p.Level_2:return"bg-green"}},getMappedPresentationBackgroundColourCode:function(e){switch(u.getMappedPresentationLevel(e)){case c.p.Level_1:return"#7A76E8";case c.p.Level_3:return"#38A2E8";case c.p.Level_4:return"#1B2D71";default:case c.p.Level_2:return"#5DC786"}},getPresentationLevelImage:function(e,t){switch(u.getMappedPresentationLevel(e)){case c.p.Level_1:if("topic-banner"===t)return r.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_1.TOPIC_TALL_POSTER;case c.p.Level_2:if("topic-banner"===t)return r.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_2.TOPIC_TALL_POSTER;default:case c.p.Level_3:if("topic-banner"===t)return r.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===t)return r.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===t)return r.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===t)return r.e.Images.Level_3.TOPIC_TALL_POSTER;case c.p.Level_4:if("topic-banner"===t)return r.e.Images.Level_4.TOPIC_BANNER}},getExploreAllTopicsTitle:function(e,t){return t<o._.MULTI_PRESENTATION_THRESHOLD?d("exploreAllTopicsHeading"):d("exploreAllTopicsDynamicHeading",{presentationName:e})},getExploreAllTopicsBreadcrumb:function(e,t){return t<o._.MULTI_PRESENTATION_THRESHOLD?d("exploreAllTopicsHeading"):e},isFollowing:function(e){var t,n;return 1===(null===(n=null===(t=null==e?void 0:e.followers)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},isTopLevelTopic:function(e){var t;return!!(null===(t=null==e?void 0:e.parentIds)||void 0===t?void 0:t.includes(a.Root))},canHaveVideoListTab:function(e){var t;return null===(t=null==e?void 0:e.widgets)||void 0===t?void 0:t.some((function(e){var t;return null===(t=e.metadata)||void 0===t?void 0:t.showInTableOfContents}))},getActiveTopicTab:function(e,t){return u.isTopLevelTopic(e)?t===s.ku.Classification?"new-releases":"all-topics":t===s.ku.Classification?"curated-topic":"video-list"},getCounts:function(e){var t,n,a=null!==(n=null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.childClassificationCount)&&void 0!==n?n:0;return(null==e?void 0:e.externalMetadata)?{childClassificationCount:a,dashboardVideoCount:e.externalMetadata.dashboardVideoCount||0,childDashboardVideoCount:e.externalMetadata.childDashboardVideoCount||0,dashboardResourceCount:e.externalMetadata.dashboardResourceCount||0,childDashboardResourceCount:e.externalMetadata.childDashboardResourceCount||0,dashboardNewVideosCount:e.externalMetadata.dashboardNewVideosCount||0,childDashboardNewVideoCount:e.externalMetadata.childDashboardNewVideoCount||0}:{childClassificationCount:a,dashboardVideoCount:0,childDashboardVideoCount:0,dashboardResourceCount:0,childDashboardResourceCount:0,dashboardNewVideosCount:0,childDashboardNewVideoCount:0}},isTertiary:function(e){return(null==e?void 0:e.toString())===r.e.PresentationIds.AU_TERTIARY.toString()||(null==e?void 0:e.toString())===r.e.PresentationIds.UK_TERTIARY.toString()}}},73688:(e,t,n)=>{n.d(t,{B:()=>c});var a=n(20354),i=n(80889),r=n(26154),o=n(21366),l=n(31700);function c(e){var t=a.a.useBasicFetch(l.g.streamablePresentation());return{dashboard:a.a.useBasicFetch(t.hasCompleted&&i._.getDashboard(r.Yv.Any,e.dashboardId?[r.GL.Published,r.GL.Draft]:[r.GL.Published],o.S.getUnknownDashboardTarget({targetType:e.targetType,presentationId:t.data.id,companyId:e.companyId,classificationId:e.classificationId}),null,e.dashboardId)),isPreviewing:!!e.dashboardId}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7694-88511578c6-streamable-learning.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7694],{78259:(e,t,r)=>{r.d(t,{O:()=>l});var n=r(58176),a=r.n(n),o=r(21161),i={className:"info-link",defaultProtocol:"https"},l={linkifyText:function(e,t){if(e){var r=t?o.extend({},i,t):i;return a()(e,r)}}}},85473:(e,t,r)=>{r.d(t,{Z:()=>m});var n=r(32735),a=r(1048),o=r(57408),i=r(16107),l=r(54610),c=r(67453);const s={image:"vdd4V",thumbnail:"Ez0E7",tallPoster:"H9bQA",cover:"Nudts",banner:"IOvDH",poster:"iiY56",pdf:"aDJiJ",link:"wDpui"};function u(e){var t=s.image,r="";return e.imageType===l.__.Thumbnails&&(r="thumbnail ".concat(s.thumbnail)),e.imageType===l.__.TallPosters&&(r=s.tallPoster),e.imageType===l.__.Covers&&(r=s.cover),e.imageType===l.__.Banners&&(r=s.banner),e.imageType===l.__.Posters&&(r=s.poster),e.imageType===l.__.Pdf&&(r=s.pdf),e.imageType===l.__.Link&&(r=s.link),r&&(t+=" ".concat(r)),e.className&&(t+=" ".concat(e.className)),t}function m(e){var t=e.data,r=e.imageOptions,l=e.appLink,s=e.preload,m=e.preventLoad,d=e.analyticsOptions,p=e.analyticsData,f=e.imageClassName,v=e.alt,h="";"string"==typeof t?h=t:a.t.isObject(t)&&(h=t.url);var y=h&&r?c.j.createUrl(h,r):h;return n.createElement("div",{className:u(e),style:e.imageStyle},n.createElement(o.F,{appLink:l,analyticsData:p,analyticsOptions:d,onClick:e.onClick,preventFocus:e.preventFocus,className:e.appLinkClassName},e.children,y&&n.createElement(i.w,{src:y,alt:v,forceLoad:s,preventLoad:m,extraClasses:f,errorFallbackImageSrc:e.errorFallbackImageSrc,errorFallbackImageClassName:e.errorFallbackImageClassName,onLoad:e.onLoad})))}},5960:(e,t,r)=>{var n,a;r.d(t,{H:()=>a,X:()=>n}),function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(n||(n={})),function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived",e.Pending="Pending",e.Rejected="Rejected",e.Processing="Processing"}(a||(a={}))},49267:(e,t,r)=>{r.d(t,{a:()=>d});var n=r(23481),a=r(64364);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 i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var m="shared.regionLockedResourceError",d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==o(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,c()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t,[n.T.getPhrase(m,"title")])}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&&u(e,t)}(t,e),r=t,(a=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return n.T.getPhrase(m,"heading")}},{key:"description",get:function(){return n.T.getPhrase(m,"description")}}])&&i(r.prototype,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a}(a.H)},45445:(e,t,r)=>{r.d(t,{r:()=>b});var n=r(50242),a=r(81886),o=r(67058),i=r(23481),l=r(64364);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f="shared.privateResourceError",v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=d(t),function(e,t){if(t&&("object"==c(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,m()?Reflect.construct(t,r||[],d(e).constructor):t.apply(e,r))}(this,t,[i.T.getPhrase(f,"title")])}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&&p(e,t)}(t,e),r=t,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return i.T.getPhrase(f,"heading")}},{key:"description",get:function(){return i.T.getPhrase(f,"description")}}])&&s(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(l.H),h=r(49267),y=r(49075),g={notFound:o.d,forbidden:{rating:v,yearLevel:v,region:h.a,privacy:v},badRequest:y._,internalServerError:y._};function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},g),t);o&&a.Q.Ry.isStatusCodeError(o)&&(o!==n.o.InternalServer?o!==n.o.NotFound?o!==n.o.Forbidden?r.badRequest||a.Q.Ry.throw(new i.badRequest):r.forbidden||a.Q.Ry.throw(new i.forbidden.privacy):r.notFound||a.Q.Ry.throw(new i.notFound):r.internalServerError||a.Q.Ry.throw(new y._))}}},91286:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(32735),a=r(45445);function o(e){return e.map((function(e){return e.statusCode})).join(":")}function i(e,t,r){var i=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){i.forEach((function(e){(0,a.r)(e.statusCode,t,r)}))}),[o(i),t,r])}},65294:(e,t,r)=>{r.d(t,{Y:()=>o});var n=r(34152);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.prevent,i=r.rootMargin,l=r.triggerOnce,c=void 0===l||l,s=(e=(0,n.YD)({triggerOnce:c,rootMargin:i}),t=3,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=s[0],m=s[1],d=s[2];return!0!==o&&void 0!==window.IntersectionObserver||(m=!0,u=null),{ref:u,inView:m,initialized:!!d}}},92593:(e,t,r)=>{r.r(t),r.d(t,{LivestreamView:()=>Ue});var n=r(32735),a=r(63093),o=r(81886),i=r(23481),l=r(57900),c=r(92869),s=r(97395),u=r(67575),m=r(2948),d=r(20354),p=r(110),f=r(28400),v=r(92582),h=r(65858),y=r(76153),g=r(78259),b=r(40290),E=r(59795),w=r(57408),N=r(85473),O=r(83914),S=r(83345),k=r(54610),P=r(69454),j=r(67453),x=r(35223);const T={logoContainer:"L5WZ0"};var L="streamable.livestreamDetails";function A(e){var t,r,a;function o(e){return E.t.convertUTCToTimezoneDate(e)}return n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex align-items-center mb-2"},e.logoUrl&&n.createElement(w.F,{appLink:e.companyAppLink},n.createElement("div",{className:"".concat(T.logoContainer," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background me-2")},n.createElement(N.Z,{data:j.j.createUrl(e.logoUrl,{size:k.h2.Small}),alt:e.companyName,preload:!0}))),n.createElement("div",{className:"d-flex flex-column justify-content-between"},e.companyName&&n.createElement(w.F,{appLink:e.companyAppLink,className:"text-uppercase text-wrap d-block text-truncate mb-0",title:e.companyName},e.companyName),n.createElement("h1",{className:"h4 mb-0"},e.eventName))),n.createElement("div",{className:"d-flex gap-2 mb-3"},!!(null===(t=e.audiences)||void 0===t?void 0:t.length)&&n.createElement("div",{className:"rounded-pill border border-dark px-2"},function(){var t;return null===(t=P.T.getMergedPresentationAudienceString(e.audiences))||void 0===t?void 0:t.name}()),n.createElement("div",{className:"rounded-pill fw-semibold bg-dark text-white px-2"},n.createElement("span",{className:"align-middle"},"".concat(p.O.diffBetween(e.endTime,e.startTime,"minutes"),"m")))),e.isPastLivestream&&n.createElement("div",{className:"d-inline-block bg-light-green rounded-pill mb-3"},n.createElement(O.x,{svgName:x.vn.CalendarCheck}),n.createElement("p",{className:"d-inline ms-1 mb-0"},n.createElement(S.x,{namespace:L,phrase:"pastEvent"}))),!e.isPastLivestream&&n.createElement(n.Fragment,null,n.createElement("p",{className:"mb-2"},n.createElement(O.x,{svgName:x.vn.Timer,size:O.S.Small}),n.createElement("span",{className:"ms-1"},(a=e.startTime,p.O.format(o(a),"h:mma")))),n.createElement("p",{className:"mb-2"},n.createElement(O.x,{svgName:x.vn.Calendar,size:O.S.Small}),n.createElement("span",{className:"ms-1"},(r=e.startTime,p.O.format(o(r),"Do MMMM")))),n.createElement("p",{className:"mb-3"},n.createElement(O.x,{svgName:x.vn.Globe,size:O.S.Small}),n.createElement("span",{className:"ms-1"},function(e){var t;return null===(t=b.F[e])||void 0===t?void 0:t.name}(e.timezone)))),e.description&&n.createElement("p",{className:"mb-3 pre-wrap text-break",dangerouslySetInnerHTML:{__html:g.O.linkifyText(e.description)}}))}var _=r(99940),D={createBooking:function(e){return{publicUrl:"/api/integrations/api/v1/bookings",url:"{gateway}/v1/events/booking",key:"streamable:create:booking",type:_.k.POST,data:e}}},F=r(58960),C=r(5960),I=r(16714),R=r(67058),U=r(7822),M=r(39151),V=r(31949),q=r(91286),B=r(22902),z=r(79612),G=r(75795),H=r(25301),Z=r(96359),Q=r(41760),Y=r(41135),W=r(7614),K=r(91975),$=r(67946),J=r(55941),X=r(93015),ee=r(65751),te=r(6117);const re={logo:"mOQW9"};var ne="streamable.bookingSuccess";function ae(e){var t;return n.createElement(n.Fragment,null,n.createElement("div",{className:"".concat(re.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement(N.Z,{data:j.j.createUrl(null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,{size:k.h2.Small}),alt:e.livestream.company.name,preload:!0})),n.createElement("div",{className:"d-flex align-items-center justify-content-center mb-3 gap-1"},n.createElement(O.x,{svgName:x.vn.CheckCircle,className:"svg-container std text-success"}),n.createElement("h1",{className:"h3 mb-0 fw-semibold"},n.createElement(S.x,{namespace:ne,phrase:"booked"}))),n.createElement("div",{className:"my-3"},n.createElement(A,{companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone})),n.createElement("p",null,n.createElement(S.x,{namespace:ne,phrase:"emailReminder"})))}var oe=r(99742);const ie={image:"dxgov"};var le="streamable.bookingError";function ce(e){return n.createElement("div",{className:"d-flex flex-column justify-content-center"},n.createElement("div",{className:"".concat(ie.logo," rounded-circle flex-shrink-0 overflow-hidden partial-loading-background mx-auto mb-3")},n.createElement("img",{className:ie.image,src:oe.W.General.LOST_MESSAGE_BOTTLE})),n.createElement("h3",{className:"text-center mb-3"},n.createElement(S.x,{namespace:le,phrase:"heading"})),n.createElement("p",{className:"text-center mb-3"},n.createElement(S.x,{namespace:le,phrase:"description"})),n.createElement("button",{className:"btn btn-dark",onClick:e.onTryAgain},n.createElement(S.x,{namespace:le,phrase:"buttonLabel"})))}function se(e){return n.createElement("div",{className:"".concat(e.className),style:e.coverImageUrl&&{backgroundImage:"url(".concat(j.j._createUrl(e.coverImageUrl,{size:k.h2.Large}),")")}})}var ue=r(92802),me=r(5173),de=r(68293),pe=r(47464),fe=r(76530),ve=r(1269),he=r(82644),ye=r(2102),ge=r(93824);function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(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 Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var we="streamable.livestreamView",Ne=i.T.encloseNamespace(we),Oe=me.Ry({firstName:me.Z_().required(Ne("firstNameRequired")),lastName:me.Z_().required(Ne("lastNameRequired")),email:me.Z_().email(Ne("emailValid")).required(Ne("emailRequired")),attendees:me.Z_().required(Ne("attendeesRequired"))}),Se=Oe.concat(me.Ry({schoolOrDistrict:me.Z_().required(Ne("schoolOrDistrictRequired")),jobTitle:me.Z_().required(Ne("jobTitleRequired")),phoneNumber:me.Z_().required(Ne("phoneNumberRequired")).matches(/^[0-9]+$/,Ne("phoneNumberValid"))}));function ke(e){var t,r,a,o,i,l,c,s,u,m=(0,he.b)(),d=be(n.useState({}),2),p=d[0],f=d[1],v=be(n.useState(!1),2),h=v[0],y=v[1];function g(){m.setFieldValue("schoolOrDistrict",""),m.setFieldValue("country",""),m.setFieldValue("province",""),m.setFieldValue("prospectId",""),b()}function b(){window.setTimeout((function(){return m.validateForm()}),0)}return n.createElement(ue.l0,null,n.createElement("div",{className:"row my-3"},n.createElement("div",{className:"col-12 col-sm-6"},n.createElement(ve.W,{label:Ne("firstName"),name:"firstName",placeholder:Ne("firstNamePlaceholder"),value:null===(t=m.values)||void 0===t?void 0:t.firstName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12 col-sm-6"},n.createElement(ve.W,{label:Ne("lastName"),name:"lastName",placeholder:Ne("lastNamePlaceholder"),value:null===(r=m.values)||void 0===r?void 0:r.lastName,disabled:e.isAuthenticated,showRequiredStar:!e.isAuthenticated})),n.createElement("div",{className:"col-12"},n.createElement(ve.W,{label:Ne("email"),name:"email",placeholder:Ne("emailPlaceholder"),value:null===(a=m.values)||void 0===a?void 0:a.email,disabled:e.isAuthenticated&&!!e.emailAddress,showRequiredStar:!e.isAuthenticated||!e.emailAddress})),!e.isAuthenticated&&n.createElement(n.Fragment,null,n.createElement("div",{className:"col-12"},h?n.createElement(ve.W,{label:Ne("schoolOrDistrict"),name:"schoolOrDistrict",value:null===(o=m.values)||void 0===o?void 0:o.schoolOrDistrict,showRequiredStar:!0,placeholder:Ne("schoolOrDistrictPlaceholder"),autoFocus:!0}):n.createElement(n.Fragment,null,n.createElement(pe.l,{data:p,setData:function(e){f(Object.assign(Object.assign({},p),e)),g()},clearData:function(){f({}),g()},labelClassName:"form-label",geoLocation:{countryCode:"US"},googleMapsApiKey:e.googleMapsApiKey,required:!0,hideOnBlur:!0}),n.createElement(fe.X,{data:p,setData:function(e){f(Object.assign(Object.assign({},p),e)),m.setFieldValue("schoolOrDistrict",e.schoolName),m.setFieldValue("country",e.country),m.setFieldValue("province",e.province),m.setFieldValue("prospectId",e.prospectId),b()},clearData:function(){f(Object.assign(Object.assign({},p),{prospectId:void 0,schoolName:void 0,schoolPostCode:void 0})),g()},disabled:!p.schoolLocality,searchUrl:e.searchProspectsUrl,onClickNoSuggestions:function(e){y(!0),m.setFieldValue("schoolOrDistrict",e),b()},required:!0,placeholder:!p.schoolLocality&&Ne("schoolPlaceholder"),hideOnBlur:!0}))),n.createElement("div",{className:"col-12"},n.createElement(de.B,{id:"job-title",error:(null===(i=m.touched)||void 0===i?void 0:i.jobTitle)&&(null===(l=m.errors)||void 0===l?void 0:l.jobTitle),countryCode:ge.C.US,initialValue:null===(c=m.values)||void 0===c?void 0:c.jobTitle,onChange:function(e){return m.setFieldValue("jobTitle",e,!1)},labelClassName:"form-label",isTertiary:!1,required:!0}))),n.createElement("div",{className:"col-12 col-sm-6 col-xl-4"},n.createElement(ve.W,{type:"number",label:Ne("attendees"),name:"attendees",placeholder:Ne("attendeesPlaceholder"),min:1,value:null===(s=m.values)||void 0===s?void 0:s.attendees,showRequiredStar:!0})),!e.isAuthenticated&&n.createElement("div",{className:"col"},n.createElement(ve.W,{label:Ne("phoneNumber"),name:"phoneNumber",placeholder:Ne("phoneNumberPlaceholder"),value:null===(u=m.values)||void 0===u?void 0:u.phoneNumber,showRequiredStar:!0}))),n.createElement(ye.m,{type:"submit",className:"w-100",variant:"dark",showSpinner:e.showSpinner,disabled:!m.isValid},n.createElement(S.x,{namespace:we,phrase:"book"})))}function Pe(e){return n.createElement(he.n,{initialValues:e.initialValues,validationSchema:e.isAuthenticated?Oe:Se,validateOnMount:!0,onSubmit:e.onSubmit},n.createElement(ke,{emailAddress:e.emailAddress,isAuthenticated:e.isAuthenticated,showSpinner:e.showSpinner,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}))}const je={noRecording:"O0mTQ",coverImage:"G47S2",popup:"DydcO",page:"YxTMr"};function xe(e){return xe="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},xe(e)}function Te(){Te=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new L(n||[]);return a(i,"_invoke",{value:P(e,r,l)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",v="completed",h={};function y(){}function g(){}function b(){}var E={};s(E,i,(function(){return this}));var w=Object.getPrototypeOf,N=w&&w(w(A([])));N&&N!==r&&n.call(N,i)&&(E=N);var O=b.prototype=y.prototype=Object.create(E);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(a,o,i,l){var c=m(e[a],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==xe(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,l)}))}l(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function P(t,r,n){var a=d;return function(o,i){if(a===f)throw Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var c=j(l,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===d)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=f;var s=m(t,r,n);if("normal"===s.type){if(a=n.done?v:p,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=v,n.method="throw",n.arg=s.arg)}}}function j(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=m(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(xe(t)+" is not iterable")}return g.prototype=b,a(O,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"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(O),e},t.awrap=function(e){return{__await:e}},S(k.prototype),s(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(u(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(O),s(O,c,"Generator"),s(O,i,(function(){return this})),s(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ae(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ae(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _e=function(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function l(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,l)}c((n=n.apply(e,t||[])).next())}))},De="streamable.livestreamView",Fe=i.T.encloseNamespace(De);function Ce(e){var t,r=o.Q.C$.getHref(o.Q.C$.getCurrentAppLink()),a="/"!==r?{redirectUrl:r}:{},i="newsletter"===e.origin,l=!e.isAuthenticated&&!i&&!e.livestream.recording,c=!e.isPastLivestream&&!e.formStage&&(e.isAuthenticated&&!e.isStudent||i),s={application:Y.O.DEFAULT,action:Z.e.Default.LOG_IN,params:a},u={application:Y.O.DASHBOARD,action:Z.e.Dashboard.COMPANY_DASHBOARD,args:[e.livestream.company.id,f.m.slugify(e.livestream.company.name)]};return n.createElement(n.Fragment,null,!e.success&&!e.error&&n.createElement(n.Fragment,null,n.createElement(A,{logoUrl:null===(t=e.livestream.company.logo)||void 0===t?void 0:t.url,companyId:e.livestream.company.id,companyName:e.livestream.company.name,eventName:e.livestream.name,audiences:e.livestream.audiences,startTime:e.livestream.startDateTime,endTime:e.livestream.endDateTime,timezone:e.livestream.timezone,description:!e.formStage&&e.livestream.description,isPastLivestream:e.isPastLivestream,companyAppLink:u}),e.formStage&&n.createElement(Pe,{emailAddress:e.emailAddress,initialValues:e.initialValues,isAuthenticated:e.isAuthenticated,showSpinner:e.showSpinner,onSubmit:e.onSubmit,googleMapsApiKey:e.googleMapsApiKey,searchProspectsUrl:e.searchProspectsUrl}),c&&n.createElement("button",{className:"btn btn-dark w-100",onClick:function(){return e.setFormStage(!0)}},n.createElement(S.x,{namespace:De,phrase:"book"})),e.isPastLivestream&&!e.livestream.recording&&n.createElement("div",{className:"".concat(je.noRecording," p-2 rounded")},n.createElement(S.x,{namespace:De,phrase:"noRecording"})),e.livestream.recording&&n.createElement(w.F,{appLink:{application:Y.O.VIDEOS,action:Z.e.Videos.PLAY_VIDEO,args:[e.livestream.recording.id,f.m.slugify(e.livestream.recording.name)]}},n.createElement("button",{className:"btn btn-outline-dark w-100"},n.createElement(S.x,{namespace:De,phrase:"recording"}))),l&&n.createElement(n.Fragment,null,n.createElement(w.F,{className:"mt-3 btn btn-dark w-100",appLink:s},n.createElement(S.x,{namespace:De,phrase:"signInButton"})),n.createElement(w.F,{className:"d-flex justify-content-center align-items-center mt-3 text-info",appLink:{application:Y.O.DEFAULT,action:Z.e.Default.CONTACT_US_POPUP}},n.createElement(S.x,{namespace:De,phrase:"contactUsLink"})))),e.success&&n.createElement(ae,{livestream:e.livestream}),e.error&&n.createElement(ce,{onTryAgain:e.onTryAgain}))}function Ie(e){var t;function r(){var t;e.closePopup(),c.t.preventScrollTop(),o.Q.C$.trigger(null===(t=G.O.getPreviousRoute())||void 0===t?void 0:t.appLink)}return n.createElement(F.G,{size:"xl",bodyClassName:"rounded-3 overflow-hidden p-0",closePopup:r},n.createElement("button",{className:"btn-close position-absolute top-0 end-0 p-3",onClick:r}),n.createElement("div",{className:"row g-0"},n.createElement("div",{className:"col-12 col-lg-6"},n.createElement(se,{className:"".concat(je.coverImage," ").concat(je.popup),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-lg p-4 m-lg-2"},n.createElement(Ce,Object.assign({},e)))))}function Re(e){var t;return n.createElement("div",{className:"row g-0 px-3"},n.createElement("div",{className:"col-12 col-md-6 col-lg-5"},n.createElement(se,{className:"".concat(je.coverImage," ").concat(je.page," rounded"),coverImageUrl:null===(t=e.livestream.company.cover)||void 0===t?void 0:t.url})),n.createElement("div",{className:"col-12 col-md px-md-3 pt-2 pt-md-0"},n.createElement(Ce,Object.assign({},e))))}function Ue(e){var t,r,i,c,f,g,b=d.a.useBasicFetch(M.L.config()),E=(0,u.useGetFetchAsync)(),w=(0,X.k)(),N=Le(n.useState(!1),2),O=N[0],S=N[1],k=Le(n.useState(!1),2),P=k[0],j=k[1],x=Le(n.useState(!1),2),T=x[0],L=x[1],A=Le(n.useState(!1),2),_=A[0],F=A[1],G=Le(n.useState({firstName:"",lastName:"",email:"",attendees:"",schoolOrDistrict:"",jobTitle:"",phoneNumber:"",country:"",province:"",prospectId:""}),2),Z=G[0],Y=G[1],re=Le((0,m.D)($.d,null,{storage:l.Z1.SessionStorage}),1)[0],ne=d.a.useBasicFetch(V.N.currentUser()),ae=d.a.useBasicFetch(J.H.livestream(e.id)),oe=(0,(0,B.T)().hasPermissions)(I.C.StudentExperience),ie=H.CG.getDefaultMetadata({title:null===(t=ae.data)||void 0===t?void 0:t.name,description:null===(r=ae.data)||void 0===r?void 0:r.description,phraseContext:{phraseHandler:Fe,titlePhrase:"pageTitle",descriptionPhrase:"pageDescription"},canonicalLink:te.f.getCanonicalLink({customAppLink:ee.y.livestream(ae.data)}),allowIndexing:!0,product:Q.L.PRODUCT_NAME});function le(t){v.k.logUserAction({id:ae.data.id,name:ae.data.name},{entity:h.py.Livestream,actionType:h.Vw.Submit,location:h.LZ.LivestreamBookingForm,descriptor:e.fromPageLoad?h.Ik.FullPage:h.Ik.Popup,workflowPhase:t})}if((0,z.M)(Object.assign(Object.assign({},ie),{_isPopupUp:!e.fromPageLoad})),(0,q.v)(ae),n.useEffect((function(){var e;ae.data&&(null===(e=ae.data)||void 0===e?void 0:e.status)!==C.H.Published&&o.Q.Ry.throw(new R.d)}),[null===(i=ae.data)||void 0===i?void 0:i.status]),n.useEffect((function(){var e;(null===(e=ne.data)||void 0===e?void 0:e.isAuthenticated)&&Y(Object.assign(Object.assign({},Z),{firstName:ne.data.givenName,lastName:ne.data.familyName,email:ne.data.email}))}),[null===(c=ne.data)||void 0===c?void 0:c.isAuthenticated]),!ae.hasCompleted||!b.hasCompleted)return n.createElement(n.Fragment,null);var ce={livestream:ae.data,formStage:O,initialValues:Z,isAuthenticated:null===(f=ne.data)||void 0===f?void 0:f.isAuthenticated,isStudent:oe,success:P,error:T,isPastLivestream:p.O.isBefore(ae.data.endDateTime,new Date),showSpinner:_,origin:re,onSubmit:function(e){var t,r,n;return _e(this,void 0,void 0,Te().mark((function o(){var i,l,c,s;return Te().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,F(!0),Y(e),o.next=5,E(D.createBooking({eventId:ae.data.id,eventType:"Livestream",firstName:e.firstName,lastName:e.lastName,email:e.email,attendees:e.attendees,status:1}));case 5:if(le(h.eu.Complete),null===(t=ne.data)||void 0===t?void 0:t.isAuthenticated){o.next=17;break}return o.next=9,E(U.D.checkEmail(e.email));case 9:if(i=o.sent,!e.prospectId){o.next=15;break}return o.next=13,E(U.D.prospectLookups(e.prospectId));case 13:c=o.sent,l=null===(r=null==c?void 0:c.find((function(e){return"crm_id"===e.type})))||void 0===r?void 0:r.externalId;case 15:s={email:e.email,firstName:e.firstName,lastName:e.lastName,phone:e.phoneNumber,custom:{accountAddress:(null==e?void 0:e.province)?{countryCode:null==e?void 0:e.country,province:y.F.parseProvince((null==e?void 0:e.province)||"")}:void 0,accountName:e.schoolOrDistrict,jobTitle:e.jobTitle,syncToCrm:!(null===(n=null==i?void 0:i.users)||void 0===n?void 0:n.length)||void 0,crmId:l||void 0}},w.logFormSubmission({eventType:a.StreamableFormEvent.LivestreamBookingFormSubmit,source:W._.LivestreamBooking,topic:K.J.LivestreamBooking,user:s});case 17:j(!0),o.next=24;break;case 20:o.prev=20,o.t0=o.catch(0),L(!0),S(!1);case 24:return o.prev=24,F(!1),o.finish(24);case 27:case"end":return o.stop()}}),o,null,[[0,20,24,27]])})))},onTryAgain:function(){L(!1),S(!0)},setFormStage:function(){S(!0),le(h.eu.Start)},googleMapsApiKey:b.data.googleMapsApiKey,searchProspectsUrl:s._.safeUrlConcat(b.data.gatewayApiUrl,"/v1/search/prospects"),emailAddress:null===(g=ne.data)||void 0===g?void 0:g.email};return e.fromPageLoad?n.createElement(Re,Object.assign({},ce)):n.createElement(Ie,Object.assign({},ce,{closePopup:e.closePopup}))}},55941:(e,t,r)=>{r.d(t,{H:()=>l});var n=r(97395),a=r(110),o=r(59795),i=r(5960),l={livestream:function(e){return{url:n._.urlBuilder("/api/discover/v1/livestreams/".concat(e),{query:"audiences,recording"}),key:"streamable:livestream:".concat(e,"}")}},calendarLivestreams:function(e){var t=Object.keys(e).map((function(t){return"".concat(t,":").concat(e[t])})).join(":");return{url:n._.urlBuilder("/api/discover/v1/livestreams",Object.assign({status:i.X.Published,limit:100},e)),key:"streamable:calendar:livestreams:".concat(t),normalize:!1,formatData:function(e){return e.data.map((function(e){return{id:e.id,startDate:a.O.format(o.t.convertUTCToTimezoneDate(e.startDateTime),"YYYY-MM-DD"),type:"Livestream",name:e.name,description:e.description,content:e}}))}}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_streamable_learning=self.webpackChunk_clickview_streamable_learning||[]).push([[7730],{86794:(e,r,a)=>{a.d(r,{b:()=>l});var t=a(32735),n=a(91967),s=a(64444),i=a(83914),o="d-inline-block svg-container",u="span";function l(e){var r=e.children,a=e.className,l=void 0===a?o:a,d=e.tagName,c=void 0===d?u:d,m=e.size,p=void 0===m?i.S.Standard:m,f=e.onClick,h=e.title,y=e.tooltipPlacement,v=void 0===y?"right":y,g=c,w={className:"".concat(l," svg-container ").concat(p),onClick:n.q.isFunction(f)?f:null};return h?t.createElement(s.u,{title:h,placement:v},t.createElement(g,Object.assign({},w),r)):t.createElement(g,Object.assign({},w),r)}},81208:(e,r,a)=>{a.r(r),a.d(r,{AccountSettingsView:()=>ne});var t,n=a(32735),s=a(70680),i=a(23481),o=a(20354),u=a(92582),l=a(65858),d=a(81886),c=a(75896),m=a(1048),p=a(66770);!function(e){e.Ok="Ok",e.UsernameRequired="UsernameRequired",e.EmailRequired="EmailRequired",e.FirstnameRequired="FirstnameRequired",e.SurnameRequired="SurnameRequired",e.YearGroupRequired="YearGroupRequired",e.EmailAlreadyExisted="EmailAlreadyExisted",e.UsernameAlreadyExisted="UsernameAlreadyExisted",e.UserTypeRequired="UserTypeRequired",e.MasterYearGroupRequired="MasterYearGroupRequired",e.EmptyUserEntity="EmptyUserEntity",e.CustomerIdRequired="CustomerIdRequired",e.CustomerNotFoundInOnline="CustomerNotFoundInOnline",e.EmailTooLong="EmailTooLong",e.UsernameTooLong="UsernameTooLong",e.FirstnameTooLong="FirstnameTooLong",e.SurnameTooLong="SurnameTooLong",e.EmailInvalid="EmailInvalid",e.EmailInUse="EmailInUse",e.UsernameInvalid="UsernameInvalid",e.PasswordTooShort="PasswordTooShort",e.EmailDuplicated="EmailDuplicated",e.UsernameDuplicated="UsernameDuplicated",e.DisplayNameTooLong="DisplayNameTooLong",e.DisplayNameTooShort="DisplayNameTooShort",e.UsernameTooShort="UsernameTooShort",e.FirstnameInvalid="FirstnameInvalid",e.SurnameInvalid="SurnameInvalid",e.UserTypeMismatch="UserTypeMismatch",e.UserCanBeAddedInCustomer="UserCanBeAddedInCustomer",e.UserCanBeCreated="UserCanBeCreated",e.CustomerFoundInOnline="CustomerFoundInOnline",e.UserInCustomerWithOnline="UserInCustomerWithOnline",e.InvalidUserStatus="InvalidUserStatus",e.UserAlreadyExistsInCustomer="UserAlreadyExistsInCustomer",e.Rostered="UserRostered"}(t||(t={}));var f=a(40424),h=a(76881),y=a(86613),v=a(2997);function g(e){return g="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},g(e)}function w(e,r,a){return(r=function(e){var r=function(e){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!=g(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var E="userManager.utils",b={active:f.w.Active.toLowerCase(),deactivated:f.w.Disabled.toLowerCase(),pending:f.w.Inactive.toLowerCase()},S={filterIdenticalEntries:function(e){var r=function(e){var r,a,t,n,s,i,o,u,l,d,c,m;return[null!==(a=null===(r=e.firstName)||void 0===r?void 0:r.trim())&&void 0!==a?a:"",null!==(n=null===(t=e.surname)||void 0===t?void 0:t.trim())&&void 0!==n?n:"",null!==(i=null===(s=e.masterYearGroup)||void 0===s?void 0:s.id)&&void 0!==i?i:"",null!==(l=null===(u=null===(o=e.username)||void 0===o?void 0:o.toLowerCase())||void 0===u?void 0:u.trim())&&void 0!==l?l:"",null!==(m=null===(c=null===(d=e.email)||void 0===d?void 0:d.toLowerCase())||void 0===c?void 0:c.trim())&&void 0!==m?m:""].join(":")};return e.filter((function(e,a,t){return a===t.findIndex((function(a){return r(a)===r(e)}))}))},getNewDuplicates:function(e){if(!e)return null;var r=[],a=[],n={};e.forEach((function(e){e.username?n[e.username]?n[e.username].push(e):n[e.username]=[e]:a.push(e)})),Object.keys(n).map((function(e){1!==n[e].length?r.push({errorCodes:[t.UsernameAlreadyExisted],users:n[e]}):a.push(n[e][0])}));var s={};return e.forEach((function(e){e.email&&(s[e.email]?s[e.email].push(e):s[e.email]=[e])})),Object.keys(s).map((function(e){if(1!==s[e].length){var a=c.m.first(s[e]).username;if(a&&1!==n[a].length){var i=r.findIndex((function(e){return c.m.first(e.users).username===a}));r[i].errorCodes.push(t.EmailAlreadyExisted)}else r.push({errorCodes:[t.EmailAlreadyExisted],users:s[e]})}})),r},formatCreateOrValidateUserRequest:function(e,r,a){return{users:e.map((function(e){var t={firstName:e.firstName,email:e.email,surname:e.surname,username:e.username,userType:r,customerId:a,masterRole:e.masterRole||y.i.User,requirePasswordChange:!1,generatePassword:!!e.generatePassword,password:e.password,displayName:e.displayName||null};return r===h.Y.Learner&&(t.masterYearGroup=e.masterYearGroup),t.username||delete t.username,t.password||delete t.password,t.password&&t.generatePassword&&(t.generatePassword=!1),e.userId&&(t.userId=e.userId),t}))}},formatEditUserRequest:function(e){return e.displayName||(e.displayName=null),e},formatDeleteRequest:function(e,r,a){var t={customerId:e};if(!r.length){var n=d.Q.Ab.DeserializeQueryParams(d.Q.Ab.GetCurrentQueryString().substring(1));n.query&&(t.searchQuery=n.query);var s=n.status&&(Array.isArray(n.status)?n.status:[n.status]);(null==s?void 0:s.length)&&(t.userStatuses=[],s.forEach((function(e){"active"===e&&t.userStatuses.push(f.w.Active),"deactivated"===e&&t.userStatuses.push(f.w.Disabled),"pending"===e&&t.userStatuses.push(f.w.Inactive)}))),n.yearGroup&&(t.yearGroupValues=Array.isArray(n.yearGroup)?n.yearGroup:[n.yearGroup])}return 1===Object.keys(t).length?t.userIds=r.map((function(e){return e.id})):t.userType=a,t},formatToggleStatusRequest:function(e,r,a){return{customerId:r,users:[{userId:e.id,status:a}]}},getErrorMessages:function(e,r,a,n){var s,o,u={},l=i.T.encloseNamespace("userManager.utils"),d=(w(w(w(w(w(w(w(w(w(w(s={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,l("emailRequired")),t.FirstnameRequired,l("nameRequired")),t.SurnameRequired,l("surnameRequired")),t.YearGroupRequired,l("yearGroupRequired")),t.EmailAlreadyExisted,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameAlreadyExisted,l(a?"usernameExistsShort":"usernameExistsLong")),t.UserTypeRequired,""),t.MasterYearGroupRequired,l("yearGroupRequired")),w(w(w(w(w(w(w(w(w(w(s,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,l("emailExceeds")),t.UsernameTooLong,l("usernameExceeds")),t.FirstnameTooLong,l("nameExceeds")),t.SurnameTooLong,l("surnameExceeds")),t.EmailInvalid,l(a?"emailInvalidShort":"emailInvalidLong")),t.EmailInUse,l(a?"emailExistsShort":"emailExistsLong")),t.UsernameInvalid,l(a?"usernameInvalidShort":"usernameInvalidLong")),w(w(w(w(w(w(w(w(w(w(s,t.PasswordTooShort,l(a?"passwordTooShortShort":"passwordTooShortLong",{minLength:r})),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,l("displayNameExceeds")),t.DisplayNameTooShort,l("displayNameTooShort")),t.UsernameTooShort,l("usernameTooShort")),t.FirstnameInvalid,l("firstNameInvalid")),t.SurnameInvalid,l("surnameInvalid")),t.CustomerFoundInOnline,l("support")),t.UserInCustomerWithOnline,l("support")),w(w(w(w(w(w(s,t.InvalidUserStatus,l("support")),t.UserTypeMismatch,""),t.UserCanBeAddedInCustomer,""),t.UserCanBeCreated,""),t.UserAlreadyExistsInCustomer,""),t.Rostered,"")),c=(w(w(w(w(w(w(w(w(w(w(o={},t.Ok,""),t.UsernameRequired,""),t.EmailRequired,"email"),t.FirstnameRequired,"firstName"),t.SurnameRequired,"surname"),t.YearGroupRequired,"masterYearGroup"),t.EmailAlreadyExisted,"email"),t.UsernameAlreadyExisted,"username"),t.UserTypeRequired,""),t.MasterYearGroupRequired,"masterYearGroup"),w(w(w(w(w(w(w(w(w(w(o,t.EmptyUserEntity,""),t.CustomerIdRequired,""),t.CustomerNotFoundInOnline,""),t.EmailTooLong,"email"),t.UsernameTooLong,"username"),t.FirstnameTooLong,"firstName"),t.SurnameTooLong,"surname"),t.EmailInvalid,"email"),t.EmailInUse,"email"),t.UsernameInvalid,"username"),w(w(w(w(w(w(w(w(w(w(o,t.PasswordTooShort,"password"),t.EmailDuplicated,""),t.UsernameDuplicated,""),t.DisplayNameTooLong,"displayName"),t.DisplayNameTooShort,"displayName"),t.UsernameTooShort,"username"),t.FirstnameInvalid,"firstName"),t.SurnameInvalid,"surname"),t.UserTypeMismatch,"email"),t.UserCanBeAddedInCustomer,"email"),w(w(w(w(w(w(o,t.UserCanBeCreated,"email"),t.CustomerFoundInOnline,"email"),t.UserInCustomerWithOnline,"email"),t.InvalidUserStatus,"email"),t.UserAlreadyExistsInCustomer,"email"),t.Rostered,"email"));return e.forEach((function(e){var r,a,t,s,i=null!==(a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:d[e])&&void 0!==a?a:"";if(i){var o=c[e];o&&(u[o]=null!==(s=null===(t=null==n?void 0:n[e])||void 0===t?void 0:t[o])&&void 0!==s?s:i)}})),u},showEmptyState:function(e,r){var a;if(!e.data)return!1;var t=Object.keys(r).length;return!("results"in e.data)&&!t&&!(null===(a=e.data.data)||void 0===a?void 0:a.length)},getFilters:function(e,r){var a=[p.x$.SortBy(p.qr.getNameSortOptions())];return e===h.Y.Learner&&(null==r?void 0:r.length)>1&&a.push(p.x$.YearGroup(p.qr.getYearGroupOptions(r))),a.push(p.x$.Status()),e===h.Y.Staff&&a.push(p.x$.IsAdmin()),a},getMinimumPasswordLength:function(e,r,a){var t;if(!e)return 8;var n=null===(t=e.securitySettings)||void 0===t?void 0:t.find((function(e){return e.userRole===a&&e.userType===r}));return n?n.minPasswordLength:a===y.i.Admin?e.defaultAdminMinPasswordLength:e.defaultMinPasswordLength},mapStatusParamsToValue:function(e){if(e){var r=function(e){switch(e){case"active":return f.w.Active;case"deactivated":return f.w.Disabled;case"pending":return f.w.Inactive}};return Array.isArray(e)?e.map(r):[r(e)]}},buildSearchData:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=void 0===n?{}:n,i=S.buildSearchFiltersData(r,t,s),o=S.buildSearchSortData(r,s);return{query:s.query,indices:["user"],searchType:"user",customerIdOverride:r,userId:a,customerId:r,filters:i,sorts:o}},buildSearchDataAndKey:function(e){var r=e.customerId,a=e.userId,t=e.userType,n=e.queryParams,s=e.cursor,i=S.buildSearchData({customerId:r,userId:a||"",userType:t,queryParams:n||{}});s&&(i.cursor=s);var o="search:users:".concat(s||"");return{key:o+=m.t.flattenObjectToString(i),data:i}},buildSearchParams:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=S.buildSearchFiltersObject(e,r,a);return t=Object.keys(t).reduce((function(e,r){return e["".concat(v.w.FILTER_PARAM_PREFIX).concat(r)]=t[r],e}),{}),Object.assign({query:a.query,index:"user",customerIdOverride:e},t)},buildSearchSortData:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={};if(r.sort)switch(r.sort){case"first-name-atoz":a.firstName="asc";break;case"first-name-ztoa":a.firstName="desc";break;case"surname-atoz":a.surname="asc";break;case"surname-ztoa":a.surname="desc";break;case"newest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};break;case"oldest":a.userProfile={customerId:e,fieldOrders:{dateCreated:"asc"}}}else a.userProfile={customerId:e,fieldOrders:{dateCreated:"desc"}};return a},buildSearchFiltersData:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase()};return t.userProfile={customerId:e},"true"===a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),a.yearGroup&&(t.yearGroup={customerId:e},Array.isArray(a.yearGroup)?t.yearGroup.value=a.yearGroup:t.yearGroup.value=[a.yearGroup]),a.status&&(Array.isArray(a.status)?t.userProfile.status=a.status.map((function(e){return b[e]})):t.userProfile.status=[b[a.status]]),a.isAdmin&&(t.userProfile.role=[y.i.Admin.toLowerCase()]),t},buildSearchFiltersObject:function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t={userType:r.toLowerCase(),customerId:e.toString()};return"true"===a.isAdmin&&(t.userRole=y.i.Admin.toLowerCase()),a.yearGroup&&(Array.isArray(a.yearGroup)?t.yearGroup="".concat(a.yearGroup.join(",")):t.yearGroup=a.yearGroup),a.status&&(Array.isArray(a.status)?t.userProfileStatus=a.status.map((function(e){return b[e]})).join(","):t.userProfileStatus=b[a.status]),t},buildGetUsersQuery:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.yearGroup,t=void 0===a?"":a,n=r.status,s=void 0===n?"":n,i=r.isAdmin,o=void 0===i?"":i,u=r.sort,l=void 0===u?"newest":u,d=["usertype:".concat(e)];if(t&&(Array.isArray(t)?d.push("yeargroups.value:[".concat(t.join(","),"]")):d.push("yeargroups.value:".concat(t))),"true"===o&&d.push("userprofiles.role:".concat(y.i.Admin)),s&&(Array.isArray(s)?d.push("status:[".concat(s.map((function(e){return b[e]})).join(","),"]")):d.push("status:".concat(b[s]))),l)switch(l){case"first-name-atoz":d.push("orderby:name");break;case"first-name-ztoa":d.push("orderbydesc:name");break;case"surname-atoz":d.push("orderby:surname");break;case"surname-ztoa":d.push("orderbydesc:surname");break;case"newest":d.push("orderbydesc:timestamp");break;case"oldest":d.push("orderby:timestamp")}return"{".concat(d.join(","),"}avatar")},shouldDisplayAuthenticationMethods:function(e){var r;if(!(null==e?void 0:e.length))return!1;if(!(null===(r=c.m.first(e).authenticationMethods)||void 0===r?void 0:r.length))return!1;var a=e.find((function(e){var r;return!!(null===(r=e.authenticationMethods)||void 0===r?void 0:r.find((function(e){return!e.local})))}));return!!a},handleAsyncErrors:function(e,r,a,n){var s,o=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.errorCodes;if(!(null==o?void 0:o.length))return!0;var u={};return(o.includes(t.EmailAlreadyExisted)||o.includes(t.EmailInUse))&&(a&&a.email===r.email||(u.email=i.T.getPhrase(E,"emailExistsLong"))),o.includes(t.UsernameAlreadyExisted)&&(a&&a.username===r.username||(u.username=i.T.getPhrase(E,"usernameExistsLong"))),!Object.keys(u).length||(n({errors:u}),!1)}},C=a(86764),I=a(31949),P=a(69883),U=a(3747),T=a(79612),A=a(92802),N=a(23201),x=a(1269),q=a(82644),L=a(83345),R=a(5173),k="settings.emailSettings",O=(0,R.Ry)().shape({email:(0,R.Z_)().required((function(){return i.T.getPhrase(k,"emailRequired")})).email((function(){return i.T.getPhrase(k,"emailInvalid")})).trim().default("")}),D=a(86794);function G(){return n.createElement(D.b,null,n.createElement("svg",{viewBox:"0 0 24 24"},n.createElement("path",{d:"M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"})))}function F(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=Array(r);a<r;a++)t[a]=e[a];return t}var j="settings.emailSettings",M=i.T.encloseNamespace(j);function z(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return F(e,r);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?F(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=s[0],o=s[1],u=e.currentUser.emailVerified;return n.useEffect((function(){t||i||o(!0)}),[t,i]),n.createElement(L.D.Provider,{value:j},n.createElement("h2",{className:"h4 d-flex align-items-center"},n.createElement(L.x,{phrase:"heading"}),u&&n.createElement("span",{className:"font-size-normal fw-semibold text-primary d-flex align-items-center mb-0 ms-2"},n.createElement(L.x,{phrase:"verified"}),n.createElement(G,null))),u&&n.createElement("p",null,n.createElement(L.x,{phrase:"info",options:{email:e.currentUser.email}})),i?n.createElement(q.n,{initialValues:{email:e.currentUser.email||""},onSubmit:e.onChangeEmail,validationSchema:O},n.createElement(A.l0,null,n.createElement(x.W,{className:"w-75",name:"email",placeholder:M("emailPlaceholder"),autoComplete:"email"}),n.createElement("div",{className:"d-flex justify-content-end w-75 ".concat(t?"ms-n2":"")},t&&n.createElement("button",{type:"button",className:"btn btn-link me-2",onClick:function(){return o(!1)}},n.createElement(L.x,{phrase:"cancel"})),n.createElement(N.A,{isNew:!1,submitText:M(u?"updateEmail":"verifyEmail"),variant:u?"outline-dark":"dark"})))):n.createElement(n.Fragment,null,n.createElement("div",{className:"d-flex"},n.createElement("button",{className:"btn btn-outline-dark me-2",onClick:function(){return o(!0)}},n.createElement(L.x,{phrase:"change"})))),n.createElement("p",{className:"mb-0 mt-2"},n.createElement(L.x,{phrase:"note"})))}const Y={partialLabel:"aKssR",partialInfo:"ZrKZk",partialInput:"Lvn15",partialSubmit:"TActD",partialNote:"pqp7j"};function B(){return n.createElement("div",{className:"w-50"},n.createElement("div",{className:"partial-loading-background mb-2 ".concat(Y.partialLabel)}),n.createElement("div",{className:"partial-loading-background ".concat(Y.partialInfo)}),n.createElement("div",{className:"form-group"},n.createElement("div",{className:"partial-loading-background ".concat(Y.partialInput)})),n.createElement("div",{className:"partial-loading-background ".concat(Y.partialSubmit)}),n.createElement("div",{className:"partial-loading-background mt-2 ".concat(Y.partialNote)}))}var W="shared.changePasswordForm",V=i.T.encloseNamespace(W);function _(e){var r=(0,A.u6)();return n.createElement(A.l0,null,!e.hideCurrentPassword&&n.createElement(x.W,{className:e.inputWidthClass,name:"currentPassword",label:V("currentPassword"),placeholder:V("currentPasswordPlaceholder"),type:"password",autoComplete:"current-password",showRequiredStar:!0}),n.createElement(x.W,{className:e.inputWidthClass,name:"newPassword",label:V("newPassword"),placeholder:V("newPasswordPlaceholder"),type:"password",autoComplete:"new-password",showRequiredStar:!0}),n.createElement(x.W,{className:e.inputWidthClass,name:"confirmPassword",label:V("confirmPassword"),placeholder:V("confirmPasswordPlaceholder"),type:"password",autoComplete:"off",showRequiredStar:!0}),e.showChangeOnNextLogin&&n.createElement(x.W,{id:"changeOnNextLogin",name:"changeOnNextLogin",label:V("changeOnNextLogin"),type:"checkbox",checked:r.values.changeOnNextLogin,checkboxLabelFontWeight:"normal"}),!e.hideButtons&&n.createElement("div",{className:e.buttonContainerClass},!e.hideCancelButton&&!!e.onClickCancel&&n.createElement("button",{type:"button",className:"btn btn-link me-2 ".concat("lg"===e.buttonSize?"btn-lg":""),onClick:e.onClickCancel},n.createElement(L.x,{namespace:W,phrase:"cancel"})),n.createElement(N.A,{isNew:!1,submitText:e.submitText||V("save"),variant:e.submitVariant,size:e.buttonSize})))}_.defaultProps={submitVariant:"outline-dark",buttonContainerClass:"btn-container d-flex justify-content-end align-items-center",inputWidthClass:"w-100"};var Z=i.T.encloseNamespace("settings.passwordSettings"),Q=function(e){return(0,R.Ry)().shape({currentPassword:(0,R.Z_)().required((function(){return Z("currentPasswordRequired")})).trim().default(""),newPassword:(0,R.Z_)().required((function(){return Z("newPasswordRequired")})).min(e,(function(){return Z("newPasswordMinLength",{minLen:e})})).trim().default(""),confirmPassword:(0,R.Z_)().required((function(){return Z("confirmPasswordRequired")})).oneOf([(0,R.iH)("newPassword"),null],(function(){return Z("passwordsDontMatch")})).trim().default("")})};function $(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=Array(r);a<r;a++)t[a]=e[a];return t}var K="settings.passwordSettings",H={currentPassword:"",newPassword:"",confirmPassword:""};function J(e){var r,a,t=(0,U.a)(C.r.MDDown),s=(r=n.useState(!t),a=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,n,s,i,o=[],u=!0,l=!1;try{if(s=(a=a.call(e)).next,0===r){if(Object(a)!==a)return;u=!1}else for(;!(u=(t=s.call(a)).done)&&(o.push(t.value),o.length!==r);u=!0);}catch(e){l=!0,n=e}finally{try{if(!u&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(l)throw n}}return o}}(r,a)||function(e,r){if(e){if("string"==typeof e)return $(e,r);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?$(e,r):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=s[0],u=s[1];return n.useEffect((function(){t||o||u(!0)}),[t,o]),n.createElement(L.D.Provider,{value:K},n.createElement("h2",{className:"h4"},n.createElement(L.x,{phrase:"heading"})),o?n.createElement(n.Fragment,null,n.createElement("p",null,n.createElement(L.x,{phrase:"info"})),n.createElement(q.n,{initialValues:H,onSubmit:function(r,a){e.onChangePassword(r,a,(function(){return a({reset:!0})}))},validationSchema:Q(e.minPasswordLength)},n.createElement(_,{onClickCancel:function(){return u(!1)},hideCancelButton:!t,submitText:i.T.getPhrase(K,"savePassword"),buttonContainerClass:t?"d-flex justify-content-end ms-n2 w-75":"d-flex justify-content-end w-75",inputWidthClass:"w-75"}))):n.createElement("button",{className:"btn btn-outline-dark ",onClick:function(){return u(!0)}},n.createElement(L.x,{phrase:"change"})))}var X=a(81803),ee=a(99940),re={getCustomerSecuritySettings:function(e,r,a){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"customers:security:settings",normalize:!1,success:r,error:a}},setCustomerSecuritySettings:function(e,r,a,t){return{url:"{gateway}/v1/customers/".concat(e,"/settings/security"),key:"update:security:settings",invalidationKeys:"customers:security:settings",type:ee.k.PUT,normalize:!1,data:r,success:a,error:t}}},ae=a(68192),te=i.T.encloseNamespace("settings.accountSettings");function ne(){var e,r=(0,s.I0)(),a=(0,P.Z)(),t=(0,U.a)(C.r.MDDown),i=o.a.useBasicFetch(I.N.currentUser()),d=o.a.useBasicFetch(i.data&&ae.N.getUser(i.data.id)),c=o.a.useBasicFetch(i.data&&re.getCustomerSecuritySettings(i.data.customerId));(0,T.M)({title:te("heading")});var m=S.getMinimumPasswordLength(c.data,null===(e=d.data)||void 0===e?void 0:e.userType,i.data.role);return n.createElement(X.d,{heading:te("heading"),breadcrumbs:[te("breadcrumb")]},n.createElement("div",{className:t?"w-100":"w-50"},i.data?n.createElement(z,{currentUser:i.data,onChangeEmail:function(e,t){o.a.fetch(r,ae.N.changeEmail(e.email,(function(){u.k.logUserAction({id:i.data.id,oldEmail:i.data.email,newEmail:e.email},{actionType:l.Vw.VerifyEmail,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Start}),a.success(te("changeEmailRequestSuccess",{email:e.email,escapeText:!0}))}),(function(){a.error(te("changeEmailRequestError"))}),t))}}):n.createElement(B,null)),n.createElement("hr",null),n.createElement("div",{className:t?"w-100":"w-50"},c.data&&n.createElement(J,{onChangePassword:function(e,t,n){o.a.fetch(r,ae.N.changePassword(e,(function(){u.k.logUserAction({id:i.data.id,oldPassword:e.currentPassword,newPassword:e.newPassword},{actionType:l.Vw.ChangePassword,entity:l.py.User,location:l.LZ.Settings,workflowPhase:l.eu.Complete}),a.success(te("changePasswordSuccess")),n()}),(function(e){var r=e.responseJSON;"user.password-too-short"===r.errorCode?a.error(te("changePasswordRequirementsError")):"user.invalid-password"===r.errorCode?a.error(te("changePasswordInvalid")):"user.same-password"===r.errorCode?a.error(te("changePasswordSame")):"user.locked-out"===r.errorCode?a.error(te("changePasswordLockedOut")):a.error(te("changePasswordError"))}),t))},minPasswordLength:m})))}}}]);
|