@clickview/library-editor 1.7.1-rc.2 → 1.8.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/101-library-editor-808f785991.chunk.css +4 -0
  3. package/dist/css/{3803-library-editor-c08c7cc096.chunk.css → 1132-library-editor-c1a116496b.chunk.css} +1 -1
  4. package/dist/css/{8343-library-editor-10baca49f5.chunk.css → 1521-library-editor-b3d6d791c2.chunk.css} +4 -0
  5. package/dist/css/{8420-library-editor-3bb4952bab.chunk.css → 1887-library-editor-2e57df189d.chunk.css} +4 -8
  6. package/dist/css/{6625-library-editor-89b6e935f3.chunk.css → 1911-library-editor-f7158ba599.chunk.css} +4 -0
  7. package/dist/css/2011-library-editor-9b9cd091d0.chunk.css +62 -0
  8. package/dist/css/2119-library-editor-1d6a95fb9f.chunk.css +4 -0
  9. package/dist/css/{409-library-editor-38562d76cd.chunk.css → 2284-library-editor-436a0d1ce1.chunk.css} +1 -1
  10. package/dist/css/3969-library-editor-3382f0875b.chunk.css +4 -0
  11. package/dist/css/3987-library-editor-2271e5262a.chunk.css +56 -0
  12. package/dist/css/{5248-library-editor-c06823703f.chunk.css → 4177-library-editor-4cba18186c.chunk.css} +4 -8
  13. package/dist/css/5891-library-editor-76fe7e394b.chunk.css +2 -0
  14. package/dist/css/{5047-library-editor-3ed99ac07f.chunk.css → 6181-library-editor-db9baf23c2.chunk.css} +4 -0
  15. package/dist/css/6220-library-editor-e66d80c18a.chunk.css +34 -0
  16. package/dist/css/6963-library-editor-76fe7e394b.chunk.css +2 -0
  17. package/dist/css/{5356-library-editor-075fbedf48.chunk.css → 6999-library-editor-c9c844221a.chunk.css} +12 -0
  18. package/dist/css/{3427-library-editor-8442ad6453.chunk.css → 7295-library-editor-b0c43d2c79.chunk.css} +1 -1
  19. package/dist/css/{1819-library-editor-69e8f4675f.chunk.css → 8179-library-editor-df33c921f0.chunk.css} +3 -5
  20. package/dist/css/{9195-library-editor-14f7d9be38.chunk.css → 8929-library-editor-2cba3474fe.chunk.css} +1 -1
  21. package/dist/css/{library-editor-app-4e790b757d.css → library-editor-app-1cd9634b7b.css} +10 -10
  22. package/dist/en.json +1 -1
  23. package/dist/scripts/101-98e020bd6f.chunk.js +1 -0
  24. package/dist/scripts/{1010-f5821049de.chunk.js → 1010-cd4e715098.chunk.js} +1 -1
  25. package/dist/scripts/{1086-ba954c2a70.chunk.js → 1086-b559030dcf.chunk.js} +1 -1
  26. package/dist/scripts/1132-3f29e51c9d.chunk.js +1 -0
  27. package/dist/scripts/1203-b828105755.chunk.js +1 -0
  28. package/dist/scripts/1409-8f5c1c9d0e.chunk.js +1 -0
  29. package/dist/scripts/{8343-774860a655.chunk.js → 1521-0c23d44c5e.chunk.js} +1 -1
  30. package/dist/scripts/1832-d4427bb6f5.chunk.js +1 -0
  31. package/dist/scripts/{5356-4583545486.chunk.js → 1887-d306fab87c.chunk.js} +1 -1
  32. package/dist/scripts/{6625-a31763e7ef.chunk.js → 1911-41bf677d7e.chunk.js} +1 -1
  33. package/dist/scripts/2011-f178a6dabf.chunk.js +1 -0
  34. package/dist/scripts/{2098-30b7db58a5.chunk.js → 2098-31d99bc407.chunk.js} +1 -1
  35. package/dist/scripts/2119-cbaa6000b1.chunk.js +1 -0
  36. package/dist/scripts/2284-a57db3563f.chunk.js +1 -0
  37. package/dist/scripts/2417-48687b3eeb.chunk.js +1 -0
  38. package/dist/scripts/243-c9fdd938fd.chunk.js +1 -0
  39. package/dist/scripts/259-e1d9ce07f4.chunk.js +1 -0
  40. package/dist/scripts/{2692-15c761ec3d.chunk.js → 2692-9ebe6d1ea4.chunk.js} +1 -1
  41. package/dist/scripts/{2733-6b607b5143.chunk.js → 2733-e8cc6e3610.chunk.js} +1 -1
  42. package/dist/scripts/2803-86fc1b1e3f.chunk.js +1 -0
  43. package/dist/scripts/{2888-7396d60be2.chunk.js → 2888-80050720b2.chunk.js} +1 -1
  44. package/dist/scripts/{299-921c177109.chunk.js → 299-d19e77b508.chunk.js} +1 -1
  45. package/dist/scripts/3096-ca9e2f0dfd.chunk.js +1 -0
  46. package/dist/scripts/{3639-8e4d2c9b84.chunk.js → 3639-36a34d483b.chunk.js} +1 -1
  47. package/dist/scripts/3746-46e0073a46.chunk.js +1 -0
  48. package/dist/scripts/{3763-0095e75c1a.chunk.js → 3763-3bef6ac728.chunk.js} +1 -1
  49. package/dist/scripts/3969-258fca82a8.chunk.js +1 -0
  50. package/dist/scripts/3987-e3a4ade0c9.chunk.js +1 -0
  51. package/dist/scripts/4177-0be8ceed3c.chunk.js +1 -0
  52. package/dist/scripts/{4201-973ee89615.chunk.js → 4201-25e82e2429.chunk.js} +1 -1
  53. package/dist/scripts/{435-fbb6b4b01e.chunk.js → 435-fb19753c8d.chunk.js} +1 -1
  54. package/dist/scripts/{4353-1d4ec918e6.chunk.js → 4353-c7a0df4214.chunk.js} +1 -1
  55. package/dist/scripts/{4591-3fa9999f29.chunk.js → 4591-9a2868f8a0.chunk.js} +1 -1
  56. package/dist/scripts/{4860-56e7955cd4.chunk.js → 4860-b3e5cb9cbd.chunk.js} +1 -1
  57. package/dist/scripts/{4885-3a35265eab.chunk.js → 4885-9e4ce006c8.chunk.js} +1 -1
  58. package/dist/scripts/{514-923fb794ae.chunk.js → 514-59d9a9a7bd.chunk.js} +1 -1
  59. package/dist/scripts/5173-e1b904c06c.chunk.js +1 -0
  60. package/dist/scripts/5235-abc8ea83ed.chunk.js +1 -0
  61. package/dist/scripts/5263-38198ed595.chunk.js +1 -0
  62. package/dist/scripts/{5412-51a270fe11.chunk.js → 5412-a1721cffc4.chunk.js} +1 -1
  63. package/dist/scripts/{5418-bc46c939fc.chunk.js → 5418-bfa546cf33.chunk.js} +1 -1
  64. package/dist/scripts/{546-6736b53bcd.chunk.js → 546-81473f1035.chunk.js} +1 -1
  65. package/dist/scripts/5664-d6cbc77d63.chunk.js +1 -0
  66. package/dist/scripts/{5747-913fcc6f9c.chunk.js → 5747-8a168b816b.chunk.js} +1 -1
  67. package/dist/scripts/5891-63973f5678.chunk.js +1 -0
  68. package/dist/scripts/6093-a62d8ebc86.chunk.js +1 -0
  69. package/dist/scripts/6181-fa5e7bcbf9.chunk.js +1 -0
  70. package/dist/scripts/{5248-c1cfd861cc.chunk.js → 6220-984f02c732.chunk.js} +1 -1
  71. package/dist/scripts/{6420-6bae432c6b.chunk.js → 6420-1537f8f587.chunk.js} +1 -1
  72. package/dist/scripts/{6774-580a63bbeb.chunk.js → 6774-185468f6f5.chunk.js} +1 -1
  73. package/dist/scripts/{6788-4bd780e50b.chunk.js → 6788-2368a122f1.chunk.js} +1 -1
  74. package/dist/scripts/6963-a576fd9c4d.chunk.js +1 -0
  75. package/dist/scripts/6999-1fe379ca99.chunk.js +1 -0
  76. package/dist/scripts/7002-9b2aad8369.chunk.js +1 -0
  77. package/dist/scripts/7053-643499a3a6.chunk.js +1 -0
  78. package/dist/scripts/708-9e2ef23c87.chunk.js +1 -0
  79. package/dist/scripts/7295-96fcbaa176.chunk.js +1 -0
  80. package/dist/scripts/7376-21f5de2ce6.chunk.js +1 -0
  81. package/dist/scripts/{8074-e02348d9c5.chunk.js → 8074-b610b1ba63.chunk.js} +1 -1
  82. package/dist/scripts/8179-f5cc87ded7.chunk.js +2 -0
  83. package/dist/scripts/{8362-ea6c7521b8.chunk.js → 8362-195c5ba6c3.chunk.js} +1 -1
  84. package/dist/scripts/8495-0a9a71f2dc.chunk.js +1 -0
  85. package/dist/scripts/8727-20ae545e12.chunk.js +1 -0
  86. package/dist/scripts/{8762-264adb9817.chunk.js → 8762-b445a592a5.chunk.js} +1 -1
  87. package/dist/scripts/{8906-a5aa3d1286.chunk.js → 8906-efcc846fad.chunk.js} +1 -1
  88. package/dist/scripts/8929-6fac19a7a3.chunk.js +1 -0
  89. package/dist/scripts/{8947-563b287016.chunk.js → 8947-4df5e81810.chunk.js} +1 -1
  90. package/dist/scripts/{9167-0e451c25a3.chunk.js → 9167-9c54b36e3a.chunk.js} +1 -1
  91. package/dist/scripts/{9298-33d2ab886e.chunk.js → 9298-d8c9ed5471.chunk.js} +1 -1
  92. package/dist/scripts/{9357-22395b794f.chunk.js → 9357-2e288289f3.chunk.js} +1 -1
  93. package/dist/scripts/9383-6d0392b17f.chunk.js +1 -0
  94. package/dist/scripts/{9695-72bc239f92.chunk.js → 9695-4bb132be57.chunk.js} +1 -1
  95. package/dist/scripts/9770-9eaef2c966.chunk.js +1 -0
  96. package/dist/scripts/9927-25579dff18.chunk.js +1 -0
  97. package/dist/scripts/995-3a6de1eec1.chunk.js +1 -0
  98. package/dist/scripts/bundle-2b73fa6c21.min.js +2 -0
  99. package/package.json +1 -1
  100. package/dist/css/4810-library-editor-740619bb9d.chunk.css +0 -24
  101. package/dist/scripts/1203-c5dbf7e172.chunk.js +0 -1
  102. package/dist/scripts/1409-333eff67cc.chunk.js +0 -1
  103. package/dist/scripts/1819-5e97050377.chunk.js +0 -2
  104. package/dist/scripts/1832-9528386bfe.chunk.js +0 -1
  105. package/dist/scripts/2417-ce05495ed5.chunk.js +0 -1
  106. package/dist/scripts/243-224b5eea73.chunk.js +0 -1
  107. package/dist/scripts/259-fb7e645a88.chunk.js +0 -1
  108. package/dist/scripts/2803-f91683764c.chunk.js +0 -1
  109. package/dist/scripts/3096-f61a91545d.chunk.js +0 -1
  110. package/dist/scripts/3427-1bd7b5956b.chunk.js +0 -1
  111. package/dist/scripts/3746-7fca58c2db.chunk.js +0 -1
  112. package/dist/scripts/3803-d2a02a86eb.chunk.js +0 -1
  113. package/dist/scripts/409-fbe70b4df9.chunk.js +0 -1
  114. package/dist/scripts/4703-1cefcae29b.chunk.js +0 -1
  115. package/dist/scripts/4810-908fe3f045.chunk.js +0 -1
  116. package/dist/scripts/5047-c22a3ab8f7.chunk.js +0 -1
  117. package/dist/scripts/5431-50ab5a6a35.chunk.js +0 -1
  118. package/dist/scripts/5665-38506a938a.chunk.js +0 -1
  119. package/dist/scripts/5967-5d8ab696d0.chunk.js +0 -1
  120. package/dist/scripts/6093-67352f9ba1.chunk.js +0 -1
  121. package/dist/scripts/7002-596b9b3c71.chunk.js +0 -1
  122. package/dist/scripts/7053-312e4779fe.chunk.js +0 -1
  123. package/dist/scripts/8420-77604e5dd5.chunk.js +0 -1
  124. package/dist/scripts/8727-4be0c05629.chunk.js +0 -1
  125. package/dist/scripts/9195-db9407692d.chunk.js +0 -1
  126. package/dist/scripts/9355-633de33fc9.chunk.js +0 -1
  127. package/dist/scripts/9383-afe019b90c.chunk.js +0 -1
  128. package/dist/scripts/9927-6933b86ad4.chunk.js +0 -1
  129. package/dist/scripts/bundle-52a4040147.min.js +0 -2
  130. /package/dist/css/{5967-library-editor-7417a89428.chunk.css → 708-library-editor-7417a89428.chunk.css} +0 -0
  131. /package/dist/scripts/{400-228bfe98a2.chunk.js → 400-00070f1714.chunk.js} +0 -0
  132. /package/dist/scripts/{4245-30ea8edd8c.chunk.js → 4245-4d98c3f676.chunk.js} +0 -0
  133. /package/dist/scripts/{693-780241d5a9.chunk.js → 693-0ae38e2ba5.chunk.js} +0 -0
  134. /package/dist/scripts/{7173-28ec11155c.chunk.js → 7173-a4f745b0ed.chunk.js} +0 -0
  135. /package/dist/scripts/{7190-8c67f0b2c5.chunk.js → 7190-d294d5b67c.chunk.js} +0 -0
  136. /package/dist/scripts/{1819-5e97050377.chunk.js.LICENSE.txt → 8179-f5cc87ded7.chunk.js.LICENSE.txt} +0 -0
  137. /package/dist/scripts/{bundle-52a4040147.min.js.LICENSE.txt → bundle-2b73fa6c21.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5664],{71641:function(e,t,n){"use strict";n.d(t,{w:function(){return p}});var r=n(39479),o=n(31647),i=n(55142);function l(e){return l="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},l(e)}function s(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,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function a(e,t){if(t&&("object"===l(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)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var p=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)}(f,e);var t,n,o,l,p=(o=f,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=c(o);if(l){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.Q.ComponentCollection)},23130:function(e,t,n){"use strict";n.d(t,{Z:function(){return g},t:function(){return o}});var r,o,i=n(31647),l=n(61843),s=n(57857),u=n(58040),a=n.n(u),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",singleEllipsis:"sLOGz",showMoreEllipsis:"mUQy_",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};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 f(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,r.key,r)}}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,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)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(o||(o={}));var b=(m(r={},o.Small,3),m(r,o.Large,5),r),g=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)}(p,e);var t,n,r,i,u=(r=p,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=d(r);if(i){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=u.call(this,e)).showingMore=!1,t}return t=p,(n=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return m({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.m$.linkifyText(this.model.get("description")):this.options.highlighter?l.m$.wordsHighlighter(l.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(c.truncateLarge).addClass(c.open),n.text(s.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,r=t.ellipsisEl;this.options.size===o.Small&&(e="truncateSmall"),this.options.size===o.Large&&(e="truncateLarge"),n.addClass(c[e]),r.text(this.options.allowExpand?"... ".concat(s.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=b[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.Q.Component)},37570:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(31647),o=n(6681),i=n(61843),l=n(28099),s={svgContainer:"kKrQJ",series:"zJvxj"},u=n(19021),a=n.n(u);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function 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,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function y(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}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,r,u,c=(r=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(r);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(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:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return a()}},{key:"appLinks",get:function(){return this.options.seriesUrl?{}:{".series-applink":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}},{key:"padNumber",value:function(e){if(!e)return null;var t=e.toString(),n=2;if(t.length>=n)return t;for(n-=t.length;n>0;)t="0"+t,n--;return t}},{key:"getSeriesName",value:function(){var e=i.m$.escapeExpression(this.model.series.get("name"));return this.options.highlight?i.m$.wordsHighlighter(e,this.model.get("_matchedWords")):e}},{key:"viewOptions",value:function(){return{styles:s,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:o.Nj.getSvg(o.vn.NewWindow),styleUppercase:this.options.styleUppercase}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Component)},58040: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.lambda,s=e.escapeExpression;return' <div class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.descriptionWrapper:i,t))+'">\r\n <p class="description-element '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o}))?i:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return(null!=(i=l(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showMoreEllipsis:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">... '+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:o}))+"</span>"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return(null!=(i=l(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.singleEllipsis:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">...</span>'},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda;return' <p class="'+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\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.truncate:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o}))?i:""},useData:!0})},19021: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,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.series:i,t))},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seriesUrl:i,t))+'" target="_blank"'},5: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.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumber:i,t))+"\r\n"},6:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"&nbsp;S"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seasonNumber:i,t))+" &bull;"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<a class="series-applink text-reset '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">\r\n "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.seriesName:i,t))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"</a>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return C}});var r=t(39479),o=t(31647),l=t(21679),i=t(57857),a=t(68003),c=t(48404),s=t(70065),u=t(52076),f=t(30305),p=t(22103),d=t.n(p),h={uploadImage:"yRGoO"},g=t(57769),y=t(81937),m=t(87262),v=t(25692),b=t(75432),k=t(264);function w(e){return w="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},w(e)}function U(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}function _(e,n){if(n&&("object"===w(n)||"function"==typeof n))return n;if(void 0!==n)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)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(C,e);var n,t,o,p,w=(o=C,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,n=T(o);if(p){var t=T(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return _(this,e)});function C(){return U(this,C),w.apply(this,arguments)}return n=C,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,y.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=l.u.getInstance(f.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:g.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.k.mapInteractionType(n)};u.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:c.p.config,currentUser:b.K.currentUser}}},{key:"viewOptions",value:function(){var e,n;return{styles:h,uploadArticleUrl:m.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),v.w.UploadToLibraryEditor,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),uploadTermsUrl:this.config?a._.safeUrlConcat(this.config.get("marketingSiteUrl"),f.l.UploadingUserContent):"",classNames:"info-link",hasLite:k.g.hasLite,imageUrl:f.Wn.Upload.UPLOAD_VIDEO}}}])&&S(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),C}(o.Q.View)},22103:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return"d-none"},3:function(e,n,t,r,o){return"col-4"},5:function(e,n,t,r,o){return"col-12"},7:function(e,n,t,r,o){return"col-8"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var l,i=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,s=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||n&&n.lang||a).call(i,"uploadVideos",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="my-3">\r\n <img src="'+c(s(null!=(l=null!=n?n.options:n)?l.imageUrl:l,n))+'" class="'+c(s(null!=(l=null!=(l=null!=n?n.options:n)?l.styles:l)?l.uploadImage:l,n))+' img-fluid mb-2" />\r\n </div>\r\n <div>\r\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(i,"chooseVideo",{name:"lang",hash:{},data:o}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||n&&n.lang||a).call(i,"dragDrop",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n</div>\r\n<div class="p-3 bg-white container-fluid">\r\n <div class="row">\r\n <div class="'+(null!=(l=t.if.call(i,null!=(l=null!=n?n.options:n)?l.hasLite:l,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?l:"")+'">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"help",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+c(s(null!=(l=null!=n?n.options:n)?l.uploadArticleUrl:l,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(i,"instructionsHeading",{name:"lang",hash:{},data:o}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="'+(null!=(l=t.if.call(i,null!=(l=null!=n?n.options:n)?l.hasLite:l,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o}))?l:"")+'">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"termsHeading",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||n&&n.lang||a).call(i,"term1",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+c((t.lang||n&&n.lang||a).call(i,"term2",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+(null!=(l=(t.lang||n&&n.lang||a).call(i,"term3",{name:"lang",hash:{classNames:null!=(l=null!=n?n.options:n)?l.classNames:l,uploadTermsUrl:null!=(l=null!=n?n.options:n)?l.uploadTermsUrl:l},data:o}))?l:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return C}});var r=t(39479),o=t(31647),l=t(21679),i=t(57857),a=t(68003),c=t(48404),s=t(70065),u=t(52076),f=t(28099),p=t(22103),d=t.n(p),h={uploadImage:"yRGoO"},g=t(57769),y=t(81937),m=t(87262),v=t(25692),b=t(75432),k=t(264);function w(e){return w="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},w(e)}function U(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}function _(e,n){if(n&&("object"===w(n)||"function"==typeof n))return n;if(void 0!==n)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)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(C,e);var n,t,o,p,w=(o=C,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,n=T(o);if(p){var t=T(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return _(this,e)});function C(){return U(this,C),w.apply(this,arguments)}return n=C,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,y.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=l.u.getInstance(f.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:g.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.k.mapInteractionType(n)};u.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:c.p.config,currentUser:b.K.currentUser}}},{key:"viewOptions",value:function(){var e,n;return{styles:h,uploadArticleUrl:m.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),v.w.UploadToLibraryEditor,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),uploadTermsUrl:this.config?a._.safeUrlConcat(this.config.get("marketingSiteUrl"),f.l.UploadingUserContent):"",classNames:"info-link",hasLite:k.g.hasLite,imageUrl:f.Wn.Upload.UPLOAD_VIDEO}}}])&&S(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),C}(o.Q.View)},22103:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return"d-none"},3:function(e,n,t,r,o){return"col-4"},5:function(e,n,t,r,o){return"col-12"},7:function(e,n,t,r,o){return"col-8"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var l,i=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,s=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||n&&n.lang||a).call(i,"uploadVideos",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="my-3">\r\n <img src="'+c(s(null!=(l=null!=n?n.options:n)?l.imageUrl:l,n))+'" class="'+c(s(null!=(l=null!=(l=null!=n?n.options:n)?l.styles:l)?l.uploadImage:l,n))+' img-fluid mb-2" />\r\n </div>\r\n <div>\r\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(i,"chooseVideo",{name:"lang",hash:{},data:o}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||n&&n.lang||a).call(i,"dragDrop",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n</div>\r\n<div class="p-3 bg-white container-fluid">\r\n <div class="row">\r\n <div class="'+(null!=(l=t.if.call(i,null!=(l=null!=n?n.options:n)?l.hasLite:l,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?l:"")+'">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"help",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+c(s(null!=(l=null!=n?n.options:n)?l.uploadArticleUrl:l,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(i,"instructionsHeading",{name:"lang",hash:{},data:o}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="'+(null!=(l=t.if.call(i,null!=(l=null!=n?n.options:n)?l.hasLite:l,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.program(7,o,0),data:o}))?l:"")+'">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(i,"termsHeading",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||n&&n.lang||a).call(i,"term1",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+c((t.lang||n&&n.lang||a).call(i,"term2",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+(null!=(l=(t.lang||n&&n.lang||a).call(i,"term3",{name:"lang",hash:{classNames:null!=(l=null!=n?n.options:n)?l.classNames:l,uploadTermsUrl:null!=(l=null!=n?n.options:n)?l.uploadTermsUrl:l},data:o}))?l:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5891],{54096:function(e,t,r){r.d(t,{G:function(){return i}});var n=r(1024),o=r(21679);function i(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},90335:function(e,t,r){var n;r.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},2491:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(54096),o=r(21186),i=r(92159);function a(){var e=(0,n.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},65657:function(e,t,r){r.d(t,{i:function(){return c}});var n=r(1024),o=r(58566),i=r(86120),a=r(53808);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=e,c=t,l=function(e,t,r){function c(e){if(e)return a.q.isFunction(t)?t(e):e.data}function l(e){var t,r;if(e)return null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,o.useSelector)((0,n.useMemo)((function(){return function(t){if(a.q.isFunction(e)){for(var r=e,n=a.q.isFunction(e)&&r(),o=n&&i.a.getResponse(t,n),s=o&&o.isFetching,d=o&&o.statusCode,f=o&&o.hasCompleted,p=o&&o.shouldFetch,y=c(o&&o.data),v=l(o&&o.data),m=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(o&&o.data);v&&(s=(o=i.a.getResponse(t,r(v))).isFetching,d=o.statusCode,f=o.hasCompleted,!o.shouldFetch);){var h=c(o.data);h&&y.push.apply(y,function(e){if(Array.isArray(e))return u(e)}(I=h)||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 u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(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.")}());var b=l(o.data);v=b===v?null:b}var g={shouldInitialFetch:p,items:y,nextCursor:v,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof m&&(g.totalItems=m),g}var I}}),[e]))}(e&&function(e){return r(e).key});return(0,n.useEffect)((function(){l&&l.shouldInitialFetch&&t&&c()}),[null==l?void 0:l.shouldInitialFetch,t]),(0,n.useEffect)((function(){l&&l.nextCursor&&!l.isFetching&&t&&c(l.nextCursor)}),[null==l?void 0:l.nextCursor,null==l?void 0:l.isFetching,t]),l}r(35656).o.Ok},50072:function(e,t,r){var n;r.d(t,{l:function(){return n}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed"}(n||(n={}))},85739:function(e,t,r){r.d(t,{p:function(){return a}});var n=r(25796),o=r(86120),i=r(65657);function a(e,t){var r=o.a.useGetFetch(),a=function(r){return n.y.libraryRequests(e,t,r)};return(0,i.i)(a,(function(e){return r(a(e))}))}},31170:function(e,t,r){r.r(t),r.d(t,{ApproveLibraryRequestView:function(){return C}});var n=r(1024),o=r.n(n),i=r(57857),a=r(86120),u=r(31647),c=r(71575),l=r(66703),s=r(85610),d=r(2491),f=r(25796),p=r(50072),y=r(90335),v=r(50997),m=r(85739),h=r(70065),b=r(52076);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var I="libraryRequests.approve",A=i.T.encloseNamespace(I);function C(e){var t,r,n=(t=o().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=n[0],C=n[1],S=a.a.useGetFetch(),w=(0,d.Z)(),F=(0,m.p)(e.queryParams.sort||y.D.Newest,[p.l.Pending]),R=a.a.useBasicFetch(f.y.libraryRequest(e.libraryRequestId)),E=a.a.useBasicFetch(f.y.library(e.libraryId)),q=a.a.useBasicFetch(f.y.folder(e.folderId));function k(){var t,r,n,o,i,a;i={location:h.LocationContext.Popup,actionType:h.UserAction.Approve,entity:h.EntityType.StaffRequest,workflowPhase:h.WorkflowPhase.Complete},a={id:R.data.id,videoId:null===(t=R.data.object)||void 0===t?void 0:t.id,requestingUserId:null===(r=R.data.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(n=R.data.sourceLibrary)||void 0===n?void 0:n.id,sourceFolderId:null===(o=R.data.sourceCategory)||void 0===o?void 0:o.id,destinationLibraryId:e.libraryId,destinationFolderId:e.folderId},b.k.logUserAction(a,i),w.success(A("success"));var c=F.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),l=F.items[c+1];u.Q.AppLinkHelper.trigger({application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==l?void 0:l.id)||""],params:e.queryParams},{replace:!0})}var P=!!(F.hasCompleted&&R.data&&E.data&&q.data);return o().createElement(c.G,{title:A("title"),closePopup:e.closePopup,showLoadingSpinner:!P},P&&o().createElement(o().Fragment,null,o().createElement("p",null,o().createElement(l.x,{namespace:I,phrase:"confirmation",options:{videoName:R.data.object.name,libraryName:E.data.name,folderName:q.data.name}})),o().createElement(s.u,null,o().createElement(s.u.Cancel,{onClick:e.closePopup}),o().createElement(s.u.Submit,{onClick:function(){C(!0);var t={response:p.l.Approved,metadata:{destinationLibraryId:e.libraryId,destinationCategoryId:e.folderId}};S(f.y.fulfilRequest(e.libraryRequestId,t,k,(function(){return w.error(A("error"))}),e.closePopup))},text:A("approve"),showSpinner:i,variant:"dark"}))))}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(e,t,r){"use strict";r.r(t),r.d(t,{ErrorView:function(){return h}});var n=r(48088),o=r(31647),i=r(2882),u=r.n(i),c={image:"DlVFv"},l=r(50997);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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function y(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)}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&&p(e,t)}(h,e);var t,r,o,i,f=(o=h,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 r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return y(this,e)});function h(){return a(this,h),f.apply(this,arguments)}return t=h,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center rounded"}},{key:"template",get:function(){return u()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:l.Wn.Errors.GENERIC,styles:c}}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.Q.View)},2882:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'<img src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' pt-5 pb-3" />\r\n<h2 class="h6">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'</h2>\r\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6181],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},79641:function(e,t,n){"use strict";n.r(t),n.d(t,{VideoDetailsView:function(){return Be}});var r,o=n(39479),i=n.n(o),s=n(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var l=n(8371),c=n(28099),a=n(70065),u=n(6681),f=n(56210),p=n(61843),d=n(66882),h={svgContainer:"qOHRG"},y=n(86745),m=n.n(y);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 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,r.key,r)}}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,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)}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&&g(e,t)}(l,e);var t,n,r,i,s=(r=l,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=k(r);if(i){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(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),s.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return m()}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between px-3 pt-3 pb-2 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:f.H,selector:".".concat(h.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:h,lockSvg:u.Nj.getSvg(u.vn.Lock),hasRestriction:!o.isUndefined(this.model.get("restrictions")),restrictionMessage:p.S9.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new d.R({model:this.model,showActionLabels:!0,application:c.OV.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:a.EntityType.Video,location:a.LocationContext.VideoDetailsHeader,descriptor:a.OperationDescriptor.Single},config:this.options.config}))}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(s.Q.Component),C=n(77605),E=n(89545),R=n(7427),S=n(9484),j=n(45837),P=n(44391),_=n(70042),V=n(26457),x=n(17349),I=n.n(x),T={interactive:"N1mrU"};function L(e){return L="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},L(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,r.key,r)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function U(e,t){if(t&&("object"===L(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)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var M=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&&B(e,t)}(s,e);var t,n,r,o,i=(r=s,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=A(r);if(o){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!p.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return I()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:S.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new E.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:a.LocationContext.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new P.K({collection:this.model.get("tags"),orientation:V.zM.Flex,behavior:V.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new R.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:T,interactive:_.u.isInteractive(this.model),duration:p.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&p.BK.filterObjectsByOwnerType(this.model.tags,j.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&D(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(s.Q.Component),N=n(70693),H=n(68708),F=n(63122),K=n(57085),Q=n(23130),z=n(10386),Y=n.n(z),Z=n(90118),q=n.n(Z),X={columnNames:"Hs0Sh"};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function W(e,t,n){return t&&$(e.prototype,t),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(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&&te(e,t)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){var t=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}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){if(t&&("object"===G(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)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ie=function(e){ee(n,e);var t=ne(n);function n(){return J(this,n),t.apply(this,arguments)}return W(n,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return Y()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:X}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new Q.Z({model:new s.Q.Model({description:this.model.get("value")}),linkify:!0,size:Q.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}]),n}(s.Q.Component),se=function(e){ee(n,e);var t=ne(n);function n(){return J(this,n),t.apply(this,arguments)}return W(n,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return ie}}]),n}(s.Q.ComponentCollection),le=function(e){ee(n,e);var t=ne(n);function n(){return J(this,n),t.apply(this,arguments)}return W(n,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return q()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new se({collection:this.collection}))}}]),n}(s.Q.Component),ce=n(21251),ae=n(21679),ue=n(33800),fe=n(48404),pe=n(17422),de=n(75535),he=n(99748),ye=n(53854),me=n(95061),be=n(3059),ve=n(57857),ge=n(26835),we=n.n(ge),ke={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};function Oe(e){return Oe="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},Oe(e)}function Ce(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,r.key,r)}}function Ee(e,t){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ee(e,t)}function Re(e,t){if(t&&("object"===Oe(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)}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}var je=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&&Ee(e,t)}(l,e);var t,n,o,i,s=(o=l,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=Se(o);if(i){var n=Se(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Re(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),s.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return we()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return p.mU.isInContentRegion(this.options.contentRegion,r.UK)?ke.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return ve.T.getPhrase(this.lang,"era");case r.AU:return ve.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=p.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:ke,logoClass:this.getLogoClass(),labelText:e?ve.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&Ce(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(s.Q.Component),Pe=n(91865),_e=n.n(Pe),Ve=n(59054);function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function Ie(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,r.key,r)}}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Te(e,t)}function Le(e,t){if(t&&("object"===xe(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)}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}var Be=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&&Te(e,t)}(f,e);var t,n,o,a,u=(o=f,a=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=De(o);if(a){var n=De(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Le(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),u.call(this,e)}return t=f,n=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=ae.u.getInstance(ue.O.Video,this),this.videoMixinService=ae.u.getInstance(ue.K.VideoMixin,this),this.localCacheDataService=ae.u.getInstance(ue.O.LocalCache,this),this.playerDataService=ae.u.getInstance(ue.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(c.Vk.VIDEO,"".concat(ce.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.VIDEO,"".concat(ce.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(c.Vk.VIDEO,"".concat(ce.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(c.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(c.Vk.RESTRICTED_VIDEO,"".concat(ce.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(c.Vk.RESTRICTED_VIDEO,"".concat(ce.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(ce.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(ce.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return _e()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case he.h.NotFound:s.Q.ErrorHelper.throw(new de.l);break;case he.h.Forbidden:s.Q.ErrorHelper.throw(new ye.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:pe.LP.Breadcrumbs},header:{replaceElement:!0,el:".video-header-region",partialLoading:pe.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:pe.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:pe.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||p.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,Ve.f.MasterObject,t)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.video.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.video&&this.showChildView("breadcrumbs",new K.n({folder:this.folder,libraries:this.libraries,video:this.video,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new O({model:this.video,customerHasLocalCache:p.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new be.F7(this.folder.id,p.x$.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new M({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new F.S({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===l.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.length&&this.currentUser.get("instanceRegion")!==l.b.US&&this.showChildView("fields",new le({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new N.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new C.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new H.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new je({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:fe.p.config,currentUser:S.K.currentUser,libraries:me.T.libraries,exchanges:me.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,t=e.chapters,n=e.resources,r=e.fields,o=e.links;return{hasFolder:!!this.folder,hasChapters:t&&t.length,hasResources:n&&n.length,hasFields:r&&r.length,hasLinks:o&&o.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],n&&Ie(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(s.Q.View)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return S}});var r=n(31647),o=n(93933),i=n.n(o),s=n(86363),l=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(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)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=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}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var b=function(e){p(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return l()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.Component),v=function(e){p(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return b}}]),n}(r.Q.ComponentCollection),g=n(22557),w=n(28099);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 O(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,r.key,r)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function E(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)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(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&&C(e,t)}(c,e);var t,n,o,s,l=(o=c,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=R(o);if(s){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new r.Q.Collection([]);var t,n=this.options.folder;do{if(!n)break;if(t=g.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:w.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?w.eX.LibraryEditor.FOLDER:w.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Q.Component)},86745: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,s=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-2 '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(s(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s,l=null!=t?t:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\r\n <h4 class="d-inline-block mb-0">'+e.escapeExpression("function"==typeof(s=null!=(s=n.name||(null!=t?t.name:t))?s:e.hooks.helperMissing)?s.call(l,{name:"name",hash:{},data:o}):s)+"</h4>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},17349: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,s=e.escapeExpression;return' <span class="badge p-1 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:o}))+"</span>\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.folders:i},data:o}))+'</h5>\r\n <div class="folders-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:o}))+'</h5>\r\n <div class="tags-region"></div>\r\n </div>\r\n'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.escapeExpression;return' <div class="mt-3">\r\n <h5>'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:o}))+"</h5>\r\n <p>"+s(e.lambda(null!=(i=null!=t?t.options:t)?i.links:i,t))+"</p>\r\n </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=null!=t?t:e.nullContext||{};return'<div class="border-right h-100 pl-2 pr-3">\r\n <div class="video-preview-region"></div>\r\n <div class="mt-3">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.folders:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.tags:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})},91865:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return' <div class="fields-region"></div>\r\n'},3:function(e,t,n,r,o){return' <div class="video-chapters-region"></div>\r\n'},5:function(e,t,n,r,o){return' <div class="video-resources-region"></div>\r\n'},7:function(e,t,n,r,o){return' <div class="video-links-region"></div>\r\n'},9:function(e,t,n,r,o){return' <div class="screenright-disclaimer-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=null!=t?t:e.nullContext||{};return'<div class="row border-bottom">\r\n <div class="video-header-region"></div>\r\n\r\n <div class="px-3 pb-3">\r\n <div class="breadcrumbs-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-4">\r\n <div class="main-video-information-region"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="basic-video-information-region py-3 pr-2"></div>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hasFields:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hasResources:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showScreenrightsDisclaimer:i,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</div>"},useData:!0})},86363: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,'<span class="font-weight-bolder">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\r\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.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933: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){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},10386: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){e.propertyIsEnumerable;var i,s,l=e.escapeExpression;return'<div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l("function"==typeof(s=null!=(s=n.name||(null!=t?t.name:t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):s)+'</div>\r\n<div class="col-9">\r\n <div class="description-region"></div>\r\n</div>'},useData:!0})},90118: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){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},26835: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){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.licenseContainer:i,t))+'">\r\n <div class="'+l(s(null!=(i=null!=t?t.options:t)?i.logoClass:i,t))+'">'+l(s(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+'</div>\r\n <p class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.license:i,t))+' bg-white p-2 border box-shadow">\r\n '+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.licenseText:i,t))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5248],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return N}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(36357),c=i(30305),l=i(70763),u=i(71192),d=i(17422),h=i(14129),f=i(39090),v=i(82405),p=i(13809),g=i(48404),y=i(9484),w=i(46415),b=i(7572),m=i(71010),S=i.n(m),V=i(29565),k=i(95061);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(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&&O(e,t)}(U,e);var t,i,m,C,N=(m=U,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=R(m);if(C){var i=R(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _(this,e)});function U(){return T(this,U),N.apply(this,arguments)}return t=U,(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:k.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()}}])&&E(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),U}(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>\r\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n</div>'},useData:!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 N}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(36357),c=i(28099),l=i(70763),u=i(71192),d=i(17422),h=i(14129),f=i(39090),v=i(82405),p=i(13809),g=i(48404),y=i(9484),w=i(46415),b=i(7572),m=i(71010),S=i.n(m),V=i(29565),k=i(95061);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function _(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(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&&O(e,t)}(U,e);var t,i,m,C,N=(m=U,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=R(m);if(C){var i=R(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return _(this,e)});function U(){return T(this,U),N.apply(this,arguments)}return t=U,(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:k.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()}}])&&E(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),U}(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>\r\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n</div>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6420],{96417:function(e,t,n){"use strict";n.d(t,{s:function(){return i},p:function(){return s}});var r=n(57857),o="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return r.T.getPhrase(o,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return r.T.getPhrase(o,"selectFolder")}},s={message:[{required:!0,msg:function(){return r.T.getPhrase("staffRequests.utils","provideMessage")}}]}},36420:function(e,t,n){"use strict";n.r(t),n.d(t,{RejectStaffRequestView:function(){return T}});var r=n(48088),o=n(31647),i=n(99249),s=n(21679),a=n(70065),u=n(52076),l=n(10101),c=n(88172),f=n(67670),p=n(30305),d=n(61843),h=n(57857),y=n(96417),b=n(44275),m=n.n(b);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 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,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function S(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)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=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)}(O,e);var t,n,b,v,T=(b=O,v=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(b);if(v){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(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),T.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.staffRequestDataService=s.u.getInstance(p.Or.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return h.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return m()}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.Yw,title:h.T.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new f.v,channelName:this.channelName,buttonText:h.T.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:l.Bp,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=message]":{observe:"message",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(p.M_.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(p.Vk.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(p.Vk.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(p.M_.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(p.Vk.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(p.Vk.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=i.r.get(this.viewModelName),this.viewModel.addValidation(y.p)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:h.T.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(c.ZV.Disabled,!1===this.viewModel.isValid())}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(c.I3.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:a.LocationContext.Popup,actionType:a.UserAction.Reject,entity:a.EntityType.StaffRequest,workflowPhase:a.WorkflowPhase.Complete},t={id:this.options.requestId,videoId:this.model.get("video")&&this.model.get("video").id,requestingUserId:this.model.get("user")&&this.model.get("user").id,sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").id,sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").id};u.k.logUserAction(t,e)}},{key:"redirectToHome",value:function(){o.Q.AppLinkHelper.trigger({application:p.OV.STAFF_REQUESTS,action:p.eX.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){r.Validation.bind(this,{model:this.viewModel})}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(o.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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function l(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)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(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,i,f=(r=p,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=c(r);if(i){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function p(){return s(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){return e={},!0,(t=o.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},44275: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:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return"<p><strong>"+s(e.lambda(null!=(i=null!=t?t.video:t)?i.name:i,t))+"</strong> "+s((n.lang||t&&t.lang||u).call(a,"notAddedToLibrary",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+s((n.lang||t&&t.lang||u).call(a,"provideMessageForUser",{name:"lang",hash:{lastName:null!=(i=null!=t?t.user:t)?i.surname:i,firstName:null!=(i=null!=t?t.user:t)?i.username:i},data:o}))+'</label>\r\n <textarea class="form-control" id="message" name="message" autofocus></textarea>\r\n <div class="form-feedback"></div>\r\n</div>\r\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
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6420],{96417:function(e,t,n){"use strict";n.d(t,{s:function(){return i},p:function(){return s}});var r=n(57857),o="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return r.T.getPhrase(o,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return r.T.getPhrase(o,"selectFolder")}},s={message:[{required:!0,msg:function(){return r.T.getPhrase("staffRequests.utils","provideMessage")}}]}},36420:function(e,t,n){"use strict";n.r(t),n.d(t,{RejectStaffRequestView:function(){return T}});var r=n(48088),o=n(31647),i=n(99249),s=n(21679),a=n(70065),u=n(52076),l=n(10101),c=n(88172),f=n(67670),p=n(28099),d=n(61843),h=n(57857),y=n(96417),b=n(44275),m=n.n(b);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 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,r.key,r)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function S(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)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=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)}(O,e);var t,n,b,v,T=(b=O,v=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(b);if(v){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(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),T.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.staffRequestDataService=s.u.getInstance(p.Or.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return h.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return m()}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.Yw,title:h.T.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new f.v,channelName:this.channelName,buttonText:h.T.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:l.Bp,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=message]":{observe:"message",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(p.M_.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(p.Vk.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(p.Vk.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(p.M_.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(p.Vk.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(p.Vk.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=i.r.get(this.viewModelName),this.viewModel.addValidation(y.p)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:h.T.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(c.ZV.Disabled,!1===this.viewModel.isValid())}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(c.I3.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:a.LocationContext.Popup,actionType:a.UserAction.Reject,entity:a.EntityType.StaffRequest,workflowPhase:a.WorkflowPhase.Complete},t={id:this.options.requestId,videoId:this.model.get("video")&&this.model.get("video").id,requestingUserId:this.model.get("user")&&this.model.get("user").id,sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").id,sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").id};u.k.logUserAction(t,e)}},{key:"redirectToHome",value:function(){o.Q.AppLinkHelper.trigger({application:p.OV.STAFF_REQUESTS,action:p.eX.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){r.Validation.bind(this,{model:this.viewModel})}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(o.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(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)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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&&l(e,t)}(d,e);var t,n,r,i,p=(r=d,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=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function d(){return a(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){var e;return s(e={},o.ZV.Disabled,!0),s(e,o.ZV.Hidden,!1),e}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Model)},44275: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:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return"<p><strong>"+s(e.lambda(null!=(i=null!=t?t.video:t)?i.name:i,t))+"</strong> "+s((n.lang||t&&t.lang||u).call(a,"notAddedToLibrary",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+s((n.lang||t&&t.lang||u).call(a,"provideMessageForUser",{name:"lang",hash:{lastName:null!=(i=null!=t?t.user:t)?i.surname:i,firstName:null!=(i=null!=t?t.user:t)?i.username:i},data:o}))+'</label>\r\n <textarea class="form-control" id="message" name="message" autofocus></textarea>\r\n <div class="form-feedback"></div>\r\n</div>\r\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 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6774],{86774:function(e,n,t){"use strict";t.r(n),t.d(n,{PublishLibraryView:function(){return O}});var r=t(48088),i=t(21679),a=t(31647),o=t(10101),l=t(30305),u=t(88172),c=t(61843),s=t(69184),f=t(57857),h=t(95061),p=t(48652),y=t.n(p),b=t(264);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}function k(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)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)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(O,e);var n,t,a,p,g=(a=O,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,n=w(a);if(p){var t=w(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return k(this,e)});function O(){return d(this,O),g.apply(this,arguments)}return n=O,(t=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(l.Or.Library,this),this.videoDataService=i.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return f.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"heading"),behaviorClass:o.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"viewOptions",value:function(){return{hasLite:b.g.hasLite}}},{key:"onClickContinue",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),r.Radio.channel(s.GL.LIBRARY_STATUS).trigger("status:changed"))};this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)}))}},{key:"requiredResources",get:function(){return{libraries:h.T.libraries}}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),O}(a.Q.View)},48652:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable," <li>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"meaning2",{name:"lang",hash:{},data:i}))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var a,o=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression;return"<p>"+u((t.lang||n&&n.lang||l).call(o,"infoHeading",{name:"lang",hash:{},data:i}))+"</p>\r\n<p>"+u((t.lang||n&&n.lang||l).call(o,"meaningSubheading",{name:"lang",hash:{},data:i}))+"</p>\r\n<ul>\r\n <li>"+u((t.lang||n&&n.lang||l).call(o,"meaning1",{name:"lang",hash:{},data:i}))+"</li>\r\n"+(null!=(a=t.unless.call(o,null!=(a=null!=n?n.options:n)?a.hasLite:a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?a:"")+" <li>"+u((t.lang||n&&n.lang||l).call(o,"meaning3",{name:"lang",hash:{},data:i}))+"</li>\r\n</ul>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6774],{86774:function(e,n,t){"use strict";t.r(n),t.d(n,{PublishLibraryView:function(){return O}});var r=t(48088),i=t(21679),a=t(31647),o=t(10101),l=t(28099),u=t(88172),c=t(61843),s=t(69184),f=t(57857),h=t(95061),p=t(48652),y=t.n(p),b=t(264);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}function k(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)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)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(O,e);var n,t,a,p,g=(a=O,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,n=w(a);if(p){var t=w(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return k(this,e)});function O(){return d(this,O),g.apply(this,arguments)}return n=O,(t=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(l.Or.Library,this),this.videoDataService=i.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return f.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return c.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"heading"),behaviorClass:o.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"viewOptions",value:function(){return{hasLite:b.g.hasLite}}},{key:"onClickContinue",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),r.Radio.channel(s.GL.LIBRARY_STATUS).trigger("status:changed"))};this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)}))}},{key:"requiredResources",get:function(){return{libraries:h.T.libraries}}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),O}(a.Q.View)},48652:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,i){return e.propertyIsEnumerable," <li>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"meaning2",{name:"lang",hash:{},data:i}))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,i){e.propertyIsEnumerable;var a,o=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression;return"<p>"+u((t.lang||n&&n.lang||l).call(o,"infoHeading",{name:"lang",hash:{},data:i}))+"</p>\r\n<p>"+u((t.lang||n&&n.lang||l).call(o,"meaningSubheading",{name:"lang",hash:{},data:i}))+"</p>\r\n<ul>\r\n <li>"+u((t.lang||n&&n.lang||l).call(o,"meaning1",{name:"lang",hash:{},data:i}))+"</li>\r\n"+(null!=(a=t.unless.call(o,null!=(a=null!=n?n.options:n)?a.hasLite:a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?a:"")+" <li>"+u((t.lang||n&&n.lang||l).call(o,"meaning3",{name:"lang",hash:{},data:i}))+"</li>\r\n</ul>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6788],{36788:function(t,e,r){"use strict";r.r(e),r.d(e,{NoLibraryView:function(){return d}});var n=r(31647),o=r(57857),i=r(6681),u=r(56371),c=r(17422),a=r(30305),f=r(2),l=r.n(f);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 y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(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&&b(t,e)}(d,t);var e,r,n,f,p=(n=d,f=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=g(n);if(f){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return h(this,t)});function d(){return y(this,d),p.apply(this,arguments)}return e=d,(r=[{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return l()}},{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:u.o,region:"emptyState",type:c.ub.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:i.Nj.getSvg(i.vn.Plus),heading:o.T.getPhrase(this.lang,"emptyStateHeading"),description:o.T.getPhrase(this.lang,"emptyStateDescription"),btnText:o.T.getPhrase(this.lang,"emptyStateCta")},emptyStateComponents:a.aW}]}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(n.Q.View)},2:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){return'<div class="no-library-region"></div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6788],{36788:function(t,e,r){"use strict";r.r(e),r.d(e,{NoLibraryView:function(){return d}});var n=r(31647),o=r(57857),i=r(6681),u=r(56371),c=r(17422),a=r(28099),f=r(2),l=r.n(f);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 y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(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)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(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&&b(t,e)}(d,t);var e,r,n,f,p=(n=d,f=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=g(n);if(f){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return h(this,t)});function d(){return y(this,d),p.apply(this,arguments)}return e=d,(r=[{key:"name",get:function(){return"NoLibraryView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.noLibrary"}},{key:"template",get:function(){return l()}},{key:"regions",value:function(){return{emptyState:{el:".no-library-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:u.o,region:"emptyState",type:c.ub.LibraryEditor,shouldRender:function(){return!0},componentOptions:{plusSvg:i.Nj.getSvg(i.vn.Plus),heading:o.T.getPhrase(this.lang,"emptyStateHeading"),description:o.T.getPhrase(this.lang,"emptyStateDescription"),btnText:o.T.getPhrase(this.lang,"emptyStateCta")},emptyStateComponents:a.aW}]}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(n.Q.View)},2:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){return'<div class="no-library-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6963],{54096:function(r,e,t){t.d(e,{G:function(){return o}});var n=t(1024),a=t(21679);function o(r){var e,t;return e=r,t=a.u.getInstance(e),n.useEffect((function(){return function(){a.u.releaseInstance(e)}})),t}},84657:function(r,e,t){t.d(e,{v:function(){return n}});var n={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(r){return"banner,cover,tallPoster,followers{id:".concat(r,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed],clips[_canBeConsumed],_canUpdate,_videoProgress,_canBeConsumed,categories,libraries,_canAddToLibrary",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"}},34107:function(r,e,t){t.d(e,{D:function(){return c}});var n=t(68003),a=t(2248),o=t(40221),i=t(84657),c={domainLibraries:function(r,e,t,a){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:r,maxCategoryDepth:0}),key:"libraries:".concat(r.sort().join(":")),formatData:function(r){return r.map((function(r){return r.data}))},success:e,error:t,always:a}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(r,e,t,a){return r.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:i.v.LIBRARY_COLLECTION,id:r}),key:"libraries:owner:logo:".concat(r.join(",")),success:e,error:t,always:a}},library:function(r,e,t,a){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(r),{query:i.v.LIBRARY}),key:"library:".concat(r),success:e,error:t,always:a}},librarySubscribers:function(r,e){var t={};return e&&(t.cursor=e),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers"),t),key:"library:subscribers:".concat(r,":").concat(e)}},libraryOwner:function(r){return{url:"{gateway}/v1/library-requests/libraries/".concat(r,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(r),formatData:function(r){return o.m.first(r.data)}}},updateSubscriberPermissions:function(r,e,t,n,o){return{url:"{gateway}/v1/libraries/".concat(r,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(r,":").concat(e),type:a.k.PUT,data:{customerId:e,granted:t},success:n,error:o}},removeSubscriber:function(r,e,t,n){return{url:"{gateway}/v1/objects/".concat(r,"/subscribedcustomers?memberId=").concat(e),key:"revoke:subscription:".concat(r,":").concat(e),type:a.k.DELETE,invalidationKeys:["library:subscribers:".concat(r)],success:t,error:n}},folder:function(r,e,t,n){return{url:"{gateway}/v1/objects/".concat(r,"?query=banner"),key:"library:folder:".concat(r),success:e,error:t,always:n}},folderParentTree:function(r,e,t,n){return{url:"/api/domain/v2/categories/".concat(r,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(r),success:e,error:t,always:n}},childFolders:function(r,e,t,n,a){var o="{gateway}/v1/objects/".concat(r,"/categories?query={limit:100}thumbnail"),i="child:folders:".concat(r);return e&&(o+="&cursor=".concat(e),i+=":".concat(e)),{url:o,key:i,formatData:function(r){var e=r.data.sort((function(r,e){return r.name.toLowerCase().localeCompare(e.name.toLowerCase())}));return Object.assign(Object.assign({},r),{data:e})},success:t,error:n,always:a}},addToLibrary:function(r){return{url:"{gateway}/v1/library-requests",key:"add:".concat(r.objectId,":to:").concat(r.destinationLibraryId,":").concat(r.metadata.destinationCategoryId),type:a.k.POST,data:r}}}},2491:function(r,e,t){t.d(e,{Z:function(){return i}});var n=t(54096),a=t(21186),o=t(92159);function i(){var r=(0,n.G)(o.P.ALERT);return{success:function(e){r.success(e)()},error:function(e){r.error(e)()},warning:function(e){r.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:e})}}}},91021:function(r,e,t){t.r(e),t.d(e,{RemoveLibrarySubscriberView:function(){return p}});var n=t(1024),a=t.n(n),o=t(86120),i=t(57857),c=t(71575),s=t(2491),u=t(34107),l=t(85610),b=t(66703),d=t(52076),y=t(70065);function m(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}var f="staffRequests.removeLibrarySubscriber";function p(r){var e,t,n,p,v=(n=a().useState(!1),p=2,function(r){if(Array.isArray(r))return r}(n)||function(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,a,o=[],i=!0,c=!1;try{for(t=t.call(r);!(i=(n=t.next()).done)&&(o.push(n.value),!e||o.length!==e);i=!0);}catch(r){c=!0,a=r}finally{try{i||null==t.return||t.return()}finally{if(c)throw a}}return o}}(n,p)||function(r,e){if(r){if("string"==typeof r)return m(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(r,e):void 0}}(n,p)||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.")}()),g=v[0],h=v[1],I=o.a.useBasicFetch(u.D.library(r.libraryId)),C=o.a.useBasicFetch(u.D.librarySubscribers(r.libraryId)),w=o.a.useGetFetch(),L=(0,s.Z)(),S=null===(t=null===(e=C.data)||void 0===e?void 0:e.data)||void 0===t?void 0:t.find((function(e){return e.customerId===r.customerId})),k=I.hasCompleted&&C.hasCompleted;return a().createElement(c.G,{title:i.T.getPhrase(f,"removeSchool"),closePopup:r.closePopup,showLoadingSpinner:!k},!!k&&a().createElement(a().Fragment,null,a().createElement("p",null,a().createElement(b.x,{namespace:f,phrase:"removeSubscriberInfo",options:{school:S.customerName,library:I.data.name}})),a().createElement(l.u,null,a().createElement(l.u.Cancel,{onClick:r.closePopup}),a().createElement(l.u.Submit,{onClick:function(){h(!0),w(u.D.removeSubscriber(r.libraryId,r.customerId,(function(){L.success(i.T.getPhrase(f,"revokeSubscriptionSuccess",{school:S.customerName,library:I.data.name})),d.k.logUserAction({id:r.libraryId,customerId:r.customerId},{actionType:y.UserAction.Dissociate,entity:y.EntityType.Library,descriptor:y.AssocDescriptor.Customer,location:y.LocationContext.Popup,workflowPhase:y.WorkflowPhase.Complete}),r.closePopup()}),(function(){h(!1),L.error(i.T.getPhrase(f,"revokeSubscriptionError",{school:S.customerName,library:I.data.name}))})))},text:i.T.getPhrase(f,"removeSchool"),variant:"danger",showSpinner:g}))))}}}]);
@@ -0,0 +1 @@
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 Y}});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(17422),p=n(28099),y=n(58688),v=n(48404),g=n(9484),b=n(3059),m=n(95061),w=n(39090),C=(n(14129),n(7572)),S=n(46415),k=n(56750),P=n.n(k),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 V(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,i.key,i)}}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}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)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(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&&j(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=L(i);if(r){var n=L(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(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 P()}},{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()}}])&&V(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Q.Component),I=n(48088),D=n(68536),F=n.n(D);function U(e){return U="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},U(e)}function x(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,i.key,i)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function A(e,t){if(t&&("object"===U(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)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(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&&M(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=G(i);if(r){var n=G(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return A(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 F()}},{key:"regions",value:function(){return{filters:{el:".filters-region"}}}},{key:"events",value:function(){return{"click .generate-pdf":"onClickGeneratePdf"}}},{key:"onClickGeneratePdf",value:function(){I.Radio.channel(this.options.channelName).trigger("generate:pdf")}},{key:"renderFilters",value:function(){var e=new N({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()}}])&&x(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Q.Component),Q=n(82405),W=n(73616),B=n(29565),q=n(69711),z=n.n(q);function J(e){return J="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},J(e)}function X(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,i.key,i)}}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}function Z(e,t){if(t&&("object"===J(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)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var Y=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)}(O,e);var t,n,k,P,R=(k=O,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=$(k);if(P){var n=$(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Z(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 z()}},{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[W.g.Libraries],e),this.subjectCollectionIdentifier=new b.xw({dateQueryString:this.options.queryParams[W.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[W.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=B.Z.content;return this.reviewSetting&&this.reviewSetting.get("value")?e+=" d-inline-block border-left ".concat(B.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 C.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 S.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.showChildView("listHeader",new H({filterCollection:this.filterCollection,channelName:this.channelName,showGeneratePdf:!!this.videoCollection&&!!this.videoCollection.length}))}},{key:"renderVideos",value:function(){this.config&&this.groupedVideoCollection?this.showChildView("videos",new Q.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()}}])&&X(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>\r\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>\r\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>\r\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>\r\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))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n</div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7002],{24828:function(t,e,n){"use strict";n.d(e,{o:function(){return o}});var o=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},22231:function(t,e,n){"use strict";function o(t,e){return e[t.charCodeAt(0)%e.length]}n.d(e,{x:function(){return o}})},91439:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(39479),r=n(48088),i=n(31647),a=n(6681),c=n(28099),l=n(93421),s="C8gyn";function u(t){return u="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},u(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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,o.key,o)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function d(t,e){if(e&&("object"===u(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)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var h=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)}(g,t);var e,n,i,u,h=(i=g,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(t){return!1}}(),function(){var t,e=b(i);if(u){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return d(this,t)});function g(){return p(this,g),h.apply(this,arguments)}return e=g,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.W2.draggable,"ui-draggable-handle":l.W2.handle,"ui-draggable-disabled":l.W2.disabled,"ui-draggable-dragging":l.W2.dragging}}},{key:"helper",value:function(){return new l.ND({text:this.view.model.get("name"),svg:a.Nj.getSvg(a.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s)}},{key:"stop",value:function(){r.Radio.channel(c.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),g}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return y}});var o=n(39479),r=n(48088),i=n(31647),a=n(10454);function c(t){return c="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},c(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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,o.key,o)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(t,e){if(e&&("object"===c(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var y=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&&u(t,e)}(d,t);var e,n,i,c,y=(i=d,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=f(i);if(c){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function d(){return l(this,d),y.apply(this,arguments)}return e=d,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":a.Z.droppable,"ui-droppable-active":a.Z.active,"ui-droppable-hover":a.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Q.Behavior)},87002:function(t,e,n){"use strict";n.d(e,{Y:function(){return O}});var o=n(31647),r=n(50997),i=n(91439),a=(n(98001),n(6929)),c=n(70065),l=n(61843),s=n(22231),u=n(24828),p=n(51785),f=n(90743),y=n.n(f),d={folder:"cLuIF",actions:"vWWVi"};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 h(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,o.key,o)}}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function m(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)}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}var O=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&&g(t,e)}(O,t);var e,n,o,f,b=(o=O,f=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=v(o);if(f){var n=v(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return m(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),b.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"FolderItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"col-2 p-1 rounded"}},{key:"appLinks",get:function(){return{a:{application:r.OV.LIBRARY_EDITOR,action:r.eX.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:a.x,channelNames:[r.jr.VIDEO_DRAG_DROP,r.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:"library"===this.options.location?c.LocationContext.LibraryTiles:c.LocationContext.SubFolderList}},{behaviorClass:i.u}]}},{key:"viewOptions",value:function(){var t=l.jw.createFolderThumbnailUrl(this.model.thumbnail);return{styles:d,imageUrl:t,backgroundColor:(0,s.x)(this.model.get("name"),u.o)}}},{key:"onRender",value:function(){this.showChildView("actions",new p.c({model:this.model,extraClasses:"".concat(d.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.LocationContext.LibraryTiles},overrideClasses:!0}))}}])&&h(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(o.Q.Component)},51785:function(t,e,n){"use strict";n.d(e,{c:function(){return _}});var o=n(31647),r=n(6681),i=n(60602),a=n(70065),c=n(52076),l=n(71641),s=n(28099),u=n(57857),p=n(58266),f=n.n(p);function y(t){return y="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},y(t)}function d(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,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function h(t,e){if(e&&("object"===y(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)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=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)}(y,t);var e,n,r,i,p=(r=y,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(t){return!1}}(),function(){var t,e=g(r);if(i){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});function y(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,t)}return e=y,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"rename"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"move"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"editImages"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"remove"),analyticsOptions:c.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new l.w({analyticsHelper:c.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.Q.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(o.Q.Component),v=n(26704),O=n.n(v);function w(t){return w="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},w(t)}function k(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,o.key,o)}}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}function E(t,e){if(e&&("object"===w(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)}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}var _=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&&R(t,e)}(l,t);var e,n,o,a,c=(o=l,a=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=P(o);if(a){var n=P(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return E(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"template",get:function(){return O()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.g&&this.showChildView("items",new m({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.Q.Component)},58266: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="items-region"></div>'},useData:!0})},90743:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"style=\"background-image: url('"+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+"')\""},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,s="function",u=t.escapeExpression,p=t.lambda;return'<a class="rounded d-block text-decoration-none" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===s?a.call(c,{name:"name",hash:{},data:r}):a)+'">\r\n <div \r\n class="'+u(p(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+" "+u(p(null!=(i=null!=e?e.options:e)?i.backgroundColor:i,e))+' rounded-top"\r\n '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.imageUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'\r\n />\r\n <h3 class="font-size-normal font-weight-500 mb-0 p-2 bg-white border-left border-right border-bottom rounded-bottom ">\r\n <span class="text-truncate d-block">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)===s?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\r\n </h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},26704: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.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7053],{87053:function(e,t,n){"use strict";n.r(t),n.d(t,{GeneratePastReleasesPdfView:function(){return I}});var r=n(39479),i=n(33192),o=n(31647),a=n(21679),l=n(57857),s=n(70065),u=n(52076),c=n(10101),f=n(3059),p=n(9484),d=n(28099),h=n(67670),y=n(61843),b=n(39090),g=n(88172),m=n(44937),v=n(29569),j=n.n(v),S={image:"go5qS"};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 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,r.key,r)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function k(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)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var I=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&&O(e,t)}(I,e);var t,n,o,v,P=(o=I,v=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(o);if(v){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function I(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,I),P.call(this,e)}return t=I,(n=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(d.Or.Library,this),this.contentUpdatesDataService=a.u.getInstance(d.Or.ContentUpdates,this),this.exportDataService=a.u.getInstance(d.Or.Export,this)}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return j()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:l.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,channelName:this.channelName,buttonText:l.T.getPhrase(this.lang,"generateBtn"),onClick:function(){return e.onClickGeneratePdf()}}}]}},{key:"onLibrariesSync",value:function(e){var t=this;this.libraries=e,this.selectedLibraryIds=b.RF.getLibraryIds(this.options.librariesQueryString,e),this.subjectCollectionIdentifier=new f.xw({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)}))}},{key:"onSubjectsSync",value:function(e,t){var n=b.RF.getSubjectOptions(t).map((function(e){return new m.Wx(e)})),i={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new f.IJ(i),void this.spinnerModel.set(g.ZV.Disabled,!1);var o=this.getSubjectIds();this.videoCollectionIdentifier=new f.IJ(r.extend(i,{subjects:n.filter((function(e){return!!r.intersection(o,e.get("subjectIds")).length}))})),this.spinnerModel.set(g.ZV.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var e=this;if(this.libraries.length!==this.selectedLibraryIds.length){var t=this.libraries.filter((function(t){return r.contains(e.selectedLibraryIds,t.id.toString())})),n=t.map((function(e){return"<strong>".concat(y.m$.escapeExpression(e.get("name")),"</strong>")}));return t.length<=2?n.join(" ".concat(l.T.getPhrase(this.lang,"and")," ")):r.first(n,n.length-1).join(", ")+" ".concat(l.T.getPhrase(this.lang,"and")," ").concat(r.last(n))}}},{key:"getFormattedDate",value:function(e){if(e)return i(e).format("DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var e=this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")}));return 1===e.length?e[0]:e.slice(0,-1).join(", ")+" ".concat(l.T.getPhrase(this.lang,"and")," ")+e.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(g.ZV.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var e=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(t){t&&t.length?e.generatePdf(t.map((function(e){return e.id.toString()}))):e.triggerMethod("hide")}))}},{key:"generatePdf",value:function(e){var t=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():l.T.getPhrase(this.lang,"latestReleases"),r=i(this.videoCollectionIdentifier.dateOption.get("from")).format("MMMM YYYY"),o=i(this.videoCollectionIdentifier.dateOption.get("to")).format("MMMM YYYY"),a=r===o?l.T.getPhrase(this.lang,"fromContentUpdate",{from:r}):l.T.getPhrase(this.lang,"fromToContentUpdates",{from:r,to:o});this.exportDataService.generateCustomListPdf(n,a,e,this.currentUser,(function(){return t.triggerMethod("hide")})),this.logAction(e.length)}},{key:"logAction",value:function(e){var t={location:s.LocationContext.Popup,actionType:s.UserAction.Create,entity:s.EntityType.PDF,workflowPhase:s.WorkflowPhase.Complete},n={videoCount:e,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")})).join(","):""};u.k.logUserAction(n,t)}},{key:"requiredResources",get:function(){return{currentUser:p.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;this.libraries||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"viewOptions",value:function(){return{styles:S,dataFetched:!!this.libraries,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:d.Wn.Shared.GENERATE_PDF,libraryText:this.getLibrariesText(),subject:this.getFormattedSubjects(),from:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("from")),to:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("to"))}}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),I}(o.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),i=n(88172);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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)}(d,e);var t,n,r,o,p=(r=d,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=f(r);if(o){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function d(){return l(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){var e;return a(e={},i.ZV.Disabled,!0),a(e,i.ZV.Hidden,!1),e}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Model)},29569:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+l(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\r\n</div>\r\n<p class="m-0">\r\n '+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body1",{name:"lang",hash:{},data:i}))?o:"")+"\r\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.libraryText:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.subject:o,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n "+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body4",{name:"lang",hash:{email:null!=(o=null!=t?t.options:t)?o.email:o,to:null!=(o=null!=t?t.options:t)?o.to:o,from:null!=(o=null!=t?t.options:t)?o.from:o},data:i}))?o:"")+"\r\n</p>\r\n"},4:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(o=null!=t?t.options:t)?o.libraryText:o},data:i}))?o:""},6:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(o=null!=t?t.options:t)?o.subject:o},data:i}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.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})}}]);