@clickview/library-editor 1.1.50-dev.1 → 1.1.50-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/en.json +1 -1
  3. package/dist/scripts/{0-5f0c2cd8fe.chunk.js → 0-39b4264c40.chunk.js} +1 -1
  4. package/dist/scripts/{1-7a35a849f0.chunk.js → 1-b4853334f7.chunk.js} +1 -1
  5. package/dist/scripts/{10-45d2a5ef25.chunk.js → 10-74b6a07baa.chunk.js} +1 -1
  6. package/dist/scripts/{11-74bc3f2d9f.chunk.js → 11-f9ca151e61.chunk.js} +1 -1
  7. package/dist/scripts/{12-f0c771aad1.chunk.js → 12-a961dabbb5.chunk.js} +1 -1
  8. package/dist/scripts/{13-d70fedb2e0.chunk.js → 13-31b759d4dc.chunk.js} +1 -1
  9. package/dist/scripts/{14-fafea6f32c.chunk.js → 14-28ab8d5025.chunk.js} +1 -1
  10. package/dist/scripts/{15-7aa65c016d.chunk.js → 15-e326770074.chunk.js} +1 -1
  11. package/dist/scripts/{16-56c022c016.chunk.js → 16-33bc415c72.chunk.js} +1 -1
  12. package/dist/scripts/{17-14a7b2aed1.chunk.js → 17-4d85362caa.chunk.js} +1 -1
  13. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-6334a56d75.chunk.js} +1 -1
  14. package/dist/scripts/{20-48346c1412.chunk.js → 20-09959dbb36.chunk.js} +1 -1
  15. package/dist/scripts/{21-f9ff3e0692.chunk.js → 21-d07eac93af.chunk.js} +1 -1
  16. package/dist/scripts/{22-82ad962fa7.chunk.js → 22-d5cba8a51b.chunk.js} +1 -1
  17. package/dist/scripts/{23-d534e3d903.chunk.js → 23-6f0c2ffe34.chunk.js} +1 -1
  18. package/dist/scripts/{24-264b454456.chunk.js → 24-28d1ee1ddb.chunk.js} +1 -1
  19. package/dist/scripts/{25-e1743bb45d.chunk.js → 25-3b12323e76.chunk.js} +1 -1
  20. package/dist/scripts/{26-0d7e56893b.chunk.js → 26-41d73fb1cc.chunk.js} +1 -1
  21. package/dist/scripts/{27-4ddeaff155.chunk.js → 27-9faadbc5ad.chunk.js} +1 -1
  22. package/dist/scripts/{28-96aef6893a.chunk.js → 28-1abda5ddcd.chunk.js} +1 -1
  23. package/dist/scripts/{29-554f426b85.chunk.js → 29-89a17b3cd5.chunk.js} +1 -1
  24. package/dist/scripts/{3-75a0223960.chunk.js → 3-c468e5f805.chunk.js} +1 -1
  25. package/dist/scripts/{30-9bdc787ec5.chunk.js → 30-4331611384.chunk.js} +1 -1
  26. package/dist/scripts/{31-67f46f7d90.chunk.js → 31-0522a0350b.chunk.js} +1 -1
  27. package/dist/scripts/{32-afdbc7da12.chunk.js → 32-e9df7dd92c.chunk.js} +1 -1
  28. package/dist/scripts/{33-6c83870de4.chunk.js → 33-b88d856ab0.chunk.js} +1 -1
  29. package/dist/scripts/{34-486d783b77.chunk.js → 34-c677ede372.chunk.js} +1 -1
  30. package/dist/scripts/{35-44dfa1d229.chunk.js → 35-58a7bef4a3.chunk.js} +1 -1
  31. package/dist/scripts/{36-6e22a76e9d.chunk.js → 36-22798bd81a.chunk.js} +1 -1
  32. package/dist/scripts/{37-247574943e.chunk.js → 37-0336031536.chunk.js} +1 -1
  33. package/dist/scripts/{38-c053771304.chunk.js → 38-b424c6398c.chunk.js} +1 -1
  34. package/dist/scripts/{39-0034f40388.chunk.js → 39-faf8a59822.chunk.js} +1 -1
  35. package/dist/scripts/{4-bbf9a27d2b.chunk.js → 4-4c62127fb2.chunk.js} +1 -1
  36. package/dist/scripts/{40-4c9075f25f.chunk.js → 40-9b473a87c2.chunk.js} +1 -1
  37. package/dist/scripts/{41-9ef30d9bce.chunk.js → 41-20fe91435b.chunk.js} +1 -1
  38. package/dist/scripts/{42-d5ebd7e173.chunk.js → 42-143ac3914b.chunk.js} +1 -1
  39. package/dist/scripts/{43-18cb4a605c.chunk.js → 43-ce726c3839.chunk.js} +1 -1
  40. package/dist/scripts/{44-c501392a17.chunk.js → 44-fc7c025c5f.chunk.js} +1 -1
  41. package/dist/scripts/{45-6f27b84b9a.chunk.js → 45-1e84cd6639.chunk.js} +1 -1
  42. package/dist/scripts/{46-26943c79e1.chunk.js → 46-26b40a870e.chunk.js} +1 -1
  43. package/dist/scripts/{47-58f15ff5f7.chunk.js → 47-f03e03252c.chunk.js} +1 -1
  44. package/dist/scripts/{48-59c60086c6.chunk.js → 48-c9a61fd1e3.chunk.js} +1 -1
  45. package/dist/scripts/{49-c7095beb6f.chunk.js → 49-2879e96eed.chunk.js} +1 -1
  46. package/dist/scripts/{5-a06b2153c3.chunk.js → 5-96980a85ac.chunk.js} +1 -1
  47. package/dist/scripts/{50-015c9c420c.chunk.js → 50-b76b6c7d52.chunk.js} +1 -1
  48. package/dist/scripts/{51-0cca989dae.chunk.js → 51-c252822f95.chunk.js} +1 -1
  49. package/dist/scripts/{52-3cc8a4a0c6.chunk.js → 52-ecde4fecf3.chunk.js} +1 -1
  50. package/dist/scripts/{53-b0a20bc5a0.chunk.js → 53-3ab3b83088.chunk.js} +1 -1
  51. package/dist/scripts/{54-79dca3d489.chunk.js → 54-0e921db390.chunk.js} +1 -1
  52. package/dist/scripts/{55-8c5eba8730.chunk.js → 55-bd9dc838cd.chunk.js} +1 -1
  53. package/dist/scripts/{56-4d5b5fecd6.chunk.js → 56-6528a68474.chunk.js} +1 -1
  54. package/dist/scripts/{57-84eff54b39.chunk.js → 57-3477d4f9b5.chunk.js} +1 -1
  55. package/dist/scripts/{58-c0d48a915f.chunk.js → 58-2c62df5dbd.chunk.js} +1 -1
  56. package/dist/scripts/{59-53d002a1db.chunk.js → 59-13ade58ba1.chunk.js} +1 -1
  57. package/dist/scripts/{6-6c8dac1a42.chunk.js → 6-1fdfa2191a.chunk.js} +1 -1
  58. package/dist/scripts/{60-9ba5670a0b.chunk.js → 60-f36c57ef33.chunk.js} +1 -1
  59. package/dist/scripts/{61-7189b10e86.chunk.js → 61-24acf3201f.chunk.js} +1 -1
  60. package/dist/scripts/{62-6c382c4af3.chunk.js → 62-d869eccf9a.chunk.js} +1 -1
  61. package/dist/scripts/{63-d55def5355.chunk.js → 63-d35e9ced47.chunk.js} +1 -1
  62. package/dist/scripts/{64-4925cb46d4.chunk.js → 64-dfc3cd19ee.chunk.js} +1 -1
  63. package/dist/scripts/{65-28d1f3d305.chunk.js → 65-b66a158393.chunk.js} +1 -1
  64. package/dist/scripts/{66-dd4f73d58f.chunk.js → 66-89b577d70f.chunk.js} +1 -1
  65. package/dist/scripts/{67-25c6582829.chunk.js → 67-029aaf6fac.chunk.js} +1 -1
  66. package/dist/scripts/{68-4962d3fcfc.chunk.js → 68-452e0327d9.chunk.js} +1 -1
  67. package/dist/scripts/{69-2067a2189e.chunk.js → 69-0491a8faf5.chunk.js} +1 -1
  68. package/dist/scripts/{7-881a9b64de.chunk.js → 7-13b4886b73.chunk.js} +1 -1
  69. package/dist/scripts/{70-d2472d2122.chunk.js → 70-62aff2ab4e.chunk.js} +1 -1
  70. package/dist/scripts/{71-3f1e0d4f31.chunk.js → 71-91b4d4dfcb.chunk.js} +1 -1
  71. package/dist/scripts/{72-d5c52637ca.chunk.js → 72-4d851db609.chunk.js} +1 -1
  72. package/dist/scripts/{8-ef172e304b.chunk.js → 8-55ea9736c8.chunk.js} +1 -1
  73. package/dist/scripts/{9-d5b2cc8210.chunk.js → 9-e4f29db920.chunk.js} +1 -1
  74. package/dist/scripts/bundle-361d3bdf1a.min.js +10 -0
  75. package/dist/scripts/polyfills-e9aab74cda.min.js +1 -0
  76. package/package.json +3 -3
  77. package/dist/scripts/bundle-2b9531d6bc.min.js +0 -10
  78. package/dist/scripts/polyfills-35ff77d456.min.js +0 -1
@@ -1 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1054: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)},1091:function(t,n,e){"use strict";e(308);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(1054);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}))},1362: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"}},1363: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})},1447: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(307),u=e(305),s=e(143),f=e(302),p=e(263),g=e(197),y=e(0),h=e(13),m=e(53),d=e(91),b=e(1091),v=e(1054),O=e(1362),w=e.n(O),S=e(1363),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[47],{1027:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(263);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)},1179: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}))}}},1404:function(e,t,n){e.exports={image:"_2A7jn"}},1405: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})},1453: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(302),c=n(13),l=n(0),s=n(143),f=n(1027),p=n(263),y=n(1179),h=n(1404),g=n.n(h),m=n(1405),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[48],{1027:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(263);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)},1291: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})},1292:function(e,t,n){e.exports={image:"J9jn_"}},1425: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(302),f=n(263),h=n(1027),p=n(143),y=n(0),d=n(13),b=n(202),g=n(1291),v=n.n(g),m=n(1292),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[49],{1060: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(1061),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)},1061: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})},1338: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})},1440: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(198),p=e(1060),f=e(237),h=e(1338),y=e.n(h),v=e(489),g=e.n(v),b=e(490),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[5],{1043: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(1205),l=n.n(a),s=n(1206),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)},1059:function(t,e,n){"use strict";var o=n(2),i=n(18),r=n(6),a=n(0),l=n(303),s=n(1128),c=n.n(s),u=n(1129),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)},1097:function(t,e,n){"use strict";var o=n(2),i=n(59),r=n(4),a=n(42),l=n(17),s=n(1),c=n(142),u=n(1209),p=n.n(u),f=n(1186),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(1036),P=n(0),T=n(13),j=n(3),L=n(303),R=n(1210),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)},1128: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})},1129:function(t,e,n){t.exports={disabled:"_3Vziu"}},1186:function(t,e,n){t.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},1205: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})},1206:function(t,e,n){t.exports={sourceLabel:"_2HK7r"}},1209: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})},1210: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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[50],{1197: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})},1198:function(t,e,n){t.exports={image:"_1wvl8"}},1411: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(1197),u=n.n(i),c=n(1198),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[51],{1195: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})},1196: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"}},1410: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(1195),l=e.n(i),a=e(1196),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[52],{1109: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(1150),u=n.n(a),c=n(1110),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)},1110: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})},1294: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})},1427: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(18),l=n(316),s=n(0),p=n(9),f=n(302),h=n(13),d=n(1109),g=n(263),m=n(3),y=n(1294),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[53],{1109: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(1150),u=n.n(a),c=n(1110),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)},1110: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})},1293: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})},1426: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(18),c=n(5),l=n(3),s=n(302),p=n(0),f=n(263),h=n(316),d=n(9),g=n(13),m=n(1109),y=n(1293),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 +1 @@
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
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[54],{1390: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})},1391:function(n,e,t){n.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},1452: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(197),a=t(0),c=t(1390),u=t.n(c),f=t(1391),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)}}]);