@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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@clickview/library-editor",
3
3
  "description": "Library Editor",
4
- "version": "1.7.0",
4
+ "version": "1.7.1-rc.1",
5
5
  "main": "dist/scripts/bundle.js",
6
6
  "types": "dist/projects/library-editor/src/index.d.ts",
7
7
  "scripts": {
@@ -1,2 +0,0 @@
1
- .Di3M6{width:9rem}
2
-
@@ -1,2 +0,0 @@
1
- .j3orW{display:block;position:relative;width:15.0625rem;height:14.3125rem;margin:0 auto}.j3orW div{display:block;position:absolute}.Bdtwh{position:absolute}.a5Hqs{position:absolute;left:1.0625rem;top:0.625rem;z-index:2}.R1nqF{position:absolute;z-index:3;top:4.876rem;left:8.5rem}@keyframes sYdZ5{0%{transform:rotate(-5deg)}48%{transform:rotate(-20deg)}55%{transform:rotate(-20deg)}90%{transform:rotate(5deg)}100%{transform:rotate(-5deg)}}@keyframes Uf7Kz{0%{transform:translateY(5px)}50%{transform:translateY(-2px)}100%{transform:translateY(5px)}}.j3orW .a5Hqs{animation:sYdZ5 4s infinite ease-out}.j3orW .R1nqF{animation:Uf7Kz 1s infinite ease-out}._ivRP{z-index:1;top:10.75rem;left:10.3125rem;transform-origin:bottom right}.jZvfw{z-index:1;top:8rem;left:1.375rem;transform-origin:bottom right}.j3orW .jZvfw{animation:eicoF .7s infinite}.j3orW ._ivRP{animation:H5wDG .5s infinite}@keyframes H5wDG{0%{transform:rotate(-5deg)}50%{transform:rotate(-18deg)}90%{transform:rotate(5deg)}100%{transform:rotate(-5deg)}}@keyframes eicoF{0%{transform:rotate(-2deg)}50%{transform:rotate(-12deg)}90%{transform:rotate(2deg)}100%{transform:rotate(-2deg)}}
2
-
@@ -1,2 +0,0 @@
1
- .yRGoO{width:10.5rem;height:7.375rem}
2
-
@@ -1,2 +0,0 @@
1
- .DlVFv{width:15.0625rem;height:14.625rem}
2
-
@@ -1,2 +0,0 @@
1
- .go5qS{width:9rem}
2
-
@@ -1,2 +0,0 @@
1
- .TcxNH{width:10.5rem;height:8.1875rem}
2
-
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[243],{24828:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var r=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},22231:function(e,t,n){"use strict";function r(e,t){return t[e.charCodeAt(0)%t.length]}n.d(t,{x:function(){return r}})},50243:function(e,t,n){"use strict";n.r(t),n.d(t,{EditFolderImagesView:function(){return X}});var r=n(39479),o=n(48088),i=n(31647),a=n(21679),l=n(99249),u=n(70065),c=n(52076),s=n(10101),p=n(18375),f=n(67670),h=n(61843),d=n(30305),m=n(17422),y=n(58025),g=n(88172),b=n(48404),v=n(57857),w=n(86983),I=n.n(w),k={removeImage:"daDCA",imageElement:"U_0tb",banner:"J28Xw",thumbnail:"OoZ6O",imageContainer:"RWdbM"},C=n(22231),T=n(24828);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 _(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 E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function R(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var j=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&&E(e,t)}(c,e);var t,n,r,a,u=(r=c,a=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(r);if(a){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return R(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.viewModel=l.r.get("edit:folder:images")}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return I()}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===m.__.Thumbnails?"".concat(k.thumbnail," mb-2"):"".concat(k.banner," mt-2")}},{key:"events",value:function(){return e={},n="onClickRemoveImage",(t="click .".concat(k.removeImage))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.YR,channelName:this.options.channelName,buttonSelector:".btn-outline-dark",imageType:this.options.imageType,saveImage:function(t,n){n?(e.viewModel.set({dataUrl:t,type:e.options.imageType}),i.Q.AppLinkHelper.trigger({application:d.OV.LIBRARY_EDITOR,action:d.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):o.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}},{key:"onClickRemoveImage",value:function(){o.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===m.__.Banners?"createBannerUrl":"createFolderThumbnailUrl";return h.jw[e](this.options.originalImage)}},{key:"getImageTypeText",value:function(){switch(this.options.imageType){case m.__.Banners:return v.T.getPhrase(this.lang,"banner");case m.__.Thumbnails:return v.T.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:k,imageUrl:this.getImageUrl(),backgroundColor:(0,C.x)(this.options.folderName,T.o),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:d.yE[this.options.imageType],recommendedDimensions:d.nq[this.options.imageType]}}}])&&_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Q.Component),B=n(80322),S=n.n(B);function x(e){return x="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},x(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function M(e,t){if(t&&("object"===x(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 N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var L,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&&D(e,t)}(a,e);var t,n,r,o,i=(r=a,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=N(r);if(o){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"EditImagesWrapperComponent"}},{key:"template",get:function(){return S()}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"renderBanner",value:function(){this.showChildView("banner",new j({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:m.__.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new j({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:m.__.Thumbnails,folderName:this.options.folderName,originalImage:this.options.thumbnailImage,folderId:this.options.folderId}))}},{key:"onRender",value:function(){this.renderBanner(),this.renderThumbnail()}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Q.Component),A="EOVMO",W=n(42687),F=n.n(W);function H(e){return H="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},H(e)}function Q(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 z(e,t){if(t&&("object"===H(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 Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}!function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(L||(L={}));var X=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)}(k,e);var t,n,v,w,I=(v=k,w=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=Z(v);if(w){var n=Z(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return z(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),I.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.popupContentState=L.Upload,this.viewModel=l.r.get("edit:folder:images"),this.viewModel.get("dataUrl")&&(this.selectedImageType=this.viewModel.get("type"),this.newImageEl=new Image,this.newImageEl.src=this.viewModel.get("dataUrl"),this.spinnerModel.set(g.ZV.Disabled,!1),this.popupContentState=L.Crop),this.libraryDataService=a.u.getInstance(d.Or.Library,this),this.imageUploadDataService=a.u.getInstance(d.Or.ImageUpload,this),this.bindListeners()}},{key:"name",get:function(){return"EditFolderImagesView"}},{key:"title",get:function(){return"Edit Folder Images"}},{key:"template",get:function(){return F()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .back-btn":"onClickBackButton","shown.bs.modal":"renderCropper"}}},{key:"elements",get:function(){return{backBtn:".back-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:s.Yw,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-outline-dark back-btn ".concat(A)}],spinnerButtonOptions:{model:this.spinnerModel=new f.v,channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop}}]}},{key:"requiredResources",get:function(){return{config:b.p.config}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(d.Vk.LIBRARY,"".concat(d.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(m.__.Banners),n="".concat(this.channelName,":").concat(m.__.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,m.__.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,m.__.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(m.__.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(m.__.Thumbnails)})),this.listenTo(t,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(n,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(this.channelName,y.Y.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==L.Upload&&(this.popupContentState=L.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(g.ZV.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(y.Y.CropImage).trigger(g.I3.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=L.Crop,this.spinnerModel.set(g.ZV.Disabled,!1),this.renderCropper()}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,this.selectedImageType,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this;this.triggerMethod("hide");var n={libraryId:this.libraryId,folderId:this.options.folderId,currentImageId:this.getCurrentImageId(),imageModel:e},r=this.selectedImageType===m.__.Banners?u.EntityType.Banner:u.EntityType.Thumbnail,o=this.selectedImageType===m.__.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[o](n,(function(e){c.k.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:u.UserAction.Upload,entity:r,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),t.reloadPage()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new h.Mr({title:"Remove image?",text:"Are you sure you want to remove this image?",buttons:[{text:"Remove",className:"btn btn-danger",success:!0},{text:"Cancel",className:"btn btn-link",close:!0}],channelName:this.options.channelName});setTimeout((function(){return n.render().done((function(){return t.removeImage(e)}))}),200),this.triggerMethod("hide")}},{key:"removeImage",value:function(e){var t=this,n=e===m.__.Banners?"deleteBanner":"deleteThumbnail",r=e===m.__.Banners?this.currentBanner:this.currentThumbnail,o={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:r.get("id")},i=e===m.__.Banners?u.EntityType.Banner:u.EntityType.Thumbnail;this.libraryDataService[n](o,(function(){c.k.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:r.get("id")},{actionType:u.UserAction.Delete,entity:i,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),t.reloadPage()}))}},{key:"reloadPage",value:function(){var e=this,t=i.Q.LocationUtils.GetCurrentPath().includes("folders");setTimeout((function(){return i.Q.AppLinkHelper.trigger({application:d.OV.LIBRARY_EDITOR,action:t?d.eX.LibraryEditor.FOLDER:d.eX.LibraryEditor.HOME,args:t?[e.options.folderId]:void 0})}),0)}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===m.__.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===m.__.Thumbnails&&this.currentThumbnail?this.currentThumbnail.get("id"):void 0}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"getImageModel",value:function(){return new p.E({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===L.Upload&&(this.getUI("backBtn").addClass(A),this.showChildView("content",new V({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(m.__.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(m.__.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===L.Crop&&(this.getUI("backBtn").removeClass(A),this.showChildView("content",new y.a({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:d.yE[this.selectedImageType].width,minHeight:d.yE[this.selectedImageType].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeRender",value:function(){var e=this;this.model&&this.libraryId||(this.model=this.libraryDataService.getFolder(this.options.folderId),this.libraryDataService.getLibraries((function(t){return e.libraryId=t.first().id})))}},{key:"onRender",value:function(){this.model&&this.libraryId&&(this.currentBanner=this.model.get("banner"),this.currentThumbnail=this.model.get("thumbnail"),this.renderContent())}},{key:"onBeforeDestroy",value:function(){this.viewModel.clear()}}])&&Q(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.Q.View)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return m}});var r,o=n(48088),i=n(31647),a=n(51934),l=n.n(a),u=n(91465),c=n.n(u);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,r.key,r)}}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,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var t,n,i,a,u=(i=s,a=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(a){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(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.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(l())(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}),s}(i.Q.Component)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});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 a(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,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(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 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&&u(e,t)}(f,e);var t,n,r,i,p=(r=f,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 c(this,e)});function f(){return a(this,f),p.apply(this,arguments)}return t=f,(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}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Q.Model)},86983: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," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumRecommended",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.width:i},data:o}))+"\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumActual",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.width:i},data:o}))+"\r\n"},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeImage:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+" "+l(a(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<h6 class="mb-0">'+u((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:o}))+" "+u(c(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+'</h6>\r\n<div class="text-muted mb-1">\r\n <em>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+' </em>\r\n</div>\r\n<div class="my-1 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+" "+u(c(null!=(i=null!=t?t.options:t)?i.backgroundColor:i,t))+'" style="background-image: url(\''+u(c(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\r\n</div>\r\n<button class="btn btn-outline-dark my-1">'+u((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:o}))+" "+u(c(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasImage:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},80322: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){return'<div class="thumbnail-region"></div>\r\n<div class="dropdown-divider"></div>\r\n<div class="banner-region"></div>'},useData:!0})},42687:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="content-region"></div>\r\n'},3: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(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 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[259],{18582:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var o,r=n(57857),i=n(6681),l=n(75459);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(o||(o={}));var u="shared.shared-utils",c={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e){switch(e.type){case l.r.HostedLibrary:case l.r.CustomLibrary:return e.name;case l.r.Exchange:return r.T.getPhrase(u,"exchange");case l.r.Workspace:return r.T.getPhrase(u,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case l.r.HostedLibrary:case l.r.CustomLibrary:return"bg-info";case l.r.Exchange:return"bg-green";case l.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t,n=(a(t={},o.Pdf,i.vn.FilePDF),a(t,o.Image,i.vn.FileImg),a(t,o.PowerPoint,i.vn.FilePowerpoint),a(t,o.Document,i.vn.FileWord),a(t,o.Excel,i.vn.FileExcel),a(t,o.Zip,i.vn.FileZip),a(t,o.File,i.vn.File),t)[e];return n||(n=i.vn.Folder),n},mapTypeToClass:function(e){switch(e){case o.Pdf:return"icon-red";case o.Image:return"icon-purple";case o.Document:return"icon-blue";case o.Excel:return"icon-green";case o.PowerPoint:return"icon-orange";case o.Zip:return"icon-teal";case o.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case o.Pdf:return r.T.getPhrase(u,"pdf");case o.Image:return r.T.getPhrase(u,"image");case o.Document:return r.T.getPhrase(u,"document");case o.Excel:return r.T.getPhrase(u,"spreadsheet");case o.PowerPoint:return r.T.getPhrase(u,"presentation");case o.Zip:return r.T.getPhrase(u,"zipArchive");case o.File:return r.T.getPhrase(u,"file");default:return""}}}},68708:function(e,t,n){"use strict";n.d(t,{c:function(){return _}});var o=n(31647),r=n(48088),i=n(6681),l=n(70065),a=n(52076),u=n(61843),c=n(30305),s=n(76431),p=n.n(s),f={container:"vvTSf",svgContainer:"lGgbR",actionSvg:"jxpfY"},y=n(57857);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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&&m(e,t)}(v,e);var t,n,o,s,d=(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(e){return!1}}(),function(){var e,t=g(o);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),d.call(this,e)}return t=v,(n=[{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"".concat(f.container," rounded p-2 mb-2")}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}},{key:"onClickEdit",value:function(){var e=a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Edit,entity:l.EntityType.Resource,workflowPhase:l.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};a.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new u.Mr({title:y.T.getPhrase(this.lang,"removeHeading"),text:y.T.getPhrase(this.lang,"removeConfirm",{name:u.m$.escapeExpression(this.model.get("name"))}),buttons:[{text:y.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:y.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:u.N0.generateUniqueChannelName(this)}).render().done((function(){r.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:f,editable:this.options.editable,linkSvg:i.Nj.getSvg(i.vn.Link),editSvg:i.Nj.getSvg(i.vn.Edit),trashSvg:i.Nj.getSvg(i.vn.Delete)}}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.Q.Component),k=n(52929),w=n.n(k);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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(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)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var _=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return w()}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new I({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}}]),n}(o.Q.Component),I=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return v}}]),n}(o.Q.ComponentCollection)},77605:function(e,t,n){"use strict";n.d(t,{c:function(){return D},h:function(){return N}});var o=n(31647),r=n(48088),i=n(99114),l=n.n(i),a=n(53808),u=n(70065),c=n(52076),s=n(6681),p=n(18582),f=n(95117),y=n.n(f);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function b(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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&&m(e,t)}(l,e);var t,n,o,r,i=(o=l,r=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=g(o);if(r){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"".concat("CdlNn"," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":this.options.getEditAppLink(this.model.get("id"))}}},{key:"onClickEdit",value:function(){var e=c.k.mergeOptions(this.options.analyticsOptions,{actionType:u.UserAction.Edit,entity:u.EntityType.Resource,workflowPhase:u.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};c.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){a.q.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,extension:p.u.mapTypeToExtension(t),svg:s.Nj.getSvg(p.u.mapTypeToSvg(t)),iconClass:p.u.mapTypeToClass(t),resourceType:p.u.mapTypeToName(t),editSvg:s.Nj.getSvg(s.vn.Edit),trashSvg:s.Nj.getSvg(s.vn.Delete)}}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component),k=n(57857),w=n(25094),O=n(41934),T=n(54758);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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(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&&j(e,t)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=I(e);if(t){var r=I(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(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 I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var N=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"childView",get:function(){return v}},{key:"childViewOptions",get:function(){var e=this;return{editable:this.options.editable,videoId:this.options.videoId,analyticsOptions:this.options.analyticsOptions,onClickDelete:function(t){return e.onClickDelete(t)},getEditAppLink:function(t){return{application:w.OV.LIBRARY_EDITOR,action:O.e.LibraryEditor.EDIT_RESOURCE,args:[e.options.videoId,t]}}}}},{key:"onClickDelete",value:function(e){var t=this;new T.M({title:k.T.getPhrase(this.lang,"removeHeading"),text:k.T.getPhrase(this.lang,"removeBody",{resourceName:e.get("name")}),buttons:[{text:k.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:k.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){r.Radio.channel(t.options.channelName).trigger("delete:resource",e.get("id"))}))}}]),n}(o.Q.ComponentCollection),D=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return l()}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new N({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||k.T.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}}]),n}(o.Q.Component)},95117:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<a class="float-right svg-container cursor-pointer text-muted delete">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right svg-container cursor-pointer text-muted edit">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,p="function";return'<span title="'+u(a(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle mr-2 svg-container '+u(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<a href="'+u(typeof(l=null!=(l=n.url||(null!=t?t.url:t))?l:s)===p?l.call(c,{name:"url",hash:{},data:r}):l)+"?name="+u(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)===p?l.call(c,{name:"name",hash:{},data:r}):l)+'" class="align-middle">\r\n '+u(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)===p?l.call(c,{name:"name",hash:{},data:r}):l)+"\r\n</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},76431:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<a class="float-right '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted delete">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted edit">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,p="function";return'<span class="d-inline-block align-middle mr-2 icon-blue '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\r\n<a href="'+u(typeof(l=null!=(l=n.url||(null!=t?t.url:t))?l:s)===p?l.call(c,{name:"url",hash:{},data:r}):l)+'" target="_blank" class="align-middle">\r\n '+u(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)===p?l.call(c,{name:"name",hash:{},data:r}):l)+"\r\n</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},52929:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="links-region"></div>'},useData:!0})},99114:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="resource-list-region"></div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2803],{2803:function(t,e,r){"use strict";r.r(e),r.d(e,{DeleteFolderView:function(){return w}});var n=r(48088),o=r(21679),i=r(31647),c=r(52076),u=r(30305),l=r(10101),a=r(61843),f=r(88172),s=r(3059),y=r(57857),p=r(56906),h=r(11885),d=r.n(h);function b(t){return b="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},b(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function O(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(j,t);var e,r,h,b,w=(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,e=g(h);if(b){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function j(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,j),w.call(this,t)}return e=j,(r=[{key:"initialize",value:function(){this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.collectionIdentifier=new s.F7(this.options.folderId,a.x$.GetCurrentSortType()),this.listenTo(u.Vk.VIDEO,"".concat(this.collectionIdentifier,":sync"),this.render),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"DeleteFolderView"}},{key:"title",get:function(){return!!this.model&&y.T.getPhrase(this.lang,"title",{folderName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteFolder"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return a.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.Yw,title:y.T.getPhrase(this.lang,"removeFolder"),spinnerButtonOptions:{channelName:this.channelName,buttonText:y.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(e){return t.onClickDelete(e)}}}]}},{key:"getParentId",value:function(){if(a.PU.isSubFolder(this.model)&&this.model&&this.model.collection&&this.model.collection.parent&&this.model.collection.parent instanceof i.Q.Model)return this.model.collection.parent.get("id");var t=a.PU.getLibrary(this.model.get("id"),this.model.collection);return t&&t.id||null}},{key:"onClickDelete",value:function(t){t&&t.preventDefault(),n.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner);var e=this.getParentId(),r=a.PU.isSubFolder(this.model)?u.eX.LibraryEditor.FOLDER:u.eX.LibraryEditor.LIBRARY;this.libraryDataService.deleteFolder(this.options.folderId,(function(){i.Q.AppLinkHelper.trigger({application:u.OV.LIBRARY_EDITOR,action:r,args:[e]},{replace:!0})})),this.logAction()}},{key:"logAction",value:function(){var t={id:this.options.folderId,name:this.model.get("name")};c.k.logUserAction(t,this.options.analyticsOptions)}},{key:"canDelete",value:function(){return!(this.model.children&&this.model.children.length||this.videos&&this.videos.length)}},{key:"onBeforeRender",value:function(){var t=this;return this.libraryDataService.getFolderFromLibraries(this.options.folderId,(function(e){t.model=e})),this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),!(!this.model||!this.videos||!this.canDelete()&&(window.setTimeout((function(){t.triggerMethod("hide"),i.Q.ErrorHelper.throw(new p.QH)}),u.pA.POPUP_FADE_TIMEOUT),1))}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),j}(i.Q.View)},3059:function(t,e,r){"use strict";r.d(e,{KX:function(){return R},IJ:function(){return d},xw:function(){return w},F7:function(){return n.F}});var n=r(1091),o=r(39479),i=r(33303),c=r(30305),u=r(44937),l=r(39090);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function p(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(d,t);var e,r,n,i,a=(n=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(t){return!1}}(),function(){var t,e=h(n);if(i){var r=h(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(e=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=d,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString,n=t.subjects;e&&(this.libraryIds=e),n&&(o.isArray(n)&&n.length&&(this.subjects=n),o.isArray(n)||(this.subjects=[n]));var i=o.findWhere(l.US,{queryString:r})||l.U1;this.dateOption=new u.Wx(i)}},{key:"toString",value:function(){var t,e=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((t=e,function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.J);function b(t){return b="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},b(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function O(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(f,t);var e,r,n,i,a=(n=f,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(t){return!1}}(),function(){var t,e=g(n);if(i){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=f,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString;e&&(this.libraryIds=e);var n=o.findWhere(l.US,{queryString:r})||l.U1;this.dateOption=new u.Wx(n)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.J);function j(t){return j="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},j(t)}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function _(t,e){if(e&&("object"===j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(i,t);var e,r,n,o=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=I(r);if(n){var o=I(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _(this,t)});function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return P(this,i),o.call(this,{collectionPrefix:c.M_.FOLDERS,id:t,sort:e,cursor:r})}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(i.J)},11885:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){var i;return t.propertyIsEnumerable,null!=(i=(r.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{name:null!=e?e.name:e},data:o}))?i:""},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3639],{63639:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteLibraryView:function(){return w}});var r=n(48088),i=n(21679),o=n(31647),a=n(52076),l=n(30305),c=n(10101),u=n(61843),s=n(88172),f=n(57857),y=n(56906),h=n(72634),p=n.n(h);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 d(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 g(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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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)}(k,e);var t,n,h,b,w=(h=k,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=v(h);if(b){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),w.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.listenTo(l.Vk.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.u.getInstance(l.Or.Library,this)}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return!!this.model&&f.T.getPhrase(this.lang,"title",{libraryName:this.model.get("name")})}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return p()}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"removeLibrary"),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){o.Q.AppLinkHelper.trigger({application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new y.YP:this.model.children.length&&(t=new y.d7),t?(window.setTimeout((function(){e.triggerMethod("hide"),o.Q.ErrorHelper.throw(t)}),l.pA.POPUP_FADE_TIMEOUT),!1):!!this.model}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(o.Q.View)},72634: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){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})}}]);
@@ -1 +0,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 E}});var n=r(48088),o=r(31647),i=r(21679),a=r(99249),u=r(57857),l=r(36357),c=r(10101),s=r(9484),f=r(30305),p=r(88172),y=r(24539),b=r(67670),h=r(61843),m=r(7190),d=r(95061),v=r(56906),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 k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function 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&&_(e,t)}(L,e);var t,r,g,O,E=(g=L,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=P(g);if(O){var r=P(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return j(this,e)});function L(){return k(this,L),E.apply(this,arguments)}return t=L,(r=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:y.Z}),this.bindListeners(),this.settingsDataService=i.u.getInstance(f.Or.Settings,this),this.libraryDataService=i.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SEARCH,"".concat(f.M_.SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.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:c.fS,modelValidation:m.Y7},{behaviorClass:c.Bp},{behaviorClass:c.Yw,title:u.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:u.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(p.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),o.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:s.K.currentUser,libraries:d.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),l.E.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?o.Q.ErrorHelper.throw(new v.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(p.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}),L}(o.Q.View)},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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(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&&l(e,t)}(p,e);var t,r,n,i,f=(n=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(n);if(i){var r=s(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return c(this,e)});function p(){return a(this,p),f.apply(this,arguments)}return t=p,(r=[{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}}])&&u(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(n.Q.Model)},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 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[435],{21771:function(e,t,n){"use strict";n.r(t),n.d(t,{MoveVideoView:function(){return T}});var r=n(39479),i=n(57857),o=n(21679),l=n(31647),a=n(43875),s=n(52076),c=n(10101),u=n(30305),f=n(90680),h=n(67670),d=n(13156),p=n(61843),y=n(20072),b=n(88172),v=n(79665),g=n(97011),m=n.n(g);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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 S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function k(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 P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(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&&S(e,t)}(T,e);var t,n,l,g,w=(l=T,g=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(l);if(g){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(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.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(u.Vk.VIDEO,"".concat(u.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&i.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:i.T.getPhrase(this.lang,"heading"),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.v,buttonText:i.T.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),i=[],o=[];this.libraries.forEach((function(t){var l=p.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?i.push(t):o.push(t)})),this.libraries=new f.q(i),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.ZV.Disabled))return{title:i.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=p.PU.getSelected(this.libraryTreeKey,this.libraries);t&&p.PU.deselectAll(this.folderTreeKey,t.get("children")),p.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=p.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");p.PU.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.ZV.ShowSpinner,!0);var t,n,r=p.PU.getSelected(this.folderTreeKey,this.libraries),i=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===o.length?n.get("name"):"",a=d.J.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,i,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,i)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=i.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.k.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=p.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new v.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=p.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),p.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),T}(l.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(39479),i=n(31647),o=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 c(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 u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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)}(h,e);var t,n,i,l,f=(i=h,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=u(i);if(l){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(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),f.call(this,e)}return t=h,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return o.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,i="dropdown-menu-".concat(n);return r&&(i="".concat(i," ").concat(r)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Q.ComponentCollection)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),i=n(88172);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 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 c(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(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)}(h,e);var t,n,r,o,f=(r=h,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=u(r);if(o){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function h(){return l(this,h),f.apply(this,arguments)}return t=h,(n=[{key:"defaults",value:function(){return e={},!0,(t=i.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}),h}(r.Q.Model)},97011: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,' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:i}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,i){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4860],{44860:function(t,e,n){"use strict";n.r(e),n.d(e,{NotFoundView:function(){return d}});var r=n(31647),o=n(30305),i=n(74030),l=n.n(i),a={illoContainer:"j3orW",body:"Bdtwh",head:"a5Hqs",lunaHead:"R1nqF",animate:"sYdZ5","luna-animate":"Uf7Kz",lunaTail:"_ivRP",tintinTail:"jZvfw","wag-tail-small":"eicoF","wag-tail":"H5wDG"};function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function p(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(d,t);var e,n,r,i,u=(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(t){return!1}}(),function(){var t,e=y(r);if(i){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function d(){return c(this,d),u.apply(this,arguments)}return e=d,(n=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return l()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:a,linkClasses:"applink-home info-link"}}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Q.View)},74030:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.illoContainer:i,e))+'">\r\n <div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.lunaHead:i,e))+'"><img width="86px" height="110px" src="/images/errors/not-found/luna-head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.head:i,e))+'"><img width="134px" height="138px" src="/images/errors/not-found/head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.body:i,e))+'"><img width="241px" height="229px" src="/images/errors/not-found/back@2x.png"></div>\r\n</div>\r\n<h4 class="mt-3 text-muted">'+a((n.lang||e&&e.lang||c).call(u,"pageNotFound",{name:"lang",hash:{},data:o}))+"</h4>\r\n<p>"+(null!=(i=(n.lang||e&&e.lang||c).call(u,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=e?e.options:e)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4983],{54096:function(t,e,r){r.d(e,{G:function(){return i}});var n=r(1024),o=r(21679);function i(t){var e,r;return e=t,r=o.u.getInstance(e),n.useEffect((function(){return function(){o.u.releaseInstance(e)}})),r}},2491:function(t,e,r){r.d(e,{Z:function(){return c}});var n=r(54096),o=r(21186),i=r(92159);function c(){var t=(0,n.G)(i.P.ALERT);return{success:function(e){t.success(e)()},error:function(e){t.error(e)()},warning:function(e){t.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:e})}}}},94198:function(t,e,r){r.r(e),r.d(e,{RemoveLogoView:function(){return O}});var n=r(1024),o=r.n(n),i=r(86120),c=r(57857),u=r(80325),a=r(85610),f=r(66703),l=r(62709),s=r(2491),y=r(54096),p=r(50997),b=r(52076),d=r(70065);function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var m="libraryEditor.removeLogo",v=c.T.encloseNamespace(m);function O(t){var e,r,n=(e=o().useState(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],c=!0,u=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{c||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,r)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=n[0],O=n[1],g=i.a.useGetFetch(),w=(0,s.Z)(),j=(0,y.G)(p.Or.Customer);return o().createElement(u.G,{closePopup:t.closePopup,title:v("removeSchoolCrest")},o().createElement("p",null,o().createElement(f.x,{namespace:m,phrase:"areYouSure"})),o().createElement(a.u,null,o().createElement(a.u.Cancel,{onClick:t.closePopup}),o().createElement(a.u.Submit,{onClick:function(){O(!0),g(l.h.removeLogo(t.customerId,t.logoId,(function(){j.invalidateLogoCache(),w.success(v("success")),b.k.logUserAction({id:t.logoId},{actionType:d.UserAction.Remove,entity:d.EntityType.Logo,workflowPhase:d.WorkflowPhase.Complete,location:d.LocationContext.Popup}),t.closePopup()}),(function(){w.success(v("error")),O(!1)})))},text:v("remove"),showSpinner:c,variant:"danger"})))}},50997:function(t,e,r){r.d(e,{eX:function(){return o.eX},OV:function(){return o.OV},Vk:function(){return o.Vk},M_:function(){return o.M_},Or:function(){return o.Or},YR:function(){return n.YR},jr:function(){return o.jr}}),r(13156);var n=r(10101),o=r(30305);r(17422),r(16317),r(12470),r(3059),r(38722),r(61843)},3059:function(t,e,r){r.d(e,{KX:function(){return I},IJ:function(){return d},xw:function(){return w},F7:function(){return n.F}});var n=r(1091),o=r(39479),i=r(33303),c=r(30305),u=r(44937),a=r(39090);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function p(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(d,t);var e,r,n,i,f=(n=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(t){return!1}}(),function(){var t,e=b(n);if(i){var r=b(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(e=f.call(this,{collectionPrefix:"".concat(c.M_.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=d,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString,n=t.subjects;e&&(this.libraryIds=e),n&&(o.isArray(n)&&n.length&&(this.subjects=n),o.isArray(n)||(this.subjects=[n]));var i=o.findWhere(a.US,{queryString:r})||a.U1;this.dateOption=new u.Wx(i)}},{key:"toString",value:function(){var t,e=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((t=e,function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.J);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function O(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(l,t);var e,r,n,i,f=(n=l,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(t){return!1}}(),function(){var t,e=g(n);if(i){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=f.call(this,{collectionPrefix:"".concat(c.M_.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString;e&&(this.libraryIds=e);var n=o.findWhere(a.US,{queryString:r})||a.U1;this.dateOption=new u.Wx(n)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.J);function j(t){return j="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},j(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function _(t,e){if(e&&("object"===j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(i,t);var e,r,n,o=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=E(r);if(n){var o=E(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _(this,t)});function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(this,i),o.call(this,{collectionPrefix:c.M_.FOLDERS,id:t,sort:e,cursor:r})}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(i.J)}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5248],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return N}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(36357),c=i(30305),l=i(70763),u=i(71192),d=i(17422),h=i(14129),f=i(39090),v=i(82405),p=i(13809),g=i(48404),y=i(9484),w=i(46415),b=i(7572),m=i(71010),S=i.n(m),V=i(29565),k=i(95061);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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function R(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)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var N=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)}(P,e);var t,i,m,C,N=(m=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=_(m);if(C){var i=_(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return R(this,e)});function P(){return T(this,P),N.apply(this,arguments)}return t=P,(i=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=o.u.getInstance(c.Or.Settings,this),this.contentUpdatesDataService=o.u.getInstance(c.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(c.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:d.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:d.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(c.Vk.SETTINGS,"".concat(c.M_.SETTINGS,":sync"),this.render),this.listenTo(c.Vk.CONTENT_UPDATES,"".concat(c.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(c.Vk.RESTRICTED_VIDEO,"".concat(c.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){r.Q.AppLinkHelper.trigger({application:c.OV.CONTENT_UPDATES,action:c.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(V.Z.content," border-left ").concat(V.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new l.t(this.videoCollection.map((function(e){return new u.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new b.u({activeTab:f.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("value")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new w.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new h.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new v.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:p.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:d.ub.AwaitingReview,emptyStateOptions:{heading:a.T.getPhrase(this.lang,"emptyStateHeading"),description:a.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=f.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:y.K.currentUser,libraries:k.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.settingsDataService.getSetting(this.currentUser.get("customerId"),s.E.LibraryReview),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("value")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&E(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(r.Q.View)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(86605),i(14898)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\r\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n</div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5356],{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={}))},61519:function(e,t,n){"use strict";n.r(t),n.d(t,{SearchView:function(){return Z}});var r=n(39479),i=n(48088),o=n(31647),c=n(21679),a=n(99249),s=n(57857),l=n(11543),u=n(33303),f=n(47022),h=n(59054),y=n(30305),p=n(21251),d=n(70763),g=n(71192),b=n(33800),v=n(48404),m=n(9484),w=n(95061),S=n(44937),O=n(5344),C=n(8614),k=n(15709),P=n.n(k);function R(e){return R="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},R(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function _(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(c,e);var t,n,r,i,o=(r=c,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=M(r);if(i){var n=M(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function c(){return j(this,c),o.apply(this,arguments)}return t=c,(n=[{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return P()}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new C.b5({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}}])&&V(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),T=n(17422),x=n(23096),q=n(13809),H=n(96605),I=n.n(H);function F(e){return F="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},F(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 N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function Q(e,t){if(t&&("object"===F(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 U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(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&&N(e,t)}(c,e);var t,n,r,i,o=(r=c,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=U(r);if(i){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Q(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),o.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return I()}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:T.LP.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new x.Y({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:y.OV.SEARCH,videoItemComponentType:q.UC.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:T.ub.Search,emptyStateOptions:{heading:s.T.getPhrase(this.lang,"emptyStateHeading"),description:s.T.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,showEmptyState:!0,libraries:this.options.libraries});this.showChildView("results",e)}}])&&A(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),L=n(21769),B=n(28434),K=n.n(B);function z(e){return z="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},z(e)}function X(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 G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function J(e,t){if(t&&("object"===z(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 Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var Z=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&&G(e,t)}(R,e);var t,n,C,k,P=(C=R,k=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=Y(C);if(k){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return J(this,e)});function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),P.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=c.u.getInstance(l.D.ContextualSearch,this),this.searchDataService=c.u.getInstance(l.Z.Search,this),this.videoDataService=c.u.getInstance(b.O.Video,this),this.ratingsDataService=c.u.getInstance(b.O.Ratings,this),this.playerDataService=c.u.getInstance(b.O.Player,this),this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:p.M.SEARCH_VIDEOS},this.options.queryParams)),this.createViewKey=this.createViewKey.bind(this)}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(y.Vk.RATINGS,"".concat(p.M.RATINGS,":sync"),this.render),this.listenTo(this.channelName,y.Vy.Filters.FILTER_CHANGED,r.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(L.I.TagFilter,"change:relevant:tags",this.updateSearchResults)}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return s.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return K()}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return a.r.get("search",{ctor:S.AE})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=O.qr.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){O.yf.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return i.Radio.channel(y.jr.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e,t,n,r=this.contextualSearchService.getSearchContext();return r&&r.get("filterParam")?(e={},t=r.get("filterParam"),n=r.get("filterValue"),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{}}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,h.f.MasterObject,t)}},{key:"onFilterChange",value:function(){o.Q.AppLinkHelper.trigger({application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new d.t(this.resultCollection.map((function(e){return new g.n({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=O.yf.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return o.Q.AppLinkHelper.trigger({application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new D({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new W({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey,hasCursors:!!e,libraries:this.sources});this.showChildView("results",t)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.Q({cursors:e,appLink:{application:y.OV.SEARCH,action:y.eX.Search.HOME,params:O.yf.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=O.yf.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=O.yf.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var n=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,n):n(new d.t([]))}}}},{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:v.p.config,sources:w.T.libraries,exchanges:w.T.exchanges,currentUser:m.K.currentUser}}},{key:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}}])&&X(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),R}(o.Q.View)},13809:function(e,t,n){"use strict";n.d(t,{UC:function(){return r.U}});var r=n(58688);n(86605),n(14898)},96605: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'<div class="results-region"></div>'},useData:!0})},15709: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 e.propertyIsEnumerable,"<h3>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:i}))+'</h3>\r\n<div class="filters-region"></div>'},useData:!0})},28434: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'<div class="header-region"></div>\r\n<div class="results-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteVideosView:function(){return w}});var r=n(39479),o=n(48088),i=n(31647),u=n(21679),l=n(52076),a=n(10101),c=n(67670),s=n(61843),f=n(88172),p=n(30305),y=n(57857),b=n(21218),h=n.n(b);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(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&&g(e,t)}(k,e);var t,n,b,d,w=(b=k,d=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=O(b);if(d){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),w.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.libraryDataService=u.u.getInstance(p.Or.Library,this),this.videoDataService=u.u.getInstance(p.Or.Video,this)}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&y.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return s.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:y.T.getPhrase(this.lang,"removeVideos"),behaviorClass:a.Yw,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new c.v,buttonText:y.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){var e=this;this.library&&(o.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,(function(){e.options.routeToFolderOnDelete?i.Q.AppLinkHelper.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.FOLDER,args:[e.options.folderId]}):e.triggerMethod("hide")})),this.logAction())}},{key:"logAction",value:function(){var e=this.options.videoIds,t={libraryId:this.library.id,folderId:this.options.folderId,count:e.length};1===e.length&&(t.id=r.first(e)),l.k.logUserAction(t,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;this.library?this.spinnerModel.set(f.ZV.Disabled,!1):this.libraryDataService.getLibraries((function(t){e.library=s.PU.getLibrary(e.options.folderId,t),e.render()}))}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:s.Kp.getSpinner({size:s.Ey.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.Q.View)},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 u(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,r.key,r)}}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function c(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&&a(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 c(this,e)});function p(){return u(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}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Model)},21218: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.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:o}))?i:"")+"\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.libraryFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);