@clickview/library-editor 1.7.0 → 1.7.1-rc.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 (116) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{6092-library-editor-09a4993819.chunk.css → 1819-library-editor-69e8f4675f.chunk.css} +2 -2
  3. package/dist/css/1832-library-editor-16982d18f9.chunk.css +2 -0
  4. package/dist/css/{3427-library-editor-2ba6a08f4c.chunk.css → 3427-library-editor-8442ad6453.chunk.css} +1 -1
  5. package/dist/css/4860-library-editor-27c2a56d40.chunk.css +2 -0
  6. package/dist/css/{5047-library-editor-d59ace1885.chunk.css → 5047-library-editor-3ed99ac07f.chunk.css} +1 -1
  7. package/dist/css/5747-library-editor-615300053c.chunk.css +2 -0
  8. package/dist/css/6093-library-editor-3b3ef2f270.chunk.css +2 -0
  9. package/dist/css/7053-library-editor-43ee5fb1f9.chunk.css +2 -0
  10. package/dist/css/9695-library-editor-a3a0f8d8e8.chunk.css +2 -0
  11. package/dist/css/9927-library-editor-e3b21e68b0.chunk.css +2 -0
  12. package/dist/css/{library-editor-app-832d87bac8.css → library-editor-app-4e790b757d.css} +1 -1
  13. package/dist/en.json +1 -1
  14. package/dist/scripts/1819-5e97050377.chunk.js +2 -0
  15. package/dist/scripts/{1832-89afc0b65d.chunk.js → 1832-9528386bfe.chunk.js} +1 -1
  16. package/dist/scripts/243-224b5eea73.chunk.js +1 -0
  17. package/dist/scripts/259-fb7e645a88.chunk.js +1 -0
  18. package/dist/scripts/{2802-6a6c18c88e.chunk.js → 2802-160b25677d.chunk.js} +1 -1
  19. package/dist/scripts/2803-f91683764c.chunk.js +1 -0
  20. package/dist/scripts/{3096-b12e6929ef.chunk.js → 3096-f61a91545d.chunk.js} +1 -1
  21. package/dist/scripts/{3427-4bb7be4830.chunk.js → 3427-1bd7b5956b.chunk.js} +1 -1
  22. package/dist/scripts/3639-8e4d2c9b84.chunk.js +1 -0
  23. package/dist/scripts/3746-7fca58c2db.chunk.js +1 -0
  24. package/dist/scripts/4201-973ee89615.chunk.js +1 -0
  25. package/dist/scripts/435-fbb6b4b01e.chunk.js +1 -0
  26. package/dist/scripts/4860-56e7955cd4.chunk.js +1 -0
  27. package/dist/scripts/{5047-ce9d715ba6.chunk.js → 5047-c22a3ab8f7.chunk.js} +1 -1
  28. package/dist/scripts/5248-c1cfd861cc.chunk.js +1 -0
  29. package/dist/scripts/5356-4583545486.chunk.js +1 -0
  30. package/dist/scripts/5412-51a270fe11.chunk.js +1 -0
  31. package/dist/scripts/{5431-ae8fb2a0d5.chunk.js → 5431-50ab5a6a35.chunk.js} +1 -1
  32. package/dist/scripts/{5747-e533b579f8.chunk.js → 5747-913fcc6f9c.chunk.js} +1 -1
  33. package/dist/scripts/{5967-4561d168be.chunk.js → 5967-5d8ab696d0.chunk.js} +1 -1
  34. package/dist/scripts/6093-67352f9ba1.chunk.js +1 -0
  35. package/dist/scripts/{6625-754683073a.chunk.js → 6625-a31763e7ef.chunk.js} +1 -1
  36. package/dist/scripts/{6788-7373d05068.chunk.js → 6788-4bd780e50b.chunk.js} +1 -1
  37. package/dist/scripts/7053-312e4779fe.chunk.js +1 -0
  38. package/dist/scripts/{7190-b9b56210c7.chunk.js → 7190-8c67f0b2c5.chunk.js} +1 -1
  39. package/dist/scripts/{8343-6cd7f8bc0c.chunk.js → 8343-774860a655.chunk.js} +1 -1
  40. package/dist/scripts/8362-ea6c7521b8.chunk.js +1 -0
  41. package/dist/scripts/8420-77604e5dd5.chunk.js +1 -0
  42. package/dist/scripts/8906-a5aa3d1286.chunk.js +1 -0
  43. package/dist/scripts/9195-db9407692d.chunk.js +1 -0
  44. package/dist/scripts/9298-33d2ab886e.chunk.js +1 -0
  45. package/dist/scripts/9695-72bc239f92.chunk.js +1 -0
  46. package/dist/scripts/9927-6933b86ad4.chunk.js +1 -0
  47. package/dist/scripts/bundle-43ee7c5321.min.js +2 -0
  48. package/package.json +1 -1
  49. package/dist/css/1832-library-editor-761fcb8755.chunk.css +0 -2
  50. package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +0 -2
  51. package/dist/css/5747-library-editor-a3e5ded646.chunk.css +0 -2
  52. package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +0 -2
  53. package/dist/css/7053-library-editor-96752915ef.chunk.css +0 -2
  54. package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +0 -2
  55. package/dist/scripts/243-9d49b60575.chunk.js +0 -1
  56. package/dist/scripts/259-01aab15df9.chunk.js +0 -1
  57. package/dist/scripts/2803-f77ffe8d6d.chunk.js +0 -1
  58. package/dist/scripts/3639-0103f45f8f.chunk.js +0 -1
  59. package/dist/scripts/4201-d09f8e78d9.chunk.js +0 -1
  60. package/dist/scripts/435-c96da17150.chunk.js +0 -1
  61. package/dist/scripts/4860-e790102563.chunk.js +0 -1
  62. package/dist/scripts/4983-f1497e81d9.chunk.js +0 -1
  63. package/dist/scripts/5248-5e71750de8.chunk.js +0 -1
  64. package/dist/scripts/5356-1daf7014ec.chunk.js +0 -1
  65. package/dist/scripts/5412-95411d83f3.chunk.js +0 -1
  66. package/dist/scripts/6092-b2d4926dbd.chunk.js +0 -2
  67. package/dist/scripts/6093-7981719748.chunk.js +0 -1
  68. package/dist/scripts/6183-90e0e42029.chunk.js +0 -1
  69. package/dist/scripts/7053-8ab28971fd.chunk.js +0 -1
  70. package/dist/scripts/8362-eafdfe9326.chunk.js +0 -1
  71. package/dist/scripts/8420-fae27640ba.chunk.js +0 -1
  72. package/dist/scripts/8906-16bf68d7a8.chunk.js +0 -1
  73. package/dist/scripts/9298-2d96858320.chunk.js +0 -1
  74. package/dist/scripts/9592-35ee192235.chunk.js +0 -1
  75. package/dist/scripts/9695-efcf04cb36.chunk.js +0 -1
  76. package/dist/scripts/bundle-56d7cf88ac.min.js +0 -2
  77. /package/dist/css/{4983-library-editor-76fe7e394b.chunk.css → 3746-library-editor-76fe7e394b.chunk.css} +0 -0
  78. /package/dist/css/{6183-library-editor-14f7d9be38.chunk.css → 9195-library-editor-14f7d9be38.chunk.css} +0 -0
  79. /package/dist/scripts/{1010-24607acfed.chunk.js → 1010-f5821049de.chunk.js} +0 -0
  80. /package/dist/scripts/{1086-a34fb060e6.chunk.js → 1086-ba954c2a70.chunk.js} +0 -0
  81. /package/dist/scripts/{1203-69f107f194.chunk.js → 1203-c5dbf7e172.chunk.js} +0 -0
  82. /package/dist/scripts/{1409-8253b07056.chunk.js → 1409-333eff67cc.chunk.js} +0 -0
  83. /package/dist/scripts/{6092-b2d4926dbd.chunk.js.LICENSE.txt → 1819-5e97050377.chunk.js.LICENSE.txt} +0 -0
  84. /package/dist/scripts/{2098-4df3c20f35.chunk.js → 2098-30b7db58a5.chunk.js} +0 -0
  85. /package/dist/scripts/{2417-5465fe7d6e.chunk.js → 2417-ce05495ed5.chunk.js} +0 -0
  86. /package/dist/scripts/{2692-a5f1f0cbe9.chunk.js → 2692-15c761ec3d.chunk.js} +0 -0
  87. /package/dist/scripts/{2733-104ca5267c.chunk.js → 2733-6b607b5143.chunk.js} +0 -0
  88. /package/dist/scripts/{2802-6a6c18c88e.chunk.js.LICENSE.txt → 2802-160b25677d.chunk.js.LICENSE.txt} +0 -0
  89. /package/dist/scripts/{2888-0544d20f9b.chunk.js → 2888-7396d60be2.chunk.js} +0 -0
  90. /package/dist/scripts/{299-7fe66010c3.chunk.js → 299-921c177109.chunk.js} +0 -0
  91. /package/dist/scripts/{3763-c9be4b8c8b.chunk.js → 3763-0095e75c1a.chunk.js} +0 -0
  92. /package/dist/scripts/{3803-1de2707cba.chunk.js → 3803-d2a02a86eb.chunk.js} +0 -0
  93. /package/dist/scripts/{409-2eb71d2fb9.chunk.js → 409-fbe70b4df9.chunk.js} +0 -0
  94. /package/dist/scripts/{4353-fa7c47f433.chunk.js → 4353-1d4ec918e6.chunk.js} +0 -0
  95. /package/dist/scripts/{4591-da8d98f460.chunk.js → 4591-3fa9999f29.chunk.js} +0 -0
  96. /package/dist/scripts/{4703-8907adfcd9.chunk.js → 4703-1cefcae29b.chunk.js} +0 -0
  97. /package/dist/scripts/{4810-596cb1efb0.chunk.js → 4810-908fe3f045.chunk.js} +0 -0
  98. /package/dist/scripts/{4885-7e874365cf.chunk.js → 4885-3a35265eab.chunk.js} +0 -0
  99. /package/dist/scripts/{514-425e874f7e.chunk.js → 514-923fb794ae.chunk.js} +0 -0
  100. /package/dist/scripts/{5418-0089ab591d.chunk.js → 5418-bc46c939fc.chunk.js} +0 -0
  101. /package/dist/scripts/{546-0cec8e55ef.chunk.js → 546-6736b53bcd.chunk.js} +0 -0
  102. /package/dist/scripts/{5665-073470759f.chunk.js → 5665-38506a938a.chunk.js} +0 -0
  103. /package/dist/scripts/{6420-2178cb2561.chunk.js → 6420-6bae432c6b.chunk.js} +0 -0
  104. /package/dist/scripts/{6774-dd35a32f7d.chunk.js → 6774-580a63bbeb.chunk.js} +0 -0
  105. /package/dist/scripts/{693-e91aae32f6.chunk.js → 693-780241d5a9.chunk.js} +0 -0
  106. /package/dist/scripts/{7002-135475be76.chunk.js → 7002-596b9b3c71.chunk.js} +0 -0
  107. /package/dist/scripts/{7173-a5e749e591.chunk.js → 7173-28ec11155c.chunk.js} +0 -0
  108. /package/dist/scripts/{8074-fdddb2e35b.chunk.js → 8074-e02348d9c5.chunk.js} +0 -0
  109. /package/dist/scripts/{8727-2cdd110cc8.chunk.js → 8727-4be0c05629.chunk.js} +0 -0
  110. /package/dist/scripts/{8762-912bdafad1.chunk.js → 8762-264adb9817.chunk.js} +0 -0
  111. /package/dist/scripts/{8947-152b36ebd5.chunk.js → 8947-563b287016.chunk.js} +0 -0
  112. /package/dist/scripts/{9167-2c993dcf7a.chunk.js → 9167-0e451c25a3.chunk.js} +0 -0
  113. /package/dist/scripts/{9355-0629e54449.chunk.js → 9355-633de33fc9.chunk.js} +0 -0
  114. /package/dist/scripts/{9357-30cb06614f.chunk.js → 9357-22395b794f.chunk.js} +0 -0
  115. /package/dist/scripts/{9383-bb6ad888b4.chunk.js → 9383-afe019b90c.chunk.js} +0 -0
  116. /package/dist/scripts/{bundle-56d7cf88ac.min.js.LICENSE.txt → bundle-43ee7c5321.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9298],{86812:function(e,t,n){"use strict";n.r(t),n.d(t,{AddToLibraryView:function(){return T}});var r=n(39479),o=n(31647),i=n(21679),l=n(88172),a=n(20072),s=n(10101),u=n(17422),c=n(75459),f=n(67670),d=n(61843),p=n(30305),h=n(57857),y=n(95061),b=n(79665),m=n(99765),g=n.n(m),v={header:"S7CRE"};function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function L(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(T,e);var t,n,o,m,w=(o=T,m=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(o);if(m){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return L(this,e)});function T(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),w.call(this,e)}return t=T,(n=[{key:"initialize",value:function(){this.videoDataService=i.u.getInstance(p.Or.Video,this),this.bindListeners()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"template",get:function(){return g()}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:h.T.getPhrase(this.lang,"title"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.v,buttonText:h.T.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.Vk.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.ZV.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.ZV.Disabled,!0),d.PU.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.ZV.Disabled,!1),d.PU.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(d.m$.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.T.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=d.PU.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=d.PU.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===c.r.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:u.En.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.ZV.Disabled)&&this.hasAvailableLibraries())return{title:h.T.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===c.r.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===c.r.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=d.PU.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.A({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&d.PU.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=d.PU.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.Y({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"requiredResources",get:function(){return{customLibraries:y.T.libraries}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:v,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),T}(o.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(39479),o=n(31647),i=n(55142);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(d,e);var t,n,o,l,f=(o=d,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(o);if(l){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(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),f.call(this,e)}return t=d,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.Q.ComponentCollection)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(d,e);var t,n,r,i,f=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=c(r);if(i){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function d(){return l(this,d),f.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){return e={},!0,(t=o.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Model)},99765:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9: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"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9695],{49695:function(e,t,n){"use strict";n.r(t),n.d(t,{UploadCompleteView:function(){return m}});var r=n(31647),o=n(21679),i=n(27169),l=n.n(i),a=n(30305),u=n(57857),c={completeImage:"TcxNH"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(m,e);var t,n,r,i,p=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(r);if(i){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function m(){return s(this,m),p.apply(this,arguments)}return t=m,(n=[{key:"initialize",value:function(){this.videoUploadService=o.u.getInstance(a.K9.VideoUpload,this)}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"p-3 my-3 bg-white rounded text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:a.OV.LIBRARY_EDITOR,action:a.eX.LibraryEditor.HOME}}}},{key:"viewOptions",value:function(){return{styles:c,count:this.videoUploadService.getCollection().length,imageUrl:a.Wn.Shared.SUCCESS}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Q.View)},27169:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return"<h1>"+u((n.lang||t&&t.lang||a).call(l,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:o}))+'</h1>\r\n<div class="my-3">\r\n <img src='+u(c(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+' class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.completeImage:i,t))+' my-4 img-fluid"/>\r\n</div>\r\n<p>'+u((n.lang||t&&t.lang||a).call(l,"isProcessing",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.count:i},data:o}))+'</p>\r\n<a class="back-to-library-applink btn btn-dark">'+u((n.lang||t&&t.lang||a).call(l,"back",{name:"lang",hash:{},data:o}))+"</a>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9927],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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&&c(e,t)}(p,e);var t,n,r,i,f=(r=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(i){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function p(){return l(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){return e={},!0,(t=o.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},79927:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return w}});var r=n(21679),o=n(57857),i=n(31647),l=n(10101),a=n(88172),c=n(9484),u=n(30305),s=n(67670),f=n(61843),p=n(16317),h=n(9231),d=n.n(h),y={image:"wnpu5"};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 g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(O,e);var t,n,h,b,w=(h=O,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(e){return!1}}(),function(){var e,t=C(h);if(b){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),w.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(u.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:l.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(u.Vk.USER,"".concat(u.M_.CURRENT_USER,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(a.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:c.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=f.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(a.ZV.Disabled,!1),0):(setTimeout((function(){return i.Q.ErrorHelper.throw(new p.HH)}),0),1)))}},{key:"viewOptions",value:function(){return{styles:y,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:f.Kp.getSpinner({size:f.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:u.Wn.Shared.LOCAL_CACHE}}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.Q.View)},9231: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){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\r\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\r\n<p>'+c((n.lang||t&&t.lang||a).call(l,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\r\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\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})}}]);