@clickview/library-editor 1.55.0 → 1.56.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{4001-library-editor-f6d2f9fb58.chunk.css → 4001-library-editor-da87291909.chunk.css} +1 -1
  3. package/dist/css/{535-library-editor-e2b19f99ee.chunk.css → 535-library-editor-fa24102d7f.chunk.css} +1 -1
  4. package/dist/css/{61-library-editor-f25bac2db6.chunk.css → 61-library-editor-b5c939f10f.chunk.css} +2 -1
  5. package/dist/css/{library-editor-app-bcca987662.css → library-editor-app-6b401b236c.css} +3 -3
  6. package/dist/languages/en.json +1 -1
  7. package/dist/scripts/{112-4f413f94c0.chunk.js → 112-5209a9a2d0.chunk.js} +1 -1
  8. package/dist/scripts/{2601-d46e5810eb.chunk.js → 2601-0bbd055a92.chunk.js} +1 -1
  9. package/dist/scripts/2644-17c596a0c9.chunk.js +1 -0
  10. package/dist/scripts/{343-41502b5d24.chunk.js → 343-a3dabdd615.chunk.js} +1 -1
  11. package/dist/scripts/{3551-ad62e3a403.chunk.js → 3551-d2ea1832c5.chunk.js} +1 -1
  12. package/dist/scripts/376-d76b864238.chunk.js +1 -0
  13. package/dist/scripts/4001-319ffe95a1.chunk.js +2 -0
  14. package/dist/scripts/{4024-5bc8aa8dcd.chunk.js → 4024-218556677c.chunk.js} +1 -1
  15. package/dist/scripts/471-7ede525821.chunk.js +2 -0
  16. package/dist/scripts/5173-f2d72d7c3e.chunk.js +1 -0
  17. package/dist/scripts/{61-ca10628c31.chunk.js → 61-de99ab5568.chunk.js} +2 -2
  18. package/dist/scripts/{6352-6452f77c89.chunk.js → 6352-50c10c1bc6.chunk.js} +1 -1
  19. package/dist/scripts/{7002-eef9319d36.chunk.js → 7002-6d9f52d6d3.chunk.js} +1 -1
  20. package/dist/scripts/708-f7536cb7a4.chunk.js +1 -0
  21. package/dist/scripts/8130-f0c1977041.chunk.js +1 -0
  22. package/dist/scripts/{8727-9077c2b877.chunk.js → 8727-188101f028.chunk.js} +1 -1
  23. package/dist/scripts/{8952-a9a7742f72.chunk.js → 8952-4201ae6599.chunk.js} +1 -1
  24. package/dist/scripts/{9369-1e706eb521.chunk.js → 9369-d078677c28.chunk.js} +1 -1
  25. package/dist/scripts/bundle-b38a9aa50e.min.js +2 -0
  26. package/package.json +1 -1
  27. package/dist/scripts/2644-98304e9394.chunk.js +0 -1
  28. package/dist/scripts/376-83584040a3.chunk.js +0 -1
  29. package/dist/scripts/4001-9194fbe77b.chunk.js +0 -2
  30. package/dist/scripts/5173-d333602893.chunk.js +0 -1
  31. package/dist/scripts/6532-48f3f080f5.chunk.js +0 -2
  32. package/dist/scripts/708-c74c75f82a.chunk.js +0 -1
  33. package/dist/scripts/8130-753cb2b6bb.chunk.js +0 -1
  34. package/dist/scripts/bundle-9fb3396566.min.js +0 -2
  35. package/typings/libs/CVEvents.d.ts +0 -13
  36. package/typings/libs/lodash.d.ts +0 -11
  37. /package/dist/scripts/{101-8f41923234.chunk.js → 101-c2af2cc10c.chunk.js} +0 -0
  38. /package/dist/scripts/{1010-4a381a84d4.chunk.js → 1010-f1c8bca022.chunk.js} +0 -0
  39. /package/dist/scripts/{1409-58db6bd9f7.chunk.js → 1409-ae672618b1.chunk.js} +0 -0
  40. /package/dist/scripts/{1703-45ced13ccd.chunk.js → 1703-0f9e8a489f.chunk.js} +0 -0
  41. /package/dist/scripts/{1832-6a54b38248.chunk.js → 1832-52444b0088.chunk.js} +0 -0
  42. /package/dist/scripts/{1876-e0567188b8.chunk.js → 1876-0a931d62d9.chunk.js} +0 -0
  43. /package/dist/scripts/{2417-7628573bf3.chunk.js → 2417-9731b9da6b.chunk.js} +0 -0
  44. /package/dist/scripts/{243-25fcce188c.chunk.js → 243-c4bb9e995e.chunk.js} +0 -0
  45. /package/dist/scripts/{259-e24fcf8f12.chunk.js → 259-ef5133c0fd.chunk.js} +0 -0
  46. /package/dist/scripts/{299-1a0d6a88dc.chunk.js → 299-5585deab1d.chunk.js} +0 -0
  47. /package/dist/scripts/{35-68aa98885c.chunk.js → 35-dde0c25008.chunk.js} +0 -0
  48. /package/dist/scripts/{3746-9c62c31099.chunk.js → 3746-588ea9d62d.chunk.js} +0 -0
  49. /package/dist/scripts/{4001-9194fbe77b.chunk.js.LICENSE.txt → 4001-319ffe95a1.chunk.js.LICENSE.txt} +0 -0
  50. /package/dist/scripts/{4245-59b4242cad.chunk.js → 4245-db2d86c59d.chunk.js} +0 -0
  51. /package/dist/scripts/{4523-55c4df85c8.chunk.js → 4523-fec10bbbcb.chunk.js} +0 -0
  52. /package/dist/scripts/{6532-48f3f080f5.chunk.js.LICENSE.txt → 471-7ede525821.chunk.js.LICENSE.txt} +0 -0
  53. /package/dist/scripts/{5046-cb525612c6.chunk.js → 5046-b65e8db7c0.chunk.js} +0 -0
  54. /package/dist/scripts/{5286-7aac82c4d1.chunk.js → 5286-c574f5b574.chunk.js} +0 -0
  55. /package/dist/scripts/{535-27d0457532.chunk.js → 535-794be8eab5.chunk.js} +0 -0
  56. /package/dist/scripts/{546-f770211173.chunk.js → 546-2ee5c90feb.chunk.js} +0 -0
  57. /package/dist/scripts/{5707-fcb653aa7a.chunk.js → 5707-b2b239ff4e.chunk.js} +0 -0
  58. /package/dist/scripts/{5747-674f00efcd.chunk.js → 5747-7ca7ad6c1d.chunk.js} +0 -0
  59. /package/dist/scripts/{5891-0864c38750.chunk.js → 5891-ac4d3f803a.chunk.js} +0 -0
  60. /package/dist/scripts/{61-ca10628c31.chunk.js.LICENSE.txt → 61-de99ab5568.chunk.js.LICENSE.txt} +0 -0
  61. /package/dist/scripts/{6963-0e2bf1bde7.chunk.js → 6963-254d82f6c2.chunk.js} +0 -0
  62. /package/dist/scripts/{7053-35b82818eb.chunk.js → 7053-91a52f57d7.chunk.js} +0 -0
  63. /package/dist/scripts/{7071-6f7e375aaa.chunk.js → 7071-6d98c3dcfa.chunk.js} +0 -0
  64. /package/dist/scripts/{7153-57796cd98e.chunk.js → 7153-fc080e3d53.chunk.js} +0 -0
  65. /package/dist/scripts/{7295-474c754cb6.chunk.js → 7295-49780496e2.chunk.js} +0 -0
  66. /package/dist/scripts/{7408-15b5cc4a39.chunk.js → 7408-c1551d3e0d.chunk.js} +0 -0
  67. /package/dist/scripts/{7827-ce63697325.chunk.js → 7827-c1f1b4f608.chunk.js} +0 -0
  68. /package/dist/scripts/{8952-a9a7742f72.chunk.js.LICENSE.txt → 8952-4201ae6599.chunk.js.LICENSE.txt} +0 -0
  69. /package/dist/scripts/{9369-1e706eb521.chunk.js.LICENSE.txt → 9369-d078677c28.chunk.js.LICENSE.txt} +0 -0
  70. /package/dist/scripts/{9383-d58506608c.chunk.js → 9383-4ed13f5993.chunk.js} +0 -0
  71. /package/dist/scripts/{bundle-9fb3396566.min.js.LICENSE.txt → bundle-b38a9aa50e.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8130],{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={}))},18130:function(e,t,n){n.r(t),n.d(t,{PastRequestsView:function(){return Ti}});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),O=n(99910),k=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(k.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(k.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 B=n(39023);function F(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 U(e){var t,n=He.displayTwoColumns(e.filter),r=e.draftState.selection;return i.createElement(i.Fragment,null,i.createElement(M,{title:e.filter.name}),i.createElement(O.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(B.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(F(r.slice(0,i)),F(r.slice(i+1)));e.setDraftState({active:!!a.length,selection:a})}else{var o=F(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 q(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}function G(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 H(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=q(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(B.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})),He.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(B.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 G(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||q(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(B.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 J(e){return function(e){if(Array.isArray(e))return K(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 K(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)?K(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 K(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(J(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(J(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(O.Form,{className:"mb-3"},He.hasManyFilterOptions(t)?i.createElement(H,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(J(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 Z=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(Z.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(O.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(O.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(O.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}function re(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)}),[i]),!e.rating.code)return r().createElement(r().Fragment,null);var a=r().createElement(k.L,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,i),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?a:r().createElement(ee.u,{title:e.rating.name,spanHack:!0},a)}function ae(e){var t=ne(r().useState([]),2),n=t[0],i=t[1];function a(t){t&&!e.isDisabled(t)||i([])}function o(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))}return r().createElement("div",null,r().createElement(O.ButtonGroup,{as:"ul",className:"list-unstyled mb-0"},e.ratings.map((function(t){var n;return r().createElement("li",{key:t.id},r().createElement(re,{rating:t,onClick:function(){return function(t){e.onSelectRange(function(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))}(t))}(t)},onHover:a,isActive:o(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses}))}))))}ae.defaultProps={selections:[]};function oe(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 se(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 oe(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)?oe(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(ae,{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 le="filters.";function ce(e){return ce="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},ce(e)}var ue,de,me={type:!0},fe=["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","specialEventType"].reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},r=!me[t],(i=function(e){var t=function(e){if("object"!=ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ce(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"}(ue||(ue={})),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"}(de||(de={}));var ve=n(75459);function ge(e){return ge="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},ge(e)}function pe(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 ye,be="".concat(le,"library"),he=function(e,t){return(Array.isArray(e)?e:[e]).reduce((function(e,n){return t.reduce((function(e,t){var i,r=e[be]||[];return n===ue.MyVideos&&t.type===ve.r.Workspace||n===ue.School&&t.type===ve.r.CustomLibrary||n===ue.ExchangeArchive&&t.type===ve.r.Exchange||n===ue.ClickView&&t.type===ve.r.HostedLibrary?Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e){if("object"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},be,[].concat(function(e){if(Array.isArray(e))return pe(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 pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[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"}(ye||(ye={}));var Se=n(71551);function Ce(e){return Ce="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},Ce(e)}function Ee(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee(Ee({},Se.JU.BreakingNews,"Breaking news"),Se.JU.HistoricalEvent,"Historical event"),Se.JU.Holiday,"Holiday"),Se.JU.Informal,"Informal"),Se.JU.Livestream,"Livestream"),Se.JU.NaturalDisaster,"Natural disaster"),Se.JU.Observance,"Observance"),Se.JU.ReligiousEvent,"Religious event"),Se.JU.SportingEvent,"Sporting event"),Se.JU.Other,"Other"),Ae=(n(11306),n(79410),n(10657));n(1268),n(74483),n(46237),n(38182);var Le,Pe,Te,Oe,ke,we=n(76044);!function(e){e.Online="online",e.Primary="primary",e.Curator="curator"}(Le||(Le={})),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"}(Pe||(Pe={})),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"}(Te||(Te={})),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"}(Oe||(Oe={})),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"}(ke||(ke={}));var Re=n(74421);n(84868),a.T.encloseNamespace("userManager.utils"),ke.ActivateUser,ke.AddUsersClassroom,ke.ChangeYearGroup,ke.DeactivateUser,ke.DeleteUser,ke.ResetPassword,ke.RolloverYearGroup,ke.SendAccountReminderEmail,ke.CreateUser,ke.SendAccountActivationEmail,ke.RemoveUser;var _e=(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..."}}),je=(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 Ne(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 xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function De(e,t,n){return(t=function(e){var t=function(e){if("object"!=xe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Fe(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 Be(e){return function(e){if(Array.isArray(e))return Ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fe(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 Fe(e,t){if(e){if("string"==typeof e)return Ve(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)?Ve(e,t):void 0}}function Ve(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 Ue=a.T.encloseNamespace("sharedSearch.utils"),qe={classification:!0,categoryId:!0,channel:!0},Ge={series:!0,video:!0,playlist:!0,classification:!0,clip:!0,interactive:!0,company:!0,category:!0},He={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 qe[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:Ue("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(U,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(se,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:We(l,c,"sort")},classification:{active:!!l.classification,selection:We(l,c,"classification")},presentation:{active:!!l.presentation,selection:We(l,c,"presentation")},type:{active:!!l.type,selection:We(l,c,"type")},specialEventType:{active:!!l.specialEventType,selection:We(l,c,"specialEventType")},rating:{active:!!l.rating,selection:We(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:We(l,c,"yearGroup")},moviesAndTv:{active:"true"===(null===(n=l.moviesAndTv)||void 0===n?void 0:n.toString())},classroom:{active:!!l.classroom,selection:We(l,c,"classroom")},audience:{active:!!l.audience,selection:We(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:We(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:We(l,null==u?void 0:u.filters,"duration")},tagOrClassification:{active:!!l.tagOrClassification,selection:We(l,c,"tagOrClassification")},status:{active:!!l.status,selection:We(l,c,"status")},jobStatus:{active:!!l.jobStatus,selection:We(l,c,"jobStatus")},isAdmin:{active:"true"===(null===(s=l.isAdmin)||void 0===s?void 0:s.toString())},bulkActionType:{active:!!l.bulkActionType,selection:We(l,c,"bulkActionType")},userType:{active:!!l.userType,selection:We(l,c,"userType")},filter:{active:!!l.filter,selection:We(l,c,"filter")},channel:{active:!!l.channel,selection:We(l,c,"channel")},dateBroadcast:{active:!!l.dateBroadcast,selection:We(l,c,"dateBroadcast")},categoryId:{active:!!l.categoryId,selection:We(l,c,"categoryId")},hasInteractives:{active:!!l.hasInteractives,selection:We(l,c,"hasInteractives")},source:{active:!!l.source,selection:We(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,Be(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=Me(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=Me(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?De(De({},"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:fe[r]?"rating"===r?(n["".concat(le).concat(r)]=function(e,t){var n=Ne(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(le).concat(r)]=je(a),n):"duration"===r?(n["".concat(le).concat(r)]=_e(a),n):"moviesAndTv"===r?(n["".concat(le,"curationTag")]=ye.MOVIES_AND_TV,n):"source"===r?Object.assign(Object.assign({},n),he(a,i)):(n["".concat(le).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))&&Ge[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:He.buildFrontendFilterParams(a,r)}),{replace:!0})}},mixinDisabledFields:function(e,t,n,i){var r,a=[].concat(Be(n),Be(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:Ue("topics")},{id:"playlist",name:Ue("playlists")},{id:"series",name:Ue("series")},{id:"video",name:Ue("videos")},{id:"clip",name:Ue("clips")},{id:"interactive",name:Ue("interactives")},{id:"company",name:Ue("company")}];return t&&n.push({id:"category",name:Ue("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:Ue("newest")},{id:"oldest",name:Ue("oldest")},{id:"first-name-atoz",name:Ue("firstNameAToZ")},{id:"first-name-ztoa",name:Ue("firstNameZToA")},{id:"surname-atoz",name:Ue("surnameAToZ")},{id:"surname-ztoa",name:Ue("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:Ue("active")},{id:"deactivated",name:Ue("deactivated")},{id:"pending",name:Ue("pending")}]},getJobStatusOptions:function(){return[{id:"completed",name:Ue("completed")},{id:"failed",name:Ue("errored")},{id:"inProgress",name:Ue("inProgress")}]},getTvFieldsOptions:function(){return[{id:"0",name:Ue("allFields"),default:!0},{id:"1",name:Ue("titleDescriptionField")},{id:"2",name:Ue("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:Ue("anyTime"),default:!0},{id:"yesterday",name:Ue("yesterday")},{id:"last-week",name:Ue("lastWeek")},{id:"last-2-weeks",name:Ue("last2Weeks")}]},getCategoriesOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.data.id,name:e.data.name}})):[]},getSpecialEventTypeOptions:function(){return[{id:Se.JU.BreakingNews,name:Ie[Se.JU.BreakingNews]},{id:Se.JU.SportingEvent,name:Ie[Se.JU.SportingEvent]},{id:Se.JU.Observance,name:Ie[Se.JU.Observance]},{id:Se.JU.NaturalDisaster,name:Ie[Se.JU.NaturalDisaster]},{id:Se.JU.HistoricalEvent,name:Ie[Se.JU.HistoricalEvent]},{id:Se.JU.Holiday,name:Ie[Se.JU.Holiday]},{id:Se.JU.Informal,name:Ie[Se.JU.Informal]},{id:Se.JU.ReligiousEvent,name:Ie[Se.JU.ReligiousEvent]},{id:Se.JU.Other,name:Ie[Se.JU.Other]}]}};function We(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=Ne(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 Ye(e,t).map((function(e){var t=n.audience;if(!(null==t?void 0:t.length))return e;var i=Ye(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):Ye(r.options,a)}function Ye(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 Je={hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function Ke(e){return Ke="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},Ke(e)}function ze(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 Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}(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 Ze(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 Xe(e){var t=i.useContext(_).state,n=t[e.filter.id],r="dropdown"===e.filter.type,a=ze(i.useState(e.filter.name),2),o=a[0],s=a[1],l=ze(i.useState(!1),2),c=l[0],u=l[1],d=ze(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;He.applyFilter([e.filter],n,(i={},r=e.filter.id,a=o,(r=function(e){var t=function(e){if("object"!=Ke(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ke(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(He.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:He.mapTypeToComponent(e.filter.type)}),[e.filter.type]),b=e.hideCaret&&!r?Je.hideCaret:"",h=(p=e.filter,He.displayTwoColumns(p)?Je.twoColumnsWidth:"classification"===p.id?Je.classificationWidth:He.displayTwoLayers(p)?Je.nestedCheckboxesWidth:"switch"===p.type?Je.switchWidth:"");return"button"===e.filter.type?i.createElement(y,{filter:e.filter,draftState:m,setDraftState:v}):i.createElement(O.Dropdown,{onToggle:function(e){u(e),e||r||g()},show:c},i.createElement(O.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:Je.svgContainer},i.createElement(S.x,{svgName:e.filter.icon})),e.filter.labelPrefix," ",o),i.createElement(O.Dropdown.Menu,null,i.createElement("div",{className:"mx-1 ".concat(Je.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 Qe(e){return Qe="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},Qe(e)}Xe.defaultProps={hideCaret:!0};var $e={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"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r))}))}}};function et(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 tt(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)?tt(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 tt(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 nt(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function it(e){var t=i.useContext(_).state,n=t.moreFilters,r=et(i.useState(e.filter.name),2),a=r[0],o=r[1],s=et(i.useState(!1),2),l=s[0],c=s[1],u=et(i.useState(n),2),d=u[0],m=u[1],f=et(i.useState(nt(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(){He.applyFilter(e.filter.filters,n,d,t.appLink)}i.useEffect((function(){m(n),g(nt(n))}),[e.filter,p]),i.useEffect((function(){o(v?"".concat(e.filter.name," - ").concat(v):e.filter.name)}),[v]);var b="fw-semibold ".concat(Je.hideCaret," mx-1 btn");return i.createElement(O.Dropdown,{onToggle:function(e){c(e),e||y()},show:l},i.createElement(O.Dropdown.Toggle,{id:e.filter.id,className:b,variant:v?"dark":"outline-dark"},a),i.createElement(O.Dropdown.Menu,{onClick:function(e){return e.stopPropagation()}},i.createElement("div",{className:"mx-1 ".concat(Je.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:He.mapTypeToComponent(e.type);return i.createElement("fieldset",{key:e.id},i.createElement(t,{filter:e,draftState:d[e.id],setDraftState:$e.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 rt={tagList:"Zw6d9",badgeBase:"irnbf",disabled:"jlL1c",partialTag:"too_N",removeBadge:"_9FVm",removeBadgeText:"nhoAA",close:"X9joI"},at=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(rt.partialTag);return r().createElement("div",{className:"mt-1"},r().createElement("span",{className:n}," "))})),ot=n(37360),st=n(49642),lt=n(4705),ct=n(73516),ut=n(13034);function dt(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 mt,ft="onboarding:persona",vt="onboarding:usage:intention",gt="onboarding:had:job:title",pt={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=pt.getPersona();!v&&t&&pt.updatePersona(t),v&&v!==we.l.getPersonaFromJobTitle(t)&&pt.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=pt.getCurrentScreen(l,c),y=Object.values(_t),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 dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}(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 lt.SG.get(ft)},updatePersona:function(e){var t=we.l.getPersonaFromJobTitle(e);lt.SG.set(ft,t||"teacher")},getUsageIntention:function(){return lt.SG.get(vt)},updateUsageIntention:function(e){lt.SG.set(vt,e)},removeUsageIntention:function(){lt.SG.remove(vt)},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(ut.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()===ct.e.PresentationIds.AU_TERTIARY.toString()||e.id.toString()===ct.e.PresentationIds.UK_TERTIARY.toString()}))?"2024-11-28":Ae.O.isBefore(null==t?void 0:t.dateCreated,n)?"2024-12-11":n}(i,t)||!!pt.hasNonBdmTrial(n)&&("boolean"!=typeof lt.SG.get(gt)&&lt.SG.set(gt,!!(null===(a=null===(r=null==e?void 0:e.userProfile)||void 0===r?void 0:r.metadata)||void 0===a?void 0:a.jobTitle)),!lt.SG.get(gt))}},yt=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"}(mt||(mt={}));var bt,ht,St,Ct,Et=n(36357);!function(e){e.Root="root"}(bt||(bt={})),function(e){e.Subject="Subject",e.CurriculumAudience="CurriculumAudience",e.CurriculumSubject="CurriculumSubject",e.CurriculumArea="CurriculumArea",e.CurriculumLeaf="CurriculumLeaf",e.CurriculumMetadata="CurriculumMetadata"}(ht||(ht={})),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(St||(St={})),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"}(Ct||(Ct={}));var It,At,Lt=a.T.encloseNamespace("subjects.utils"),Pt={isPresentation:function(e){return"learningLevel"in e},isTopicClassification:function(e){return(null==e?void 0:e.type)===ht.Subject},getMappedPresentationLevel:function(e){return"string"==typeof e?mt[e]:e},getMappedPresentationBackgroundColourClass:function(e){switch(Pt.getMappedPresentationLevel(e)){case mt.Level_1:return"bg-indigo";case mt.Level_3:return"bg-blue";case mt.Level_4:return"bg-navy";default:case mt.Level_2:return"bg-green"}},getMappedPresentationBackgroundColourCode:function(e){switch(Pt.getMappedPresentationLevel(e)){case mt.Level_1:return"#7A76E8";case mt.Level_3:return"#38A2E8";case mt.Level_4:return"#1B2D71";default:case mt.Level_2:return"#5DC786"}},getPresentationLevelImage:function(e,t){switch(Pt.getMappedPresentationLevel(e)){case mt.Level_1:if("topic-banner"===t)return ct.e.Images.Level_1.TOPIC_BANNER;if("new-release-banner"===t)return ct.e.Images.Level_1.NEW_RELEASES_BANNER;if("cover"===t)return ct.e.Images.Level_1.TOPIC_COVER;if("tall-poster"===t)return ct.e.Images.Level_1.TOPIC_TALL_POSTER;case mt.Level_2:if("topic-banner"===t)return ct.e.Images.Level_2.TOPIC_BANNER;if("new-release-banner"===t)return ct.e.Images.Level_2.NEW_RELEASES_BANNER;if("cover"===t)return ct.e.Images.Level_2.TOPIC_COVER;if("tall-poster"===t)return ct.e.Images.Level_2.TOPIC_TALL_POSTER;default:case mt.Level_3:if("topic-banner"===t)return ct.e.Images.Level_3.TOPIC_BANNER;if("new-release-banner"===t)return ct.e.Images.Level_3.NEW_RELEASES_BANNER;if("cover"===t)return ct.e.Images.Level_3.TOPIC_COVER;if("tall-poster"===t)return ct.e.Images.Level_3.TOPIC_TALL_POSTER;case mt.Level_4:if("topic-banner"===t)return ct.e.Images.Level_4.TOPIC_BANNER;if("cover"===t)return ct.e.Images.Level_4.TOPIC_COVER}},getExploreAllTopicsTitle:function(e,t){return t<2?Lt("exploreAllTopicsHeading"):Lt("exploreAllTopicsDynamicHeading",{presentationName:e})},getExploreAllTopicsBreadcrumb:function(e,t){return t<2?Lt("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(bt.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 Pt.isTopLevelTopic(e)?t===Se.ku.Classification?"new-releases":"all-topics":t===Se.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())===ct.e.PresentationIds.AU_TERTIARY.toString()||(null==e?void 0:e.toString())===ct.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===St.Curation&&e.name===ye.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 mt[null==i?void 0:i.learningLevel]-mt[null==r?void 0:r.learningLevel]}},Tt=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","8686941","8696292","16168801"]},"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":["3714278","3714277","3714263","3714261","7709983","3714262"]},"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","7586599","48522943","22372630"]},"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":["50466237","49808227","38134895","30324910","49535315","6412547"]},"eKp93yo":{"name":"People, Past Events and Societies","videoIds":["52436848","8139170","48666851","49159889","54092899","51668932"]},"2jlKbrd":{"name":"People, Place and Environment","videoIds":["50800706","16206702","81764274","80349361","51668517","37938665"]},"xA2zYyP":{"name":"Planet Earth and Space","videoIds":["3713858","3716170","48022455","3713237","3713221","3713761"]},"3bNnxmn":{"name":"Study and Research Skills","videoIds":["3715013","5952919","5892164","8999934","219449","51724289"]}},"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","57355287","38945573","40919591","57978641"]},"ZAl67rb":{"name":"Earth and Space Science","videoIds":["7336963","3713237","3713761","3712190","3779809","39414730"]},"ze5PRD9":{"name":"Economics","videoIds":["57978515","52673893","39386335","80309108","52673959","80309197"]},"GxAzYW1":{"name":"Geography","videoIds":["39382727","39430086","39342430","40919446","79131743","57200758"]},"R0L3j6g":{"name":"History","videoIds":["57948887","84615538","49690616","40911809","51668864","50735582"]},"9DPWnaO":{"name":"Life Science","videoIds":["3713236","7335448","3713268","53044818","50976630","50977361"]},"nKzp19Y":{"name":"Physical Science","videoIds":["3713221","3713695","3713298","38945712","39382930","84609116"]},"7P7n8AR":{"name":"Religion","videoIds":["50800564","38945207","38945680","54093273","50180383","49159058"]}},"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":["48172750","52328920","22422792","47488746","51187200","84960065"]},"R0LRx1g":{"name":"Chemical Science","videoIds":["7334569","50876056","52318636","58196676","50837270","47251669"]},"7P7y5bR":{"name":"Civics and Government","videoIds":["50800622","54089250","40919577","81573693","53737737","57978641"]},"g42ENM9":{"name":"Earth and Space Science","videoIds":["39430086","39414730","39414759","50875964","40919857","51264326"]},"LqGREZL":{"name":"Economics","videoIds":["57978515","53737737","51408524","51409809","51779414","48463897"]},"obMmqy5":{"name":"Geography","videoIds":["48234876","81930059","39931606","71810304","47321866","48236170"]},"ZAlrZ11":{"name":"Life Science","videoIds":["48022455","3713236","36554448","9203166","40914938","51863288"]},"obMmqWk":{"name":"Physical Science","videoIds":["3713695","3713298","3713342","3713279","7345732","48233477"]},"5ROzG0o":{"name":"Religion and Ethics","videoIds":["57377971","57355136","57375306","57379661","39904894","78287556"]},"nEN5zAj":{"name":"Science and Engineering Practices","videoIds":["3713221","51724079","50876282","3713711","9203166","40917307"]},"xyLWk4p":{"name":"U.S. History","videoIds":["50168351","53577428","53551209","54090633","49690616","69402165"]},"p3yr17b":{"name":"World History","videoIds":["51415052","51668932","81936739","40913381","50917975","82655889"]}},"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","77649088","51100707","58123778","51407769"]},"laYDvoG":{"name":"Chemistry","videoIds":["48233332","40916556","52318636","58196676","52948049","52938235"]},"LqGrPEj":{"name":"Civics and Government","videoIds":["50800622","50871477","40919577","81574026","77829152","80399681"]},"wLj3A04":{"name":"Earth and Space Science","videoIds":["39927128","40919857","39926995","40915159","51292616","51264452"]},"4GldpJG":{"name":"Geography","videoIds":["51264452","40914544","48449463","81930059","51182016","51240873"]},"dleKgE2":{"name":"Life Sciences","videoIds":["40909818","40910549","50834178","40919211","40908887","50834330"]},"2jre2Oe":{"name":"Physics","videoIds":["6762513","40913948","85029481","81269747","82339649","82340162"]},"W12y493":{"name":"Psychology","videoIds":["40908799","81539973","40908929","81539825","77911442","81540071"]},"yKZ432M":{"name":"Religion and Philosophy","videoIds":["57377971","57375306","57379661","57379674","39904894","78287556"]},"69xJOgr":{"name":"Science and Engineering Practices","videoIds":["50876282","9203166","40917307","57355599","39592894","50962824"]},"jl7Elwx":{"name":"Sociology","videoIds":["81389320","81388819","77911225","47329600","47329600","36508642"]},"Ax2KeMo":{"name":"U.S. History","videoIds":["53487293","50168351","77827742","50793077","50168007","51168977"]},"laYDvwm":{"name":"World History","videoIds":["78902422","39394547","52993554","50917975","51414677","38907954"]}},"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":["3713221","3713363","3711972","5321193","45248896","51271242"]},"NqkJ4xy":{"name":"Chemical Sciences","videoIds":["3712073","48022232","3712074","50800545","50720770","50962883"]},"KAmPJOL":{"name":"Earth and Space Sciences","videoIds":["3716182","34591272","34590945","6683633","6683711","3713739"]},"p0Nm2AY":{"name":"Personal Development and Health","videoIds":["23645932","7593792","7593365","36875667","7587057","9900524"]},"D12Mz8e":{"name":"Physical Education","videoIds":["81770378","38132665","58025996","82328353","47219168","53093878"]},"Oz83dm5":{"name":"Physical Sciences","videoIds":["36554689","3713221","3713695","3713298","84609116","36554677"]}},"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","3716190","3716293","79799081","3716210","79620772"]},"4GzZbpL":{"name":"Computing and ICT","videoIds":["58308441","58307508","48490433","48490093","48611300","59323845"]},"yKjEMbw":{"name":"Law","videoIds":["22372859","54577039","79799081","79620772","5270400","79799099"]},"6wGZWer":{"name":"Media Studies","videoIds":["33204878","47283314","3716275","47244475","3716274","47283102"]},"YvJbwpe":{"name":"Physics","videoIds":["6746382","9831360","6812332","34941552","6762513","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"]}}}'),Ot={CreatePlaylist:function(e){return!(e.hasPlaylist||e.preferredPresentation&&!Tt[e.preferredPresentation.id])}},kt=a.T.encloseNamespace("onboarding.constants"),wt="show-subjects-summary",Rt="show-job-title-to-trial-user",_t={"welcome-video":{id:"welcome-video",getPageTitle:function(){return kt("welcomeVideoPageTitle")},predicate:function(e){return!!pt.shouldRedirectToOnboarding(e.masterUser,e.customer,e.hasPermissions,e.presentations)&&e.instanceRegion===yt.b.US},setting:Et.E.HasCompletedOnboardingStepWelcomeVideo,analyticsLocation:L.LZ.OnboardingWelcomeVideoScreen,includeInProgressBar:function(){return!1},getWidgetHeading:function(){return kt("selectRoleHeading")},getWidgetDescription:function(){return kt("selectRoleMessage")}},"select-role":{id:"select-role",getPageTitle:function(){return kt("selectRolePageTitle")},predicate:function(e){return!pt.hasNonBdmTrial(e.hasPermissions)||(e.jobTitle?"boolean"==typeof lt.SG.get(Rt)?lt.SG.get(Rt):(lt.SG.set(Rt,!1),!1):("boolean"!=typeof lt.SG.get(Rt)&&lt.SG.set(Rt,!0),!0))},setting:Et.E.HasCompletedOnboardingStepSelectRole,analyticsLocation:L.LZ.OnboardingSelectRoleScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return kt("selectRoleHeading")},getWidgetDescription:function(){return kt("selectRoleMessage")}},"usage-intention":{id:"usage-intention",getPageTitle:function(){return kt("usageIntentionPageTitle")},predicate:function(){return!0},setting:Et.E.HasCompletedOnboardingStepUsageIntention,analyticsLocation:L.LZ.OnboardingUsageIntentionScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return kt("usageIntentionHeading")},getWidgetDescription:function(){return kt("usageIntentionMessage")}},"subjects-summary":{id:"subjects-summary",getPageTitle:function(){return kt("subjectsSummaryPageTitle")},predicate:function(e){return"boolean"==typeof lt.SG.cacheGet(wt)||lt.SG.cacheSet(wt,!pt.shouldRedirectToOnboarding(e.masterUser,e.customer,e.hasPermissions,e.presentations)&&!!(null===(t=e.preferredSubjects)||void 0===t?void 0:t.length),604800),lt.SG.cacheGet(wt);var t},setting:Et.E.HasCompletedOnboardingStepSubjectsSummary,analyticsLocation:L.LZ.OnboardingSubjectsSummaryScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return kt("subjectsHeading")},getWidgetDescription:function(){return kt("subjectsMessage")},branches:["school-level","subjects","select-curriculum"]},"school-level":{id:"school-level",getPageTitle:function(){return kt("schoolLevelPageTitle")},predicate:function(e){var t,n;return!(_t["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 Pt.getMappedPresentationLevel(e.learningLevel)===mt.Level_4}))))},setting:Et.E.HasCompletedOnboardingStepSchoolLevel,analyticsLocation:L.LZ.OnboardingSchoolLevelScreen,includeInProgressBar:function(e){return!_t["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return kt(e?"schoolLevelHeadingKdm":"schoolLevelHeading")},getWidgetDescription:function(e){return kt(e?"schoolLevelMessageKdm":"schoolLevelMessage")}},"select-curriculum":{id:"select-curriculum",getPageTitle:function(){return kt("selectCurriculumPageTitle")},predicate:function(e){var t;return!(_t["subjects-summary"].predicate(e)||(null===(t=e.curriculums)||void 0===t?void 0:t.length)<2)},setting:Et.E.HasCompletedOnboardingStepSelectCurriculum,analyticsLocation:L.LZ.OnboardingSelectCurriculumScreen,includeInProgressBar:function(e){return!_t["subjects-summary"].predicate(e)},getWidgetHeading:function(){return kt("selectCurriculumHeading")},getWidgetDescription:function(){return kt("selectCurriculumMessage")}},subjects:{id:"subjects",getPageTitle:function(){return kt("subjectsPageTitle")},predicate:function(e){return!_t["subjects-summary"].predicate(e)},setting:Et.E.HasCompletedOnboardingStepSubjects,analyticsLocation:L.LZ.OnboardingSubjectsScreen,includeInProgressBar:function(e){return!_t["subjects-summary"].predicate(e)},getWidgetHeading:function(e){return kt(e?"subjectsHeadingKdm":"subjectsHeading")},getWidgetDescription:function(){return kt("subjectsMessage")}},"select-videos":{id:"select-videos",getPageTitle:function(){return kt("selectVideosPageTitle")},predicate:Ot.CreatePlaylist,setting:Et.E.HasCompletedOnboardingStepSelectVideos,analyticsLocation:L.LZ.OnboardingSelectVideosScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return kt("selectVideosHeading")},getWidgetDescription:function(e){return kt(e?"selectVideosMessageKdm":"selectVideosMessage")}},"create-playlist":{id:"create-playlist",getPageTitle:function(){return kt("createPlaylistPageTitle")},predicate:Ot.CreatePlaylist,setting:Et.E.HasCompletedOnboardingStepCreatePlaylist,analyticsLocation:L.LZ.OnboardingCreatePlaylistScreen,includeInProgressBar:function(){return!0},getWidgetHeading:function(){return kt("createPlaylistHeading")},getWidgetDescription:function(){return kt("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"}(It||(It={})),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"}(At||(At={}));var jt,Nt={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===Se.ku.Discover?"discover:presentation:".concat(e.presentationId):e.targetType===Se.ku.Classification?"classification:".concat(e.classificationId):e.targetType===Se.ku.ClassificationDirectory?"classification:".concat(e.classificationId,":directory"):e.targetType===Se.ku.ClassificationVideos?"classification:".concat(e.classificationId,":videos"):e.targetType===Se.ku.MoviesAndTv?"moviesAndTv:presentation:".concat(e.presentationId):e.targetType===Se.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===Se.ku.Discover?Nt.getDashboardTarget({targetType:Se.ku.Discover,presentationId:t}):i===Se.ku.MoviesAndTv?Nt.getDashboardTarget({targetType:Se.ku.MoviesAndTv,presentationId:t}):i===Se.ku.Company?Nt.getDashboardTarget({targetType:Se.ku.Company,presentationId:t,companyId:n}):i===Se.ku.Classification?Nt.getDashboardTarget({targetType:Se.ku.Classification,classificationId:r}):i===Se.ku.ClassificationDirectory?Nt.getDashboardTarget({targetType:Se.ku.ClassificationDirectory,classificationId:r}):i===Se.ku.ClassificationVideos?Nt.getDashboardTarget({targetType:Se.ku.ClassificationVideos,classificationId:r}):void 0},getDashboardTargetInfo:function(e){var t,n=Nt.getDashboardTargetType(e),i=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.split(":");return n===Se.ku.Discover?{targetType:Se.ku.Discover,presentationId:i[2]}:n===Se.ku.Classification?{targetType:Se.ku.Classification,classificationId:i[1]}:n===Se.ku.ClassificationDirectory?{targetType:Se.ku.ClassificationDirectory,classificationId:i[1]}:n===Se.ku.ClassificationVideos?{targetType:Se.ku.ClassificationVideos,classificationId:i[1]}:n===Se.ku.MoviesAndTv?{targetType:Se.ku.MoviesAndTv,presentationId:i[2]}:n===Se.ku.Company?{targetType:Se.ku.Company,companyId:i[1],presentationId:i[3]}:null},getDashboardTargetType:function(e){return(null==e?void 0:e.target)?e.target.startsWith("discover")?Se.ku.Discover:e.target.startsWith("classification")?e.target.endsWith("directory")?Se.ku.ClassificationDirectory:e.target.endsWith("videos")?Se.ku.ClassificationVideos:Se.ku.Classification:e.target.startsWith("moviesAndTv")?Se.ku.MoviesAndTv:e.target.startsWith("company")?Se.ku.Company:null:null},isType:function(e,t){return Nt.getDashboardTargetType(e)===t},isCuratedDashboard:function(e){var t=e,n=Nt.getDashboardTargetType(t);return n===Se.ku.Discover||n===Se.ku.Classification||n===Se.ku.ClassificationDirectory||n===Se.ku.ClassificationVideos||n===Se.ku.MoviesAndTv||n===Se.ku.Company},getLatestReleasedTimeRange:function(){var e=new Date;return{from:Ae.O.format(Ae.O.endOf(Ae.O.subtract(e,2,"month"),"day"),"YYYY-MM-DD"),to:Ae.O.format(Ae.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),Ft[e].getCustomParams(t,n))},isSystemGeneratedDashboard:function(e){var t=new Set([At.ClassificationFeaturedVideo,At.ClassificationPinnedVideos,At.ClassificationPlaylists,At.ClassificationSeries]);return null==e?void 0:e.some((function(e){return t.has(e.widgetId)}))},isClassificationDashboard:function(e){return[Se.ku.Classification,Se.ku.ClassificationDirectory,Se.ku.ClassificationVideos].includes(null==e?void 0:e.targetType)}};function xt(e){return xt="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},xt(e)}function Dt(e,t,n){return(t=function(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(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 Bt,Ft=(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(jt={},At.CuratedMedia,{getCustomParams:function(){return{}}}),At.PlaylistMedia,{getCustomParams:function(){return{}}}),At.SeriesMedia,{getCustomParams:function(e){switch(e){case It.ThumbnailFixedListMediaLarge:return{limit:2};case It.ThumbnailHeroMedia:case It.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))}}),At.ClassificationMedia,{getCustomParams:function(){return{}}}),At.LatestReleasedVideos,{getCustomParams:function(){return Nt.getLatestReleasedTimeRange()}}),At.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)}}),At.CompanyLatestReleasedVideo,{getCustomParams:function(){return{}}}),At.CompanyVideos,{getCustomParams:function(){return{}}}),At.ClassificationLatestReleasedVideo,{getCustomParams:function(){return{}}}),At.ClassificationLatestReleasedVideosV2,{getCustomParams:function(){return{limit:12}},minContent:4}),Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(jt,At.SeasonalClassificationMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),At.CompanyClassificationVideos,{getCustomParams:function(){return{}},minContent:4}),At.TrendingClassificationsMedia,{getCustomParams:function(){return{limit:12}},minContent:4}),At.CuratedClassifications,{getCustomParams:function(){return{}}}),At.TrendingClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),At.Classifications,{getCustomParams:function(e,t){if(t===Se.ku.Discover){if(e===It.EditableCoverFixedPillListSmall)return{canBePreferred:!0,isFollowing:!0};if([It.PosterSlidingListSmall,It.CoverFixedPillListXSmall].includes(e))return{canBePreferred:!0}}return{}}}),At.ClassificationLatestReleasedVideos,{getCustomParams:function(){return Nt.getLatestReleasedTimeRange()}}),At.SpecialEventClassifications,{getCustomParams:function(){return{from:Ae.O.format(new Date,"YYYY-MM-DD")}}}),At.LatestReleasedClassifications,{getCustomParams:function(){return{limit:6}},minContent:3}),At.CuratedSeries,{getCustomParams:function(){return{}}}),Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(jt,At.CuratedPlaylists,{getCustomParams:function(){return{}}}),At.Blurb,{getCustomParams:function(){return{}}}),At.DynamicBlurb,{getCustomParams:function(e){return e===It.OnboardingSteps?{customerSetting:[Et.E.HasNewOnboarding],userSettings:[].concat((t=Object.values(_t).map((function(e){return e.setting})),function(e){if(Array.isArray(e))return Mt(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 Mt(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)?Mt(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.")}()),[Et.E.HasCompletedOnboardingV2,Et.E.HasExitedOnboarding])}:{};var t}}),At.AuthorReviewer,{getCustomParams:function(){return{}}}),At.Faq,{getCustomParams:function(){return{}}}),At.CuratedCompanies,{getCustomParams:function(){return{}}}),At.Ratings,{getCustomParams:function(){return{}}}),At.Presentations,{getCustomParams:function(){return{}}}),At.UpcomingLivestreams,{getCustomParams:function(){return{from:Ae.O.format(new Date,"YYYY-MM-DD")}}}),At.CuratedMultimedia,{getCustomParams:function(){return{}}}),Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(jt,At.ClassificationPlaylists,{getCustomParams:function(){return{}}}),At.ClassificationSeries,{getCustomParams:function(){return{}}}),At.ClassificationFeaturedVideo,{getCustomParams:function(){return{}}}),At.ClassificationPinnedVideos,{getCustomParams:function(){return{}}}),At.ClassificationDashboardExternalMedia,{getCustomParams:function(){return{}}}),At.ClassificationDashboardMedia,{getCustomParams:function(){return{}}}),At.SearchRelevantTopics,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchRelevantTopics],type:[de.Classification]})}}),At.SearchCompanies,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchCompanies],type:[de.Company]})}}),At.SearchSeries,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchSeries],type:[de.Series]})}}),At.SearchPlaylists,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchPlaylists],type:[de.Playlist]})}}),Dt(Dt(Dt(Dt(Dt(Dt(Dt(jt,At.SearchMyVideosFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchMyVideosFolder],source:[ue.MyVideos]})}}),At.SearchMySchoolLibraryFolder,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchMySchoolLibraryFolder],source:[ue.School]})}}),At.SearchMyVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchMyVideos],source:[ue.MyVideos]})}}),At.SearchMySchoolLibraryVideos,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchMySchoolLibraryVideos],source:[ue.School]})}}),At.SearchExchangeArchive,{getCustomParams:function(){return{}},getCollectionAppLink:function(e){return e.searchHome({focus:[At.SearchExchangeArchive],source:[ue.ExchangeArchive]})}}),At.SearchRelatedResults,{getCustomParams:function(){return{}}}),At.SearchTopResults,{getCustomParams:function(){return{}}}));!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(Bt||(Bt={}));var Vt,Ut=n(38e3);function qt(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"}(Vt||(Vt={}));var Gt={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,a){return r().useMemo((function(){var r;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var o,s=null!==(r=null==i?void 0:i.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==r?r:{},l=a.reduce((function(e,t){return e[t]=!0,e}),{}),c=function(e){if(Array.isArray(e))return qt(e)}(o=e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return qt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(e,t):void 0}}(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.")}(),u=c.sort((function(e,t){var n,i,r,a;if(!("id"in e)||!("id"in t))return 0;var o=null!==(i=null===(n=s[e.id])||void 0===n?void 0:n.index)&&void 0!==i?i:c.findIndex((function(t){return"id"in t&&t.id===e.id})),l=null!==(a=null===(r=s[t.id])||void 0===r?void 0:r.index)&&void 0!==a?a:c.findIndex((function(e){return"id"in e&&e.id===t.id}));return o<l?-1:o>l?1:0}));if(Gt.isBelowContentMinimum(u,t)&&!n)return{content:[],unfilteredContent:u};var d=u.filter((function(e){var t;return!(null===(t=s["id"in e&&e.id])||void 0===t?void 0:t.hidden)&&!l["id"in e&&e.id]}));return{content:d,unfilteredContent:u}}),[e,i])},isBelowContentMinimum:function(e,t){var n,i=(null===(n=Ft[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)===Se.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)===Se.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 Vt.Archived:t=Bt.Archived;break;case Vt.Published:t=Bt.Published;break;case Vt.Draft:t=Bt.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 At.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 At.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 At.ContinueWatching:e.content=e.content.map((function(e){return"object"in e&&e.object}));default:break;case At.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===At.Blurb},canDisplayOnScreenSize:function(e,t,n){return t!==At.Blurb||n!==It.HeroBannerSmall||!e.xs&&!e.sm},isCompanyWidget:function(e){switch(e){case At.CompanyLatestReleasedVideo:case At.CompanyVideos:case At.UpcomingLivestreams:return!0;default:return!1}},getVideoContent:function(e){var t=P.m.first(e);return Ut.G.isType(t,Re.E.Series)?t.videos.data:e},showRemoveButton:function(e){return e===At.ContinueWatching}},Ht={seeMore:"yv0FS"},Wt=a.T.encloseNamespace("shared.widgetHeader");function Yt(e){return r().createElement("div",{className:"ms-3 ".concat(Ht.seeMore)},r().createElement(st.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"},Wt("seeAll"))))}function Jt(e){var t,n,i=!!e.description;if(!e.name&&!e.description)return r().createElement(r().Fragment,null);var a=Gt.isBelowContentMinimum(e.content,e.widgetTypeId),o=null!==(n=null===(t=Ft[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(st.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(Yt,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(Yt,Object.assign({},e))))}function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function zt(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 Xt,Qt=400;function $t(e){var t=e.type,n=e.state,i=e.containerRef,a=e.mediaQuery,o=zt(r().useState(!1),2),s=o[0],l=o[1],c=zt(r().useState({}),2),u=c[0],d=c[1],m=zt(r().useState(null),2),f=m[0],v=m[1],g=r().useMemo((function(){return ot.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"!=Kt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kt(t)?t:t+""}(r))in i?Object.defineProperty(i,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[r]=a,i))}),{});d(r)}}()}),Qt+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()}}),Qt+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()}}),Qt+100)}}}!function(e){e.Percentage="%",e.Pixels="px"}(Xt||(Xt={}));var en=new Image;en.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var tn,nn=function(e){e.dataTransfer.setDragImage&&N.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(en,0,0)},rn=ot.V.isTouchScreen(),an=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===Xt.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=nn,n.onDragOver=c),d&&m&&rn&&(n.onTouchMoveCapture=d,n.onTouchEndCapture=m),n)),s)})),on="VSAPU",sn="kgeXh",ln=a.T.encloseNamespace("shared.widgetButton");!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(tn||(tn={}));var cn,un=i.memo((function(e){var t,n,r,a=e.direction===tn.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?on:sn),tabIndex:-1}),i.createElement("button",{className:"".concat((t="BVcIS",t+=a?" ".concat(on," ").concat(e.leftButtonClassName):" ".concat(sn," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick,"aria-label":ln(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"}(cn||(cn={}));var dn=n(90547),mn=n(5256),fn=n(29267);function vn(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 gn=n(89146),pn=function(e,t,n){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:cn.Resize,payload:{elementRefs:e,mediaQuery:n}})}},yn=function(e){return function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}},bn=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:cn.Drag,payload:{widgetSnapshot:s,currentMouseX:o}})}},hn=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}};function Sn(e){return e===dn.r.XS?200:e===dn.r.SM||e===dn.r.MD?350:500}var Cn={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},En=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 Cn;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({},Cn),{containerLeftPosition:a,containerRightPosition:o,firstElementPosition:s,lastElementPosition:l,hideRightButton:l<o,leftOffsetLimit:c,maxSlideDistance:Sn(e.mediaQuery)})},In=function(e){var t=En(Object.assign(Object.assign({},e),e.elementRefs));return Object.assign(Object.assign({},t),{maxSlideDistance:Sn(e.mediaQuery)})},An=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}},Ln=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}},Pn=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 Tn(e,t){switch(t.type){case cn.Init:return Object.assign(Object.assign({},e),En(t.payload));case cn.Resize:return Object.assign(Object.assign({},e),In(t.payload));case cn.Next:return Object.assign(Object.assign({},e),An(e));case cn.Previous:return Object.assign(Object.assign({},e),Ln(e));case cn.Drag:return Object.assign(Object.assign({},e),Pn(e,t.payload));default:return e}}var On={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 kn(e){return function(e){if(Array.isArray(e))return _n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rn(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 wn(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)||Rn(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 Rn(e,t){if(e){if("string"==typeof e)return _n(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_n(e,t):void 0}}function _n(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 jn(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=wn(i.useReducer(Tn,Cn),2),v=f[0],g=f[1],p=wn(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,mn.a)(dn.r.XS),n=(0,mn.a)(dn.r.SM),r=(0,mn.a)(dn.r.MD),a=(0,mn.a)(dn.r.LG),o=(0,mn.a)(dn.r.XL),s=(0,mn.a)(dn.r.XXL),l=dn.r.LG,t&&(l=dn.r.XS),n&&(l=dn.r.SM),r&&(l=dn.r.MD),a&&(l=dn.r.LG),o&&(l=dn.r.XL),s&&(l=dn.r.XXL),l),C=ot.V.isTabletOrMobile(),E=$t({type:"dynamic",state:v,containerRef:h.container,mediaQuery:S}),I=E.dynamicAttributes,A=E.focusNext,L=E.focusPrev,O=E.onFocusWidget,k=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 vn(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 vn(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)?vn(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.")}())}(pn(h,g,S),yn(h.container),[S]);var w=(0,fn.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:cn.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 O(n)},onBlur:function(){return k()},className:"".concat(On.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),Gt.getSliderItemAnalyticsOptions())},e.childComponentProps)))}));return r.length&&(o=[].concat(kn(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(On.itemSpacing," ").concat(e.childClassName||"")},i.createElement(r,null))}))),kn(o))),a.length&&(o=[].concat(kn(o),kn(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(On.itemSpacing," ").concat(e.childClassName||"")},i.createElement(r,null))}))))),i.createElement(i.Fragment,null,o)}}),[j,I,v.offset,S].concat(kn(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(Nn,{partialLoadingComponent:e.partialLoadingComponent,partialLoadingOptions:e.partialLoadingOptions}));var B=function(t){return Object.assign(Object.assign({},e.analyticsData),{id:e.id,name:e.heading,direction:t===cn.Next?"right":"left"})},F=C||e.hideButtons;return i.createElement("div",{className:"".concat(e.noNegativePadding?"":"mx-n4")},i.createElement("div",{className:"px-4 ".concat(On.header)},i.createElement(Jt,{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?On.mobileScroll:"overflow-hidden-x")},i.createElement("div",{className:"position-relative ".concat(e.hideButtons?"overflow-hidden-x":"")},!F&&i.createElement(un,{direction:tn.Left,onClick:function(){L(),g({type:cn.Previous}),D.k.logUserAction(B(cn.Previous),Gt.getSliderAnalyticsOptions())},leftButtonClassName:"".concat(On.leftButton," ").concat(e.noNegativePadding?On.leftButtonNoPadding:""),leftGradientClassName:"".concat(On.leftGradient," ").concat(e.noNegativePadding?On.leftGradientNoPadding:""),hide:v.hideLeftButton,useGradientBackdrop:!0}),i.createElement(an,{position:v.offset,positionType:Xt.Pixels,onDrag:bn(h.container,v,g,y,b),onDragEnd:hn(h.container,b),ref:h.container},M),!F&&i.createElement(un,{direction:tn.Right,onClick:function(){A(),g({type:cn.Next}),D.k.logUserAction(B(cn.Next),Gt.getSliderAnalyticsOptions())},hide:v.hideRightButton,rightButtonClassName:"".concat(On.rightButton," ").concat(e.noNegativePadding?On.rightButtonNoPadding:""),rightGradientClassName:"".concat(On.rightGradient," ").concat(e.noNegativePadding?On.rightGradientNoPadding:""),useGradientBackdrop:!0})))))}jn.defaultProps={heading:"",description:"",childComponentProps:{}};var Nn=function(e){var t=e.partialLoadingComponent,n=e.partialLoadingOptions;return i.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},gn.u.getPartialLoadingItems(n).map((function(e,n){return i.createElement(t,{key:n})})))},xn=a.T.encloseNamespace("shared.tags");function Dn(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===St.Normal&&e.themeColours&&!!(null===(n=e.themeColours)||void 0===n?void 0:n.secondary),f="".concat(rt.badgeBase," rounded-pill py-1 px-2 my-1 me-1 ").concat(c," ").concat(function(e,t){switch(e){case St.Pedagogy:case St.Skill:return"pedagogy-tag text-white";case St.Hidden:return"hidden-tag fw-normal";case St.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+=" "+rt.disabled),e.onRemove&&(f+=" "+rt.removeBadge,v+=" "+"".concat(rt.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(st.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(xn("ariaFilter")," ").concat(u)},r().createElement("span",{className:v},u,e.onRemove&&r().createElement("button",{onClick:e.onRemove,className:"".concat(rt.close," btn-close font-size-normal"),role:"button","aria-label":"Close"})))}function Mn(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"bg-gray-900 text-white":"bg-light";return r().createElement(Dn,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," lh-1"),onClick:function(){return e.onClick(e.data)}})}var Bn={tagItem:"j84HW"};function Fn(e){return Fn="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},Fn(e)}function Vn(e){return function(e){if(Array.isArray(e))return Un(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 Un(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)?Un(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 Un(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 qn(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(Vn(l.slice(0,c)),Vn(l.slice(c+1)));a={active:!!u.length,selection:u}}else a={active:!0,selection:l.concat(t)};He.applyFilter([e.filter],s,(n={},i=e.filter.id,r=a,(i=function(e){var t=function(e){if("object"!=Fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fn(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(Vn(l),Vn(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(jn,{collection:m,childComponent:function(e){return r().createElement(Mn,Object.assign({},e,{selectedItems:l,onClick:u}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return r().createElement(at,{tagClass:Bn.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return r().createElement("div",{className:"me-2"},r().createElement(at,{tagClass:"".concat(Bn.tagItem)}))}})))}function Gn(e){var t=i.useContext(_).state;return i.createElement(k.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 Hn={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function Wn(e){return function(e){if(Array.isArray(e))return Jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yn(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 Yn(e,t){if(e){if("string"==typeof e)return Jn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(e,t):void 0}}function Jn(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 Kn(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 He.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)||Yn(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&&He.logFilterEvent(e.mainFilters,e.moreFilters,d,r.query,e.analyticsOptions))}),[d]);var g=P.m.uniq([].concat(Wn(He.getAppliedIndices(r,e._hasNewSearch)),Wn(u))),p=He.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(Hn.filtersContainer," ").concat(o?"":"ms-2")},h.map((function(t){return i.createElement(Xe,{key:t.id,filter:t,hideCaret:e.hideCaret})})),b&&i.createElement(it,{filter:b}),He.hasActiveFilters(r)&&!e.hideResetButton&&i.createElement(Gn,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:r.query,analyticsOptions:e.analyticsOptions,alignLeft:e.alignResetButtonLeft}))),i.createElement(qn,{filter:S,queryParams:r,isFetching:e.isFetchingOptions}))))}var zn=a.T.encloseNamespace("libraryRequests.filters");function Zn(e){return r().createElement(Kn,{queryParams:e.queryParams,mainFilters:[{id:"status",name:"Status",type:"checkbox",options:[{id:"approved",name:zn("approved")},{id:"rejected",name:zn("rejected")},{id:"closed",name:zn("closed")},{id:"autoApproved",name:zn("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 Xn=n(45855),Qn=n(49824),$n=n(27789),ei=n(7044),ti=n(21974),ni=n(264),ii=n(65402),ri="libraryRequests.pastDetails";function ai(e){var t=(0,ii.$)(e.status);return r().createElement("span",{className:"ms-1"},t)}function oi(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(ii.h,{status:e.libraryRequest.status}),r().createElement(ai,{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:ri,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:ri,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:ri,phrase:"videoSource"})),r().createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&r().createElement("span",{className:"badge p-1 me-1 text-white ".concat(ti.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},ti.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,ni.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:ri,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 si(){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 li=n(17950),ci=n(9416),ui=n(25796),di=n(41026),mi=n(59198),fi=n(85739),vi=n(30328),gi=n(64429),pi=n(39123),yi=n(41777),bi=n(56154),hi="libraryRequests.pastRequestsEmptyState",Si=a.T.encloseNamespace(hi);function Ci(e){return r().createElement("div",{className:"bg-white rounded p-3 py-5"},r().createElement(yi.u,null,r().createElement(yi.u.Image,{src:bi.W.EmptyStates.PAST_REQUESTS}),r().createElement(yi.u.Info,{className:"mb-1"},r().createElement(c.x,{namespace:hi,phrase:"info"})),e.hasLibraries&&r().createElement(yi.u.Cta,{text:Si("cta"),className:"btn btn-link text-info",appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Ei(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 Ii(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}(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 Ii(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 Ai="libraryRequests.pastRequests",Li=a.T.encloseNamespace(Ai),Pi=[E.l.Approved,E.l.Closed,E.l.Rejected,E.l.AutoApproved];function Ti(e){var t,n,i,a,S,C=o.a.useGetFetch(),E=(0,m.Z)(),I=(0,fi.p)(e.queryParams.sort||u.D.Newest,e.queryParams.status||Pi),L=o.a.useBasicFetch(e.id&&ui.y.libraryRequest(e.id)),P=(0,mi.s)(e.id),T=Ei(r().useState(null),2),O=T[0],k=T[1];(0,s.i)(h.T.getLibrariesFetchOptions((function(e){return k(e.toJSON())})),[]),(0,pi.g)(k);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)&&ui.y.categoryPath(L.data.destinationLibrary.id,L.data.destinationCategory.id)),R=Ei(r().useState(null),2),_=R[0],j=R[1];(0,s.i)(y.p.getConfigFetchOptions(j),[]);var N=Ei(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,vi.A)({id:e.id,requests:I.items,appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS,params:e.queryParams}}),(0,gi.m)(L.data,"past",e.queryParams),(0,di.K)(L.data);var B=((null===(i=I.items)||void 0===i?void 0:i.length)||I.hasCompleted)&&_&&M.data,F=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:Ai,phrase:"title"})),r().createElement("div",{className:"mb-3"},r().createElement(l.Oo,{breadcrumbs:[{name:Li("libraryEditor"),appLink:{application:g.OV.LIBRARY_EDITOR,action:g.eX.LibraryEditor.HOME}},{name:Li("title"),active:!0}]})),r().createElement(ci.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(li.F,{appLink:{application:g.OV.LIBRARY_REQUESTS,action:g.eX.LibraryRequests.PAST_REQUESTS,args:[e.id]},queryParams:e.queryParams})),!B||(null===(S=I.items)||void 0===S?void 0:S.length)?r().createElement("div",{className:"row"},r().createElement("div",{className:"col-4"},B?r().createElement($n.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(ei.p,null)),r().createElement("div",{className:"col-8"},B&&F?r().createElement(r().Fragment,null,r().createElement(A,{libraryRequest:L.data}),r().createElement(oi,{libraryRequest:L.data,folderPath:w.data,user:x}),r().createElement(Xn.x,{libraryRequest:L.data,currentUser:M.data,comments:P.items,config:_,user:x,createViewKey:function(t,n){var i=ui.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(si,null),r().createElement(Qn.j,null)))):r().createElement(Ci,{hasLibraries:!!O.length}))}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8727],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return v}});var o=n(48088),r=n(57857),i=n(31647),a=n(52076),u=n(70065),l=n(93569),c=n(91553),s=n.n(c);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,y(o.key),o)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(i=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(u.eu.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(u.eu.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:r.T.getPhrase(this.lang,"dialogTitle"),text:r.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:r.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:u.LZ.AwaitingReviewVideoListHeader,actionType:u.Vw.Approve,descriptor:u.yh.All,entity:u.py.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},7572:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(57857),r=n(31647),i=n(50997),a=n(57085),u=n(35630),l=n(39090),c=n(5181),s=n.n(c),p={tabsContainer:"PDRLS"};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"border-bottom px-3 d-flex flex-column"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new a.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:o.T.getPhrase(this.lang,"libraryEditor"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.HOME},active:!1},{name:o.T.getPhrase(this.lang,"contentUpdates"),active:!0}]}))}},{key:"renderTabs",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new u.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}},{key:"viewOptions",value:function(){return{styles:p}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderTabs()}}],r&&y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},95920:function(t,e,n){"use strict";n.d(e,{m:function(){return h}});var o=n(31647),r=n(52076),i=n(70065),a=n(25692),u=n(98985),l=n(57098),c=n(264),s=n(67732),p=n.n(s);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:i.LZ.LeftNav,actionType:i.Vw.Disable,entity:i.py.CustomerSetting,descriptor:i.YK.LibraryReview,workflowPhase:i.eu.Start};r.k.logUserAction({},t)}},{key:"viewOptions",value:function(){return{supportUrl:!c.g.hasLite&&u.o.getOnlineArticle(a.s.LibraryReview)}}}])&&y(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return j}});var o=n(57857),r=n(31647),i=n(80758),a=n(58688),u=n(80867),l=n(57098),c=n(29457),s=n(14727),p=n.n(s),f=n(89364),y=n.n(f);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,h(o.key),o)}}function v(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function g(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}var P=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:l.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0,libraries:this.options.libraries}))}}])}(r.Q.wA),T=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return P}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),j=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:c.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:l.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===c.ub.AwaitingReview?{heading:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===c.ub.PastReleases?{heading:o.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new T(this.options))}}])}(r.Q.wA)},91553:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<div class="pt-3 pb-2">\n <h1 class="h3 m-0">\n '+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'\n </h1>\n</div>\n\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region d-inline-flex align-items-end '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return' <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+l(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+l((n.lang||e&&e.lang||u).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return'<div class="p-3 border-bottom">\n <h5>'+l((n.lang||e&&e.lang||u).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\n <p>"+l((n.lang||e&&e.lang||u).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+l((n.lang||e&&e.lang||u).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\n</div>\n<div class="p-3 border-bottom">\n <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="ps-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},29565:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8727],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return v}});var o=n(48088),r=n(57857),i=n(31647),a=n(52076),u=n(70065),l=n(93569),c=n(91553),s=n.n(c);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,y(o.key),o)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(t,e){if(e&&("object"==p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,b()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(i=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(u.eu.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(u.eu.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:r.T.getPhrase(this.lang,"dialogTitle"),text:r.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:r.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:u.LZ.AwaitingReviewVideoListHeader,actionType:u.Vw.Approve,descriptor:u.yh.All,entity:u.py.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},7572:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(57857),r=n(31647),i=n(50997),a=n(57085),u=n(35630),l=n(39090),c=n(5181),s=n.n(c),p={tabsContainer:"PDRLS"};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"border-bottom px-3 d-flex flex-column"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new a.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:o.T.getPhrase(this.lang,"libraryEditor"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.HOME},active:!1},{name:o.T.getPhrase(this.lang,"contentUpdates"),active:!0}]}))}},{key:"renderTabs",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new u.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}},{key:"viewOptions",value:function(){return{styles:p}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderTabs()}}],r&&y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},46415:function(t,e,n){"use strict";n.d(e,{m:function(){return h}});var o=n(31647),r=n(52076),i=n(70065),a=n(25692),u=n(98985),l=n(57098),c=n(264),s=n(67732),p=n.n(s);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:i.LZ.LeftNav,actionType:i.Vw.Disable,entity:i.py.CustomerSetting,descriptor:i.YK.LibraryReview,workflowPhase:i.eu.Start};r.k.logUserAction({},t)}},{key:"viewOptions",value:function(){return{supportUrl:!c.g.hasLite&&u.o.getOnlineArticle(a.s.LibraryReview)}}}])&&y(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return j}});var o=n(57857),r=n(31647),i=n(80758),a=n(58688),u=n(80867),l=n(57098),c=n(29457),s=n(14727),p=n.n(s),f=n(89364),y=n.n(f);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,h(o.key),o)}}function v(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function g(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}var P=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:l.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0,libraries:this.options.libraries}))}}])}(r.Q.wA),T=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return P}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),j=function(t){function e(t){return d(this,e),g(this,e,[t])}return O(e,t),v(e,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:c.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:l.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===c.ub.AwaitingReview?{heading:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===c.ub.PastReleases?{heading:o.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new T(this.options))}}])}(r.Q.wA)},91553:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<div class="pt-3 pb-2">\n <h1 class="h3 m-0">\n '+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'\n </h1>\n</div>\n\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region d-inline-flex align-items-end '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return' <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+l(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+l((n.lang||e&&e.lang||u).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return'<div class="p-3 border-bottom">\n <h5>'+l((n.lang||e&&e.lang||u).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\n <p>"+l((n.lang||e&&e.lang||u).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+l((n.lang||e&&e.lang||u).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\n</div>\n<div class="p-3 border-bottom">\n <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="ps-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},29565:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 8952-a9a7742f72.chunk.js.LICENSE.txt */
1
+ /*! For license information please see 8952-4201ae6599.chunk.js.LICENSE.txt */
2
2
  (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8952],{21053:function(e,t,r){"use strict";r.d(t,{W:function(){return g}});var n=r(48088),i=r(57857),o=r(31647),a=r(57085),c=r(35630),s=r(57098),u=r(43791),l=r.n(u),h={svgContainer:"mtegw"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=v(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,r||[],v(e).constructor):t.apply(e,r))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),r=t,(o=[{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"lang",get:function(){return"libraryEditor.editVideoTabs"}},{key:"template",get:function(){return l()}},{key:"viewOptions",value:function(){return{styles:h}}},{key:"onSave",value:function(){n.Radio.channel(s.OV.LIBRARY_EDITOR).trigger(s.eX.LibraryEditor.SAVE_VIDEO)}},{key:"getLocationBreadcrumb",value:function(){switch(this.options.context){case"edit":return{name:i.T.getPhrase(this.lang,"videoDetails")};case"chapters":return{name:i.T.getPhrase(this.lang,"chapters")};case"resources":return{name:i.T.getPhrase(this.lang,"resources")}}}},{key:"onRender",value:function(){this.showChildView("tabs",new c.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new a.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&p(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.wA)},61596:function(e,t,r){"use strict";r.d(t,{$:function(){return c}});var n=r(39479),i=r(57857),o=r(93569),a="libraryEditor.utils",c={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>o.X4.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()}},s={Name:{Invalid:function(){return i.T.getPhrase(a,"chapterNameInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterNameExists")},MaxLength:function(){return i.T.getPhrase(a,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.T.getPhrase(a,"chapterStartTimeInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterStartTimeExists")},Exceeds:function(){return i.T.getPhrase(a,"chapterStartTimeExceeds")}}}},16704:function(e,t,r){"use strict";r.r(t),r.d(t,{EditChaptersView:function(){return A}});var n=r(99748),i=r(21679),o=r(57857),a=r(31647),c=r(52076),s=r(70065),u=r(59054),l=r(13156),h=r(57e3),f=r(89167),p=r(57098),d=r(29457),y=r(74749),v=r(48404),m=r(19226),g=r(93569),b=r(264),w=r(45114),E=r(70693),T=r(21053),k=r(40622),C=r(56906),O=r(95061),S=r(61159),L=r.n(S);function P(e){return P="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},P(e)}function x(){x=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),c=new j(n||[]);return i(a,"_invoke",{value:S(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,T=E&&E(E(N([])));T&&T!==r&&n.call(T,a)&&(w=T);var k=b.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,o,a,c){var s=h(e[i],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==P(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function S(t,r,n){var i=f;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var s=L(c,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=h(t,r,n);if("normal"===u.type){if(i=n.done?y:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function L(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(P(t)+" is not iterable")}return g.prototype=b,i(k,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new O(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),u(k,s,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return c.type="throw",c.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function j(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}var A=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=I(t),function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,N()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r))}(this,t,[e]))._viewKeyRequested=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(t,e),r=t,(S=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),g.Si.initBackButton()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"template",get:function(){return L()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:d.LP.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:d.LP.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:d.LP.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:d.LP.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(this.channelName,k.NT.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,k.NT.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,k.NT.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,k.NT.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,k.NT.SeekToChapter,this.onSeekToChapter)}},{key:"initializeDataServices",value:function(){this.videoDataService=i.u.getInstance(p.Or.Video,this),this.chapterDataService=i.u.getInstance(p.Or.Chapter,this),this.playerDataService=i.u.getInstance(p.Or.Player,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case n.h.NotFound:a.Q.Ry.throw(new C.l1);break;case n.h.Forbidden:a.Q.Ry.throw(new C.aV)}}},{key:"updateChapters",value:function(){var e=this;if(b.g.hasLite){var t=this.chapters.toJSON().reverse().reduce((function(t,r){var n=t[t.length-1];return[].concat(function(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 r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?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.")}()}(t),[{timestamp:r.startTime,endTimestamp:(null==n?void 0:n.timestamp)||e.player.duration(),name:r.name}])}),[]).reverse();this.player.setChapters(t)}}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:o.T.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,r=new y.W(e);this.chapters.add(r),r.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,(function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.updateChapters(),t.logAction(e,s.Vw.Create)}))}},{key:"onUpdateChapter",value:function(e){var t=this,r=this.chapters.find((function(t){return t.get("id")===e.id}));r.set("loading",!0);var n=l.J.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(r.id,e.name,e.startTime,(function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.updateChapters(),t.logAction(e,s.Vw.Edit)}),n)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,s.Vw.Delete),t.chapters.remove(e),t.updateChapters()}))}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=g.X4.millisecondsToSeconds(this.model.get("duration"))&&(this.player?this.player.currentTime(e):this.webPlayer.seekTo(e))}},{key:"logAction",value:function(e,t){var r=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));c.k.logUserAction(r,{actionType:t,entity:s.py.Chapter,location:s.LZ.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){return t=this,r=void 0,n=void 0,i=x().mark((function t(){var r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0)){t.next=2;break}return t.abrupt("return");case 2:if(!this.player){t.next=9;break}return t.next=5,this.player.getChapters();case 5:return r=t.sent,n=r[e],this.player.currentTime(n.timestamp),t.abrupt("return");case 9:this.webPlayer.seekToChapter(e);case 10:case"end":return t.stop()}}),t,this)})),new(n||(n=Promise))((function(e,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function c(e){try{s(i.throw(e))}catch(e){o(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,c)}s((i=i.apply(t,r||[])).next())}));var t,r,n,i}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new E.Q({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!0,editable:!0,showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new w.L({model:new y.W,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(p._2.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderEditComponents",value:function(){this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){var e=g.BK.canEditVideo(this.model);this.showChildView("tabs",new T.W({model:this.model,tabs:g.Si.getEditVideoTabs(this.options.videoId,e),activeTab:".edit-chapters-applink",context:"chapters",folder:this.folder,libraries:this.libraries}))}},{key:"renderWebPlayer",value:function(){if(this.playerViewKey)return this.player=new h.l({model:this.playerViewKey,playerApiUrl:this.config.get("playerApiUrl"),channelName:this.channelName,inactivityTimeout:0}),void this.showChildView("webplayer",this.player);this.webPlayer=new f.Q({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1,currentUser:this.currentUser}),this.showChildView("webplayer",this.webPlayer)}},{key:"redirectToVideoDetails",value:function(){a.Q.C$.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.model&&(g.BK.canEditVideo(this.model)?(this.chapters=this.model.chapters,this.folder=this.model.categories.first(),b.g.hasLite&&!this._viewKeyRequested&&(this._viewKeyRequested=!0,this.playerDataService.createViewKey(this.model.get("id"),u.f.MasterObject,(function(t){e.playerViewKey=t,e.render()})))):this.redirectToVideoDetails())}},{key:"shouldRender",value:function(){return!(!this.model||b.g.hasLite&&!this.playerViewKey)}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:m.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents()}}])&&_(r.prototype,S),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,S}(a.Q.G7)},43791:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(o=null!=(o=r.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region ps-2"></div>'},useData:!0})},61159:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return'<div class="tab-region w-100"></div>\n<div class="row">\n <div class="col-6 pt-3">\n <div class="webplayer-region"></div>\n <div class="add-chapter-region"></div>\n </div>\n <div class="col-6 mb-2 pt-3">\n <div class="chapter-list-region"></div>\n </div>\n</div>'},useData:!0})}}]);