@clickview/library-editor 1.32.1-rc.9 → 1.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{1365-library-editor-1d7adbc419.chunk.css → 1365-library-editor-b5feb30d27.chunk.css} +1 -1
  3. package/dist/css/{343-library-editor-a18c10202d.chunk.css → 343-library-editor-78937ca69b.chunk.css} +1 -1
  4. package/dist/css/{library-editor-app-665e27378b.css → library-editor-app-6a22fa58bd.css} +1 -1
  5. package/dist/scripts/{1010-9a727bc31b.chunk.js → 1010-c562d100ac.chunk.js} +1 -1
  6. package/dist/scripts/{1086-1e49d7436c.chunk.js → 1086-fe154012dd.chunk.js} +1 -1
  7. package/dist/scripts/{1216-3680236a27.chunk.js → 1216-d126efc56b.chunk.js} +1 -1
  8. package/dist/scripts/{1269-6898014713.chunk.js → 1269-b89af42699.chunk.js} +1 -1
  9. package/dist/scripts/{1364-bfc0e5e952.chunk.js → 1364-cf026e17a7.chunk.js} +1 -1
  10. package/dist/scripts/{1409-c246297ba5.chunk.js → 1409-9e6588218a.chunk.js} +1 -1
  11. package/dist/scripts/{1492-773cacc5a6.chunk.js → 1492-86b5115bf1.chunk.js} +1 -1
  12. package/dist/scripts/{1601-0515073058.chunk.js → 1601-761890ed99.chunk.js} +2 -2
  13. package/dist/scripts/{1832-3f3a594798.chunk.js → 1832-46e6e69a89.chunk.js} +1 -1
  14. package/dist/scripts/{1887-1f10bdcd32.chunk.js → 1887-954988b80e.chunk.js} +1 -1
  15. package/dist/scripts/{1911-18bde23552.chunk.js → 1911-50beb412a1.chunk.js} +1 -1
  16. package/dist/scripts/{2254-b4c9b27888.chunk.js → 2254-74f8b1db7d.chunk.js} +1 -1
  17. package/dist/scripts/{2417-d01c128302.chunk.js → 2417-9b4c6ac8e4.chunk.js} +1 -1
  18. package/dist/scripts/{243-a0b55560d0.chunk.js → 243-aff3f572f3.chunk.js} +1 -1
  19. package/dist/scripts/{259-e822ff0c6a.chunk.js → 259-835a687da2.chunk.js} +1 -1
  20. package/dist/scripts/{2692-4dec659d9d.chunk.js → 2692-aa369df8c9.chunk.js} +1 -1
  21. package/dist/scripts/{2888-0eeb8ded06.chunk.js → 2888-b65b230077.chunk.js} +1 -1
  22. package/dist/scripts/{299-5b7a541e04.chunk.js → 299-268a19c153.chunk.js} +1 -1
  23. package/dist/scripts/{3096-43d050bc6c.chunk.js → 3096-7d1b4d32f3.chunk.js} +1 -1
  24. package/dist/scripts/{3400-a38cfe2a5d.chunk.js → 3400-c76a38cdf8.chunk.js} +1 -1
  25. package/dist/scripts/{3763-6f873cc545.chunk.js → 3763-dc8ddac371.chunk.js} +1 -1
  26. package/dist/scripts/{4177-b807d4cbf3.chunk.js → 4177-ac15a97029.chunk.js} +1 -1
  27. package/dist/scripts/{4201-84a6867187.chunk.js → 4201-fc24c245e7.chunk.js} +1 -1
  28. package/dist/scripts/{4245-eda4ba288d.chunk.js → 4245-f6d4caa7ef.chunk.js} +1 -1
  29. package/dist/scripts/{4483-a3a6f90626.chunk.js → 4483-ef508f58e2.chunk.js} +1 -1
  30. package/dist/scripts/{4591-55fa691940.chunk.js → 4591-cb921b33c7.chunk.js} +1 -1
  31. package/dist/scripts/{4860-d42be62696.chunk.js → 4860-da56ee92fd.chunk.js} +1 -1
  32. package/dist/scripts/{4885-fd8bf4e706.chunk.js → 4885-df54f067a6.chunk.js} +1 -1
  33. package/dist/scripts/{514-0d0d21f74f.chunk.js → 514-3ffe5b2338.chunk.js} +1 -1
  34. package/dist/scripts/{5412-789cbf80a3.chunk.js → 5412-893fd84406.chunk.js} +1 -1
  35. package/dist/scripts/{5418-c1287e4896.chunk.js → 5418-999daec1b7.chunk.js} +1 -1
  36. package/dist/scripts/{5424-b185ba8a45.chunk.js → 5424-b39db67d02.chunk.js} +1 -1
  37. package/dist/scripts/{5747-a8c2c34cc9.chunk.js → 5747-2973b05689.chunk.js} +1 -1
  38. package/dist/scripts/5987-aeaa816e6a.chunk.js +2 -0
  39. package/dist/scripts/{6093-d497dc9474.chunk.js → 6093-25b1188c94.chunk.js} +1 -1
  40. package/dist/scripts/{6220-dfa7ef3ad3.chunk.js → 6220-df69ae5053.chunk.js} +1 -1
  41. package/dist/scripts/{6357-8477d01a86.chunk.js → 6357-fce36786e9.chunk.js} +1 -1
  42. package/dist/scripts/{6505-46dfa6d08b.chunk.js → 6505-a55246ec06.chunk.js} +1 -1
  43. package/dist/scripts/{6732-85c7bcbc36.chunk.js → 6732-d5590f299f.chunk.js} +1 -1
  44. package/dist/scripts/{6774-c9e8698d5c.chunk.js → 6774-9b62595255.chunk.js} +1 -1
  45. package/dist/scripts/{6995-861706c8b2.chunk.js → 6995-a6f779a727.chunk.js} +1 -1
  46. package/dist/scripts/{6999-c5f81dd42b.chunk.js → 6999-2764068f9b.chunk.js} +1 -1
  47. package/dist/scripts/{7002-9a93ae8759.chunk.js → 7002-582dbef73b.chunk.js} +1 -1
  48. package/dist/scripts/{7053-92f3e0d18d.chunk.js → 7053-3ad3048d55.chunk.js} +1 -1
  49. package/dist/scripts/{708-b2c98b2d1b.chunk.js → 708-cdef619781.chunk.js} +1 -1
  50. package/dist/scripts/{7376-753fc6cb76.chunk.js → 7376-92729fc093.chunk.js} +1 -1
  51. package/dist/scripts/{7634-05b848303a.chunk.js → 7634-fd72053962.chunk.js} +1 -1
  52. package/dist/scripts/{8362-e662057f79.chunk.js → 8362-5162287e67.chunk.js} +1 -1
  53. package/dist/scripts/{8727-64f4904f76.chunk.js → 8727-0d05d3801e.chunk.js} +1 -1
  54. package/dist/scripts/{8762-97ee795453.chunk.js → 8762-6223770914.chunk.js} +1 -1
  55. package/dist/scripts/{8906-2f788f9242.chunk.js → 8906-59be878f1d.chunk.js} +1 -1
  56. package/dist/scripts/{8947-c600642573.chunk.js → 8947-fcd146181d.chunk.js} +1 -1
  57. package/dist/scripts/9219-35153de9d2.chunk.js +1 -0
  58. package/dist/scripts/{9357-8cae90b1de.chunk.js → 9357-fade2427e7.chunk.js} +1 -1
  59. package/dist/scripts/{9695-ad43223301.chunk.js → 9695-d90471521a.chunk.js} +1 -1
  60. package/dist/scripts/{9927-faf9b990b5.chunk.js → 9927-bc9223c826.chunk.js} +1 -1
  61. package/dist/scripts/{9976-50187a4e16.chunk.js → 9976-f4bb28d542.chunk.js} +1 -1
  62. package/dist/scripts/bundle-f9d18db9a1.min.js +2 -0
  63. package/package.json +73 -73
  64. package/typings/libs/CVEvents.d.ts +12 -12
  65. package/typings/libs/CVLanguages.d.ts +24 -24
  66. package/typings/libs/Environment.d.ts +10 -10
  67. package/typings/libs/LazyLoad.d.ts +29 -29
  68. package/typings/libs/LazyLoad.ts +27 -27
  69. package/typings/libs/backbone.validation.d.ts +99 -99
  70. package/typings/libs/cloneDeep.d.ts +4 -4
  71. package/typings/libs/cookiesjs.d.ts +24 -24
  72. package/typings/libs/google-api.d.ts +4 -4
  73. package/typings/libs/microsoft-teams.d.ts +2 -2
  74. package/typings/libs/trackjs.d.ts +2 -2
  75. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  76. package/typings/utils/imports.d.ts +9 -9
  77. package/dist/scripts/5987-1ccc1c7fe7.chunk.js +0 -2
  78. package/dist/scripts/9219-08f61ab7ad.chunk.js +0 -1
  79. package/dist/scripts/bundle-625efe42cd.min.js +0 -2
  80. /package/dist/scripts/{1365-8e672324a7.chunk.js → 1365-7669181753.chunk.js} +0 -0
  81. /package/dist/scripts/{1601-0515073058.chunk.js.LICENSE.txt → 1601-761890ed99.chunk.js.LICENSE.txt} +0 -0
  82. /package/dist/scripts/{343-f7bd216317.chunk.js → 343-00ec0d32b8.chunk.js} +0 -0
  83. /package/dist/scripts/{5987-1ccc1c7fe7.chunk.js.LICENSE.txt → 5987-aeaa816e6a.chunk.js.LICENSE.txt} +0 -0
  84. /package/dist/scripts/{bundle-625efe42cd.min.js.LICENSE.txt → bundle-f9d18db9a1.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return s}});var n=r(48088),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){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,(void 0,o=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===c(o)?o:String(o)),n)}var o}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,r,o,i,s=(o=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),s.apply(this,arguments)}return t=p,(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:"template",get:function(){return u()}},{key:"className",get:function(){return"mt-5"}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Q.G7)},78084:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\n<div class="alert alert-danger" role="alert">\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\n</div>\n<div class="alert alert-warning" role="alert">\n <h3>Call stack</h3>\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return s}});var n=r(48088),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){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,(void 0,o=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===c(o)?o:String(o)),n)}var o}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,r,o,i,s=(o=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),s.apply(this,arguments)}return t=p,(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:"template",get:function(){return u()}},{key:"className",get:function(){return"mt-5"}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Q.G7)},78084:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\r\n<div class="alert alert-danger" role="alert">\r\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\r\n</div>\r\n<div class="alert alert-warning" role="alert">\r\n <h3>Call stack</h3>\r\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\r\n</div>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return O}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),l=n(99249),c=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(48090),d=n(29457),y=n(18375),g=n(61843),m=n(66266),v=n.n(m);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function 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,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(E,e);var t,n,m,O,I=(m=E,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(m);if(O){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),I.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(h.Or.Library,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.viewModel=l.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return v()}},{key:"channelName",get:function(){return g.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.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,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||c.Q.Ry.throw(new i.H("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(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.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 y.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Banners,minWidth:h.yE[d.__.Banners].width,minHeight:h.yE[d.__.Banners].height,getCropRegionWidth:o.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:g.Kp.getSpinner({size:g.Ey.Large,extraClasses:"mx-auto"})}}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(c.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return d}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),l=n(91465),c=n.n(l);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},s(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,(void 0,o=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,i,u,l=(i=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e)}return t=d,(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 c()}},{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(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),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Q.wA)},66266:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<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})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return O}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),l=n(99249),c=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(48090),d=n(29457),y=n(18375),g=n(61843),m=n(66266),v=n.n(m);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function 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,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(E,e);var t,n,m,O,I=(m=E,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(m);if(O){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),I.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(h.Or.Library,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.viewModel=l.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return v()}},{key:"channelName",get:function(){return g.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.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,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||c.Q.Ry.throw(new i.H("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(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.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 y.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Banners,minWidth:h.yE[d.__.Banners].width,minHeight:h.yE[d.__.Banners].height,getCropRegionWidth:o.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:g.Kp.getSpinner({size:g.Ey.Large,extraClasses:"mx-auto"})}}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(c.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return d}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),l=n(91465),c=n.n(l);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},s(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,(void 0,o=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,i,u,l=(i=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),l.call(this,e)}return t=d,(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 c()}},{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(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),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Q.wA)},66266:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<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})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4177],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var r=n(39479),i=n(31647),o=n(52076),a=n(70065),c=n(99186),u=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},s(e)}function l(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,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,i,c,y=(i=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(i);if(c){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,e)}return t=h,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:r.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,i=e,(n=p(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t))};var t,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=o.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),n={id:this.options.collectionId,page:e};o.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Q.wA)},4113:function(e,t,n){"use strict";n.r(t),n.d(t,{RestrictedVideoListView:function(){return V}});var r=n(21679),i=n(57857),o=n(31647),a=n(59054),c=n(25692),u=n(56210),s=n(47022),l=n(98985),p=n(63791),f=n(70763),d=n(57085),y=n(58688),h=n(23096),b=n(48090),v=n(29457),m=n(71192),g=n(48404),k=n(19226),w=n(264),O=n(95061),P=n(12827),E=n.n(P);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},S(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===S(i)?i:String(i)),r)}var i}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(_,e);var t,n,o,P,V=(o=_,P=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R(o);if(P){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function _(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),V.call(this,e)}return t=_,(n=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=r.u.getInstance(b.Or.RestrictedVideo,this),this.videoDataService=r.u.getInstance(b.Or.Video,this),this.playerDataService=r.u.getInstance(b.Or.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":invalidate"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return E()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:u.H,selector:".info-tooltip",title:i.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:v.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:v.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(e){return new m.n({id:e.get("id")})}))))}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,a.f.MasterObject,t)}},{key:"renderVideoList",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new h.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:b.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.U.VideoAccess,config:this.config,emptyStateType:v.ub.VideoAccess,emptyStateOptions:{heading:i.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!e,showEmptyState:!0,libraries:this.libraries,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.Q({cursors:e,appLink:{application:b.OV.VIDEO_ACCESS,action:b.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new d.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:i.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:i.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var r=t.videosWithMetadata.get(e);r&&(r.set(n.toJSON()),r.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:k.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){return{supportUrl:!w.g.hasLite&&l.o.getOnlineArticle(c.s.VideoAccess),svg:p.Nj.getSvg(p.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),_}(o.Q.G7)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return E}});var r=n(31647),i=n(48090),o=n(22557),a=n(86363),c=n.n(a);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===u(i)?i:String(i)),r)}var i}function p(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function 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 n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return c()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.wA),v=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return b}}]),n}(r.Q.$W),m=n(93933),g=n.n(m);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function 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,(void 0,i=function(e,t){if("object"!==k(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===k(i)?i:String(i)),r)}var i}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(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&&O(e,t)}(s,e);var t,n,a,c,u=(a=s,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(a);if(c){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return g()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new r.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=o.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?i.eX.LibraryEditor.FOLDER:i.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.Q.wA)},99186:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(o=n.unless.call(a,null!=(o=null!=(o=null!=t?t.options:t)?o.cursors:o)?o.previous:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(o=n.unless.call(a,null!=(o=null!=(o=null!=t?t.options:t)?o.cursors:o)?o.next:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\n</div>"},useData:!0})},12827:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return' <a class="d-inline-block ms-2 svg-container sm info-tooltip" href="'+e.escapeExpression(a(null!=(o=null!=t?t.options:t)?o.supportUrl:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="ps-3 pt-3 pe-3">\n <div class="border-bottom">\n <div class="d-flex align-items-center pb-2">\n <h1 class="h3 d-inline-block m-0">'+u((n.lang||t&&t.lang||c).call(a,"heading",{name:"lang",hash:{},data:i}))+" </h1>\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.supportUrl:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' </div>\n <div class="breadcrumbs-region"></div>\n <p class="pb-3 pt-2 m-0">\n '+u((n.lang||t&&t.lang||c).call(a,"description",{name:"lang",hash:{},data:i}))+'\n </p>\n </div> \n</div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n<div class="empty-region"></div>'},useData:!0})},86363:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</span>\n"},3:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.isActive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})},93933:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4177],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var r=n(39479),i=n(31647),o=n(52076),a=n(70065),c=n(99186),u=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},s(e)}function l(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,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,i,c,y=(i=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(i);if(c){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,e)}return t=h,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:r.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,i=e,(n=p(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t))};var t,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=o.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),n={id:this.options.collectionId,page:e};o.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Q.wA)},4113:function(e,t,n){"use strict";n.r(t),n.d(t,{RestrictedVideoListView:function(){return V}});var r=n(21679),i=n(57857),o=n(31647),a=n(59054),c=n(25692),u=n(56210),s=n(47022),l=n(98985),p=n(63791),f=n(70763),d=n(57085),y=n(58688),h=n(23096),b=n(48090),v=n(29457),m=n(71192),g=n(48404),k=n(19226),w=n(264),O=n(95061),P=n(12827),E=n.n(P);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},S(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===S(i)?i:String(i)),r)}var i}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(_,e);var t,n,o,P,V=(o=_,P=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R(o);if(P){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(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)}(this,e)});function _(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),V.call(this,e)}return t=_,(n=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=r.u.getInstance(b.Or.RestrictedVideo,this),this.videoDataService=r.u.getInstance(b.Or.Video,this),this.playerDataService=r.u.getInstance(b.Or.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":invalidate"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return E()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:u.H,selector:".info-tooltip",title:i.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:v.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:v.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(e){return new m.n({id:e.get("id")})}))))}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,a.f.MasterObject,t)}},{key:"renderVideoList",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new h.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:b.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.U.VideoAccess,config:this.config,emptyStateType:v.ub.VideoAccess,emptyStateOptions:{heading:i.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!e,showEmptyState:!0,libraries:this.libraries,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.Q({cursors:e,appLink:{application:b.OV.VIDEO_ACCESS,action:b.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new d.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:i.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:i.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var r=t.videosWithMetadata.get(e);r&&(r.set(n.toJSON()),r.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:k.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){return{supportUrl:!w.g.hasLite&&l.o.getOnlineArticle(c.s.VideoAccess),svg:p.Nj.getSvg(p.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),_}(o.Q.G7)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return E}});var r=n(31647),i=n(48090),o=n(22557),a=n(86363),c=n.n(a);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,i=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===u(i)?i:String(i)),r)}var i}function p(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function 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 n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return c()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.wA),v=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return b}}]),n}(r.Q.$W),m=n(93933),g=n.n(m);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function 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,(void 0,i=function(e,t){if("object"!==k(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===k(i)?i:String(i)),r)}var i}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(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&&O(e,t)}(s,e);var t,n,a,c,u=(a=s,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(a);if(c){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return g()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new r.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=o.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?i.eX.LibraryEditor.FOLDER:i.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.Q.wA)},99186:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(o=n.unless.call(a,null!=(o=null!=(o=null!=t?t.options:t)?o.cursors:o)?o.previous:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(o=n.unless.call(a,null!=(o=null!=(o=null!=t?t.options:t)?o.cursors:o)?o.next:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},12827:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return' <a class="d-inline-block ms-2 svg-container sm info-tooltip" href="'+e.escapeExpression(a(null!=(o=null!=t?t.options:t)?o.supportUrl:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="ps-3 pt-3 pe-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-2">\r\n <h1 class="h3 d-inline-block m-0">'+u((n.lang||t&&t.lang||c).call(a,"heading",{name:"lang",hash:{},data:i}))+" </h1>\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.supportUrl:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' </div>\r\n <div class="breadcrumbs-region"></div>\r\n <p class="pb-3 pt-2 m-0">\r\n '+u((n.lang||t&&t.lang||c).call(a,"description",{name:"lang",hash:{},data:i}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},86363:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</span>\r\n"},3:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.isActive:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})},93933:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4201],{74201:function(e,t,r){"use strict";r.r(t),r.d(t,{NewLibraryView:function(){return P}});var n=r(48088),o=r(21679),i=r(57857),a=r(99249),u=r(31647),c=r(36357),l=r(10101),s=r(88172),f=r(48090),p=r(67670),y=r(24539),b=r(19226),h=r(61843),m=r(56906),v=r(95061),d=r(7190),g=r(15110),w=r.n(g);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function 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,(void 0,o=function(e,t){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===O(o)?o:String(o)),n)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(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&&k(e,t)}(E,e);var t,r,g,P,_=(g=E,P=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(g);if(P){var r=j(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return 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)}(this,e)});function E(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),_.apply(this,arguments)}return t=E,(r=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:y.Z}),this.bindListeners(),this.settingsDataService=o.u.getInstance(f.Or.Settings,this),this.libraryDataService=o.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SETTINGS,"".concat(f.M_.CUSTOMER_SETTINGS,":sync ").concat(f.M_.USER_SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return w()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.fS,modelValidation:d.Y7},{behaviorClass:l.Bp},{behaviorClass:l.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new p.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),u.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:b.K.currentUser,libraries:v.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),c.E.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?u.Q.Ry.throw(new m.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}}])&&S(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),E}(u.Q.G7)},67670:function(e,t,r){"use strict";r.d(t,{v:function(){return f}});var n=r(31647),o=r(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(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,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,r,n,c,f=(n=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(r=[{key:"defaults",value:function(){var e;return a(e={},o.ZV.Disabled,!0),a(e,o.ZV.Hidden,!1),e}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(n.Q.Hn)},15110:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,r,n,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4201],{74201:function(e,t,r){"use strict";r.r(t),r.d(t,{NewLibraryView:function(){return P}});var n=r(48088),o=r(21679),i=r(57857),a=r(99249),u=r(31647),c=r(36357),l=r(10101),s=r(88172),f=r(48090),p=r(67670),y=r(24539),b=r(19226),h=r(61843),m=r(56906),v=r(95061),d=r(7190),g=r(15110),w=r.n(g);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function 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,(void 0,o=function(e,t){if("object"!==O(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===O(o)?o:String(o)),n)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(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&&k(e,t)}(E,e);var t,r,g,P,_=(g=E,P=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(g);if(P){var r=j(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return 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)}(this,e)});function E(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),_.apply(this,arguments)}return t=E,(r=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:y.Z}),this.bindListeners(),this.settingsDataService=o.u.getInstance(f.Or.Settings,this),this.libraryDataService=o.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SETTINGS,"".concat(f.M_.CUSTOMER_SETTINGS,":sync ").concat(f.M_.USER_SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return w()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.fS,modelValidation:d.Y7},{behaviorClass:l.Bp},{behaviorClass:l.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new p.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),u.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:b.K.currentUser,libraries:v.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),c.E.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?u.Q.Ry.throw(new m.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}}])&&S(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),E}(u.Q.G7)},67670:function(e,t,r){"use strict";r.d(t,{v:function(){return f}});var n=r(31647),o=r(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(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,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,r,n,c,f=(n=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(n);if(c){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(r=[{key:"defaults",value:function(){var e;return a(e={},o.ZV.Disabled,!0),a(e,o.ZV.Hidden,!1),e}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(n.Q.Hn)},15110:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4245],{34245:function(t,n,e){"use strict";e.r(n),e.d(n,{NotificationsView:function(){return P}});var i=e(21679),o=e(57857),r=e(31647),a=e(43129),s=e(23859),c=e(33955),l=e(11543),u=e(70125),f=e(47022),p=e(33303),y=e(4039),h=e(24355),v=e.n(h),b=e(38900),d=e.n(b),g=e(58081);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},m(t)}function k(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,n){if("object"!==m(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===m(o)?o:String(o)),i)}var o}function w(t,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},w(t,n)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}var P=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)}(j,t);var n,e,h,b,P=(h=j,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=O(h);if(b){var e=O(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return function(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)}(this,t)});function j(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,j),P.call(this,t)}return n=j,(e=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return d()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:u.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:v(),className:"px-1 py-2",viewOptions:{styles:g.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(l.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new p.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new f.Q({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{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),Object.defineProperty(n,"prototype",{writable:!1}),j}(r.Q.G7)},47022:function(t,n,e){"use strict";e.d(n,{Q:function(){return h}});var i=e(39479),o=e(31647),r=e(52076),a=e(70065),s=e(99186),c=e.n(s);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function f(t){var n=function(t,n){if("object"!==l(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(n)?n:String(n)}function p(t,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},p(t,n)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(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&&p(t,n)}(v,t);var n,e,o,s,h=(o=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=y(o);if(s){var e=y(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===l(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)}(this,t)});function v(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,v),h.call(this,t)}return n=v,(e=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{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:i.extend({},this.options.appLink.params,(n={},e=this.options.cursorParamName,o=t,(e=f(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n))};var n,e,o}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=r.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),e={id:this.options.collectionId,page:t};r.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),v}(o.Q.wA)},38900:function(t,n,e){var i=e(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\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:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},99186:function(t,n,e){var i=e(32227);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(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,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(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,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4245],{34245:function(t,n,e){"use strict";e.r(n),e.d(n,{NotificationsView:function(){return P}});var i=e(21679),o=e(57857),r=e(31647),a=e(43129),s=e(23859),c=e(33955),l=e(11543),u=e(70125),f=e(47022),p=e(33303),y=e(4039),h=e(24355),v=e.n(h),b=e(38900),d=e.n(b),g=e(58081);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},m(t)}function k(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(void 0,o=function(t,n){if("object"!==m(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==m(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(i.key),"symbol"===m(o)?o:String(o)),i)}var o}function w(t,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},w(t,n)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}var P=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)}(j,t);var n,e,h,b,P=(h=j,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=O(h);if(b){var e=O(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return function(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)}(this,t)});function j(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,j),P.call(this,t)}return n=j,(e=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return d()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:u.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:v(),className:"px-1 py-2",viewOptions:{styles:g.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(l.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new p.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new f.Q({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{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),Object.defineProperty(n,"prototype",{writable:!1}),j}(r.Q.G7)},47022:function(t,n,e){"use strict";e.d(n,{Q:function(){return h}});var i=e(39479),o=e(31647),r=e(52076),a=e(70065),s=e(99186),c=e.n(s);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function f(t){var n=function(t,n){if("object"!==l(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(n)?n:String(n)}function p(t,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},p(t,n)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(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&&p(t,n)}(v,t);var n,e,o,s,h=(o=v,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=y(o);if(s){var e=y(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return function(t,n){if(n&&("object"===l(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)}(this,t)});function v(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,v),h.call(this,t)}return n=v,(e=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{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:i.extend({},this.options.appLink.params,(n={},e=this.options.cursorParamName,o=t,(e=f(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n))};var n,e,o}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=r.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),e={id:this.options.collectionId,page:t};r.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),v}(o.Q.wA)},38900:function(t,n,e){var i=e(32227);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){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:o}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},99186:function(t,n,e){var i=e(32227);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){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-outline-dark '+(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,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(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,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})}}]);