@clickview/library-editor 1.54.0 → 1.54.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{826-library-editor-2797c4568f.chunk.css → 4001-library-editor-da87291909.chunk.css} +3 -2
  3. package/dist/css/{library-editor-app-cade5e4b6a.css → library-editor-app-08d619de95.css} +2 -2
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/101-1aa755b98b.chunk.js +1 -0
  6. package/dist/scripts/{1010-37e7c83417.chunk.js → 1010-2c4e71bac2.chunk.js} +1 -1
  7. package/dist/scripts/{1086-7632f7b45b.chunk.js → 1086-d0efa1a0ca.chunk.js} +1 -1
  8. package/dist/scripts/1216-9d2e314558.chunk.js +1 -0
  9. package/dist/scripts/{1269-02d8d91784.chunk.js → 1269-ec70091b19.chunk.js} +1 -1
  10. package/dist/scripts/{1409-79be9fc25d.chunk.js → 1409-f3fea6c3c3.chunk.js} +1 -1
  11. package/dist/scripts/1537-2945b91924.chunk.js +1 -0
  12. package/dist/scripts/{1703-4d41a9e919.chunk.js → 1703-0e6940a3c0.chunk.js} +1 -1
  13. package/dist/scripts/{1832-305c691701.chunk.js → 1832-9fd96d5efe.chunk.js} +1 -1
  14. package/dist/scripts/{1876-33e86bc26f.chunk.js → 1876-fc815ba31e.chunk.js} +1 -1
  15. package/dist/scripts/1973-074d4e72c2.chunk.js +1 -0
  16. package/dist/scripts/209-f9e52775b1.chunk.js +1 -0
  17. package/dist/scripts/{243-526e36736c.chunk.js → 243-d27b3c7903.chunk.js} +1 -1
  18. package/dist/scripts/2516-0290fc7712.chunk.js +1 -0
  19. package/dist/scripts/{259-e1c3eb98ce.chunk.js → 259-d6a4aa6694.chunk.js} +1 -1
  20. package/dist/scripts/{2601-f14eacbf73.chunk.js → 2601-d42245cb40.chunk.js} +1 -1
  21. package/dist/scripts/2639-efe1222211.chunk.js +2 -0
  22. package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +8 -0
  23. package/dist/scripts/{2644-60bdfc1c95.chunk.js → 2644-cadc6531d6.chunk.js} +1 -1
  24. package/dist/scripts/2648-61a84bc983.chunk.js +1 -0
  25. package/dist/scripts/{2692-1ddd87476e.chunk.js → 2692-b7dff9da8a.chunk.js} +1 -1
  26. package/dist/scripts/{2803-fbb9d2439d.chunk.js → 2803-026f3af7cb.chunk.js} +1 -1
  27. package/dist/scripts/{2888-c2c8b859cd.chunk.js → 2888-a406bcd564.chunk.js} +1 -1
  28. package/dist/scripts/2955-521e238d27.chunk.js +1 -0
  29. package/dist/scripts/299-32a1391000.chunk.js +1 -0
  30. package/dist/scripts/{2998-aae0ec14de.chunk.js → 2998-a3c3a1e950.chunk.js} +1 -1
  31. package/dist/scripts/{3400-ebc91cde7a.chunk.js → 3400-326dc33968.chunk.js} +1 -1
  32. package/dist/scripts/{35-278014f3ca.chunk.js → 35-d04a61537f.chunk.js} +1 -1
  33. package/dist/scripts/{3551-17275d533c.chunk.js → 3551-97ac416527.chunk.js} +1 -1
  34. package/dist/scripts/{3639-c5cc04c72d.chunk.js → 3639-171b53e474.chunk.js} +1 -1
  35. package/dist/scripts/3746-9f89d2e526.chunk.js +1 -0
  36. package/dist/scripts/376-4d9e8d5305.chunk.js +1 -0
  37. package/dist/scripts/{3763-47619f0e54.chunk.js → 3763-21a9bc8c81.chunk.js} +1 -1
  38. package/dist/scripts/3969-14f58e46c8.chunk.js +1 -0
  39. package/dist/scripts/4001-5f16bcaff3.chunk.js +2 -0
  40. package/dist/scripts/4024-e76b07c207.chunk.js +1 -0
  41. package/dist/scripts/{4201-ffd35af9cb.chunk.js → 4201-9f363cadea.chunk.js} +1 -1
  42. package/dist/scripts/{4245-9262674448.chunk.js → 4245-3680566469.chunk.js} +1 -1
  43. package/dist/scripts/{8727-30dadf014c.chunk.js → 4506-e3e16c1c39.chunk.js} +1 -1
  44. package/dist/scripts/4523-e918636e67.chunk.js +1 -0
  45. package/dist/scripts/{4591-78600e384c.chunk.js → 4591-84bc2f21f0.chunk.js} +1 -1
  46. package/dist/scripts/471-9ae0a7d088.chunk.js +2 -0
  47. package/dist/scripts/{4860-6001ab4e2a.chunk.js → 4860-7e9c7b578f.chunk.js} +1 -1
  48. package/dist/scripts/4984-e55e0bfa17.chunk.js +1 -0
  49. package/dist/scripts/514-9e42f33112.chunk.js +2 -0
  50. package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +6 -0
  51. package/dist/scripts/{5173-d333602893.chunk.js → 5173-6fe93f90b8.chunk.js} +1 -1
  52. package/dist/scripts/{5286-b5a0097954.chunk.js → 5286-c55bd5882c.chunk.js} +1 -1
  53. package/dist/scripts/535-96be75b325.chunk.js +1 -0
  54. package/dist/scripts/{5412-e2505df3a4.chunk.js → 5412-abf3c7ab24.chunk.js} +1 -1
  55. package/dist/scripts/{5418-f84d0ff359.chunk.js → 5418-4cf3592f6a.chunk.js} +1 -1
  56. package/dist/scripts/{5424-65be3c657c.chunk.js → 5424-fb9af4cac5.chunk.js} +1 -1
  57. package/dist/scripts/5524-83e92242a1.chunk.js +1 -0
  58. package/dist/scripts/5698-74d4a95cab.chunk.js +1 -0
  59. package/dist/scripts/{5707-41459498e9.chunk.js → 5707-2455798bbe.chunk.js} +1 -1
  60. package/dist/scripts/{5747-f28298b80d.chunk.js → 5747-dc100fe944.chunk.js} +1 -1
  61. package/dist/scripts/5850-21711256a9.chunk.js +1 -0
  62. package/dist/scripts/5891-1f548b9c62.chunk.js +1 -0
  63. package/dist/scripts/{6093-e19df1d1fa.chunk.js → 6093-c4d7d99258.chunk.js} +1 -1
  64. package/dist/scripts/61-35a4e0dd3d.chunk.js +2 -0
  65. package/dist/scripts/{6352-d267f9afea.chunk.js → 6352-9f5498c43f.chunk.js} +1 -1
  66. package/dist/scripts/6637-3078ed12bc.chunk.js +1 -0
  67. package/dist/scripts/6725-52d65e0d02.chunk.js +2 -0
  68. package/dist/scripts/{6732-85afd02f41.chunk.js → 6732-0223b7e084.chunk.js} +1 -1
  69. package/dist/scripts/{6774-a002ac7253.chunk.js → 6774-7d16e3a1b2.chunk.js} +1 -1
  70. package/dist/scripts/{6788-dc6b522995.chunk.js → 6788-1baf5483df.chunk.js} +1 -1
  71. package/dist/scripts/6963-2e5edf04ac.chunk.js +1 -0
  72. package/dist/scripts/{7053-00950d18ae.chunk.js → 7053-5f6f2bf8ee.chunk.js} +1 -1
  73. package/dist/scripts/7071-9ae15d6979.chunk.js +1 -0
  74. package/dist/scripts/7153-11798dda90.chunk.js +1 -0
  75. package/dist/scripts/{7190-2b40df1e89.chunk.js → 7190-b143292308.chunk.js} +1 -1
  76. package/dist/scripts/7295-c5ccbfe2be.chunk.js +1 -0
  77. package/dist/scripts/{7376-e3bf3a94f9.chunk.js → 7376-e476873e22.chunk.js} +1 -1
  78. package/dist/scripts/{7408-49b32d5829.chunk.js → 7408-eb04403233.chunk.js} +1 -1
  79. package/dist/scripts/7416-bafece2a3d.chunk.js +1 -0
  80. package/dist/scripts/7827-53c10fe9d7.chunk.js +1 -0
  81. package/dist/scripts/8080-540165cb5c.chunk.js +1 -0
  82. package/dist/scripts/8113-eb9901344c.chunk.js +1 -0
  83. package/dist/scripts/{8213-6c873c853e.chunk.js → 8213-4d11becb33.chunk.js} +1 -1
  84. package/dist/scripts/{8362-267efdac61.chunk.js → 8362-2712404025.chunk.js} +1 -1
  85. package/dist/scripts/8542-7dbc2fa676.chunk.js +1 -0
  86. package/dist/scripts/8591-920b0560e4.chunk.js +1 -0
  87. package/dist/scripts/{8726-2d0bc64637.chunk.js → 8726-10013d1e22.chunk.js} +1 -1
  88. package/dist/scripts/8757-8ba60a3c5f.chunk.js +2 -0
  89. package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +44 -0
  90. package/dist/scripts/{8762-be126e413d.chunk.js → 8762-0c818e61d0.chunk.js} +1 -1
  91. package/dist/scripts/{8906-2ae58fb990.chunk.js → 8906-3052c24e98.chunk.js} +1 -1
  92. package/dist/scripts/{8952-27f5ea4a16.chunk.js → 8952-5dfd08cdc7.chunk.js} +2 -2
  93. package/dist/scripts/9077-fd1d054d31.chunk.js +1 -0
  94. package/dist/scripts/9134-8845590ece.chunk.js +1 -0
  95. package/dist/scripts/{9357-e71ea6a34d.chunk.js → 9357-04700677af.chunk.js} +1 -1
  96. package/dist/scripts/9369-cacc5f30e5.chunk.js +2 -0
  97. package/dist/scripts/9383-26ce3e3847.chunk.js +1 -0
  98. package/dist/scripts/{9695-636ea0ef64.chunk.js → 9695-8b46921478.chunk.js} +1 -1
  99. package/dist/scripts/{9927-7a935c955d.chunk.js → 9927-1a5a65a341.chunk.js} +1 -1
  100. package/dist/scripts/bundle-5d010f1f12.min.js +2 -0
  101. package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +133 -0
  102. package/dist/scripts/{polyfills-5ce436cbbe.min.js → polyfills-e4d8584da7.min.js} +1 -1
  103. package/package.json +4 -4
  104. package/dist/scripts/101-c8fa0bf8c0.chunk.js +0 -1
  105. package/dist/scripts/112-4f413f94c0.chunk.js +0 -1
  106. package/dist/scripts/1216-83f6fbc7be.chunk.js +0 -1
  107. package/dist/scripts/152-808e046b1f.chunk.js +0 -2
  108. package/dist/scripts/1973-7a1768228d.chunk.js +0 -1
  109. package/dist/scripts/2417-e85abc4005.chunk.js +0 -1
  110. package/dist/scripts/2482-ded3090c15.chunk.js +0 -1
  111. package/dist/scripts/2648-0a58c0fc05.chunk.js +0 -1
  112. package/dist/scripts/2802-d428814c29.chunk.js +0 -2
  113. package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +0 -8
  114. package/dist/scripts/299-e59ef1fc4f.chunk.js +0 -1
  115. package/dist/scripts/343-4f77983932.chunk.js +0 -1
  116. package/dist/scripts/3746-1fd61fe062.chunk.js +0 -1
  117. package/dist/scripts/376-0ae51da38f.chunk.js +0 -1
  118. package/dist/scripts/3969-c636ff3159.chunk.js +0 -1
  119. package/dist/scripts/4024-8372510247.chunk.js +0 -1
  120. package/dist/scripts/4523-e244d0dae2.chunk.js +0 -1
  121. package/dist/scripts/5046-7f741b88da.chunk.js +0 -1
  122. package/dist/scripts/514-eeb95eba47.chunk.js +0 -1
  123. package/dist/scripts/535-b26597b4d0.chunk.js +0 -1
  124. package/dist/scripts/5524-04583b6e40.chunk.js +0 -1
  125. package/dist/scripts/5850-996ea58208.chunk.js +0 -1
  126. package/dist/scripts/5891-bf6bb58afe.chunk.js +0 -1
  127. package/dist/scripts/61-29f179811f.chunk.js +0 -2
  128. package/dist/scripts/6532-48f3f080f5.chunk.js +0 -2
  129. package/dist/scripts/6963-68cce4d38c.chunk.js +0 -1
  130. package/dist/scripts/7002-48057608dc.chunk.js +0 -1
  131. package/dist/scripts/7071-78d0b6c0cb.chunk.js +0 -1
  132. package/dist/scripts/708-4faf09f1e5.chunk.js +0 -1
  133. package/dist/scripts/7153-b581d35045.chunk.js +0 -1
  134. package/dist/scripts/7295-5a82c36f28.chunk.js +0 -1
  135. package/dist/scripts/7827-ef0d617862.chunk.js +0 -1
  136. package/dist/scripts/8113-d678e76098.chunk.js +0 -1
  137. package/dist/scripts/8234-d793dd9bda.chunk.js +0 -1
  138. package/dist/scripts/826-c6d1a46e45.chunk.js +0 -2
  139. package/dist/scripts/8542-475ab8438e.chunk.js +0 -1
  140. package/dist/scripts/8591-149f4a2b62.chunk.js +0 -1
  141. package/dist/scripts/9369-f43ee314be.chunk.js +0 -2
  142. package/dist/scripts/9383-2c77c78fe8.chunk.js +0 -1
  143. package/dist/scripts/bundle-8f42183790.min.js +0 -2
  144. package/dist/scripts/bundle-8f42183790.min.js.LICENSE.txt +0 -1
  145. package/typings/libs/CVEvents.d.ts +0 -13
  146. package/typings/libs/CVLanguages.d.ts +0 -24
  147. package/typings/libs/LazyLoad.d.ts +0 -30
  148. package/typings/libs/LazyLoad.ts +0 -27
  149. package/typings/libs/cookiesjs.d.ts +0 -24
  150. /package/dist/css/{2417-library-editor-46f8e6e95b.chunk.css → 1537-library-editor-46f8e6e95b.chunk.css} +0 -0
  151. /package/dist/css/{2482-library-editor-1b6dc45d45.chunk.css → 209-library-editor-1b6dc45d45.chunk.css} +0 -0
  152. /package/dist/css/{343-library-editor-d2f704c6a5.chunk.css → 2955-library-editor-d2f704c6a5.chunk.css} +0 -0
  153. /package/dist/css/{112-library-editor-6a2d152d7d.chunk.css → 6637-library-editor-6a2d152d7d.chunk.css} +0 -0
  154. /package/dist/css/{152-library-editor-01b4461ff1.chunk.css → 6725-library-editor-01b4461ff1.chunk.css} +0 -0
  155. /package/dist/css/{708-library-editor-7ffe353138.chunk.css → 8080-library-editor-7ffe353138.chunk.css} +0 -0
  156. /package/dist/css/{5046-library-editor-765ea88cb0.chunk.css → 9077-library-editor-765ea88cb0.chunk.css} +0 -0
  157. /package/dist/css/{8234-library-editor-5a1c6fc3b4.chunk.css → 9134-library-editor-5a1c6fc3b4.chunk.css} +0 -0
  158. /package/dist/scripts/{61-29f179811f.chunk.js.LICENSE.txt → 4001-5f16bcaff3.chunk.js.LICENSE.txt} +0 -0
  159. /package/dist/scripts/{6532-48f3f080f5.chunk.js.LICENSE.txt → 471-9ae0a7d088.chunk.js.LICENSE.txt} +0 -0
  160. /package/dist/scripts/{546-40961bc779.chunk.js → 546-2cf4378b0c.chunk.js} +0 -0
  161. /package/dist/scripts/{826-c6d1a46e45.chunk.js.LICENSE.txt → 61-35a4e0dd3d.chunk.js.LICENSE.txt} +0 -0
  162. /package/dist/scripts/{152-808e046b1f.chunk.js.LICENSE.txt → 6725-52d65e0d02.chunk.js.LICENSE.txt} +0 -0
  163. /package/dist/scripts/{8952-27f5ea4a16.chunk.js.LICENSE.txt → 8952-5dfd08cdc7.chunk.js.LICENSE.txt} +0 -0
  164. /package/dist/scripts/{9369-f43ee314be.chunk.js.LICENSE.txt → 9369-cacc5f30e5.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{50299:function(t,e,n){"use strict";n.d(e,{J:function(){return _}});var i=n(21161),o=n(31647),r=n(43823),s=n(70065),l=n(85475),a=n(57098),c=n(93569),u=n(91439),p=n(6929),h=n(42978),d=n.n(h);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 i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}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 v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}var C=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=m(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,v()?Reflect.construct(e,n||[],m(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&&g(t,e)}(e,t),n=e,(h=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:p.x,ui:"anchor",channelNames:[a.jr.VIDEO_DRAG_DROP,a.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:s.LZ.LeftNav}},{behaviorClass:u.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return d()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return c.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return c.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body fw-bold":this.isDisabled()?t+=" text-secondary":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-secondary"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:i.isFunction(t)?t(this.model):null,params:i.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=r.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body fw-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var i=!e.hasView();return i?this.openChildren():this.closeChildren(),void(this.options.isSelector&&i&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&r.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=o.Q.C$.getCurrentAppLink(),e=this.getAppLink();return!i.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new _(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:l.Nj.getSvg(l.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle me-1 ".concat(this.options.styles.actions),buttonClass:"text-secondary",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(n.prototype,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,h}(o.Q.wA),k=n(95308);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 w(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,x(i.key),i)}}function x(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 O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var _=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),t.styles=i.extend({},k.Z,t.styles),function(t,e,n){return e=S(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,O()?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&&j(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return C}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.model.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&w(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.$W)},42978:function(t,e,n){var i=n(31197);t.exports=(i.default||i).template({1:function(t,e,n,i,o){t.propertyIsEnumerable;var r,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(r=null!=e?e.options:e)?r.caretClass:r,e))+' d-inline-block position-absolute">\n '+(null!=(r=s(null!=(r=null!=e?e.options:e)?r.svg:r,e))?r:"")+"\n </span>\n"},3:function(t,e,n,i,o){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,o){t.propertyIsEnumerable;var r,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(r=null!=e?e.options:e)?r.itemClass:r,e))+'">\n <a class="'+l(s(null!=(r=null!=e?e.options:e)?r.anchorClass:r,e))+' d-block ui-node">\n'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showCaret:r,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?r:"")+' <span class="'+l(s(null!=(r=null!=e?e.options:e)?r.textStyle:r,e))+" ui-text "+l(s(null!=(r=null!=e?e.options:e)?r.extraClasses:r,e))+'">'+l(s(null!=(r=null!=e?e.options:e)?r.text:r,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=e?e.options:e)?r.children:r)?r.length:r,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?r:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2998],{72998:function(e,n,t){"use strict";t.d(n,{J:function(){return Q}});var o=t(48088),i=t(57857),s=t(31647),r=t(17391),a=t(29625),l=t(48726),u=t(99844),c=t(36022),p=t(57098),d=t(93569),h=t(40622),f=t(99249),m=t(63791),b=t(10101),g=t(88172),y=t(7190),v=t(73519),k=t.n(v),w=t(48242),E=t.n(w),S={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};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 C(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function T(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,N(o.key),o)}}function I(e,n,t){return n&&T(e.prototype,n),t&&T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e){var n=function(e){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(n)?n:n+""}function P(e,n,t){return n=R(n),function(e,n){if(n&&("object"==O(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,x()?Reflect.construct(n,t||[],R(e).constructor):n.apply(e,t))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function j(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&&_(e,n)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var B=function(e){function n(e){var t;return C(this,n),(t=P(this,n,[e])).showSpinner=!1,t.disableBtn=!0,t}return j(n,e),I(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:b.Bp},{behaviorClass:b.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(p.Vk.SERIES,"".concat(p.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),o.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new g.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:d.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}])}(s.Q.wA),D=function(e){function n(e){return C(this,n),P(this,n,[e])}return j(n,e),I(n,[{key:"initialize",value:function(){this.model.get("season.id")&&d.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=f.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(y.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return E()}},{key:"className",get:function(){return S.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .form-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var n=e.target.value,t="-1"===n?null:this.collection.findWhere({number:+n}).toJSON();this.setButtonText(n),o.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var n=e&&"-1"!==e?i.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(i.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new B({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:S,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:m.Nj.getSvg(m.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}])}(s.Q.wA),A=t(37571),V=t.n(A),M=t(45092);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function 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,L(o.key),o)}}function L(e){var n=function(e){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=U(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(n)?n:n+""}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G=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 Q=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"==U(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,G()?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,f=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0},series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.VideoTitle}},".suggest-description":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.Description}},".suggest-series-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.SeriesTitle}},".suggest-season-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.Season}},".suggest-episode-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.EpisodeNumber}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}},"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),o.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var n=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(n.attr("disabled","disabled"),n.attr("class","form-control ".concat(M.Z.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getTypeaheadConfigs",value:function(){var e=d.MK.getTypeaheadConfig(),n=d.MK.getBloodhoundConfig(),t={filterEmptySeries:!1},o=Object.assign({hideEmptyResults:!0},t),i=Object.assign({newType:p.n8.Series},t),s=Object.assign({newType:p.n8.Series,footerTemplate:r.J.getConfirmSelectionTemplate()},t);return[{name:p.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:o},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:i},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:s}]}},{key:"renderSeriesTypeahead",value:function(){if(d.M2.isVideo(this.model)){var e=this.model.series||new s.Q.Hn;this.showChildView("series",new c.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?i.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:r.J.selectFirstResult,onInput:r.J.emitEventOnInput(this.options.channelName,h.NT.DetectInput,"series"),onBlur:r.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}}},{key:"renderEditSeason",value:function(){var e=this;if(d.M2.isVideo(this.model)){var n=this.model.get("series.seasons")||new a.i,t=new a.i(n.map((function(n){return n.set("displayName",i.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new D({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}}},{key:"renderDescription",value:function(){this.showChildView("description",new u.F({name:"description",class:"form-control ".concat(!this.options.editable&&M.Z.disabled),placeholder:this.options.editable?i.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){d.M2.isVideo(this.model)&&this.showChildView("ratings",new l.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:M.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?i.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.renderSeriesTypeahead(),this.renderEditSeason(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}],f&&F(t.prototype,f),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,f}(s.Q.wA)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return f}});var o=t(39479),i=t(31647),s=t(64154),r=t.n(s),a={resizingTextarea:"hJmNl"};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(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 c(e){var n=function(e){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(n)?n:n+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(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=d(n),function(e,n){if(n&&("object"==l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(n,t||[],d(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&&h(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return r()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return v}});var o=t(48088),i=t(39479),s=t(11306),r=t(31647),a=t(17391),l=t(63791),u=t(93569),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};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 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,m(o.key),o)}}function m(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 y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}var v=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&&y(e,n)}(n,e),t=n,c=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||r.Q.Ry.throw(new s.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new r.Q.Hn),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=o.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},(n=m(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,n){var t;e.preventDefault(),t="string"==typeof n?n:n.title||n.name||n.query,this.model.set(this.options.stickItProperty,t),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,n),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var n=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){n.model.clear(),n.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return i.isArray(this.options.typeaheadConfigs)?a.J.getSearchSources(this.options.typeaheadConfigs):a.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?i.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return i.isObject(this.options.actionOptions)?i.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){i.isObject(this.options.callbacks)&&(i.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",i.bind(this.options.callbacks.onRender,this)),i.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),i.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",i.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",i.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.Nj.getSvg(l.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),o.Validation.bind(this),this.toggleRemove(),this.options.autofocus&&window.requestAnimationFrame((function(){e.getUI("input").focus()}))}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),o.Validation.unbind(this)}}],c&&f(t.prototype,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,c}(r.Q.wA)},37571:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"d-inline-block"},3:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.programTitle:s,n))},5:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.requiredStar:s,n))+'">*</span>'},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},9:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},11:function(e,n,t,o,i){return"disabled"},13:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="row">\n <div class="form-group col-6 p-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"series",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-series-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-season-number">'+l((t.lang||n&&n.lang||a).call(r,"season",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-season-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-episode-number">'+l((t.lang||n&&n.lang||a).call(r,"episode",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="episodeNumber"\n type="number"\n class="form-control episode-number '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n id="edit-episode-number"\n placeholder="'+l(e.lambda(null!=(s=null!=n?n.options:n)?s.episodeNumberPlaceholderText:s,n))+'"\n autocomplete="off"\n min="1"\n '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n'},14:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seriesTitle:s,n))},16:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-series-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},18:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seasonNumber:s,n))},20:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-season-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},22:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.episodeNumber:s,n))},24:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-episode-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},26:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.description:s,n))},28:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-description">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<div class="position-relative '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.showingSaveButton:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <h5 class="d-inline-block">'+l((t.lang||n&&n.lang||a).call(r,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"title",{name:"lang",hash:{},data:i}))+(null!=(s=t.if.call(r,null!=(s=null!=(s=null!=n?n.options:n)?s.requiredFields:s)?s.programTitle:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="name"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n placeholder="'+l((t.lang||n&&n.lang||a).call(r,"titlePlaceholder",{name:"lang",hash:{},data:i}))+'"\n id="edit-title"\n autocomplete="off"\n '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n</div>\n<div class="container-fluid">\n'+(null!=(s=t.if.call(r,null!=n?n.series:n,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i}))?s:"")+'</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-description">'+l((t.lang||n&&n.lang||a).call(r,"description",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="description-region"></div>\n <div class="form-feedback"></div>\n</div>\n<div class="ratings-region"></div>\n'},useData:!0})},73519:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return'<div class="">\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\n</div>\n'},3:function(e,n,t,o,i){return'<div class="form-group mb-2">\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\n <div class="form-feedback"></div>\n</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,(null!=(s=t.unless.call(null!=n?n:e.nullContext||{},null!=(s=null!=n?n.options:n)?s.show:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?s:"")+'<div class="text-end">\n <div class="button-region"></div>\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"disabled"},5:function(e,n,t,o,i){return"selected"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression;return' <option value="'+a(r(null!=n?n.number:n,n))+'" '+(null!=(s=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+a(r(null!=n?n.displayName:n,n))+"</option>\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.button:s,n))+" "+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'"\n name="season"\n '+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'\n>&nbsp;</div>\n<div class="dropdown-menu dropdown-menu-end dropdown-arrow w-100">\n <div class="text-center px-2">\n <select name="season" class="form-select">\n <option value="-1" '+(null!=(s=t.unless.call(a,null!=(s=null!=n?n.options:n)?s.hasSelected:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:i}))+"</option>\n"+(null!=(s=t.each.call(a,null!=(s=null!=n?n.options:n)?s.seasons:s,{name:"each",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+' </select>\n </div>\n\n <div class="dropdown-divider"></div>\n\n <div class="create-region"></div>\n</div>\n'+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.showRemoveIcon:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")},useData:!0})},64154:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"required"},3:function(e,n,t,o,i){return"readonly"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<textarea\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.name:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.id:s,n))+'"\n autocomplete="false"\n class="'+a(r(null!=(s=null!=n?n.options:n)?s.class:s,n))+" event-selector "+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.resizingTextarea:s,n))+'"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholder:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.required:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.readonly:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"autofocus"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<input\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.inputName:s,n))+'"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+" "+a(r(null!=(s=null!=n?n.options:n)?s.additionalClasses:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.inputId:s,n))+'"\n autocomplete="off"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholderText:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.autofocus:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+'\n></input>\n<span class="svg-container mb-2 '+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove" style="display: none;">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2998],{72998:function(e,n,t){"use strict";t.d(n,{J:function(){return Q}});var o=t(43823),i=t(57857),s=t(31647),r=t(17391),a=t(29625),l=t(48726),u=t(99844),c=t(36022),p=t(57098),d=t(93569),h=t(40622),f=t(99249),m=t(85475),b=t(10101),g=t(88172),y=t(7190),v=t(73519),k=t.n(v),w=t(48242),E=t.n(w),S={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};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 C(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function T(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,N(o.key),o)}}function I(e,n,t){return n&&T(e.prototype,n),t&&T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e){var n=function(e){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=O(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(n)?n:n+""}function P(e,n,t){return n=R(n),function(e,n){if(n&&("object"==O(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,x()?Reflect.construct(n,t||[],R(e).constructor):n.apply(e,t))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function j(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&&_(e,n)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var B=function(e){function n(e){var t;return C(this,n),(t=P(this,n,[e])).showSpinner=!1,t.disableBtn=!0,t}return j(n,e),I(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:b.Bp},{behaviorClass:b.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(p.Vk.SERIES,"".concat(p.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),o.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new g.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:d.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}])}(s.Q.wA),D=function(e){function n(e){return C(this,n),P(this,n,[e])}return j(n,e),I(n,[{key:"initialize",value:function(){this.model.get("season.id")&&d.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=f.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(y.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return E()}},{key:"className",get:function(){return S.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .form-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var n=e.target.value,t="-1"===n?null:this.collection.findWhere({number:+n}).toJSON();this.setButtonText(n),o.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var n=e&&"-1"!==e?i.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(i.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new B({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:S,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:m.Nj.getSvg(m.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}])}(s.Q.wA),A=t(37571),V=t.n(A),M=t(45092);function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function 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,L(o.key),o)}}function L(e){var n=function(e){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=U(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(n)?n:n+""}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(G=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 Q=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"==U(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,G()?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,f=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0},series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.VideoTitle}},".suggest-description":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")],params:{metadata:h.pG.Description}},".suggest-series-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.SeriesTitle}},".suggest-season-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.Season}},".suggest-episode-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:h.pG.EpisodeNumber}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}},"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),o.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var n=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(n.attr("disabled","disabled"),n.attr("class","form-control ".concat(M.Z.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getTypeaheadConfigs",value:function(){var e=d.MK.getTypeaheadConfig(),n=d.MK.getBloodhoundConfig(),t={filterEmptySeries:!1},o=Object.assign({hideEmptyResults:!0},t),i=Object.assign({newType:p.n8.Series},t),s=Object.assign({newType:p.n8.Series,footerTemplate:r.J.getConfirmSelectionTemplate()},t);return[{name:p.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:o},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:i},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:s}]}},{key:"renderSeriesTypeahead",value:function(){if(d.M2.isVideo(this.model)){var e=this.model.series||new s.Q.Hn;this.showChildView("series",new c.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?i.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:r.J.selectFirstResult,onInput:r.J.emitEventOnInput(this.options.channelName,h.NT.DetectInput,"series"),onBlur:r.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}}},{key:"renderEditSeason",value:function(){var e=this;if(d.M2.isVideo(this.model)){var n=this.model.get("series.seasons")||new a.i,t=new a.i(n.map((function(n){return n.set("displayName",i.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new D({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}}},{key:"renderDescription",value:function(){this.showChildView("description",new u.F({name:"description",class:"form-control ".concat(!this.options.editable&&M.Z.disabled),placeholder:this.options.editable?i.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){d.M2.isVideo(this.model)&&this.showChildView("ratings",new l.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:M.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?i.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.renderSeriesTypeahead(),this.renderEditSeason(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}],f&&F(t.prototype,f),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,f}(s.Q.wA)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return f}});var o=t(21161),i=t(31647),s=t(64154),r=t.n(s),a={resizingTextarea:"hJmNl"};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(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 c(e){var n=function(e){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=l(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(n)?n:n+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(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=d(n),function(e,n){if(n&&("object"==l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(n,t||[],d(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&&h(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return r()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return v}});var o=t(43823),i=t(21161),s=t(11306),r=t(31647),a=t(17391),l=t(85475),u=t(93569),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};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 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,m(o.key),o)}}function m(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 y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}var v=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&&y(e,n)}(n,e),t=n,c=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||r.Q.Ry.throw(new s.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new r.Q.Hn),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=o.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},(n=m(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,n){var t;e.preventDefault(),t="string"==typeof n?n:n.title||n.name||n.query,this.model.set(this.options.stickItProperty,t),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,n),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var n=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){n.model.clear(),n.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return i.isArray(this.options.typeaheadConfigs)?a.J.getSearchSources(this.options.typeaheadConfigs):a.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?i.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return i.isObject(this.options.actionOptions)?i.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){i.isObject(this.options.callbacks)&&(i.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",i.bind(this.options.callbacks.onRender,this)),i.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),i.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",i.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",i.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.Nj.getSvg(l.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),o.Validation.bind(this),this.toggleRemove(),this.options.autofocus&&window.requestAnimationFrame((function(){e.getUI("input").focus()}))}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),o.Validation.unbind(this)}}],c&&f(t.prototype,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,c}(r.Q.wA)},37571:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"d-inline-block"},3:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.programTitle:s,n))},5:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.requiredStar:s,n))+'">*</span>'},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},9:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},11:function(e,n,t,o,i){return"disabled"},13:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="row">\n <div class="form-group col-6 p-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"series",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-series-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-season-number">'+l((t.lang||n&&n.lang||a).call(r,"season",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="edit-season-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-episode-number">'+l((t.lang||n&&n.lang||a).call(r,"episode",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="episodeNumber"\n type="number"\n class="form-control episode-number '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n id="edit-episode-number"\n placeholder="'+l(e.lambda(null!=(s=null!=n?n.options:n)?s.episodeNumberPlaceholderText:s,n))+'"\n autocomplete="off"\n min="1"\n '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.lockEpisodeNumber:s,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n'},14:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seriesTitle:s,n))},16:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-series-title">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},18:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.seasonNumber:s,n))},20:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-season-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},22:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.episodeNumber:s,n))},24:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-episode-number">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},26:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.description:s,n))},28:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression;return'<span class="'+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.suggestEdit:s,n))+'">- <a class="suggest-description">'+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:i}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<div class="position-relative '+(null!=(s=t.if.call(r,null!=(s=null!=n?n.options:n)?s.showingSaveButton:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <h5 class="d-inline-block">'+l((t.lang||n&&n.lang||a).call(r,"heading",{name:"lang",hash:{},data:i}))+'</h5>\n</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-title">'+l((t.lang||n&&n.lang||a).call(r,"title",{name:"lang",hash:{},data:i}))+(null!=(s=t.if.call(r,null!=(s=null!=(s=null!=n?n.options:n)?s.requiredFields:s)?s.programTitle:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+'\n <input\n name="name"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")+'"\n placeholder="'+l((t.lang||n&&n.lang||a).call(r,"titlePlaceholder",{name:"lang",hash:{},data:i}))+'"\n id="edit-title"\n autocomplete="off"\n '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?s:"")+'\n >\n <div class="form-feedback"></div>\n</div>\n<div class="container-fluid">\n'+(null!=(s=t.if.call(r,null!=n?n.series:n,{name:"if",hash:{},fn:e.program(13,i,0),inverse:e.noop,data:i}))?s:"")+'</div>\n<div class="form-group '+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(26,i,0),inverse:e.noop,data:i}))?s:"")+'">\n <label for="edit-description">'+l((t.lang||n&&n.lang||a).call(r,"description",{name:"lang",hash:{},data:i}))+"</label>\n "+(null!=(s=t.unless.call(r,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(28,i,0),inverse:e.noop,data:i}))?s:"")+'\n <div class="description-region"></div>\n <div class="form-feedback"></div>\n</div>\n<div class="ratings-region"></div>\n'},useData:!0})},73519:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return'<div class="">\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\n</div>\n'},3:function(e,n,t,o,i){return'<div class="form-group mb-2">\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\n <div class="form-feedback"></div>\n</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,(null!=(s=t.unless.call(null!=n?n:e.nullContext||{},null!=(s=null!=n?n.options:n)?s.show:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?s:"")+'<div class="text-end">\n <div class="button-region"></div>\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"disabled"},5:function(e,n,t,o,i){return"selected"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression;return' <option value="'+a(r(null!=n?n.number:n,n))+'" '+(null!=(s=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+a(r(null!=n?n.displayName:n,n))+"</option>\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+r(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.button:s,n))+" "+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+'"\n name="season"\n '+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+'\n>&nbsp;</div>\n<div class="dropdown-menu dropdown-menu-end dropdown-arrow w-100">\n <div class="text-center px-2">\n <select name="season" class="form-select">\n <option value="-1" '+(null!=(s=t.unless.call(a,null!=(s=null!=n?n.options:n)?s.hasSelected:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+">"+r((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:i}))+"</option>\n"+(null!=(s=t.each.call(a,null!=(s=null!=n?n.options:n)?s.seasons:s,{name:"each",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?s:"")+' </select>\n </div>\n\n <div class="dropdown-divider"></div>\n\n <div class="create-region"></div>\n</div>\n'+(null!=(s=t.if.call(a,null!=(s=null!=n?n.options:n)?s.showRemoveIcon:s,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?s:"")},useData:!0})},64154:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"required"},3:function(e,n,t,o,i){return"readonly"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<textarea\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.name:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.id:s,n))+'"\n autocomplete="false"\n class="'+a(r(null!=(s=null!=n?n.options:n)?s.class:s,n))+" event-selector "+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.resizingTextarea:s,n))+'"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholder:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.required:s,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.readonly:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.disabled:s,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+"\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var s;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.disabled:s,n))},3:function(e,n,t,o,i){return"autofocus"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var s,r=e.lambda,a=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<input\n name="'+a(r(null!=(s=null!=n?n.options:n)?s.inputName:s,n))+'"\n type="text"\n class="form-control '+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?s:"")+" "+a(r(null!=(s=null!=n?n.options:n)?s.additionalClasses:s,n))+'"\n id="'+a(r(null!=(s=null!=n?n.options:n)?s.inputId:s,n))+'"\n autocomplete="off"\n placeholder="'+a(r(null!=(s=null!=n?n.options:n)?s.placeholderText:s,n))+'"\n '+(null!=(s=t.if.call(l,null!=(s=null!=n?n.options:n)?s.autofocus:s,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?s:"")+"\n "+(null!=(s=t.unless.call(l,null!=(s=null!=n?n.options:n)?s.editable:s,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?s:"")+'\n></input>\n<span class="svg-container mb-2 '+a(r(null!=(s=null!=(s=null!=n?n.options:n)?s.styles:s)?s.svg:s,n))+' remove" style="display: none;">'+(null!=(s=r(null!=(s=null!=n?n.options:n)?s.svgRemove:s,n))?s:"")+"</span>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,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(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\n<div class="alert alert-danger" role="alert">\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\n</div>\n<div class="alert alert-warning" role="alert">\n <h3>Call stack</h3>\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return 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})}}]);