@clickview/library-editor 1.1.56-rc.0 → 1.1.57-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 (81) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{library-editor-app-5e31ed6fcd.css → library-editor-app-73ef35d93e.css} +1 -1
  3. package/dist/en.json +1 -1
  4. package/dist/scripts/{0-104e5d80cf.chunk.js → 0-7a0a00671e.chunk.js} +1 -1
  5. package/dist/scripts/{1-43c3a05437.chunk.js → 1-709b927521.chunk.js} +1 -1
  6. package/dist/scripts/{10-dc22480d09.chunk.js → 10-9adc2cda45.chunk.js} +1 -1
  7. package/dist/scripts/{11-ba2c1f6f70.chunk.js → 11-ff467086e1.chunk.js} +1 -1
  8. package/dist/scripts/{12-6470f50978.chunk.js → 12-24c4543472.chunk.js} +1 -1
  9. package/dist/scripts/{13-172db124a0.chunk.js → 13-10636e2af5.chunk.js} +1 -1
  10. package/dist/scripts/{14-dd8068d186.chunk.js → 14-9b1ecd3e9e.chunk.js} +1 -1
  11. package/dist/scripts/{15-f984451404.chunk.js → 15-e4ef6f64cf.chunk.js} +1 -1
  12. package/dist/scripts/{16-60b31364a5.chunk.js → 16-ea4e41f570.chunk.js} +1 -1
  13. package/dist/scripts/{17-b61e29dd2b.chunk.js → 17-9353ded8cd.chunk.js} +1 -1
  14. package/dist/scripts/{18-58b75c92e6.chunk.js → 18-fb56568492.chunk.js} +1 -1
  15. package/dist/scripts/{19-3ca41936dc.chunk.js → 19-85a94ac004.chunk.js} +1 -1
  16. package/dist/scripts/{2-717e5953ab.chunk.js → 2-6e60c5cd87.chunk.js} +1 -1
  17. package/dist/scripts/{22-fa2e26f44d.chunk.js → 22-a4903ff45c.chunk.js} +1 -1
  18. package/dist/scripts/{23-f058deefc3.chunk.js → 23-b47ac20bca.chunk.js} +1 -1
  19. package/dist/scripts/{24-58f8c283fc.chunk.js → 24-f431e57e2a.chunk.js} +1 -1
  20. package/dist/scripts/{25-1dfacd4e49.chunk.js → 25-560da8ad7f.chunk.js} +1 -1
  21. package/dist/scripts/{26-7da6f45c3c.chunk.js → 26-4931172ebc.chunk.js} +1 -1
  22. package/dist/scripts/{27-b5d99ffc79.chunk.js → 27-adae09a46f.chunk.js} +1 -1
  23. package/dist/scripts/{28-a0737bd2c3.chunk.js → 28-696a0da105.chunk.js} +1 -1
  24. package/dist/scripts/{29-658d384be3.chunk.js → 29-c2c961a586.chunk.js} +1 -1
  25. package/dist/scripts/{3-ce455b9d76.chunk.js → 3-aa6f0c5b23.chunk.js} +1 -1
  26. package/dist/scripts/{30-87ab8d44d3.chunk.js → 30-92d387d3d9.chunk.js} +1 -1
  27. package/dist/scripts/{31-678e15cb27.chunk.js → 31-7e545aa0de.chunk.js} +1 -1
  28. package/dist/scripts/{32-acbf2f0622.chunk.js → 32-7328345fae.chunk.js} +1 -1
  29. package/dist/scripts/{33-fc59f7f6f1.chunk.js → 33-128143c106.chunk.js} +1 -1
  30. package/dist/scripts/{34-6bf5b4f684.chunk.js → 34-c915802337.chunk.js} +1 -1
  31. package/dist/scripts/{35-7ae663a318.chunk.js → 35-a166f1b8e3.chunk.js} +1 -1
  32. package/dist/scripts/{36-1fad1714f7.chunk.js → 36-c347fda103.chunk.js} +1 -1
  33. package/dist/scripts/{37-4abfd00db9.chunk.js → 37-74139562b8.chunk.js} +1 -1
  34. package/dist/scripts/{38-fbad2fc82c.chunk.js → 38-f300998fdd.chunk.js} +1 -1
  35. package/dist/scripts/{39-6c8b47f584.chunk.js → 39-b3dc9c44a0.chunk.js} +1 -1
  36. package/dist/scripts/{4-58def50cec.chunk.js → 4-a6f41aa1cf.chunk.js} +1 -1
  37. package/dist/scripts/{40-66d8af09cf.chunk.js → 40-3e0329bded.chunk.js} +1 -1
  38. package/dist/scripts/{41-ef31310489.chunk.js → 41-14984944f5.chunk.js} +1 -1
  39. package/dist/scripts/{42-fa1d88c59b.chunk.js → 42-a83543523b.chunk.js} +1 -1
  40. package/dist/scripts/{43-c9c476d9b2.chunk.js → 43-1dd75e9a7c.chunk.js} +1 -1
  41. package/dist/scripts/{44-453006db03.chunk.js → 44-b009aed5ee.chunk.js} +1 -1
  42. package/dist/scripts/{45-daa6556c90.chunk.js → 45-8784f71efb.chunk.js} +1 -1
  43. package/dist/scripts/{46-9511520501.chunk.js → 46-84948e5396.chunk.js} +1 -1
  44. package/dist/scripts/{47-6f93dc2e88.chunk.js → 47-e8ee683c6b.chunk.js} +1 -1
  45. package/dist/scripts/{48-3b06f60df4.chunk.js → 48-f7d6b635d4.chunk.js} +1 -1
  46. package/dist/scripts/{49-46c2f49588.chunk.js → 49-85880607e1.chunk.js} +1 -1
  47. package/dist/scripts/{5-3a1843b403.chunk.js → 5-441004c068.chunk.js} +1 -1
  48. package/dist/scripts/{50-02fa3eb163.chunk.js → 50-7119810c07.chunk.js} +1 -1
  49. package/dist/scripts/{51-6c16ea537e.chunk.js → 51-4073403c2a.chunk.js} +1 -1
  50. package/dist/scripts/{52-76487916a5.chunk.js → 52-83ac3c5f59.chunk.js} +1 -1
  51. package/dist/scripts/{53-af50db3c3c.chunk.js → 53-44b9074b42.chunk.js} +1 -1
  52. package/dist/scripts/{54-72d736205b.chunk.js → 54-f87b2698de.chunk.js} +1 -1
  53. package/dist/scripts/{55-3bc9a0b42d.chunk.js → 55-02e36c66d8.chunk.js} +1 -1
  54. package/dist/scripts/{56-43f593b7c5.chunk.js → 56-7e9d94a656.chunk.js} +1 -1
  55. package/dist/scripts/{57-508febbd1b.chunk.js → 57-4ad9ab266e.chunk.js} +1 -1
  56. package/dist/scripts/{58-ff54459bd1.chunk.js → 58-6ebe979a17.chunk.js} +1 -1
  57. package/dist/scripts/{59-56d1f7537f.chunk.js → 59-09ad6d94e9.chunk.js} +1 -1
  58. package/dist/scripts/{6-8b8b5a5977.chunk.js → 6-f1f3ea7cec.chunk.js} +1 -1
  59. package/dist/scripts/{60-aa380ff112.chunk.js → 60-d4f9eaf20d.chunk.js} +1 -1
  60. package/dist/scripts/{61-fac76029c9.chunk.js → 61-45cfc05bd5.chunk.js} +1 -1
  61. package/dist/scripts/{62-a3b4e94851.chunk.js → 62-4242c25552.chunk.js} +1 -1
  62. package/dist/scripts/{63-c5943f97ff.chunk.js → 63-779b927a04.chunk.js} +1 -1
  63. package/dist/scripts/{64-b51ab4e2b7.chunk.js → 64-29f65ce8e5.chunk.js} +1 -1
  64. package/dist/scripts/{65-cfd5e46f89.chunk.js → 65-0e5cd44c96.chunk.js} +1 -1
  65. package/dist/scripts/{66-d4e52adf0e.chunk.js → 66-782fe6a351.chunk.js} +1 -1
  66. package/dist/scripts/{67-a308ef650d.chunk.js → 67-c749606e6f.chunk.js} +1 -1
  67. package/dist/scripts/{68-c5dcd410e9.chunk.js → 68-9ef5b70dc6.chunk.js} +1 -1
  68. package/dist/scripts/{69-439f478464.chunk.js → 69-ea32cbf274.chunk.js} +1 -1
  69. package/dist/scripts/{7-866c6652bd.chunk.js → 7-00dd3cbb22.chunk.js} +1 -1
  70. package/dist/scripts/{70-47761f2ccc.chunk.js → 70-876856aed0.chunk.js} +1 -1
  71. package/dist/scripts/{71-ddefa84f7b.chunk.js → 71-89a356a899.chunk.js} +1 -1
  72. package/dist/scripts/{72-29eb61cf43.chunk.js → 72-6e08024788.chunk.js} +1 -1
  73. package/dist/scripts/{73-723909f9f9.chunk.js → 73-7cc4cc7383.chunk.js} +1 -1
  74. package/dist/scripts/{74-665f11c3f0.chunk.js → 74-8ffb258210.chunk.js} +1 -1
  75. package/dist/scripts/{8-8a9b216365.chunk.js → 8-878942d96f.chunk.js} +1 -1
  76. package/dist/scripts/{9-06e24ea6dd.chunk.js → 9-da8328e091.chunk.js} +1 -1
  77. package/dist/scripts/bundle-7224d4e077.min.js +10 -0
  78. package/dist/scripts/polyfills-4de7102781.min.js +1 -0
  79. package/package.json +3 -4
  80. package/dist/scripts/bundle-569a590288.min.js +0 -10
  81. package/dist/scripts/polyfills-712bbaf7d4.min.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[49],{1035:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),i=n(265);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){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),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),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1299: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})},1300:function(e,t,n){e.exports={image:"J9jn_"}},1433: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(36),u=n(305),f=n(265),p=n(1035),h=n(144),y=n(0),d=n(13),b=n(206),g=n(1299),v=n.n(g),m=n(1300),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(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 _(this,n)}}function _(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(O,e);var t,n,g,m=E(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 p.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:h.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),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[49],{1042:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),i=n(265);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){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),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),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1306: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})},1307:function(e,t,n){e.exports={image:"J9jn_"}},1440: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(36),u=n(305),f=n(265),p=n(1042),h=n(144),y=n(0),d=n(13),b=n(206),g=n(1306),v=n.n(g),m=n(1307),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(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 _(this,n)}}function _(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(O,e);var t,n,g,m=E(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 p.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:h.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),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[5],{1051: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(1213),l=n.n(a),s=n(1214),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){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function 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}}),Object.defineProperty(t,"prototype",{writable:!1}),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),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.Component)},1066:function(t,e,n){"use strict";var o=n(2),i=n(19),r=n(6),a=n(0),l=n(306),s=n(1132),c=n.n(s),u=n(1133),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){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),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),Object.defineProperty(e,"prototype",{writable:!1}),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 w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(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=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(s,t);var e,n,r,a=O(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),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.ComponentCollection)},1104: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(1217),p=n.n(u),f=n(1192),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){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var o,i,r=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);a=!0);}catch(t){l=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return r}(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),Object.defineProperty(t,"prototype",{writable:!1}),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(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=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){k(n,t);var e=O(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),P=function(t){k(n,t);var e=O(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),_=n(1049),j=n(0),A=n(13),T=n(3),L=n(306),R=n(1218),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){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function 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}}),Object.defineProperty(t,"prototype",{writable:!1}),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:T.a.getPhrase(this.lang,"share"),svg:l.a.getSvg(l.b.Share),isDisabled:!A.j.canShareVideo(this.model,this.options.application),tooltipText:A.j.canShareVideo(this.model,this.options.application)?T.a.getPhrase(this.lang,"share"):A.j.getSharePermissionsMessage(this.model,this.options.application),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"edit"),svg:A.j.canEditVideo(this.model)?l.a.getSvg(l.b.Edit):l.a.getSvg(l.b.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:j.b.LIBRARY_EDITOR,action:j.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 A.j.canEditVideo(this.model)?T.a.getPhrase(this.lang,"edit"):A.y.isExchangeVideo(this.model)?T.a.getPhrase(this.lang,"linkedToExchange"):T.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:T.a.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:j.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===j.b.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:T.a.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:j.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:T.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!==j.b.CONTENT_UPDATES){var n=A.j.canDownloadVideo(this.model);t.push({title:T.a.getPhrase(this.lang,"download"),disabled:!n,classes:n?"":"".concat(h.a.disabled),tooltip:n?null:{title:T.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:j.a.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&A.j.canAddToExchange(this.model)&&t.push({title:T.a.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:j.a.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&t.push({title:T.a.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:j.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 P({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new _.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),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.a.Component)},1132: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})},1133:function(t,e,n){t.exports={disabled:"_3Vziu"}},1192:function(t,e,n){t.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},1213: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})},1214:function(t,e,n){t.exports={sourceLabel:"_2HK7r"}},1217: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})},1218: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],{1058: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(1220),l=n.n(a),s=n(1221),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){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function 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}}),Object.defineProperty(t,"prototype",{writable:!1}),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),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.Component)},1073:function(t,e,n){"use strict";var o=n(2),i=n(19),r=n(6),a=n(0),l=n(306),s=n(1139),c=n.n(s),u=n(1140),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){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),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),Object.defineProperty(e,"prototype",{writable:!1}),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 w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(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=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(s,t);var e,n,r,a=O(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),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.ComponentCollection)},1111:function(t,e,n){"use strict";var o=n(2),i=n(57),r=n(4),a=n(42),l=n(16),s=n(1),c=n(143),u=n(1224),p=n.n(u),f=n(1199),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){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var o,i,r=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);a=!0);}catch(t){l=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return r}(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),Object.defineProperty(t,"prototype",{writable:!1}),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(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=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){k(n,t);var e=O(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),P=function(t){k(n,t);var e=O(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),_=n(1056),j=n(0),A=n(13),T=n(3),L=n(306),R=n(1225),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){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function 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}}),Object.defineProperty(t,"prototype",{writable:!1}),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:T.a.getPhrase(this.lang,"share"),svg:l.a.getSvg(l.b.Share),isDisabled:!A.j.canShareVideo(this.model,this.options.application),tooltipText:A.j.canShareVideo(this.model,this.options.application)?T.a.getPhrase(this.lang,"share"):A.j.getSharePermissionsMessage(this.model,this.options.application),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"edit"),svg:A.j.canEditVideo(this.model)?l.a.getSvg(l.b.Edit):l.a.getSvg(l.b.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:j.b.LIBRARY_EDITOR,action:j.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 A.j.canEditVideo(this.model)?T.a.getPhrase(this.lang,"edit"):A.y.isExchangeVideo(this.model)?T.a.getPhrase(this.lang,"linkedToExchange"):T.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:T.a.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:j.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===j.b.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:T.a.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:j.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:T.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!==j.b.CONTENT_UPDATES){var n=A.j.canDownloadVideo(this.model);t.push({title:T.a.getPhrase(this.lang,"download"),disabled:!n,classes:n?"":"".concat(h.a.disabled),tooltip:n?null:{title:T.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:j.a.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&A.j.canAddToExchange(this.model)&&t.push({title:T.a.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:j.a.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&t.push({title:T.a.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:j.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:T.a.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:j.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 P({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new _.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),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.a.Component)},1139: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})},1140:function(t,e,n){t.exports={disabled:"_3Vziu"}},1199:function(t,e,n){t.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},1220: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})},1221:function(t,e,n){t.exports={sourceLabel:"_2HK7r"}},1224: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})},1225: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],{1067: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(1068),c=e.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 l(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=h(t);if(n){var i=h(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return y(this,e)}}function y(t,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&p(t,n)}(u,t);var n,e,i,s=f(u);function u(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t)}return n=u,(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}}])&&l(n.prototype,e),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(i.a.Component)},1068: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})},1346: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})},1448:function(t,n,e){"use strict";e.r(n),e.d(n,"NotificationsView",(function(){return j}));var o=e(2),i=e(3),r=e(5),a=e(25),s=e(52),c=e(22),u=e(43),l=e(202),p=e(1067),f=e(240),y=e(1346),h=e.n(y),v=e(493),b=e.n(v),d=e(494),g=e.n(d);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=C(t);if(n){var i=C(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return P(this,e)}}function P(t,n){if(n&&("object"===m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&w(t,n)}(v,t);var n,e,o,y=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),y.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 h.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:b.a,className:"px-1 py-2",viewOptions:{styles:g.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(u.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 l.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),Object.defineProperty(n,"prototype",{writable:!1}),v}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[50],{1074: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(1075),c=e.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 l(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=h(t);if(n){var i=h(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return y(this,e)}}function y(t,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&p(t,n)}(u,t);var n,e,i,s=f(u);function u(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t)}return n=u,(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}}])&&l(n.prototype,e),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(i.a.Component)},1075: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})},1353: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})},1455:function(t,n,e){"use strict";e.r(n),e.d(n,"NotificationsView",(function(){return j}));var o=e(2),i=e(3),r=e(5),a=e(25),s=e(52),c=e(22),u=e(43),l=e(202),p=e(1074),f=e(240),y=e(1353),h=e.n(y),v=e(494),b=e.n(v),d=e(495),g=e.n(d);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=C(t);if(n){var i=C(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return P(this,e)}}function P(t,n){if(n&&("object"===m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&w(t,n)}(v,t);var n,e,o,y=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),y.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 h.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:b.a,className:"px-1 py-2",viewOptions:{styles:g.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(u.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 l.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),Object.defineProperty(n,"prototype",{writable:!1}),v}(o.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[51],{1203:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'\r\n<img src="/images/errors/Oops'+c(u(null!=(i=null!=t?t.options:t)?i.imageNumber:i,t))+'@2x.png" class="'+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n<h4 class="mt-3 text-muted">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n<p>"+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})},1204:function(e,t,r){e.exports={image:"_1wvl8"}},1419:function(e,t,r){"use strict";r.r(t),r.d(t,"ErrorView",(function(){return d}));var n=r(6),o=r(2),i=r(1203),u=r.n(i),c=r(1204),l=r.n(c);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,r,o,i=y(c);function c(){return f(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center"}},{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(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[51],{1210:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'\r\n<img src="/images/errors/Oops'+c(u(null!=(i=null!=t?t.options:t)?i.imageNumber:i,t))+'@2x.png" class="'+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n<h4 class="mt-3 text-muted">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n<p>"+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})},1211:function(e,t,r){e.exports={image:"_1wvl8"}},1426:function(e,t,r){"use strict";r.r(t),r.d(t,"ErrorView",(function(){return d}));var n=r(6),o=r(2),i=r(1210),u=r.n(i),c=r(1211),l=r.n(c);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,r,o,i=y(c);function c(){return f(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center"}},{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(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[52],{1201: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,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.illoContainer:i,n))+'">\r\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lunaHead:i,n))+'"><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!=n?n.options:n)?i.styles:i)?i.head:i,n))+'"><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!=n?n.options:n)?i.styles:i)?i.body:i,n))+'"><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||n&&n.lang||c).call(u,"pageNotFound",{name:"lang",hash:{},data:r}))+"</h4>\r\n<p>"+(null!=(i=(e.lang||n&&n.lang||c).call(u,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.linkClasses:i},data:r}))?i:"")+"</p>"},useData:!0})},1202:function(t,n,e){t.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"}},1418:function(t,n,e){"use strict";e.r(n),e.d(n,"NotFoundView",(function(){return h}));var o=e(2),r=e(0),i=e(1201),l=e.n(i),a=e(1202),u=e.n(a);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function p(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 f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function y(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=b(t);if(n){var r=b(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return d(this,e)}}function d(t,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&f(t,n)}(a,t);var n,e,o,i=y(a);function a(){return s(this,a),i.apply(this,arguments)}return n=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"}}}])&&p(n.prototype,e),o&&p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[52],{1208: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,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.illoContainer:i,n))+'">\r\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lunaHead:i,n))+'"><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!=n?n.options:n)?i.styles:i)?i.head:i,n))+'"><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!=n?n.options:n)?i.styles:i)?i.body:i,n))+'"><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||n&&n.lang||c).call(u,"pageNotFound",{name:"lang",hash:{},data:r}))+"</h4>\r\n<p>"+(null!=(i=(e.lang||n&&n.lang||c).call(u,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.linkClasses:i},data:r}))?i:"")+"</p>"},useData:!0})},1209:function(t,n,e){t.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"}},1425:function(t,n,e){"use strict";e.r(n),e.d(n,"NotFoundView",(function(){return h}));var o=e(2),r=e(0),i=e(1208),l=e.n(i),a=e(1209),u=e.n(a);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function p(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 f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function y(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=b(t);if(n){var r=b(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return d(this,e)}}function d(t,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=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}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&f(t,n)}(a,t);var n,e,o,i=y(a);function a(){return s(this,a),i.apply(this,arguments)}return n=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"}}}])&&p(n.prototype,e),o&&p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(o.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[53],{1111:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return y}));var r,o=n(6),i=n(2),a=n(1155),u=n.n(a),c=n(1112),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){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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 y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1112: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})},1302: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})},1435:function(e,t,n){"use strict";n.r(t),n.d(t,"BannerUploadView",(function(){return E}));var r=n(1),o=n(6),i=n(5),a=n(2),u=n(30),c=n(19),l=n(319),s=n(0),p=n(9),f=n(305),h=n(13),d=n(1111),g=n(265),y=n(3),m=n(1302),b=n.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(I,e);var t,n,m,v=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),v.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 y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:f.e,title:y.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:y.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),m&&w(t,m),Object.defineProperty(t,"prototype",{writable:!1}),I}(a.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[53],{1118:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return y}));var r,o=n(6),i=n(2),a=n(1162),u=n.n(a),c=n(1119),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){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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 y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1119: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})},1309: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})},1442:function(e,t,n){"use strict";n.r(t),n.d(t,"BannerUploadView",(function(){return E}));var r=n(1),o=n(6),i=n(5),a=n(2),u=n(30),c=n(19),l=n(319),s=n(0),p=n(9),f=n(305),h=n(13),d=n(1118),g=n(265),y=n(3),m=n(1309),b=n.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(I,e);var t,n,m,v=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),v.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 y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:f.e,title:y.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:y.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),m&&w(t,m),Object.defineProperty(t,"prototype",{writable:!1}),I}(a.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[54],{1035:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(265);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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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=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){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(){return l(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}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1049:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(2),o=n(312);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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=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){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,i,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return o.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,i="dropdown-menu-".concat(n);return r&&(i="".concat(i," ").concat(r)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.a.ComponentCollection)},1236: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' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:i}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,i){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1426:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return T}));var r=n(1),i=n(3),o=n(5),l=n(2),a=n(321),s=n(42),c=n(305),u=n(0),f=n(153),h=n(1035),d=n(318),p=n(13),y=n(1054),b=n(265),v=n(1115),g=n(1236),m=n.n(g);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(w,e);var t,n,l,g=k(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.a.getInstance(u.g.Library,this),this.videoDataService=o.a.getInstance(u.g.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&i.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m.a}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:i.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:i.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),i=[],o=[];this.libraries.forEach((function(t){var l=p.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?i.push(t):o.push(t)})),this.libraries=new f.a(i),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:i.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=p.f.getSelected(this.libraryTreeKey,this.libraries);t&&p.f.deselectAll(this.folderTreeKey,t.get("children")),p.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=p.f.getSelected(this.libraryTreeKey,this.libraries).get("children");p.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=p.f.getSelected(this.folderTreeKey,this.libraries),i=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===o.length?n.get("name"):"",a=d.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,i,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,i)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=i.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new v.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),p.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(t.prototype,n),l&&S(t,l),Object.defineProperty(t,"prototype",{writable:!1}),w}(l.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[54],{1042:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(265);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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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=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){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf: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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(){return l(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}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1056:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(2),o=n(312);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=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=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){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,i,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return o.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,i="dropdown-menu-".concat(n);return r&&(i="".concat(i," ").concat(r)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.a.ComponentCollection)},1243: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' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:i}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,i){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1433:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return T}));var r=n(1),i=n(3),o=n(5),l=n(2),a=n(321),s=n(42),c=n(305),u=n(0),f=n(153),h=n(1042),d=n(318),p=n(13),y=n(1061),b=n(265),v=n(1122),g=n(1243),m=n.n(g);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(w,e);var t,n,l,g=k(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.a.getInstance(u.g.Library,this),this.videoDataService=o.a.getInstance(u.g.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&i.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m.a}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:i.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:i.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),i=[],o=[];this.libraries.forEach((function(t){var l=p.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?i.push(t):o.push(t)})),this.libraries=new f.a(i),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:i.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=p.f.getSelected(this.libraryTreeKey,this.libraries);t&&p.f.deselectAll(this.folderTreeKey,t.get("children")),p.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=p.f.getSelected(this.libraryTreeKey,this.libraries).get("children");p.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=p.f.getSelected(this.folderTreeKey,this.libraries),i=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===o.length?n.get("name"):"",a=d.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,i,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,i)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=i.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new v.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),p.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(t.prototype,n),l&&S(t,l),Object.defineProperty(t,"prototype",{writable:!1}),w}(l.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[55],{1111:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return m}));var o,r=n(6),i=n(2),a=n(1155),u=n.n(a),c=n(1112),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 r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),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,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());r.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),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1112:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<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:r}):i)+'" class="img img-fluid" />'},useData:!0})},1301:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1434:function(e,t,n){"use strict";n.r(t),n.d(t,"ThumbnailUploadView",(function(){return E}));var o=n(1),r=n(6),i=n(2),a=n(30),u=n(19),c=n(5),l=n(3),s=n(305),p=n(0),f=n(265),h=n(319),d=n(9),g=n(13),m=n(1111),y=n(1301),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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}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,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),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.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")||i.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(){r.Radio.channel(this.channelName).trigger(m.a.CropImage),r.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()}}])&&w(t.prototype,n),y&&w(t,y),Object.defineProperty(t,"prototype",{writable:!1}),I}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[55],{1118:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return m}));var o,r=n(6),i=n(2),a=n(1162),u=n.n(a),c=n(1119),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 r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),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,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());r.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),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1119:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<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:r}):i)+'" class="img img-fluid" />'},useData:!0})},1308:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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,o,r){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){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,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1441:function(e,t,n){"use strict";n.r(t),n.d(t,"ThumbnailUploadView",(function(){return E}));var o=n(1),r=n(6),i=n(2),a=n(30),u=n(19),c=n(5),l=n(3),s=n(305),p=n(0),f=n(265),h=n(319),d=n(9),g=n(13),m=n(1118),y=n(1308),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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}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,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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}}),Object.defineProperty(e,"prototype",{writable:!1}),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.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")||i.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(){r.Radio.channel(this.channelName).trigger(m.a.CropImage),r.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()}}])&&w(t.prototype,n),y&&w(t,y),Object.defineProperty(t,"prototype",{writable:!1}),I}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[56],{1398:function(e,n,t){var r=t(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,c=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.middle:i,n))+'">\r\n <img src="/images/checked.png" class="p-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.checkedImage:i,n))+'">\r\n <h4>'+a((t.lang||n&&n.lang||u).call(c,"complete",{name:"lang",hash:{},data:o}))+"</h4>\r\n <p>\r\n "+a((t.lang||n&&n.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!=n?n.options:n)?i.onlineUrl:i,n))+'" target="_blank">'+a((t.lang||n&&n.lang||u).call(c,"checkItOut",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},1399:function(e,n,t){e.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},1460:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryCompleteView",(function(){return k}));var r=t(2),o=t(3),i=t(59),l=t(201),a=t(0),c=t(1398),u=t.n(c),f=t(1399),p=t.n(f);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 y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function m(e){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(e){return!1}}();return function(){var t,r=d(e);if(n){var o=d(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(s,e);var n,t,c,f=m(s);function s(){return y(this,s),f.apply(this,arguments)}return n=s,(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(p.a.migrationBackupContainer," ").concat(p.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:p.a,onlineUrl:i.a.urlBuilder(i.a.safeUrlConcat(this.config.get("onlineUrl"),"libraries"),{loginPrompt:!1})}}}])&&b(n.prototype,t),c&&b(n,c),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[56],{1405:function(e,n,t){var r=t(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,c=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.middle:i,n))+'">\r\n <img src="/images/checked.png" class="p-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.checkedImage:i,n))+'">\r\n <h4>'+a((t.lang||n&&n.lang||u).call(c,"complete",{name:"lang",hash:{},data:o}))+"</h4>\r\n <p>\r\n "+a((t.lang||n&&n.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!=n?n.options:n)?i.onlineUrl:i,n))+'" target="_blank">'+a((t.lang||n&&n.lang||u).call(c,"checkItOut",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},1406:function(e,n,t){e.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},1467:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryCompleteView",(function(){return k}));var r=t(2),o=t(3),i=t(57),l=t(201),a=t(0),c=t(1405),u=t.n(c),f=t(1406),p=t.n(f);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 y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function m(e){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(e){return!1}}();return function(){var t,r=d(e);if(n){var o=d(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(s,e);var n,t,c,f=m(s);function s(){return y(this,s),f.apply(this,arguments)}return n=s,(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(p.a.migrationBackupContainer," ").concat(p.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:p.a,onlineUrl:i.a.urlBuilder(i.a.safeUrlConcat(this.config.get("onlineUrl"),"libraries"),{loginPrompt:!1})}}}])&&b(n.prototype,t),c&&b(n,c),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[57],{1396:function(e,t,r){e.exports={backupProgress:"sg8Kg",info:"_2HxTI",progress:"hbLuA",migrationBackupContainer:"_2lpDI"}},1397:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<h4 class="pb-4">'+c((r.lang||t&&t.lang||s).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+c((r.lang||t&&t.lang||s).call(a,"body",{name:"lang",hash:{},data:o}))+"\r\n <br>\r\n "+c((r.lang||t&&t.lang||s).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</p>"},useData:!0})},1479:function(e,t,r){"use strict";r.r(t);var n,o=r(6),i=r(2),a=r(5),s=r(30),c=r(3),l=r(0),u=r(1113),p=r(489);!function(e){e[e.Processing=1]="Processing",e[e.Completed=2]="Completed",e[e.Queued=3]="Queued"}(n||(n={}));var f=r(324),g=r(1396),h=r(1397);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"PublishLibraryProgressView",(function(){return k}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(w,e);var t,r,y,P=v(w);function w(){return d(this,w),P.apply(this,arguments)}return t=w,(r=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(l.g.MigrationVideo,this),this.viewModel=s.a.get("publish:library:progress",{percentage:0})}},{key:"name",get:function(){return"PublishLibraryProgressView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat(g.migrationBackupContainer," ").concat(g.backupProgress)}},{key:"template",get:function(){return h}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getPublishLibrariesProgress(p.a.Phase2,(function(t){if(!e.isDestroyed()){if(t.get("type")!==p.a.Phase2)return e.progress=0,void setTimeout((function(){return e.poll()}),3e3);e.progress=100*t.get("progressPercentage"),e.setPercentage(),t.get("status")!==n.Completed?setTimeout((function(){return e.poll()}),3e3):e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){o.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"),i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE})}))}}))}},{key:"setPercentage",value:function(){this.progress&&this.viewModel.set({percentage:Math.round(this.progress)})}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new u.g({model:this.viewModel,text:c.a.getPhrase(this.lang,"hasBeenPublished"),class:g.progress}))}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}}])&&b(t.prototype,r),y&&b(t,y),Object.defineProperty(t,"prototype",{writable:!1}),w}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[57],{1403:function(e,t,r){e.exports={backupProgress:"sg8Kg",info:"_2HxTI",progress:"hbLuA",migrationBackupContainer:"_2lpDI"}},1404:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<h4 class="pb-4">'+c((r.lang||t&&t.lang||s).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+c((r.lang||t&&t.lang||s).call(a,"body",{name:"lang",hash:{},data:o}))+"\r\n <br>\r\n "+c((r.lang||t&&t.lang||s).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</p>"},useData:!0})},1486:function(e,t,r){"use strict";r.r(t);var n,o=r(6),i=r(2),a=r(5),s=r(30),c=r(3),l=r(0),u=r(1120),p=r(490);!function(e){e[e.Processing=1]="Processing",e[e.Completed=2]="Completed",e[e.Queued=3]="Queued"}(n||(n={}));var f=r(324),g=r(1403),h=r(1404);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"PublishLibraryProgressView",(function(){return k}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(w,e);var t,r,y,P=v(w);function w(){return d(this,w),P.apply(this,arguments)}return t=w,(r=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(l.g.MigrationVideo,this),this.viewModel=s.a.get("publish:library:progress",{percentage:0})}},{key:"name",get:function(){return"PublishLibraryProgressView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat(g.migrationBackupContainer," ").concat(g.backupProgress)}},{key:"template",get:function(){return h}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getPublishLibrariesProgress(p.a.Phase2,(function(t){if(!e.isDestroyed()){if(t.get("type")!==p.a.Phase2)return e.progress=0,void setTimeout((function(){return e.poll()}),3e3);e.progress=100*t.get("progressPercentage"),e.setPercentage(),t.get("status")!==n.Completed?setTimeout((function(){return e.poll()}),3e3):e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){o.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"),i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE})}))}}))}},{key:"setPercentage",value:function(){this.progress&&this.viewModel.set({percentage:Math.round(this.progress)})}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new u.g({model:this.viewModel,text:c.a.getPhrase(this.lang,"hasBeenPublished"),class:g.progress}))}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}}])&&b(t.prototype,r),y&&b(t,y),Object.defineProperty(t,"prototype",{writable:!1}),w}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[58],{1368:function(n,e,t){n.exports={complete:"_2YgCz",middle:"_2QcuL",checkedImage:"_30_1Z",warningImage:"_2gF7F"}},1369:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({1:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/warning.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.warningImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"errorHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"errorDescription",{name:"lang",hash:{},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"continueAnyway",{name:"lang",hash:{},data:a}))+'</a>\r\n <p class="mt-3">'+(null!=(i=(t.lang||e&&e.lang||c).call(l,"bookAnAppointment",{name:"lang",hash:{url:null!=(i=null!=e?e.options:e)?i.appointmentUrl:i,linkClasses:"info-link"},data:a}))?i:"")+"</p>\r\n"},3:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/checked.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.checkedImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"completeHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"completeBody",{name:"lang",hash:{archiveSvg:null!=(i=null!=e?e.options:e)?i.archiveSvg:i},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"getStarted",{name:"lang",hash:{},data:a}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(n,e,t,r,a){var i;n.propertyIsEnumerable;return'<div class="'+n.escapeExpression(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.middle:i,e))+'">\r\n'+(null!=(i=t.if.call(null!=e?e:n.nullContext||{},null!=(i=null!=e?e.options:e)?i.error:i,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.program(3,a,0),data:a}))?i:"")+"</div>"},useData:!0})},1454:function(n,e,t){"use strict";t.r(e),t.d(e,"PublisherBackupCompleteView",(function(){return S}));var r=t(59),a=t(2),i=t(5),o=t(3),l=t(16),c=t(201),u=t(0),s=t(57),p=t(1368),f=t.n(p),g=t(1369),h=t.n(g);function d(n){return(d="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 m(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function y(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 b(n,e){return(b=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function v(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=w(n);if(e){var a=w(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return k(this,t)}}function k(n,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function w(n){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var S=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}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&b(n,e)}(d,n);var e,t,p,g=v(d);function d(){return m(this,d),g.apply(this,arguments)}return e=d,(t=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_METADATA,":sync"),this.render)}},{key:"name",get:function(){return"PublisherBackupCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupComplete"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(f.a.migrationBackupContainer," ").concat(f.a.complete)}},{key:"template",get:function(){return h.a}},{key:"viewOptions",value:function(){return{styles:f.a,error:this.hasErrored(),archiveSvg:'<span class="d-inline-block align-middle svg-container">\n '.concat(l.a.getSvg(l.b.PublisherArchive),"</span>"),appointmentUrl:"\n ".concat(r.a.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment?type=library-editor-publisher-backup-tool"),"\n ")}}},{key:"appLinks",get:function(){return{".applink-start-migration":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.START_MIGRATION}}}},{key:"requiredResources",get:function(){return{config:c.b.config}}},{key:"onBeforeRender",value:function(){var n=this;return this.migrationVideoDataService.getCustomerMetadata((function(e){n.metadata=e})),!!this.metadata}},{key:"onRender",value:function(){!this.pollingStarted&&this.hasErrored()&&(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"hasErrored",value:function(){return s.a.backupCompleteWithError(this.metadata)}},{key:"pollCloudSyncStatus",value:function(){var n=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(e){n.isDestroyed()||(s.a.backupProcessing(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_PROGRESS}):s.a.backupCompleteWithoutError(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return n.pollCloudSyncStatus()}),3e4))}))}}])&&y(e.prototype,t),p&&y(e,p),Object.defineProperty(e,"prototype",{writable:!1}),d}(a.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[58],{1375:function(n,e,t){n.exports={complete:"_2YgCz",middle:"_2QcuL",checkedImage:"_30_1Z",warningImage:"_2gF7F"}},1376:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({1:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/warning.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.warningImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"errorHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"errorDescription",{name:"lang",hash:{},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"continueAnyway",{name:"lang",hash:{},data:a}))+'</a>\r\n <p class="mt-3">'+(null!=(i=(t.lang||e&&e.lang||c).call(l,"bookAnAppointment",{name:"lang",hash:{url:null!=(i=null!=e?e.options:e)?i.appointmentUrl:i,linkClasses:"info-link"},data:a}))?i:"")+"</p>\r\n"},3:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/checked.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.checkedImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"completeHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"completeBody",{name:"lang",hash:{archiveSvg:null!=(i=null!=e?e.options:e)?i.archiveSvg:i},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"getStarted",{name:"lang",hash:{},data:a}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(n,e,t,r,a){var i;n.propertyIsEnumerable;return'<div class="'+n.escapeExpression(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.middle:i,e))+'">\r\n'+(null!=(i=t.if.call(null!=e?e:n.nullContext||{},null!=(i=null!=e?e.options:e)?i.error:i,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.program(3,a,0),data:a}))?i:"")+"</div>"},useData:!0})},1461:function(n,e,t){"use strict";t.r(e),t.d(e,"PublisherBackupCompleteView",(function(){return S}));var r=t(57),a=t(2),i=t(5),o=t(3),l=t(16),c=t(201),u=t(0),s=t(58),p=t(1375),f=t.n(p),g=t(1376),h=t.n(g);function d(n){return(d="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 m(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function y(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 b(n,e){return(b=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function v(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=w(n);if(e){var a=w(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return k(this,t)}}function k(n,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function w(n){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var S=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}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&b(n,e)}(d,n);var e,t,p,g=v(d);function d(){return m(this,d),g.apply(this,arguments)}return e=d,(t=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_METADATA,":sync"),this.render)}},{key:"name",get:function(){return"PublisherBackupCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupComplete"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(f.a.migrationBackupContainer," ").concat(f.a.complete)}},{key:"template",get:function(){return h.a}},{key:"viewOptions",value:function(){return{styles:f.a,error:this.hasErrored(),archiveSvg:'<span class="d-inline-block align-middle svg-container">\n '.concat(l.a.getSvg(l.b.PublisherArchive),"</span>"),appointmentUrl:"\n ".concat(r.a.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment?type=library-editor-publisher-backup-tool"),"\n ")}}},{key:"appLinks",get:function(){return{".applink-start-migration":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.START_MIGRATION}}}},{key:"requiredResources",get:function(){return{config:c.b.config}}},{key:"onBeforeRender",value:function(){var n=this;return this.migrationVideoDataService.getCustomerMetadata((function(e){n.metadata=e})),!!this.metadata}},{key:"onRender",value:function(){!this.pollingStarted&&this.hasErrored()&&(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"hasErrored",value:function(){return s.a.backupCompleteWithError(this.metadata)}},{key:"pollCloudSyncStatus",value:function(){var n=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(e){n.isDestroyed()||(s.a.backupProcessing(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_PROGRESS}):s.a.backupCompleteWithoutError(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return n.pollCloudSyncStatus()}),3e4))}))}}])&&y(e.prototype,t),p&&y(e,p),Object.defineProperty(e,"prototype",{writable:!1}),d}(a.a.View)}}]);