@clickview/library-editor 1.64.0-rc.0 → 1.64.0-rc.2

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 (214) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/languages/en.json +1 -1
  3. package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
  4. package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
  5. package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
  6. package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
  7. package/dist/scripts/1524-0256080e94.chunk.js +1 -0
  8. package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
  9. package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
  10. package/dist/scripts/2035-550073891d.chunk.js +1 -0
  11. package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
  12. package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
  13. package/dist/scripts/2781-bd09622ade.chunk.js +2 -0
  14. package/dist/scripts/2781-bd09622ade.chunk.js.LICENSE.txt +1 -0
  15. package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
  16. package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
  17. package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
  18. package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
  19. package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
  20. package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
  21. package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
  22. package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
  23. package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
  24. package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
  25. package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
  26. package/dist/scripts/3450-4284a60805.chunk.js +1 -0
  27. package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
  28. package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
  29. package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
  30. package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
  31. package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
  32. package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
  33. package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
  34. package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
  35. package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
  36. package/dist/scripts/4327-274f834810.chunk.js +1 -0
  37. package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
  38. package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
  39. package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
  40. package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
  41. package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
  42. package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
  43. package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
  44. package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
  45. package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
  46. package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
  47. package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
  48. package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
  49. package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
  50. package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
  51. package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
  52. package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
  53. package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
  54. package/dist/scripts/6450-179a533a35.chunk.js +1 -0
  55. package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
  56. package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
  57. package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
  58. package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
  59. package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
  60. package/dist/scripts/6677-679046f587.chunk.js +1 -0
  61. package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
  62. package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
  63. package/dist/scripts/6774-e23988f663.chunk.js +1 -0
  64. package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
  65. package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
  66. package/dist/scripts/7071-21381973d1.chunk.js +1 -0
  67. package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
  68. package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
  69. package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
  70. package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
  71. package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
  72. package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
  73. package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
  74. package/dist/scripts/777-ad756c2420.chunk.js +2 -0
  75. package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
  76. package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
  77. package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
  78. package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
  79. package/dist/scripts/8306-7a937af758.chunk.js +1 -0
  80. package/dist/scripts/8362-e513473f50.chunk.js +1 -0
  81. package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
  82. package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
  83. package/dist/scripts/8757-218873f759.chunk.js +2 -0
  84. package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
  85. package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
  86. package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
  87. package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
  88. package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
  89. package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
  90. package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
  91. package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
  92. package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
  93. package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
  94. package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
  95. package/dist/scripts/9376-a690087044.chunk.js +1 -0
  96. package/dist/scripts/95-14875ad65e.chunk.js +1 -0
  97. package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
  98. package/dist/scripts/968-4da16290ef.chunk.js +1 -0
  99. package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
  100. package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
  101. package/dist/scripts/9766-22dd736844.chunk.js +2 -0
  102. package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
  103. package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
  104. package/dist/scripts/bundle-441218310a.min.js +2 -0
  105. package/dist/scripts/{bundle-64721692b2.min.js.LICENSE.txt → bundle-441218310a.min.js.LICENSE.txt} +1 -1
  106. package/dist/scripts/polyfills-be59146258.min.js +1 -0
  107. package/package.json +1 -1
  108. package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
  109. package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
  110. package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
  111. package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
  112. package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
  113. package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
  114. package/dist/scripts/1934-84460445ad.chunk.js +0 -2
  115. package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
  116. package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
  117. package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
  118. package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
  119. package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
  120. package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
  121. package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
  122. package/dist/scripts/299-f415ca8856.chunk.js +0 -1
  123. package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
  124. package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
  125. package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
  126. package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
  127. package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
  128. package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
  129. package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
  130. package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
  131. package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
  132. package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
  133. package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
  134. package/dist/scripts/3643-877406d207.chunk.js +0 -1
  135. package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
  136. package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
  137. package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
  138. package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
  139. package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
  140. package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
  141. package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
  142. package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
  143. package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
  144. package/dist/scripts/4796-1b85c00672.chunk.js +0 -2
  145. package/dist/scripts/4796-1b85c00672.chunk.js.LICENSE.txt +0 -1
  146. package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
  147. package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
  148. package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
  149. package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
  150. package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
  151. package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
  152. package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
  153. package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
  154. package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
  155. package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
  156. package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
  157. package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
  158. package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
  159. package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
  160. package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
  161. package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
  162. package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
  163. package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
  164. package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
  165. package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
  166. package/dist/scripts/6768-416924be66.chunk.js +0 -1
  167. package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
  168. package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
  169. package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
  170. package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
  171. package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
  172. package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
  173. package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
  174. package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
  175. package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
  176. package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
  177. package/dist/scripts/775-96028af5a8.chunk.js +0 -1
  178. package/dist/scripts/777-03d78e4162.chunk.js +0 -2
  179. package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
  180. package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
  181. package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
  182. package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
  183. package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
  184. package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
  185. package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
  186. package/dist/scripts/8591-047736d51e.chunk.js +0 -1
  187. package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
  188. package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
  189. package/dist/scripts/8862-292b678cef.chunk.js +0 -1
  190. package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
  191. package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
  192. package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
  193. package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
  194. package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
  195. package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
  196. package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
  197. package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
  198. package/dist/scripts/9357-64d247d840.chunk.js +0 -1
  199. package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
  200. package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
  201. package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
  202. package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
  203. package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
  204. package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
  205. package/dist/scripts/9766-da39830c71.chunk.js +0 -2
  206. package/dist/scripts/9825-965bc63629.chunk.js +0 -1
  207. package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
  208. package/dist/scripts/bundle-64721692b2.min.js +0 -2
  209. package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
  210. /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
  211. /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
  212. /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
  213. /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3373],{59054:function(t,e,n){"use strict";var o;n.d(e,{f:function(){return o}}),function(t){t.Share="share",t.MasterObject="masterobject"}(o||(o={}))},47022:function(t,e,n){"use strict";n.d(e,{Q:function(){return h}});var o=n(21161),r=n(31647),i=n(52076),a=n(70065),s=n(99186),c=n.n(s);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(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)}(t,y()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,[t])}return 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&&b(t,e)}(e,t),n=e,(r=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous,!0);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,e){var n=this.options.appLink.params;return e?(null==n?void 0:n.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==n?void 0:n.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,l(l({},this.options.cursorParamName,t),"previous",n.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=i.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),n={id:this.options.collectionId,page:t};i.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},82936:function(t,e,n){"use strict";n.d(e,{wc:function(){return y},ND:function(){return f},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};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 s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,c(o.key),o)}}function c(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=l(e),function(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)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}(this,e,[t])}return 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)}(e,t),n=e,(o=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(i.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i},this.options)}}])&&s(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(n(31647).Q.wA),y={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},4113:function(t,e,n){"use strict";n.r(e),n.d(e,{RestrictedVideoListView:function(){return I}});var o=n(21679),r=n(57857),i=n(31647),a=n(59054),s=n(25692),c=n(56210),u=n(47022),l=n(98985),p=n(85475),f=n(70763),y=n(57085),d=n(58688),b=n(80867),h=n(45390),m=n(29457),v=n(85847),g=n(48404),w=n(19226),O=n(264),k=n(95061),C=n(12827),P=n.n(C);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){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,E(o.key),o)}}function E(t){var e=function(t){if("object"!=j(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==j(e)?e:e+""}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function L(t,e){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},L(t,e)}var I=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=_(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)}(t,V()?Reflect.construct(e,n||[],_(t).constructor):e.apply(t,n))}(this,e,[t])}return 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&&L(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=o.u.getInstance(h.Or.RestrictedVideo,this),this.videoDataService=o.u.getInstance(h.Or.Video,this),this.playerDataService=o.u.getInstance(h.Or.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(h.Vk.RESTRICTED_VIDEO,"".concat(h.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(h.Vk.RESTRICTED_VIDEO,"".concat(h.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":invalidate"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return P()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:c.H,selector:".info-tooltip",title:r.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:m.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:m.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(t){return new v.n({id:t.get("id")})}))))}},{key:"createViewKey",value:function(t,e){this.playerDataService.createViewKey(t,a.f.MasterObject,e)}},{key:"renderVideoList",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:h.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:d.U.VideoAccess,config:this.config,emptyStateType:m.ub.VideoAccess,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!t,showEmptyState:!0,libraries:this.libraries,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey}))}},{key:"renderPagination",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new u.Q({cursors:t,appLink:{application:h.OV.VIDEO_ACCESS,action:h.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new y.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:r.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:h.OV.LIBRARY_EDITOR,action:h.eX.LibraryEditor.HOME}},{name:r.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(t){var e=this;this.videoDataService.getVideo(t,(function(n){var o=e.videosWithMetadata.get(t);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:w.K.currentUser,libraries:k.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){return{supportUrl:!O.g.hasLite&&l.o.getOnlineArticle(s.s.VideoAccess),svg:p.Nj.getSvg(p.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&S(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.G7)},57085:function(t,e,n){"use strict";n.d(e,{n:function(){return V}});var o=n(31647),r=n(45390),i=n(22557),a=n(86363),s=n.n(a);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function y(t,e,n){return e=b(e),function(t,e){if(e&&("object"==c(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)}(t,d()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function h(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&&m(t,e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return u(this,e),y(this,e,arguments)}return h(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="breadcrumb-item";return this.model.get("active")&&(t+=" active"),t}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(t){function e(){return u(this,e),y(this,e,arguments)}return h(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(o.Q.$W),w=n(93933),O=n.n(w);function k(t){return k="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},k(t)}function C(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,P(o.key),o)}}function P(t){var e=function(t){if("object"!=k(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:e+""}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var V=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=S(e),function(t,e){if(e&&("object"==k(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)}(t,j()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}(this,e,[t])}return 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&&E(t,e)}(e,t),n=e,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return O()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var t=this;this.breadcrumbCollection=new o.Q.FE([]);var e,n=this.options.folder;do{if(!n)break;if(e=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!e),{at:0}),!e)break;n=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:r.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(e){return t.breadcrumbCollection.add(e)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(t,e){var n=e?r.eX.LibraryEditor.FOLDER:r.eX.LibraryEditor.LIBRARY;return{name:t.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:n,args:[t.id]}}}},{key:"onRender",value:function(){var t=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",t)}}])&&C(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},80867:function(t,e,n){"use strict";n.d(e,{Y:function(){return E}});var o=n(31647),r=n(52076),i=n(70065),a=n(50028),s=n(80758),c=n(10101),u=n(58688),l=n(37071),p=n(45390),f=n(29457),y=n(25887),d=n(30606),b=n.n(d);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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function O(t,e,n){return e=C(e),function(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)}(t,k()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}function P(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&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var S=function(t){function e(t){return m(this,e),O(this,e,[t])}return P(e,t),g(e,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return l.j}},{key:"childViewOptions",get:function(){var t=this;return function(e,n){return{componentType:e.get("status")===a.X.Processing?u.U.ProcessingVideo:t.options.videoItemComponentType,videoWithMetadata:t.options.videosWithMetadata&&t.options.videosWithMetadata.get(e.get("id")),allowBulk:t.options.allowBulk,collectionIdentifier:t.options.collectionIdentifier,application:t.options.application,pendingItems:t.options.pendingItems,config:t.options.config,sourceMetadataOptions:t.options.sourceMetadataOptions,collectionViewChannel:t.options.collectionViewChannel,customerHasLocalCache:t.options.customerHasLocalCache,customerHasExchange:t.options.customerHasExchange,customerHasCustomLibrary:t.options.customerHasCustomLibrary,analyticsOptions:t.options.analyticsOptions,videoCollectionSource:t.options.videoCollectionSource,currentUser:t.options.currentUser,playerApiUrl:t.options.playerApiUrl,createViewKey:t.options.createViewKey,isLastItem:!t.options.hasCursors&&n===t.collection.length-1,libraries:t.options.libraries,products:t.options.products}}}}])}(o.Q.$W),E=function(t){function e(t){return m(this,e),O(this,e,[t])}return P(e,t),g(e,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return b()}},{key:"defaults",get:function(){return{videoItemComponentType:u.U.Base,allowBulk:!1,emptyState:f.ub.Default,videoCollectionSource:y.x_.Folder}}},{key:"behaviors",get:function(){var t=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&t.push({behaviorClass:s.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),t}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var t=new S({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LZ.VideoListItem,entity:i.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",t)}}])}(o.Q.wA)},99186:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:r}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:r}))+"</a>\n</div>"},useData:!0})},62699:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,s=t.escapeExpression;return'<span class="'+s(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' me-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+s(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+s(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},12827:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return' <a class="d-inline-block ms-2 svg-container sm info-tooltip" href="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="ps-3 pt-3 pe-3">\n <div class="border-bottom">\n <div class="d-flex align-items-center pb-2">\n <h1 class="h3 d-inline-block m-0">'+c((n.lang||e&&e.lang||s).call(a,"heading",{name:"lang",hash:{},data:r}))+" </h1>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\n <div class="breadcrumbs-region"></div>\n <p class="pb-3 pt-2 m-0">\n '+c((n.lang||e&&e.lang||s).call(a,"description",{name:"lang",hash:{},data:r}))+'\n </p>\n </div> \n</div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n<div class="empty-region"></div>'},useData:!0})},86363:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<span class="fw-bolder">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\n"},3:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"<a>"+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.isActive:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?i:""},useData:!0})},93933:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},30606:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3391],{52834:function(e,t,n){"use strict";n.d(t,{U:function(){return w}});var r=n(21161),o=n(31647),i=n(70065),u=n(56210),c=n(85475),a=n(17954),l=n(45390),s=n(93569),f=n(86745),p=n.n(f),b={svgContainer:"qOHRG"};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var w=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=h(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e])}return 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)}(t,e),n=t,(o=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between px-3 pt-3 pb-2 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:u.H,selector:".".concat(b.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:b,lockSvg:c.Nj.getSvg(c.vn.Lock),hasRestriction:!r.isUndefined(this.model.get("restrictions")),restrictionMessage:s.S9.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new a.R({model:this.model,showActionLabels:!0,application:l.OV.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:i.py.Video,location:i.LZ.VideoDetailsHeader,descriptor:i.yh.Single},config:this.options.config,products:this.options.products,libraries:this.options.libraries}))}}])&&m(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return C}});var r=n(31647),o=n(45390),i=n(22557),u=n(86363),c=n.n(u);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function f(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function b(e,t,n){return t=m(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function d(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var h=function(e){function t(){return l(this,t),b(this,t,arguments)}return d(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return c()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(r.Q.wA),g=function(e){function t(){return l(this,t),b(this,t,arguments)}return d(t,e),f(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return h}}])}(r.Q.$W),w=n(93933),O=n.n(w);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E(r.key),r)}}function E(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var C=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=P(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}(this,t,[e])}return 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),n=t,(u=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return O()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new r.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&j(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},86745:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return' <span class="d-inline-block ms-2 '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+c(u(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u,c=null!=t?t:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\n <h4 class="d-inline-block mb-0">'+e.escapeExpression("function"==typeof(u=null!=(u=n.name||(null!=t?t.name:t))?u:e.hooks.helperMissing)?u.call(c,{name:"name",hash:{},data:o}):u)+"</h4>\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},86363:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\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.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return y}});var n=r(43823),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var y=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,(o=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"mt-5"}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}}])&&a(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.G7)},78084:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\n<div class="alert alert-danger" role="alert">\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\n</div>\n<div class="alert alert-warning" role="alert">\n <h3>Call stack</h3>\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\n</div>"},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3450],{8371:function(e,n,t){"use strict";var o;t.d(n,{b:function(){return o}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(o||(o={}))},51594:function(e,n,t){"use strict";t.d(n,{a:function(){return fe}});var o=t(43823),r=t(21161),i=t(31647),l=t(10101),a=t(57857),s=t(62312),u=t(10657),c=t(85475),p=t(70550),d=t.n(p),f={clearSvg:"gWA4e"};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 m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=h(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(n)?n:n+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}var w=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=g(n),function(e,n){if(n&&("object"==h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],g(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(n,e),t=n,(r=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(f.clearButton)}},{key:"template",get:function(){return d()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){o.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:f,svgClear:c.Nj.getSvg(c.vn.Close)}}}])&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(i.Q.wA),k=t(45390),C=t(40622),E=t(7591),O=t.n(E),P=t(45289),S={previous:"lzgvM",next:"Vxb5b",datePicker:"odbOJ",calendarSvg:"fT6E_",disabled:"nayb_"};function T(e){return T="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},T(e)}function j(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,x(o.key),o)}}function x(e){var n=function(e){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=T(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(n)?n:n+""}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}var B=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=I(n),function(e,n){if(n&&("object"==T(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_()?Reflect.construct(n,t||[],I(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(n,e),t=n,o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:".concat(this.options.modelAttr),this.renderClearDateButton),this.listenTo(this.channelName,"clear:date",this.onClearDate)}},{key:"name",get:function(){return"DatePickerComponent"}},{key:"template",get:function(){return O()}},{key:"lang",get:function(){return"shared.datePicker"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"elements",get:function(){return{date:"#".concat(this.options.modelAttr)}}},{key:"regions",value:function(){return{clearButton:{el:".clear-button-region"}}}},{key:"appLinks",get:function(){return{".suggest-broadcast-date":{application:k.OV.LIBRARY_EDITOR,action:k.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.pG.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:a.T.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){var e=this;return j({},"[name=".concat(this.options.modelAttr,"]"),{observe:this.options.modelAttr,setOptions:{validate:!0},onGet:function(n){return e.getFormattedDisplayDate(n)},onSet:function(n){return e.getFormattedSavedDate(n)}})}},{key:"events",value:function(){return j({"keydown @ui.date":"onKeyDownDate"},"click .".concat(S.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:(new Date).setFullYear(this.options.minYear),maxDate:new Date,icons:{previous:S.previous,next:S.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return r.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):u.O.formatUtcString(e,this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return r.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):u.O.formatUtcString(e,this.options.savedTimeFormat)}},{key:"onClickCalendarIcon",value:function(){if(this.options.editable)return this.getUI("date").datetimepicker("toggle"),!0}},{key:"onClearDate",value:function(){return!this.options.allowClearDate||(this.model.set(j({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new w({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:r.extend(P.Z,S),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:c.Nj.getSvg(c.vn.Calendar),svgClear:c.Nj.getSvg(c.vn.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}],o&&D(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),N=t(52808),A=t(29457),M=t(33469),Z=t(83980),L=t(88764),V=t.n(L);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function F(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function G(e){var n=function(e){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=Y(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Y(n)?n:n+""}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}function Q(e,n){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Q(e,n)}var z=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=J(n),function(e,n){if(n&&("object"==Y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U()?Reflect.construct(n,t||[],J(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Q(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:k.OV.LIBRARY_EDITOR,action:k.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.pG.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:k.n8.ChannelRaw,typeaheadConfig:Z.M.getTypeaheadConfig(),bloodhoundConfig:Z.M.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new B({model:this.model,label:a.T.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:A.K4.FULL_YEAR,placeholderText:this.options.editable?a.T.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new M.$),this.showChildView("channelSearch",new N.M({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?a.T.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:s.J.emitEventOnInput(this.options.channelName,C.NT.DetectInput,"channel"),onBlur:s.J.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:P.Z,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&F(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),K=t(68588),X=t.n(K),W={disabled:"Jh_Ny"};function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function q(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,H(o.key),o)}}function H(e){var n=function(e){if("object"!=$(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=$(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$(n)?n:n+""}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ee=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function te(e,n){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},te(e,n)}var oe=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=ne(n),function(e,n){if(n&&("object"==$(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ee()?Reflect.construct(n,t||[],ne(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&te(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return X()}},{key:"lang",get:function(){return"shared.toggleBroadcast"}},{key:"className",get:function(){return"toggle-broadcast"}},{key:"regions",value:function(){return{broadcast:{el:".broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return this.options.hideToggle?[]:[{behaviorClass:l.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),n=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!n,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new z({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:W},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&q(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),re=t(79710),ie=t.n(re),le={disabled:"lT52_"};function ae(e){return ae="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},ae(e)}function se(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ue(o.key),o)}}function ue(e){var n=function(e){if("object"!=ae(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=ae(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ae(n)?n:n+""}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ce=function(){return!!e})()}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}function de(e,n){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},de(e,n)}var fe=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=pe(n),function(e,n){if(n&&("object"==ae(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ce()?Reflect.construct(n,t||[],pe(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&de(e,n)}(n,e),t=n,i=[{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return ie()}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:l.Bp},{behaviorClass:l.fS}]}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new oe({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:r.extend({},P.Z,le),editable:this.options.editable}}},{key:"onRender",value:function(){this.stickit(),o.Validation.bind(this),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),o.Validation.unbind(this)}}],i&&se(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},95168:function(e,n,t){"use strict";t.d(n,{O:function(){return F}});var o=t(43823),r=t(21161),i=t(57857),l=t(31647),a=t(62312),s=t(85475),u=t(10101),c=t(52092),p=t(84013),d=t(4589),f=t(4228),h=t(52808),m=t(40622),y=t(69369),b=t.n(y);function g(e){return g="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},g(e)}function v(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e){var n=function(e){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=g(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==g(n)?n:n+""}function E(e,n,t){return n=P(n),function(e,n){if(n&&("object"==g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,O()?Reflect.construct(n,t||[],P(e).constructor):n.apply(e,t))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function S(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&T(e,n)}function T(e,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},T(e,n)}var j=function(e){function n(e){return v(this,n),E(this,n,[e])}return S(n,e),k(n,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return D}}])}(l.Q.$W),D=function(e){function n(e){return v(this,n),E(this,n,[e])}return S(n,e),k(n,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return b()}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},t={observe:"name",setOptions:{validate:!0}},(n=C(n="[name=".concat(this.modelId,"]")))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new h.M({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:a.J.selectFirstResult,onInput:a.J.emitEventOnInput(this.options.channelName,m.NT.DetectInput,this.options.modelType,{isCollection:!0})},editable:this.options.editable,actionOptions:{clearOnSelect:!0},removeEvent:this.options.removeEvent,forceShowRemoveButton:this.collection.length>1||!!this.model.get("name")}))}},{key:"viewOptions",value:function(){return{id:this.modelId}}},{key:"onRender",value:function(){this.renderTypeahead()}}])}(l.Q.wA),x=t(45390),_=t(29457),I=t(83980),R=t(52529),B=t.n(R),N=t(45289);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function M(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Z(o.key),o)}}function Z(e){var n=function(e){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=A(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(n)?n:n+""}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function Y(e,n){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Y(e,n)}var F=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=V(n),function(e,n){if(n&&("object"==A(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L()?Reflect.construct(n,t||[],V(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Y(e,n)}(n,e),t=n,l=[{key:"initialize",value:function(){var e=this.options.channelName;this.listenTo(e,"select:distributor",this.onSelectDistributor),this.listenTo(e,"select:production:company",this.onSelectProductionCompany),this.listenTo(e,"select:director",this.onSelectDirector),this.listenTo(e,"select:producer",this.onSelectProducer),this.listenTo(e,"remove:distributor",this.onRemoveDistributor),this.listenTo(e,"remove:production:company",this.onRemoveProductionCompany),this.listenTo(e,"remove:director",this.onRemoveDirector),this.listenTo(e,"remove:producer",this.onRemoveProducer)}},{key:"name",get:function(){return"EditProductionInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return B()}},{key:"lang",get:function(){return"shared.editProductionInfo"}},{key:"className",get:function(){return"edit-production-info border-top pt-3"}},{key:"elements",get:function(){return{tooltips:".info-tooltip"}}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()},"click .new-producer":"onClickAddNewProducer","click .new-director":"onClickAddNewDirector","click .new-distributor":"onClickAddNewDistributor","click .new-production-company":"onClickAddNewProductionCompany"}}},{key:"regions",value:function(){return{distributors:{el:".distributor-region",replaceElement:!0},productionCompanies:{el:".production-company-region",replaceElement:!0},directors:{el:".directors-region",replaceElement:!0},producers:{el:".producers-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=productionYear]":{observe:"productionYear",setOptions:{validate:!0},onSet:function(e){return e}}}}},{key:"behaviors",get:function(){return[{behaviorClass:u.fS},{behaviorClass:u.Bp}]}},{key:"appLinks",get:function(){var e={application:x.OV.LIBRARY_EDITOR,action:x.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":r.extend({},e,{params:{metadata:m.pG.ProductionYear}}),".suggest-distributors":r.extend({},e,{params:{metadata:m.pG.Distributors}}),".suggest-production-companies":r.extend({},e,{params:{metadata:m.pG.ProductionCompanies}}),".suggest-directors":r.extend({},e,{params:{metadata:m.pG.Directors}}),".suggest-producers":r.extend({},e,{params:{metadata:m.pG.Producers}})}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(_.Zn.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(_.Zn.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(_.Zn.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(_.Zn.ProductionCompany)}},{key:"expandPersonList",value:function(e){var n=this.model.get(e);5!==n.length&&n.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,_.Zn.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,_.Zn.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,_.Zn.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,_.Zn.Producer)}},{key:"onSelect",value:function(e,n){o.Radio.channel(this.options.channelName).trigger("add:".concat(n),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,_.Zn.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,_.Zn.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,_.Zn.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,_.Zn.Producer)}},{key:"onRemove",value:function(e,n){this.model.get(n).remove(e),o.Radio.channel(this.options.channelName).trigger("remove:".concat(n),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var n=I.M.getTypeaheadConfig(),t=I.M.getBloodhoundConfig();return[{name:e,typeaheadConfig:n,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e,footerTemplate:a.J.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new j({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.n8.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new j({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.n8.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new j({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.n8.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new j({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.n8.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new p.n([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new f.h([{}])),this.model.get("directors")||this.model.set("directors",new c.A([{}])),this.model.get("producers")||this.model.set("producers",new d.T([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:N.Z,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(_.Zn.Director),allowAdditionalProducer:this.allowAdditional(_.Zn.Producer),allowAdditionalDistributor:this.allowAdditional(_.Zn.Distributor),allowAdditionalProductionCompany:this.allowAdditional(_.Zn.ProductionCompany),infoSvg:s.Nj.getSvg(s.vn.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}}],l&&M(t.prototype,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,l}(l.Q.wA)},70550:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.clearSvg:i,n))+' clear-button">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgClear:i,n))?i:"")+"</span>"},useData:!0})},7591:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <label for="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.label:i,n))+"</label>\n "+(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-broadcast-date">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},6:function(e,n,t,o,r){return"disabled"},8:function(e,n,t,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.datePicker:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.broadcastDate:i,n))+'">\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.label:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <input\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\n class="form-control datetimepicker-input '+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+" "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\n data-bs-toggle="datetimepicker"\n data-bs-target=".'+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+'"\n autocomplete="off"\n '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\n />\n <span class="clear-button-region clear-svg"></span>\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.calendarSvg:i,n))+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgCalendar:i,n))?i:"")+'</span>\n <div class="form-feedback"></div>\n</div>'},useData:!0})},79710:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return e.propertyIsEnumerable,"<h5>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"heading",{name:"lang",hash:{},data:r}))+'</h5>\n<div class="edit-broadcast-region"></div>'},useData:!0})},88764:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-channel">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div class="container-fluid">\n <div class="row">\n <div class="form-group col-6 px-0">\n <div class="date-broadcast-region"></div>\n </div>\n <div class="form-group col-6 pe-0 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.channel:i,n))+'">\n <label for="channel-search">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"channel",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="channel-search-region"></div>\n </div>\n </div>\n</div>'},useData:!0})},68588:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="form-group"> \n <div class="form-check">\n <input\n name="toggleBroadcast"\n type="checkbox"\n class="form-check-input '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="toggle-broadcast"\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <label class="form-check-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"tv",{name:"lang",hash:{},data:r}))+"</label>\n </div>\n</div>\n"},2:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.hideToggle:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="broadcast-region"></div>\n'},useData:!0})},52529:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionYear:i,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-year">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionCompanies:i,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-companies">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\n"},15:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.distributors:i,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-distributors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\n"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.producers:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-producers">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-producer">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\n"},27:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.directors:i,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-directors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-director">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\n\n<div class="container-fluid p-0">\n <div class="row">\n <div class="form-group col-4 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||a).call(l,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\n <input\n name="productionYear"\n type="number"\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="edit-production-year"\n placeholder="'+s(u(null!=(i=null!=n?n.options:n)?i.productionYearPlaceholderText:i,n))+'"\n autocomplete="off"\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n\n <div class="row">\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="production-company-search">\n '+s((t.lang||n&&n.lang||a).call(l,"productionCompanies",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip" \n title="'+s((t.lang||n&&n.lang||a).call(l,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="production-company-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProductionCompany:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="distributor-search">\n '+s((t.lang||n&&n.lang||a).call(l,"distributors",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="distributor-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDistributor:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n </div>\n\n <div class="row">\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="producer-search">\n '+s((t.lang||n&&n.lang||a).call(l,"producers",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"producerInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="producers-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProducer:i,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="director-search">\n '+s((t.lang||n&&n.lang||a).call(l,"directors",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"directorInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="directors-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDirector:i,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\n </div>\n</div>"},useData:!0})},69369:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.typeahead:i,n))+'"></div>'},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3475],{13475:function(e,t,n){"use strict";n.r(t),n.d(t,{GeneratePdfView:function(){return T}});var r=n(43823),i=n(21679),o=n(57857),a=n(31647),c=n(52076),l=n(70065),u=n(77502),s=n(10101),f=n(88172),p=n(45390),h=n(67670),y=n(19226),d=n(93569),b=n(56906),v=n(44634),m=n.n(v),g={image:"Di3M6"};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,P(r.key),r)}}function P(e){var t=function(e){if("object"!=w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==w(t)?t:t+""}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(E=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var T=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=k(t),function(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)}(e,E()?Reflect.construct(t,n||[],k(e).constructor):t.apply(e,n))}(this,t,[e])}return 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),n=t,(v=[{key:"initialize",value:function(){this.collectionIdentifier=this.options.collectionIdentifier,this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.videoDataService=i.u.getInstance(p.Or.Video,this),this.exportDataService=i.u.getInstance(p.Or.Export,this),this.bindListeners()}},{key:"name",get:function(){return"GeneratePdfView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.generatePdf"}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:s.Yw,title:o.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,saveEvent:"generate:pdf",channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"generate"),extraButtonClass:"btn-dark",spinnerOptions:{size:d.Ey.Small,type:d.dR.Light,extraClasses:"mx-auto"}}}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(p.Vk.LIBRARY,"".concat(p.M_.FOLDER,":").concat(this.collectionIdentifier.id,":sync"),this.render),this.listenTo(p.Vk.VIDEO,"".concat(this.collectionIdentifier.toString(),":sync"),this.render),this.listenTo(p.Vk.EXPORT,"".concat(p.M_.GENERATE_COLLECTION_PDF,":").concat(this.collectionIdentifier.id,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"onClickGeneratePdf",value:function(){this.hasDataFetched()&&(r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.exportDataService.generateCollectionPdf(this.library.id,this.collectionIdentifier.id,this.collectionIdentifier.sort),this.logAction(this.collectionIdentifier.id,this.collectionIdentifier.sort))}},{key:"fetchData",value:function(){var e=this;this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id),this.library||this.libraryDataService.getLibraries((function(t){e.library=d.PU.getLibrary(e.collectionIdentifier.id,t),e.render()}))}},{key:"logAction",value:function(e,t){var n={location:l.LZ.Popup,actionType:l.Vw.Create,entity:l.py.PDF,workflowPhase:l.eu.Complete},r={id:e,sort:u.E[t]};c.k.logUserAction(r,n)}},{key:"hasDataFetched",value:function(){return!!this.model&&!!this.videos&&!!this.library}},{key:"requiredResources",get:function(){return{currentUser:y.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;return this.fetchData(),!!this.hasDataFetched()&&(this.videos&&!this.videos.length?(window.setTimeout((function(){e.triggerMethod("hide"),a.Q.Ry.throw(new b.Xz(o.T.getPhrase(e.lang,"errorHeading")))}),p.pA.POPUP_FADE_TIMEOUT),!1):(this.hasDataFetched()&&this.spinnerModel.set(f.ZV.Disabled,!1),!0))}},{key:"viewOptions",value:function(){return{dataFetched:this.hasDataFetched(),spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"}),imageUrl:p.Wn.Shared.GENERATE_PDF,infoText:o.T.getPhrase(this.lang,"info",{name:this.model.get("name"),email:this.currentUser.get("email"),escapeText:!0}),styles:g}}}])&&O(n.prototype,v),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,v}(a.Q.G7)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});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 a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return 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)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},i.ZV.Disabled,!0),i.ZV.Hidden,!1)}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},44634:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,c=e.escapeExpression;return'<div class="pb-3 text-center">\n <img src="'+c(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+c(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\n</div>\n<p class="m-0">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.infoText:o,t))?o:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})}}]);
@@ -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 k}});var r=n(43823),i=n(21679),o=n(57857),a=n(31647),l=n(52076),u=n(10101),c=n(88172),s=n(45390),f=n(93569),y=n(56906),b=n(72634),h=n.n(b);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 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,m(r.key),r)}}function m(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var k=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=v(t),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)}(e,g()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}(this,t,[e])}return 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&&w(e,t)}(t,e),n=t,(b=[{key:"initialize",value:function(){this.listenTo(s.Vk.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.u.getInstance(s.Or.Library,this)}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:o.T.getPhrase(this.lang,"removeLibrary"),behaviorClass:u.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(c.I3.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){a.Q.C$.trigger({application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};l.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"),a.Q.Ry.throw(t)}),s.pA.POPUP_FADE_TIMEOUT),!1):!!this.model}}])&&d(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(a.Q.G7)},72634:function(e,t,n){var r=n(31197);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
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3643],{89375:function(e,r,t){t.d(r,{j:function(){return i}});var a=t(31647),n=" - ClickView",i={setPageTitle:function(e){e&&a.Q.Ab.SetPageTitle(function(e){return e.length+12<=60?e+n:e.substring(0,57)+"..."+n}(e))}}},86242:function(e,r,t){t.d(r,{Oo:function(){return f},b2:function(){return v}});var a=t(32735),n=t(57857),i=t(77105),c=t(90547),l=t(5256),o=t(89146),u=t(85475),s=t(39396);function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,n,i,c,l=[],o=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;o=!1}else for(;!(o=(a=i.call(t)).done)&&(l.push(a.value),l.length!==r);o=!0);}catch(e){u=!0,n=e}finally{try{if(!o&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw n}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return b(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?b(e,r):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.")}()}function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var d=n.T.encloseNamespace("shared.breadcrumbComponent"),y=a.forwardRef((function(e,r){var t=e.breadcrumb,n=t.name,c=t.appLink,l=t.active,o=e.withBackIcon,m=n,b=null;return m.length>48&&(m=n.slice(0,48)+"...",b=n),a.createElement("li",{className:"breadcrumb-item".concat(l?" active":""),title:b},l?a.createElement("strong",null,m):a.createElement(i.F,{appLink:c,ref:r},o&&a.createElement(s.x,{svgName:u.vn.ChevronLeft,size:s.S.Small}),a.createElement("span",{className:o?"ms-2":""},m)))})),f=function(e){var r=e.breadcrumbs,t=(0,l.a)(c.r.XS),n=(null==r?void 0:r.length)||0,i=m(a.useState(!1),2),o=i[0],u=i[1],s=m(a.useState(!1),2),b=s[0],f=s[1],v=a.useRef(null);if(a.useEffect((function(){var e,t=null!==(e=null==r?void 0:r.reduce((function(e,r){return e+r.name.length}),0))&&void 0!==e?e:0;n>4&&t>64&&u(!0)}),[null==r?void 0:r.length]),a.useLayoutEffect((function(){var e;b&&(null===(e=v.current)||void 0===e||e.focus())}),[v.current,b]),!n||t&&n<2)return a.createElement(a.Fragment,null);if(t)return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},a.createElement(y,{breadcrumb:r[n-2],withBackIcon:!0})));var g=a.createElement(y,{breadcrumb:r[0]}),p=n>2?a.createElement(y,{breadcrumb:r[1]}):a.createElement(a.Fragment,null),h=n>3?a.createElement(y,{breadcrumb:r[n-2]}):a.createElement(a.Fragment,null),E=n>1?a.createElement(y,{breadcrumb:r[n-1]}):a.createElement(a.Fragment,null),w=r.slice(2,n-2);return a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},g,p,o?a.createElement("li",{className:"breadcrumb-item"},a.createElement("button",{className:"btn-link",onClick:function(){u(!1),f(!0)},"aria-label":d("expand")},"...")):w.map((function(e,r){return a.createElement(y,{key:r,breadcrumb:e,ref:0===r?v:null})})),h,E))},v=a.memo((function(e){var r=e.numItems,t=void 0===r?3:r;return(0,l.a)(c.r.XS)?a.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):a.createElement("nav",{"aria-label":"breadcrumb"},a.createElement("ol",{className:"breadcrumb m-0 p-0"},o.u.getPartialLoadingItems({numItems:t}).map((function(e,r){var t=e.width;return a.createElement("li",{key:r,className:"breadcrumb-item"},a.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:t},dangerouslySetInnerHTML:{__html:"&nbsp"}}))}))))}))},23454:function(e,r,t){t.d(r,{f:function(){return c}});var a=t(32735),n=t(39396),i={circle:"Uxnsl",img:"BQ87Y"};function c(e){var r;return e.imageUrl||e.svgName?e.imageUrl?a.createElement("div",{className:"".concat(i.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):a.createElement("div",{className:"".concat(i.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(r=e.svgWrapperClassName)&&void 0!==r?r:"")},a.createElement(n.x,{svgName:e.svgName,size:e.svgSize})):a.createElement(a.Fragment,null)}c.defaultProps={textVariant:"white"}},90547:function(e,r,t){var a;t.d(r,{r:function(){return a}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(a||(a={}))},34107:function(e,r,t){t.d(r,{D:function(){return l}});var a=t(2248),n=t(68003),i=t(40221),c=t(84657),l={domainLibraries:function(e,r,t,a){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:a}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:n._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,a){return e.sort(),{url:n._.urlBuilder("/api/domain/v2/objects",{query:c.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:a}},library:function(e,r,t,a){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:c.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:a}},exchange:function(e){return{url:n._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:n._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,n,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:a.k.PUT,data:{customerId:r,granted:t},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:n,error:i}},removeSubscriber:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:a.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:n}},folder:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:a}},videoFolders:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/categories?query=libraries"),key:"video:folders:".concat(e)}},folderParentTree:function(e,r,t,a){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:a}},childFolders:function(e,r,t,a,n){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),c="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),c+=":".concat(r)),{url:i,key:c,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:a,always:n}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:a.k.POST,data:e,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}},libraryExport:function(e){return{url:"{gateway}/v1/libraries/export",key:"library:export",type:a.k.POST,data:e}}}},89146:function(e,r,t){function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}t.d(r,{u:function(){return i}});var n={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},n),r);return(e=Array(t.numItems),function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):void 0}}(e)||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.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*t.maxWidth),t.minWidth),"px")}}))}}},52814:function(e,r,t){t.d(r,{y:function(){return n}});var a=t(32735);function n(){return a.createElement("div",{className:"partial-loading-background w-100 rounded-3",style:{height:"3.5rem"}}," ")}},43643:function(e,r,t){t.r(r),t.d(r,{LibraryRequestSettingsLibrariesView:function(){return w}});var a=t(32735),n=t(57857),i=t(31647),c=t(86120),l=t(40221),o=t(89375),u=t(86242),s=t(66703),m=t(34107),b=t(50997),d=t(52814),y=t(77105),f=t(23454),v=t(85475),g={libraryIcon:"hQt1a"};function p(e){var r,t;return a.createElement(y.F,{className:"p-2 border rounded-3 d-flex align-items-center mb-2 text-decoration-none",appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[e.library.id]}},a.createElement("div",{className:"".concat(g.libraryIcon," me-2")},a.createElement(f.f,{svgName:v.vn.Library,imageUrl:null===(t=null===(r=e.library.owner)||void 0===r?void 0:r.logo)||void 0===t?void 0:t.url,variant:"ultramarine"})),a.createElement("h3",{className:"h6 mb-0"},e.library.name))}var h="libraryEditor.libraryRequestSettingsLibraries",E=n.T.encloseNamespace(h);function w(){var e=c.a.useBasicFetch(m.D.domainLibraries(["customLibrary","unpublishedCustomLibrary"]));a.useEffect((function(){return o.j.setPageTitle(E("libraryRequestSettings"))}),[]),a.useEffect((function(){e.data&&(e.data.length>1||i.Q.C$.trigger({application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[l.m.first(e.data).id]},{replace:!0}))}),[e.data]);var r=[{name:E("libraryEditor"),appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:E("libraryRequestSettings"),appLink:{application:b.OV.LIBRARY_REQUESTS,action:b.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES},active:!0}];return a.createElement("div",{className:"bg-white p-3"},a.createElement("h1",{className:"h3 mb-2"},a.createElement(s.x,{namespace:h,phrase:"libraryRequestSettings"})),a.createElement(u.Oo,{breadcrumbs:r}),a.createElement("hr",null),a.createElement("h2",{className:"h5 mb-2"},a.createElement(s.x,{namespace:h,phrase:"myLibraries"})),e.data?a.createElement(a.Fragment,null,e.data.map((function(e){return a.createElement(p,{key:e.id,library:e})}))):a.createElement(a.Fragment,null,a.createElement("div",{className:"mb-2"},a.createElement(d.y,null)),a.createElement("div",{className:"mb-2"},a.createElement(d.y,null))))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3664],{16616:function(e,r,t){t.d(r,{FT:function(){return o}});var n=t(32735),a=t(74512);const i=["as","disabled"];function o({tagName:e,disabled:r,href:t,target:n,rel:a,role:i,onClick:o,tabIndex:c=0,type:s}){e||(e=null!=t||null!=n||null!=a?"a":"button");const u={tagName:e};if("button"===e)return[{type:s||"button",disabled:r},u];const l=n=>{(r||"a"===e&&function(e){return!e||"#"===e.trim()}(t))&&n.preventDefault(),r?n.stopPropagation():null==o||o(n)};return"a"===e&&(t||(t="#"),r&&(t=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:r?void 0:c,href:t,target:"a"===e?n:void 0,"aria-disabled":r||void 0,rel:"a"===e?a:void 0,onClick:l,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),l(e))}},u]}const c=n.forwardRef(((e,r)=>{let{as:t,disabled:n}=e,c=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)>=0)continue;t[n]=e[n]}return t}(e,i);const[s,{tagName:u}]=o(Object.assign({tagName:t,disabled:n},c));return(0,a.jsx)(u,Object.assign({},c,s,{ref:r}))}));c.displayName="Button",r.ZP=c},27445:function(e,r,t){t.d(r,{PB:function(){return a}});const n="data-rr-ui-";function a(e){return`${n}${e}`}},16608:function(e,r,t){t.d(r,{Z:function(){return a}});var n=t(32735);function a(e){const r=(0,n.useRef)(null);return(0,n.useEffect)((()=>{r.current=e})),r.current}},54096:function(e,r,t){t.d(r,{G:function(){return i}});var n=t(32735),a=t(21679);function i(e){var r,t;return r=e,t=a.u.getInstance(r),n.useEffect((function(){return function(){a.u.releaseInstance(r)}})),t}},19442:function(e,r,t){t.d(r,{h:function(){return l}});var n=t(32735),a=t(53808),i=t(31647),o=t(52076),c=t(77105),s=t(39396),u={iconButton:"aGxoe",iconWithText:"_cjiV",svg:"q6vwS",iconOnly:"T1CzO",iconBorder:"lBPNt"};function l(e){var r="".concat(e.className," ").concat(u.iconButton);n.Children.toArray(e.children).length?r+=" ".concat(u.iconWithText):e.showBorder||e.customSize||(r+=" ".concat(u.iconOnly)),e.showBorder&&(r+=" ".concat(u.iconBorder," btn btn-outline-dark me-2")),e.disabled&&(r+=" disabled");var t=n.createElement(s.x,{svgName:e.svgName,className:"svg-container ".concat(u.svg),size:e.svgSize});return e.appLink||e.href?e.href?n.createElement("a",{className:r,href:e.href,onClick:function(r){r.preventDefault(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(r),i.Q.Ab.PageLoad(e.href,e.openInNewTab)},"aria-label":e.ariaLabel,role:e.role},t,e.children):n.createElement(c.F,{appLink:e.appLink,className:r,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,role:e.role},t,e.children):n.createElement("button",{type:"button",className:r,"aria-label":e.ariaLabel,onClick:function(r){e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(r)},disabled:e.disabled,role:e.role},t,e.children)}},34107:function(e,r,t){t.d(r,{D:function(){return c}});var n=t(2248),a=t(68003),i=t(40221),o=t(84657),c={domainLibraries:function(e,r,t,n){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:e,maxCategoryDepth:0}),key:"libraries:".concat(e.sort().join(":")),formatData:function(e){return e.map((function(e){return e.data}))},success:r,error:t,always:n}},libraryRequestLibraries:function(){return{url:"{gateway}/v1/library-requests/libraries",key:"libraries"}},librariesWithCategories:function(){return{url:a._.urlBuilder("/api/domain/v2/me/libraries",{type:["sharedLibrary","customLibrary","unpublishedCustomLibrary"],maxCategoryDepth:5}),key:"libraries:with:categories",normalize:!1}},librariesWithOwnerLogos:function(e,r,t,n){return e.sort(),{url:a._.urlBuilder("/api/domain/v2/objects",{query:o.v.LIBRARY_COLLECTION,id:e}),key:"libraries:owner:logo:".concat(e.join(",")),success:r,error:t,always:n}},library:function(e,r,t,n){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.LIBRARY}),key:"library:".concat(e),success:r,error:t,always:n}},exchange:function(e){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"categorytree"}),key:"exchange"}},streamableLearning:function(){return{url:"{gateway}/v1/streamable-learning-library",key:"streamable:learning"}},librarySubscribers:function(e,r){var t={};return r&&(t.cursor=r),{url:a._.urlBuilder("{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers"),t),key:"library:subscribers:".concat(e,":").concat(r)}},libraryOwner:function(e){return{url:"{gateway}/v1/library-requests/libraries/".concat(e,"/subscribers?ownerOnly=true"),key:"library:owner:".concat(e),formatData:function(e){return i.m.first(e.data)}}},updateSubscriberPermissions:function(e,r,t,a,i){return{url:"{gateway}/v1/libraries/".concat(e,"/library-request-permissions"),key:"update:subscriber:permissions:".concat(e,":").concat(r),type:n.k.PUT,data:{customerId:r,granted:t},invalidationKeys:["library:owner:".concat(e),"library:subscribers:".concat(e)],success:a,error:i}},removeSubscriber:function(e,r,t,a){return{url:"{gateway}/v1/objects/".concat(e,"/subscribedcustomers?memberId=").concat(r),key:"revoke:subscription:".concat(e,":").concat(r),type:n.k.DELETE,invalidationKeys:["library:subscribers:".concat(e)],success:t,error:a}},folder:function(e,r,t,n){return{url:"{gateway}/v1/objects/".concat(e,"?query=banner,libraries"),key:"library:folder:".concat(e),success:r,error:t,always:n}},videoFolders:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/categories?query=libraries"),key:"video:folders:".concat(e)}},folderParentTree:function(e,r,t,n){return{url:"/api/domain/v2/categories/".concat(e,"/parent-tree?includeAll=false"),key:"folder:parent:tree".concat(e),success:r,error:t,always:n}},childFolders:function(e,r,t,n,a){var i="{gateway}/v1/objects/".concat(e,"/categories?query={limit:100}thumbnail"),o="child:folders:".concat(e);return r&&(i+="&cursor=".concat(r),o+=":".concat(r)),{url:i,key:o,formatData:function(e){var r=e.data.sort((function(e,r){return e.name.toLowerCase().localeCompare(r.name.toLowerCase())}));return Object.assign(Object.assign({},e),{data:r})},success:t,error:n,always:a}},addToLibrary:function(e,r){var t=["folder","videos",e.metadata.destinationCategoryId,r].filter((function(e){return!!e})).join(":");return{url:"{gateway}/v1/library-requests",key:"add:".concat(e.objectId,":to:").concat(e.destinationLibraryId,":").concat(e.metadata.destinationCategoryId),type:n.k.POST,data:e,invalidationKeys:t}},libraries:function(){return{url:"{gateway}/v1/users/me/libraries",key:"objects:libraries"}},libraryExport:function(e){return{url:"{gateway}/v1/libraries/export",key:"library:export",type:n.k.POST,data:e}}}},2491:function(e,r,t){t.d(r,{Z:function(){return o}});var n=t(92159),a=t(21186),i=t(54096);function o(){var e=(0,i.G)(n.P.ALERT);return{success:function(r){e.success(r)()},error:function(r){e.error(r)()},warning:function(r){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:r})},info:function(r,t){e.createAlert({heading:r,message:t,type:a.NK.Info})}}}},82378:function(e,r,t){t.d(r,{i:function(){return i}});var n=t(32735),a=t(94223);function i(e,r){var t=e,i=r,o=(0,a.P)(e&&function(e){return t(e).key});return(0,n.useEffect)((function(){o&&o.shouldInitialFetch&&r&&i()}),[null==o?void 0:o.shouldInitialFetch,r]),(0,n.useEffect)((function(){o&&o.nextCursor&&!o.isFetching&&r&&i(o.nextCursor)}),[null==o?void 0:o.nextCursor,null==o?void 0:o.isFetching,r]),o}},94223:function(e,r,t){t.d(r,{P:function(){return l}});var n=t(32735),a=t(70680),i=t(35656),o=t(53808),c=t(86120);function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return u(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,r):void 0}}(e)||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.")}()}function u(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function l(e,r,t){function i(e){if(e)return o.q.isFunction(r)?s(r(e)):s(e.data)}function u(e){var r,n;if(e)return t?t(e):null===(n=null===(r=e.pagination)||void 0===r?void 0:r.cursors)||void 0===n?void 0:n.next}return(0,a.v9)((0,n.useMemo)((function(){return function(r){if(o.q.isFunction(e)){for(var t=e,n=o.q.isFunction(e)&&t(),a=n&&c.a.getResponse(r,n),l=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,b=f,y=a&&a.shouldFetch,m=i(a&&a.data),v=u(a&&a.data),p=function(e){if(e)return null==e?void 0:e.count}(a&&a.data);v&&(a=c.a.getResponse(r,t(v)),l=l||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var g=i(a.data);g&&m.push.apply(m,s(g));var h=u(a.data);v=h===v?null:h}var w={shouldInitialFetch:y,items:m,nextCursor:v,isFetching:l,statusCode:d,hasCompleted:f,hasFirstPageCompleted:b};return"number"==typeof p&&(w.totalItems=p),w}}}),[e]))}i.o.Ok},91021:function(e,r,t){t.r(r),t.d(r,{RemoveLibrarySubscriberView:function(){return v}});var n=t(32735),a=t(57857),i=t(86120),o=t(52076),c=t(70065),s=t(4231),u=t(85610),l=t(66703),d=t(34107),f=t(2491),b=t(82378);function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var m="libraryRequests.removeLibrarySubscriber";function v(e){var r,t,v,p=i.a.useGetFetch(),g=(t=n.useState(!1),v=2,function(e){if(Array.isArray(e))return e}(t)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,i,o,c=[],s=!0,u=!1;try{if(i=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=i.call(t)).done)&&(c.push(n.value),c.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(t,v)||function(e,r){if(e){if("string"==typeof e)return y(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,r):void 0}}(t,v)||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.")}()),h=g[0],w=g[1],k=i.a.useBasicFetch(d.D.library(e.libraryId));function C(r){return d.D.librarySubscribers(e.libraryId,r)}var I=(0,b.i)(C,(function(e){p(C(e))})),S=(0,f.Z)(),L=null===(r=null==I?void 0:I.items)||void 0===r?void 0:r.find((function(r){return r.customerId===e.customerId})),N=k.hasCompleted&&!!L;return n.createElement(s.G,{title:a.T.getPhrase(m,"removeAccess"),closePopup:e.closePopup,showLoadingSpinner:!N},!!N&&n.createElement(n.Fragment,null,n.createElement("div",{className:"alert alert-info",role:"alert"},n.createElement(l.x,{namespace:m,phrase:"alert"})),n.createElement("p",null,n.createElement(l.x,{namespace:m,phrase:"removeSubscriberInfo",options:{school:L.customerName,library:k.data.name}})),n.createElement(u.u,null,n.createElement(u.u.Cancel,{onClick:e.closePopup}),n.createElement(u.u.Submit,{onClick:function(){w(!0),p(d.D.removeSubscriber(e.libraryId,e.customerId,(function(){S.success(a.T.getPhrase(m,"revokeSubscriptionSuccess",{school:L.customerName,library:k.data.name})),o.k.logUserAction({id:e.libraryId,customerId:e.customerId},{actionType:c.Vw.Dissociate,entity:c.py.Library,descriptor:c.iF.Customer,location:c.LZ.Popup,workflowPhase:c.eu.Complete}),e.closePopup()}),(function(){w(!1),S.error(a.T.getPhrase(m,"revokeSubscriptionError",{school:L.customerName,library:k.data.name}))})))},text:a.T.getPhrase(m,"removeAccess"),variant:"danger",showSpinner:h}))))}},30720:function(e,r,t){t.d(r,{Z:function(){return a}});var n=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,r){return n(e.querySelectorAll(r))}},98269:function(e,r,t){var n=t(95685),a=t.n(n),i=t(32735),o=t(16616),c=t(46304),s=t(74512);const u=i.forwardRef((({as:e,bsPrefix:r,variant:t="primary",size:n,active:i=!1,disabled:u=!1,className:l,...d},f)=>{const b=(0,c.vE)(r,"btn"),[y,{tagName:m}]=(0,o.FT)({tagName:e,disabled:u,...d}),v=m;return(0,s.jsx)(v,{...y,...d,ref:f,disabled:u,className:a()(l,b,i&&"active",t&&`${b}-${t}`,n&&`${b}-${n}`,d.href&&u&&"disabled")})}));u.displayName="Button",r.Z=u}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3763],{33763:function(e,t,n){"use strict";n.r(t),n.d(t,{BannerUploadView:function(){return E}});var r=n(43823),o=n(21161),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(45390),d=n(29457),y=n(18375),g=n(93569),m=n(66266),b=n.n(m);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e){if("object"!=v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==v(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I(e,t)}var E=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=O(t),function(e,t){if(t&&("object"==v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}(this,t,[e])}return 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&&I(e,t)}(t,e),n=t,(m=[{key:"initialize",value:function(){this.libraryDataService=a.u.getInstance(h.Or.Library,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b()}},{key:"channelName",get:function(){return g.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.Ry.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new y.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Banners,minWidth:h.yE[d.__.Banners].width,minHeight:h.yE[d.__.Banners].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:g.Kp.getSpinner({size:g.Ey.Large,extraClasses:"mx-auto"})}}}])&&w(n.prototype,m),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,m}(l.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return g}});var r,o=n(43823),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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,f(r.key),r)}}function f(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=d(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}(this,t,[e])}return 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)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA)},66266:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(31197);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([[3873],{14129:function(t,e,n){"use strict";n.d(e,{U:function(){return d}});var o=n(43823),r=n(57857),i=n(31647),a=n(52076),u=n(70065),l=n(93569),c=n(91553),s=n.n(c);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,y(o.key),o)}}function y(t){var e=function(t){if("object"!=p(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==p(e)?e:e+""}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(b=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=m(e),function(t,e){if(e&&("object"==p(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)}(t,b()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}(this,e,arguments)}return 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)}(e,t),n=e,(i=[{key:"name",get:function(){return"AwaitingReviewHeaderComponent"}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center p-3 border-bottom"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.awaitingReviewHeader"}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll"}}},{key:"onClickApproveAll",value:function(){var t=this;new l.Mr(this.getApproveAllDialogOptions()).render().done((function(){return t.onConfirmApproveAll()})),this.logAction(u.eu.Start)}},{key:"onConfirmApproveAll",value:function(){o.Radio.channel(this.options.channelName).trigger("approve:all"),this.logAction(u.eu.Complete)}},{key:"getApproveAllDialogOptions",value:function(){return{title:r.T.getPhrase(this.lang,"dialogTitle"),text:r.T.getPhrase(this.lang,"dialogBody"),buttons:[{text:r.T.getPhrase(this.lang,"dialogButton"),className:"btn btn-dark",success:!0}]}}},{key:"logAction",value:function(t){var e={location:u.LZ.AwaitingReviewVideoListHeader,actionType:u.Vw.Approve,descriptor:u.yh.All,entity:u.py.Video,workflowPhase:t},n={approvedCount:this.collection.length};a.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{videosToReview:!!this.collection.length,multipleVideos:this.collection.length>1,numVideos:this.collection.length}}}])&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},97463:function(t,e,n){"use strict";n.d(e,{u:function(){return h}});var o=n(57857),r=n(31647),i=n(50997),a=n(57085),u=n(65078),l=n(39090),c=n(5181),s=n.n(c),p={tabsContainer:"PDRLS"};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 y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=v(e),function(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)}(t,m()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"ContentUpdatesHeaderComponent"}},{key:"className",get:function(){return"border-bottom px-3 d-flex flex-column"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesHeader"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region"},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"getTabs",value:function(){var t=l.HW;return this.options.reviewEnabled?t:t.filter((function(t){return t.name!==l.tF.AwaitingReview}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new a.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:o.T.getPhrase(this.lang,"libraryEditor"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.HOME},active:!1},{name:o.T.getPhrase(this.lang,"contentUpdates"),active:!0}]}))}},{key:"renderTabs",value:function(){var t=this.getTabs();t.length<=1||this.showChildView("tabs",new u.n({tabs:t,activeTab:this.options.activeTab,className:"border-0"}))}},{key:"viewOptions",value:function(){return{styles:p}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderTabs()}}],r&&y(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},69072:function(t,e,n){"use strict";n.d(e,{m:function(){return h}});var o=n(31647),r=n(52076),i=n(70065),a=n(25692),u=n(98985),l=n(45390),c=n(264),s=n(67732),p=n.n(s);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 y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function b(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=v(e),function(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)}(t,m()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"ContentUpdatesLeftNavComponent"}},{key:"className",get:function(){return"d-inline-block ".concat("GuWDP")}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"contentUpdates.contentUpdatesLeftNav"}},{key:"appLinks",get:function(){return{".disable-review":{application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.DISABLE_REVIEW}}}},{key:"events",value:function(){return{"click .disable-review":"onClickDisableReview"}}},{key:"onClickDisableReview",value:function(){var t={location:i.LZ.LeftNav,actionType:i.Vw.Disable,entity:i.py.CustomerSetting,descriptor:i.YK.LibraryReview,workflowPhase:i.eu.Start};r.k.logUserAction({},t)}},{key:"viewOptions",value:function(){return{supportUrl:!c.g.hasLite&&u.o.getOnlineArticle(a.s.LibraryReview)}}}])&&y(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},82405:function(t,e,n){"use strict";n.d(e,{D:function(){return E}});var o=n(57857),r=n(31647),i=n(80758),a=n(58688),u=n(80867),l=n(45390),c=n(29457),s=n(14727),p=n.n(s),f=n(89364),y=n.n(f);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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,h(o.key),o)}}function d(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function h(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function g(t,e,n){return e=O(e),function(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)}(t,w()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var P=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"pt-3"}},{key:"defaults",get:function(){return{videoItemComponentType:a.U.Base}}},{key:"regions",value:function(){return{videos:{el:".video-list-region",replaceElement:!0}}}},{key:"getGroupTitle",value:function(){var t=this.options.groupTitleAttr||"groupTitle";return this.model.get(t)}},{key:"viewOptions",value:function(){return{groupTitle:this.getGroupTitle()}}},{key:"onRender",value:function(){this.showChildView("videos",new u.Y({collection:this.model.videos,videosWithMetadata:this.options.videosWithMetadata,application:l.OV.CONTENT_UPDATES,collectionIdentifier:null,videoItemComponentType:this.options.videoItemComponentType,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasCustomLibrary:this.options.customerHasCustomLibrary,currentUser:this.options.currentUser,hasCursors:!1,showEmptyState:!0,libraries:this.options.libraries}))}}])}(r.Q.wA),C=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupItemComponentCollection"}},{key:"childView",get:function(){return P}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])}(r.Q.$W),E=function(t){function e(t){return m(this,e),g(this,e,[t])}return k(e,t),d(e,[{key:"name",get:function(){return"VideoGroupListComponent"}},{key:"template",get:function(){return y()}},{key:"lang",get:function(){return"contentUpdates.videoGroupList"}},{key:"defaults",get:function(){return{emptyState:c.ub.Default}}},{key:"behaviors",get:function(){return[{behaviorClass:i.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:l.aW}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.emptyStateType===c.ub.AwaitingReview?{heading:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateHeading"),description:o.T.getPhrase(this.lang,"awaitingReviewEmptyStateBody")}:this.options.emptyStateType===c.ub.PastReleases?{heading:o.T.getPhrase(this.lang,"pastReleasesEmptyStateHeading")}:void 0}},{key:"onRender",value:function(){this.showChildView("videos",new C(this.options))}}])}(r.Q.wA)},82936:function(t,e,n){"use strict";n.d(e,{wc:function(){return y},ND:function(){return f},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};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 u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,l(o.key),o)}}function l(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=s(e),function(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)}(t,c()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}(this,e,[t])}return 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)}(e,t),n=e,(o=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(i.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i},this.options)}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(n(31647).Q.wA),y={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},91553:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<button class="approve-all btn btn-dark d-inline-block '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.btnClass:i,e))+'" type="button">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"approveBtn",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression,u=null!=e?e:t.nullContext||{};return'<h5 class="d-inline-block m-0 '+a(t.lambda(null!=(i=null!=e?e.options:e)?i.headingClass:i,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(u,"heading",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.numVideos:i},data:r}))+"</h5>\n"+(null!=(i=n.if.call(u,null!=(i=null!=e?e.options:e)?i.videosToReview:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},5181:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.escapeExpression;return'<div class="pt-3 pb-2">\n <h1 class="h3 m-0">\n '+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"contentUpdates",{name:"lang",hash:{},data:r}))+'\n </h1>\n</div>\n\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region d-inline-flex align-items-end '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tabsContainer:i,e))+'"></div>'},useData:!0})},67732:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return' <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"learnMore",{name:"lang",hash:{},data:r}))+" <a href="+l(t.lambda(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+' target="_blank">'+l((n.lang||e&&e.lang||u).call(a,"learnMoreLink",{name:"lang",hash:{},data:r}))+"</a></p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,l=t.escapeExpression;return'<div class="p-3 border-bottom">\n <h5>'+l((n.lang||e&&e.lang||u).call(a,"manualReviewHeading",{name:"lang",hash:{},data:r}))+"</h5>\n <p>"+l((n.lang||e&&e.lang||u).call(a,"manualReviewBody",{name:"lang",hash:{},data:r}))+'</p>\n <button class="btn btn-outline-dark text-center disable-review" type="button">'+l((n.lang||e&&e.lang||u).call(a,"manualReviewOffBtn",{name:"lang",hash:{},data:r}))+'</button>\n</div>\n<div class="p-3 border-bottom">\n <p class="m-0">'+l((n.lang||e&&e.lang||u).call(a,"noActionDisclaimer",{name:"lang",hash:{},data:r}))+"</p>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+"</div>"},useData:!0})},14727:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<h4 class="ps-3">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.groupTitle:i,e))+'</h4>\n<div class="video-list-region"></div>'},useData:!0})},89364:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})},62699:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,u=t.escapeExpression;return'<span class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' me-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+u(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},65351:function(t,e){"use strict";e.Z={content:"utl4w",contentWithLeftNav:"K9CFZ"}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4096],{16616:function(e,t,n){n.d(t,{FT:function(){return o}});var r=n(32735),a=n(74512);const i=["as","disabled"];function o({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:c=0,type:l}){e||(e=null!=n||null!=r||null!=a?"a":"button");const u={tagName:e};if("button"===e)return[{type:l||"button",disabled:t},u];const s=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==o||o(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:c,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?a:void 0,onClick:s,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),s(e))}},u]}const c=r.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,c=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,i);const[l,{tagName:u}]=o(Object.assign({tagName:n,disabled:r},c));return(0,a.jsx)(u,Object.assign({},c,l,{ref:t}))}));c.displayName="Button",t.ZP=c},27445:function(e,t,n){n.d(t,{PB:function(){return a}});const r="data-rr-ui-";function a(e){return`${r}${e}`}},16608:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(32735);function a(e){const t=(0,r.useRef)(null);return(0,r.useEffect)((()=>{t.current=e})),t.current}},54096:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(32735),a=n(21679);function i(e){var t,n;return t=e,n=a.u.getInstance(t),r.useEffect((function(){return function(){a.u.releaseInstance(t)}})),n}},19442:function(e,t,n){n.d(t,{h:function(){return s}});var r=n(32735),a=n(53808),i=n(31647),o=n(52076),c=n(77105),l=n(39396),u={iconButton:"aGxoe",iconWithText:"_cjiV",svg:"q6vwS",iconOnly:"T1CzO",iconBorder:"lBPNt"};function s(e){var t="".concat(e.className," ").concat(u.iconButton);r.Children.toArray(e.children).length?t+=" ".concat(u.iconWithText):e.showBorder||e.customSize||(t+=" ".concat(u.iconOnly)),e.showBorder&&(t+=" ".concat(u.iconBorder," btn btn-outline-dark me-2")),e.disabled&&(t+=" disabled");var n=r.createElement(l.x,{svgName:e.svgName,className:"svg-container ".concat(u.svg),size:e.svgSize});return e.appLink||e.href?e.href?r.createElement("a",{className:t,href:e.href,onClick:function(t){t.preventDefault(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(t),i.Q.Ab.PageLoad(e.href,e.openInNewTab)},"aria-label":e.ariaLabel,role:e.role},n,e.children):r.createElement(c.F,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled,ariaLabel:e.ariaLabel,role:e.role},n,e.children):r.createElement("button",{type:"button",className:t,"aria-label":e.ariaLabel,onClick:function(t){e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),a.q.isFunction(e.onClick)&&e.onClick(t)},disabled:e.disabled,role:e.role},n,e.children)}},90335:function(e,t,n){var r;n.d(t,{D:function(){return r}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series",e.ProductionYear="production_year"}(r||(r={}))},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(92159),a=n(21186),i=n(54096);function o(){var e=(0,i.G)(r.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:t})},info:function(t,n){e.createAlert({heading:t,message:n,type:a.NK.Info})}}}},94223:function(e,t,n){n.d(t,{P:function(){return s}});var r=n(32735),a=n(70680),i=n(35656),o=n(53808),c=n(86120);function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n){function i(e){if(e)return o.q.isFunction(t)?l(t(e)):l(e.data)}function u(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.v9)((0,r.useMemo)((function(){return function(t){if(o.q.isFunction(e)){for(var n=e,r=o.q.isFunction(e)&&n(),a=r&&c.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,p=f,y=a&&a.shouldFetch,v=i(a&&a.data),b=u(a&&a.data),m=function(e){if(e)return null==e?void 0:e.count}(a&&a.data);b&&(a=c.a.getResponse(t,n(b)),s=s||a.isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var h=i(a.data);h&&v.push.apply(v,l(h));var g=u(a.data);b=g===b?null:g}var I={shouldInitialFetch:y,items:v,nextCursor:b,isFetching:s,statusCode:d,hasCompleted:f,hasFirstPageCompleted:p};return"number"==typeof m&&(I.totalItems=m),I}}}),[e]))}i.o.Ok},50072:function(e,t,n){var r;n.d(t,{l:function(){return r}}),function(e){e.Pending="Pending",e.Approved="Approved",e.Rejected="Rejected",e.Closed="Closed",e.AutoApproved="AutoApproved"}(r||(r={}))},85739:function(e,t,n){n.d(t,{p:function(){return c}});var r=n(32735),a=n(86120),i=n(94223),o=n(25796);function c(e,t){var n=a.a.useGetFetch(),c=function(n){return o.y.libraryRequests(e,t,n)},l=function(e){return n(c(e))},u=(0,i.P)(c&&function(e){return c(e).key});return r.useEffect((function(){u&&u.shouldInitialFetch&&l()}),[e,t]),Object.assign(Object.assign({},u),{fetchNext:l})}},31170:function(e,t,n){n.r(t),n.d(t,{ApproveLibraryRequestView:function(){return C}});var r=n(32735),a=n(57857),i=n(31647),o=n(86120),c=n(52076),l=n(70065),u=n(4231),s=n(85610),d=n(66703),f=n(90335),p=n(2491),y=n(22430),v=n(50997),b=n(50072),m=n(25796),h=n(85739);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var I="libraryRequests.approve",A=a.T.encloseNamespace(I);function C(e){var t,n,a,C=(n=r.useState(!1),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,c=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return c}}(n,a)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(n,a)||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.")}()),N=C[0],k=C[1],w=o.a.useGetFetch(),F=(0,p.Z)(),S=(0,h.p)(e.queryParams.sort||f.D.Newest,[b.l.Pending]),E=o.a.useBasicFetch(m.y.libraryRequest(e.libraryRequestId)),P=o.a.useBasicFetch(m.y.library(e.libraryId)),R=o.a.useBasicFetch(m.y.folder(e.folderId));function O(){!function(){var t,n,r,a,i={location:l.LZ.Popup,actionType:l.Vw.Approve,entity:l.py.LibraryRequest,workflowPhase:l.eu.Complete},o={id:E.data.id,videoId:null===(t=E.data.object)||void 0===t?void 0:t.id,requestingUserId:null===(n=E.data.sender)||void 0===n?void 0:n.id,sourceLibraryId:null===(r=E.data.sourceLibrary)||void 0===r?void 0:r.id,sourceFolderId:null===(a=E.data.sourceCategory)||void 0===a?void 0:a.id,destinationLibraryId:e.libraryId,destinationFolderId:e.folderId};c.k.logUserAction(o,i)}(),F.success(A("success"));var t=S.items.findIndex((function(t){return t.id.toString()===e.libraryRequestId.toString()})),n=S.items[t+1];i.Q.C$.trigger({application:v.OV.LIBRARY_REQUESTS,action:v.eX.LibraryRequests.PENDING_REQUESTS,args:[(null==n?void 0:n.id)||""],params:e.queryParams},{replace:!0})}var q=((null===(t=S.items)||void 0===t?void 0:t.length)||S.hasCompleted)&&!!E.data&&!!P.data&&!!R.data;return r.createElement(u.G,{title:A("title"),closePopup:e.closePopup,showLoadingSpinner:!q},q&&r.createElement(r.Fragment,null,r.createElement("p",null,r.createElement(d.x,{namespace:I,phrase:"confirmation",options:{videoName:E.data.object.name,libraryName:P.data.name,folderName:R.data.name}})),r.createElement(s.u,null,r.createElement(s.u.Cancel,{onClick:e.closePopup}),r.createElement(s.u.Submit,{onClick:function(){k(!0);var t={response:b.l.Approved,metadata:{destinationLibraryId:e.libraryId,destinationCategoryId:e.folderId}};w(m.y.fulfilRequest(e.libraryRequestId,t,O,(function(e){return F.error(y.M.libraryApiError(e))}),e.closePopup))},text:A("approve"),showSpinner:N,variant:"dark"}))))}},30720:function(e,t,n){n.d(t,{Z:function(){return a}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function a(e,t){return r(e.querySelectorAll(t))}},98269:function(e,t,n){var r=n(95685),a=n.n(r),i=n(32735),o=n(16616),c=n(46304),l=n(74512);const u=i.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:u=!1,className:s,...d},f)=>{const p=(0,c.vE)(t,"btn"),[y,{tagName:v}]=(0,o.FT)({tagName:e,disabled:u,...d}),b=v;return(0,l.jsx)(b,{...y,...d,ref:f,disabled:u,className:a()(s,p,i&&"active",n&&`${p}-${n}`,r&&`${p}-${r}`,d.href&&u&&"disabled")})}));u.displayName="Button",t.Z=u}}]);
@@ -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 P}});var n=r(43823),o=r(21679),i=r(57857),a=r(99249),u=r(31647),l=r(36357),c=r(10101),s=r(88172),f=r(45390),b=r(67670),p=r(24539),y=r(19226),m=r(93569),h=r(56906),v=r(95061),d=r(7190),g=r(15110),w=r.n(g);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}var P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=_(t),function(e,t){if(t&&("object"==O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,j()?Reflect.construct(t,r||[],_(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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)}(t,e),r=t,g=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:p.Z}),this.bindListeners(),this.settingsDataService=o.u.getInstance(f.Or.Settings,this),this.libraryDataService=o.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SETTINGS,"".concat(f.M_.CUSTOMER_SETTINGS,":sync ").concat(f.M_.USER_SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return w()}},{key:"channelName",get:function(){return m.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.fS,modelValidation:d.Y7},{behaviorClass:c.Bp},{behaviorClass:c.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),u.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:y.K.currentUser,libraries:v.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(l.E.MaxCustomLibraries),this.libraries.length>this.maxCustomLibraries.get("value")?u.Q.Ry.throw(new h.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:m.Kp.getSpinner({size:m.Ey.Large,extraClasses:"mx-auto"})}}}],g&&S(r.prototype,g),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,g}(u.Q.G7)},67670:function(e,t,r){"use strict";r.d(t,{v:function(){return b}});var n=r(31647),o=r(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}(this,t,arguments)}return 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)}(t,e),r=t,(n=[{key:"defaults",value:function(){return a(a({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&u(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(n.Q.Hn)},15110:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({1:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,r,n,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4245],{34245:function(t,n,e){"use strict";e.r(n),e.d(n,{NotificationsView:function(){return C}});var i=e(21679),o=e(57857),r=e(31647),a=e(63233),s=e(23859),c=e(33955),u=e(11543),l=e(70125),p=e(47022),f=e(33303),y=e(4039),h=e(24355),v=e.n(h),b=e(38900),g=e.n(b),d=e(3495);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function k(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,w(i.key),i)}}function w(t){var n=function(t){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=m(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(n)?n:n+""}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}function j(t,n){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},j(t,n)}var C=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,n,e){return n=P(n),function(t,n){if(n&&("object"==m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(n,e||[],P(t).constructor):n.apply(t,e))}(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&j(t,n)}(n,t),e=n,(h=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return g()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:l.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:v(),className:"px-1 py-2",viewOptions:{styles:d.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=i.u.getInstance(u.D.Notification,this),this.appVariables=i.u.getInstance(s.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new f.J(Object.assign({collectionPrefix:c.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new a.Z({collection:this.collection,childType:a.z.Default,liteUrl:this.config instanceof r.Q.Hn?this.config.get("liteUrl"):this.config.liteUrl,libraryEditorUrl:this.config instanceof r.Q.Hn?this.config.get("libraryEditorUrl"):this.config.libraryEditorUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new p.Q({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:y.p.config}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&k(e.prototype,h),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,h}(r.Q.G7)},47022:function(t,n,e){"use strict";e.d(n,{Q:function(){return b}});var i=e(21161),o=e(31647),r=e(52076),a=e(70065),s=e(99186),c=e.n(s);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,n,e){return(n=f(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function p(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function f(t){var n=function(t){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=u(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(n)?n:n+""}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function v(t,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},v(t,n)}var b=function(t){function n(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(t,n,e){return n=h(n),function(t,n){if(n&&("object"==u(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(n,e||[],h(t).constructor):n.apply(t,e))}(this,n,[t])}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&v(t,n)}(n,t),e=n,(o=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous,!0);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,n){var e=this.options.appLink.params;return n?(null==e?void 0:e.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==e?void 0:e.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:i.extend({},this.options.appLink.params,l(l({},this.options.cursorParamName,t),"previous",e.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=r.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),e={id:this.options.collectionId,page:t};r.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(e.prototype,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,o}(o.Q.wA)},38900:function(t,n,e){var i=e(31197);t.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:o}))+'</h1>\n <div class="list-region"></div>\n <div class="pagination-region"></div>\n</div>'},useData:!0})},99186:function(t,n,e){var i=e(31197);t.exports=(i.default||i).template({1:function(t,n,e,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,i,o){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\n</div>"},useData:!0})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4327],{94327:function(t,e,n){"use strict";n.r(e),n.d(e,{NotFoundView:function(){return b}});var r=n(31647),o=n(45390),i=n(74030),u=n.n(i),l={image:"dLQU1"};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 c(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,f(r.key),r)}}function f(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var b=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=p(e),function(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)}(t,s()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}(this,e,arguments)}return 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)}(e,t),n=e,(r=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{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:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.G7)},74030:function(t,e,n){var r=n(31197);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" />\n<h2 class="h6 mt-3">'+l((n.lang||e&&e.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\n<p class="pb-5">'+(null!=(i=(n.lang||e&&e.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=e?e.options:e)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);