@clickview/library-editor 1.54.0-rc.1 → 1.54.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clickview/library-editor",
3
3
  "description": "Library Editor",
4
- "version": "1.54.0-rc.1",
4
+ "version": "1.54.0",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/library-editor/src/index.d.ts",
7
7
  "scripts": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8234],{39023:function(e,t,n){n.d(t,{X:function(){return r}});var i=n(1024);function r(e){var t=e.isLabelEllipsis,n=i.useRef(null);return i.useEffect((function(){n.current&&(e.checked?n.current.indeterminate&&(n.current.indeterminate=!1):!e.indeterminate||n.current.indeterminate?!e.indeterminate&&n.current.indeterminate&&(n.current.indeterminate=!1):n.current.indeterminate=!0)}),[n.current,e.indeterminate,e.checked]),i.createElement("div",{className:"form-check pe-2 ".concat(e.className)},i.createElement("input",{ref:n,type:"checkbox",className:"".concat(e.inputClassName," form-check-input"),id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled,"aria-checked":e.checked,"aria-label":e.ariaLabel}),e.label&&i.createElement("label",{className:"form-check-label cursor-pointer align-top",htmlFor:e.id},i.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}r.defaultProps={checked:!1,label:"",className:""}},74483:function(e,t,n){var i;n.d(t,{w:function(){return i}}),function(e){e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive"}(i||(i={}))},58234:function(e,t,n){n.r(t),n.d(t,{PastRequestsView:function(){return Li}});var i=n(1024),r=n.n(i),a=n(57857),o=n(86120),s=n(23689),l=n(86242),c=n(66703),u=n(90335),d=n(15408),m=n(2491),f=n(30317),v=n(22430),g=n(50997),p=n(68893),y=n(48404),b=n(19226),h=n(95061),S=n(39396),C=n(63791),E=n(50072),I="libraryRequests.closedAlert";function A(e){var t;return(null===(t=e.libraryRequest)||void 0===t?void 0:t.status)!==E.l.Closed?r().createElement(r().Fragment,null):r().createElement("div",{className:"alert alert-warning mb-3 rounded d-flex align-items-center px-2",role:"alert"},r().createElement(S.x,{svgName:C.vn.Lock,className:"d-inline-block svg-container me-2"}),r().createElement(c.x,{namespace:I,phrase:"closedRequest"}))}var L=n(70065),P=n(40221),T=n(85887),k=n(99910),O=n(58424),w="search.filterActions";function R(e){return i.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?i.createElement(O.L,{className:"text-secondary hover-text-underline cursor-pointer",onClick:e.onClickReset},i.createElement(c.x,{namespace:w,phrase:"reset"})):i.createElement("div",{className:"invisible"}),i.createElement(O.L,{className:"info-link",onClick:e.onClickApply},i.createElement(c.x,{namespace:w,phrase:"apply"})))}R.defaultProps={active:!1,className:""};var _=(0,i.createContext)(null);function j(e,t){return"update"===t.type?t.payload:e}var N=n(53808),x=n(31647),D=n(52076);function M(e){return r().createElement("label",{htmlFor:e.id,className:"mb-0"},r().createElement("h3",{className:"h6 mb-2"},e.title))}var F=n(39023);function B(e){return function(e){if(Array.isArray(e))return V(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 V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(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 V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function q(e){var t,n=qe.displayTwoColumns(e.filter),r=e.draftState.selection;return i.createElement(i.Fragment,null,i.createElement(M,{title:e.filter.name}),i.createElement(k.Form,{className:"mb-3"},(t=e.filter.options.map((function(t){var a=e.filter.disabled||t.disabled,o=!!e.draftState.selection.find((function(e){return e.id.toString()===t.id.toString()})),s=Array.isArray(t.id)?t.id.join("_"):t.id;return i.createElement("li",{key:s,className:"my-1 ".concat(n?"col-md-6 col-12":"")},i.createElement(F.X,{label:t.name,name:s,id:s,onChange:function(){return function(t,n){if(n){var i=-1;r.find((function(e,n){i>-1||e.id.toString()===t.id.toString()&&(i=n)}));var a=[].concat(B(r.slice(0,i)),B(r.slice(i+1)));e.setDraftState({active:!!a.length,selection:a})}else{var o=B(r);o.push(t),e.setDraftState({active:!!o.length,selection:o})}}(t,o)},checked:!a&&o,isLabelEllipsis:n,disabled:a}))})),i.createElement("ul",{className:"list-unstyled ".concat(n?"d-flex flex-wrap":"")},t))))}function G(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}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function U(e){var t,n,r,a=[],o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=G(e))){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){o=!0,r=e},f:function(){try{a||null==t.return||t.return()}finally{if(o)throw r}}}}(e.filter.options);try{var s=function(){var o,s=r.value,l=e.filter.disabled||s.disabled,c=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===s.id})),u=null!==(n=s.secondLayerOptions)&&void 0!==n?n:[],d=function(e,t){var n,i,r=(null===(n=null==e?void 0:e.secondLayerSelection)||void 0===n?void 0:n.length)>0,a=(null===(i=null==e?void 0:e.secondLayerSelection)||void 0===i?void 0:i.length)===t.length;return r&&!a}(c,u),m=!d&&!!c;a.push(i.createElement(F.X,{key:s.id,label:s.name,name:s.id,id:s.id,indeterminate:d,onChange:function(){return e.onToggleItem(s,m||d)},checked:!l&&m,className:"my-1",disabled:l})),qe.hasManyFilterOptions(u)&&a.push.apply(a,(o=u.map((function(t){var n,r=l||t.disabled,a=!!(null===(n=null==c?void 0:c.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return i.createElement(F.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,a,s)},checked:!r&&a,className:"my-1 ms-3",disabled:r})})),function(e){if(Array.isArray(e))return H(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||G(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))};for(o.s();!(r=o.n()).done;)s()}catch(e){o.e(e)}finally{o.f()}return i.createElement(i.Fragment,null,a)}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){var t,n,r,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e.filter.options);try{var o,s=function(){var a=r.value,o=e.filter.disabled||a.disabled,s=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===a.id})),l=(null!==(n=a.secondLayerOptions)&&void 0!==n?n:[]).map((function(t){var n,r=o||t.disabled,l=!!(null===(n=null==s?void 0:s.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return i.createElement(F.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,l,a)},checked:!r&&l,className:"my-1",disabled:r})}));return{v:i.createElement(i.Fragment,null,l)}};for(a.s();!(r=a.n()).done;)if(o=s())return o.v}catch(e){a.e(e)}finally{a.f()}}function K(e){return function(e){if(Array.isArray(e))return z(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 z(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)?z(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 z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Z(e){var t=e.filter.options;function n(t,n,i){var r,a,o=e.draftState.selection,s=o.findIndex((function(e){return e.id===i.id}));if(!n){var l=[].concat(K(null!==(a=null===(r=o[s])||void 0===r?void 0:r.secondLayerSelection)&&void 0!==a?a:[]),[t]);if(0===o.length||-1===s){var c=Object.assign(Object.assign({},i),{secondLayerSelection:l}),u=[].concat(K(o),[c]);return void e.setDraftState({active:!!u.length,selection:u})}if(-1!==s){var d=o.map((function(e){return e.id===i.id?Object.assign(Object.assign({},e),{secondLayerSelection:l}):e}));return void e.setDraftState({active:!!d.length,selection:d})}}var m=o.map((function(e){if(e.id===i.id){var n=P.m.removeItem(e.secondLayerSelection,t);return Object.assign(Object.assign({},i),{secondLayerSelection:n})}return e}));0===m[s].secondLayerSelection.length&&(m=P.m.removeItem(m,i)),e.setDraftState({active:!!m.length,selection:m})}return i.createElement(i.Fragment,null,i.createElement(M,{title:e.filter.name}),i.createElement(k.Form,{className:"mb-3"},qe.hasManyFilterOptions(t)?i.createElement(U,Object.assign({onToggleItem:function(n,i){var r,a=e.draftState.selection,o=a.findIndex((function(e){return e.id===n.id}));if(!i){var s=null===(r=null==t?void 0:t.find((function(e){return e.id===n.id})).secondLayerOptions)||void 0===r?void 0:r.filter((function(e){return!e.disabled})),l=Object.assign(Object.assign({},n),{secondLayerSelection:s});if(0===a.length||-1===o){var c=[].concat(K(a),[l]);return void e.setDraftState({active:!0,selection:c})}if(-1!==o){var u=a.map((function(e){return e.id===n.id?l:e}));return void e.setDraftState({active:!!u.length,selection:u})}}var d=P.m.removeItemFromIndex(a,a.findIndex((function(e){return e.id===n.id})));e.setDraftState({active:!!d.length,selection:d})},onToggleChildItem:n},e)):i.createElement(Y,Object.assign({onToggleChildItem:n},e))))}var J=n(9063);function X(e){var t=e.draftState.active;return i.createElement(i.Fragment,null,i.createElement(M,{id:e.filter.id,title:e.filter.name}),i.createElement("div",{className:"d-flex align-items-start justify-content-between"},i.createElement("p",{className:"d-inline-block w-75"},e.filter.description),i.createElement(J.Z,{id:e.filter.id,disabled:e.filter.disabled,onClick:function(){e.setDraftState({active:!t})},on:t})))}function Q(e){return r().createElement(r().Fragment,null,e.filter.options.map((function(t){return r().createElement(k.Dropdown.Item,{key:t.id,onClick:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},disabled:e.filter.disabled||t.disabled},t.name)})))}function $(e){return i.createElement(i.Fragment,null,i.createElement(M,{title:e.filter.name}),i.createElement(k.Form,null,i.createElement("ul",{className:"".concat(e.isOnMoreFilters?"d-flex flex-wrap":""," list-unstyled")},e.filter.options.map((function(t){var n,r=e.filter.disabled||t.disabled,a=(null===(n=P.m.first(e.draftState.selection))||void 0===n?void 0:n.id.toString())===t.id.toString();return i.createElement("li",{key:t.id,className:"".concat(e.isOnMoreFilters?"w-50":"")},i.createElement(k.Form.Check,{type:"radio",label:t.name,name:t.id,id:t.id,value:t.id,onChange:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},checked:!r&&a,className:"".concat("B3rOI"),disabled:r}))})))))}var ee=n(63946),te=n(32557);function ne(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(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,i=Array(t);n<t;n++)i[n]=e[n];return i}var re=a.T.encloseNamespace("shared.ratingRangeSelector");function ae(e){var t=ne((0,te.X)({delay:1}),2),n=t[0],i=t[1];if(r().useEffect((function(){e.onHover(i?e.rating:null,e.isRatingValid)}),[i]),!e.rating.code)return r().createElement(r().Fragment,null);var a=r().createElement(O.L,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,i,e.isRatingValid),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?a:r().createElement(ee.u,{title:e.isRatingValid?e.rating.name:re("invalidRating"),spanHack:!0},a)}function oe(e){var t=ne(r().useState([]),2),n=t[0],i=t[1];function a(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))}function o(t,n){t&&!e.isDisabled(t)?n&&i(a(t)):i([])}function s(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))}function l(t){if(!t)return!1;var n=e.yearGroups.findIndex((function(t){return t.value===e.yearGroup.value}));return 0===n||e.yearGroups.slice(0,n).every((function(e){return t.value>=e.rating.value}))}return r().createElement("div",null,r().createElement(k.ButtonGroup,{as:"ul",className:"list-unstyled mb-0"},e.ratings.map((function(t){var n;return r().createElement("li",{key:t.id},r().createElement(ae,{rating:t,isRatingValid:!e.yearGroup||l(t),onClick:function(){return function(t){e.onSelectRange(a(t))}(t)},onHover:o,isActive:s(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses}))}))))}oe.defaultProps={selections:[]};function se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function le(e){var t,n,r=e.filter.options,a=r.filter((function(e){return e.code})),o=(t=a,n=1,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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(t,n)||function(e,t){if(e){if("string"==typeof e)return se(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)?se(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.")}())[0],s=a[a.length-1];return i.createElement(i.Fragment,null,i.createElement(M,{title:e.filter.name}),i.createElement("div",{className:"mb-2"},i.createElement(oe,{ratings:r,selections:e.draftState.selection,onSelectRange:function(t){e.setDraftState({active:!!t.length,selection:t})},disabled:e.filter.disabled,isDisabled:function(e){return e.disabled},getButtonClasses:function(e,t,n){var i="btn border text-nowrap";return i+=t||n?" btn-dark":" btn-outline-dark",n&&(i+=" active"),1===a.length?i+=" rounded":o.id===e.id?i+=" sLa86":s.id===e.id?i+=" xDcnT":i+=" rounded-0",i}})))}var ce="filters.";function ue(e){return ue="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},ue(e)}var de,me,fe={type:!0},ve=["sort","classification","presentation","audience","yearGroup","moviesAndTv","type","rating","interactives","clips","classroom","hasResources","hasSubtitles","productionYear","isHd","producedByClickView","duration","tagOrClassification","status","isAdmin","bulkActionType","userType","filter","channel","dateBroadcast","categoryId","hasInteractives","jobStatus","source"].reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},r=!fe[t],(i=function(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}(i=t))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n));var n,i,r}),{});!function(e){e.MyVideos="my-videos",e.School="school",e.ExchangeArchive="exchange-archive",e.ClickView="clickview"}(de||(de={})),function(e){e.Video="video",e.Series="series",e.Playlist="playlist",e.Classification="classification",e.Clip="clip",e.Interactive="interactive",e.Company="company",e.Category="category"}(me||(me={}));var ge=n(75459);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 ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}a.T.encloseNamespace("sharedSearch.utils");var be,he="".concat(ce,"library"),Se=function(e,t){return(Array.isArray(e)?e:[e]).reduce((function(e,n){return t.reduce((function(e,t){var i,r=e[he]||[];return n===de.MyVideos&&t.type===ge.r.Workspace||n===de.School&&t.type===ge.r.CustomLibrary||n===de.ExchangeArchive&&t.type===ge.r.Exchange||n===de.ClickView&&t.type===ge.r.HostedLibrary?Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e){if("object"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},he,[].concat(function(e){if(Array.isArray(e))return ye(e)}(i=r)||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 ye(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)?ye(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.")}(),[t.id.toString()]))):e}),e)}),{})};!function(e){e.CLICKVIEW_CURATED="is_clickview_curated",e.MOVIES_AND_TV="is_movies_and_tv",e.STREAMABLE_CURATED="is_streamable_learning_curated"}(be||(be={})),n(11306),n(79410);var Ce=n(10657);n(1268),n(74483),n(46237),n(38182);var Ee,Ie,Ae,Le,Pe,Te=n(76044);!function(e){e.Online="online",e.Primary="primary",e.Curator="curator"}(Ee||(Ee={})),n(52086),r().createContext({}),function(e){e[e.Unknown=0]="Unknown",e[e.Staff=1]="Staff",e[e.Learner=2]="Learner",e[e.MasterVideo=3]="MasterVideo"}(Ie||(Ie={})),function(e){e.YearGroupRollover="year-group-rollover",e.ChangeYearGroup="change-year-group",e.DeleteUser="delete-user",e.RemoveUser="remove-user",e.DeactivateUser="deactivate-user",e.ActivateUser="activate-user",e.AddToClassroom="add-to-classroom",e.ResetPassword="reset-password",e.SendResetPasswordEmail="send-reset-password-email",e.SendAccountActivationEmail="send-account-activation-email",e.CreateUser="create-user",e.AddToAudience="add-to-audience",e.AddToBackboneClassification="add-to-backbone-classification",e.AddToBackboneAudience="add-to-backbone-audience",e.AddToClassification="add-to-classification",e.AddToSeries="add-to-series",e.AddToDirector="add-to-director",e.AddToDistributor="add-to-distributor",e.AddToProductionCompany="add-to-production-company",e.AddToProducer="add-to-producer",e.AddToLibrary="add-to-library",e.AddToCurationTag="add-to-curation-tag",e.AddToSkillTag="add-to-skill-tag",e.AddToPedagogyTag="add-to-pedagogy-tag",e.AddToNormalTag="add-to-normal-tag",e.AddToHiddenTag="add-to-hidden-tag",e.AddResourceAndLink="add-resource-and-link",e.Rostering="rostering"}(Ae||(Ae={})),function(e){e[e.NoAction=1]="NoAction",e[e.Succeed=1]="Succeed",e[e.Unknown=10]="Unknown",e[e.CustomerNotFound=100]="CustomerNotFound",e[e.UserNotFound=101]="UserNotFound",e[e.EmailNotVerified=131]="EmailNotVerified",e[e.UserDisabled=133]="UserDisabled",e[e.InvalidYearGroup=200]="InvalidYearGroup",e[e.MissingYearGroup=201]="MissingYearGroup",e[e.NewYearGroupNotSet=202]="NewYearGroupNotSet",e[e.ObjectNotFoundInBackboneClassification=300]="ObjectNotFoundInBackboneClassification",e[e.ObjectNotFoundInBackboneAudience=301]="ObjectNotFoundInBackboneAudience"}(Le||(Le={})),function(e){e[e.RolloverYearGroup=1]="RolloverYearGroup",e[e.DeactivateUser=2]="DeactivateUser",e[e.ChangeYearGroup=3]="ChangeYearGroup",e[e.DeleteUser=4]="DeleteUser",e[e.CreateUser=5]="CreateUser",e[e.ResetPassword=6]="ResetPassword",e[e.AddUsersClassroom=7]="AddUsersClassroom",e[e.SendAccountReminderEmail=8]="SendAccountReminderEmail",e[e.ActivateUser=9]="ActivateUser",e[e.AddToBackboneClassification=10]="AddToBackboneClassification",e[e.AddToClassification=11]="AddToClassification",e[e.AddToBackboneAudience=12]="AddToBackboneAudience",e[e.AddToAudience=13]="AddToAudience",e[e.AddVideosSeries=14]="AddVideosSeries",e[e.AddVideosDistributor=15]="AddVideosDistributor",e[e.AddVideosProductionCompany=16]="AddVideosProductionCompany",e[e.AddVideosProducer=17]="AddVideosProducer",e[e.AddVideosDirector=18]="AddVideosDirector",e[e.AddVideosLibrary=19]="AddVideosLibrary",e[e.AddVideosResourceAndLinks=21]="AddVideosResourceAndLinks",e[e.AddVideosTag=22]="AddVideosTag",e[e.SendAccountActivationEmail=23]="SendAccountActivationEmail",e[e.RemoveUser=24]="RemoveUser",e[e.Rostering=25]="Rostering"}(Pe||(Pe={}));var ke=n(74421);n(84868),a.T.encloseNamespace("userManager.utils"),Pe.ActivateUser,Pe.AddUsersClassroom,Pe.ChangeYearGroup,Pe.DeactivateUser,Pe.DeleteUser,Pe.ResetPassword,Pe.RolloverYearGroup,Pe.SendAccountReminderEmail,Pe.CreateUser,Pe.SendAccountActivationEmail,Pe.RemoveUser;var Oe=(a.T.encloseNamespace("sharedSearch.utils"),function(e){switch(e){case"bite-sized":return"...179999";case"short":return"180000...299999";case"medium":return"300000...899999";case"long":return"900000..."}}),we=(a.T.encloseNamespace("sharedSearch.utils"),function(e){var t=(new Date).getFullYear();switch(e){case"any-year":return"";case"this-year":return"".concat(t,"...");case"last-3-years":return"".concat(t-3,"...");case"last-5-years":return"".concat(t-5,"...")}});function Re(e,t){var n=e.split("-to-").map((function(e){return t.find((function(t){return t.code===e}))}));return n.every((function(e){return!!e}))?n:[]}function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function je(e,t,n){return(t=function(e){var t=function(e){if("object"!=_e(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_e(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=De(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function xe(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||De(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 De(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}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Fe=a.T.encloseNamespace("sharedSearch.utils"),Be={classification:!0,categoryId:!0,channel:!0},Ve={series:!0,video:!0,playlist:!0,classification:!0,clip:!0,interactive:!0,company:!0,category:!0},qe={displayTwoLayers:function(e){var t=this;return"nested-checkbox"===e.type&&!!this.hasManyFilterOptions(e.options)&&!e.options.every((function(e){return!t.hasManyFilterOptions(null==e?void 0:e.secondLayerOptions)}))},hasManyFilterOptions:function(e){return e.length>=2},displayTwoColumns:function(e){var t;return Be[e.id]&&(null===(t=e.options)||void 0===t?void 0:t.length)>=10},showPresentationFilter:function(e){var t,n;return!!(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.options.length>1||(null===(n=P.m.first(e.options).secondLayerOptions)||void 0===n?void 0:n.length)>1)},getMoreFilters:function(e){return{id:"moreFilters",name:Fe("moreFilters"),type:"more-filters",filters:e}},mapTypeToComponent:function(e){switch(e){case"switch":return function(e){return i.createElement(X,Object.assign({key:e.id},e))};case"checkbox":return function(e){return i.createElement(q,Object.assign({key:e.id},e))};case"nested-checkbox":return function(e){return i.createElement(Z,Object.assign({key:e.id},e))};case"radio":return function(e){return i.createElement($,Object.assign({key:e.id},e))};case"rating":return function(e){return i.createElement(le,Object.assign({key:e.id},e))};case"dropdown":return function(e){return i.createElement(Q,Object.assign({key:e.id},e))};default:return function(){return i.createElement(i.Fragment,null)}}},deriveInitialStateFromQuery:function(){var e,t,n,i,r,a,o,s,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,d=arguments.length>3?arguments[3]:void 0,m={sort:{active:!!l.sort,selection:Ge(l,c,"sort")},classification:{active:!!l.classification,selection:Ge(l,c,"classification")},presentation:{active:!!l.presentation,selection:Ge(l,c,"presentation")},type:{active:!!l.type,selection:Ge(l,c,"type")},rating:{active:!!l.rating,selection:Ge(l,c,"rating")},interactives:{active:"true"===(null===(e=l.interactives)||void 0===e?void 0:e.toString())},clips:{active:"true"===(null===(t=l.clips)||void 0===t?void 0:t.toString())},yearGroup:{active:!!l.yearGroup,selection:Ge(l,c,"yearGroup")},moviesAndTv:{active:"true"===(null===(n=l.moviesAndTv)||void 0===n?void 0:n.toString())},classroom:{active:!!l.classroom,selection:Ge(l,c,"classroom")},audience:{active:!!l.audience,selection:Ge(l,c,"audience")},hasResources:{active:"true"===(null===(i=l.hasResources)||void 0===i?void 0:i.toString())},hasSubtitles:{active:"true"===(null===(r=l.hasSubtitles)||void 0===r?void 0:r.toString())},productionYear:{active:!!l.productionYear,selection:Ge(l,null==u?void 0:u.filters,"productionYear")},isHd:{active:"true"===(null===(a=l.isHd)||void 0===a?void 0:a.toString())},producedByClickView:{active:"true"===(null===(o=l.producedByClickView)||void 0===o?void 0:o.toString())},duration:{active:l.duration,selection:Ge(l,null==u?void 0:u.filters,"duration")},tagOrClassification:{active:!!l.tagOrClassification,selection:Ge(l,c,"tagOrClassification")},status:{active:!!l.status,selection:Ge(l,c,"status")},jobStatus:{active:!!l.jobStatus,selection:Ge(l,c,"jobStatus")},isAdmin:{active:"true"===(null===(s=l.isAdmin)||void 0===s?void 0:s.toString())},bulkActionType:{active:!!l.bulkActionType,selection:Ge(l,c,"bulkActionType")},userType:{active:!!l.userType,selection:Ge(l,c,"userType")},filter:{active:!!l.filter,selection:Ge(l,c,"filter")},channel:{active:!!l.channel,selection:Ge(l,c,"channel")},dateBroadcast:{active:!!l.dateBroadcast,selection:Ge(l,c,"dateBroadcast")},categoryId:{active:!!l.categoryId,selection:Ge(l,c,"categoryId")},hasInteractives:{active:!!l.hasInteractives,selection:Ge(l,c,"hasInteractives")},source:{active:!!l.source,selection:Ge(l,c,"source")}},f=function(e,t){var n,i=m[t.id];return i.active&&"selection"in i&&!(null===(n=i.selection)||void 0===n?void 0:n.length)&&(i.active=!1),e[t.id]=m[t.id],e},v=c.reduce(f,{});return(null==u?void 0:u.filters)&&(v.moreFilters=u.filters.reduce(f,{})),v.appLink=d,v},hasActiveFilters:function(e){var t=Object.keys(e);return!!t.length&&!!t.filter((function(t){return"query"!==t&&"cursor"!==t&&"page"!==t&&!(Array.isArray(e[t])&&!e[t].length)})).length},getLabel:function(e,t){var n,i;if(!(null===(n=null==t?void 0:t.selection)||void 0===n?void 0:n.length))return e.name;if("dropdown"===e.type)return P.m.first(t.selection).name;if("radio"===e.type){var r=P.m.first(t.selection);return!r||r.default?e.name:r.name}if("nested-checkbox"===e.type||"checkbox"===e.type){var a=e.options.find((function(e){return e.default&&t.selection.find((function(t){return t.id===e.id}))}));if(a)return e.name;if(e.secondaryId){var o=null===(i=t.selection)||void 0===i?void 0:i.reduce((function(t,n){var i,r,a,o=e.options,s=o.findIndex((function(e){return e.id===n.id}));return 0===(null===(i=o[s].secondLayerOptions)||void 0===i?void 0:i.length)?t+1:null!==(a=t+(null===(r=n.secondLayerSelection)||void 0===r?void 0:r.length))&&void 0!==a?a:0}),0);return"".concat(e.name," - ").concat(o)}return"".concat(e.name," - ").concat(t.selection.length)}if("rating"===e.type){if(!t.selection.length)return e.name;var s=P.m.first(t.selection),l=P.m.last(t.selection);return 1===t.selection.length?"".concat(e.name,": ").concat(s.code):"".concat(e.name,": ").concat(s.code," to ").concat(l.code)}},buildFrontendFilterParams:function(e,t){var n=Object.assign({},e);return t.forEach((function(e){var t,i;if(null==e?void 0:e.filter){var r=e.filter,a=r.id,o=r.type,s=e.state,l=s.active,c=s.selection;switch(o){case"switch":case"button":n[a]=l?"true":"";break;case"radio":case"dropdown":var u=1===(null===(t=e.state.selection)||void 0===t?void 0:t.length)&&(null===(i=P.m.first(e.state.selection))||void 0===i?void 0:i.default);n[a]=e.state.selection.length&&!u?P.m.first(e.state.selection).id:"";break;case"nested-checkbox":n[a]=l?c.map((function(e){return e.id})):null;var d,m=e.filter.secondaryId;m&&(n[m]=(d=[]).concat.apply(d,xe(c.map((function(e){return e.secondLayerSelection.map((function(e){return e.id}))})))));break;case"checkbox":if(!l){n[a]=null;break}var f,v=[],g=Ne(c);try{for(g.s();!(f=g.n()).done;){var p=f.value,y=p.id.toString().split(":");if(y.length>1){var b,h=Ne(y);try{for(h.s();!(b=h.n()).done;){var S=b.value;v.push(S)}}catch(e){h.e(e)}finally{h.f()}}else v.push(p.id)}}catch(e){g.e(e)}finally{g.f()}n[a]=v;break;case"tag":n[a]=l?c.map((function(e){return e.id})):null;break;case"rating":n[a]=l?function(e){if(!(null==e?void 0:e.length))return"";var t=P.m.first(e),n=P.m.last(e);return 1===e.length?t.code:"".concat(t.code,"-to-").concat(n.code)}(c):null}n[a]||delete n[a]}})),T.t.omit(n,["cursor"])},buildBackendFilterParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,r=n?je(je({},"filters.presentation",arguments.length>2?arguments[2]:void 0),"isLearner",n):{};return Object.keys(e).reduce((function(n,r){var a=e[r];return Array.isArray(a)&&!a.length||!a?n:ve[r]?"rating"===r?(n["".concat(ce).concat(r)]=function(e,t){var n=Re(e,t);if(n.length){if(1===n.length){var i=P.m.first(n);return"0...".concat(i.value)}var r=P.m.last(n);return"0...".concat(r.value)}}(a,t),n):"productionYear"===r?(n["".concat(ce).concat(r)]=we(a),n):"duration"===r?(n["".concat(ce).concat(r)]=Oe(a),n):"moviesAndTv"===r?(n["".concat(ce,"curationTag")]=be.MOVIES_AND_TV,n):"source"===r?Object.assign(Object.assign({},n),Se(a,i)):(n["".concat(ce).concat(r)]=a,n):n}),r)},getAppliedIndices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.type,i=["category"];function r(e){return(t||!i.includes(e))&&Ve[e]}if(n){if(!Array.isArray(n))return[n].filter(r);if(n.length)return n.filter(r)}var a=[];return t&&a.push.apply(a,i),e.source?["video","clip","interactive"].concat(a):["series","video","playlist","classification","clip","interactive","company"].concat(a)},applyFilter:function(e,t,n,i){if(!T.t.isEqual(t,n)){var r=Object.keys(n).map((function(t){var i,r,a=e.find((function(e){return e.id===t})),o=n[t],s=1===(null===(i=o.selection)||void 0===i?void 0:i.length)&&(null===(r=P.m.first(o.selection))||void 0===r?void 0:r.default);return{filter:a,state:{active:o.active&&!s,selection:o.selection}}})),a=x.Q.Ab.GetQuery();x.Q.C$.trigger(Object.assign(Object.assign({},i),{params:qe.buildFrontendFilterParams(a,r)}),{replace:!0})}},mixinDisabledFields:function(e,t,n,i){var r,a=[].concat(xe(n),xe(null!==(r=null==i?void 0:i.filters)&&void 0!==r?r:[]));a=function(e,t,n){var i=n.reduce((function(e,t){return e[t]=!0,e}),{});return t.map((function(n){var r;if(!(null===(r=n.compatibleIndices)||void 0===r?void 0:r.length))return n;if(!n.compatibleIndices.find((function(e){return i[e]})))return Object.assign(Object.assign({},n),{disabled:!0});var a=Object.keys(e).filter((function(t){var n=e[t];return"active"in n&&n.active})),o=!1;return a.forEach((function(e){var i;if(!o){var r=t.find((function(t){return t.id===e}));if(null===(i=r.compatibleIndices)||void 0===i?void 0:i.length){var a=r.compatibleIndices.reduce((function(e,t){return e[t]=!0,e}),{});n.compatibleIndices.find((function(e){return a[e]}))||(o=!0)}}})),Object.assign(Object.assign({},n),{disabled:o})}))}(e,a,t),a=function(e,t){return t.map((function(n){if(!N.q.isFunction(n.disableOptions))return n;var i=n.disableOptions(n.options,t,e);return Object.assign(Object.assign({},n),{options:i})}))}(e,a);var o={mainFilters:a.filter((function(e){return n.find((function(t){return t.id===e.id}))}))};return(null==i?void 0:i.filters)&&(o.moreFilters=Object.assign(Object.assign({},i),{filters:a.filter((function(e){return i.filters.find((function(t){return t.id===e.id}))}))})),o},logFilterEvent:function(e,t,n,i,r){var a,o=[];null==e||e.forEach((function(e){var t=n[e.id];t.active&&o.push({type:e.id,selection:t.selection})})),null===(a=null==t?void 0:t.filters)||void 0===a||a.forEach((function(e){var t=n.moreFilters[e.id];t.active&&o.push({type:e.id,selection:t.selection})})),o.length||(r.descriptor=L.OR.Reset),D.k.logUserAction({query:null!=i?i:"",filters:o},D.k.mergeOptions(r,{workflowPhase:L.eu.Complete,actionType:L.Vw.Filter}))},getObjectTypeOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=[{id:"classification",name:Fe("topics")},{id:"playlist",name:Fe("playlists")},{id:"series",name:Fe("series")},{id:"video",name:Fe("videos")},{id:"clip",name:Fe("clips")},{id:"interactive",name:Fe("interactives")},{id:"company",name:Fe("company")}];return t&&n.push({id:"category",name:Fe("category")}),n.filter((function(t){return!e.find((function(e){return e===t.id}))}))},getIsObjectTypeOptionDisabled:function(e,t,n){return e.map((function(e){var i=!1;return t.forEach((function(t){var r;if(!i){var a=n[t.id]||n.moreFilters[t.id];(null==a?void 0:a.active)&&(null===(r=t.compatibleIndices)||void 0===r?void 0:r.length)&&(t.compatibleIndices.find((function(t){return e.id===t}))||(i=!0))}})),Object.assign(Object.assign({},e),{disabled:i})}))},getNameSortOptions:function(){return[{id:"newest",name:Fe("newest")},{id:"oldest",name:Fe("oldest")},{id:"first-name-atoz",name:Fe("firstNameAToZ")},{id:"first-name-ztoa",name:Fe("firstNameZToA")},{id:"surname-atoz",name:Fe("surnameAToZ")},{id:"surname-ztoa",name:Fe("surnameZToA")}]},getYearGroupOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.value.toString(),name:e.name}})):[]},getStatusOptions:function(){return[{id:"active",name:Fe("active")},{id:"deactivated",name:Fe("deactivated")},{id:"pending",name:Fe("pending")}]},getJobStatusOptions:function(){return[{id:"completed",name:Fe("completed")},{id:"failed",name:Fe("errored")},{id:"inProgress",name:Fe("inProgress")}]},getTvFieldsOptions:function(){return[{id:"0",name:Fe("allFields"),default:!0},{id:"1",name:Fe("titleDescriptionField")},{id:"2",name:Fe("captionsField")}]},getTvChannelOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.name,name:e.name}})):[]},getTvDateBroadcastOptions:function(){return[{id:"any-time",name:Fe("anyTime"),default:!0},{id:"yesterday",name:Fe("yesterday")},{id:"last-week",name:Fe("lastWeek")},{id:"last-2-weeks",name:Fe("last2Weeks")}]},getCategoriesOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.data.id,name:e.data.name}})):[]}};function Ge(e){var t,n,i=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find((function(e){return e.id===i}));if(!r)return[];if(!e[i])return null!==(n=null===(t=r.options)||void 0===t?void 0:t.filter((function(e){return e.default})))&&void 0!==n?n:[];if("rating"===i)return function(e,t){if(Array.isArray(e))return e;var n=t.options,i=Re(e,n);if(!i.length)return[];var r=P.m.last(i);return n.filter((function(e){return e.value>0&&e.value<=r.value}))}(e[i],r);var a=e[i];return Array.isArray(a)||(a=[a]),"classification"===i?function(e,t){var n,i;return null!==(i=null===(n=null==e?void 0:e.options)||void 0===n?void 0:n.filter((function(e){return e.id.split(":").every((function(e){return t.find((function(t){return t.toString()===e.toString()}))}))})))&&void 0!==i?i:[]}(r,a):"presentation"===i?function(e,t,n){return He(e,t).map((function(e){var t=n.audience;if(!(null==t?void 0:t.length))return e;var i=He(e.secondLayerOptions,t);return Object.assign(Object.assign({},e),{secondLayerSelection:i})})).filter((function(e){var t;return!!(null===(t=e.secondLayerSelection)||void 0===t?void 0:t.length)}))}(r.options,a,e):He(r.options,a)}function He(e,t){var n;return Array.isArray(t)||(t=[t]),null!==(n=null==e?void 0:e.filter((function(e){return t.find((function(t){return t.toString()===e.id.toString()}))})))&&void 0!==n?n:[]}var Ue={hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function We(e){return We="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},We(e)}function Ye(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ke(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)?Ke(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 Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function ze(e){var t=i.useContext(_).state,n=t[e.filter.id],r="dropdown"===e.filter.type,a=Ye(i.useState(e.filter.name),2),o=a[0],s=a[1],l=Ye(i.useState(!1),2),c=l[0],u=l[1],d=Ye(i.useState(n),2),m=d[0],f=d[1];function v(e){f(e),r&&g(e)}function g(){var i,r,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;qe.applyFilter([e.filter],n,(i={},r=e.filter.id,a=o,(r=function(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[r]=a,i),t.appLink)}i.useEffect((function(){s(qe.getLabel(e.filter,n)),f(n)}),[e.filter,null==n?void 0:n.selection]);var p,y=i.useMemo((function(){return e.filter.customComponent?e.filter.customComponent:qe.mapTypeToComponent(e.filter.type)}),[e.filter.type]),b=e.hideCaret&&!r?Ue.hideCaret:"",h=(p=e.filter,qe.displayTwoColumns(p)?Ue.twoColumnsWidth:"classification"===p.id?Ue.classificationWidth:qe.displayTwoLayers(p)?Ue.nestedCheckboxesWidth:"switch"===p.type?Ue.switchWidth:"");return"button"===e.filter.type?i.createElement(y,{filter:e.filter,draftState:m,setDraftState:v}):i.createElement(k.Dropdown,{onToggle:function(e){u(e),e||r||g()},show:c},i.createElement(k.Dropdown.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat("fw-semibold mx-1 btn d-flex align-items-center"," ").concat(b),variant:n.active&&!r?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&i.createElement("div",{className:Ue.svgContainer},i.createElement(S.x,{svgName:e.filter.icon})),e.filter.labelPrefix," ",o),i.createElement(k.Dropdown.Menu,null,i.createElement("div",{className:"mx-1 ".concat(Ue.filterMenu," ").concat(h," ").concat(r?"":"px-2 py-1")},i.createElement(y,{filter:e.filter,draftState:m,setDraftState:v}),!r&&!e.filter.disabled&&i.createElement(R,{active:m.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find((function(e){return e.default}));f({active:!1,selection:n?[n]:[]})},onClickApply:function(){g(),u(!1)}}))))}function Ze(e){return Ze="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},Ze(e)}ze.defaultProps={hideCaret:!0};var Je={getSetStateByKey:function(e,t,n){return function(i){return e((function(e){var r,a,o,s=N.q.isFunction(n)?n:N.q.useIdentity();return Object.assign(Object.assign({},e),(r={},a=t,o=s(i,e),(a=function(e){var t=function(e){if("object"!=Ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ze(t)?t:t+""}(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r))}))}}};function Xe(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qe(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)?Qe(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 Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function $e(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function et(e){var t=i.useContext(_).state,n=t.moreFilters,r=Xe(i.useState(e.filter.name),2),a=r[0],o=r[1],s=Xe(i.useState(!1),2),l=s[0],c=s[1],u=Xe(i.useState(n),2),d=u[0],m=u[1],f=Xe(i.useState($e(n)),2),v=f[0],g=f[1],p=Object.keys(n).map((function(e){return"".concat(e,":").concat(n[e].active)})).join("-");function y(){qe.applyFilter(e.filter.filters,n,d,t.appLink)}i.useEffect((function(){m(n),g($e(n))}),[e.filter,p]),i.useEffect((function(){o(v?"".concat(e.filter.name," - ").concat(v):e.filter.name)}),[v]);var b="fw-semibold ".concat(Ue.hideCaret," mx-1 btn");return i.createElement(k.Dropdown,{onToggle:function(e){c(e),e||y()},show:l},i.createElement(k.Dropdown.Toggle,{id:e.filter.id,className:b,variant:v?"dark":"outline-dark"},a),i.createElement(k.Dropdown.Menu,{onClick:function(e){return e.stopPropagation()}},i.createElement("div",{className:"mx-1 ".concat(Ue.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:qe.mapTypeToComponent(e.type);return i.createElement("fieldset",{key:e.id},i.createElement(t,{filter:e,draftState:d[e.id],setDraftState:Je.getSetStateByKey(m,e.id),isOnMoreFilters:!0}))})),i.createElement(R,{active:!!Object.keys(d).find((function(e){return d[e].active})),onClickReset:function(){var t=Object.keys(n).reduce((function(t,n){var i,r=null===(i=e.filter.filters.find((function(e){return e.id===n})).options)||void 0===i?void 0:i.find((function(e){return e.default}));return t[n]={active:!1,selection:r?[r]:[]},t}),{});m(t)},onClickApply:function(){y(),c(!1)}}))))}var tt={tagList:"Zw6d9",badgeBase:"irnbf",disabled:"jlL1c",partialTag:"too_N",removeBadge:"_9FVm",removeBadgeText:"nhoAA",close:"X9joI"},nt=r().memo((function(e){var t=e.tagClass,n="partial-loading-background d-inline-block rounded-pill py-1 px-2 mb-1 me-1 text-nowrap ".concat(void 0===t?"":t," ").concat(tt.partialTag);return r().createElement("div",{className:"mt-1"},r().createElement("span",{className:n}," "))})),it=n(37360),rt=n(49642),at=n(4705),ot=n(73516),st=n(13034);function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var ct,ut="onboarding:persona",dt="onboarding:usage:intention",mt="onboarding:had:job:title",ft={getOnboardingPathway:function(e){var t=e.jobTitle,n=e.userSettings,i=e.presentations,r=e.curriculums,a=e.preferredPresentation,o=e.preferredSubjects,s=e.hasPlaylist,l=e.appLink,c=e.appLinks,u=e.masterUser,d=e.customer,m=e.currentUser,f=e.hasPermissions,v=ft.getPersona();!v&&t&&ft.updatePersona(t),v&&v!==Te.l.getPersonaFromJobTitle(t)&&ft.updatePersona(t);var g={jobTitle:t,hasPlaylist:s,masterUser:u,customer:d,presentations:i||[],curriculums:r||[],preferredPresentation:a,preferredSubjects:o,instanceRegion:null==m?void 0:m.instanceRegion,hasPermissions:f},p=ft.getCurrentScreen(l,c),y=Object.values(wt),b={},h=null,S=null,C=0,E=0,I=!0;return y.forEach((function(e){var t;if(e.predicate(g)){S||(S=e.id);var i=function(e,t){var n;return null===(n=null==e?void 0:e[t])||void 0===n?void 0:n.value}(n,e.setting);i||(I=!1),p||i||(p=e.id),C++,b[e.id]={isComplete:i,next:null,previous:h,number:C,includeInProgressBar:!1},e.includeInProgressBar(g)&&(E++,b[e.id].progressBarNumber=E,b[e.id].includeInProgressBar=!0),(null===(t=e.branches)||void 0===t?void 0:t.length)&&e.branches.forEach((function(t){b[t]={next:e.id,previous:e.id,includeInProgressBar:!1}})),h&&(b[h].next=e.id),h=e.id}})),p||I||(p=S),{screens:b,currentScreen:p,totalScreens:C,totalScreensInProgressBar:E,hasCompletedAllSteps:I}},getNextAppLink:function(e,t){var n=e.screens[e.currentScreen],i=null==n?void 0:n.next;return i?t[i]:null},getPreviousAppLink:function(e,t){var n=e.screens[e.currentScreen],i=null==n?void 0:n.previous;return i?t[i]:null},getCurrentScreen:function(e,t){var n=Object.entries(t).find((function(t){return(n=t,i=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(n,i)||function(e,t){if(e){if("string"==typeof e)return lt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}(n,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1].action===e.action;var n,i}));return n?P.m.first(n):null},getPersona:function(){return at.SG.get(ut)},updatePersona:function(e){var t=Te.l.getPersonaFromJobTitle(e);at.SG.set(ut,t||"teacher")},getUsageIntention:function(){return at.SG.get(dt)},updateUsageIntention:function(e){at.SG.set(dt,e)},removeUsageIntention:function(){at.SG.remove(dt)},getProgress:function(e){var t,n,i,r=null===(t=e.screens[e.currentScreen])||void 0===t?void 0:t.number,a=null===(n=e.screens[e.currentScreen])||void 0===n?void 0:n.progressBarNumber,o=e.totalScreens,s=e.totalScreensInProgressBar,l=a/s*100,c=(r-1)/o*100;return{showProgressBar:null===(i=e.screens[e.currentScreen])||void 0===i?void 0:i.includeInProgressBar,currentStepNumber:r,currentStepProgressBarNumber:a,totalScreens:o,totalScreensInProgressBar:s,progressBarPercentage:l,overallPercentage:c}},hasNonBdmTrial:function(e){return e(st.C.ViewTrialUpgrade)},getOnboardingScreenStates:function(e){var t=[],n=[];return Object.keys(e.screens).forEach((function(i){e.screens[i].isComplete?t.push(i):n.push(i)})),{completedScreens:t,incompleteScreens:n}},shouldRedirectToOnboarding:function(e,t,n,i){var r,a;return(null==e?void 0:e.dateCreated)>=function(e,t){var n="2024-03-26";return e.some((function(e){return e.id.toString()===ot.e.PresentationIds.AU_TERTIARY.toString()||e.id.toString()===ot.e.PresentationIds.UK_TERTIARY.toString()}))?"2024-11-28":Ce.O.isBefore(null==t?void 0:t.dateCreated,n)?"2024-12-11":n}(i,t)||!!ft.hasNonBdmTrial(n)&&("boolean"!=typeof at.SG.get(mt)&&at.SG.set(mt,!!(null===(a=null===(r=null==e?void 0:e.userProfile)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.jobTitle)),!at.SG.get(mt))}},vt=n(8371);!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"}(ct||(ct={}));var gt,pt,yt,bt,ht=n(36357);!function(e){e.Root="root"}(gt||(gt={})),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(pt||(pt={})),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(yt||(yt={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(bt||(bt={}));var St,Ct,Et=n(71551),It=a.T.encloseNamespace("subjects.utils"),At={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===pt.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?ct[e]:e},getMappedPresentationBackgroundColourClass:function(e){switch(At.getMappedPresentationLevel(e)){case ct.Level_1:return"bg-indigo";case ct.Level_3:return"bg-blue";case ct.Level_4:return"bg-navy";default:case ct.Level_2:return"bg-green"}},getMappedPresentationBackgroundColourCode:function(e){switch(At.getMappedPresentationLevel(e)){case ct.Level_1:return"#7A76E8";case ct.Level_3:return"#38A2E8";case ct.Level_4:return"#1B2D71";default:case ct.Level_2:return"#5DC786"}},getPresentationLevelImage:function(e,t){switch(At.getMappedPresentationLevel(e)){case ct.Level_1:if("topic-banner"===t)return ot.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===t)return ot.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===t)return ot.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===t)return ot.e.Images.Level_1.TOPIC_TALL_POSTER;case ct.Level_2:if("topic-banner"===t)return ot.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===t)return ot.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===t)return ot.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===t)return ot.e.Images.Level_2.TOPIC_TALL_POSTER;default:case ct.Level_3:if("topic-banner"===t)return ot.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===t)return ot.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===t)return ot.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===t)return ot.e.Images.Level_3.TOPIC_TALL_POSTER;case ct.Level_4:if("topic-banner"===t)return ot.e.Images.Level_4.TOPIC_BANNER;if("cover"===t)return ot.e.Images.Level_4.TOPIC_COVER}},getExploreAllTopicsTitle:function(e,t){return t<2?It("exploreAllTopicsHeading"):It("exploreAllTopicsDynamicHeading",{presentationName:e})},getExploreAllTopicsBreadcrumb:function(e,t){return t<2?It("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(gt.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 At.isTopLevelTopic(e)?t===Et.ku.Classification?"new-releases":"all-topics":t===Et.ku.Classification?"curated-topic":"video-list"},getCounts:function(e){var t,n,i=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:i,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:i,dashboardVideoCount:0,childDashboardVideoCount:0,dashboardResourceCount:0,childDashboardResourceCount:0,dashboardNewVideosCount:0,childDashboardNewVideoCount:0}},isTertiary:function(e){return(null==e?void 0:e.toString())===ot.e.PresentationIds.AU_TERTIARY.toString()||(null==e?void 0:e.toString())===ot.e.PresentationIds.UK_TERTIARY.toString()},isMtv:function(e){var t;return!!(null===(t=null==e?void 0:e.tags)||void 0===t?void 0:t.data)&&e.tags.data.some((function(e){return e.tagType===yt.Curation&&e.name===be.MOVIES_AND_TV}))},sortByLearningLevel:function(e,t,n){var i=n.find((function(t){var n;return(null==t?void 0:t.id.toString())===(null===(n=null==e?void 0:e.presentationId)||void 0===n?void 0:n.toString())})),r=n.find((function(e){var n;return(null==e?void 0:e.id.toString())===(null===(n=null==t?void 0:t.presentationId)||void 0===n?void 0:n.toString())}));return ct[null==i?void 0:i.learningLevel]-ct[null==r?void 0:r.learningLevel]}},Lt=JSON.parse('{"9":{"JpZ05O1":{"name":"English","videoIds":["12293130","30361411","56866418","58438459","47329278","33204878"]},"nK2le8E":{"name":"Personal Development and Health","videoIds":["8789599","60153074","3713674","15492556","3716135","53092493"]},"yKGO31z":{"name":"Business and Economics","videoIds":["47366972","3715870","18845095","36235981","53428226","51407674"]},"m0LrOj4":{"name":"Geography","videoIds":["67277770","3716182","5803343","21143528","3716292","3922246"]},"v47nvEK":{"name":"History","videoIds":["3926454","3716774","3713871","3716594","3716183","3713847"]},"j03MPwr":{"name":"Legal Studies","videoIds":["3102514","1980904","1969843","3716210","3714860","2787675"]},"bbJR9Zn":{"name":"Languages","videoIds":["5449905","42463035","6820509","6027576","47076421","5455635"]},"8L21E3O":{"name":"Mathematics","videoIds":["3715870","3715019","51005229","3714949","3716177","3715365"]},"2jDy2M7":{"name":"Religion and Philosophy","videoIds":["3716229","3716171","41056701","16574869","3716175","50917953"]},"qdo988Y":{"name":"Biological Sciences","videoIds":["3714819","3716265","4683666","3715984","38041517","3779793"]},"0OPpqqo":{"name":"Chemical Sciences","videoIds":["52947827","52948049","3715160","4427422","57870424","47323862"]},"dlMrOdE":{"name":"Physical Sciences","videoIds":["11746875","3716307","39316775","6746382","6812332","6344597"]},"0OZyLGy":{"name":"Technologies","videoIds":["3714027","6863817","3716153","34149622","22733300","10345707"]},"0OZyLYy":{"name":"The Arts","videoIds":["3713730","3716727","3937998","32102569","3716167","32998073"]},"Jp6k7by":{"name":"Aboriginal and Torres Strait Islander Studies","videoIds":["39653785","56866418","3713730","3716831","35848459","3716863"]},"4GRgpve":{"name":"Careers and Vocational Education","videoIds":["8191834","8194999","8194478","3714944","8686941","8696292"]},"Rb4dbm1":{"name":"Civics and Citizenship","videoIds":["5803343","37938448","13106949","22372922","47303205","1521314"]},"DdKR5WL":{"name":"Earth and Space Sciences","videoIds":["3716182","5803343","3716621","4006484","3716170","21148006"]},"0wOxDvl":{"name":"Physical Education","videoIds":["3714715","3714140","3714278","3714277","3714263","3714175"]},"7m2JLPq":{"name":"Psychology","videoIds":["3714892","3714373","3714890","3714891","6590889","3717555"]},"nENmdK1":{"name":"Sociology","videoIds":["3714506","50807954","3714583","38169050","6590951","57771705"]}},"12":{"v45P37g":{"name":"Expressive Arts","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"GxyLnJn":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"7PWYrDW":{"name":"Literacy and English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"eKpbY50":{"name":"Numeracy and Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"k3MlbL9":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"wLDW2LL":{"name":"Religious and Philosophical Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"nKGonKL":{"name":"Sciences","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]},"eKpbEMy":{"name":"Social Studies","videoIds":["38091407","52436848","8139170","8733988","52601783","51668932"]},"MgqLxwk":{"name":"Technologies","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]},"Yv56NaM":{"name":"Biological Systems","videoIds":["3779793","3713221","3713363","3713562","3713236","3716289"]},"8Lv5Na0":{"name":"Citizenship","videoIds":["3959296","3713237","62336","3716210","22372922","47303205"]},"v4MYJ94":{"name":"Forces, Electricity and Waves","videoIds":["3713221","3713695","3713298","3713562","3713342","3713279"]},"1d5Opwv":{"name":"Materials and Substances","videoIds":["3713221","3713562","3716289","7334569","3713286","3716279"]},"raqjNz4":{"name":"Music","videoIds":["3716191","49585077","50466237","49808227","38134895","30324910"]},"eKp93yo":{"name":"People, Past Events and Societies","videoIds":["3716189","3716183","3716230","4993413","3716187","3717159"]},"2jlKbrd":{"name":"People, Place and Environment","videoIds":["3959296","5803343","3716190","7336963","3713237","7334501"]},"xA2zYyP":{"name":"Planet Earth and Space","videoIds":["3713858","3716170","48022455","3713237","3713221","3713761"]},"3bNnxmn":{"name":"Study and Research Skills","videoIds":["3715013","5952919","5892164","7734896","50180637","8999934"]}},"13":{"GxAzY0z":{"name":"Arts","videoIds":["6412547","53550381","40919555","50977326","53108637","49858623"]},"Jpy1Edb":{"name":"Computer Science and Technology","videoIds":["39382930","40907539","48236013","48233767","48236100","3712674"]},"NqgPKaG":{"name":"English Language Arts","videoIds":["38945464","39388174","52673932","38945448","60062676","48235940"]},"bbJ74ed":{"name":"Health","videoIds":["39430062","40919434","39362080","39383081","58025600","40919494"]},"Dda6pW3":{"name":"Math","videoIds":["49532295","38943192","49532442","39382723","39388252","38944700"]},"j0a4Arj":{"name":"Physical Education","videoIds":["40919406","48235838","50652589","40919430","48236078","50652575"]},"8LnP7p8":{"name":"Social and Emotional Learning","videoIds":["39451488","48235859","39337317","40964136","42314985","39382748"]},"4Gl1DaK":{"name":"World Languages","videoIds":["40919719","40919802","40919815","40919186","40915325","49858537"]},"Jpy1EP2":{"name":"Civics and Government","videoIds":["50807954","50800622","54089250","57355380","57355287","57978641"]},"ZAl67rb":{"name":"Earth and Space Science","videoIds":["7336963","3713237","3713221","3713761","3712190","3779809"]},"ze5PRD9":{"name":"Economics","videoIds":["57978515","52673893","57355319","53687328","57379740","39386335"]},"GxAzYW1":{"name":"Geography","videoIds":["7336963","3713237","7334501","3713551","48022840","50800584"]},"R0L3j6g":{"name":"History","videoIds":["54089199","50917845","51668932","57948887","54093263","54089250"]},"9DPWnaO":{"name":"Life Science","videoIds":["48022455","3713221","7334501","3713236","7335448","3713268"]},"nKzp19Y":{"name":"Physical Science","videoIds":["3713221","3713695","3713298","3713767","3713342","3713279"]},"7P7n8AR":{"name":"Religion","videoIds":["49159932","49159889","49159992","50274451","57377971","49159938"]}},"14":{"2jrkdLY":{"name":"Arts","videoIds":["38916908","6412547","40919390","40919482","38817643","38817665"]},"g42EN1v":{"name":"Computer Science and Technology","videoIds":["40919434","38917550","50878197","40907190","40907208","39382881"]},"5ROzG7l":{"name":"English Language Arts","videoIds":["39387902","40912179","60062676","40916580","40919438","48234159"]},"ze5J1AE":{"name":"Health","videoIds":["39362404","39430062","51152651","40919426","40919486","48234499"]},"v4qnrzg":{"name":"Math","videoIds":["39361909","51005193","51730147","48715611","39382600","49532478"]},"1dRa6vd":{"name":"Physical Education","videoIds":["40918377","51617459","49533964","42463003","51182678","50652593"]},"xyLWk6w":{"name":"Social and Emotional Learning","videoIds":["40964136","53746175","48172750","48171641","50417923","50418083"]},"DdaRGrq":{"name":"World Languages","videoIds":["40915666","40915325","42486037","40915698","40915345","48040254"]},"yrKZA3y":{"name":"Careers and Technical Education","videoIds":["3716341","3715805","51407674","3715808","3714411","60070340"]},"R0LRx1g":{"name":"Chemical Science","videoIds":["3713767","7334569","50877364","48022232","50720784","50876056"]},"7P7y5bR":{"name":"Civics and Government","videoIds":["50800622","54089250","50871477","54096361","53737737","57978641"]},"g42ENM9":{"name":"Earth and Space Science","videoIds":["7336963","3713237","3713761","3712190","3779809","3713821"]},"LqGREZL":{"name":"Economics","videoIds":["57978515","53737737","53737262","51408524","51409809","80309108"]},"obMmqy5":{"name":"Geography","videoIds":["7336963","3713237","7334501","3713551","7338339","48022840"]},"ZAlrZ11":{"name":"Life Science","videoIds":["48022455","7334501","3713236","7335448","3713551","36554448"]},"obMmqWk":{"name":"Physical Science","videoIds":["3713695","3713298","3713342","3713279","48022674","7345732"]},"5ROzG0o":{"name":"Religion and Ethics","videoIds":["49159357","57377971","57355136","57375306","50917957","57379661"]},"nEN5zAj":{"name":"Science and Engineering Practices","videoIds":["3713221","3713268","51724079","50876282","3713711","51724455"]},"xyLWk4p":{"name":"U.S. History","videoIds":["3712994","51415052","51668932","54093263","50917951","58431657"]},"p3yr17b":{"name":"World History","videoIds":["54089199","51181769","3712994","51415052","50998282","51668932"]}},"15":{"yKZ43dw":{"name":"Arts","videoIds":["38817665","39999270","38808751","40911271","40911232","51581800"]},"p3y82WO":{"name":"Career and Technical Education","videoIds":["52328915","52328920","47488746","47488362","52436904","40917538"]},"KAERnwR":{"name":"Computer Science and Technology","videoIds":["40915847","40916210","51262040","39912587","51250029","58318543"]},"LqGrPwA":{"name":"English Language Arts","videoIds":["40914651","40918236","77544344","51581321","39319556","40912204"]},"8LnamD8":{"name":"Health","videoIds":["51154979","48235793","46984526","39894691","59279809","50996991"]},"Jpyo7W2":{"name":"Math","videoIds":["47595827","51730147","49532658","48715416","48234988","48715584"]},"5RO2ml5":{"name":"Physical Education","videoIds":["49533951","40918509","40918377","51655191","50652593","40908770"]},"ze5d6l9":{"name":"Social and Emotional Learning","videoIds":["48171596","48171968","48171765","50418083","50418241","48235802"]},"KAERnDz":{"name":"World Languages","videoIds":["42486037","48234348","40919186","40919098","40918945","40915898"]},"7P7p05W":{"name":"Business and Economics","videoIds":["51407674","57978515","71418009","71418016","71417839","77649088"]},"laYDvoG":{"name":"Chemistry","videoIds":["7334569","9824554","50720784","50837270","50876056","67315026"]},"LqGrPEj":{"name":"Civics and Government","videoIds":["56866418","3716863","50800622","54089250","51182022","50871477"]},"wLj3A04":{"name":"Earth and Space Science","videoIds":["3713212","3713761","7334501","7333709","3713268","3713551"]},"4GldpJG":{"name":"Geography","videoIds":["51264452","50800676","51292528","51246833","53737737","45578125"]},"dleKgE2":{"name":"Life Sciences","videoIds":["3713937","7334501","3713236","3713268","3716228","50834543"]},"2jre2Oe":{"name":"Physics","videoIds":["6762513","3713695","7065682","6762935","3713279","48022674"]},"W12y493":{"name":"Psychology","videoIds":["38169050","53850009","38169020","53850810","48692961","38168920"]},"yKZ432M":{"name":"Religion and Philosophy","videoIds":["49159357","57377971","57375306","50917957","57379661","57379674"]},"69xJOgr":{"name":"Science and Engineering Practices","videoIds":["3713221","3713268","50720820","50963054","50962946","50876282"]},"jl7Elwx":{"name":"Sociology","videoIds":["38169050","38169020","38168920","38169071","51724455","53618425"]},"Ax2KeMo":{"name":"U.S. History","videoIds":["3716863","51415052","51668932","54093263","50917951","58431657"]},"laYDvwm":{"name":"World History","videoIds":["54089199","3713849","51415052","50998282","50917845","51668932"]}},"16":{"KAEY5GK":{"name":"Art and Design","videoIds":["8924670","49585075","38370221","47484152","54095899","32102465"]},"6wa2YwO":{"name":"Citizenship","videoIds":["57355388","52601783","48522943","22372630","53108585","41992024"]},"R0LK746":{"name":"Computing","videoIds":["26617482","38132678","26619390","36895952","41565288","36895909"]},"9DPkNz6":{"name":"Design and Technology","videoIds":["47529961","4108924","3711985","51668853","49834298","37137391"]},"2jDnan9":{"name":"Drama","videoIds":["51240522","230268","37018426","41939112","51582282","46916103"]},"E06dg2Z":{"name":"English","videoIds":["41906926","49581979","61250","52429859","32970218","41938064"]},"8LnO2Rd":{"name":"Geography","videoIds":["67225999","3713237","4402476","50800706","51666994","48105073"]},"bbJ9Ayb":{"name":"History","videoIds":["52436848","8139170","8733988","48666851","51668932","51731292"]},"Dda4KYL":{"name":"Languages","videoIds":["7486323","36991396","5449905","40919815","48278510","50466413"]},"Ax2Jyoa":{"name":"Mathematics","videoIds":["3711988","42637723","6682722","58026826","13078019","4991116"]},"bbJ9Ap0":{"name":"Music","videoIds":["50466237","6412547","49535315","49808227","30324910","64333"]},"NqgMRWy":{"name":"Physical Education","videoIds":["38132665","39294835","48118056","57372274","53108623","47431467"]},"Yvm5eyp":{"name":"PSHE","videoIds":["7593354","4169937","9900606","37428010","50180637","37857897"]},"8LnO2Je":{"name":"Religious Education","videoIds":["8739794","8733823","8734696","39428437","49159932","49159889"]},"3kmoJ72":{"name":"Science","videoIds":["3711985","36554684","4108673","3712066","7310225","48022765"]}},"18":{"yKP9gOD":{"name":"Civics and Citizenship","videoIds":["7735265","7735497","50679052","51452628","13106949","13107690"]},"7P6JOYb":{"name":"Economics and Business Studies","videoIds":["53428624","37455700","57355319","53428628","43961148","57966130"]},"j0jRJ1Z":{"name":"English","videoIds":["8416974","8417845","3712691","32127566","6673418","52675027"]},"nKDmYEl":{"name":"Geography","videoIds":["58600977","6980722","34591272","4402447","34597058","51437590"]},"WAe601Z":{"name":"History","videoIds":["3713735","6430651","3716829","43772092","51391809","56980377"]},"v4893Yy":{"name":"Languages","videoIds":["5449905","32345978","39623583","6820509","39255442","39254760"]},"nKDmYkl":{"name":"Mathematics","videoIds":["3713828","10749459","32102562","6689791","3713607","48278618"]},"0OeG09l":{"name":"Religion","videoIds":["8740724","8733239","8739706","8734693","8733792","33320133"]},"KAmPJqP":{"name":"Technologies","videoIds":["26619390","4131606","38132678","50720784","57230386","51181861"]},"MgOve7k":{"name":"The Arts","videoIds":["50466237","6412334","8100020","3716220","49808227","32787298"]},"NqkJ495":{"name":"Biological Sciences","videoIds":["9286334","32204169","48022455","3713221","3713363","7334501"]},"NqkJ4xy":{"name":"Chemical Sciences","videoIds":["9286334","32204169","3712073","3713221","3713562","3713767"]},"KAmPJOL":{"name":"Earth and Space Sciences","videoIds":["9286334","32204169","15409652","3716182","34591272","34590945"]},"p0Nm2AY":{"name":"Personal Development and Health","videoIds":["23645932","80449382","3713674","58746068","36019845","7593792"]},"D12Mz8e":{"name":"Physical Education","videoIds":["8789599","3713674","34453999","2680897","58746068","39415022"]},"Oz83dm5":{"name":"Physical Sciences","videoIds":["9286334","32204169","36554689","3713221","3713695","3713298"]}},"24":{"qdarDYp":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"eKnGDa0":{"name":"English","videoIds":["36191688","33204878","36395402","5758602","35997069","23851791"]},"Yv5dzw5":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"ra6m0d1":{"name":"Geography","videoIds":["74135484","9375166","5711759","16206702","3922246","48476601"]},"E0dZqyR":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"9DkAaKy":{"name":"Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"8LOYpl0":{"name":"Numeracy and Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","48091307"]},"m0d5D7r":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"g4WgD5l":{"name":"PSE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"eKnGDdP":{"name":"Religious, Moral and Philosophical Education","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"2jDd3kx":{"name":"Technologies","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]},"4GRN4Eq":{"name":"Biology","videoIds":["3714819","3716182","5803343","3716265","4683666","3779793"]},"6wma2KO":{"name":"Career Education and Skills for Work","videoIds":["8191834","8194999","8686941","8696292","8687327","9312222"]},"LqAlv96":{"name":"Chemistry","videoIds":["3713221","3717296","3716700","3717051","3716289","7334569"]},"8LOYpZR":{"name":"Computing and ICT","videoIds":["3716153","26619390","58307508","26618525","48490433","51731678"]},"3b9r3ka":{"name":"Law","videoIds":["3714675","22372859","5270400","36503787","22220755","57828397"]},"Gx5kpRO":{"name":"Media Studies","videoIds":["3716135","3716275","47244475","3716274","47244664","47244504"]},"6w5zqYO":{"name":"Modern Studies","videoIds":["3716292","5803343","3716190","3713994","3713237","47366972"]},"g78nMPW":{"name":"Physics","videoIds":["6746382","9831360","3716170","6812332","34941552","6762513"]},"3ko2eAw":{"name":"Psychology","videoIds":["6590889","3714392","3714377","39438648","3717555","6590951"]}},"47":{"LqKNnNw":{"name":"Business and Economics","videoIds":["51623323","47366972","37709668","37709732","3716149","8973838"]},"7PgZvEA":{"name":"Careers","videoIds":["9315247","9312222","47104083","3715120","3714944","47159767"]},"la7zdgw":{"name":"English","videoIds":["53466594","77444242","17989642","30340068","24419904","33204878"]},"wLKkMwD":{"name":"Expressive Arts","videoIds":["3716191","3716247","48134757","32998073","3716167","35601583"]},"wLKkMEp":{"name":"Geography","videoIds":["74135484","22687577","5711759","16206702","3922246","19105359"]},"OzZ6vg4":{"name":"History","videoIds":["3926454","9978142","4684604","8372779","3716183","4648523"]},"YvJby7P":{"name":"Mathematics","videoIds":["3716176","3715070","51730710","3715047","4553884","34497285"]},"v41jLmK":{"name":"Modern Foreign Languages","videoIds":["5449905","42463035","6820509","42209168","47076421","5455635"]},"aPG3mRe":{"name":"Physical Education","videoIds":["7609298","3714120","3714279","49160029","3714263","51667687"]},"Gxp3jze":{"name":"PSHE","videoIds":["59279784","3716135","53259069","53259054","983611","16132648"]},"qd2K0qY":{"name":"Religion","videoIds":["3716229","3716171","39379918","33305783","3716175","3716237"]},"nKvyqe1":{"name":"Technology","videoIds":["50917033","58307508","3716153","74135484","48083353","35004434"]},"la7z0eL":{"name":"Biology","videoIds":["3714819","3716182","5803343","4683666","3779793","3716169"]},"wLKkGZY":{"name":"Chemistry","videoIds":["5795485","3717296","3716700","6737003","6737780","9030741"]},"r4YknOP":{"name":"Citizenship","videoIds":["5803343","3714860","3716190","3713994","3713237","3716293"]},"4GzZbpL":{"name":"Computing and ICT","videoIds":["58308441","58307508","48490433","48490093","48611300","59323845"]},"yKjEMbw":{"name":"Law","videoIds":["3714675","22372859","50985640","56997460","54577039","45259011"]},"6wGZWer":{"name":"Media Studies","videoIds":["33204878","47328281","3716275","47244475","3716274","47283102"]},"YvJbwpe":{"name":"Physics","videoIds":["3713896","6746382","3716307","9831360","3715908","37711980"]},"2jak8l9":{"name":"Psychology","videoIds":["38169050","3717591","57771705","6599207","3717590","57771703"]},"8ymN4z8":{"name":"Sociology","videoIds":["6590951","15923455","6599693","3714530","36503787","36508642"]}},"81":{"K6nGJr9":{"name":"Arts and Design","videoIds":["32998073","10916108","3714100","32102569","67277770","3714465"]},"2m2bo9d":{"name":"Business and Marketing","videoIds":["18654895","8973838","12955878","3715697","47583323","22563804"]},"AOe31wj":{"name":"Careers and Work","videoIds":["8194999","8973940","3715805","38132141","45692655","52874679"]},"xA28NqR":{"name":"Community and Youth Services","videoIds":["58155906","3714331","3714510","4144817","43307103","80005094"]},"vY2odPv":{"name":"Education and Training","videoIds":["3715013","49093031","3714891","24103433","3714590","51181808"]},"Jj7AgRb":{"name":"Events, Hospitality, Retail and Tourism","videoIds":["3713992","34061952","52183441","35409925","3716333","77936874"]},"nEeNnbE":{"name":"Foundation Skills and Personal Development","videoIds":["33174549","42500607","9264932","5952919","22713942","48155206"]},"m6eW7Nr":{"name":"Health and Healthcare","videoIds":["3714892","9375166","3714611","3714331","4144817","3714592"]},"kZWnqG6":{"name":"Information and Communications Technology","videoIds":["3716153","7897881","10584560","7869408","58308441","58307508"]},"xA28NgY":{"name":"Mathematics","videoIds":["26063133","3715838","3715050","23853803","23848364","25658497"]},"OqMG72A":{"name":"Science","videoIds":["38041517","38043803","22232723","6812332","3714819","3714462"]},"8ymN5wd":{"name":"Services, Trades and Engineering","videoIds":["52874679","39319138","26063133","20290415","3715837","3715359"]},"Jj7Agyy":{"name":"Society and Culture","videoIds":["18569471","3714314","3714937","49306628","3714486","45334884"]}},"82":{"vY2o59g":{"name":"Arts and Design","videoIds":["32102504","12598560","32998073","83017577","23740459","3716167"]},"Jj7AK52":{"name":"Business and Finance","videoIds":["50247134","8973838","18654895","12598127","71418012","51623323"]},"l5vPyNm":{"name":"Careers and Work","videoIds":["9312222","8191834","45664204","8973940","47579402","52251343"]},"r42NqxG":{"name":"Community and Youth Services","videoIds":["53259063","16132648","47207659","3714506","63984885","57771705"]},"l5vPybd":{"name":"Computing, Technology and Digital","videoIds":["33204878","3716153","35046405","10345707","58308441","48611300"]},"odelM2D":{"name":"Construction, Trades and Services","videoIds":["26063133","48689684","10565525","4146135","3715345","23988515"]},"dqgkNyd":{"name":"Education and Training","videoIds":["3715013","9080279","3714506","3714892","57771705","42500607"]},"7m0271k":{"name":"Engineering, Manufacturing and Electrotechnology","videoIds":["58308441","39319138","26066739","20290415","20306169","3716293"]},"vY2oqWG":{"name":"English Literature and Language","videoIds":["33204878","31993108","9227475","49066628","60059964","5790748"]},"Eol2zjR":{"name":"Functional Skills and Personal Development","videoIds":["9312222","9316945","42515350","5668137","9560804","5952919"]},"4rp97l9":{"name":"Health and Care","videoIds":["10896257","58127362","59279784","49948105","45818245","47198490"]},"yr33MLG":{"name":"Hospitality and Food","videoIds":["22733300","3714027","52183441","23853803","35409925","35410496"]},"G1Ea5n5":{"name":"Languages","videoIds":["9227475","45258243","82093433","82093931","60060323","82092337"]},"3b9N8dE":{"name":"Mathematics","videoIds":["26158674","26444801","48155206","52415295","50288809","51005229"]},"4rppnP7":{"name":"Retail and Sales","videoIds":["7181915","22552850","3715808","22710596","7183122","3716322"]},"RbG4Dm1":{"name":"Science","videoIds":["4683666","45819014","26686718","57887823","13023269","6812332"]},"W19xRxz":{"name":"Social Sciences","videoIds":["47575902","3715869","36220305","5270400","50269716","3714426"]},"8ymNvoR":{"name":"Sport and Leisure","videoIds":["3714261","7609298","57736364","32051772","3714278","3714126"]},"l5vPyM3":{"name":"Travel and Tourism","videoIds":["77720073","3716190","3713902","3716136","78706124","39406754"]}}}'),Pt={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!Lt[e.preferredPresentation.id])}},Tt=a.T.encloseNamespace("onboarding.constants"),kt="show-subjects-summary",Ot="show-job-title-to-trial-user",wt={"welcome-video":{id:"welcome-video",getPageTitle:function(){return Tt("welcomeVideoPageTitle")},predicate:function(e){return!!ft.shouldRedirectToOnboarding(e.masterUser,e.customer,e.hasPermissions,e.presentations)&&e.instanceRegion===vt.b.US},setting:ht.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:L.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return Tt("selectRoleHeading")},getWidgetDescription:function(){return Tt("selectRoleMessage")}},"select-role":{id:"select-role",getPageTitle:function(){return Tt("selectRolePageTitle")},predicate:function(e){return!ft.hasNonBdmTrial(e.hasPermissions)||(e.jobTitle?"boolean"==typeof at.SG.get(Ot)?at.SG.get(Ot):(at.SG.set(Ot,!1),!1):("boolean"!=typeof at.SG.get(Ot)&&at.SG.set(Ot,!0),!0))},setting:ht.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:L.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return Tt("selectRoleHeading")},getWidgetDescription:function(){return Tt("selectRoleMessage")}},"usage-intention":{id:"usage-intention",getPageTitle:function(){return Tt("usageIntentionPageTitle")},predicate:function(){return!0},setting:ht.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:L.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return Tt("usageIntentionHeading")},getWidgetDescription:function(){return Tt("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",getPageTitle:function(){return Tt("subjectsSummaryPageTitle")},predicate:function(e){return"boolean"==typeof at.SG.cacheGet(kt)||at.SG.cacheSet(kt,!ft.shouldRedirectToOnboarding(e.masterUser,e.customer,e.hasPermissions,e.presentations)&&!!(null===(t=e.preferredSubjects)||void 0===t?void 0:t.length),604800),at.SG.cacheGet(kt);var t},setting:ht.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:L.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return Tt("subjectsHeading")},getWidgetDescription:function(){return Tt("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",getPageTitle:function(){return Tt("schoolLevelPageTitle")},predicate:function(e){var t,n;return!(wt["subjects-summary"].predicate(e)||(null===(t=e.presentations)||void 0===t?void 0:t.length)<2||(null===(n=e.presentations)||void 0===n?void 0:n.some((function(e){return At.getMappedPresentationLevel(e.learningLevel)===ct.Level_4}))))},setting:ht.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:L.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!wt["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return Tt(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return Tt(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",getPageTitle:function(){return Tt("selectCurriculumPageTitle")},predicate:function(e){var t;return!(wt["subjects-summary"].predicate(e)||(null===(t=e.curriculums)||void 0===t?void 0:t.length)<2)},setting:ht.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:L.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!wt["subjects-summary"].predicate(e)},getWidgetHeading:function(){return Tt("selectCurriculumHeading")},getWidgetDescription:function(){return Tt("selectCurriculumMessage")}},subjects:{id:"subjects",getPageTitle:function(){return Tt("subjectsPageTitle")},predicate:function(e){return!wt["subjects-summary"].predicate(e)},setting:ht.E.HasCompletedOnboardingStepSubjects,analyticsLocation:L.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!wt["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return Tt(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return Tt("subjectsMessage")}},"select-videos":{id:"select-videos",getPageTitle:function(){return Tt("selectVideosPageTitle")},predicate:Pt.CreatePlaylist,setting:ht.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:L.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return Tt("selectVideosHeading")},getWidgetDescription:function(e){return Tt(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",getPageTitle:function(){return Tt("createPlaylistPageTitle")},predicate:Pt.CreatePlaylist,setting:ht.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:L.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return Tt("createPlaylistHeading")},getWidgetDescription:function(){return Tt("createPlaylistMessage")}}};!function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListSmallV2="thumbnail_sliding_list_small_v2",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.ThumbnailFixedListMediaSmall="thumbnail_fixed_list_media_small",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.ThumbnailFixedListFolderSmall="thumbnail_fixed_list_folder_small",e.ThumbnailVerticalList="thumbnail_vertical_list",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.StatsCoverFixedPillListLarge="stats_cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.HeroBanner="hero_banner",e.HeroThumbnailSmall="hero_thumbnail_small",e.HeroBlockColourSmall="hero_block_colour_small",e.CoverFixedTileList="cover_fixed_tile_list",e.PosterSlidingListLarge="poster_sliding_list_large",e.PosterSlidingListMedium="poster_sliding_list_medium",e.PosterSlidingListSmall="poster_sliding_list_small",e.HeroBannerSmall="hero_banner_small",e.Heading="heading",e.AuthorReviewer="author_reviewer",e.Question="question",e.QuestionAccordion="question_accordion",e.OnboardingSteps="onboarding_steps",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small",e.EventIconSlidingList="event_icon_sliding_list"}(St||(St={})),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.SeriesMedia="series_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CompanyLatestReleasedVideo="company_latest_released_video",e.CompanyVideos="company_videos",e.ClassificationLatestReleasedVideo="classification_latest_released_video",e.ClassificationLatestReleasedVideosV2="classification_latest_released_videos_v2",e.CompanyClassificationVideos="company_classification_videos",e.ClassificationDashboardMedia="classification_dashboard_media",e.ClassificationDashboardExternalMedia="classification_dashboard_external_media",e.SeasonalClassificationMedia="seasonal_classification_media",e.TrendingClassificationsMedia="trending_classifications_media",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.SpecialEventClassifications="special_event_classifications",e.LatestReleasedClassifications="latest_released_classifications",e.TrendingClassifications="trending_classifications",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.DynamicBlurb="dynamic_blurb",e.AuthorReviewer="author_reviewer",e.Faq="faq",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.UpcomingLivestreams="upcoming_livestreams",e.CuratedMultimedia="curated_multimedia",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos",e.SearchRelevantTopics="search_relevant_topics",e.SearchCompanies="search_companies",e.SearchTopResults="search_top_results",e.SearchSeries="search_series",e.SearchPlaylists="search_playlists",e.SearchMyVideosFolder="search_my_videos_folders",e.SearchMySchoolLibraryFolder="search_my_school_library_folders",e.SearchMyVideos="search_my_videos",e.SearchMySchoolLibraryVideos="search_my_school_library_videos",e.SearchExchangeArchive="search_exchange_archive",e.SearchRelatedResults="search_related_results"}(Ct||(Ct={}));var Rt,_t={onSelectCuratedObject:function(e,t){var n=Object.assign(Object.assign({},t.values.data),{objectIds:P.m.addOrRemoveImmutable(t.values.data.objectIds||[],e.id)});t.setFieldValue("data",n),t.setTouched(Object.assign(Object.assign({},t.touched),{data:{objectIds:!0}}))},onRemoveCuratedObject:function(e,t){var n=Object.assign(Object.assign({},t.values.data),{objectIds:t.values.data.objectIds.filter((function(t){return t!==e}))});t.setFieldValue("data",n)},getDashboardTarget:function(e){return e.targetType===Et.ku.Discover?"discover:presentation:".concat(e.presentationId):e.targetType===Et.ku.Classification?"classification:".concat(e.classificationId):e.targetType===Et.ku.ClassificationDirectory?"classification:".concat(e.classificationId,":directory"):e.targetType===Et.ku.ClassificationVideos?"classification:".concat(e.classificationId,":videos"):e.targetType===Et.ku.MoviesAndTv?"moviesAndTv:presentation:".concat(e.presentationId):e.targetType===Et.ku.Company?"company:".concat(e.companyId,":presentation:").concat(e.presentationId):null},getUnknownDashboardTarget:function(e){var t=e.presentationId,n=e.companyId,i=e.targetType,r=e.classificationId;return i===Et.ku.Discover?_t.getDashboardTarget({targetType:Et.ku.Discover,presentationId:t}):i===Et.ku.MoviesAndTv?_t.getDashboardTarget({targetType:Et.ku.MoviesAndTv,presentationId:t}):i===Et.ku.Company?_t.getDashboardTarget({targetType:Et.ku.Company,presentationId:t,companyId:n}):i===Et.ku.Classification?_t.getDashboardTarget({targetType:Et.ku.Classification,classificationId:r}):i===Et.ku.ClassificationDirectory?_t.getDashboardTarget({targetType:Et.ku.ClassificationDirectory,classificationId:r}):i===Et.ku.ClassificationVideos?_t.getDashboardTarget({targetType:Et.ku.ClassificationVideos,classificationId:r}):void 0},getDashboardTargetInfo:function(e){var t,n=_t.getDashboardTargetType(e),i=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.split(":");return n===Et.ku.Discover?{targetType:Et.ku.Discover,presentationId:i[2]}:n===Et.ku.Classification?{targetType:Et.ku.Classification,classificationId:i[1]}:n===Et.ku.ClassificationDirectory?{targetType:Et.ku.ClassificationDirectory,classificationId:i[1]}:n===Et.ku.ClassificationVideos?{targetType:Et.ku.ClassificationVideos,classificationId:i[1]}:n===Et.ku.MoviesAndTv?{targetType:Et.ku.MoviesAndTv,presentationId:i[2]}:n===Et.ku.Company?{targetType:Et.ku.Company,companyId:i[1],presentationId:i[3]}:null},getDashboardTargetType:function(e){return(null==e?void 0:e.target)?e.target.startsWith("discover")?Et.ku.Discover:e.target.startsWith("classification")?e.target.endsWith("directory")?Et.ku.ClassificationDirectory:e.target.endsWith("videos")?Et.ku.ClassificationVideos:Et.ku.Classification:e.target.startsWith("moviesAndTv")?Et.ku.MoviesAndTv:e.target.startsWith("company")?Et.ku.Company:null:null},isType:function(e,t){return _t.getDashboardTargetType(e)===t},isCuratedDashboard:function(e){var t=e,n=_t.getDashboardTargetType(t);return n===Et.ku.Discover||n===Et.ku.Classification||n===Et.ku.ClassificationDirectory||n===Et.ku.ClassificationVideos||n===Et.ku.MoviesAndTv||n===Et.ku.Company},getLatestReleasedTimeRange:function(){var e=new Date;return{from:Ce.O.format(Ce.O.endOf(Ce.O.subtract(e,2,"month"),"day"),"YYYY-MM-DD"),to:Ce.O.format(Ce.O.endOf(e,"day"),"YYYY-MM-DD")}},getWidgetParams:function(e,t,n,i){var r={};return i&&(r.audienceId=i),Object.assign(Object.assign({},r),Mt[e].getCustomParams(t,n))},isSystemGeneratedDashboard:function(e){var t=new Set([Ct.ClassificationFeaturedVideo,Ct.ClassificationPinnedVideos,Ct.ClassificationPlaylists,Ct.ClassificationSeries]);return null==e?void 0:e.some((function(e){return t.has(e.widgetId)}))},isClassificationDashboard:function(e){return[Et.ku.Classification,Et.ku.ClassificationDirectory,Et.ku.ClassificationVideos].includes(null==e?void 0:e.targetType)}};function jt(e){return jt="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},jt(e)}function Nt(e,t,n){return(t=function(e){var t=function(e){if("object"!=jt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Dt,Mt=(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Rt={},Ct.CuratedMedia,{getCustomParams:function(){return{}}}),Ct.PlaylistMedia,{getCustomParams:function(){return{}}}),Ct.SeriesMedia,{getCustomParams:function(e){switch(e){case St.ThumbnailFixedListMediaLarge:return{limit:2};case St.ThumbnailHeroMedia:case St.ThumbnailFeaturedMedia:return{limit:1};default:return{limit:12}}},getCollectionAppLink:function(e,t){var n;return null===(n=null==e?void 0:e.series)||void 0===n?void 0:n.call(e,P.m.first(t))}}),Ct.ClassificationMedia,{getCustomParams:function(){return{}}}),Ct.LatestReleasedVideos,{getCustomParams:function(){return _t.getLatestReleasedTimeRange()}}),Ct.ContinueWatching,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){var t;return null===(t=null==e?void 0:e.watchHistory)||void 0===t?void 0:t.call(e)}}),Ct.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),Ct.CompanyVideos,{getCustomParams:function(){return{}}}),Ct.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),Ct.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Rt,Ct.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),Ct.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),Ct.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),Ct.CuratedClassifications,{getCustomParams:function(){return{}}}),Ct.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),Ct.Classifications,{getCustomParams:function(e,t){if(t===Et.ku.Discover){if(e===St.EditableCoverFixedPillListSmall)return{canBePreferred:!0,isFollowing:!0};if([St.PosterSlidingListSmall,St.CoverFixedPillListXSmall].includes(e))return{canBePreferred:!0}}return{}}}),Ct.ClassificationLatestReleasedVideos,{getCustomParams:function(){return _t.getLatestReleasedTimeRange()}}),Ct.SpecialEventClassifications,{getCustomParams:function(){return{from:Ce.O.format(new Date,"YYYY-MM-DD")}}}),Ct.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),Ct.CuratedSeries,{getCustomParams:function(){return{}}}),Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Rt,Ct.CuratedPlaylists,{getCustomParams:function(){return{}}}),Ct.Blurb,{getCustomParams:function(){return{}}}),Ct.DynamicBlurb,{getCustomParams:function(e){return e===St.OnboardingSteps?{customerSetting:[ht.E.HasNewOnboarding],userSettings:[].concat((t=Object.values(wt).map((function(e){return e.setting})),function(e){if(Array.isArray(e))return xt(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 xt(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)?xt(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.")}()),[ht.E.HasCompletedOnboardingV2,ht.E.HasExitedOnboarding])}:{};var t}}),Ct.AuthorReviewer,{getCustomParams:function(){return{}}}),Ct.Faq,{getCustomParams:function(){return{}}}),Ct.CuratedCompanies,{getCustomParams:function(){return{}}}),Ct.Ratings,{getCustomParams:function(){return{}}}),Ct.Presentations,{getCustomParams:function(){return{}}}),Ct.UpcomingLivestreams,{getCustomParams:function(){return{from:Ce.O.format(new Date,"YYYY-MM-DD")}}}),Ct.CuratedMultimedia,{getCustomParams:function(){return{}}}),Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Nt(Rt,Ct.ClassificationPlaylists,{getCustomParams:function(){return{}}}),Ct.ClassificationSeries,{getCustomParams:function(){return{}}}),Ct.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),Ct.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),Ct.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),Ct.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}),Ct.SearchRelevantTopics,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchRelevantTopics],type:[me.Classification]})}}),Ct.SearchCompanies,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchCompanies],type:[me.Company]})}}),Ct.SearchSeries,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchSeries],type:[me.Series]})}}),Ct.SearchPlaylists,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchPlaylists],type:[me.Playlist]})}}),Nt(Nt(Nt(Nt(Nt(Nt(Nt(Rt,Ct.SearchMyVideosFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchMyVideosFolder],source:[de.MyVideos]})}}),Ct.SearchMySchoolLibraryFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchMySchoolLibraryFolder],source:[de.School]})}}),Ct.SearchMyVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchMyVideos],source:[de.MyVideos]})}}),Ct.SearchMySchoolLibraryVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchMySchoolLibraryVideos],source:[de.School]})}}),Ct.SearchExchangeArchive,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[Ct.SearchExchangeArchive],source:[de.ExchangeArchive]})}}),Ct.SearchRelatedResults,{getCustomParams:function(){return{}}}),Ct.SearchTopResults,{getCustomParams:function(){return{}}}));!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(Dt||(Dt={}));var Ft,Bt=n(38e3);function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(Ft||(Ft={}));var qt={getSliderAnalyticsOptions:function(){return{actionType:L.Vw.Click,location:L.LZ.SlidingList,entity:L.py.Widget,descriptor:L._S.Slide}},getSliderItemAnalyticsOptions:function(){return{location:L.LZ.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:L.Vw.Click,location:L.LZ.SlidingList,entity:L.py.Widget,descriptor:L._S.Title}},useGetContent:function(e,t,n,i){return r().useMemo((function(){var r;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var a,o=null!==(r=null==i?void 0:i.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==r?r:{},s=function(e){if(Array.isArray(e))return Vt(e)}(a=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}(a)||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.")}(),l=s.sort((function(e,t){var n,i,r,a;if(!("id"in e)||!("id"in t))return 0;var l=null!==(i=null===(n=o[e.id])||void 0===n?void 0:n.index)&&void 0!==i?i:s.findIndex((function(t){return"id"in t&&t.id===e.id})),c=null!==(a=null===(r=o[t.id])||void 0===r?void 0:r.index)&&void 0!==a?a:s.findIndex((function(e){return"id"in e&&e.id===t.id}));return l<c?-1:l>c?1:0}));return{content:qt.isBelowContentMinimum(l,t)&&!n?[]:l.filter((function(e){var t;return!(null===(t=o["id"in e&&e.id])||void 0===t?void 0:t.hidden)})),unfilteredContent:l}}),[e,i])},isBelowContentMinimum:function(e,t){var n,i=(null===(n=Mt[t])||void 0===n?void 0:n.minContent)||0;return(null==e?void 0:e.length)<i},getCustomAppLink:function(e){var t,n,i,r,a,o;return"metadata"in e&&"appLinks"in e&&"appLink"in e.metadata?(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===Et.OL.LatestReleases&&"latestReleases"in e.appLinks?null===(i=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===i?void 0:i.call(n):(null===(r=e.metadata)||void 0===r?void 0:r.appLink)===Et.OL.ExploreAllTopics&&"allTopics"in e.appLinks&&"presentation"in e?null===(o=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===o?void 0:o.call(a,e.presentation.id):null:null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case Ft.Archived:t=Dt.Archived;break;case Ft.Published:t=Dt.Published;break;case Ft.Draft:t=Dt.Draft}return t},formatResponseData:function(e,t){var n=e.content;if(!n)return e;if("author"in n)return e.content=[n],e;switch("data"in n?e.content=n.data:Array.isArray(n)||(e.content=[n]),e.widgetId){case Ct.ClassificationSeries:e.content=e.content.filter((function(e){var t;return"tallPoster"in e&&!!(null===(t=e.tallPoster)||void 0===t?void 0:t.id)}));break;case Ct.ClassificationPlaylists:e.content=e.content.filter((function(e){var t;return"cover"in e&&!!(null===(t=e.cover)||void 0===t?void 0:t.id)}));break;case Ct.ContinueWatching:e.content=e.content.map((function(e){return"object"in e&&e.object}));default:break;case Ct.Presentations:e.content=e.content.filter((function(e){var n;return"id"in e&&e.id.toString()!==(null===(n=null==t?void 0:t.id)||void 0===n?void 0:n.toString())}))}return e},isWidgetInTableOfContents:function(e){return!!(null==e?void 0:e.showInTableOfContents)},hasNoContent:function(e){return e===Ct.Blurb},canDisplayOnScreenSize:function(e,t,n){return t!==Ct.Blurb||n!==St.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case Ct.CompanyLatestReleasedVideo:case Ct.CompanyVideos:case Ct.UpcomingLivestreams:return!0;default:return!1}},getVideoContent:function(e){var t=P.m.first(e);return Bt.G.isType(t,ke.E.Series)?t.videos.data:e}},Gt={seeMore:"yv0FS"},Ht=a.T.encloseNamespace("shared.widgetHeader");function Ut(e){return r().createElement("div",{className:"ms-3 ".concat(Gt.seeMore)},r().createElement(rt.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:Object.assign(Object.assign({location:L.LZ.SlidingList},e.analyticsOptions),{descriptor:L._S.SeeMore}),className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},r().createElement("p",{className:"hover-text-underline text-dark curated-widget-heading"},Ht("seeAll"))))}function Wt(e){var t,n,i=!!e.description;if(!e.name&&!e.description)return r().createElement(r().Fragment,null);var a=qt.isBelowContentMinimum(e.content,e.widgetTypeId),o=null!==(n=null===(t=Mt[e.widgetTypeId])||void 0===t?void 0:t.minContent)&&void 0!==n?n:0;return r().createElement("div",{className:"curated-widget-header"},r().createElement("div",{className:"d-flex justify-content-between"},!!e.name&&r().createElement("div",{className:"d-flex align-items-center"},r().createElement(rt.F,{appLink:e.appLink,analyticsData:e.analyticsData,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link text-reset":""),onClick:e.onClick},r().createElement("h2",{className:"h4 curated-widget-heading"},e.isPreviewing&&a&&r().createElement(S.x,{svgName:C.vn.WarningOutline,title:"Widget is below the minimum content threshold of ".concat(o," and won't be displayed."),tooltipSpanHack:!0,tooltipSpanHackClassName:"d-inline text-danger me-1"}),e.name)),!!r().isValidElement(e.badgeComponent)&&e.badgeComponent),!!e.appLink&&!i&&!!e.showSeeMoreLink&&r().createElement(Ut,Object.assign({},e))),i&&r().createElement("div",{className:"d-flex justify-content-between align-items-end"},r().createElement("p",{className:"description curated-widget-description"},r().createElement("span",null,e.description)),!!e.appLink&&!!e.showSeeMoreLink&&r().createElement(Ut,Object.assign({},e))))}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 Kt(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zt(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)?zt(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 zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Zt,Jt=400;function Xt(e){var t=e.type,n=e.state,i=e.containerRef,a=e.mediaQuery,o=Kt(r().useState(!1),2),s=o[0],l=o[1],c=Kt(r().useState({}),2),u=c[0],d=c[1],m=Kt(r().useState(null),2),f=m[0],v=m[1],g=r().useMemo((function(){return it.V.isTouchScreen()}),[]);return r().useEffect((function(){"dynamic"===t&&i.current&&n.containerLeftPosition&&!g&&setTimeout((function(){return function(){var e,t=n;if(null===(e=i.current)||void 0===e?void 0:e.children){var r=Array.from(i.current.children).reduce((function(e,n){var i,r,a,o=null==n?void 0:n.getBoundingClientRect(),s=o.left<t.containerRightPosition&&o.right>t.containerLeftPosition;return Object.assign(Object.assign({},e),(i={},r=n.id,a=s?{"aria-hidden":!1}:{"aria-hidden":!0,inert:"true"},(r=function(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+""}(r))in i?Object.defineProperty(i,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[r]=a,i))}),{});d(r)}}()}),Jt+50)}),[i.current,a,n.offset,n.containerLeftPosition]),{isTabbing:s,onFocusWidget:function(e){document.querySelector(".user-is-tabbing")&&(l(!0),v(e))},onBlurWidget:function(){document.querySelector(".user-is-tabbing")||(l(!1),v(null))},getFixedAttributes:function(e){var t=n;return g||e>=t.offset-t.viewableItems&&e<t.offset?{"aria-hidden":!1}:{inert:"true","aria-hidden":!0}},dynamicAttributes:u,focusNext:function(){setTimeout((function(){if(i.current){for(var e=i.current.querySelectorAll("li[aria-hidden]"),t=null,n=f+1;n<e.length&&!t;n++)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}}),Jt+100)},focusPrev:function(){setTimeout((function(){if(i.current){for(var e=i.current.querySelectorAll("li[aria-hidden]"),t=null,n=f-1;n>=0&&!t;n--)t=e[n].querySelector('a[tabindex="0"]');t&&t.focus()}}),Jt+100)}}}!function(e){e.Percentage="%",e.Pixels="px"}(Zt||(Zt={}));var Qt=new Image;Qt.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var $t,en=function(e){e.dataTransfer.setDragImage&&N.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(Qt,0,0)},tn=it.V.isTouchScreen(),nn=i.forwardRef((function(e,t){var n,r,a,o,s=e.children,l=e.positionType,c=e.onDrag,u=e.onDragEnd,d=e.onTouchMove,m=e.onTouchEnd,f=e.percentageDragged,v=e.position,g=void 0===v?0:v;return i.createElement("ul",Object.assign({className:"list-unstyled d-flex flex-nowrap position-relative w-100 mb-0",style:(r=g,a=l,o=f,a===Zt.Percentage&&o&&(r-=o),{transform:"translate3d(".concat(r).concat(a,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},c&&u&&(n.draggable=!0,n.onDragEnd=u,n.onDragStart=en,n.onDragOver=c),d&&m&&tn&&(n.onTouchMoveCapture=d,n.onTouchEndCapture=m),n)),s)})),rn="VSAPU",an="kgeXh",on=a.T.encloseNamespace("shared.widgetButton");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}($t||($t={}));var sn,ln=i.memo((function(e){var t,n,r,a=e.direction===$t.Left,o=a?C.vn.ChevronLeft:C.vn.ChevronRight;return e.hide?i.createElement(i.Fragment,null):i.createElement("div",{className:"".concat("_ejId"," ").concat(e.containerClassName?e.containerClassName:""),style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(r=e.state)||void 0===r?void 0:r.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&i.createElement("div",{className:a?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&i.createElement("button",{onClick:e.onClick,className:"".concat("AtsWP"," ").concat(a?rn:an),tabIndex:-1}),i.createElement("button",{className:"".concat((t="BVcIS",t+=a?" ".concat(rn," ").concat(e.leftButtonClassName):" ".concat(an," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick,"aria-label":on(a?"previous":"next")},e.hoverText&&i.createElement("span",{className:"ps-3 pe-2 ".concat("APA36")},e.hoverText),i.createElement(S.x,{svgName:o,size:S.S.Medium,className:"svg-container d-inline-block ".concat("Ev4hr")})))}));!function(e){e.Init="init",e.Next="next",e.Previous="previous",e.Resize="resize",e.Drag="drag",e.Update="update",e.JumpToIndex="jump-to-index"}(sn||(sn={}));var cn=n(90547),un=n(5256),dn=n(29267);function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var fn=n(89146),vn=function(e,t,n){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:sn.Resize,payload:{elementRefs:e,mediaQuery:n}})}},gn=function(e){return function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}},pn=function(e,t,n,i,r){return function(a){var o=a.clientX,s=i;s||(s=Object.assign(Object.assign({},t),{initialMouseX:o}),r(s),e.current.style.transition=""),n({type:sn.Drag,payload:{widgetSnapshot:s,currentMouseX:o}})}},yn=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}};function bn(e){return e===cn.r.XS?200:e===cn.r.SM||e===cn.r.MD?350:500}var hn={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},Sn=function(e){var t=e.elementRefs,n=t.container,i=t.lastElement;if(!(null==n?void 0:n.current)||!(null==i?void 0:i.current))return hn;var r=n.current.getBoundingClientRect(),a=r.left,o=r.right,s=a,l=i.current.getBoundingClientRect().right,c=o-l;return Object.assign(Object.assign({},hn),{containerLeftPosition:a,containerRightPosition:o,firstElementPosition:s,lastElementPosition:l,hideRightButton:l<o,leftOffsetLimit:c,maxSlideDistance:bn(e.mediaQuery)})},Cn=function(e){var t=Sn(Object.assign(Object.assign({},e),e.elementRefs));return Object.assign(Object.assign({},t),{maxSlideDistance:bn(e.mediaQuery)})},En=function(e){var t=e.firstElementPosition,n=e.lastElementPosition,i=e.maxSlideDistance,r=e.offset,a=e.containerRightPosition,o=n-a>=i?i:n-a;return{firstElementPosition:t-o,lastElementPosition:n-o,offset:r-o,hideRightButton:n-o===a,hideLeftButton:!1}},In=function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,i=e.lastElementPosition,r=e.maxSlideDistance,a=e.offset,o=n+r<=t,s=o?r:Math.abs(a);return{firstElementPosition:n+s,lastElementPosition:i+s,offset:a+s,hideLeftButton:!o||n+s===t,hideRightButton:!1}},An=function(e,t){var n=t.widgetSnapshot,i=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var r=n.initialMouseX-i,a=n.offset-r,o=n.firstElementPosition-r,s=n.lastElementPosition-r,l=!1,c=!1;return o>e.containerLeftPosition&&(a=0,o=e.containerLeftPosition,s=e.lastElementPosition,l=!0),s<=e.containerRightPosition&&(a=e.leftOffsetLimit,o=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),s=n.containerRightPosition,c=!0),{offset:a,firstElementPosition:o,lastElementPosition:s,hideLeftButton:l,hideRightButton:c}};function Ln(e,t){switch(t.type){case sn.Init:return Object.assign(Object.assign({},e),Sn(t.payload));case sn.Resize:return Object.assign(Object.assign({},e),Cn(t.payload));case sn.Next:return Object.assign(Object.assign({},e),En(e));case sn.Previous:return Object.assign(Object.assign({},e),In(e));case sn.Drag:return Object.assign(Object.assign({},e),An(e,t.payload));default:return e}}var Pn={itemSpacing:"fDc_6",header:"WMgSZ",mobileScroll:"aLSzv",leftGradient:"YheD1",leftGradientNoPadding:"Vl2_g",leftButton:"ISepF",leftButtonNoPadding:"N4rAS",rightGradient:"i9XEE",rightGradientNoPadding:"APhNv",rightButton:"OxM84",rightButtonNoPadding:"nmSQo"};function Tn(e){return function(e){if(Array.isArray(e))return wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||On(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 kn(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||On(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 On(e,t){if(e){if("string"==typeof e)return wn(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)?wn(e,t):void 0}}function wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Rn(e){var t,n,r,a,o,s,l,c=e.childComponent,u=e.staticChildren,d=e.getWidgetItemAnalyticsData,m=void 0===d?function(){}:d,f=kn(i.useReducer(Ln,hn),2),v=f[0],g=f[1],p=kn(i.useState(null),2),y=p[0],b=p[1],h={container:i.useRef(null),firstElement:i.useRef(null),lastElement:i.useRef(null)},S=(t=(0,un.a)(cn.r.XS),n=(0,un.a)(cn.r.SM),r=(0,un.a)(cn.r.MD),a=(0,un.a)(cn.r.LG),o=(0,un.a)(cn.r.XL),s=(0,un.a)(cn.r.XXL),l=cn.r.LG,t&&(l=cn.r.XS),n&&(l=cn.r.SM),r&&(l=cn.r.MD),a&&(l=cn.r.LG),o&&(l=cn.r.XL),s&&(l=cn.r.XXL),l),C=it.V.isTabletOrMobile(),E=Xt({type:"dynamic",state:v,containerRef:h.container,mediaQuery:S}),I=E.dynamicAttributes,A=E.focusNext,L=E.focusPrev,k=E.onFocusWidget,O=E.onBlurWidget;!function(e,t){var n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};i.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),function(e){if(Array.isArray(e))return mn(e)}(r=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}(vn(h,g,S),gn(h.container),[S]);var w=(0,dn.Y)({prevent:!e.lazyLoad}),R=w.ref,_=w.inView,j=e.collection;if(!e.collection&&N.q.isFunction(e.fetch)){var x=e.fetch(_);j=x.data}i.useEffect((function(){j&&!T.t.isEmpty(j)&&g({type:sn.Init,payload:{elementRefs:h,mediaQuery:S}})}),[j]);var M=i.useMemo((function(){var t,n;if(j){var r=null!==(t=null==u?void 0:u.filter((function(e){return"start"===e.position})))&&void 0!==t?t:[],a=null!==(n=null==u?void 0:u.filter((function(e){return"end"===e.position})))&&void 0!==n?n:[],o=j.map((function(t,n){var o;t===P.m.first(j)&&(null==r?void 0:r.length)&&(o=h.firstElement),t!==P.m.last(j)||(null==a?void 0:a.length)||(o=h.lastElement);var s=n+1===j.length;return i.createElement("li",Object.assign({id:t.id,key:t.id,ref:o,onFocus:function(){return k(n)},onBlur:function(){return O()},className:"".concat(Pn.itemSpacing," ").concat(e.childClassName||""," ").concat(s&&C?"pe-4":"")},I[t.id]),i.createElement(c,Object.assign({getChildAppLink:e.getChildAppLink,data:t,getSubtitle:e.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:n},e.analyticsData),m(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),qt.getSliderItemAnalyticsOptions())},e.childComponentProps)))}));return r.length&&(o=[].concat(Tn(r.map((function(t,n){var r=t.component;return i.createElement("li",{key:"first-widget-component:".concat(n),ref:0===n?h.firstElement:null,className:"".concat(Pn.itemSpacing," ").concat(e.childClassName||"")},i.createElement(r,null))}))),Tn(o))),a.length&&(o=[].concat(Tn(o),Tn(a.map((function(t,n){var r=t.component;return i.createElement("li",{key:"end-widget-component:".concat(n),ref:n===a.length-1?h.lastElement:null,className:"".concat(Pn.itemSpacing," ").concat(e.childClassName||"")},i.createElement(r,null))}))))),i.createElement(i.Fragment,null,o)}}),[j,I,v.offset,S].concat(Tn(e.widgetDataDeps||[])));if(j&&!j.length&&!(null==u?void 0:u.length))return i.createElement(i.Fragment,null);if(!j||T.t.isEmpty(j))return i.createElement("div",{ref:R},i.createElement(_n,{partialLoadingComponent:e.partialLoadingComponent,partialLoadingOptions:e.partialLoadingOptions}));var F=function(t){return Object.assign(Object.assign({},e.analyticsData),{id:e.id,name:e.heading,direction:t===sn.Next?"right":"left"})},B=C||e.hideButtons;return i.createElement("div",{className:"".concat(e.noNegativePadding?"":"mx-n4")},i.createElement("div",{className:"px-4 ".concat(Pn.header)},i.createElement(Wt,{name:e.heading,description:e.description,appLink:e.headingAppLink,showSeeMoreLink:!!e.headingAppLink})),i.createElement("div",{className:"position-relative"},i.createElement("div",{className:"".concat(e.noNegativePadding?"":"px-4"," py-3 my-n3 position-relative ").concat(C?Pn.mobileScroll:"overflow-hidden-x")},i.createElement("div",{className:"position-relative ".concat(e.hideButtons?"overflow-hidden-x":"")},!B&&i.createElement(ln,{direction:$t.Left,onClick:function(){L(),g({type:sn.Previous}),D.k.logUserAction(F(sn.Previous),qt.getSliderAnalyticsOptions())},leftButtonClassName:"".concat(Pn.leftButton," ").concat(e.noNegativePadding?Pn.leftButtonNoPadding:""),leftGradientClassName:"".concat(Pn.leftGradient," ").concat(e.noNegativePadding?Pn.leftGradientNoPadding:""),hide:v.hideLeftButton,useGradientBackdrop:!0}),i.createElement(nn,{position:v.offset,positionType:Zt.Pixels,onDrag:pn(h.container,v,g,y,b),onDragEnd:yn(h.container,b),ref:h.container},M),!B&&i.createElement(ln,{direction:$t.Right,onClick:function(){A(),g({type:sn.Next}),D.k.logUserAction(F(sn.Next),qt.getSliderAnalyticsOptions())},hide:v.hideRightButton,rightButtonClassName:"".concat(Pn.rightButton," ").concat(e.noNegativePadding?Pn.rightButtonNoPadding:""),rightGradientClassName:"".concat(Pn.rightGradient," ").concat(e.noNegativePadding?Pn.rightGradientNoPadding:""),useGradientBackdrop:!0})))))}Rn.defaultProps={heading:"",description:"",childComponentProps:{}};var _n=function(e){var t=e.partialLoadingComponent,n=e.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},fn.u.getPartialLoadingItems(n).map((function(e,n){return i.createElement(t,{key:n})})))},jn=a.T.encloseNamespace("shared.tags");function Nn(e){var t,n,i=e.tag,a=e.appLink,o=e.onClick,s=e.disabled,l=e.tagClass,c=void 0===l?"tag":l,u=i.name.toLowerCase(),d=null===(t=i.tagType)||void 0===t?void 0:t.toLowerCase(),m=d===yt.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),f="".concat(tt.badgeBase," rounded-pill py-1 px-2 my-1 me-1 ").concat(c," ").concat(function(e,t){switch(e){case yt.Pedagogy:case yt.Skill:return"pedagogy-tag text-white";case yt.Hidden:return"hidden-tag fw-normal";case yt.Normal:return t?"":"bg-gray-100 fw-normal";default:return""}}(d,m)),v="text-truncate text-nowrap";m&&(f+=" text-white"),!a&&!o||s||(f+=" cursor-pointer"),s&&(f+=" "+tt.disabled),e.onRemove&&(f+=" "+tt.removeBadge,v+=" "+"".concat(tt.removeBadgeText," d-inline-flex align-items-center lh-1")),a||(f+=" d-inline-block");var g=m?{backgroundColor:e.themeColours.secondary}:{};return a?r().createElement(rt.F,{onClick:o,appLink:a,className:f,title:u,style:g},r().createElement("span",{className:v},u)):r().createElement("button",{onClick:o,className:f,title:u,style:g,"aria-label":"".concat(jn("ariaFilter")," ").concat(u)},r().createElement("span",{className:v},u,e.onRemove&&r().createElement("button",{onClick:e.onRemove,className:"".concat(tt.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}function xn(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"bg-gray-900 text-white":"bg-light";return r().createElement(Nn,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," lh-1"),onClick:function(){return e.onClick(e.data)}})}var Dn={tagItem:"j84HW"};function Mn(e){return Mn="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},Mn(e)}function Fn(e){return function(e){if(Array.isArray(e))return Bn(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 Bn(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)?Bn(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 Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Vn(e){var t,n,i,a,o=r().useContext(_).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return r().createElement(r().Fragment,null);var s=o[e.filter.id],l=s.selection,c=null!==(a=null===(i=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===i?void 0:i.filter((function(e){return!(null==l?void 0:l.find((function(t){return t.id===e.id})))})))&&void 0!==a?a:[];function u(t){var n,i,r,a=null,c=-1;if(l.find((function(e,n){c>-1||e.id.toString()===t.id.toString()&&(c=n)})),c>=0){var u=[].concat(Fn(l.slice(0,c)),Fn(l.slice(c+1)));a={active:!!u.length,selection:u}}else a={active:!0,selection:l.concat(t)};qe.applyFilter([e.filter],s,(n={},i=e.filter.id,r=a,(i=function(e){var t=function(e){if("object"!=Mn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mn(t)?t:t+""}(i))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n),o.appLink)}var d,m=[].concat(Fn(l),Fn(e.isFetching?[]:c));return r().createElement("div",{className:e.isFetching||m.length?"py-2":""},r().createElement("div",{className:(d="mb-3",m.length&&e.isFetching?d+=" mt-n1":m.length||e.isFetching||(d+=" d-none"),d)},(!!m.length||e.isFetching)&&r().createElement(Rn,{collection:m,childComponent:function(e){return r().createElement(xn,Object.assign({},e,{selectedItems:l,onClick:u}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return r().createElement(nt,{tagClass:Dn.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return r().createElement("div",{className:"me-2"},r().createElement(nt,{tagClass:"".concat(Dn.tagItem)}))}})))}function qn(e){var t=i.useContext(_).state;return i.createElement(O.L,{onClick:function(){x.Q.C$.trigger(Object.assign(Object.assign({},t.appLink),{params:e.currentQueryParam?{query:e.currentQueryParam}:null}))},className:"".concat(e.alignLeft?"order-first":""," hover-text-underline cursor-pointer d-flex align-items-center mx-2")},i.createElement(c.x,{namespace:"search.resetButton",phrase:"reset"}))}var Gn={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function Hn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Un(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 Un(e,t){if(e){if("string"==typeof e)return Wn(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)?Wn(e,t):void 0}}function Wn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Yn(e){var t,n,r=e.queryParams,a=e.appLink,o=e.hideHeading,s=e.isFetchingOptions,l=e.constantIndices,u=void 0===l?[]:l,d=i.useMemo((function(){return qe.deriveInitialStateFromQuery(r,e.mainFilters,e.moreFilters,a)}),[r,s]),m=(t=i.useReducer(j,d),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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(t,n)||Un(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.")}()),f=m[0],v=m[1];i.useEffect((function(){T.t.isEqual(d,f)||(v({type:"update",payload:d}),e.analyticsOptions&&qe.logFilterEvent(e.mainFilters,e.moreFilters,d,r.query,e.analyticsOptions))}),[d]);var g=P.m.uniq([].concat(Hn(qe.getAppliedIndices(r,e._hasNewSearch)),Hn(u))),p=qe.mixinDisabledFields(f,g,e.mainFilters,e.moreFilters),y=p.mainFilters,b=p.moreFilters,h=y.filter((function(e){return"tag"!==e.type})),S=y.find((function(e){return"tag"===e.type}));return i.createElement(_.Provider,{value:{state:f,dispatch:v}},i.createElement(c.D.Provider,{value:"search.searchFilters"},i.createElement("section",null,i.createElement("div",{className:"d-flex ".concat(e.hideDivider?"":"border-bottom pb-3 mb-3")},!o&&i.createElement("h2",{className:"h5 mb-0 d-inline-block pe-2 border-end d-flex align-items-center"},i.createElement(c.x,{phrase:"heading"})),i.createElement("div",{className:"d-flex flex-wrap ".concat(Gn.filtersContainer," ").concat(o?"":"ms-2")},h.map((function(t){return i.createElement(ze,{key:t.id,filter:t,hideCaret:e.hideCaret})})),b&&i.createElement(et,{filter:b}),qe.hasActiveFilters(r)&&!e.hideResetButton&&i.createElement(qn,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:r.query,analyticsOptions:e.analyticsOptions,alignLeft:e.alignResetButtonLeft}))),i.createElement(Vn,{filter:S,queryParams:r,isFetching:e.isFetchingOptions}))))}var Kn=a.T.encloseNamespace("libraryRequests.filters");function zn(e){return r().createElement(Yn,{queryParams:e.queryParams,mainFilters:[{id:"status",name:"Status",type:"checkbox",options:[{id:"approved",name:Kn("approved")},{id:"rejected",name:Kn("rejected")},{id:"closed",name:Kn("closed")},{id:"autoApproved",name:Kn("autoApproved")}],compatibleIndices:[]}],appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS,args:[e.id],params:e.queryParams},analyticsOptions:{entity:L.py.LibraryRequest,location:L.LZ.LibraryRequestDetails},constantIndices:[],hideDivider:!0})}var Zn=n(45855),Jn=n(49824),Xn=n(7115),Qn=n(7044),$n=n(21974),ei=n(264),ti=n(65402),ni="libraryRequests.pastDetails";function ii(e){var t=(0,ti.$)(e.status);return r().createElement("span",{className:"ms-1"},t)}function ri(e){var t,n,i,a,o,s,u,d=e.libraryRequest.sourceLibrary||e.libraryRequest.sourceCategory,m="";e.libraryRequest.actionedBy&&(m="".concat(e.libraryRequest.actionedBy.name," ").concat(e.libraryRequest.actionedBy.surname));var f=function(e){switch(e){case E.l.AutoApproved:return"addedBy";case E.l.Approved:return"approvedBy";default:return"rejectedBy"}}(e.libraryRequest.status),v=e.libraryRequest.sender&&"".concat(null!==(n=null===(t=e.libraryRequest.sender)||void 0===t?void 0:t.name)&&void 0!==n?n:""," ").concat(null!==(a=null===(i=e.libraryRequest.sender)||void 0===i?void 0:i.surname)&&void 0!==a?a:""),p="";return(null===(o=e.libraryRequest.senderCustomer)||void 0===o?void 0:o.id.toString())!==e.user.get("customerId").toString()&&(p=null===(s=e.libraryRequest.senderCustomer)||void 0===s?void 0:s.name),r().createElement("div",{className:"bg-white rounded p-3 mb-3"},r().createElement("div",{className:"row"},r().createElement("div",{className:"col-3 offset-9 mb-n3"},r().createElement("div",{className:"d-flex justify-content-end align-items-start"},r().createElement(ti.h,{status:e.libraryRequest.status}),r().createElement(ii,{status:e.libraryRequest.status}))),r().createElement("div",{className:"col-12"},!!m&&r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3 font-label"},r().createElement(c.x,{namespace:ni,phrase:f})),r().createElement("div",{className:"col-6"},m)),!!v&&e.libraryRequest.status!==E.l.AutoApproved&&r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3"},r().createElement("label",null,r().createElement(c.x,{namespace:ni,phrase:"requestedBy"}))),r().createElement("div",{className:"col-6"},r().createElement(r().Fragment,null,v,!!p&&r().createElement(r().Fragment,null," (",p,")")))),r().createElement("div",{className:"row mb-3"},r().createElement("div",{className:"col-3 font-label"},d&&r().createElement(c.x,{namespace:ni,phrase:"videoSource"})),r().createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&r().createElement("span",{className:"badge p-1 me-1 text-white ".concat($n.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},$n.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,ei.g.hasLite)),!!e.libraryRequest.sourceCategory&&r().createElement("span",{className:"ms-1"},e.libraryRequest.sourceCategory.name))),(null===(u=e.folderPath)||void 0===u?void 0:u.length)&&r().createElement("div",{className:"row"},r().createElement("div",{className:"col-3 font-label"},r().createElement(c.x,{namespace:ni,phrase:"libraryLocation"})),r().createElement("div",{className:"col-9"},r().createElement(l.Oo,{breadcrumbs:e.folderPath.map((function(e,t){return{name:e.name,appLink:{application:g.OV.LIBRARY_EDITOR,action:0===t?g.eX.LibraryEditor.LIBRARY:g.eX.LibraryEditor.FOLDER,args:[e.id]}}}))}))))))}function ai(){return r().createElement("div",{className:"bg-white rounded p-3 mb-3"},r().createElement("div",{className:"row"},r().createElement("div",{className:"col-3"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),r().createElement("div",{className:"col-6 mb-2"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),r().createElement("div",{className:"col-3 d-flex justify-content-end"},r().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"6rem"}})),r().createElement("div",{className:"col-3"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"15rem"}}))))}var oi=n(17950),si=n(9416),li=n(25796),ci=n(41026),ui=n(59198),di=n(85739),mi=n(30328),fi=n(64429),vi=n(39123),gi=n(41777),pi=n(56154),yi="libraryRequests.pastRequestsEmptyState",bi=a.T.encloseNamespace(yi);function hi(e){return r().createElement("div",{className:"bg-white rounded p-3 py-5"},r().createElement(gi.u,null,r().createElement(gi.u.Image,{src:pi.W.EmptyStates.PAST_REQUESTS}),r().createElement(gi.u.Info,{className:"mb-1"},r().createElement(c.x,{namespace:yi,phrase:"info"})),e.hasLibraries&&r().createElement(gi.u.Cta,{text:bi("cta"),className:"btn btn-link text-info",appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Si(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 i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ci(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ci(e,t):void 0}}(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 Ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var Ei="libraryRequests.pastRequests",Ii=a.T.encloseNamespace(Ei),Ai=[E.l.Approved,E.l.Closed,E.l.Rejected,E.l.AutoApproved];function Li(e){var t,n,i,a,S,C=o.a.useGetFetch(),E=(0,m.Z)(),I=(0,di.p)(e.queryParams.sort||u.D.Newest,e.queryParams.status||Ai),L=o.a.useBasicFetch(e.id&&li.y.libraryRequest(e.id)),P=(0,ui.s)(e.id),T=Si(r().useState(null),2),k=T[0],O=T[1];(0,s.i)(h.T.getLibrariesFetchOptions((function(e){return O(e.toJSON())})),[]),(0,vi.g)(O);var w=o.a.useBasicFetch(L.data&&(null===(t=L.data.destinationLibrary)||void 0===t?void 0:t.id)&&(null===(n=L.data.destinationCategory)||void 0===n?void 0:n.id)&&li.y.categoryPath(L.data.destinationLibrary.id,L.data.destinationCategory.id)),R=Si(r().useState(null),2),_=R[0],j=R[1];(0,s.i)(y.p.getConfigFetchOptions(j),[]);var N=Si(r().useState(null),2),x=N[0],D=N[1];(0,s.i)(b.K.getCurrentUserFetchOptions(D),[]);var M=o.a.useBasicFetch(d.N.currentUser());(0,f.v)(L),(0,mi.A)({id:e.id,requests:I.items,appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS,params:e.queryParams}}),(0,fi.m)(L.data,"past",e.queryParams),(0,ci.K)(L.data);var F=((null===(i=I.items)||void 0===i?void 0:i.length)||I.hasCompleted)&&_&&M.data,B=L.data&&P.hasCompleted,V=!e.queryParams.status&&L.hasCompleted&&!(null===(a=I.items)||void 0===a?void 0:a.length);return r().createElement("div",null,r().createElement("h1",{className:"h2"},r().createElement(c.x,{namespace:Ei,phrase:"title"})),r().createElement("div",{className:"mb-3"},r().createElement(l.Oo,{breadcrumbs:[{name:Ii("libraryEditor"),appLink:{application:g.OV.LIBRARY_EDITOR,action:g.eX.LibraryEditor.HOME}},{name:Ii("title"),active:!0}]})),r().createElement(si.A,{active:"past"}),!V&&r().createElement("div",{className:"d-flex justify-content-between mb-3"},r().createElement(zn,{id:e.id,queryParams:e.queryParams}),r().createElement(oi.F,{appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS,args:[e.id]},queryParams:e.queryParams})),!F||(null===(S=I.items)||void 0===S?void 0:S.length)?r().createElement("div",{className:"row"},r().createElement("div",{className:"col-4"},F?r().createElement(Xn.q,{libraryRequests:I.items,selectedId:e.id,appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS},queryParams:e.queryParams,fetchNext:I.fetchNext,isFetching:I.isFetching,nextCursor:I.nextCursor}):r().createElement(Qn.p,null)),r().createElement("div",{className:"col-8"},F&&B?r().createElement(r().Fragment,null,r().createElement(A,{libraryRequest:L.data}),r().createElement(ri,{libraryRequest:L.data,folderPath:w.data,user:x}),r().createElement(Zn.x,{libraryRequest:L.data,currentUser:M.data,comments:P.items,config:_,user:x,createViewKey:function(t,n){var i=li.y.createViewKey(e.id,(function(e){return n(new p.y(e))}),(function(e){return E.error(v.M.libraryApiError(e))}));C(i)}})):r().createElement(r().Fragment,null,r().createElement(ai,null),r().createElement(Jn.j,null)))):r().createElement(hi,{hasLibraries:!!k.length}))}}}]);