@clickview/library-editor 1.30.1-rc.0 → 1.31.1-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.
- package/dist/bundles.json +2 -2
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{101-a701f58f41.chunk.js → 101-b9e3225b91.chunk.js} +1 -1
- package/dist/scripts/1010-9a727bc31b.chunk.js +1 -0
- package/dist/scripts/{1086-fceae67e5d.chunk.js → 1086-e32c9626ca.chunk.js} +1 -1
- package/dist/scripts/1216-5b676a069e.chunk.js +1 -0
- package/dist/scripts/1269-be11a3a914.chunk.js +1 -0
- package/dist/scripts/1364-de6c9dc9b1.chunk.js +1 -0
- package/dist/scripts/1409-47824f7c3a.chunk.js +1 -0
- package/dist/scripts/1492-71435d7c13.chunk.js +1 -0
- package/dist/scripts/1601-c0c74e7f70.chunk.js +2 -0
- package/dist/scripts/1832-3f3a594798.chunk.js +1 -0
- package/dist/scripts/1887-883d43d800.chunk.js +1 -0
- package/dist/scripts/1911-2b79627b10.chunk.js +1 -0
- package/dist/scripts/{1934-085c7af5db.chunk.js → 1934-2174e052c3.chunk.js} +1 -1
- package/dist/scripts/2254-889a9126f0.chunk.js +1 -0
- package/dist/scripts/2417-7e4aab3d20.chunk.js +1 -0
- package/dist/scripts/243-a0b55560d0.chunk.js +1 -0
- package/dist/scripts/259-31df123d47.chunk.js +1 -0
- package/dist/scripts/{2692-da872fb785.chunk.js → 2692-21f600c14a.chunk.js} +1 -1
- package/dist/scripts/{2802-d2d07a2e14.chunk.js → 2802-d1e0319458.chunk.js} +1 -1
- package/dist/scripts/{2803-37e08e02e8.chunk.js → 2803-687b620987.chunk.js} +1 -1
- package/dist/scripts/2888-0eeb8ded06.chunk.js +1 -0
- package/dist/scripts/299-ff2d26d1ce.chunk.js +1 -0
- package/dist/scripts/3096-86d0fbd46c.chunk.js +1 -0
- package/dist/scripts/{3400-c5f1284e96.chunk.js → 3400-a38cfe2a5d.chunk.js} +1 -1
- package/dist/scripts/343-929f8d3c4f.chunk.js +1 -0
- package/dist/scripts/{3639-f85e46e79c.chunk.js → 3639-914a724862.chunk.js} +1 -1
- package/dist/scripts/{3746-3535cfdea2.chunk.js → 3746-eee343e060.chunk.js} +1 -1
- package/dist/scripts/3763-6f873cc545.chunk.js +1 -0
- package/dist/scripts/3969-731363760e.chunk.js +1 -0
- package/dist/scripts/4177-13fa5fccc3.chunk.js +1 -0
- package/dist/scripts/4201-84a6867187.chunk.js +1 -0
- package/dist/scripts/4245-eda4ba288d.chunk.js +1 -0
- package/dist/scripts/4483-2fa51965db.chunk.js +1 -0
- package/dist/scripts/4523-5e506b8666.chunk.js +1 -0
- package/dist/scripts/{4591-89ff9938d6.chunk.js → 4591-55fa691940.chunk.js} +1 -1
- package/dist/scripts/4839-c364059142.chunk.js +1 -0
- package/dist/scripts/{4860-4c5f5a2f5e.chunk.js → 4860-d42be62696.chunk.js} +1 -1
- package/dist/scripts/4885-adc349c79b.chunk.js +1 -0
- package/dist/scripts/514-0806a1329a.chunk.js +1 -0
- package/dist/scripts/5235-7fc3d07de7.chunk.js +1 -0
- package/dist/scripts/5412-789cbf80a3.chunk.js +1 -0
- package/dist/scripts/5418-d1f49fb544.chunk.js +1 -0
- package/dist/scripts/{5424-f974d2d4de.chunk.js → 5424-3bb770dc16.chunk.js} +1 -1
- package/dist/scripts/{546-23712736b6.chunk.js → 546-d293c45084.chunk.js} +1 -1
- package/dist/scripts/5698-edf3e21127.chunk.js +1 -0
- package/dist/scripts/{5745-cec88916be.chunk.js → 5745-6e1f878392.chunk.js} +1 -1
- package/dist/scripts/5747-a8c2c34cc9.chunk.js +1 -0
- package/dist/scripts/5891-4866980a65.chunk.js +1 -0
- package/dist/scripts/6093-d497dc9474.chunk.js +1 -0
- package/dist/scripts/6220-45429bccaa.chunk.js +1 -0
- package/dist/scripts/6357-fa9091912b.chunk.js +1 -0
- package/dist/scripts/6505-5df8d1acc8.chunk.js +1 -0
- package/dist/scripts/{6732-e1bdb320a5.chunk.js → 6732-fd2dabd397.chunk.js} +1 -1
- package/dist/scripts/{6774-fbe58a0610.chunk.js → 6774-c9e8698d5c.chunk.js} +1 -1
- package/dist/scripts/{6788-9359dd2e96.chunk.js → 6788-f89668cddb.chunk.js} +1 -1
- package/dist/scripts/6963-4dff136102.chunk.js +1 -0
- package/dist/scripts/6995-e38ac9c742.chunk.js +1 -0
- package/dist/scripts/6999-7421e7eec9.chunk.js +1 -0
- package/dist/scripts/7002-7f567f2a21.chunk.js +1 -0
- package/dist/scripts/7053-92f3e0d18d.chunk.js +1 -0
- package/dist/scripts/708-f8b534df6a.chunk.js +1 -0
- package/dist/scripts/7190-921073f4ef.chunk.js +1 -0
- package/dist/scripts/7312-6373005fe4.chunk.js +1 -0
- package/dist/scripts/7376-5b939e8967.chunk.js +1 -0
- package/dist/scripts/7433-b70f653164.chunk.js +1 -0
- package/dist/scripts/7634-9df3c18cf7.chunk.js +1 -0
- package/dist/scripts/7765-4722577d49.chunk.js +2 -0
- package/dist/scripts/8362-e662057f79.chunk.js +1 -0
- package/dist/scripts/8727-52cdb89aab.chunk.js +1 -0
- package/dist/scripts/8762-bbdb4d38a6.chunk.js +1 -0
- package/dist/scripts/8906-bee69bf9e2.chunk.js +1 -0
- package/dist/scripts/8947-c600642573.chunk.js +1 -0
- package/dist/scripts/9357-8cae90b1de.chunk.js +1 -0
- package/dist/scripts/{9695-b9a3518ce9.chunk.js → 9695-ad43223301.chunk.js} +1 -1
- package/dist/scripts/9927-faf9b990b5.chunk.js +1 -0
- package/dist/scripts/9976-5c1cf52aa9.chunk.js +1 -0
- package/dist/scripts/bundle-f536249a0d.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/1010-2ccd199a94.chunk.js +0 -1
- package/dist/scripts/1216-7fc984a3b2.chunk.js +0 -1
- package/dist/scripts/1269-6ccae7d739.chunk.js +0 -1
- package/dist/scripts/1364-d7866d0c44.chunk.js +0 -1
- package/dist/scripts/1409-3589e45de5.chunk.js +0 -1
- package/dist/scripts/1492-770d293d8f.chunk.js +0 -1
- package/dist/scripts/1601-65e2fe0e31.chunk.js +0 -2
- package/dist/scripts/1832-489ef98ee6.chunk.js +0 -1
- package/dist/scripts/1887-c137ad629e.chunk.js +0 -1
- package/dist/scripts/1911-a201f2efcc.chunk.js +0 -1
- package/dist/scripts/2417-1ac23af9dd.chunk.js +0 -1
- package/dist/scripts/243-1bf49fbb52.chunk.js +0 -1
- package/dist/scripts/259-59db5b4b13.chunk.js +0 -1
- package/dist/scripts/2888-4b587bbe31.chunk.js +0 -1
- package/dist/scripts/2910-947ef1a7c7.chunk.js +0 -2
- package/dist/scripts/299-9ac362dc77.chunk.js +0 -1
- package/dist/scripts/3096-54d42a2cd1.chunk.js +0 -1
- package/dist/scripts/343-7697ed1120.chunk.js +0 -1
- package/dist/scripts/3511-e5e10f5858.chunk.js +0 -1
- package/dist/scripts/3763-4ab7cf96ed.chunk.js +0 -1
- package/dist/scripts/3969-b44d4eb03d.chunk.js +0 -1
- package/dist/scripts/4177-238bab6176.chunk.js +0 -1
- package/dist/scripts/4201-80276a1f86.chunk.js +0 -1
- package/dist/scripts/4245-4430c4834d.chunk.js +0 -1
- package/dist/scripts/4523-2da04c8ef6.chunk.js +0 -1
- package/dist/scripts/4784-f79bb0b3b3.chunk.js +0 -1
- package/dist/scripts/4885-e298b284c1.chunk.js +0 -1
- package/dist/scripts/514-bc1546c377.chunk.js +0 -1
- package/dist/scripts/5235-21773a788e.chunk.js +0 -1
- package/dist/scripts/5412-397327ca47.chunk.js +0 -1
- package/dist/scripts/5418-fe4313f81b.chunk.js +0 -1
- package/dist/scripts/5747-a4774d1260.chunk.js +0 -1
- package/dist/scripts/5891-8e99ad0850.chunk.js +0 -1
- package/dist/scripts/6093-cca33f6f29.chunk.js +0 -1
- package/dist/scripts/6220-9f130ceb48.chunk.js +0 -1
- package/dist/scripts/6357-d93f4feefb.chunk.js +0 -1
- package/dist/scripts/6505-599904bbfb.chunk.js +0 -1
- package/dist/scripts/6756-efed80cdf7.chunk.js +0 -1
- package/dist/scripts/6963-b11a16a04e.chunk.js +0 -1
- package/dist/scripts/6995-15b612db36.chunk.js +0 -1
- package/dist/scripts/6999-e7b221a1ed.chunk.js +0 -1
- package/dist/scripts/7002-0af88665a1.chunk.js +0 -1
- package/dist/scripts/7053-3e07361c8a.chunk.js +0 -1
- package/dist/scripts/708-068ec58fa8.chunk.js +0 -1
- package/dist/scripts/7190-79f4578794.chunk.js +0 -1
- package/dist/scripts/7376-1de7713065.chunk.js +0 -1
- package/dist/scripts/7433-6a196b3914.chunk.js +0 -1
- package/dist/scripts/7634-c75060fb27.chunk.js +0 -1
- package/dist/scripts/8330-4c65e49cda.chunk.js +0 -1
- package/dist/scripts/8362-ff838fddac.chunk.js +0 -1
- package/dist/scripts/8727-a5823203d8.chunk.js +0 -1
- package/dist/scripts/8762-34b8bdb6b5.chunk.js +0 -1
- package/dist/scripts/8906-7ec2be0a04.chunk.js +0 -1
- package/dist/scripts/8947-4e1ae8f547.chunk.js +0 -1
- package/dist/scripts/9357-9a2958f6b5.chunk.js +0 -1
- package/dist/scripts/9927-137d291d00.chunk.js +0 -1
- package/dist/scripts/9929-4cbff0acbe.chunk.js +0 -1
- package/dist/scripts/9976-52f9e5baa6.chunk.js +0 -1
- package/dist/scripts/bundle-ca680a2fa7.min.js +0 -2
- /package/dist/css/{6756-library-editor-7a8f34cf74.chunk.css → 2254-library-editor-7a8f34cf74.chunk.css} +0 -0
- /package/dist/css/{3511-library-editor-59c8b7dcc0.chunk.css → 4839-library-editor-59c8b7dcc0.chunk.css} +0 -0
- /package/dist/css/{8330-library-editor-deb68b6fea.chunk.css → 7312-library-editor-deb68b6fea.chunk.css} +0 -0
- /package/dist/css/{2910-library-editor-83f2f52493.chunk.css → 7765-library-editor-83f2f52493.chunk.css} +0 -0
- /package/dist/scripts/{1601-65e2fe0e31.chunk.js.LICENSE.txt → 1601-c0c74e7f70.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1934-085c7af5db.chunk.js.LICENSE.txt → 1934-2174e052c3.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-d2d07a2e14.chunk.js.LICENSE.txt → 2802-d1e0319458.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5173-0f92a7cb60.chunk.js → 5173-9daba2a065.chunk.js} +0 -0
- /package/dist/scripts/{5745-cec88916be.chunk.js.LICENSE.txt → 5745-6e1f878392.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6991-75b3d8dc88.chunk.js → 6991-a0a9329e27.chunk.js} +0 -0
- /package/dist/scripts/{2910-947ef1a7c7.chunk.js.LICENSE.txt → 7765-4722577d49.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8495-42243eaf11.chunk.js → 8495-fd102f09d3.chunk.js} +0 -0
- /package/dist/scripts/{9554-5920393265.chunk.js → 9554-ded379b551.chunk.js} +0 -0
- /package/dist/scripts/{9770-521b4d655d.chunk.js → 9770-7f7960aae8.chunk.js} +0 -0
- /package/dist/scripts/{bundle-ca680a2fa7.min.js.LICENSE.txt → bundle-f536249a0d.min.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{polyfills-4af83b8e50.min.js → polyfills-04eb088291.min.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8330],{79410:function(e,t,n){n.d(t,{D:function(){return c}});var r=n(1024),i=n.n(r),a=n(58566),o=n(4705),l=n(34279),c=function(e,t,n){var r,c=(r=null==n?void 0:n.storage)?r===o.Z1.SessionStorage?o.qS:o.SG:null,s=null==c?void 0:c.get(e),u=(0,a.useDispatch)(),d=(0,a.useSelector)((function(t){return t.viewModelData[e]}));function f(){return null!=s}"undefined"!==s&&"null"!==s||(s=null);var m=(void 0!==t||f())&&void 0===d;function v(t,n){c&&function(t,n){if(c){var r=c.get(e);"string"!=typeof t||void 0===n?c.set(e,t):c.set(e,Object.assign(Object.assign({},r),{dataOrKey:n}))}}(t,n),u({type:l.B.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:n}})}return i().useEffect((function(){if(m)return f()?void v(s):void v(t)}),[]),m?f()?[s,v]:[t,v]:[null!=d?d:void 0,v]}},41387:function(e,t,n){n.d(t,{w:function(){return r}});var r={FILTER_PARAM_PREFIX:"filters.",MAX_CHECKBOXES_PER_COLUMN:10}},39023:function(e,t,n){n.d(t,{X:function(){return i}});var r=n(1024);function i(e){var t=e.isLabelEllipsis,n=r.useRef(null);return r.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]),r.createElement("div",{className:"custom-control custom-checkbox ".concat(e.className)},r.createElement("input",{ref:n,type:"checkbox",className:"custom-control-input",id:e.id,name:e.name,checked:e.checked,onChange:e.onChange,disabled:e.disabled}),r.createElement("label",{className:"custom-control-label cursor-pointer",htmlFor:e.id},r.createElement("span",{className:"".concat(t?"clamp-1":"")},e.label)))}i.defaultProps={checked:!1,label:"",className:""}},9063:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(1024),i=n.n(r),a=n(58424),o=n(63946);function l(e){function t(){e.disabled||e.onClick.apply(e,arguments)}var n=e.disabled?"disabled":"",r=e.hideOutline?"outline-none":"",l=e.on?"on":"";e.disabled&&!e.showStateWhenDisabled&&(l="");var c="".concat("d-inline-block float-right align-top custom-toggle toggle-option"," ").concat(l," ").concat(n," ").concat(r);return e.tooltipText?i().createElement(o.u,{title:e.tooltipText,spanHack:!0},i().createElement(a.L,{onClick:t,className:c},i().createElement("span",{className:"handle"}))):i().createElement(a.L,{onClick:t,className:c},i().createElement("span",{className:"handle"}))}},52086:function(e,t,n){n.d(t,{g:function(){return r}});var r={PERMISSIONS:"permissions",AUDIENCE_FILTER:"audience:filter",BULK_USER_UPLOAD:"bulk:user:upload",BULK_REMOVE_USERS:"bulk:remove:users",BULK_USER_ACTIONS:"bulk:user:actions",CURATOR_WORKING_LISTS:"curator:working:lists",LOOKING_FOR_INTEGRATION:"looking:for:integration",PRESENTATION_ID:"presentation:id"}},78735:function(e,t,n){n.r(t),n.d(t,{PastRequestsView:function(){return kn}});var r=n(1024),i=n.n(r),a=n(57857),o=n(86120),l=n(23689),c=n(86242),s=n(66703),u=n(90335),d=n(2491),f=n(30317),m=n(22430),v=n(50997),p=n(68893),y=n(48404),g=n(19226),b=n(39396),h=n(63791),E=n(50072),S="libraryRequests.closedAlert";function A(e){var t;return(null===(t=e.libraryRequest)||void 0===t?void 0:t.status)!==E.l.Closed?i().createElement(i().Fragment,null):i().createElement("div",{className:"alert alert-warning mb-3 rounded d-flex align-items-center px-2",role:"alert"},i().createElement(b.x,{svgName:h.vn.Lock,className:"d-inline-block svg-container mr-2"}),i().createElement(s.x,{namespace:S,phrase:"closedRequest"}))}var C=n(70065),O=n(40221),w=n(85887),k=n(99910),L=n(58424),T="search.filterActions";function I(e){return r.createElement("div",{className:"d-flex justify-content-between ".concat(e.className)},e.active?r.createElement(L.L,{className:"text-muted hover-text-underline cursor-pointer",onClick:e.onClickReset},r.createElement(s.x,{namespace:T,phrase:"reset"})):r.createElement("div",{className:"invisible"}),r.createElement(L.L,{className:"info-link",onClick:e.onClickApply},r.createElement(s.x,{namespace:T,phrase:"apply"})))}I.defaultProps={active:!1,className:""};var R=(0,r.createContext)(null);function N(e,t){return"update"===t.type?t.payload:e}var j=n(53808),_=n(31647),x=n(52076);function P(e){return i().createElement("h3",{className:"h6 mb-2"},e.title)}var F=n(39023);function D(e){return function(e){if(Array.isArray(e))return B(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 B(e,t);var n=Object.prototype.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)?B(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 B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t,n=Te.displayTwoColumns(e.filter),i=e.draftState.selection;return r.createElement(r.Fragment,null,r.createElement(P,{title:e.filter.name}),r.createElement(k.Form,{className:"mb-3"},(t=e.filter.options.map((function(t){var a=e.filter.disabled||t.disabled,o=!!e.draftState.selection.find((function(e){return e.id.toString()===t.id.toString()})),l=Array.isArray(t.id)?t.id.join("_"):t.id;return r.createElement(F.X,{key:l,label:t.name,name:l,id:l,onChange:function(){return function(t,n){if(n){var r=-1;i.find((function(e,n){r>-1||e.id.toString()===t.id.toString()&&(r=n)}));var a=[].concat(D(i.slice(0,r)),D(i.slice(r+1)));e.setDraftState({active:!!a.length,selection:a})}else{var o=D(i);o.push(t),e.setDraftState({active:!!o.length,selection:o})}}(t,o)},checked:!a&&o,className:"my-1 ".concat(n?"col-md-6 col-12":""),isLabelEllipsis:n,disabled:a})})),n?r.createElement("div",{className:"d-flex flex-wrap"},t):t)))}function U(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.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)?q(e,t):void 0}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function V(e){var t,n,i,a=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=U(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(e.filter.options);try{var l=function(){var o,l=i.value,c=e.filter.disabled||l.disabled,s=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===l.id})),u=null!==(n=l.secondLayerOptions)&&void 0!==n?n:[],d=function(e,t){var n,r,i=(null===(n=null==e?void 0:e.secondLayerSelection)||void 0===n?void 0:n.length)>0,a=(null===(r=null==e?void 0:e.secondLayerSelection)||void 0===r?void 0:r.length)===t.length;return i&&!a}(s,u),f=!d&&!!s;a.push(r.createElement(F.X,{key:l.id,label:l.name,name:l.id,id:l.id,indeterminate:d,onChange:function(){return e.onToggleItem(l,f||d)},checked:!c&&f,className:"my-1",disabled:c})),Te.hasManyFilterOptions(u)&&a.push.apply(a,(o=u.map((function(t){var n,i=c||t.disabled,a=!!(null===(n=null==s?void 0:s.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return r.createElement(F.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,a,l)},checked:!i&&a,className:"my-1 ml-3",disabled:i})})),function(e){if(Array.isArray(e))return q(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||U(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();!(i=o.n()).done;)l()}catch(e){o.e(e)}finally{o.f()}return r.createElement(r.Fragment,null,a)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e){var t,n,i,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 G(e,t);var n=Object.prototype.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(e.filter.options);try{var o,l=function(){var a=i.value,o=e.filter.disabled||a.disabled,l=null===(t=e.draftState.selection)||void 0===t?void 0:t.find((function(e){return(null==e?void 0:e.id)===a.id})),c=(null!==(n=a.secondLayerOptions)&&void 0!==n?n:[]).map((function(t){var n,i=o||t.disabled,c=!!(null===(n=null==l?void 0:l.secondLayerSelection)||void 0===n?void 0:n.find((function(e){return e.id===t.id})));return r.createElement(F.X,{key:t.id,label:t.name,name:t.id,id:t.id,onChange:function(){return e.onToggleChildItem(t,c,a)},checked:!i&&c,className:"my-1",disabled:i})}));return{v:r.createElement(r.Fragment,null,c)}};for(a.s();!(i=a.n()).done;)if(o=l())return o.v}catch(e){a.e(e)}finally{a.f()}}function Y(e){return function(e){if(Array.isArray(e))return Q(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 Q(e,t);var n=Object.prototype.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)?Q(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 Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(e){var t=e.filter.options;function n(t,n,r){var i,a,o=e.draftState.selection,l=o.findIndex((function(e){return e.id===r.id}));if(!n){var c=[].concat(Y(null!==(a=null===(i=o[l])||void 0===i?void 0:i.secondLayerSelection)&&void 0!==a?a:[]),[t]);if(0===o.length||-1===l){var s=Object.assign(Object.assign({},r),{secondLayerSelection:c}),u=[].concat(Y(o),[s]);return void e.setDraftState({active:!!u.length,selection:u})}if(-1!==l){var d=o.map((function(e){return e.id===r.id?Object.assign(Object.assign({},e),{secondLayerSelection:c}):e}));return void e.setDraftState({active:!!d.length,selection:d})}}var f=o.map((function(e){if(e.id===r.id){var n=O.m.removeItem(e.secondLayerSelection,t);return Object.assign(Object.assign({},r),{secondLayerSelection:n})}return e}));0===f[l].secondLayerSelection.length&&(f=O.m.removeItem(f,r)),e.setDraftState({active:!!f.length,selection:f})}return r.createElement(r.Fragment,null,r.createElement(P,{title:e.filter.name}),r.createElement(k.Form,{className:"mb-3"},Te.hasManyFilterOptions(t)?r.createElement(V,Object.assign({onToggleItem:function(n,r){var i,a=e.draftState.selection,o=a.findIndex((function(e){return e.id===n.id}));if(!r){var l=null===(i=null==t?void 0:t.find((function(e){return e.id===n.id})).secondLayerOptions)||void 0===i?void 0:i.filter((function(e){return!e.disabled})),c=Object.assign(Object.assign({},n),{secondLayerSelection:l});if(0===a.length||-1===o){var s=[].concat(Y(a),[c]);return void e.setDraftState({active:!0,selection:s})}if(-1!==o){var u=a.map((function(e){return e.id===n.id?c:e}));return void e.setDraftState({active:!!u.length,selection:u})}}var d=O.m.removeItemFromIndex(a,a.findIndex((function(e){return e.id===n.id})));e.setDraftState({active:!!d.length,selection:d})},onToggleChildItem:n},e)):r.createElement(X,Object.assign({onToggleChildItem:n},e))))}var W=n(9063);function K(e){var t=e.draftState.active;return r.createElement(r.Fragment,null,r.createElement(P,{title:e.filter.name}),r.createElement("div",{className:"d-flex align-items-start justify-content-between"},r.createElement("p",{className:"d-inline-block w-75"},e.filter.description),r.createElement(W.Z,{disabled:e.filter.disabled,onClick:function(){e.setDraftState({active:!t})},on:t})))}function z(e){return i().createElement(i().Fragment,null,e.filter.options.map((function(t){return i().createElement(k.Dropdown.Item,{key:t.id,onClick:function(){return function(t){e.setDraftState({active:!t.default,selection:[t]})}(t)},disabled:e.filter.disabled||t.disabled},t.name)})))}function $(e){return r.createElement(r.Fragment,null,r.createElement(P,{title:e.filter.name}),r.createElement(k.Form,{className:e.isOnMoreFilters?"d-flex flex-wrap":""},e.filter.options.map((function(t){var n,i=e.filter.disabled||t.disabled,a=(null===(n=O.m.first(e.draftState.selection))||void 0===n?void 0:n.id.toString())===t.id.toString();return r.createElement(k.Form.Check,{key:t.id,custom:!0,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:!i&&a,className:"".concat("B3rOI"," ").concat(e.isOnMoreFilters?"w-50":""),disabled:i})}))))}var Z=n(63946),J=n(32557);function ee(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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n=Object.prototype.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)?te(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 te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ne=a.T.encloseNamespace("shared.ratingRangeSelector");function re(e){var t=ee((0,J.X)({delay:1}),2),n=t[0],r=t[1];if(i().useEffect((function(){e.onHover(r?e.rating:null,e.isRatingValid)}),[r]),!e.rating.code)return i().createElement(i().Fragment,null);var a=i().createElement(L.L,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r,e.isRatingValid),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?a:i().createElement(Z.u,{title:e.isRatingValid?e.rating.name:ne("invalidRating"),spanHack:!0},a)}function ie(e){var t=ee(i().useState(!1),2),n=t[0],r=t[1],a=ee(i().useState([]),2),o=a[0],l=a[1];function c(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))}function s(t,n){t&&!e.isDisabled(t)?(n&&l(c(t)),r(n)):l([])}function u(t){return o.length?!!o.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))}function d(t){if(!t)return!1;var n=e.yearGroups.findIndex((function(t){return t.value===e.yearGroup.value}));return 0===n||e.yearGroups.slice(0,n).every((function(e){return t.value>=e.rating.value}))}return i().createElement("div",null,i().createElement(k.ButtonGroup,null,e.ratings.map((function(t){var r;return i().createElement(re,{key:t.id,rating:t,isRatingValid:!e.yearGroup||d(t),onClick:function(){return function(t){if(n){var r=c(t);e.onSelectRange(r)}}(t)},onHover:s,isActive:u(t),disabled:e.disabled||(null===(r=e.isDisabled)||void 0===r?void 0:r.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}ie.defaultProps={selections:[]};function ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){var t,n,i=e.filter.options,a=i.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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return ae(e,t);var n=Object.prototype.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)?ae(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],l=a[a.length-1];return r.createElement(r.Fragment,null,r.createElement(P,{title:e.filter.name}),r.createElement("div",{className:"mb-2"},r.createElement(ie,{ratings:i,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 r="btn border text-nowrap";return r+=t||n?" btn-dark":" btn-outline-dark",n&&(r+=" active"),1===a.length?r+=" rounded":o.id===e.id?r+=" sLa86":l.id===e.id?r+=" xDcnT":r+=" rounded-0",r}})))}var le,ce=n(41387),se=n(50028);!function(e){e.CLICKVIEW_CURATED="is_clickview_curated",e.MOVIES_AND_TV="is_movies_and_tv"}(le||(le={}));var ue,de,fe,me,ve,pe,ye=n(75459);n(11306),n(79410),n(56285),n(1268),function(e){e.Disabled="Disabled",e.Active="Active",e.Inactive="Inactive"}(ue||(ue={})),n(46237),n(38182),n(83891),function(e){e.Online="online",e.Primary="primary",e.Curator="curator"}(de||(de={})),n(52086),i().createContext({}),function(e){e[e.Unknown=0]="Unknown",e[e.Staff=1]="Staff",e[e.Learner=2]="Learner",e[e.MasterVideo=3]="MasterVideo"}(fe||(fe={})),function(e){e.YearGroupRollover="year-group-rollover",e.ChangeYearGroup="change-year-group",e.DeleteUser="delete-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"}(me||(me={})),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"}(ve||(ve={})),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"}(pe||(pe={})),n(74421),a.T.encloseNamespace("userManager.utils");var ge=(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..."}}),be=(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 he(e,t){return e.split("-to-").map((function(e){return t.find((function(t){return t.code===e}))}))}function Ee(e){return Ee="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},Ee(e)}function Se(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Oe(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function Ce(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oe(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 Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n=Object.prototype.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)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ke=a.T.encloseNamespace("sharedSearch.utils"),Le={classification:!0,categoryId:!0,channel:!0},Te={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 Le[e.id]&&(null===(t=e.options)||void 0===t?void 0:t.length)>=ce.w.MAX_CHECKBOXES_PER_COLUMN},showPresentationFilter:function(e){var t,n;return!!(null===(t=e.options)||void 0===t?void 0:t.length)&&(e.options.length>1||!!(null===(n=O.m.first(e.options).secondLayerOptions)||void 0===n?void 0:n.length))},getMoreFilters:function(e){return{id:"moreFilters",name:ke("moreFilters"),type:"more-filters",filters:e}},mapTypeToComponent:function(e){switch(e){case"switch":return function(e){return r.createElement(K,Object.assign({key:e.id},e))};case"checkbox":return function(e){return r.createElement(M,Object.assign({key:e.id},e))};case"nested-checkbox":return function(e){return r.createElement(H,Object.assign({key:e.id},e))};case"radio":return function(e){return r.createElement($,Object.assign({key:e.id},e))};case"rating":return function(e){return r.createElement(oe,Object.assign({key:e.id},e))};case"dropdown":return function(e){return r.createElement(z,Object.assign({key:e.id},e))};default:return function(){return r.createElement(r.Fragment,null)}}},deriveInitialStateFromQuery:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i={sort:{active:!!e.sort,selection:Ie(e,t,"sort")},classification:{active:!!e.classification,selection:Ie(e,t,"classification")},presentation:{active:!!e.presentation,selection:Ie(e,t,"presentation")},type:{active:!!e.type,selection:Ie(e,t,"type")},rating:{active:!!e.rating,selection:Ie(e,t,"rating")},interactives:{active:e.interactives},clips:{active:e.clips},yearGroup:{active:!!e.yearGroup,selection:Ie(e,t,"yearGroup")},moviesAndTv:{active:!!e.moviesAndTv},classroom:{active:!!e.classroom,selection:Ie(e,t,"classroom")},audience:{active:!!e.audience,selection:Ie(e,t,"audience")},hasResources:{active:e.hasResources},hasSubtitles:{active:e.hasSubtitles},productionYear:{active:!!e.productionYear,selection:Ie(e,null==n?void 0:n.filters,"productionYear")},isHd:{active:e.isHd},producedByClickView:{active:e.producedByClickView},duration:{active:e.duration,selection:Ie(e,null==n?void 0:n.filters,"duration")},tagOrClassification:{active:!!e.tagOrClassification,selection:Ie(e,t,"tagOrClassification")},status:{active:!!e.status,selection:Ie(e,t,"status")},isAdmin:{active:e.isAdmin},bulkActionType:{active:!!e.bulkActionType,selection:Ie(e,t,"bulkActionType")},userType:{active:!!e.userType,selection:Ie(e,t,"userType")},filter:{active:!!e.filter,selection:Ie(e,t,"filter")},channel:{active:!!e.channel,selection:Ie(e,t,"channel")},dateBroadcast:{active:!!e.dateBroadcast,selection:Ie(e,t,"dateBroadcast")},categoryId:{active:!!e.categoryId,selection:Ie(e,t,"categoryId")}},a=t.reduce((function(e,t){return e[t.id]=i[t.id],e}),{});return(null==n?void 0:n.filters)&&(a.moreFilters=n.filters.reduce((function(e,t){return e[t.id]=i[t.id],e}),{})),a.appLink=r,a},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,r;if(!(null===(n=t.selection)||void 0===n?void 0:n.length))return e.name;if("dropdown"===e.type)return O.m.first(t.selection).name;if("radio"===e.type){var i=O.m.first(t.selection);return!i||i.default?e.name:i.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===(r=t.selection)||void 0===r?void 0:r.reduce((function(t,n){var r,i,a,o=e.options,l=o.findIndex((function(e){return e.id===n.id}));return 0===(null===(r=o[l].secondLayerOptions)||void 0===r?void 0:r.length)?t+1:null!==(a=t+(null===(i=n.secondLayerSelection)||void 0===i?void 0:i.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 l=O.m.first(t.selection),c=O.m.last(t.selection);return 1===t.selection.length?"".concat(e.name,": ").concat(l.code):"".concat(e.name,": ").concat(l.code," to ").concat(c.code)}},buildFrontendFilterParams:function(e,t){var n=Object.assign({},e);return t.forEach((function(e){var t,r;if(null==e?void 0:e.filter){var i=e.filter,a=i.id,o=i.type,l=e.state,c=l.active,s=l.selection;switch(o){case"switch":case"button":n[a]=c?"true":"";break;case"radio":case"dropdown":var u=1===(null===(t=e.state.selection)||void 0===t?void 0:t.length)&&(null===(r=O.m.first(e.state.selection))||void 0===r?void 0:r.default);n[a]=e.state.selection.length&&!u?O.m.first(e.state.selection).id:"";break;case"nested-checkbox":n[a]=c?s.map((function(e){return e.id})):null;var d,f=e.filter.secondaryId;f&&(n[f]=(d=[]).concat.apply(d,Ce(s.map((function(e){return e.secondLayerSelection.map((function(e){return e.id}))})))));break;case"checkbox":if(!c){n[a]=null;break}var m,v=[],p=Ae(s);try{for(p.s();!(m=p.n()).done;){var y=m.value,g=y.id.toString().split(":");if(g.length>1){var b,h=Ae(g);try{for(h.s();!(b=h.n()).done;){var E=b.value;v.push(E)}}catch(e){h.e(e)}finally{h.f()}}else v.push(y.id)}}catch(e){p.e(e)}finally{p.f()}n[a]=v;break;case"tag":n[a]=c?s.map((function(e){return e.id})):null;break;case"rating":n[a]=c?function(e){if(!(null==e?void 0:e.length))return"";var t=O.m.first(e),n=O.m.last(e);return 1===e.length?t.code:"".concat(t.code,"-to-").concat(n.code)}(s):null}n[a]||delete n[a]}})),w.t.omit(n,["cursor"])},buildBackendFilterParams:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a={query:!0,type:!0},o=r?(Se(t={},"filters.presentation",arguments.length>2?arguments[2]:void 0),Se(t,"isLearner",r),t):{};return i&&(o["".concat(ce.w.FILTER_PARAM_PREFIX,"library")]=i.filter((function(e){return e.type!==ye.r.Exchange&&e.status===se.X.Published})).map((function(e){return e.id}))),Object.keys(e).reduce((function(t,r){if(a[r])return t;var i=e[r];return Array.isArray(i)&&!i.length||!i?t:"rating"===r?(t["".concat(ce.w.FILTER_PARAM_PREFIX).concat(r)]=function(e,t){var n=he(e,t);if(1===n.length){var r=O.m.first(n);return"0...".concat(r.value)}var i=O.m.last(n);return"0...".concat(i.value)}(i,n),t):"productionYear"===r?(t["".concat(ce.w.FILTER_PARAM_PREFIX).concat(r)]=be(i),t):"duration"===r?(t["".concat(ce.w.FILTER_PARAM_PREFIX).concat(r)]=ge(i),t):"moviesAndTv"===r?(t["".concat(ce.w.FILTER_PARAM_PREFIX,"curationTag")]=le.MOVIES_AND_TV,t):(t["".concat(ce.w.FILTER_PARAM_PREFIX).concat(r)]=i,t)}),o)},getAppliedIndices:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type;if(e){if(!Array.isArray(e))return[e];if(e.length)return e}return["series","video","playlist","classification","clip","interactive","company"]},applyFilter:function(e,t,n,r){if(!w.t.isEqual(t,n)){var i=Object.keys(n).map((function(t){var r,i,a=e.find((function(e){return e.id===t})),o=n[t],l=1===(null===(r=o.selection)||void 0===r?void 0:r.length)&&(null===(i=O.m.first(o.selection))||void 0===i?void 0:i.default);return{filter:a,state:{active:o.active&&!l,selection:o.selection}}})),a=_.Q.LocationUtils.GetQuery();_.Q.AppLinkHelper.trigger(Object.assign(Object.assign({},r),{params:Te.buildFrontendFilterParams(a,i)}),{replace:!0})}},mixinDisabledFields:function(e,t,n,r){var i,a=[].concat(Ce(n),Ce(null!==(i=null==r?void 0:r.filters)&&void 0!==i?i:[]));a=function(e,t,n){var r=n.reduce((function(e,t){return e[t]=!0,e}),{});return t.map((function(n){var i;if(!(null===(i=n.compatibleIndices)||void 0===i?void 0:i.length))return n;if(!n.compatibleIndices.find((function(e){return r[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 r;if(!o){var i=t.find((function(t){return t.id===e}));if(null===(r=i.compatibleIndices)||void 0===r?void 0:r.length){var a=i.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(!j.q.isFunction(n.disableOptions))return n;var r=n.disableOptions(n.options,t,e);return Object.assign(Object.assign({},n),{options:r})}))}(e,a);var o={mainFilters:a.filter((function(e){return n.find((function(t){return t.id===e.id}))}))};return(null==r?void 0:r.filters)&&(o.moreFilters=Object.assign(Object.assign({},r),{filters:a.filter((function(e){return r.filters.find((function(t){return t.id===e.id}))}))})),o},logFilterEvent:function(e,t,n,r,i){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||(i.descriptor=C.FilterDescriptor.Reset),x.k.logUserAction({query:null!=r?r:"",filters:o},x.k.mergeOptions(i,{workflowPhase:C.WorkflowPhase.Complete,actionType:C.UserAction.Filter}))},getObjectTypeOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[{id:"company",name:ke("companies")},{id:"classification",name:ke("topics")},{id:"playlist",name:ke("playlists")},{id:"series",name:ke("series")},{id:"video",name:ke("videos")},{id:"clip",name:ke("clips")},{id:"interactive",name:ke("interactives")}].filter((function(t){return!e.find((function(e){return e===t.id}))}))},getIsObjectTypeOptionDisabled:function(e,t,n){return e.map((function(e){var r=!1;return t.forEach((function(t){var i;if(!r){var a=n[t.id]||n.moreFilters[t.id];(null==a?void 0:a.active)&&(null===(i=t.compatibleIndices)||void 0===i?void 0:i.length)&&(t.compatibleIndices.find((function(t){return e.id===t}))||(r=!0))}})),Object.assign(Object.assign({},e),{disabled:r})}))},getNameSortOptions:function(){return[{id:"newest",name:ke("newest")},{id:"oldest",name:ke("oldest")},{id:"first-name-atoz",name:ke("firstNameAToZ")},{id:"first-name-ztoa",name:ke("firstNameZToA")},{id:"surname-atoz",name:ke("surnameAToZ")},{id:"surname-ztoa",name:ke("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:ke("active")},{id:"deactivated",name:ke("deactivated")},{id:"pending",name:ke("pending")}]},getTvFieldsOptions:function(){return[{id:"0",name:ke("allFields"),default:!0},{id:"1",name:ke("titleDescriptionField")},{id:"2",name:ke("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:ke("anyTime"),default:!0},{id:"yesterday",name:ke("yesterday")},{id:"last-week",name:ke("lastWeek")},{id:"last-2-weeks",name:ke("last2Weeks")}]},getCategoriesOptions:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.data.id,name:e.data.name}})):[]}};function Ie(e){var t,n,r=arguments.length>2?arguments[2]:void 0,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).find((function(e){return e.id===r}));if(!i)return[];if(!e[r])return null!==(n=null===(t=i.options)||void 0===t?void 0:t.filter((function(e){return e.default})))&&void 0!==n?n:[];if("rating"===r)return function(e,t){if(Array.isArray(e))return e;var n=t.options,r=he(e,n),i=O.m.last(r);return n.filter((function(e){return e.value>0&&e.value<=i.value}))}(e[r],i);var a=e[r];return Array.isArray(a)||(a=[a]),"classification"===r?function(e,t){var n,r;return null!==(r=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!==r?r:[]}(i,a):"presentation"===r?function(e,t,n){return Re(e,t).map((function(e){var t=n.audience,r=Re(e.secondLayerOptions,t);return Object.assign(Object.assign({},e),{secondLayerSelection:r})}))}(i.options,a,e):Re(i.options,a)}function Re(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 Ne={filterButton:"A_tE0",hideCaret:"KDq7l",filterMenu:"E9o_Q",twoColumnsWidth:"C70vU",nestedCheckboxesWidth:"kUHcg",switchWidth:"bi1FH",moreFiltersWidth:"rbr22",svgContainer:"UwDMA"};function je(e){return je="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},je(e)}function _e(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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}(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 xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){var t=r.useContext(R).state,n=t[e.filter.id],i="dropdown"===e.filter.type,a=_e(r.useState(e.filter.name),2),o=a[0],l=a[1],c=_e(r.useState(!1),2),s=c[0],u=c[1],d=_e(r.useState(n),2),f=d[0],m=d[1];function v(e){m(e),i&&p(e)}function p(){var r,i,a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;Te.applyFilter([e.filter],n,(r={},i=e.filter.id,a=o,(i=function(e){var t=function(e,t){if("object"!==je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===je(t)?t:String(t)}(i))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,r),t.appLink)}r.useEffect((function(){l(Te.getLabel(e.filter,n)),m(n)}),[e.filter,n.selection]);var y,g=r.useMemo((function(){return e.filter.customComponent?e.filter.customComponent:Te.mapTypeToComponent(e.filter.type)}),[e.filter.type]),h="".concat(Ne.filterButton," mx-1 btn d-flex align-items-center"),E=i?"":Ne.hideCaret,S=(y=e.filter,Te.displayTwoColumns(y)?Ne.twoColumnsWidth:"classification"===y.id?Ne.classificationWidth:Te.displayTwoLayers(y)?Ne.nestedCheckboxesWidth:"switch"===y.type?Ne.switchWidth:"");return"button"===e.filter.type?r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}):r.createElement(k.Dropdown,{onToggle:function(e){u(e),e||i||p()},show:s},r.createElement(k.Dropdown.Toggle,{id:"filterButton-".concat(e.filter.id),className:"".concat(h," ").concat(E),variant:n.active&&!i?"dark":"outline-dark",disabled:e.filter.disabled},!!e.filter.icon&&r.createElement("div",{className:Ne.svgContainer},r.createElement(b.x,{svgName:e.filter.icon})),o),r.createElement(k.Dropdown.Menu,null,r.createElement("div",{className:"mx-1 ".concat(Ne.filterMenu," ").concat(S," ").concat(i?"":"px-2 py-1")},r.createElement(g,{filter:e.filter,draftState:f,setDraftState:v}),!i&&!e.filter.disabled&&r.createElement(I,{active:f.active,onClickReset:function(){var t,n=null===(t=e.filter.options)||void 0===t?void 0:t.find((function(e){return e.default}));m({active:!1,selection:n?[n]:[]})},onClickApply:function(){p(),u(!1)}}))))}function Fe(e){return Fe="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},Fe(e)}var De={getSetStateByKey:function(e,t,n){return function(r){return e((function(e){var i=j.q.isFunction(n)?n:j.q.useIdentity();return Object.assign(Object.assign({},e),function(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i(r,e)))}))}}};function Be(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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}(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 Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ue(e){return Object.keys(e).reduce((function(t,n){return e[n].active?t+1:t}),0)}function qe(e){var t=r.useContext(R).state,n=t.moreFilters,i=Be(r.useState(e.filter.name),2),a=i[0],o=i[1],l=Be(r.useState(!1),2),c=l[0],s=l[1],u=Be(r.useState(n),2),d=u[0],f=u[1],m=Be(r.useState(Ue(n)),2),v=m[0],p=m[1],y=Object.keys(n).map((function(e){return"".concat(e,":").concat(n[e].active)})).join("-");function g(){Te.applyFilter(e.filter.filters,n,d,t.appLink)}r.useEffect((function(){f(n),p(Ue(n))}),[e.filter,y]),r.useEffect((function(){o(v?"".concat(e.filter.name," - ").concat(v):e.filter.name)}),[v]);var b="".concat(Ne.filterButton," ").concat(Ne.hideCaret," mx-1 btn");return r.createElement(k.Dropdown,{onToggle:function(e){s(e),e||g()},show:c},r.createElement(k.Dropdown.Toggle,{id:e.filter.id,className:b,variant:v?"dark":"outline-dark"},a),r.createElement(k.Dropdown.Menu,{onClick:function(e){return e.stopPropagation()}},r.createElement("div",{className:"mx-1 ".concat(Ne.moreFiltersWidth," ").concat("dropdown"!==e.filter.type?"px-2 py-1":"")},e.filter.filters.map((function(e){var t=e.customComponent?e.customComponent:Te.mapTypeToComponent(e.type);return r.createElement("div",{key:e.id,className:"mb-2"},r.createElement(t,{filter:e,draftState:d[e.id],setDraftState:De.getSetStateByKey(f,e.id),isOnMoreFilters:!0}))})),r.createElement(I,{active:!!Object.keys(d).find((function(e){return d[e].active})),onClickReset:function(){var t=Object.keys(n).reduce((function(t,n){var r,i=null===(r=e.filter.filters.find((function(e){return e.id===n})).options)||void 0===r?void 0:r.find((function(e){return e.default}));return t[n]={active:!1,selection:i?[i]:[]},t}),{});f(t)},onClickApply:function(){g(),s(!1)}}))))}var Ve,Ge=n(91807),Xe=i().memo((function(e){var t=e.tagClass,n="partial-loading-background d-inline-block badge-pill py-1 px-2 mb-1 mr-1 text-nowrap ".concat(void 0===t?"":t," ").concat(Ge.Z.partialTag);return i().createElement("div",{className:"mt-1"},i().createElement("span",{className:n}," "))})),Ye=n(37360),Qe=n(49642);function He(e){return i().createElement(i().Fragment,null,!!e.name&&i().createElement(Qe.F,{appLink:e.appLink,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,className:"text-decoration-none ".concat(e.appLink?"curated-widget-link":"")},i().createElement("h2",{className:"h4 curated-widget-heading"},e.name,!!e.appLink&&i().createElement(b.x,{svgName:h.vn.ChevronRight,size:b.S.Small}))),!!e.description&&i().createElement("p",{className:"description curated-widget-description"},i().createElement("span",{className:"clamp-2"},e.description)))}!function(e){e.Percentage="%",e.Pixels="px"}(Ve||(Ve={}));var We=new Image;We.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=";var Ke,ze=function(e){e.dataTransfer.setDragImage&&j.q.isFunction(e.dataTransfer.setDragImage)&&e.dataTransfer.setDragImage(We,0,0)},$e=Ye.V.isTouchScreen(),Ze=r.forwardRef((function(e,t){var n,i,a,o,l=e.children,c=e.positionType,s=e.onDrag,u=e.onDragEnd,d=e.onTouchMove,f=e.onTouchEnd,m=e.percentageDragged,v=e.position,p=void 0===v?0:v;return r.createElement("div",Object.assign({className:"d-flex flex-nowrap position-relative w-100",style:(i=p,a=c,o=m,a===Ve.Percentage&&o&&(i-=o),{transform:"translate3d(".concat(i).concat(a,", 0px, 0px)"),transition:"transform .4s ease-in-out"}),ref:t},(n={},s&&u&&(n.draggable=!0,n.onDragEnd=u,n.onDragStart=ze,n.onDragOver=s),d&&f&&$e&&(n.onTouchMoveCapture=d,n.onTouchEndCapture=f),n)),l)})),Je="VSAPU",et="kgeXh";!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Ke||(Ke={}));var tt,nt=r.memo((function(e){var t,n,i,a=e.direction===Ke.Left,o=a?h.vn.ChevronLeft:h.vn.ChevronRight;return e.hide?r.createElement(r.Fragment,null):r.createElement("div",{className:"_ejId",style:"videos"===(null===(n=e.state)||void 0===n?void 0:n.contents)?{paddingBottom:56.25/(null===(i=e.state)||void 0===i?void 0:i.viewableItems)+"%"}:{height:"100%"}},e.useGradientBackdrop&&r.createElement("div",{className:a?"".concat("Pt3nx"," ").concat(e.leftGradientClassName):"".concat("ZuAif"," ").concat(e.rightGradientClassName)}),!e.hideExtendedClickableArea&&r.createElement("div",{role:"button",onClick:e.onClick,className:"".concat("AtsWP"," ").concat(a?Je:et)}),r.createElement("div",{role:"button",className:"".concat((t="BVcIS",t+=a?" ".concat(Je," ").concat(e.leftButtonClassName):" ".concat(et," ").concat(e.rightButtonClassName))," ").concat("gAsE9"," ").concat(e.className||""),onClick:e.onClick},e.hoverText&&r.createElement("span",{className:"pl-3 pr-2 ".concat("APA36")},e.hoverText),r.createElement(b.x,{svgName:o,size:b.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"}(tt||(tt={}));var rt=n(90547),it=n(5256),at=n(29267);function ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lt,ct,st,ut=n(89146);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archived=2]="Archived"}(lt||(lt={})),function(e){e.ThumbnailHeroMedia="thumbnail_hero_media",e.ThumbnailFeaturedMedia="thumbnail_featured_media",e.ThumbnailSlidingListSmall="thumbnail_sliding_list_small",e.ThumbnailSlidingListLarge="thumbnail_sliding_list_large",e.CoverSlidingPillListSmall="cover_sliding_pill_list_small",e.CoverFixedPillListLarge="cover_fixed_pill_list_large",e.CoverFixedPillListXSmall="cover_fixed_pill_list_xsmall",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.FeaturedThumbnailSlidingList="featured_thumbnail_sliding_list",e.HeroBanner="hero_banner",e.HeroBannerSmall="hero_banner_small",e.HeroThumbnailSmall="hero_thumbnail_small",e.ThumbnailFixedListXLarge="thumbnail_fixed_list_xlarge",e.ThumbnailFixedListLarge="thumbnail_fixed_list_large",e.ThumbnailFixedListSmall="thumbnail_fixed_list_small",e.EditableCoverFixedPillListSmall="editable_cover_fixed_pill_list_small",e.Heading="heading",e.ThumbnailFixedListMediaLarge="thumbnail_fixed_list_media_large",e.PopoutThumbnailSlidingListLarge="popout_thumbnail_sliding_list_large",e.PopoutThumbnailSlidingListSmall="popout_thumbnail_sliding_list_small",e.CircleLogoSlidingList="circle_logo_sliding_list",e.FilterSlidingPillListSmall="filter_sliding_pill_list_small"}(ct||(ct={})),function(e){e.CuratedMedia="curated_media",e.PlaylistMedia="playlist_media",e.ClassificationMedia="classification_media",e.LatestReleasedVideos="latest_released_videos",e.ContinueWatching="continue_watching_videos",e.CuratedClassifications="curated_classifications",e.Classifications="classifications",e.ClassificationLatestReleasedVideos="classification_latest_released_videos",e.CuratedSeries="curated_series",e.CuratedPlaylists="curated_playlists",e.Blurb="blurb",e.CuratedCompanies="curated_companies",e.Ratings="ratings",e.Presentations="presentations",e.ClassificationPlaylists="classification_playlists",e.ClassificationSeries="classification_series",e.ClassificationFeaturedVideo="classification_featured_video",e.ClassificationPinnedVideos="classification_pinned_videos"}(st||(st={}));var dt,ft=n(16287);function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Draft="Draft",e.Published="Published",e.Archived="Archived"}(dt||(dt={}));var vt={getSliderAnalyticsOptions:function(){return{actionType:C.UserAction.Click,location:C.LocationContext.SlidingList,entity:C.EntityType.Widget,descriptor:C.ClickDescriptor.Slide}},getSliderItemAnalyticsOptions:function(){return{location:C.LocationContext.SlidingListItem}},getSliderHeadingAnalyticsOptions:function(){return{actionType:C.UserAction.Click,location:C.LocationContext.SlidingList,entity:C.EntityType.Widget,descriptor:C.ClickDescriptor.Title}},useGetContent:function(e,t){return i().useMemo((function(){var n;if(!e)return{content:null,unfilteredContent:null};if(!Array.isArray(e))return{content:e,unfilteredContent:e};var r,i=null!==(n=null==t?void 0:t.reduce((function(e,t){return e[t.id]=t,e}),{}))&&void 0!==n?n:{},a=function(e){if(Array.isArray(e))return mt(e)}(r=e)||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 mt(e,t);var n=Object.prototype.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}}(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.")}(),o=a.sort((function(e,t){var n,r,o,l,c=null!==(r=null===(n=i[e.id])||void 0===n?void 0:n.index)&&void 0!==r?r:a.findIndex((function(t){return t.id===e.id})),s=null!==(l=null===(o=i[t.id])||void 0===o?void 0:o.index)&&void 0!==l?l:a.findIndex((function(e){return e.id===t.id}));return c<s?-1:c>s?1:0}));return{content:o.filter((function(e){var t;return!(null===(t=i[e.id])||void 0===t?void 0:t.hidden)})),unfilteredContent:o}}),[e,t])},getCustomAppLink:function(e){var t,n,r,i,a,o;return(null===(t=e.metadata)||void 0===t?void 0:t.appLink)===ft.CuratedDashboardAppLink.LatestReleases?null===(r=null===(n=e.appLinks)||void 0===n?void 0:n.latestReleases)||void 0===r?void 0:r.call(n):(null===(i=e.metadata)||void 0===i?void 0:i.appLink)===ft.CuratedDashboardAppLink.ExploreAllTopics?null===(o=null===(a=e.appLinks)||void 0===a?void 0:a.allTopics)||void 0===o?void 0:o.call(a):null},getWidgetStatus:function(e){var t=e.status;if("string"==typeof t)switch(t){case dt.Archived:t=lt.Archived;break;case dt.Published:t=lt.Published;break;case dt.Draft:t=lt.Draft}return t},formatResponseData:function(e,t){var n=e.content;if(!n)return e;switch("data"in n?e.content=n.data:Array.isArray(n)||(e.content=[n]),e.widgetId){case st.ClassificationSeries:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.tallPoster)||void 0===t?void 0:t.id)}));break;case st.ClassificationPlaylists:e.content=e.content.filter((function(e){var t;return!!(null===(t=e.cover)||void 0===t?void 0:t.id)}));break;case st.ContinueWatching:e.content=e.content.map((function(e){return e.object}));default:break;case st.Presentations:e.content=e.content.filter((function(e){var n;return 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===st.Blurb},canDisplayOnScreenSize:function(e,t,n){return t!==st.Blurb||n!==ct.HeroBannerSmall||!e.xs&&!e.sm}},pt=function(e,t,n){return function(){e.container.current&&(e.container.current.style.transition=""),t({type:tt.Resize,payload:{elementRefs:e,mediaQuery:n}})}},yt=function(e){return function(){e.current&&(e.current.style.transition="transform .4s ease-in-out")}},gt=function(e,t,n,r,i){return function(a){var o=a.clientX,l=r;l||(l=Object.assign(Object.assign({},t),{initialMouseX:o}),i(l),e.current.style.transition=""),n({type:tt.Drag,payload:{widgetSnapshot:l,currentMouseX:o}})}},bt=function(e,t){return function(){e.current.style.transition="transform .4s ease-in-out",t(null)}};function ht(e){return e===rt.r.XS?200:e===rt.r.SM||e===rt.r.MD?350:500}var Et={offset:0,containerLeftPosition:null,containerRightPosition:null,firstElementPosition:null,lastElementPosition:null,hideLeftButton:!0,hideRightButton:!0,maxSlideDistance:0,leftOffsetLimit:null},St=function(e){var t=e.elementRefs,n=t.container,r=t.lastElement;if(!(null==n?void 0:n.current)||!(null==r?void 0:r.current))return Et;var i=n.current.getBoundingClientRect(),a=i.left,o=i.right,l=a,c=r.current.getBoundingClientRect().right,s=o-c;return Object.assign(Object.assign({},Et),{containerLeftPosition:a,containerRightPosition:o,firstElementPosition:l,lastElementPosition:c,hideRightButton:c<o,leftOffsetLimit:s,maxSlideDistance:ht(e.mediaQuery)})},At=function(e){var t=St(Object.assign(Object.assign({},e),e.elementRefs));return Object.assign(Object.assign({},t),{maxSlideDistance:ht(e.mediaQuery)})},Ct=function(e){var t=e.firstElementPosition,n=e.lastElementPosition,r=e.maxSlideDistance,i=e.offset,a=e.containerRightPosition,o=n-a>=r?r:n-a;return{firstElementPosition:t-o,lastElementPosition:n-o,offset:i-o,hideRightButton:n-o===a,hideLeftButton:!1}},Ot=function(e){var t=e.containerLeftPosition,n=e.firstElementPosition,r=e.lastElementPosition,i=e.maxSlideDistance,a=e.offset,o=n+i<=t,l=o?i:Math.abs(a);return{firstElementPosition:n+l,lastElementPosition:r+l,offset:a+l,hideLeftButton:!o||n+l===t,hideRightButton:!1}},wt=function(e,t){var n=t.widgetSnapshot,r=t.currentMouseX;if(n.hideLeftButton&&n.hideRightButton)return{};var i=n.initialMouseX-r,a=n.offset-i,o=n.firstElementPosition-i,l=n.lastElementPosition-i,c=!1,s=!1;return o>e.containerLeftPosition&&(a=0,o=e.containerLeftPosition,l=e.lastElementPosition,c=!0),l<=e.containerRightPosition&&(a=e.leftOffsetLimit,o=e.containerLeftPosition-Math.abs(e.leftOffsetLimit),l=n.containerRightPosition,s=!0),{offset:a,firstElementPosition:o,lastElementPosition:l,hideLeftButton:c,hideRightButton:s}};function kt(e,t){switch(t.type){case tt.Init:return Object.assign(Object.assign({},e),St(t.payload));case tt.Resize:return Object.assign(Object.assign({},e),At(t.payload));case tt.Next:return Object.assign(Object.assign({},e),Ct(e));case tt.Previous:return Object.assign(Object.assign({},e),Ot(e));case tt.Drag:return Object.assign(Object.assign({},e),wt(e,t.payload));default:return e}}var Lt={itemSpacing:"fDc_6",mobileScroll:"aLSzv",leftGradient:"YheD1",leftButton:"ISepF",rightGradient:"i9XEE",rightButton:"OxM84"};function Tt(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rt(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 It(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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||Rt(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 Rt(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.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)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jt(e){var t,n,i,a,o,l,c,s=e.childComponent,u=e.staticChildren,d=e.getWidgetItemAnalyticsData,f=void 0===d?function(){}:d,m=It(r.useReducer(kt,Et),2),v=m[0],p=m[1],y=It(r.useState(null),2),g=y[0],b=y[1],h={container:r.useRef(null),firstElement:r.useRef(null),lastElement:r.useRef(null)},E=(t=(0,it.a)(rt.r.XS),n=(0,it.a)(rt.r.SM),i=(0,it.a)(rt.r.MD),a=(0,it.a)(rt.r.LG),o=(0,it.a)(rt.r.XL),l=(0,it.a)(rt.r.XXL),c=rt.r.LG,t&&(c=rt.r.XS),n&&(c=rt.r.SM),i&&(c=rt.r.MD),a&&(c=rt.r.LG),o&&(c=rt.r.XL),l&&(c=rt.r.XXL),c),S=Ye.V.isTabletOrMobile();!function(e,t){var n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){e(),window.clearTimeout(n),n=window.setTimeout(t,100)};r.useEffect((function(){return window.addEventListener("resize",t?o:e),function(){return window.removeEventListener("resize",t?o:e)}}),function(e){if(Array.isArray(e))return ot(e)}(i=a)||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 ot(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(e,t):void 0}}(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.")}())}(pt(h,p,E),yt(h.container),[E]);var A=(0,at.Y)({prevent:!e.lazyLoad}),C=A.ref,k=A.inView,L=e.collection;if(!e.collection&&j.q.isFunction(e.fetch)){var T=e.fetch(k);L=T.data}r.useEffect((function(){L&&!w.t.isEmpty(L)&&p({type:tt.Init,payload:{elementRefs:h,mediaQuery:E}})}),[L]);var I=r.useMemo((function(){var t,n;if(L){var i=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=L.map((function(t,n){var o;t===O.m.first(L)&&(null==i?void 0:i.length)&&(o=h.firstElement),t!==O.m.last(L)||(null==a?void 0:a.length)||(o=h.lastElement);var l=n+1===L.length;return r.createElement("div",{key:t.id,ref:o,className:"".concat(Lt.itemSpacing," ").concat(l&&S?"pr-4":"")},r.createElement(s,{getChildAppLink:e.getChildAppLink,data:t,getSubtitle:e.getSubtitle,analyticsData:Object.assign(Object.assign({itemIndex:n},e.analyticsData),f(t)),analyticsOptions:Object.assign(Object.assign({},null==e?void 0:e.analyticsOptions),vt.getSliderItemAnalyticsOptions())}))}));return i.length&&(o=[].concat(Tt(i.map((function(e,t){var n=e.component;return r.createElement("div",{key:"first-widget-component:".concat(t),ref:0===t?h.firstElement:null,className:Lt.itemSpacing},r.createElement(n,null))}))),Tt(o))),a.length&&(o=[].concat(Tt(o),Tt(a.map((function(e,t){var n=e.component;return r.createElement("div",{key:"end-widget-component:".concat(t),ref:t===a.length-1?h.lastElement:null,className:Lt.itemSpacing},r.createElement(n,null))}))))),r.createElement(r.Fragment,null,o)}}),[L]);if(L&&!L.length&&!(null==u?void 0:u.length))return r.createElement(r.Fragment,null);if(!L||w.t.isEmpty(L))return r.createElement("div",{ref:C},r.createElement(_t,{partialLoadingComponent:e.partialLoadingComponent,partialLoadingOptions:e.partialLoadingOptions}));var R=function(t){return Object.assign(Object.assign({},e.analyticsData),{name:e.heading,direction:t===tt.Next?"right":"left"})},N=S||e.hideButtons;return r.createElement("div",{className:"mx-n4"},r.createElement("div",{className:"px-4"},r.createElement(He,{name:e.heading,description:e.description,appLink:e.headingAppLink})),r.createElement("div",{className:"position-relative"},r.createElement("div",{className:"px-4 py-3 my-n3 position-relative ".concat(S?Lt.mobileScroll:"overflow-hidden-x")},r.createElement("div",{className:"position-relative ".concat(e.hideButtons?"overflow-hidden-x":"")},!N&&r.createElement(nt,{direction:Ke.Left,onClick:function(){p({type:tt.Previous}),x.k.logUserAction(R(tt.Previous),vt.getSliderAnalyticsOptions())},leftButtonClassName:Lt.leftButton,leftGradientClassName:Lt.leftGradient,hide:v.hideLeftButton,useGradientBackdrop:!0}),r.createElement(Ze,{position:v.offset,positionType:Ve.Pixels,onDrag:gt(h.container,v,p,g,b),onDragEnd:bt(h.container,b),ref:h.container},I),!N&&r.createElement(nt,{direction:Ke.Right,onClick:function(){p({type:tt.Next}),x.k.logUserAction(R(tt.Next),vt.getSliderAnalyticsOptions())},hide:v.hideRightButton,rightButtonClassName:Lt.rightButton,rightGradientClassName:Lt.rightGradient,useGradientBackdrop:!0})))))}jt.defaultProps={heading:"",description:""};var _t=function(e){var t=e.partialLoadingComponent,n=e.partialLoadingOptions;return r.createElement("div",{className:"d-flex flex-nowrap overflow-hidden"},ut.u.getPartialLoadingItems(n).map((function(e,n){return r.createElement(t,{key:n})})))},xt=n(34564),Pt={tagItem:"EcurS",selected:"FypfE"};function Ft(e){var t=e.selectedItems.find((function(t){return t.id===e.data.id}))?"".concat(Pt.selected," text-info"):"bg-light";return i().createElement(xt.z,{tag:e.data,appLink:e.appLink,tagClass:"no-decoration ".concat(t," ").concat(Pt.tagItem),onClick:function(){return e.onClick(e.data)}})}var Dt={tagItem:"j84HW"};function Bt(e){return Bt="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},Bt(e)}function Mt(e){return function(e){if(Array.isArray(e))return Ut(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 Ut(e,t);var n=Object.prototype.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)?Ut(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 Ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qt(e){var t,n,r,a,o=i().useContext(R).state;if(!(null===(t=e.filter)||void 0===t?void 0:t.id))return i().createElement(i().Fragment,null);var l=o[e.filter.id],c=l.selection,s=null!==(a=null===(r=null===(n=e.filter)||void 0===n?void 0:n.options)||void 0===r?void 0:r.filter((function(e){return!(null==c?void 0:c.find((function(t){return t.id===e.id})))})))&&void 0!==a?a:[];function u(t){var n,r,i,a=null,s=-1;if(c.find((function(e,n){s>-1||e.id.toString()===t.id.toString()&&(s=n)})),s>=0){var u=[].concat(Mt(c.slice(0,s)),Mt(c.slice(s+1)));a={active:!!u.length,selection:u}}else a={active:!0,selection:c.concat(t)};Te.applyFilter([e.filter],l,(n={},r=e.filter.id,i=a,(r=function(e){var t=function(e,t){if("object"!==Bt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bt(t)?t:String(t)}(r))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),o.appLink)}var d,f=[].concat(Mt(c),Mt(e.isFetching?[]:s));return i().createElement("div",{className:"py-2"},i().createElement("div",{className:(d="mb-3",f.length&&e.isFetching?d+=" mt-n1":f.length||e.isFetching||(d+=" d-none"),d)},(!!f.length||e.isFetching)&&i().createElement(jt,{collection:f,childComponent:function(e){return i().createElement(Ft,Object.assign({},e,{selectedItems:c,onClick:u}))},staticChildren:e.isFetching?new Array(3).fill({component:function(){return i().createElement(Xe,{tagClass:Dt.tagItem})},position:"end"}):[],partialLoadingComponent:function(){return i().createElement("div",{className:"mr-2"},i().createElement(Xe,{tagClass:"".concat(Dt.tagItem)}))}})))}function Vt(e){var t=r.useContext(R).state;return r.createElement(L.L,{onClick:function(){_.Q.AppLinkHelper.trigger(Object.assign(Object.assign({},t.appLink),{params:e.currentQueryParam?{query:e.currentQueryParam}:null}))},className:"hover-text-underline cursor-pointer d-flex align-items-center ml-2"},r.createElement(s.x,{namespace:"search.resetButton",phrase:"reset"}))}var Gt={partialFilterHeading:"O8f8H",partialButton:"ThKam",filtersContainer:"JIp3h"};function Xt(e){return function(e){if(Array.isArray(e))return Qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Yt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e,t){if(e){if("string"==typeof e)return Qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(e,t):void 0}}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ht(e){var t,n,i=e.queryParams,a=e.appLink,o=e.hideHeading,l=e.isFetchingOptions,c=e.constantIndices,u=void 0===c?[]:c,d=r.useMemo((function(){return Te.deriveInitialStateFromQuery(i,e.mainFilters,e.moreFilters,a)}),[i,l]),f=(t=r.useReducer(N,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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(t,n)||Yt(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.")}()),m=f[0],v=f[1];r.useEffect((function(){w.t.isEqual(d,m)||(v({type:"update",payload:d}),e.analyticsOptions&&Te.logFilterEvent(e.mainFilters,e.moreFilters,d,i.query,e.analyticsOptions))}),[d]);var p=O.m.uniq([].concat(Xt(Te.getAppliedIndices(i)),Xt(u))),y=Te.mixinDisabledFields(m,p,e.mainFilters,e.moreFilters),g=y.mainFilters,b=y.moreFilters,h=g.filter((function(e){return"tag"!==e.type})),E=g.find((function(e){return"tag"===e.type}));return r.createElement(R.Provider,{value:{state:m,dispatch:v}},r.createElement(s.D.Provider,{value:"search.searchFilters"},r.createElement("section",null,r.createElement("div",{className:"d-flex ".concat(e.hideDivider?"":"border-bottom pb-3 mb-3")},!o&&r.createElement("h2",{className:"h5 mb-0 d-inline-block pr-2 border-right d-flex align-items-center"},r.createElement(s.x,{phrase:"heading"})),r.createElement("div",{className:"d-flex flex-wrap ".concat(Gt.filtersContainer," ").concat(o?"":"ml-2")},h.map((function(e){return r.createElement(Pe,{key:e.id,filter:e})})),b&&r.createElement(qe,{filter:b}),Te.hasActiveFilters(i)&&!e.hideResetButton&&r.createElement(Vt,{mainFilters:e.mainFilters,moreFilters:e.moreFilters,currentQueryParam:i.query,analyticsOptions:e.analyticsOptions}))),r.createElement(qt,{filter:E,queryParams:i,isFetching:e.isFetchingOptions}))))}var Wt=a.T.encloseNamespace("libraryRequests.filters");function Kt(e){return i().createElement(Ht,{queryParams:e.queryParams,mainFilters:[{id:"status",name:"Status",type:"checkbox",options:[{id:"approved",name:Wt("approved")},{id:"rejected",name:Wt("rejected")},{id:"closed",name:Wt("closed")},{id:"autoApproved",name:Wt("autoApproved")}],compatibleIndices:[]}],appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,args:[e.id],params:e.queryParams},analyticsOptions:{entity:C.EntityType.LibraryRequest,location:C.LocationContext.LibraryRequestDetails},constantIndices:[],hideDivider:!0})}var zt=n(61421),$t=n(49824),Zt=n(1834),Jt=n(7044),en=n(21974),tn=n(264),nn=n(65402),rn="libraryRequests.pastDetails";function an(e){var t=(0,nn.$)(e.status);return i().createElement("span",{className:"ml-1"},t)}function on(e){var t,n,r,a,o,l,u,d=e.libraryRequest.sourceLibrary||e.libraryRequest.sourceCategory,f="";e.libraryRequest.actionedBy&&(f="".concat(e.libraryRequest.actionedBy.name," ").concat(e.libraryRequest.actionedBy.surname));var m=function(e){switch(e){case E.l.AutoApproved:return"addedBy";case E.l.Approved:return"approvedBy";default:return"rejectedBy"}}(e.libraryRequest.status),p=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===(r=e.libraryRequest.sender)||void 0===r?void 0:r.surname)&&void 0!==a?a:""),y="";return(null===(o=e.libraryRequest.senderCustomer)||void 0===o?void 0:o.id.toString())!==e.currentUser.get("customerId").toString()&&(y=null===(l=e.libraryRequest.senderCustomer)||void 0===l?void 0:l.name),i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3 offset-9 mb-n3"},i().createElement("div",{className:"d-flex justify-content-end align-items-start"},i().createElement(nn.h,{status:e.libraryRequest.status}),i().createElement(an,{status:e.libraryRequest.status}))),i().createElement("div",{className:"col-12"},!!f&&i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3 font-label"},i().createElement(s.x,{namespace:rn,phrase:m})),i().createElement("div",{className:"col-6"},f)),!!p&&e.libraryRequest.status!==E.l.AutoApproved&&i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3"},i().createElement("label",null,i().createElement(s.x,{namespace:rn,phrase:"requestedBy"}))),i().createElement("div",{className:"col-6"},i().createElement(i().Fragment,null,p,!!y&&i().createElement(i().Fragment,null," (",y,")")))),i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3 font-label"},d&&i().createElement(s.x,{namespace:rn,phrase:"videoSource"})),i().createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&i().createElement("span",{className:"badge p-1 mr-1 text-white ".concat(en.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},en.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,tn.g.hasLite)),!!e.libraryRequest.sourceCategory&&i().createElement("span",{className:"ml-1"},e.libraryRequest.sourceCategory.name))),(null===(u=e.folderPath)||void 0===u?void 0:u.length)&&i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3 font-label"},i().createElement(s.x,{namespace:rn,phrase:"libraryLocation"})),i().createElement("div",{className:"col-9"},i().createElement(c.Oo,{breadcrumbs:e.folderPath.map((function(e,t){return{name:e.name,appLink:{application:v.OV.LIBRARY_EDITOR,action:0===t?v.eX.LibraryEditor.LIBRARY:v.eX.LibraryEditor.FOLDER,args:[e.id]}}}))}))))))}function ln(){return i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),i().createElement("div",{className:"col-6 mb-2"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),i().createElement("div",{className:"col-3 d-flex justify-content-end"},i().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"6rem"}})),i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),i().createElement("div",{className:"col-6"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"15rem"}}))))}var cn=n(17950),sn=n(9416),un=n(25796),dn=n(41026),fn=n(59198),mn=n(85739),vn=n(30328),pn=n(64429),yn=n(41777),gn=n(56154),bn="libraryRequests.pastRequestsEmptyState",hn=a.T.encloseNamespace(bn);function En(){return i().createElement("div",{className:"bg-white rounded p-3 py-5"},i().createElement(yn.u,null,i().createElement(yn.u.Image,{src:gn.W.EmptyStates.PAST_REQUESTS}),i().createElement(yn.u.Info,{className:"mb-1"},i().createElement(s.x,{namespace:bn,phrase:"info"})),i().createElement(yn.u.Cta,{text:hn("cta"),className:"btn btn-link text-info",appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}function Sn(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 r,i,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return An(e,t);var n=Object.prototype.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)?An(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 An(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cn="libraryRequests.pastRequests",On=a.T.encloseNamespace(Cn),wn=[E.l.Approved,E.l.Closed,E.l.Rejected,E.l.AutoApproved];function kn(e){var t,n,r,a,b,h=o.a.useGetFetch(),E=(0,d.Z)(),S=(0,mn.p)(e.queryParams.sort||u.D.Newest,e.queryParams.status||wn),C=o.a.useBasicFetch(e.id&&un.y.libraryRequest(e.id)),O=(0,fn.s)(e.id),w=o.a.useBasicFetch(C.data&&(null===(t=C.data.destinationLibrary)||void 0===t?void 0:t.id)&&(null===(n=C.data.destinationCategory)||void 0===n?void 0:n.id)&&un.y.categoryPath(C.data.destinationLibrary.id,C.data.destinationCategory.id)),k=Sn(i().useState(null),2),L=k[0],T=k[1];(0,l.i)(y.p.getConfigFetchOptions(T),[]);var I=Sn(i().useState(null),2),R=I[0],N=I[1];(0,l.i)(g.K.getCurrentUserFetchOptions(N),[]),(0,f.v)(C),(0,vn.A)({id:e.id,requests:S.items,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,params:e.queryParams}}),(0,pn.m)(C.data,"past",e.queryParams),(0,dn.K)(C.data);var j=((null===(r=S.items)||void 0===r?void 0:r.length)||S.hasCompleted)&&L&&R,_=C.data&&O.hasCompleted,x=!e.queryParams.status&&C.hasCompleted&&!(null===(a=S.items)||void 0===a?void 0:a.length);return i().createElement("div",null,i().createElement("h1",{className:"h2"},i().createElement(s.x,{namespace:Cn,phrase:"title"})),i().createElement("div",{className:"mb-3"},i().createElement(c.Oo,{breadcrumbs:[{name:On("libraryEditor"),appLink:{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.HOME}},{name:On("title"),active:!0}]})),i().createElement(sn.A,{active:"past"}),!x&&i().createElement("div",{className:"d-flex justify-content-between mb-3"},i().createElement(Kt,{id:e.id,queryParams:e.queryParams}),i().createElement(cn.F,{appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS,args:[e.id]},queryParams:e.queryParams})),!j||(null===(b=S.items)||void 0===b?void 0:b.length)?i().createElement("div",{className:"row"},i().createElement("div",{className:"col-4"},j?i().createElement(Zt.q,{libraryRequests:S.items,selectedId:e.id,appLink:{application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PAST_REQUESTS},queryParams:e.queryParams,fetchNext:S.fetchNext,isFetching:S.isFetching,nextCursor:S.nextCursor}):i().createElement(Jt.p,null)),i().createElement("div",{className:"col-8"},j&&_?i().createElement(i().Fragment,null,i().createElement(A,{libraryRequest:C.data}),i().createElement(on,{libraryRequest:C.data,folderPath:w.data,currentUser:R}),i().createElement(zt.x,{libraryRequest:C.data,config:L,currentUser:R,createViewKey:function(t,n){var r=un.y.createViewKey(e.id,(function(e){return n(new p.y(e))}),(function(e){return E.error(m.M.libraryApiError(e))}));h(r)},comments:O.items})):i().createElement(i().Fragment,null,i().createElement(ln,null),i().createElement($t.j,null)))):i().createElement(En,null))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8362],{38362:function(e,t,n){"use strict";n.r(t),n.d(t,{EditLinkView:function(){return O}});var r=n(48088),o=n(21679),i=n(57857),u=n(99249),a=n(31647),l=n(52076),c=n(10101),s=n(88172),f=n(48090),p=n(67670),d=n(13823),y=n(61843),b=n(7190),v=n(8407),h=n.n(v);function m(e){return m="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},m(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===m(o)?o:String(o)),r)}var o}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!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&&w(e,t)}(j,e);var t,n,v,O,S=(v=j,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=k(v);if(O){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(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)}(this,e)});function j(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,j),S.call(this,e)}return t=j,(n=[{key:"initialize",value:function(){this.listenTo(f.Vk.LINK,"link:".concat(this.options.linkId,":sync"),this.render),this.linkDataService=o.u.getInstance(f.Or.Link,this)}},{key:"name",get:function(){return"EditLinkView"}},{key:"title",get:function(){return"Edit link"}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"lang",get:function(){return"libraryEditor.editLink"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.linkDataService.updateLink(this.options.videoId,this.viewModel,(function(){t.logAction(),a.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.linkId,parentId:+this.options.videoId,name:this.viewModel.get("name")};l.k.logUserAction(e,this.options.analyticsOptions)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.linkDataService.getLink(this.options.linkId,(function(t){e.viewModel=u.r.get("link:".concat(e.options.linkId),t.toJSON(),{ctor:d.r}),e.viewModel.addValidation(b.yU)})),this.dataFetched()&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}))}},{key:"onClose",value:function(){this.unstickit()}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),j}(a.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="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},i(e)}function u(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!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&&c(e,t)}(p,e);var t,n,r,l,f=(r=p,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(l){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(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)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){var e;return u(e={},o.ZV.Disabled,!0),u(e,o.ZV.Hidden,!1),e}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},8407:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<form>\n <div class="form-group">\n <label for="url" class="control-label">URL</label>\n <input name="url" id="url" type="text" class="form-control" placeholder="URL" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group">\n <label for="name" class="control-label">Name</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="Name" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
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 d}});var o=n(48088),r=n(57857),i=n(31647),a=n(52076),l=n(70065),u=n(61843),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,(void 0,r=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===p(r)?r:String(r)),o)}var r}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var d=function(t){!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&&y(t,e)}(v,t);var e,n,i,c,d=(i=v,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(i);if(c){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return 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)}(this,t)});function v(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),d.apply(this,arguments)}return e=v,(n=[{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 u.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(l.WorkflowPhase.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(l.WorkflowPhase.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:l.LocationContext.AwaitingReviewVideoListHeader,actionType:l.UserAction.Approve,descriptor:l.OperationDescriptor.All,entity:l.EntityType.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(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Q.Component)},7572:function(t,e,n){"use strict";n.d(e,{u:function(){return v}});var o=n(57857),r=n(31647),i=n(50997),a=n(57085),l=n(35630),u=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,(void 0,r=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===f(r)?r:String(r)),o)}var r}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!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&&b(t,e)}(m,t);var e,n,r,c,v=(r=m,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(r);if(c){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return 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)}(this,t)});function m(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),v.call(this,t)}return e=m,(n=[{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=u.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==u.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 l.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()}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.Q.Component)},95920:function(t,e,n){"use strict";n.d(e,{m:function(){return v}});var o=n(31647),r=n(52076),i=n(70065),a=n(25692),l=n(98985),u=n(48090),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,(void 0,r=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===f(r)?r:String(r)),o)}var r}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var v=function(t){!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&&b(t,e)}(m,t);var e,n,o,s,v=(o=m,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(o);if(s){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return 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)}(this,t)});function m(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),v.call(this,t)}return e=m,(n=[{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:u.OV.CONTENT_UPDATES,action:u.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:i.LocationContext.LeftNav,actionType:i.UserAction.Disable,entity:i.EntityType.CustomerSetting,descriptor:i.CustomerSettingDescriptor.LibraryReview,workflowPhase:i.WorkflowPhase.Start};r.k.logUserAction({},t)}},{key:"viewOptions",value:function(){return{supportUrl:!c.g.hasLite&&l.o.getOnlineArticle(a.s.LibraryReview)}}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(o.Q.Component)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return P}});var o=n(57857),r=n(31647),i=n(80758),a=n(58688),l=n(23096),u=n(48090),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 v(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,(void 0,r=function(t,e){if("object"!==b(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!==b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===b(r)?r:String(r)),o)}var r}function m(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(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&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=k(t);if(e){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return 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)}(this,n)}}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var O=function(t){h(n,t);var e=w(n);function n(t){return d(this,n),e.call(this,t)}return m(n,[{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 l.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:u.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}))}}]),n}(r.Q.Component),C=function(t){h(n,t);var e=w(n);function n(t){return d(this,n),e.call(this,t)}return m(n,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return O}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.Q.ComponentCollection),P=function(t){h(n,t);var e=w(n);function n(t){return d(this,n),e.call(this,t)}return m(n,[{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:u.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 C(this.options))}}]),n}(r.Q.Component)},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,l=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(l,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\n"+(null!=(i=n.if.call(l,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||{},l=t.hooks.helperMissing,u=t.escapeExpression;return' <p class="m-0">'+u((n.lang||e&&e.lang||l).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+u(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+u((n.lang||e&&e.lang||l).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||{},l=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="p-3 border-bottom">\n <h5>'+u((n.lang||e&&e.lang||l).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\n <p>"+u((n.lang||e&&e.lang||l).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+u((n.lang||e&&e.lang||l).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\n</div>\n<div class="p-3 border-bottom">\n <p class="m-0">'+u((n.lang||e&&e.lang||l).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="pl-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 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8762],{23380:function(e,t,r){"use strict";r.r(t),r.d(t,{NewFolderView:function(){return S}});var n=r(48088),i=r(11306),o=r(21679),l=r(57857),a=r(99249),s=r(31647),u=r(52076),c=r(10101),d=r(60103),f=r(88172),p=r(48090),h=r(67670),y=r(60602),v=r(61843),b=r(77739),g=r(56906),w=r(77830),m=r.n(w);function k(e){return k="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},k(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==k(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===k(i)?i:String(i)),n)}var i}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var S=function(e){!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)}(E,e);var t,r,w,S,P=(w=E,S=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(w);if(S){var r=O(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===k(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)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),P.call(this,e)}return t=E,(r=[{key:"initialize",value:function(e){var t=e.parentId,r=e.libraryId;(t?!r:r)||s.Q.ErrorHelper.throw(new i.H("Must provide either a libraryId or a parentId to ".concat(this.name))),this.bindListeners(),this.libraryDataService=o.u.getInstance(p.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"NewFolderView"}},{key:"lang",get:function(){return"libraryEditor.newFolder"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return v.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:l.T.getPhrase(this.lang,"heading"),appLink:this.options.returnAppLink,spinnerButtonOptions:{model:this.spinnerModel=new h.v,channelName:this.channelName,buttonText:l.T.getPhrase(this.lang,"create"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(n.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.trimFolderName(),this.addFolder(),this.logAction())}},{key:"addFolder",value:function(){var e=this,t=this.viewModel.get("parentId").toString()===this.library.get("id").toString()?null:this.viewModel.get("parentId").toString();this.libraryDataService.addFolder(this.viewModel,this.library.get("id").toString(),t,(function(t){a.r.clear(e.getViewModelKey()),e.options.routeToFolderOnCreate?s.Q.AppLinkHelper.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.FOLDER,args:[t.get("id")]}):e.triggerMethod("hide")}))}},{key:"trimFolderName",value:function(){var e=this.viewModel.get("name");this.viewModel.set("name",e.trim())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.viewModel.get("name"),isSubfolder:this.viewModel.get("parentId").toString()!==this.library.get("id").toString()};u.k.logUserAction(e,this.options.analyticsOptions)}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e=this.getViewModelKey();this.viewModel=a.r.get(e,null,{ctor:y.g}),this.viewModel.set({parentId:this.options.parentId||this.options.libraryId})}}},{key:"getViewModelKey",value:function(){return"folder:new:".concat(this.options.libraryId,":").concat(this.options.parentId)}},{key:"renderFolderDetails",value:function(){if(this.collection){var e=new b.r({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!0,editParent:!0,folderTreeKey:this.folderTreeKey});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getLibraries((function(t){if(!e.collection){var r=e.options.libraryId||e.options.parentId;e.library=v.PU.getLibrary(r,t),e.setUpViewModel(),e.collection=new d.I([e.library]),v.PU.setSelected(e.folderTreeKey,e.viewModel.get("parentId"),e.collection)}})),this.collection&&this.spinnerModel.set(f.ZV.Disabled,!1),v.PU.getFolderDepth(this.options.parentId,this.collection)>=p.pA.MAX_FOLDER_DEPTH)return window.setTimeout((function(){e.triggerMethod("hide"),s.Q.ErrorHelper.throw(new g.al)}),p.pA.POPUP_FADE_TIMEOUT),!1}},{key:"viewOptions",value:function(){return{dataFetched:!!this.collection,spinnerEl:v.Kp.getSpinner({size:v.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}}])&&I(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),E}(s.Q.View)},77830:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,r,n,i){return'<div class="folder-details-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,null!=(o=r.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8906],{11224:function(e,t,n){"use strict";n.r(t),n.d(t,{AddToExchangeView:function(){return k}});var r=n(21186),o=n(21679),i=n(57857),l=n(68003),u=n(31647),c=n(10101),a=n(88172),s=n(20072),f=n(48090),p=n(67670),d=n(48404),y=n(61843),h=n(28274),b=n.n(h);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===v(o)?o:String(o)),r)}var o}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!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&&g(e,t)}(O,e);var t,n,u,h,k=(u=O,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(u);if(h){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===v(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)}(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),k.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.libraryDataService=o.u.getInstance(f.Or.Library,this),this.videoDataService=o.u.getInstance(f.Or.Video,this),this.alertService=o.u.getInstance(f.K9.Alerts,this),this.listenTo(f.Vk.LIBRARY,"exchange:".concat(10,":sync"),this.render),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"AddToExchangeView"}},{key:"lang",get:function(){return"libraryEditor.addToExchange"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return b()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{folderDropdown:".folder-dropdown-region"}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new p.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"add"),onClick:function(t){return e.onClickSubmit(t)}}}]}},{key:"getExchange",value:function(){return this.exchangeLibraries.first()}},{key:"onClickSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.spinnerModel.set(a.ZV.ShowSpinner,!0),this.videoDataService.copyVideo(this.options.videoId,this.getExchange().get("id"),this.folder.get("id"),(function(){t.alertService.createAlert({heading:"Request submitted",message:"We will notify you once your Exchange request has been approved",type:r.NK.Success}),t.triggerMethod("hide")}))}},{key:"onFolderSelected",value:function(e){this.folder=e,this.spinnerModel.set(a.ZV.Disabled,!1),y.PU.setSelected(this.folderTreeKey,e,this.getExchange().children)}},{key:"requiredResources",get:function(){return{config:d.p.config}}},{key:"onBeforeRender",value:function(){this.exchangeLibraries=this.libraryDataService.getExchange(10)}},{key:"onRender",value:function(){this.exchangeLibraries&&this.showChildView("folderDropdown",new s.Y({collection:this.getExchange().children,channelName:this.channelName,folderTreeKey:this.folderTreeKey}))}},{key:"viewOptions",value:function(){return{foldersLoaded:!!this.exchangeLibraries,guidelinesUrl:l._.safeUrlConcat(this.config.get("onlineUrl"),"/exchange/community-guidelines"),spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(u.Q.View)},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return b}});var r=n(48088),o=n(57857),i=n(31647),l=n(50299),u=n(61843),c=n(68979),a=n.n(c),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",customItem:"aJzJB"};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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.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:String(t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=function(e){!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&&y(e,t)}(v,e);var t,n,i,c,b=(i=v,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(c){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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)}(this,e)});function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e}({},t))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return a()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=u.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,extraClasses:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(i.Q.Component)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="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},i(e)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!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&&a(e,t)}(p,e);var t,n,r,c,f=(r=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(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)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){var e;return l(e={},o.ZV.Disabled,!0),l(e,o.ZV.Hidden,!1),e}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},28274:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<div class="alert alert-info" role="alert">\n The ClickView Exchange is a community for educators, read our <a class="info-link" href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.guidelinesUrl:i,t))+'" target="_blank">community guidelines</a> and let\'s ensure that we keep the Exchange a place we\'re proud of!\n</div>\n<p>After you submit your video to the Exchange, we will review it and notify you when your video has been made available.</p>\n<div class="form-group">\n <label>Select a folder</label>\n <div class="folder-dropdown-region"></div>\n</div>\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable," "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.foldersLoaded:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},68979:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,u=e.escapeExpression;return'<button\n class="'+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\n data-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+u(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n>\n <span class="d-block text-truncate button-text">\n '+u(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n</button>\n<div class="dropdown-menu '+u(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8947],{8371:function(e,t,n){"use strict";var r;n.d(t,{b:function(){return r}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},48726:function(e,t,n){"use strict";n.d(t,{R:function(){return N}});var r=n(48088),o=n(39479),i=n(57857),l=n(31647),a=n(56210),u=n(2214),c=n(50226),s=n.n(c),f={selectRating:"c7657",removeRating:"CETrw",disabled:"GZBl3",disabledSelected:"rDW1U"};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 y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===p(o)?o:String(o)),r)}var o}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var h=function(e){!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)}(u,e);var t,n,o,i,l=(o=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(o);if(i){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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)}(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"SelectRatingItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"attributes",get:function(){return{title:this.options.editable?this.model.get("name"):""}}},{key:"className",get:function(){var e="cursor-pointer btn";return this.options.editable?e+=this.model.get("selected")?" btn-dark":" btn-outline-dark":e+=" ".concat(f.disabled," ")+(this.model.get("selected")?f.disabledSelected:""),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var e=this.options.editable?this.options.model.get("name"):"";return[{behaviorClass:a.H,title:e}]}},{key:"onClick",value:function(){this.options.editable&&r.Radio.channel(this.options.channelName).trigger("select:rating",this.model)}},{key:"onRender",value:function(){this.resetClassName()}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(l.Q.Component);function m(e){return m="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},m(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===m(o)?o:String(o)),r)}var o}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!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&&g(e,t)}(l,e);var t,n,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(o){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(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)}(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"SelectRatingCollectionComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"rating-group btn-group p-0 m-0"}},{key:"childView",get:function(){return h}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,currentRatingId:this.options.currentRatingId,editable:this.options.editable}}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(l.Q.ComponentCollection),R=n(48090),O=n(61843),C=n(40622),S=n(61057),j=n.n(S),E=n(45092);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 _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==P(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===P(o)?o:String(o)),r)}var o}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var N=function(e){!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&&x(e,t)}(p,e);var t,n,l,c,s=(l=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=T(l);if(c){var n=T(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return 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)}(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"SelectRatingComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"shared.selectRating"}},{key:"events",value:function(){return{"click .remove-rating":"onRemoveRating"}}},{key:"regions",value:function(){return{ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"template",get:function(){return j()}},{key:"behaviors",get:function(){return[{behaviorClass:a.H,selector:".remove-rating",title:i.T.getPhrase(this.lang,"removeTooltip")}]}},{key:"appLinks",get:function(){return{".suggest-rating":{application:R.OV.LIBRARY_EDITOR,action:R.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.options.videoId],params:{metadata:C.MetadataType.Rating}}}}},{key:"defaults",get:function(){return{editable:!0}}},{key:"initialize",value:function(){this.setViewCollection(),this.setCurrentRating(this.model),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:rating",this.onRatingSelected)}},{key:"setCurrentRating",value:function(e){O.hD.setRating(e,this.viewCollection)}},{key:"onRatingSelected",value:function(e){this.setCurrentRating(e);var t=O.yV.getSelected(this.viewCollection);this.updateRating(t)}},{key:"onRemoveRating",value:function(e){e.preventDefault(),this.$(".remove-rating").tooltip("dispose"),this.setCurrentRating(null);var t=this.collection.findWhere({value:0});return this.updateRating(t),!1}},{key:"updateRating",value:function(e){r.Radio.channel(this.options.parentChannelName).trigger("select:rating",e),this.render()}},{key:"setViewCollection",value:function(){var e=o.filter(this.collection.toJSON(),(function(e){return 0!==e.value}));return this.viewCollection=new u.N(e)}},{key:"viewOptions",value:function(){var e=O.yV.getSelected(this.viewCollection);return{styles:o.extend(E.Z,f),showRemove:!this.options.hideRemove&&e&&this.options.editable,editable:this.options.editable,hideHeaderText:this.options.hideHeaderText}}},{key:"renderRatingCollectionComponent",value:function(){this.showChildView("ratings",new k({collection:this.viewCollection,channelName:this.channelName,editable:this.options.editable}))}},{key:"onRender",value:function(){this.renderRatingCollectionComponent()}}])&&_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(l.Q.Component)},61057:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return' <label class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"rating",{name:"lang",hash:{},data:o}))+"</label>\n "+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\n"},2:function(e,t,n,r,o){return"d-inline-block"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-rating">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:o}))+"</a></span><br>"},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="text-muted mx-2 remove-rating '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRating:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="edit-rating form-group '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectRating:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'">\n'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.hideHeaderText:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div>\n <div class="ratings-region" name="rating"></div>\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showRemove:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+'\n <div class="form-feedback"></div>\n </div>\n</div>'},useData:!0})},50226:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"\n"+e.escapeExpression("function"==typeof(i=null!=(i=n.code||(null!=t?t.code:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"code",hash:{},data:o}):i)},useData:!0})},45092:function(e,t){"use strict";t.Z={requiredStar:"BEwab",disabled:"N9ljx",formGroup:"dj5U0",suggestEdit:"DYJhs",programTitle:"HokbM",description:"Rg7xy",seriesTitle:"dgLz_",broadcastDate:"Wfedn",channel:"xGyC8",rating:"WIpKi",productionYear:"MHLLN",distributors:"TQxQ2",productionCompanies:"T9n2B",directors:"iFUiE",producers:"w4lSY",episodeNumber:"FkpUz",seasonNumber:"HDpHM",icon:"S2rQf",infoSvgContainer:"s96rB"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9357],{39357:function(e,t,n){"use strict";n.r(t),n.d(t,{ThumbnailUploadView:function(){return O}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(48090),d=n(29457),m=n(18375),y=n(61843),g=n(68826),v=n.n(g);function b(e){return b="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},b(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!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&&k(e,t)}(E,e);var t,n,g,O,I=(g=E,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(g);if(O){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(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)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),I.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.videoDataService=a.u.getInstance(h.Or.Video,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.navLockService=a.u.getInstance(h.K9.NavLock,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return v()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.ErrorHelper.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new m.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Thumbnails,minWidth:h.yE[d.__.Thumbnails].width,minHeight:h.yE[d.__.Thumbnails].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){c.r.get("upload:thumbnail:options").get("lockNav")&&this.navLockService.lock()}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(l.Q.View)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return d}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);function s(e){return s="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},s(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var d=function(e){!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&&f(e,t)}(d,e);var t,n,i,u,c=(i=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(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)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Q.Component)},68826:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9927],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="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},i(e)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,c,f=(r=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(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)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){var e;return l(e={},o.ZV.Disabled,!0),l(e,o.ZV.Hidden,!1),e}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},79927:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return C}});var r=n(21679),o=n(57857),i=n(31647),l=n(10101),a=n(88172),c=n(48090),u=n(87175),s=n(67670),f=n(19226),p=n(61843),h=n(9231),d=n.n(h),y={image:"wnpu5"};function b(e){return b="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},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var C=function(e){!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&&v(e,t)}(O,e);var t,n,h,C,w=(h=O,C=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(h);if(C){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(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)}(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),w.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(c.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:l.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(c.Vk.USER,"".concat(c.M_.CURRENT_USER,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(a.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=p.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(a.ZV.Disabled,!1),0):(setTimeout((function(){return i.Q.ErrorHelper.throw(new u.HH)}),0),1)))}},{key:"viewOptions",value:function(){return{styles:y,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:c.Wn.Shared.LOCAL_CACHE}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.Q.View)},9231:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\n<p>'+c((n.lang||t&&t.lang||a).call(l,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|