@clickview/library-editor 1.1.52 → 1.1.53-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 (185) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/15-library-editor-6fd06eea2a.chunk.css +4 -0
  3. package/dist/css/{26-library-editor-f0118cbca0.chunk.css → 32-library-editor-9dfe56513f.chunk.css} +0 -4
  4. package/dist/css/{31-library-editor-4d763bac2b.chunk.css → 41-library-editor-234f39ca94.chunk.css} +0 -4
  5. package/dist/css/43-library-editor-ca20e9d127.chunk.css +2 -0
  6. package/dist/css/{library-editor-app-e3fef1181d.css → library-editor-app-24fbc5672c.css} +1 -1
  7. package/dist/en.json +1 -1
  8. package/dist/scripts/0-bba0145c77.chunk.js +1 -0
  9. package/dist/scripts/1-5577f6a3f7.chunk.js +1 -0
  10. package/dist/scripts/10-395e6f0d3f.chunk.js +1 -0
  11. package/dist/scripts/12-9ed28b9350.chunk.js +1 -0
  12. package/dist/scripts/13-50189e51fb.chunk.js +1 -0
  13. package/dist/scripts/14-748901431d.chunk.js +1 -0
  14. package/dist/scripts/15-d04c2395cb.chunk.js +1 -0
  15. package/dist/scripts/16-720a6228d9.chunk.js +1 -0
  16. package/dist/scripts/17-d885d92c20.chunk.js +1 -0
  17. package/dist/scripts/18-5977623df8.chunk.js +1 -0
  18. package/dist/scripts/19-5bdab3ec81.chunk.js +1 -0
  19. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-b4df362f89.chunk.js} +1 -1
  20. package/dist/scripts/22-ae40bff289.chunk.js +1 -0
  21. package/dist/scripts/23-ec60db0a2f.chunk.js +1 -0
  22. package/dist/scripts/24-c9ead3a5f0.chunk.js +1 -0
  23. package/dist/scripts/25-c316ef959e.chunk.js +1 -0
  24. package/dist/scripts/26-a45dd4bd85.chunk.js +1 -0
  25. package/dist/scripts/27-f60580ec4c.chunk.js +1 -0
  26. package/dist/scripts/28-7f81db6a72.chunk.js +1 -0
  27. package/dist/scripts/29-1719c127c2.chunk.js +1 -0
  28. package/dist/scripts/3-93f8c8b29c.chunk.js +1 -0
  29. package/dist/scripts/30-78f9ae88f8.chunk.js +1 -0
  30. package/dist/scripts/31-3eb784eddf.chunk.js +1 -0
  31. package/dist/scripts/32-e8241989c0.chunk.js +1 -0
  32. package/dist/scripts/33-1070fd472f.chunk.js +1 -0
  33. package/dist/scripts/34-f87b33c7e9.chunk.js +1 -0
  34. package/dist/scripts/35-e9d6a8b62f.chunk.js +1 -0
  35. package/dist/scripts/36-723d306d4b.chunk.js +1 -0
  36. package/dist/scripts/37-79e61046ac.chunk.js +1 -0
  37. package/dist/scripts/38-212e31c46a.chunk.js +1 -0
  38. package/dist/scripts/39-f1a08c3c13.chunk.js +1 -0
  39. package/dist/scripts/4-25b1d9b931.chunk.js +1 -0
  40. package/dist/scripts/40-a23493aa65.chunk.js +1 -0
  41. package/dist/scripts/41-e85021f013.chunk.js +1 -0
  42. package/dist/scripts/42-3df7979970.chunk.js +1 -0
  43. package/dist/scripts/43-60ab02c464.chunk.js +1 -0
  44. package/dist/scripts/44-d5bb0ed64a.chunk.js +1 -0
  45. package/dist/scripts/45-f1b7a85e1f.chunk.js +1 -0
  46. package/dist/scripts/46-a9758e6ae3.chunk.js +1 -0
  47. package/dist/scripts/47-9438225608.chunk.js +1 -0
  48. package/dist/scripts/48-c2442aeabc.chunk.js +1 -0
  49. package/dist/scripts/49-aeef82658f.chunk.js +1 -0
  50. package/dist/scripts/5-8cc15ac513.chunk.js +1 -0
  51. package/dist/scripts/50-10cb81acb2.chunk.js +1 -0
  52. package/dist/scripts/51-27b1c14df0.chunk.js +1 -0
  53. package/dist/scripts/52-95c57ffde9.chunk.js +1 -0
  54. package/dist/scripts/53-5be97c8405.chunk.js +1 -0
  55. package/dist/scripts/54-c375c80f2f.chunk.js +1 -0
  56. package/dist/scripts/55-f1f6c64710.chunk.js +1 -0
  57. package/dist/scripts/56-e81e20968e.chunk.js +1 -0
  58. package/dist/scripts/57-0abfa42a18.chunk.js +1 -0
  59. package/dist/scripts/58-596eaa36e1.chunk.js +1 -0
  60. package/dist/scripts/59-4a6dc51102.chunk.js +1 -0
  61. package/dist/scripts/6-3cfc29cd25.chunk.js +1 -0
  62. package/dist/scripts/{58-c0d48a915f.chunk.js → 60-ec99d4c0ec.chunk.js} +1 -1
  63. package/dist/scripts/61-94aba0214c.chunk.js +1 -0
  64. package/dist/scripts/62-078a1c7a79.chunk.js +1 -0
  65. package/dist/scripts/63-4d411f9dbc.chunk.js +1 -0
  66. package/dist/scripts/64-7cb7526007.chunk.js +1 -0
  67. package/dist/scripts/65-115a7df284.chunk.js +1 -0
  68. package/dist/scripts/66-f293f5aaf9.chunk.js +1 -0
  69. package/dist/scripts/67-4779bb083c.chunk.js +1 -0
  70. package/dist/scripts/68-ff8fdd5b00.chunk.js +1 -0
  71. package/dist/scripts/69-ae2fee4118.chunk.js +1 -0
  72. package/dist/scripts/7-0b561c5906.chunk.js +1 -0
  73. package/dist/scripts/70-1301052ad4.chunk.js +1 -0
  74. package/dist/scripts/71-37410a7494.chunk.js +1 -0
  75. package/dist/scripts/{70-d2472d2122.chunk.js → 72-04f3d7e7da.chunk.js} +1 -1
  76. package/dist/scripts/73-c2d2ad43c2.chunk.js +1 -0
  77. package/dist/scripts/74-f030ed93a4.chunk.js +1 -0
  78. package/dist/scripts/8-df0693826e.chunk.js +1 -0
  79. package/dist/scripts/9-d87db5e300.chunk.js +1 -0
  80. package/dist/scripts/bundle-7de62968ab.min.js +10 -0
  81. package/dist/scripts/polyfills-383fa05a74.min.js +1 -0
  82. package/package.json +100 -100
  83. package/dist/css/32-library-editor-d962911bc5.chunk.css +0 -6
  84. package/dist/scripts/0-5f0c2cd8fe.chunk.js +0 -1
  85. package/dist/scripts/1-7a35a849f0.chunk.js +0 -1
  86. package/dist/scripts/10-d534563266.chunk.js +0 -1
  87. package/dist/scripts/12-f0c771aad1.chunk.js +0 -1
  88. package/dist/scripts/13-d70fedb2e0.chunk.js +0 -1
  89. package/dist/scripts/14-fafea6f32c.chunk.js +0 -1
  90. package/dist/scripts/15-7aa65c016d.chunk.js +0 -1
  91. package/dist/scripts/16-56c022c016.chunk.js +0 -1
  92. package/dist/scripts/17-14a7b2aed1.chunk.js +0 -1
  93. package/dist/scripts/20-48346c1412.chunk.js +0 -1
  94. package/dist/scripts/21-f9ff3e0692.chunk.js +0 -1
  95. package/dist/scripts/22-82ad962fa7.chunk.js +0 -1
  96. package/dist/scripts/23-d534e3d903.chunk.js +0 -1
  97. package/dist/scripts/24-264b454456.chunk.js +0 -1
  98. package/dist/scripts/25-e1743bb45d.chunk.js +0 -1
  99. package/dist/scripts/26-0d7e56893b.chunk.js +0 -1
  100. package/dist/scripts/27-4ddeaff155.chunk.js +0 -1
  101. package/dist/scripts/28-96aef6893a.chunk.js +0 -1
  102. package/dist/scripts/29-554f426b85.chunk.js +0 -1
  103. package/dist/scripts/3-75a0223960.chunk.js +0 -1
  104. package/dist/scripts/30-9bdc787ec5.chunk.js +0 -1
  105. package/dist/scripts/31-67f46f7d90.chunk.js +0 -1
  106. package/dist/scripts/32-afdbc7da12.chunk.js +0 -1
  107. package/dist/scripts/33-6c83870de4.chunk.js +0 -1
  108. package/dist/scripts/34-486d783b77.chunk.js +0 -1
  109. package/dist/scripts/35-44dfa1d229.chunk.js +0 -1
  110. package/dist/scripts/36-6e22a76e9d.chunk.js +0 -1
  111. package/dist/scripts/37-247574943e.chunk.js +0 -1
  112. package/dist/scripts/38-c053771304.chunk.js +0 -1
  113. package/dist/scripts/39-0034f40388.chunk.js +0 -1
  114. package/dist/scripts/4-bbf9a27d2b.chunk.js +0 -1
  115. package/dist/scripts/40-4c9075f25f.chunk.js +0 -1
  116. package/dist/scripts/41-9ef30d9bce.chunk.js +0 -1
  117. package/dist/scripts/42-d5ebd7e173.chunk.js +0 -1
  118. package/dist/scripts/43-18cb4a605c.chunk.js +0 -1
  119. package/dist/scripts/44-c501392a17.chunk.js +0 -1
  120. package/dist/scripts/45-6f27b84b9a.chunk.js +0 -1
  121. package/dist/scripts/46-26943c79e1.chunk.js +0 -1
  122. package/dist/scripts/47-58f15ff5f7.chunk.js +0 -1
  123. package/dist/scripts/48-59c60086c6.chunk.js +0 -1
  124. package/dist/scripts/49-c7095beb6f.chunk.js +0 -1
  125. package/dist/scripts/5-a06b2153c3.chunk.js +0 -1
  126. package/dist/scripts/50-015c9c420c.chunk.js +0 -1
  127. package/dist/scripts/51-0cca989dae.chunk.js +0 -1
  128. package/dist/scripts/52-3cc8a4a0c6.chunk.js +0 -1
  129. package/dist/scripts/53-b0a20bc5a0.chunk.js +0 -1
  130. package/dist/scripts/54-79dca3d489.chunk.js +0 -1
  131. package/dist/scripts/55-8c5eba8730.chunk.js +0 -1
  132. package/dist/scripts/56-4d5b5fecd6.chunk.js +0 -1
  133. package/dist/scripts/57-84eff54b39.chunk.js +0 -1
  134. package/dist/scripts/59-53d002a1db.chunk.js +0 -1
  135. package/dist/scripts/6-6c8dac1a42.chunk.js +0 -1
  136. package/dist/scripts/60-9ba5670a0b.chunk.js +0 -1
  137. package/dist/scripts/61-7189b10e86.chunk.js +0 -1
  138. package/dist/scripts/62-6c382c4af3.chunk.js +0 -1
  139. package/dist/scripts/63-d55def5355.chunk.js +0 -1
  140. package/dist/scripts/64-4925cb46d4.chunk.js +0 -1
  141. package/dist/scripts/65-28d1f3d305.chunk.js +0 -1
  142. package/dist/scripts/66-dd4f73d58f.chunk.js +0 -1
  143. package/dist/scripts/67-25c6582829.chunk.js +0 -1
  144. package/dist/scripts/68-4962d3fcfc.chunk.js +0 -1
  145. package/dist/scripts/69-2067a2189e.chunk.js +0 -1
  146. package/dist/scripts/7-881a9b64de.chunk.js +0 -1
  147. package/dist/scripts/71-3f1e0d4f31.chunk.js +0 -1
  148. package/dist/scripts/72-d5c52637ca.chunk.js +0 -1
  149. package/dist/scripts/8-ef172e304b.chunk.js +0 -1
  150. package/dist/scripts/9-d5b2cc8210.chunk.js +0 -1
  151. package/dist/scripts/bundle-c6afc7b324.min.js +0 -10
  152. package/dist/scripts/polyfills-35ff77d456.min.js +0 -1
  153. /package/dist/css/{33-library-editor-630c133693.chunk.css → 16-library-editor-6b9ba08288.chunk.css} +0 -0
  154. /package/dist/css/{15-library-editor-b08725a10e.chunk.css → 17-library-editor-b08725a10e.chunk.css} +0 -0
  155. /package/dist/css/{16-library-editor-89ad109c63.chunk.css → 18-library-editor-89ad109c63.chunk.css} +0 -0
  156. /package/dist/css/{20-library-editor-2bd52b5a32.chunk.css → 22-library-editor-2bd52b5a32.chunk.css} +0 -0
  157. /package/dist/css/{21-library-editor-a7633bece5.chunk.css → 23-library-editor-a7633bece5.chunk.css} +0 -0
  158. /package/dist/css/{22-library-editor-459b106aec.chunk.css → 24-library-editor-459b106aec.chunk.css} +0 -0
  159. /package/dist/css/{23-library-editor-33acb75c24.chunk.css → 25-library-editor-33acb75c24.chunk.css} +0 -0
  160. /package/dist/css/{24-library-editor-b180014922.chunk.css → 26-library-editor-b180014922.chunk.css} +0 -0
  161. /package/dist/css/{25-library-editor-4c64aed388.chunk.css → 27-library-editor-4c64aed388.chunk.css} +0 -0
  162. /package/dist/css/{27-library-editor-b72d0e2d36.chunk.css → 28-library-editor-b72d0e2d36.chunk.css} +0 -0
  163. /package/dist/css/{28-library-editor-de55d150ef.chunk.css → 29-library-editor-de55d150ef.chunk.css} +0 -0
  164. /package/dist/css/{29-library-editor-b0e16f882d.chunk.css → 30-library-editor-b0e16f882d.chunk.css} +0 -0
  165. /package/dist/css/{30-library-editor-10f54d8a75.chunk.css → 31-library-editor-10f54d8a75.chunk.css} +0 -0
  166. /package/dist/css/{37-library-editor-d18b8a3619.chunk.css → 36-library-editor-d18b8a3619.chunk.css} +0 -0
  167. /package/dist/css/{38-library-editor-8b225d15f4.chunk.css → 37-library-editor-8b225d15f4.chunk.css} +0 -0
  168. /package/dist/css/{40-library-editor-b08725a10e.chunk.css → 38-library-editor-b08725a10e.chunk.css} +0 -0
  169. /package/dist/css/{41-library-editor-9a2d011500.chunk.css → 40-library-editor-9a2d011500.chunk.css} +0 -0
  170. /package/dist/css/{43-library-editor-aa3e9bea9a.chunk.css → 44-library-editor-aa3e9bea9a.chunk.css} +0 -0
  171. /package/dist/css/{44-library-editor-7b1cd4a5cc.chunk.css → 45-library-editor-7b1cd4a5cc.chunk.css} +0 -0
  172. /package/dist/css/{45-library-editor-f1820aeeff.chunk.css → 46-library-editor-f1820aeeff.chunk.css} +0 -0
  173. /package/dist/css/{46-library-editor-547abc7492.chunk.css → 47-library-editor-547abc7492.chunk.css} +0 -0
  174. /package/dist/css/{47-library-editor-3f6fb7f3ab.chunk.css → 48-library-editor-3f6fb7f3ab.chunk.css} +0 -0
  175. /package/dist/css/{48-library-editor-467e156ba3.chunk.css → 49-library-editor-467e156ba3.chunk.css} +0 -0
  176. /package/dist/css/{50-library-editor-7aca18778d.chunk.css → 51-library-editor-7aca18778d.chunk.css} +0 -0
  177. /package/dist/css/{51-library-editor-81c5aced1f.chunk.css → 52-library-editor-81c5aced1f.chunk.css} +0 -0
  178. /package/dist/css/{54-library-editor-d3b8bb68f9.chunk.css → 56-library-editor-d3b8bb68f9.chunk.css} +0 -0
  179. /package/dist/css/{55-library-editor-94a8c4e7fa.chunk.css → 57-library-editor-94a8c4e7fa.chunk.css} +0 -0
  180. /package/dist/css/{56-library-editor-61808b02a0.chunk.css → 58-library-editor-61808b02a0.chunk.css} +0 -0
  181. /package/dist/css/{57-library-editor-c49b3847df.chunk.css → 59-library-editor-c49b3847df.chunk.css} +0 -0
  182. /package/dist/css/{58-library-editor-8f5e04b64a.chunk.css → 60-library-editor-8f5e04b64a.chunk.css} +0 -0
  183. /package/dist/css/{59-library-editor-b64f6f3e74.chunk.css → 61-library-editor-b64f6f3e74.chunk.css} +0 -0
  184. /package/dist/css/{61-library-editor-7f123672b2.chunk.css → 63-library-editor-7f123672b2.chunk.css} +0 -0
  185. /package/dist/css/{62-library-editor-61e4c24a7b.chunk.css → 64-library-editor-61e4c24a7b.chunk.css} +0 -0
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1057:function(t,n,e){"use strict";e.d(n,"a",(function(){return g}));var r=e(2),o=e(36),i=e(3);function a(t){return(a="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})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function u(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return s(this,e)}}function s(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(s,t);var n,e,o,a=u(s);function s(t){var n;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),(n=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,n}return n=s,(e=[{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"</p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&l(n.prototype,e),o&&l(n,o),s}(o.a)},1094:function(t,n,e){"use strict";e(309);var r=e(2),o=e(36),i=e(3);function a(t){return(a="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})(t)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function u(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return s(this,e)}}function s(t,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",g=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(s,t);var n,e,o,a=u(s);function s(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,i.a.getPhrase(p,"title"))}return n=s,(e=[{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&l(n.prototype,e),o&&l(n,o),s}(o.a);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})(t)}function h(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function d(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=v(t);if(n){var o=v(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return b(this,e)}}function b(t,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(l,t);var n,e,o,a=d(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return n=l,(e=[{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&h(n.prototype,e),o&&h(n,o),l}(o.a);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})(t)}function S(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,n){return(k=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function P(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=R(t);if(n){var o=R(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)}}function _(t,n){return!n||"object"!==w(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&k(t,n)}(l,t);var n,e,o,a=P(l);function l(){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return n=l,(e=[{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&S(n.prototype,e),o&&S(n,o),l}(o.a);e(1057);e.d(n,"a",(function(){return g})),e.d(n,"c",(function(){return O})),e.d(n,"b",(function(){return E})),e.d(n,"a",(function(){return g}))},1365:function(t,n,e){t.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},1366:function(t,n,e){var r=e(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,r,o){t.propertyIsEnumerable;var i,a=null!=n?n:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lambda;return'<div class="m-4">\r\n <h4>'+c((e.lang||n&&n.lang||l).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.subtitle:i,n))+' text-center">'+c((e.lang||n&&n.lang||l).call(a,"question",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.image:i,n))+' w-50 d-block p-2">\r\n\r\n <p class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.options:i,n))+' mt-3">'+c((e.lang||n&&n.lang||l).call(a,"options",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:o}))+' <span class="badge '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBadge:i,n))+' ml-2">'+c((e.lang||n&&n.lang||l).call(a,"recommended",{name:"lang",hash:{},data:o}))+'</span></label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionHeader:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.optionText:i,n))+'">'+c((e.lang||n&&n.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:o}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(e.lang||n&&n.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=n?n.options:n)?i.supportUrl:i,className:"info-link"},data:o}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+c((e.lang||n&&n.lang||l).call(a,"waiting",{name:"lang",hash:{},data:o}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.migrationBanner:i,n))+" p-3 text-white "+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoMessage:i,n))+'">\r\n '+c((e.lang||n&&n.lang||l).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</div>"},useData:!0})},1450:function(t,n,e){"use strict";e.r(n),e.d(n,"StartView",(function(){return C}));var r=e(6),o=e(3),i=e(2),a=e(5),l=e(30),c=e(308),u=e(306),s=e(144),f=e(303),p=e(264),g=e(200),y=e(0),h=e(13),m=e(53),d=e(91),b=e(1094),v=e(1057),O=e(1365),w=e.n(O),S=e(1366),k=e.n(S);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})(t)}function _(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function R(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,n){return(E=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function M(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=j(t);if(n){var o=j(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return x(this,e)}}function x(t,n){return!n||"object"!==P(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&E(t,n)}(P,t);var n,e,O,S=M(P);function P(){return _(this,P),S.apply(this,arguments)}return n=P,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(y.g.MigrationVideo,this),this.selectedVideoService=a.a.getInstance(y.x.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(y.e.MIGRATION,"".concat(y.f.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(w.a.migrationContainer," text-center bg-white ").concat(w.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return k.a}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:f.f,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"initViewModel",value:function(){this.viewModel=l.a.get("".concat(this.name,":viewmodel"),{option:m.c.Smart},{ctor:d.e})}},{key:"viewOptions",value:function(){var t,n;return{styles:w.a,supportUrl:c.a.getArticle(null===(t=this.config)||void 0===t?void 0:t.get("supportSiteUrl"),u.a.MigrationOptions,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode"))}}},{key:"onClickContinue",value:function(){switch(this.listenTo(y.e.MIGRATION,"".concat(y.f.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),r.Radio.channel(this.channelName).trigger(p.b.ShowSpinner),+this.viewModel.get("option")){case m.c.Smart:this.startSmartMigrationPaginated();break;case m.c.Full:this.startFullMigration();break;case m.c.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(m.c.Scratch,(function(){t.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){i.a.AppLinkHelper.trigger({application:y.b.LIBRARY_EDITOR,action:y.a.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(m.c.Full,(function(){t.migrationVideoDataService.finaliseAllVideos((function(n){t.migrationVideoDataService.getCustomerMetadata((function(t){t.set("finalisationTask",n.toJSON()),i.a.AppLinkHelper.trigger({application:y.b.MIGRATION_WIZARD,action:y.a.MigrationWizard.PROGRESS,args:[n.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var t=this,n=window.setTimeout((function(){var n=t.getUI("waitingMessage");n&&n.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(n){var e="<strong>".concat(o.a.getPhrase(t.lang,"progress",{count:n}),"</strong>");t.getUI("smartCount").html(e)}),(function(e){window.clearTimeout(n),t.selectedVideoService.addSmartSelectedVideos(e),i.a.AppLinkHelper.trigger({application:y.b.MIGRATION_WIZARD,action:y.a.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){i.a.ErrorHelper.throw(new v.a(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){i.a.ErrorHelper.throw(new b.b)}},{key:"requiredResources",get:function(){return{config:g.b.config,currentUser:s.b.currentUser}}},{key:"renderSaveButton",value:function(){var t=new p.a({saveEvent:"continue",channelName:this.channelName,buttonText:o.a.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:h.s.Medium,type:h.t.Light,extraClasses:"mx-auto"}});this.showChildView("save",t)}},{key:"onRender",value:function(){this.renderSaveButton()}}])&&R(n.prototype,e),O&&R(n,O),P}(i.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[47],{1030:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(264);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})(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 c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&c(e,t)}(s,e);var t,n,r,i=l(s);function s(){return a(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),s}(r.a.Model)},1182:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(3),i=n(53);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}var u="migrationWizard.utils",c={getReportOptions:function(){var e;return a(e={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:o.a.getPhrase(u,"migratedOption")}),a(e,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:o.a.getPhrase(u,"remainingOption")}),a(e,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:o.a.getPhrase(u,"erroredOption")}),a(e,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:o.a.getPhrase(u,"linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return r.each(r.keys(t),(function(o){r.contains(e,t[o].type)&&(n[o]=t[o])})),n},filterSelectedOptions:function(e){return r.filter(r.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return r.filter(r.keys(t),(function(n){return r.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}}},1407:function(e,t,n){e.exports={image:"_2A7jn"}},1408:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return" <li>"+e.escapeExpression(e.lambda(t,t))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+u(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n</div>\r\n<p class="m-0">'+u((n.lang||t&&t.lang||l).call(c,"reportInfo1",{name:"lang",hash:{},data:o}))+"</p>\r\n<ul>\r\n"+(null!=(i=n.each.call(c,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</ul>\r\n<p class="mt-2">'+(null!=(i=(n.lang||t&&t.lang||l).call(c,"reportInfo2",{name:"lang",hash:{email:null!=(i=null!=t?t.options:t)?i.email:i},data:o}))?i:"")+"</p>\r\n"},useData:!0})},1456:function(e,t,n){"use strict";n.r(t),n.d(t,"GenerateCsvReportView",(function(){return _}));var r=n(6),o=n(2),i=n(5),a=n(3),u=n(303),c=n(13),l=n(0),s=n(144),f=n(1030),p=n(264),y=n(1182),h=n(1407),g=n.n(h),m=n(1408),b=n.n(m);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(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=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(m,e);var t,n,o,h=w(m);function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.call(this,e)}return t=m,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(l.g.MigrationVideo,this),this.bindListeners()}},{key:"name",get:function(){return"GenerateCsvReportView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.generateCsvReport"}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return b.a}},{key:"behaviors",get:function(){return[{behaviorClass:u.e,title:a.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,saveEvent:"generate:csv",channelName:this.channelName,buttonText:a.a.getPhrase(this.lang,"generateReport"),extraButtonClass:"btn-primary",spinnerOptions:{size:c.s.Small,type:c.t.Light,extraClasses:"mx-auto"}}}]}},{key:"requiredResources",get:function(){return{currentUser:s.b.currentUser}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"generate:csv",this.onClickGenerateCsv)}},{key:"onClickGenerateCsv",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(p.b.ShowSpinner),this.migrationVideoDataService.generateMigrationReportCsv(this.options.options,(function(){return e.triggerMethod("hide")}))}},{key:"viewOptions",value:function(){return{styles:g.a,reportOptions:y.a.getSelectedOptionsText(this.options.options),imageUrl:l.l.Shared.GenerateCsv,email:this.currentUser.get("email")}}},{key:"onBeforeRender",value:function(){this.spinnerModel.set(p.c.Disabled,!1)}}])&&v(t.prototype,n),o&&v(t,o),m}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[48],{1030:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(264);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})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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||function(e,t){return e.__proto__=t,e})(e,t)}function s(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=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&l(e,t)}(u,e);var t,n,r,o=s(u);function u(){return a(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&c(t.prototype,n),r&&c(t,r),u}(r.a.Model)},1294:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(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,c=e.escapeExpression;return'<div class="pb-3 text-center">\r\n <img src="'+c(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+c(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">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"info",{name:"lang",hash:{email:null!=(o=null!=t?t.options:t)?o.email:o,name:null!=t?t.name:t},data:i}))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return 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})},1295:function(e,t,n){e.exports={image:"J9jn_"}},1428:function(e,t,n){"use strict";n.r(t),n.d(t,"GeneratePdfView",(function(){return D}));var r=n(6),i=n(2),o=n(5),a=n(3),c=n(4),l=n(42),s=n(35),u=n(303),f=n(264),h=n(1030),p=n(144),y=n(0),d=n(13),b=n(205),g=n(1294),v=n.n(g),m=n(1295),w=n.n(m);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})(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 k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(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=S(e);if(t){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&k(e,t)}(O,e);var t,n,g,m=_(O);function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.collectionIdentifier=this.options.collectionIdentifier,this.libraryDataService=o.a.getInstance(y.g.Library,this),this.videoDataService=o.a.getInstance(y.g.Video,this),this.exportDataService=o.a.getInstance(y.g.Export,this),this.bindListeners()}},{key:"name",get:function(){return"GeneratePdfView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.generatePdf"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:u.e,title:a.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.a,saveEvent:"generate:pdf",channelName:this.channelName,buttonText:a.a.getPhrase(this.lang,"generate"),extraButtonClass:"btn-primary",spinnerOptions:{size:d.s.Small,type:d.t.Light,extraClasses:"mx-auto"}}}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(y.e.LIBRARY,"".concat(y.f.FOLDER,":").concat(this.collectionIdentifier.id,":sync"),this.render),this.listenTo(y.e.VIDEO,"".concat(this.collectionIdentifier.toString(),":sync"),this.render),this.listenTo(y.e.EXPORT,"".concat(y.f.GENERATE_COLLECTION_PDF,":").concat(this.collectionIdentifier.id,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"onClickGeneratePdf",value:function(){this.hasDataFetched()&&(r.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.exportDataService.generateCollectionPdf(this.library.id,this.collectionIdentifier.id,this.currentUser,this.collectionIdentifier.sort),this.logAction(this.collectionIdentifier.id,this.collectionIdentifier.sort))}},{key:"fetchData",value:function(){var e=this;this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id),this.library||this.libraryDataService.getLibraries((function(t){e.library=d.f.getLibrary(e.collectionIdentifier.id,t),e.render()}))}},{key:"logAction",value:function(e,t){var n={location:c.LocationContext.Popup,actionType:c.UserAction.Create,entity:c.EntityType.PDF,workflowPhase:c.WorkflowPhase.Complete},r={id:e,sort:s.a[t]};l.a.logUserAction(r,n)}},{key:"hasDataFetched",value:function(){return!!this.model&&!!this.videos&&!!this.library}},{key:"requiredResources",get:function(){return{currentUser:p.b.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;return this.fetchData(),!!this.hasDataFetched()&&(this.videos&&!this.videos.length?(window.setTimeout((function(){e.triggerMethod("hide"),i.a.ErrorHelper.throw(new b.a(a.a.getPhrase(e.lang,"errorHeading")))}),y.s.POPUP_FADE_TIMEOUT),!1):(this.hasDataFetched()&&this.spinnerModel.set(f.c.Disabled,!1),!0))}},{key:"viewOptions",value:function(){return{dataFetched:this.hasDataFetched(),spinnerEl:d.r.getSpinner({size:d.s.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:y.l.Shared.GeneratePdf,styles:w.a}}}])&&P(t.prototype,n),g&&P(t,g),O}(i.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[49],{1063:function(t,n,e){"use strict";e.d(n,"a",(function(){return v}));var o=e(1),i=e(2),r=e(4),a=e(42),s=e(1064),c=e.n(s);function l(t){return(l="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})(t)}function u(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,n){return(p=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function f(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=y(t);if(n){var i=y(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return h(this,e)}}function h(t,n){return!n||"object"!==l(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&p(t,n)}(l,t);var n,e,i,s=f(l);function l(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,t)}return n=l,(e=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},e=this.options.cursorParamName,i=t,e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n))};var n,e,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=a.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),e={id:this.options.collectionId,page:t};a.a.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(n.prototype,e),i&&u(n,i),l}(i.a.Component)},1064:function(t,n,e){var o=e(10);t.exports=(o.default||o).template({1:function(t,n,e,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1341:function(t,n,e){var o=e(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:i}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},1443:function(t,n,e){"use strict";e.r(n),e.d(n,"NotificationsView",(function(){return x}));var o=e(2),i=e(3),r=e(5),a=e(25),s=e(52),c=e(22),l=e(43),u=e(201),p=e(1063),f=e(239),h=e(1341),y=e.n(h),v=e(490),g=e.n(v),b=e(491),d=e.n(b);function m(t){return(m="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})(t)}function k(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,n){return(w=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function O(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=P(t);if(n){var i=P(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return C(this,e)}}function C(t,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&w(t,n)}(v,t);var n,e,o,h=O(v);function v(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,v),h.call(this,t)}return n=v,(e=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return y.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:g.a,className:"px-1 py-2",viewOptions:{styles:d.a}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.a.getInstance(c.b.Notification,this),this.appVariables=r.a.getInstance(l.a.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.a(Object.assign({collectionPrefix:s.a.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new f.b({collection:this.collection,childType:f.a.Default});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new p.a({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&k(n.prototype,e),o&&k(n,o),v}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[5],{1046:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(2),i=n(0),r=n(13),a=n(1208),l=n.n(a),s=n(1209),c=n.n(s);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})(t)}function p(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 f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=y(t);if(e){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=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}}),e&&f(t,e)}(s,t);var e,n,o,a=h(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return l.a}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.model.get("categories"))||void 0===t?void 0:t.length)?this.model.get("categories").reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},e="click .".concat(c.a.sourceLabel),n="onClick",e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t=this,e=this.model.get("categories");if(null==e?void 0:e.length){var n={};return e.forEach((function(e){var o=t.options.highlight?r.w.wordsHighlighter(r.w.escapeExpression(e.get("name")),t.model.get("_matchedWords")):r.w.escapeExpression(e.get("name"));n[e.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"onBeforeRender",value:function(){var t;return this.options.showFolder&&(null===(t=this.model.get("categories"))||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:c.a,folderCount:this.model.get("categories").length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&p(e.prototype,n),o&&p(e,o),s}(o.a.Component)},1062:function(t,e,n){"use strict";var o=n(2),i=n(19),r=n(6),a=n(0),l=n(304),s=n(1131),c=n.n(s),u=n(1132),p=n.n(u);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(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 d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=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}}),e&&d(t,e)}(s,t);var e,n,o,i=y(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===l.b.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.c.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===l.b.Disabled?" ".concat(p.a.disabled):""),o="".concat(this.options.behavior===l.b.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==l.b.Link?{}:{"[this]":{application:a.b.SEARCH,action:a.a.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:l.b.Link,orientation:l.c.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===l.b.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==l.b.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==l.b.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&h(e.prototype,n),o&&h(e,o),s}(o.a.Component);function v(t){return(v="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})(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 O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=E(t);if(e){var i=E(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=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}}),e&&O(t,e)}(s,t);var e,n,r,a=w(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.options.behavior!==l.b.Edit||this.options.removeEvent||o.a.ErrorHelper.throw(new i.a("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:l.c.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.c.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&k(e.prototype,n),r&&k(e,r),s}(o.a.ComponentCollection)},1100:function(t,e,n){"use strict";var o=n(2),i=n(59),r=n(4),a=n(42),l=n(16),s=n(1),c=n(143),u=n(1212),p=n.n(u),f=n(1189),h=n.n(f);function d(t){return(d="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],o=!0,i=!1,r=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(t){i=!0,r=t}finally{try{o||null==l.return||l.return()}finally{if(i)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(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 v(t,e,n){return e&&b(t.prototype,e),n&&b(t,n),t}function k(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}}),e&&O(t,e)}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=E(t);if(e){var i=E(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){k(n,t);var e=w(n);function n(t){return m(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return p.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){if(!this.model.get("href"))return{}}},{key:"className",get:function(){var t="d-inline-block px-1 no-decoration";return this.model.get("isDisabled")&&(t+=" ".concat(h.a.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:c.a,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t=this.model.get("appLink");if(s.isObject(t)){var e=y(t.args,1)[0];a.a.logUserAction({id:e},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:h.a,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}]),n}(o.a.Component),_=function(t){k(n,t);var e=w(n);function n(t){return m(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}]),n}(o.a.ComponentCollection),A=n(1039),P=n(0),T=n(13),j=n(3),L=n(304),R=n(1213),x=n.n(R);function D(t){return(D="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})(t)}function I(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 V(t,e){return(V=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return M(this,n)}}function M(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return F}));var F=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}}),e&&V(t,e)}(u,t);var e,n,s,c=N(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return x.a}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return h.a.actions}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick","click @ui.dropdownToggle":"onClickMore","click @ui.moreActions":"onClickMore"}}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"getActions",value:function(){return new o.a.Collection([{title:j.a.getPhrase(this.lang,"share"),svg:l.a.getSvg(l.b.Share),isDisabled:!T.j.canShareVideo(this.model,this.options.application),tooltipText:T.j.canShareVideo(this.model,this.options.application)?j.a.getPhrase(this.lang,"share"):T.j.getSharePermissionsMessage(this.model,this.options.application),appLink:{application:this.options.application,action:P.a.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Share,eventVersion:r.EventVersion.V2})},{title:j.a.getPhrase(this.lang,"edit"),svg:T.j.canEditVideo(this.model)?l.a.getSvg(l.b.Edit):l.a.getSvg(l.b.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:P.b.LIBRARY_EDITOR,action:P.a.LibraryEditor.EDIT_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Edit,workflowPhase:r.WorkflowPhase.Start})}])}},{key:"getEditTooltip",value:function(){return T.j.canEditVideo(this.model)?j.a.getPhrase(this.lang,"edit"):T.y.isExchangeVideo(this.model)?j.a.getPhrase(this.lang,"linkedToExchange"):j.a.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===L.d.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];this.options.collectionIdentifier&&t.push({title:j.a.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:P.a.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Move,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),t.push({title:j.a.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:P.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.SetAccess,workflowPhase:r.WorkflowPhase.Start})}),this.options.application===P.b.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:j.a.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:P.a.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}});var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));if(t.push({title:j.a.getPhrase(this.lang,"openInStaffView"),href:i.a.urlBuilder(e,{loginPrompt:!1}),external:!0,icon:l.a.getSvg(l.b.NewWindow),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.OpenInStaffView})}),this.options.application!==P.b.CONTENT_UPDATES){var n=T.j.canDownloadVideo(this.model);t.push({title:j.a.getPhrase(this.lang,"download"),disabled:!n,classes:n?"":"".concat(h.a.disabled),tooltip:n?null:{title:j.a.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Download}),appLink:n?{application:this.options.application,action:P.a.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&T.j.canAddToExchange(this.model)&&t.push({title:j.a.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:P.a.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&t.push({title:j.a.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:P.a.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:j.a.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:P.a.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Delete,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),new o.a.Collection(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new _({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new A.a({displayOptions:{alignment:"right"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.a})))}},{key:"viewOptions",value:function(){return{styles:h.a,moreSvg:l.a.getSvg(l.b.More)}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions()}}])&&I(e.prototype,n),s&&I(e,s),u}(o.a.Component)},1131:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="close cursor-pointer" aria-hidden="true">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<span class="clamp-1" title="'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)?a.call(l,{name:"name",hash:{},data:i}):a)+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)?a.call(l,{name:"name",hash:{},data:i}):a)+"</span>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},1132:function(t,e,n){t.exports={disabled:"_3Vziu"}},1189:function(t,e,n){t.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},1208:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;t.propertyIsEnumerable;return(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},1209:function(t,e,n){t.exports={sourceLabel:"_2HK7r"}},1212:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression;return' <span class="align-middle mr-2 '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.actionName:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):a)+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\r\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},1213:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda;return'<div class="actions-region d-inline-block"></div>\r\n<span class="d-inline-block">\r\n <span data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="ui-more d-inline-block ui-dropdown-toggle align-middle '+t.escapeExpression(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+' cursor-pointer d-inline-block">'+(null!=(r=a(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\r\n <div class="more-actions-region"></div>\r\n</span>\r\n'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[50],{1200:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return'\r\n<img src="/images/errors/Oops'+c(u(null!=(i=null!=e?e.options:e)?i.imageNumber:i,e))+'@2x.png" class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'" />\r\n<h4 class="mt-3 text-muted">'+c(u(null!=(i=null!=e?e.options:e)?i.heading:i,e))+"</h4>\r\n<p>"+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>"},useData:!0})},1201:function(t,e,n){t.exports={image:"_1wvl8"}},1414:function(t,e,n){"use strict";n.r(e),n.d(e,"ErrorView",(function(){return h}));var r=n(6),o=n(2),i=n(1200),u=n.n(i),c=n(1201),l=n.n(c);function a(t){return(a="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})(t)}function f(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 r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(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}}),e&&p(t,e)}(c,t);var e,n,o,i=y(c);function c(){return f(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){var t=r.Radio.channel("error:view");this.error=t.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"}},{key:"template",get:function(){return u.a}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageNumber:Math.round(5*Math.random()+1),styles:l.a}}}])&&s(e.prototype,n),o&&s(e,o),c}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[51],{1198:function(n,t,e){var o=e(10);n.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(n,t,e,o,r){n.propertyIsEnumerable;var i,l=n.lambda,a=n.escapeExpression,u=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.illoContainer:i,t))+'">\r\n <div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lunaHead:i,t))+'"><img width="86px" height="110px" src="/images/errors/not-found/luna-head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.head:i,t))+'"><img width="134px" height="138px" src="/images/errors/not-found/head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.body:i,t))+'"><img width="241px" height="229px" src="/images/errors/not-found/back@2x.png"></div>\r\n</div>\r\n<h4 class="mt-3 text-muted">'+a((e.lang||t&&t.lang||c).call(u,"pageNotFound",{name:"lang",hash:{},data:r}))+"</h4>\r\n<p>"+(null!=(i=(e.lang||t&&t.lang||c).call(u,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.linkClasses:i},data:r}))?i:"")+"</p>"},useData:!0})},1199:function(n,t,e){n.exports={illoContainer:"_3Eqbe",body:"_39GQb",head:"PVOtq",lunaHead:"_3z13a",animate:"_2FR1z","luna-animate":"_12szO",lunaTail:"_1memV",tintinTail:"_2V4lb","wag-tail-small":"_2atTc","wag-tail":"_13j3E"}},1413:function(n,t,e){"use strict";e.r(t),e.d(t,"NotFoundView",(function(){return b}));var o=e(2),r=e(0),i=e(1198),l=e.n(i),a=e(1199),u=e.n(a);function c(n){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function f(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}function p(n,t){return(p=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function y(n){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(n){return!1}}();return function(){var e,o=h(n);if(t){var r=h(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return d(this,e)}}function d(n,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function h(n){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var b=function(n){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&p(n,t)}(a,n);var t,e,o,i=y(a);function a(){return s(this,a),i.apply(this,arguments)}return t=a,(e=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){return{".applink-home":{application:r.b.DEFAULT,action:r.a.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center"}},{key:"viewOptions",value:function(){return{styles:u.a,linkClasses:"applink-home info-link"}}}])&&f(t.prototype,e),o&&f(t,o),a}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[52],{1112:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return m}));var r,o=n(6),i=n(2),a=n(1153),u=n.n(a),c=n(1113),l=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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||function(e,t){return e.__proto__=t,e})(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=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));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}}),t&&f(e,t)}(c,e);var t,n,i,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new u.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),i&&p(t,i),c}(i.a.Component)},1113:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})},1297:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(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){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return 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})},1430:function(e,t,n){"use strict";n.r(t),n.d(t,"BannerUploadView",(function(){return R}));var r=n(1),o=n(6),i=n(5),a=n(2),u=n(30),c=n(19),l=n(317),s=n(0),p=n(9),f=n(303),h=n(13),d=n(1112),g=n(264),m=n(3),y=n(1297),v=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})(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 k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(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=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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}}),t&&k(e,t)}(I,e);var t,n,y,b=C(I);function I(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,I),b.call(this,e)}return t=I,(n=[{key:"initialize",value:function(){this.libraryDataService=i.a.getInstance(s.g.Library,this),this.imageUploadDataService=i.a.getInstance(s.g.ImageUpload,this),this.viewModel=u.a.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return m.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:f.e,title:m.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:m.a.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,d.a.ImageCropped,this.onImageCropped),this.listenTo(s.e.VIDEO,"".concat(s.f.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(s.e.VIDEO,"".concat(s.f.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||a.a.ErrorHelper.throw(new c.a("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(d.a.CropImage),o.Radio.channel(this.channelName).trigger(g.b.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,p.f.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new l.a({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new d.b({model:e,channelName:this.channelName,imageType:p.f.Banners,minWidth:s.k[p.f.Banners].width,minHeight:s.k[p.f.Banners].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:h.r.getSpinner({size:h.s.Large,extraClasses:"mx-auto"})}}}])&&w(t.prototype,n),y&&w(t,y),I}(a.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[53],{1112:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return m}));var o,i=n(6),r=n(2),a=n(1153),u=n.n(a),c=n(1113),l=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(o||(o={}));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}}),t&&f(e,t)}(c,e);var t,n,r,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,o.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());i.Radio.channel(this.options.channelName).trigger(o.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new u.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),r&&p(t,r),c}(r.a.Component)},1113:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(r=null!=(r=n.dataUrl||(null!=t?t.dataUrl:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:i}):r)+'" class="img img-fluid" />'},useData:!0})},1296:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},3:function(e,t,n,o,i){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.unless.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},1429:function(e,t,n){"use strict";n.r(t),n.d(t,"ThumbnailUploadView",(function(){return E}));var o=n(1),i=n(6),r=n(2),a=n(30),u=n(19),c=n(5),l=n(3),s=n(303),p=n(0),f=n(264),h=n(317),d=n(9),g=n(13),m=n(1112),y=n(1296),v=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})(e)}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(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,o=O(e);if(t){var i=O(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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}}),t&&w(e,t)}(I,e);var t,n,y,b=C(I);function I(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,I),b.call(this,e)}return t=I,(n=[{key:"initialize",value:function(){this.videoDataService=c.a.getInstance(p.g.Video,this),this.imageUploadDataService=c.a.getInstance(p.g.ImageUpload,this),this.navLockService=c.a.getInstance(p.x.NavLock,this),this.viewModel=a.a.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return l.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:l.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:l.a.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,m.a.ImageCropped,this.onImageCropped),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.VIDEO,"".concat(p.f.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||r.a.ErrorHelper.throw(new u.a("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){i.Radio.channel(this.channelName).trigger(m.a.CropImage),i.Radio.channel(this.channelName).trigger(f.b.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.f.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new h.a({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new m.b({model:e,channelName:this.channelName,imageType:d.f.Thumbnails,minWidth:p.k[d.f.Thumbnails].width,minHeight:p.k[d.f.Thumbnails].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:g.r.getSpinner({size:g.s.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){a.a.get("upload:thumbnail:options").get("lockNav")&&this.navLockService.lock()}}])&&k(t.prototype,n),y&&k(t,y),I}(r.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[54],{1393:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(n,e,t,r,o){n.propertyIsEnumerable;var i,l=n.lambda,a=n.escapeExpression,c=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.middle:i,e))+'">\r\n <img src="/images/checked.png" class="p-3 '+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.checkedImage:i,e))+'">\r\n <h4>'+a((t.lang||e&&e.lang||u).call(c,"complete",{name:"lang",hash:{},data:o}))+"</h4>\r\n <p>\r\n "+a((t.lang||e&&e.lang||u).call(c,"newLibraryNote",{name:"lang",hash:{},data:o}))+'\r\n </p>\r\n <a class="btn btn-primary link-to-online" href="'+a(l(null!=(i=null!=e?e.options:e)?i.onlineUrl:i,e))+'" target="_blank">'+a((t.lang||e&&e.lang||u).call(c,"checkItOut",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},1394:function(n,e,t){n.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},1455:function(n,e,t){"use strict";t.r(e),t.d(e,"PublishLibraryCompleteView",(function(){return d}));var r=t(2),o=t(3),i=t(59),l=t(200),a=t(0),c=t(1393),u=t.n(c),f=t(1394),s=t.n(f);function p(n){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function b(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function g(n,e){return(g=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function m(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=k(n);if(e){var o=k(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return h(this,t)}}function h(n,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):e}function k(n){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var d=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&g(n,e)}(p,n);var e,t,c,f=m(p);function p(){return y(this,p),f.apply(this,arguments)}return e=p,(t=[{key:"name",get:function(){return"PublishLibraryCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryComplete"}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(s.a.migrationBackupContainer," ").concat(s.a.complete)}},{key:"events",value:function(){return{"click .link-to-online":"onClickLinkToOnline"}}},{key:"onClickLinkToOnline",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME})}},{key:"requiredResources",get:function(){return{config:l.b.config}}},{key:"viewOptions",value:function(){return{styles:s.a,onlineUrl:i.a.urlBuilder(i.a.safeUrlConcat(this.config.get("onlineUrl"),"libraries"),{loginPrompt:!1})}}}])&&b(e.prototype,t),c&&b(e,c),p}(r.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[55],{1391:function(e,t,r){e.exports={backupProgress:"sg8Kg",info:"_2HxTI",progress:"hbLuA",migrationBackupContainer:"_2lpDI"}},1392:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<h4 class="pb-4">'+c((r.lang||t&&t.lang||s).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+c((r.lang||t&&t.lang||s).call(a,"body",{name:"lang",hash:{},data:o}))+"\r\n <br>\r\n "+c((r.lang||t&&t.lang||s).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</p>"},useData:!0})},1474:function(e,t,r){"use strict";r.r(t);var n,o=r(6),i=r(2),a=r(5),s=r(30),c=r(3),l=r(0),u=r(1114),p=r(486);!function(e){e[e.Processing=1]="Processing",e[e.Completed=2]="Completed",e[e.Queued=3]="Queued"}(n||(n={}));var f=r(322),g=r(1391),h=r(1392);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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 r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"PublishLibraryProgressView",(function(){return k}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(w,e);var t,r,y,P=v(w);function w(){return d(this,w),P.apply(this,arguments)}return t=w,(r=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(l.g.MigrationVideo,this),this.viewModel=s.a.get("publish:library:progress",{percentage:0})}},{key:"name",get:function(){return"PublishLibraryProgressView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat(g.migrationBackupContainer," ").concat(g.backupProgress)}},{key:"template",get:function(){return h}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getPublishLibrariesProgress(p.a.Phase2,(function(t){if(!e.isDestroyed()){if(t.get("type")!==p.a.Phase2)return e.progress=0,void setTimeout((function(){return e.poll()}),3e3);e.progress=100*t.get("progressPercentage"),e.setPercentage(),t.get("status")!==n.Completed?setTimeout((function(){return e.poll()}),3e3):e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){o.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"),i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE})}))}}))}},{key:"setPercentage",value:function(){this.progress&&this.viewModel.set({percentage:Math.round(this.progress)})}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new u.g({model:this.viewModel,text:c.a.getPhrase(this.lang,"hasBeenPublished"),class:g.progress}))}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}}])&&b(t.prototype,r),y&&b(t,y),w}(i.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[56],{1363:function(n,t,e){n.exports={complete:"_2YgCz",middle:"_2QcuL",checkedImage:"_30_1Z",warningImage:"_2gF7F"}},1364:function(n,t,e){var r=e(10);n.exports=(r.default||r).template({1:function(n,t,e,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/warning.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.warningImage:i,t))+'">\r\n <h4>'+o((e.lang||t&&t.lang||c).call(l,"errorHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(e.lang||t&&t.lang||c).call(l,"errorDescription",{name:"lang",hash:{},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((e.lang||t&&t.lang||c).call(l,"continueAnyway",{name:"lang",hash:{},data:a}))+'</a>\r\n <p class="mt-3">'+(null!=(i=(e.lang||t&&t.lang||c).call(l,"bookAnAppointment",{name:"lang",hash:{url:null!=(i=null!=t?t.options:t)?i.appointmentUrl:i,linkClasses:"info-link"},data:a}))?i:"")+"</p>\r\n"},3:function(n,t,e,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/checked.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.checkedImage:i,t))+'">\r\n <h4>'+o((e.lang||t&&t.lang||c).call(l,"completeHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(e.lang||t&&t.lang||c).call(l,"completeBody",{name:"lang",hash:{archiveSvg:null!=(i=null!=t?t.options:t)?i.archiveSvg:i},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((e.lang||t&&t.lang||c).call(l,"getStarted",{name:"lang",hash:{},data:a}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(n,t,e,r,a){var i;n.propertyIsEnumerable;return'<div class="'+n.escapeExpression(n.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.middle:i,t))+'">\r\n'+(null!=(i=e.if.call(null!=t?t:n.nullContext||{},null!=(i=null!=t?t.options:t)?i.error:i,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.program(3,a,0),data:a}))?i:"")+"</div>"},useData:!0})},1449:function(n,t,e){"use strict";e.r(t),e.d(t,"PublisherBackupCompleteView",(function(){return _}));var r=e(59),a=e(2),i=e(5),o=e(3),l=e(16),c=e(200),u=e(0),s=e(57),p=e(1363),f=e.n(p),g=e(1364),h=e.n(g);function m(n){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function d(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function y(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function b(n,t){return(b=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function k(n){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(n){return!1}}();return function(){var e,r=S(n);if(t){var a=S(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return v(this,e)}}function v(n,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):t}function S(n){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var _=function(n){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&b(n,t)}(m,n);var t,e,p,g=k(m);function m(){return d(this,m),g.apply(this,arguments)}return t=m,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_METADATA,":sync"),this.render)}},{key:"name",get:function(){return"PublisherBackupCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupComplete"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(f.a.migrationBackupContainer," ").concat(f.a.complete)}},{key:"template",get:function(){return h.a}},{key:"viewOptions",value:function(){return{styles:f.a,error:this.hasErrored(),archiveSvg:'<span class="d-inline-block align-middle svg-container">\n '.concat(l.a.getSvg(l.b.PublisherArchive),"</span>"),appointmentUrl:"\n ".concat(r.a.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment?type=library-editor-publisher-backup-tool"),"\n ")}}},{key:"appLinks",get:function(){return{".applink-start-migration":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.START_MIGRATION}}}},{key:"requiredResources",get:function(){return{config:c.b.config}}},{key:"onBeforeRender",value:function(){var n=this;return this.migrationVideoDataService.getCustomerMetadata((function(t){n.metadata=t})),!!this.metadata}},{key:"onRender",value:function(){!this.pollingStarted&&this.hasErrored()&&(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"hasErrored",value:function(){return s.a.backupCompleteWithError(this.metadata)}},{key:"pollCloudSyncStatus",value:function(){var n=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(t){n.isDestroyed()||(s.a.backupProcessing(t)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_PROGRESS}):s.a.backupCompleteWithoutError(t)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return n.pollCloudSyncStatus()}),3e4))}))}}])&&y(t.prototype,e),p&&y(t,p),m}(a.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[57],{1357:function(t,e,n){t.exports={welcome:"_3MANn",middle:"_2sLB2",image:"_1--7s",text:"ivhYc",migrationBackupContainer:"W7da5"}},1358:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,i){t.propertyIsEnumerable;var o,a=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div>\r\n <img src="/images/wave.png" class="p-3 '+l(a(null!=(o=null!=(o=null!=e?e.options:e)?o.styles:o)?o.image:o,e))+'">\r\n\r\n <h4>'+l((n.lang||e&&e.lang||u).call(c,"welcome",{name:"lang",hash:{},data:i}))+'</h4>\r\n\r\n <p class="w-75 '+l(a(null!=(o=null!=(o=null!=e?e.options:e)?o.styles:o)?o.text:o,e))+' mb-3 mt-3">\r\n '+l((n.lang||e&&e.lang||u).call(c,"welcomeInfo",{name:"lang",hash:{},data:i}))+'\r\n </p>\r\n\r\n <a class="btn btn-primary applink-lets-start">'+l((n.lang||e&&e.lang||u).call(c,"start",{name:"lang",hash:{},data:i}))+'</a>\r\n\r\n <p class="mt-3">\r\n '+(null!=(o=(n.lang||e&&e.lang||u).call(c,"learnMore",{name:"lang",hash:{className:"text-info",migrationUrl:null!=(o=null!=e?e.options:e)?o.migrationUrl:o},data:i}))?o:"")+"\r\n </p>\r\n</div>"},useData:!0})},1446:function(t,e,n){"use strict";n.r(e),n.d(e,"PublisherBackupWelcomeView",(function(){return O}));var r=n(2),i=n(5),o=n(3),a=n(1357),l=n.n(a),c=n(1358),u=n.n(c),s=n(0),p=n(200),f=n(57),g=n(308),y=n(306),m=n(144);function h(t){return(h="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})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var i=_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(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}}),e&&v(t,e)}(h,t);var e,n,a,c=k(h);function h(){return b(this,h),c.apply(this,arguments)}return e=h,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(s.g.MigrationVideo,this)}},{key:"name",get:function(){return"PublisherBackupWelcomeView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupWelcome"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(l.a.migrationBackupContainer," ").concat(l.a.welcome)}},{key:"template",get:function(){return u.a}},{key:"appLinks",get:function(){return{".applink-lets-start":{application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_DOWNLOAD}}}},{key:"pollCloudSyncStatus",value:function(){var t=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(e){f.a.backupProcessing(e)?r.a.AppLinkHelper.trigger({application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_PROGRESS}):f.a.backupComplete(e)?r.a.AppLinkHelper.trigger({application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return t.pollCloudSyncStatus()}),3e4)}))}},{key:"getMigrationUrl",value:function(){var t,e=null===(t=this.config)||void 0===t?void 0:t.get("supportSiteUrl");return g.a.getArticle(e,y.a.PublisherArchive,this.currentUser.get("countryCode"))}},{key:"requiredResources",get:function(){return{config:p.b.config,currentUser:m.b.currentUser}}},{key:"viewOptions",value:function(){return{styles:l.a,migrationUrl:this.getMigrationUrl()}}},{key:"onRender",value:function(){this.pollCloudSyncStatus()}}])&&d(e.prototype,n),a&&d(e,a),h}(r.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[59],{1386:function(n,e,l){n.exports={videosAdded:"_2mvcb",migrationContainer:"_kJhb",info:"wszk6",image:"_1HF1l",publisherLink:"_2SXoK",icon:"_2wZJN"}},1387:function(n,e,l){var t=l(10);n.exports=(t.default||t).template({1:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,s=n.escapeExpression,o=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added.png" class="'+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+s((l.lang||e&&e.lang||u).call(o,"heading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(o,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(2,a,0),inverse:n.program(4,a,0),data:a}))?r:"")+" "+s((l.lang||e&&e.lang||u).call(o,"tip1",{name:"lang",hash:{},data:a}))+'\r\n <span class="'+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.publisherLink:r,e))+'">\r\n <span class="d-inline-block align-middle '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.icon:r,e))+'">'+(null!=(r=i(null!=(r=null!=e?e.options:e)?r.publisherIcon:r,e))?r:"")+"</span>\r\n "+s((l.lang||e&&e.lang||u).call(o,"tip2",{name:"lang",hash:{},data:a}))+'\r\n </span>\r\n </span>\r\n <a class="btn btn-primary m-2 applink-start '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(o,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(6,a,0),inverse:n.program(8,a,0),data:a}))?r:"")+" </a>\r\n"},2:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"firstTime",{name:"lang",hash:{},data:a}))+"\r\n"},4:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"notFirstTime",{name:"lang",hash:{},data:a}))+"\r\n"},6:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"start",{name:"lang",hash:{},data:a}))+"\r\n"},8:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"continue",{name:"lang",hash:{},data:a}))+" \r\n"},10:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,s=n.escapeExpression,o=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added-warning.png" class="'+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+s((l.lang||e&&e.lang||u).call(o,"warningHeading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n '+(null!=(r=(l.lang||e&&e.lang||u).call(o,"issues",{name:"lang",hash:{},data:a}))?r:"")+' \r\n <span class="'+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.publisherLink:r,e))+'">\r\n <span class="d-inline-block align-middle '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.icon:r,e))+'">'+(null!=(r=i(null!=(r=null!=e?e.options:e)?r.publisherIcon:r,e))?r:"")+"</span>\r\n </span>\r\n "+s((l.lang||e&&e.lang||u).call(o,"tip2",{name:"lang",hash:{},data:a}))+"\r\n </span>\r\n"+(null!=(r=l.if.call(o,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(11,a,0),inverse:n.program(13,a,0),data:a}))?r:"")},11:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"startOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",startClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:a}))?r:"")+"\r\n"},13:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"continueOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",continueClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:a}))?r:"")+"\r\n"},15:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,s=n.escapeExpression,o=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added-error.png" class="'+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+s((l.lang||e&&e.lang||u).call(o,"errorsHeading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(o,null!=(r=null!=e?e.options:e)?r.successes:r,{name:"if",hash:{},fn:n.program(16,a,0),inverse:n.noop,data:a}))?r:"")+" "+(null!=(r=(l.lang||e&&e.lang||u).call(o,"reviews",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.warnings:r},data:a}))?r:"")+'\r\n </span>\r\n <button class="btn btn-primary m-2 applink-migration-warnings '+s(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n '+s((l.lang||e&&e.lang||u).call(o,"goToReview",{name:"lang",hash:{},data:a}))+"\r\n </button>\r\n"},16:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"successes",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.successes:r},data:a}))?r:"")+" \r\n"},compiler:[8,">= 4.3.0"],main:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=null!=e?e:n.nullContext||{};return(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showSuccess:r,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a}))?r:"")+(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showWarning:r,{name:"if",hash:{},fn:n.program(10,a,0),inverse:n.noop,data:a}))?r:"")+(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showError:r,{name:"if",hash:{},fn:n.program(15,a,0),inverse:n.noop,data:a}))?r:"")},useData:!0})},1452:function(n,e,l){"use strict";l.r(e),l.d(e,"VideosAddedView",(function(){return b}));var t=l(2),a=l(5),r=l(16),i=l(0),s=l(3),o=l(1386),u=l.n(o),c=l(1387),p=l.n(c);function g(n){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function h(n,e){for(var l=0;l<e.length;l++){var t=e[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function f(n,e){return(f=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function m(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var l,t=y(n);if(e){var a=y(this).constructor;l=Reflect.construct(t,arguments,a)}else l=t.apply(this,arguments);return d(this,l)}}function d(n,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):e}function y(n){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var b=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&f(n,e)}(c,n);var e,l,t,o=m(c);function c(n){return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),o.call(this,n)}return e=c,(l=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(i.g.MigrationVideo,this),this.listenTo(i.e.MIGRATION,"".concat(i.f.FINALISATION,":").concat(this.options.finalisationTaskId,":sync"),this.render)}},{key:"name",get:function(){return"VideosAddedView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.videosAdded"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"".concat(u.a.migrationContainer," text-center p-3 bg-white ").concat(u.a.videosAdded)}},{key:"appLinks",get:function(){return{".applink-start":{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.HOME},".applink-migration-warnings":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}}}},{key:"showError",value:function(){return!this.options.firstTime&&this.model.get("videosWithWarning")}},{key:"showWarning",value:function(){return!(!this.options.firstTime||!this.model.get("videosWithWarning"))}},{key:"showSuccess",value:function(){return!this.model.get("videosWithWarning")}},{key:"viewOptions",value:function(){return{styles:u.a,publisherIcon:r.a.getSvg(r.b.PublisherArchive),firstTime:this.options.firstTime,showSuccess:this.showSuccess(),showWarning:this.showWarning(),showError:this.showError(),successes:this.model.get("successfullyProcessed"),warnings:this.model.get("videosWithWarning")}}},{key:"onBeforeRender",value:function(){var n=this;return!!this.model||(this.migrationVideoDataService.clearCacheAndGetManualReviewVideoCount(),this.migrationVideoDataService.getFinalisationTask(this.options.finalisationTaskId,(function(e){n.model=e,n.render()})),!1)}}])&&h(e.prototype,l),t&&h(e,t),c}(t.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[6],{1045:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'">&nbsp;</label>\r\n</div>'},useData:!0})},1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return g}));var o=n(1),r=n(2),i=n(1045),l=n.n(i),a=n(13);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})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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,o=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="checkbox-all",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}}),t&&f(e,t)}(u,e);var t,n,r,i=p(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",y));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return y}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(y),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&s(t.prototype,n),r&&s(t,r),u}(r.a.Component)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1045),i=n.n(r),l=n(13),a=n(1052);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})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&s(e,t)}(u,e);var t,n,o,r=f(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),r.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(t.prototype,n),o&&c(t,o),u}(o.a.Component)},1114:function(e,t,n){"use strict";var o=n(2),r=n(16),i=n(0),l=n(333),a=n(1369),u=n.n(a);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})(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 f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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}}),t&&p(e,t)}(c,e);var t,n,o,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var e="container";return"publisher-archive"===this.options.selected&&(e+=" ".concat(l.publisherArchive)),"migration-errors"===this.options.selected&&(e+=" ".concat(l.migrationErrors)),"none"===this.options.selected&&(e+=" ".concat(l.none)),e}},{key:"elements",get:function(){return{search:".search"}}},{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"appLinks",get:function(){var e;return s(e={},".".concat(l.reviewErroredAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}),s(e,".".concat(l.publisherArchiveAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.HOME}),e}},{key:"viewOptions",value:function(){return{styles:l,warningSvg:r.a.getSvg(r.b.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new Wt)}}])&&f(t.prototype,n),o&&f(t,o),c}(o.a.Component),b=n(1),m=n(6),v=n(1052),k=n(13),O=n(199),w=n(1121),C=n(53),x=n(334),R=n.n(x),_=n(1370),S=n.n(_);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(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,o=M(e);if(t){var r=M(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(a,e);var t,n,o,l=P(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.CheckboxTypes.MIGRATION_VIDEO_LIST),this.listenTo(this.viewModel,"change:".concat(v.a),this.onCheckboxChange)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return S.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(R.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"viewOptions",value:function(){return{styles:R.a,showCategory:this.options.searchTerm,sortSvg:r.a.getSvg(r.b.UpDown)}}},{key:"elements",get:function(){return{sortOption:".sort"}}},{key:"events",value:function(){return{"click .sort-title":"sortTitle","click .sort-views":"sortViews"}}},{key:"regions",value:function(){return{selectAll:{replaceElement:!0,el:".select-all"}}}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.options.folderChord}},{key:"onRender",value:function(){this.showChildView("selectAll",new v.b({type:O.CheckboxTypes.MIGRATION_VIDEO_LIST,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(R.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(C.e.Title)}},{key:"sortViews",value:function(){this.sort(C.e.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(e){return e.get("migrationStatus")===w.a.HasNotBeenMigrated}))}},{key:"sort",value:function(e){m.Radio.channel(i.e.MIGRATION).trigger(i.i.MigrationWizard.SORT_VIDEOS,e)}},{key:"onCheckboxChange",value:function(){var e=m.Radio.channel(this.options.channelName),t=this.viewModel.get(v.a),n=this.getVideosThatCanBeMigrated();t?e.trigger("add:selected",n,this.options.folderChord):b.isUndefined(t)&&e.trigger("remove:selected",n,this.options.folderChord)}}])&&j(t.prototype,n),o&&j(t,o),a}(o.a.Component),V=n(1371),N=n.n(V),L=n(288);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(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,o=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&W(e,t)}(i,e);var t,n,o,r=z(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"StatusBarComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(L.statusBar)}},{key:"template",get:function(){return N.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var e=this.options,t=e.nextAppLink,n=e.backAppLink,o={".applink-next":t};return n&&(o[".applink-back"]=n),o}},{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||b.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){b.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:L},this.options),{multipleVideosAvailable:1!==this.options.numberAvailable,numberAvailable:this.options.numberAvailable||0,videoCount:this.options.numberSelected||0})}}])&&D(t.prototype,n),o&&D(t,o),i}(o.a.Component),K=n(5),Z=n(335),F=n.n(Z),Y=n(1372),J=n.n(Y),X=n(1059);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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,o=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=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}}),t&&ee(e,t)}(l,e);var t,n,o,r=te(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),O.CheckboxTypes.MIGRATION_VIDEO_LIST),this.selectedVideoService=K.a.getInstance(i.x.SelectedVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:".concat(this.getCheckboxId()),this.onCheckboxChange)}},{key:"template",get:function(){return J.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(F.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}},{key:"regions",value:function(){return{bulkCheckbox:{replaceElement:!0,el:".bulk-checkbox-region"},errorCode:{replaceElement:!0,el:".error-code-region"}}}},{key:"hasBeenMigrated",value:function(){return this.model.get("migrationStatus")!==w.a.HasNotBeenMigrated}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.model.get("categoryChord")}},{key:"getCheckboxId",value:function(){return this.model.get("id")}},{key:"onCheckboxChange",value:function(){if(!this.hasBeenMigrated()){var e=this.viewModel.get("".concat(this.getCheckboxId()));e?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):b.isUndefined(e)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var e=this.hasBeenMigrated(),t=e?" ".concat(F.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||e;this.showChildView("bulkCheckbox",new X.a({checked:n,checkboxClassName:t,disabled:e,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:O.CheckboxTypes.MIGRATION_VIDEO_LIST,className:"".concat(F.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:F.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}}])&&Q(t.prototype,n),o&&Q(t,o),l}(o.a.Component),ie=n(3),le=n(1122),ae=n(1373),ue=n.n(ae);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pe(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,o=de(e);if(t){var r=de(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ye=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}}),t&&fe(e,t)}(l,e);var t,n,o,r=pe(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoListCollection"}},{key:"template",get:function(){return ue.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}},{key:"regions",value:function(){return{videoListSort:{replaceElement:!0,el:".video-sorting-region"},videoList:{el:".video-list-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(e){this.collection&&0!==this.collection.length&&(this.collection=le.a.toggleMigrated(this.collection,e),this.render())}},{key:"sort",value:function(e){0!==this.collection.length&&(this.sortedBy=this.sortedBy===e?void 0:e,this.collection=le.a.sortVideos(this.collection,e,this.sortedBy===e),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new it({text:ie.a.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new B({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new xe({folderChord:this.options.folderChord,collection:this.collection,searchTerm:this.options.searchTerm,supportSiteUrl:this.options.supportSiteUrl}))}},{key:"onRender",value:function(){this.renderSortingRow(),0!==this.collection.where({hidden:!1}).length?this.renderVideoList():this.renderEmptyMessage()}}])&&se(t.prototype,n),o&&se(t,o),l}(o.a.Component),ge=n(1374),be=n.n(ge);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(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,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return we(this,n)}}function we(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=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}}),t&&ke(e,t)}(i,e);var t,n,o,r=Oe(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return be.a.videoList}},{key:"childView",get:function(){return re}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&ve(t.prototype,n),o&&ve(t,o),i}(o.a.ComponentCollection),Re=n(308),_e=n(306),Se=n(1375),Ee=n.n(Se),je=n(1376),Ie=n.n(je);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Me(e,t){return(Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(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,o=Ne(e);if(t){var r=Ne(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ne(e){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=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}}),t&&Me(e,t)}(i,e);var t,n,o,r=Be(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(Ee.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return Ie.a}},{key:"viewOptions",value:function(){return{styles:Ee.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var e,t;return Re.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),_e.a.PublisherArchive,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode"))}}])&&Te(t.prototype,n),o&&Te(t,o),i}(o.a.Component),Ae=n(1377),De=n.n(Ae),We=n(1378),ze=n.n(We);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(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,o=Ye(e);if(t){var r=Ye(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){return!t||"object"!==Ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&Ke(e,t)}(i,e);var t,n,o,r=Ze(i);function i(){return Ue(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return ze.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}},{key:"viewOptions",value:function(){return{styles:De.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}}])&&He(t.prototype,n),o&&He(t,o),i}(o.a.Component),$e=n(1379),Xe=n(1380),qe=n.n(Xe);function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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,o=rt(e);if(t){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=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}}),t&&tt(e,t)}(i,e);var t,n,o,r=nt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"EmptyVideoListComponent"}},{key:"className",get:function(){return"d-flex justify-content-center align-items-center text-muted p-5 ".concat($e.videoList)}},{key:"template",get:function(){return qe.a}},{key:"viewOptions",value:function(){return{text:this.options.text}}}])&&et(t.prototype,n),o&&et(t,o),i}(o.a.Component),lt=n(1381),at=n.n(lt),ut=n(1382),ct=n.n(ut);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ht(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,o=yt(e);if(t){var r=yt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gt=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}}),t&&pt(e,t)}(i,e);var t,n,o,r=ht(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ProgressBarComponent"}},{key:"className",get:function(){return this.options.class||""}},{key:"template",get:function(){return ct.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"viewOptions",value:function(){return{styles:at.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var e=this.getUI("progressBar"),t=this.getUI("progressText");e&&e.get(0)&&$(e.get(0)).css("width","".concat(this.model.get("percentage"),"%")),t&&t.get(0)&&$(t.get(0)).text("".concat(this.model.get("percentage"),"%"))}},{key:"onRender",value:function(){this.update()}}])&&ft(t.prototype,n),o&&ft(t,o),i}(o.a.Component),bt=n(1120),mt=n(1182),vt=n(1383),kt=n.n(vt);function Ot(e){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rt(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,o=St(e);if(t){var r=St(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _t(this,n)}}function _t(e,t){return!t||"object"!==Ot(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Et=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}}),t&&xt(e,t)}(a,e);var t,n,r,l=Rt(a);function a(){var e;return wt(this,a),(e=l.apply(this,arguments)).buttonDisabled=!0,e}return t=a,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=K.a.getInstance(i.g.MigrationVideo,this),this.bindListeners()}},{key:"name",get:function(){return"GenerateReportComponent"}},{key:"template",get:function(){return kt.a}},{key:"className",get:function(){return"dropdown-menu dropdown-menu-right dropdown-arrow"}},{key:"lang",get:function(){return"migrationWizard.generateReport"}},{key:"events",value:function(){return{"click .options":"onClickOptionsContainer","change #migrated-option":"onToggleMigratedOption","change #remaining-option":"onToggleRemainingOption","change #errored-option":"onToggleErroredOption","change #content-matched-option":"onToggleContentMatchedOption","click .generate-report":"onClickSubmit"}}},{key:"elements",get:function(){return{generateReportBtn:".generate-report"}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(e){e.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var e=this.reportOptions[C.d.Migrated];e.selected=!e.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var e=this.reportOptions[C.d.Remaining];e.selected=!e.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var e=this.reportOptions[C.d.Errored];e.selected=!e.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var e=this.reportOptions[C.d.ContentMatched];e.selected=!e.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||o.a.AppLinkHelper.trigger({application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.GENERATE_CSV_REPORT,params:{options:mt.a.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var e=this.getUI("generateReportBtn");mt.a.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,e.removeAttr("disabled")):(this.buttonDisabled=!0,e.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var e=this;this.migrationVideoDataService.getMigrationReportOptions((function(t){e.reportOptions=mt.a.processValidReportOptions(t),e.render()}))}},{key:"viewOptions",value:function(){return{reportOptions:this.reportOptions}}},{key:"onRender",value:function(){this.reportOptions||this.fetchMigrationReportOptions()}}])&&Ct(t.prototype,n),r&&Ct(t,r),a}(o.a.Component),jt=n(1384),It=n.n(jt),Pt=n(1385),Tt=n.n(Pt);function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e,t){return(Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(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,o=Dt(e);if(t){var r=Dt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return At(this,n)}}function At(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=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}}),t&&Nt(e,t)}(i,e);var t,n,o,r=Lt(i);function i(){return Bt(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return It.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:Tt.a}}},{key:"onRender",value:function(){this.showChildView("options",new Et)}}])&&Vt(t.prototype,n),o&&Vt(t,o),i}(o.a.Component);n.d(t,"h",(function(){return g})),n.d(t,"j",(function(){return B})),n.d(t,"k",(function(){return H})),n.d(t,"e",(function(){return re})),n.d(t,"l",(function(){return ye})),n.d(t,"m",(function(){return xe})),n.d(t,"a",(function(){return Le})),n.d(t,"i",(function(){return Je})),n.d(t,"b",(function(){return it})),n.d(t,"f",(function(){return gt})),n.d(t,"g",(function(){return bt.a})),n.d(t,"d",(function(){return Et})),n.d(t,"c",(function(){return Wt}))},1120:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1180),i=n.n(r),l=n(1181),a=n.n(l);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})(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&s(e,t)}(l,e);var t,n,o,r=f(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}},{key:"viewOptions",value:function(){return{styles:i.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var e=this.model.get("percentage")||0,t=this.getUI("circle").get(0),n=2*t.r.baseVal.value*Math.PI;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=n;var o=n-e/100*n;t.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(e,"%"))}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a.Component)},1121:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){e[e.NeedsManualReview=-1]="NeedsManualReview",e[e.HasNotBeenMigrated=0]="HasNotBeenMigrated",e[e.MigratedByUser=1]="MigratedByUser"}(o||(o={}))},1122:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(1),r=n(2),i=n(91),l=n(1121),a={setChecked:function(e,t,n){e.set("selected",!1);var r=n&&e.get("viewsLast3Years")>0;(o.contains(t,e.id.toString())||r&&0===t.length)&&e.set("selected",!0)},sortVideos:function(e,t,n){var o="name";return e.comparator=function(e,r){e.keys().forEach((function(e){e===t&&(o=e)}));var i=e.get(o),l=r.get(o);return"string"==typeof i&&"string"==typeof l&&(i=i.toLowerCase(),l=l.toLowerCase()),i<l?n?1:-1:i>l?n?-1:1:0},e.sort(),e},toggleMigrated:function(e,t){return e.each((function(e){var n=e.get("migrationStatus")!==l.a.HasNotBeenMigrated,r=e.get("hidden");!o.isUndefined(t)&&n?e.set("hidden",t):n?e.set("hidden",!r):e.set("hidden",!1)})),e},getSelectedVideosCollection:function(e){var t=new r.a.Collection;return Object.keys(e).forEach((function(n){var o=e[n],r=o.id,l=o.folderChord,a=t.findWhere({folderChord:l});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):t.add(new i.f({count:1,folderChord:l,videoIds:[r]}))})),t.each((function(e){e.set("folderChord",e.get("folderChord"))})),t}}},1180:function(e,t,n){e.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},1181:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.extraText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.circle:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.class:i,t))+'">\r\n <span>\r\n <span class="progress-circle-text">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(u,"progress",{name:"lang",hash:{percentage:null!=(i=null!=t?t.options:t)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.text:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircleContainer:i,t))+'">\r\n <circle class="progress-circle '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircle:i,t))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},1182:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(1),r=n(3),i=n(53);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a="migrationWizard.utils",u={getReportOptions:function(){var e;return l(e={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:r.a.getPhrase(a,"migratedOption")}),l(e,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:r.a.getPhrase(a,"remainingOption")}),l(e,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:r.a.getPhrase(a,"erroredOption")}),l(e,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:r.a.getPhrase(a,"linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return o.each(o.keys(t),(function(r){o.contains(e,t[r].type)&&(n[r]=t[r])})),n},filterSelectedOptions:function(e){return o.filter(o.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return o.filter(o.keys(t),(function(n){return o.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}}},1369:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabContainer:i,t))+' position-relative">\r\n <a class="col-4 p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherArchiveAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.reviewErroredAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},1370:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="col-8">\r\n <div class="select-all"></div>\r\n <div class="align-middle d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+'</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="col-4 pr-3 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},1371:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="applink-back btn btn-secondary '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="align-middle '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.statusBarMessage:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=t?t.options:t)?i.videoCount:i,smartCount:null!=(i=null!=t?t.options:t)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.lambda,u=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showBackButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showSelected:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+u(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},1372:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"text-muted"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-show cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkCheckbox:i,t))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n </div>\r\n <div class="col-4 position-static">\r\n <div class="row no-gutters">\r\n <div class="col-11 text-right pr-2">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?i:"")+' <div class="'+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewCount:i,t))+'">\r\n <span>\r\n '+u((n.lang||t&&t.lang||s).call(c,"views",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.views:i},data:r}))+'\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-1 d-flex justify-content-center position-static">\r\n <div class="error-code-region"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1373:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},1374:function(e,t,n){e.exports={videoList:"_3RFYO"}},1375:function(e,t,n){e.exports={banner:"O5CMF",learnMore:"MjcUE"}},1376:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<span class="text-white mr-1">'+u((n.lang||t&&t.lang||a).call(l,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+u(c(null!=(i=null!=t?t.options:t)?i.learnMoreUrl:i,t))+'" class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learnMore:i,t))+'" target="_blank">'+u((n.lang||t&&t.lang||a).call(l,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},1377:function(e,t,n){e.exports={category:"BSPKV"}},1378:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=t?t.options:t)?i.folder:i,className:null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:r}))?i:""},useData:!0})},1379:function(e,t,n){e.exports={videoList:"_3TgUv"}},1380:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h3 class="m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</h3>"},useData:!0})},1381:function(e,t,n){e.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},1382:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBarContainter:i,t))+' pl-0">\r\n <div class="progress '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'">\r\n <div class="progress-bar '+a(l(null!=(i=null!=t?t.options:t)?i.background:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'" role="progressbar" aria-valuenow="'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n </div>\r\n </div>\r\n <div class="col-1 pr-0">\r\n <span class="float-right progress-text">'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},1383:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=e.lambda,l=e.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+l(i(null!=t?t.id:t,t))+'-option" name="checkbox-'+l(i(null!=t?t.id:t,t))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+l(i(null!=t?t.id:t,t))+'-option">&nbsp;</label>\r\n </div>\r\n <label for="'+l(i(null!=t?t.id:t,t))+'-option">'+l(i(null!=t?t.labelText:t,t))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+u((n.lang||t&&t.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+u((n.lang||t&&t.lang||a).call(l,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="dropdown-divider"></div>\r\n<div class="mr-3">\r\n <button class="btn btn-primary w-100 mx-2 generate-report" disabled>'+u((n.lang||t&&t.lang||a).call(l,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},1384:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.generateReport:i,t))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},1385:function(e,t,n){e.exports={generateReport:"_2PRgW"}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[60],{1030:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(264);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})(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 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||function(e,t){return e.__proto__=t,e})(e,t)}function l(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=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&u(e,t)}(c,e);var t,n,r,i=l(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&s(t.prototype,n),r&&s(t,r),c}(r.a.Model)},1186:function(e,t,n){"use strict";var r=n(3),o="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectFolder")}},a={message:[{required:!0,msg:function(){return r.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},1331:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(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,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return"<p><strong>"+a(e.lambda(null!=(i=null!=t?t.video:t)?i.name:i,t))+"</strong> "+a((n.lang||t&&t.lang||u).call(s,"notAddedToLibrary",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+a((n.lang||t&&t.lang||u).call(s,"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;e.propertyIsEnumerable;return 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})},1438:function(e,t,n){"use strict";n.r(t),n.d(t,"RejectStaffRequestView",(function(){return T}));var r=n(6),o=n(2),i=n(30),a=n(5),s=n(4),u=n(42),l=n(303),c=n(264),f=n(1030),d=n(0),p=n(13),h=n(3),y=n(1186),m=n(1331),b=n.n(m);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})(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 w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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}}),t&&w(e,t)}(R,e);var t,n,m,g=S(R);function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),g.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.staffRequestDataService=a.a.getInstance(d.g.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return b.a}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.e,title:h.a.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:h.a.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:l.f,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(d.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(d.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(d.e.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(d.f.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(d.e.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(d.e.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=i.a.get(this.viewModelName),this.viewModel.addValidation(y.b)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:h.a.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(c.c.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.b.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:s.LocationContext.Popup,actionType:s.UserAction.Reject,entity:s.EntityType.StaffRequest,workflowPhase:s.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.a.logUserAction(t,e)}},{key:"redirectToHome",value:function(){o.a.AppLinkHelper.trigger({application:d.b.STAFF_REQUESTS,action:d.a.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:p.r.getSpinner({size:p.s.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){r.Validation.bind(this,{model:this.viewModel})}}])&&v(t.prototype,n),m&&v(t,m),R}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[61],{1342:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(n,e,t,r,o){n.propertyIsEnumerable;var a,l=null!=e?e:n.nullContext||{},i=n.hooks.helperMissing,c=n.escapeExpression,s=n.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||e&&e.lang||i).call(l,"uploadVideos",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="my-3">\r\n <img src="/images/upload/upload-vid@2x.png" class="'+c(s(null!=(a=null!=(a=null!=e?e.options:e)?a.styles:a)?a.uploadImage:a,e))+'" />\r\n </div>\r\n <div>\r\n <button class="btn btn-primary choose-files">'+c((t.lang||e&&e.lang||i).call(l,"chooseVideo",{name:"lang",hash:{},data:o}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||e&&e.lang||i).call(l,"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="col-4">\r\n <h4>'+c((t.lang||e&&e.lang||i).call(l,"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!=(a=null!=e?e.options:e)?a.uploadArticleUrl:a,e))+'" target="_blank">'+c((t.lang||e&&e.lang||i).call(l,"instructionsHeading",{name:"lang",hash:{},data:o}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-8">\r\n <h4>'+c((t.lang||e&&e.lang||i).call(l,"termsHeading",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||e&&e.lang||i).call(l,"term1",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+c((t.lang||e&&e.lang||i).call(l,"term2",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+(null!=(a=(t.lang||e&&e.lang||i).call(l,"term3",{name:"lang",hash:{classNames:null!=(a=null!=e?e.options:e)?a.classNames:a,uploadTermsUrl:null!=(a=null!=e?e.options:e)?a.uploadTermsUrl:a},data:o}))?a:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1343:function(n,e,t){n.exports={uploadImage:"_2qNTM"}},1444:function(n,e,t){"use strict";t.r(e),t.d(e,"FileSelectView",(function(){return C}));var r=t(1),o=t(2),a=t(5),l=t(3),i=t(59),c=t(200),s=t(4),u=t(42),p=t(0),d=t(1342),f=t.n(d),h=t(1343),g=t.n(h),y=t(315),m=t(44),v=t(308),b=t(306),w=t(492);function k(n){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function U(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function S(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function _(n,e){return(_=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function T(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=x(n);if(e){var o=x(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return O(this,t)}}function O(n,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):e}function x(n){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var C=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&_(n,e)}(h,n);var e,t,o,d=T(h);function h(){return U(this,h),d.apply(this,arguments)}return e=h,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,m.a.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=a.a.getInstance(p.x.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return l.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return f.a}},{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:y.a,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(n,e){this.videoUploadService.addFiles(n),this.logAction(n,e)}},{key:"logAction",value:function(n,e){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.a.mapInteractionType(e)};u.a.logUserAction(n,t)}},{key:"requiredResources",get:function(){return{config:c.b.config,currentUser:w.a.currentUser}}},{key:"viewOptions",value:function(){var n,e;return{styles:g.a,uploadArticleUrl:v.a.getArticle(null===(n=this.config)||void 0===n?void 0:n.get("supportSiteUrl"),b.a.UploadToLibraryEditor,null===(e=this.currentUser)||void 0===e?void 0:e.get("countryCode")),uploadTermsUrl:this.config?i.a.safeUrlConcat(this.config.get("marketingSiteUrl"),p.r.UploadingUserContent):"",classNames:"info-link"}}}])&&S(e.prototype,t),o&&S(e,o),h}(o.a.View)}}]);