@clickview/library-editor 1.22.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/scripts/1010-75eddc83df.chunk.js +1 -0
  4. package/dist/scripts/{1086-753763725a.chunk.js → 1086-0d272fa94d.chunk.js} +1 -1
  5. package/dist/scripts/{1216-bf65bae6ca.chunk.js → 1216-7443ea7302.chunk.js} +1 -1
  6. package/dist/scripts/{1269-6c2e9b6e3c.chunk.js → 1269-971020275d.chunk.js} +1 -1
  7. package/dist/scripts/{1364-e7f93e86b7.chunk.js → 1364-12c4c2bf8c.chunk.js} +1 -1
  8. package/dist/scripts/{1409-09c643fb81.chunk.js → 1409-50dc6173b0.chunk.js} +1 -1
  9. package/dist/scripts/{1492-cd44171a52.chunk.js → 1492-7be750f218.chunk.js} +1 -1
  10. package/dist/scripts/{1601-973e50fc0a.chunk.js → 1601-43daf29a76.chunk.js} +2 -2
  11. package/dist/scripts/{1832-c5f981c3f1.chunk.js → 1832-adad7c94aa.chunk.js} +1 -1
  12. package/dist/scripts/{1887-af4ffa7492.chunk.js → 1887-2a0d9adae2.chunk.js} +1 -1
  13. package/dist/scripts/{1911-4e682465f2.chunk.js → 1911-29bc4ac93a.chunk.js} +1 -1
  14. package/dist/scripts/{2417-54c874fcea.chunk.js → 2417-760802f23b.chunk.js} +1 -1
  15. package/dist/scripts/{243-c1baf38614.chunk.js → 243-526ca9b38d.chunk.js} +1 -1
  16. package/dist/scripts/{259-c0e17226ce.chunk.js → 259-5d20b19b71.chunk.js} +1 -1
  17. package/dist/scripts/{2692-39c5596fae.chunk.js → 2692-fbfd44474a.chunk.js} +1 -1
  18. package/dist/scripts/{2888-e89aa6d2ec.chunk.js → 2888-04e04c9f5f.chunk.js} +1 -1
  19. package/dist/scripts/{299-ff283cd302.chunk.js → 299-bbb7822314.chunk.js} +1 -1
  20. package/dist/scripts/{3096-d0d0562322.chunk.js → 3096-9239b37232.chunk.js} +1 -1
  21. package/dist/scripts/{3400-490d569d7b.chunk.js → 3400-8d975420e4.chunk.js} +1 -1
  22. package/dist/scripts/{3763-484e998697.chunk.js → 3763-63566d304b.chunk.js} +1 -1
  23. package/dist/scripts/{4177-876bddb70e.chunk.js → 4177-34f0df9c5f.chunk.js} +1 -1
  24. package/dist/scripts/{4201-32f6ecdb73.chunk.js → 4201-17bf1b7bc7.chunk.js} +1 -1
  25. package/dist/scripts/{4245-1b17d6cc40.chunk.js → 4245-203da19753.chunk.js} +1 -1
  26. package/dist/scripts/{4591-c45a73bb85.chunk.js → 4591-e353e6a27a.chunk.js} +1 -1
  27. package/dist/scripts/{4860-c11ea3fe12.chunk.js → 4860-f6797eaeba.chunk.js} +1 -1
  28. package/dist/scripts/{4885-4300082a41.chunk.js → 4885-c1015930a3.chunk.js} +1 -1
  29. package/dist/scripts/{514-6d760cc4ac.chunk.js → 514-c6838c7964.chunk.js} +1 -1
  30. package/dist/scripts/{5412-6a0a1510ab.chunk.js → 5412-5011ba4acc.chunk.js} +1 -1
  31. package/dist/scripts/{5418-ad39e605a0.chunk.js → 5418-05351c0fbf.chunk.js} +1 -1
  32. package/dist/scripts/{5424-8d9bd46dea.chunk.js → 5424-6c332bc29f.chunk.js} +1 -1
  33. package/dist/scripts/{5747-4ea0a28a50.chunk.js → 5747-cda79581ed.chunk.js} +1 -1
  34. package/dist/scripts/{6093-4f3bdb8793.chunk.js → 6093-ca4d7b4b6b.chunk.js} +1 -1
  35. package/dist/scripts/6220-b7f05d0711.chunk.js +1 -0
  36. package/dist/scripts/{6277-5a2cf1ba53.chunk.js → 6277-625693cf57.chunk.js} +2 -2
  37. package/dist/scripts/{6357-4eb8e929ee.chunk.js → 6357-7bdd5610a9.chunk.js} +1 -1
  38. package/dist/scripts/{6505-d1d26acaa7.chunk.js → 6505-219be2386f.chunk.js} +1 -1
  39. package/dist/scripts/{6732-051facb7f2.chunk.js → 6732-1e78593b37.chunk.js} +1 -1
  40. package/dist/scripts/{6756-420cdea12e.chunk.js → 6756-c6f24c2739.chunk.js} +1 -1
  41. package/dist/scripts/{6774-10008c90af.chunk.js → 6774-cd56290f70.chunk.js} +1 -1
  42. package/dist/scripts/{6995-79cb3a5899.chunk.js → 6995-df4c762809.chunk.js} +1 -1
  43. package/dist/scripts/6999-4914418ece.chunk.js +1 -0
  44. package/dist/scripts/{7002-504b356a5c.chunk.js → 7002-aac70e46a6.chunk.js} +1 -1
  45. package/dist/scripts/{7053-db29c86b42.chunk.js → 7053-afce329751.chunk.js} +1 -1
  46. package/dist/scripts/{708-043ccede57.chunk.js → 708-dee7822f44.chunk.js} +1 -1
  47. package/dist/scripts/{7376-94aa49d108.chunk.js → 7376-442dffad8f.chunk.js} +1 -1
  48. package/dist/scripts/{7634-cd9e9f5d3a.chunk.js → 7634-b052bb7963.chunk.js} +1 -1
  49. package/dist/scripts/{8362-b6fbc2d32c.chunk.js → 8362-2007a7d725.chunk.js} +1 -1
  50. package/dist/scripts/{8727-9a923c4820.chunk.js → 8727-85b4c8d1e5.chunk.js} +1 -1
  51. package/dist/scripts/{8762-652f4cafd5.chunk.js → 8762-6ad20d8042.chunk.js} +1 -1
  52. package/dist/scripts/{8906-fd50c53320.chunk.js → 8906-613b8f3fa6.chunk.js} +1 -1
  53. package/dist/scripts/{8947-40a2c48b97.chunk.js → 8947-aef6bab624.chunk.js} +1 -1
  54. package/dist/scripts/{9357-3bf3ca6c51.chunk.js → 9357-f3fbd4ec1b.chunk.js} +1 -1
  55. package/dist/scripts/{9695-d74a71dffd.chunk.js → 9695-b3e32d55e0.chunk.js} +1 -1
  56. package/dist/scripts/{9828-13b8515c8c.chunk.js → 9828-4c9b5aae16.chunk.js} +1 -1
  57. package/dist/scripts/{9927-47808e1cea.chunk.js → 9927-6d852052c7.chunk.js} +1 -1
  58. package/dist/scripts/{9976-9743099e1c.chunk.js → 9976-e60bf244bc.chunk.js} +1 -1
  59. package/dist/scripts/bundle-54310ddab2.min.js +2 -0
  60. package/package.json +74 -74
  61. package/typings/libs/CVEvents.d.ts +12 -12
  62. package/typings/libs/CVLanguages.d.ts +24 -24
  63. package/typings/libs/Environment.d.ts +10 -10
  64. package/typings/libs/LazyLoad.d.ts +29 -29
  65. package/typings/libs/LazyLoad.ts +27 -27
  66. package/typings/libs/backbone.validation.d.ts +99 -99
  67. package/typings/libs/cloneDeep.d.ts +4 -4
  68. package/typings/libs/cookiesjs.d.ts +24 -24
  69. package/typings/libs/google-api.d.ts +4 -4
  70. package/typings/libs/microsoft-teams.d.ts +2 -2
  71. package/typings/libs/trackjs.d.ts +2 -2
  72. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  73. package/typings/utils/imports.d.ts +9 -9
  74. package/dist/scripts/1010-7f03566c09.chunk.js +0 -1
  75. package/dist/scripts/6220-2ea178e5fb.chunk.js +0 -1
  76. package/dist/scripts/6999-e7e623c947.chunk.js +0 -1
  77. package/dist/scripts/bundle-da3bc0e1f2.min.js +0 -2
  78. /package/dist/scripts/{101-1eeff47605.chunk.js → 101-e82c8481e6.chunk.js} +0 -0
  79. /package/dist/scripts/{1601-973e50fc0a.chunk.js.LICENSE.txt → 1601-43daf29a76.chunk.js.LICENSE.txt} +0 -0
  80. /package/dist/scripts/{2774-d43da71ccb.chunk.js → 2774-53da2e7ca3.chunk.js} +0 -0
  81. /package/dist/scripts/{2803-342b499819.chunk.js → 2803-e4af79b26a.chunk.js} +0 -0
  82. /package/dist/scripts/{3639-528131bdac.chunk.js → 3639-0c4394da2f.chunk.js} +0 -0
  83. /package/dist/scripts/{3746-9260f94a0f.chunk.js → 3746-855b2f8932.chunk.js} +0 -0
  84. /package/dist/scripts/{3969-d27d0571c4.chunk.js → 3969-be8bfb8b49.chunk.js} +0 -0
  85. /package/dist/scripts/{5235-a2c89ffb8c.chunk.js → 5235-5bd02c9862.chunk.js} +0 -0
  86. /package/dist/scripts/{5891-b2b28439b2.chunk.js → 5891-ac61e4df95.chunk.js} +0 -0
  87. /package/dist/scripts/{6254-ef1a408f43.chunk.js → 6254-b06072a076.chunk.js} +0 -0
  88. /package/dist/scripts/{6277-5a2cf1ba53.chunk.js.LICENSE.txt → 6277-625693cf57.chunk.js.LICENSE.txt} +0 -0
  89. /package/dist/scripts/{6963-fa53496a45.chunk.js → 6963-455620057f.chunk.js} +0 -0
  90. /package/dist/scripts/{7190-84626d4165.chunk.js → 7190-5ed7ca013f.chunk.js} +0 -0
  91. /package/dist/scripts/{7433-b8397bc971.chunk.js → 7433-1372c3147d.chunk.js} +0 -0
  92. /package/dist/scripts/{8114-774b080bab.chunk.js → 8114-faf797626f.chunk.js} +0 -0
  93. /package/dist/scripts/{8622-e65b370b94.chunk.js → 8622-4d10d89a0d.chunk.js} +0 -0
  94. /package/dist/scripts/{9382-f96fe3c1c1.chunk.js → 9382-274269118e.chunk.js} +0 -0
  95. /package/dist/scripts/{bundle-da3bc0e1f2.min.js.LICENSE.txt → bundle-54310ddab2.min.js.LICENSE.txt} +0 -0
@@ -1,31 +1,31 @@
1
- import videojs from 'video.js';
2
-
3
- declare module 'video.js' {
4
- export interface VideoJsPlayer {
5
- qualityLevels(): QualityLevelList;
6
- nextVideoPlugin(): any;
7
- resourcesPlugin(options: ResourcesPluginOptions): void;
8
- }
9
- }
10
-
11
- declare module 'videojs-contrib-quality-levels' {
12
- export interface QualityLevelList extends videojs.EventTarget {
13
- [id: string]: QualityLevel;
14
- selectedIndex: number;
15
- length: number;
16
- addQualityLevel(representation: Representation): QualityLevel;
17
- removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
18
- getQualityLevelById(id: string): QualityLevel;
19
- }
20
-
21
- export interface QualityLevel {
22
- id: string;
23
- label: string;
24
- enabled: boolean;
25
- }
26
-
27
- export interface Representation {
28
- id: string;
29
- enabled(enabled: boolean): boolean;
30
- }
1
+ import videojs from 'video.js';
2
+
3
+ declare module 'video.js' {
4
+ export interface VideoJsPlayer {
5
+ qualityLevels(): QualityLevelList;
6
+ nextVideoPlugin(): any;
7
+ resourcesPlugin(options: ResourcesPluginOptions): void;
8
+ }
9
+ }
10
+
11
+ declare module 'videojs-contrib-quality-levels' {
12
+ export interface QualityLevelList extends videojs.EventTarget {
13
+ [id: string]: QualityLevel;
14
+ selectedIndex: number;
15
+ length: number;
16
+ addQualityLevel(representation: Representation): QualityLevel;
17
+ removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
18
+ getQualityLevelById(id: string): QualityLevel;
19
+ }
20
+
21
+ export interface QualityLevel {
22
+ id: string;
23
+ label: string;
24
+ enabled: boolean;
25
+ }
26
+
27
+ export interface Representation {
28
+ id: string;
29
+ enabled(enabled: boolean): boolean;
30
+ }
31
31
  }
@@ -1,9 +1,9 @@
1
- /**
2
- * Define our templates as a module so that we can use
3
- * import statements just the same as we do for other
4
- * ts/js code.
5
- */
6
- declare module '*.handlebars';
7
- declare module '*.hbs';
8
- declare module '*.scss';
9
- declare module '*.svg';
1
+ /**
2
+ * Define our templates as a module so that we can use
3
+ * import statements just the same as we do for other
4
+ * ts/js code.
5
+ */
6
+ declare module '*.handlebars';
7
+ declare module '*.hbs';
8
+ declare module '*.scss';
9
+ declare module '*.svg';
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[1010],{51010:function(e,t,n){"use strict";n.r(t),n.d(t,{DisableReviewView:function(){return w}});var r=n(21679),o=n(57857),i=n(31647),a=n(70065),u=n(52076),l=n(88172),c=n(10101),s=n(61843),f=n(19226),p=n(48090),y=n(67670),v=n(17654),b=n.n(v);function h(e){return h="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},h(e)}function d(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"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===h(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 m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var w=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)}(k,e);var t,n,v,w,O=(v=k,w=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=m(v);if(w){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(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 k(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),O.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=r.u.getInstance(p.Or.Settings,this),this.contentUpdatesDataService=r.u.getInstance(p.Or.ContentUpdates,this)}},{key:"name",get:function(){return"DisableReviewView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return b()}},{key:"lang",get:function(){return"contentUpdates.disableReview"}},{key:"channelName",get:function(){return s.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"heading"),behaviorClass:c.Yw,spinnerButtonOptions:{model:this.spinnerModel=new y.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"offBtn"),onClick:function(){return e.onClickDisable()}}}]}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS_TO_REVIEW,":sync"),this.render)}},{key:"videosToReview",value:function(){return!!this.videoCollection&&!!this.videoCollection.length}},{key:"onClickDisable",value:function(){this.videosToReview()?this.approveAllThenDisableReview():this.disableReview(),this.triggerMethod("hide")}},{key:"approveAllThenDisableReview",value:function(){var e=this;this.contentUpdatesDataService.approveAllVideos((function(){return e.disableReview()}))}},{key:"disableReview",value:function(){var e=s.xN.getLibraryReviewOptions(!1);this.settingsDataService.updateSetting(this.currentUser.get("customerId"),e,o.T.getPhrase(this.lang,"disableSuccess"),this.redirectToPastReleases),this.logAction()}},{key:"redirectToPastReleases",value:function(){i.Q.AppLinkHelper.trigger({application:p.OV.CONTENT_UPDATES,action:p.eX.ContentUpdates.PAST_RELEASES})}},{key:"logAction",value:function(){var e={location:a.LocationContext.Popup,actionType:a.UserAction.Disable,entity:a.EntityType.CustomerSetting,descriptor:a.CustomerSettingDescriptor.LibraryReview,workflowPhase:a.WorkflowPhase.Complete},t={approvedCount:this.videoCollection.length};u.k.logUserAction(t,e)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&this.spinnerModel.set(l.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{videosToReview:this.videosToReview(),dataFetched:!!this.videoCollection,spinnerEl:s.Kp.getSpinner({size:s.Ey.Large,extraClasses:"mx-auto"})}}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.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 a(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 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,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 a(e={},o.ZV.Disabled,!0),a(e,o.ZV.Hidden,!1),e}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},17654: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){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,l=e.escapeExpression;return'<p class="m-0 pb-2">'+l((n.lang||t&&t.lang||u).call(a,"noReview",{name:"lang",hash:{},data:o}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videosToReview:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+'<p class="m-0">'+l((n.lang||t&&t.lang||u).call(a,"undoInstructions",{name:"lang",hash:{},data:o}))+"</p>\n"},4:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0 pb-2">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"automaticApproval",{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})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6220],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return _}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(36357),c=i(48090),l=i(70763),u=i(71192),d=i(29457),h=i(14129),f=i(39090),v=i(82405),p=i(13809),g=i(48404),y=i(19226),w=i(46415),b=i(7572),m=i(71010),S=i.n(m),V=i(29565),T=i(95061);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 C(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==k(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.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(r)?r:String(r)),n)}var r}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var _=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&&E(e,t)}(P,e);var t,i,m,_,R=(m=P,_=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(m);if(_){var i=O(this).constructor;e=Reflect.construct(t,arguments,i)}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 P(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),R.apply(this,arguments)}return t=P,(i=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=o.u.getInstance(c.Or.Settings,this),this.contentUpdatesDataService=o.u.getInstance(c.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(c.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:d.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:d.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(c.Vk.SETTINGS,"".concat(c.M_.CUSTOMER_SETTINGS,":sync ").concat(c.M_.USER_SETTINGS,":sync"),this.render),this.listenTo(c.Vk.CONTENT_UPDATES,"".concat(c.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(c.Vk.RESTRICTED_VIDEO,"".concat(c.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){r.Q.AppLinkHelper.trigger({application:c.OV.CONTENT_UPDATES,action:c.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(V.Z.content," border-left ").concat(V.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new l.t(this.videoCollection.map((function(e){return new u.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new b.u({activeTab:f.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new w.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new h.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new v.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:p.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:d.ub.AwaitingReview,emptyStateOptions:{heading:a.T.getPhrase(this.lang,"emptyStateHeading"),description:a.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=f.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:y.K.currentUser,libraries:T.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),s.E.LibraryReview),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("value")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&C(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(r.Q.View)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(86605),i(14898)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6999],{46814:function(e,t,n){"use strict";n.r(t),n.d(t,{PastReleasesView:function(){return K}});var i=n(39479),r=n(31647),o=n(21679),a=n(57857),s=n(70065),l=n(52076),c=n(47022),u=n(36357),f=n(71192),h=n(70763),d=n(29457),p=n(48090),y=n(58688),v=n(48404),g=n(19226),b=n(3059),m=n(95061),w=n(39090),S=(n(14129),n(7572)),C=n(46415),P=n(56750),k=n.n(P),R=n(8614),O=n(7170),E=n(5344);function T(e){return T="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},T(e)}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==T(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===T(r)?r:String(r)),i)}var r}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var L=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)}(a,e);var t,n,i,r,o=(i=a,r=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=_(i);if(r){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===T(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 a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"PastReleasesFiltersComponent"}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"contentUpdates.pastReleasesFilters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!1,partialLoading:d.LP.PastReleasesSearchFilter}}}},{key:"getVisibleFilters",value:function(){return new O.y(this.collection.filter((function(e){return E.qr.showFilter(e)})))}},{key:"renderFilterList",value:function(){var e=new R.$V({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList()}}])&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Q.Component),N=n(48088),I=n(68536),D=n.n(I);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 U(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===F(r)?r:String(r)),i)}var r}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var A=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)}(a,e);var t,n,i,r,o=(i=a,r=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=M(i);if(r){var n=M(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 a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"PastReleasesHeaderComponent"}},{key:"props",get:function(){return["filterCollection"]}},{key:"lang",get:function(){return"contentUpdates.pastReleasesHeader"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return D()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){N.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new L({collection:this.filterCollection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"viewOptions",value:function(){return{showGeneratePdf:this.options.showGeneratePdf}}},{key:"onRender",value:function(){this.renderFilters()}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Q.Component),G=n(82405),H=n(73616),Q=n(29565),W=n(69711),B=n.n(W);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==q(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===q(r)?r:String(r)),i)}var r}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(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&&J(e,t)}(O,e);var t,n,P,k,R=(P=O,k=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=X(P);if(k){var n=X(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===q(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),R.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=o.u.getInstance(p.Or.Settings,this),this.contentUpdatesDataService=o.u.getInstance(p.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(p.Or.Video,this),this.libraryDataService=o.u.getInstance(p.Or.Library,this),this.videoMixinService=o.u.getInstance(p.K9.VideoMixin,this)}},{key:"name",get:function(){return"PastReleasesView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.pastReleases"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return B()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0},videos:{el:".video-list-region",replaceElement:!0,partialLoading:d.LP.VideoGroupList},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.SETTINGS,"".concat(p.M_.CUSTOMER_SETTINGS,":sync ").concat(p.M_.USER_SETTINGS,":sync"),this.render),this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(p.Vk.RESTRICTED_VIDEO,"".concat(p.M_.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,p.Vy.Filters.FILTER_CHANGED,i.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"initializeFilterCollection",value:function(){var e=this;this.filterCollection||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"onLibrariesSync",value:function(e){var t=this;this.filterCollection||(this.libraryIds=w.RF.getLibraryIds(this.options.queryParams[H.g.Libraries],e),this.subjectCollectionIdentifier=new b.xw({dateQueryString:this.options.queryParams[H.g.ReleaseDate],libraryIds:this.libraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)})))}},{key:"onSubjectsSync",value:function(e,t){var n=w.RF.getSubjectOptions(t);this.filterCollection=w.RF.getFilterCollection(e,n,this.options.queryParams);var i=w.RF.getSelectedSubjects(this.filterCollection),r=n.length>1&&n.length===i.length;this.videoCollectionIdentifier=new b.IJ({dateQueryString:this.options.queryParams[H.g.ReleaseDate],libraryIds:this.libraryIds,subjects:!r&&i,cursor:this.options.queryParams.cursor}),this.listenTo(p.Vk.CONTENT_UPDATES,"".concat(this.videoCollectionIdentifier.toString(),":sync"),this.render),this.fetchVideos()}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new h.t(this.videoCollection.map((function(e){return new f.n({id:e.get("id")})}))))}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,null,(function(){return e.render()}))}},{key:"onFilterChange",value:function(){r.Q.AppLinkHelper.trigger({application:p.OV.CONTENT_UPDATES,action:p.eX.ContentUpdates.PAST_RELEASES,params:w.RF.getRouteQueryParams(this.filterCollection)})}},{key:"onClickGeneratePdf",value:function(){this.videoCollection.length&&(r.Q.AppLinkHelper.trigger({application:p.OV.CONTENT_UPDATES,action:p.eX.ContentUpdates.GENERATE_PDF,params:w.RF.getRouteQueryParams(this.filterCollection)}),this.logPdfAction())}},{key:"getContentClassName",value:function(){var e=Q.Z.content;return this.reviewSetting&&this.reviewSetting.get("value")?e+=" d-inline-block border-left ".concat(Q.Z.contentWithLeftNav):e+=" w-100",e}},{key:"logPdfAction",value:function(){var e={location:s.LocationContext.PastReleasesHeader,actionType:s.UserAction.Create,entity:s.EntityType.PDF,workflowPhase:s.WorkflowPhase.Start},t=w.RF.getSelectedSubjects(this.filterCollection),n=w.RF.getSelectedReleaseDate(this.filterCollection),i={libraries:this.libraryIds.join(","),subjects:t.map((function(e){return e.get("name")})).join(","),releaseDate:n.get("name")};l.k.logUserAction(i,e)}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new S.u({activeTab:w.JI.PastReleases,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.reviewSetting.get("value")&&this.showChildView("leftNav",new C.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new A({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new G.D({collection:this.groupedVideoCollection,childOptions:{config:this.config,videoItemComponentType:y.U.PastReleases,videosWithMetadata:this.videosWithMetadata,customerHasCustomLibrary:this.customLibraries&&!!this.customLibraries.length,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.customLibraries},emptyStateType:d.ub.PastReleases,emptyStateOptions:{heading:a.T.getPhrase(this.lang,"emptyState")}})):this.renderPartialLoading("videos")}},{key:"renderPagination",value:function(){if(this.videoCollection){var e=this.contentUpdatesDataService.getVideoCollectionCursors(this.videoCollectionIdentifier),t=new c.Q({cursors:e,appLink:{application:p.OV.CONTENT_UPDATES,action:p.eX.ContentUpdates.PAST_RELEASES,params:w.RF.getRouteQueryParams(this.filterCollection)}});this.showChildView("pagination",t)}}},{key:"fetchVideos",value:function(){this.filterCollection&&!this.videoCollection&&(this.videoCollection=this.contentUpdatesDataService.getRecentVideos(this.videoCollectionIdentifier),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=w.RF.groupVideosByReleaseMonth(this.videoCollection)))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var i=t.videosWithMetadata.get(e);i&&(i.set(n.toJSON()),i.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:g.K.currentUser,customLibraries:m.T.libraries}}},{key:"onBeforeRender",value:function(){this.initializeFilterCollection(),this.fetchVideos(),this.videoCollection&&(this.groupedVideoCollection=w.RF.groupVideosByReleaseMonth(this.videoCollection)),this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),u.E.LibraryReview)}},{key:"viewOptions",value:function(){return{showLeftNav:this.reviewSetting&&this.reviewSetting.get("value"),contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos(),this.renderPagination()}}])&&z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(r.Q.View)},56750:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){return e.propertyIsEnumerable,'<div class="d-inline-block border-right py-1 pr-3"><strong>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"filters",{name:"lang",hash:{},data:r}))+'</strong></div>\n<div class="filter-list-region d-inline-block pl-2"></div>'},useData:!0})},68536:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return e.propertyIsEnumerable,'<button class="generate-pdf btn btn-outline-dark d-inline-block" type="button">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generatePdf",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="filters-region d-inline-block"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showGeneratePdf:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")},useData:!0})},69711:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){return'<div class="left-nav-region"></div>'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\n'+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showLeftNav:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n</div>'},useData:!0})}}]);