@clickview/library-editor 1.8.1-dev.0 → 1.8.1-rc.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 (140) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{8179-library-editor-df33c921f0.chunk.css → 2704-library-editor-8067d27c56.chunk.css} +4 -0
  3. package/dist/css/{7295-library-editor-b0c43d2c79.chunk.css → 3427-library-editor-8442ad6453.chunk.css} +1 -1
  4. package/dist/css/{1132-library-editor-c1a116496b.chunk.css → 3803-library-editor-c08c7cc096.chunk.css} +1 -1
  5. package/dist/css/{2284-library-editor-436a0d1ce1.chunk.css → 409-library-editor-38562d76cd.chunk.css} +1 -1
  6. package/dist/css/{6220-library-editor-e66d80c18a.chunk.css → 4810-library-editor-740619bb9d.chunk.css} +1 -11
  7. package/dist/css/{6181-library-editor-db9baf23c2.chunk.css → 5047-library-editor-3ed99ac07f.chunk.css} +0 -4
  8. package/dist/css/{4177-library-editor-4cba18186c.chunk.css → 5248-library-editor-c06823703f.chunk.css} +8 -4
  9. package/dist/css/{6999-library-editor-c9c844221a.chunk.css → 5356-library-editor-075fbedf48.chunk.css} +0 -12
  10. package/dist/css/{1911-library-editor-f7158ba599.chunk.css → 6625-library-editor-89b6e935f3.chunk.css} +0 -4
  11. package/dist/css/{1521-library-editor-b3d6d791c2.chunk.css → 8343-library-editor-10baca49f5.chunk.css} +0 -4
  12. package/dist/css/{1887-library-editor-2e57df189d.chunk.css → 8420-library-editor-3bb4952bab.chunk.css} +8 -4
  13. package/dist/css/{8929-library-editor-2cba3474fe.chunk.css → 9195-library-editor-14f7d9be38.chunk.css} +1 -1
  14. package/dist/css/{library-editor-app-1cd9634b7b.css → library-editor-app-4e790b757d.css} +10 -10
  15. package/dist/en.json +1 -1
  16. package/dist/scripts/{1010-cd4e715098.chunk.js → 1010-cb37772c49.chunk.js} +1 -1
  17. package/dist/scripts/{1086-b559030dcf.chunk.js → 1086-a8cf020218.chunk.js} +1 -1
  18. package/dist/scripts/{1203-b828105755.chunk.js → 1203-14ae840d6b.chunk.js} +1 -1
  19. package/dist/scripts/{1409-8f5c1c9d0e.chunk.js → 1409-32bd85885e.chunk.js} +1 -1
  20. package/dist/scripts/{1832-d4427bb6f5.chunk.js → 1832-86cd9ad582.chunk.js} +1 -1
  21. package/dist/scripts/{1934-3b82bbbc99.chunk.js → 1934-3f8be23263.chunk.js} +1 -1
  22. package/dist/scripts/{2098-31d99bc407.chunk.js → 2098-96f81af824.chunk.js} +1 -1
  23. package/dist/scripts/2417-b87afd64a5.chunk.js +1 -0
  24. package/dist/scripts/{243-c9fdd938fd.chunk.js → 243-f01e965f4b.chunk.js} +1 -1
  25. package/dist/scripts/259-004621af29.chunk.js +1 -0
  26. package/dist/scripts/{2692-9ebe6d1ea4.chunk.js → 2692-61fa0956f7.chunk.js} +1 -1
  27. package/dist/scripts/2704-2acb36a8e6.chunk.js +2 -0
  28. package/dist/scripts/{2733-e8cc6e3610.chunk.js → 2733-b894e791d4.chunk.js} +1 -1
  29. package/dist/scripts/{2802-160b25677d.chunk.js → 2802-b27bcc7922.chunk.js} +1 -1
  30. package/dist/scripts/2803-a61efc3928.chunk.js +1 -0
  31. package/dist/scripts/{2888-80050720b2.chunk.js → 2888-aa8575c95a.chunk.js} +1 -1
  32. package/dist/scripts/{299-d19e77b508.chunk.js → 299-f783c04b9f.chunk.js} +1 -1
  33. package/dist/scripts/3096-7b76aacf1b.chunk.js +1 -0
  34. package/dist/scripts/3427-69e041b58f.chunk.js +1 -0
  35. package/dist/scripts/{3639-36a34d483b.chunk.js → 3639-49cbb7726d.chunk.js} +1 -1
  36. package/dist/scripts/3746-035d2a375b.chunk.js +1 -0
  37. package/dist/scripts/{3763-3bef6ac728.chunk.js → 3763-42330d8e14.chunk.js} +1 -1
  38. package/dist/scripts/3803-ddb6cb3af0.chunk.js +1 -0
  39. package/dist/scripts/409-4d3f47dde3.chunk.js +1 -0
  40. package/dist/scripts/{4201-25e82e2429.chunk.js → 4201-934449ecc8.chunk.js} +1 -1
  41. package/dist/scripts/{435-fb19753c8d.chunk.js → 435-15245a31f0.chunk.js} +1 -1
  42. package/dist/scripts/{4353-c7a0df4214.chunk.js → 4353-2cc9f63986.chunk.js} +1 -1
  43. package/dist/scripts/{4591-9a2868f8a0.chunk.js → 4591-5170be25a2.chunk.js} +1 -1
  44. package/dist/scripts/4703-d6f96abde3.chunk.js +1 -0
  45. package/dist/scripts/4810-abc1d10673.chunk.js +1 -0
  46. package/dist/scripts/{4860-b3e5cb9cbd.chunk.js → 4860-59a185099c.chunk.js} +1 -1
  47. package/dist/scripts/{4885-9e4ce006c8.chunk.js → 4885-5e746feb33.chunk.js} +1 -1
  48. package/dist/scripts/5047-fede824a7a.chunk.js +1 -0
  49. package/dist/scripts/{514-59d9a9a7bd.chunk.js → 514-4d8b3e1241.chunk.js} +1 -1
  50. package/dist/scripts/{6220-984f02c732.chunk.js → 5248-f08a510a35.chunk.js} +1 -1
  51. package/dist/scripts/{1887-d306fab87c.chunk.js → 5356-e72cc7d540.chunk.js} +1 -1
  52. package/dist/scripts/{5412-a1721cffc4.chunk.js → 5412-f7addc660e.chunk.js} +1 -1
  53. package/dist/scripts/5431-5878626ffc.chunk.js +1 -0
  54. package/dist/scripts/{546-81473f1035.chunk.js → 546-0a0da54e49.chunk.js} +1 -1
  55. package/dist/scripts/5665-652f2d5ce2.chunk.js +1 -0
  56. package/dist/scripts/{5747-8a168b816b.chunk.js → 5747-1c103faee6.chunk.js} +1 -1
  57. package/dist/scripts/5967-7f52d83b9d.chunk.js +1 -0
  58. package/dist/scripts/6093-e8c8ee685e.chunk.js +1 -0
  59. package/dist/scripts/{6420-1537f8f587.chunk.js → 6420-e6a2a2f8e1.chunk.js} +1 -1
  60. package/dist/scripts/{1911-41bf677d7e.chunk.js → 6625-dad5409d21.chunk.js} +1 -1
  61. package/dist/scripts/{6774-185468f6f5.chunk.js → 6774-65575c493f.chunk.js} +1 -1
  62. package/dist/scripts/{6788-2368a122f1.chunk.js → 6788-5a4f2eb9cc.chunk.js} +1 -1
  63. package/dist/scripts/7002-93a4fa2a41.chunk.js +1 -0
  64. package/dist/scripts/7053-367c9fd75e.chunk.js +1 -0
  65. package/dist/scripts/{7251-a247842ccb.chunk.js → 7251-6f904debb4.chunk.js} +2 -2
  66. package/dist/scripts/{8074-b610b1ba63.chunk.js → 8074-f41783a736.chunk.js} +1 -1
  67. package/dist/scripts/{1521-0c23d44c5e.chunk.js → 8343-744924c708.chunk.js} +1 -1
  68. package/dist/scripts/{8362-195c5ba6c3.chunk.js → 8362-bd0a827fd1.chunk.js} +1 -1
  69. package/dist/scripts/8420-feedc1737c.chunk.js +1 -0
  70. package/dist/scripts/8727-bcd1353109.chunk.js +1 -0
  71. package/dist/scripts/{8762-b445a592a5.chunk.js → 8762-44030384bd.chunk.js} +1 -1
  72. package/dist/scripts/{8906-efcc846fad.chunk.js → 8906-9c897538cc.chunk.js} +1 -1
  73. package/dist/scripts/{8947-4df5e81810.chunk.js → 8947-361fa0bb45.chunk.js} +1 -1
  74. package/dist/scripts/{9167-9c54b36e3a.chunk.js → 9167-653b78f15a.chunk.js} +1 -1
  75. package/dist/scripts/9195-86ea4a2c6e.chunk.js +1 -0
  76. package/dist/scripts/{9298-d8c9ed5471.chunk.js → 9298-e7d4c8cdcd.chunk.js} +1 -1
  77. package/dist/scripts/9355-805decfc74.chunk.js +1 -0
  78. package/dist/scripts/{9357-2e288289f3.chunk.js → 9357-24309fbc82.chunk.js} +1 -1
  79. package/dist/scripts/9383-db31c7a3f4.chunk.js +1 -0
  80. package/dist/scripts/{9695-4bb132be57.chunk.js → 9695-3b345f10c3.chunk.js} +1 -1
  81. package/dist/scripts/{9927-25579dff18.chunk.js → 9927-e6b59f3a6c.chunk.js} +1 -1
  82. package/dist/scripts/bundle-5523d17860.min.js +2 -0
  83. package/package.json +1 -1
  84. package/dist/css/101-library-editor-808f785991.chunk.css +0 -4
  85. package/dist/css/2011-library-editor-9b9cd091d0.chunk.css +0 -62
  86. package/dist/css/2119-library-editor-1d6a95fb9f.chunk.css +0 -4
  87. package/dist/css/3969-library-editor-3382f0875b.chunk.css +0 -4
  88. package/dist/css/3987-library-editor-2271e5262a.chunk.css +0 -56
  89. package/dist/css/5891-library-editor-76fe7e394b.chunk.css +0 -2
  90. package/dist/css/6963-library-editor-76fe7e394b.chunk.css +0 -2
  91. package/dist/scripts/101-98e020bd6f.chunk.js +0 -1
  92. package/dist/scripts/1132-3f29e51c9d.chunk.js +0 -1
  93. package/dist/scripts/2011-f178a6dabf.chunk.js +0 -1
  94. package/dist/scripts/2119-cbaa6000b1.chunk.js +0 -1
  95. package/dist/scripts/2284-a57db3563f.chunk.js +0 -1
  96. package/dist/scripts/2417-48687b3eeb.chunk.js +0 -1
  97. package/dist/scripts/259-e1d9ce07f4.chunk.js +0 -1
  98. package/dist/scripts/2803-86fc1b1e3f.chunk.js +0 -1
  99. package/dist/scripts/3096-ca9e2f0dfd.chunk.js +0 -1
  100. package/dist/scripts/3746-46e0073a46.chunk.js +0 -1
  101. package/dist/scripts/3969-258fca82a8.chunk.js +0 -1
  102. package/dist/scripts/3987-e3a4ade0c9.chunk.js +0 -1
  103. package/dist/scripts/4177-0be8ceed3c.chunk.js +0 -1
  104. package/dist/scripts/5173-e1b904c06c.chunk.js +0 -1
  105. package/dist/scripts/5235-abc8ea83ed.chunk.js +0 -1
  106. package/dist/scripts/5263-38198ed595.chunk.js +0 -1
  107. package/dist/scripts/5664-d6cbc77d63.chunk.js +0 -1
  108. package/dist/scripts/5891-63973f5678.chunk.js +0 -1
  109. package/dist/scripts/6093-a62d8ebc86.chunk.js +0 -1
  110. package/dist/scripts/6181-fa5e7bcbf9.chunk.js +0 -1
  111. package/dist/scripts/6963-a576fd9c4d.chunk.js +0 -1
  112. package/dist/scripts/6999-1fe379ca99.chunk.js +0 -1
  113. package/dist/scripts/7002-9b2aad8369.chunk.js +0 -1
  114. package/dist/scripts/7053-643499a3a6.chunk.js +0 -1
  115. package/dist/scripts/708-9e2ef23c87.chunk.js +0 -1
  116. package/dist/scripts/7295-96fcbaa176.chunk.js +0 -1
  117. package/dist/scripts/7376-21f5de2ce6.chunk.js +0 -1
  118. package/dist/scripts/8179-f5cc87ded7.chunk.js +0 -2
  119. package/dist/scripts/8495-0a9a71f2dc.chunk.js +0 -1
  120. package/dist/scripts/8727-20ae545e12.chunk.js +0 -1
  121. package/dist/scripts/8929-6fac19a7a3.chunk.js +0 -1
  122. package/dist/scripts/9383-6d0392b17f.chunk.js +0 -1
  123. package/dist/scripts/9770-9eaef2c966.chunk.js +0 -1
  124. package/dist/scripts/995-3a6de1eec1.chunk.js +0 -1
  125. package/dist/scripts/bundle-2b73fa6c21.min.js +0 -2
  126. /package/dist/css/{708-library-editor-7417a89428.chunk.css → 5967-library-editor-7417a89428.chunk.css} +0 -0
  127. /package/dist/scripts/{1934-3b82bbbc99.chunk.js.LICENSE.txt → 1934-3f8be23263.chunk.js.LICENSE.txt} +0 -0
  128. /package/dist/scripts/{8179-f5cc87ded7.chunk.js.LICENSE.txt → 2704-2acb36a8e6.chunk.js.LICENSE.txt} +0 -0
  129. /package/dist/scripts/{2802-160b25677d.chunk.js.LICENSE.txt → 2802-b27bcc7922.chunk.js.LICENSE.txt} +0 -0
  130. /package/dist/scripts/{3019-8c7fdaf749.chunk.js → 3019-756f3418e1.chunk.js} +0 -0
  131. /package/dist/scripts/{3400-3a56ad67d9.chunk.js → 3400-77e28c9a26.chunk.js} +0 -0
  132. /package/dist/scripts/{400-00070f1714.chunk.js → 400-245e50bb8b.chunk.js} +0 -0
  133. /package/dist/scripts/{4245-4d98c3f676.chunk.js → 4245-7ca37805e2.chunk.js} +0 -0
  134. /package/dist/scripts/{5418-bfa546cf33.chunk.js → 5418-eab2a58869.chunk.js} +0 -0
  135. /package/dist/scripts/{693-0ae38e2ba5.chunk.js → 693-4e5dfe0a0a.chunk.js} +0 -0
  136. /package/dist/scripts/{7173-a4f745b0ed.chunk.js → 7173-f13a6eaf95.chunk.js} +0 -0
  137. /package/dist/scripts/{7190-d294d5b67c.chunk.js → 7190-663dc02699.chunk.js} +0 -0
  138. /package/dist/scripts/{7251-a247842ccb.chunk.js.LICENSE.txt → 7251-6f904debb4.chunk.js.LICENSE.txt} +0 -0
  139. /package/dist/scripts/{bundle-2b73fa6c21.min.js.LICENSE.txt → bundle-5523d17860.min.js.LICENSE.txt} +0 -0
  140. /package/dist/scripts/{polyfills-c62d0e7aec.min.js → polyfills-513148dd03.min.js} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4810],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return h}});var i=n(39479),o=n(31647),r=n(70065),a=n(52076),s=n(99186),c=n.n(s);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,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,n,o,s,l=(o=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(s){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,e)}return t=h,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:i.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,o=e,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t))};var t,n,o}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=a.k.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),n={id:this.options.collectionId,page:e};a.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.Q.Component)},19262:function(e,t,n){"use strict";n.r(t),n.d(t,{RestrictedVideoListView:function(){return R}});var i=n(31647),o=n(21679),r=n(57857),a=n(6681),s=n(56210),c=n(47022),l=n(87262),u=n(25692),p=n(70763),f=n(30305),d=n(17422),h=n(48404),y=n(71192),v=n(23096),g=n(58688),b=n(9484),m={svgContainer:"OJoTp"},k=n(12827),O=n.n(k),w=n(264),C=n(95061);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(t&&("object"===V(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(R,e);var t,n,i,k,V=(i=R,k=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_(i);if(k){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),V.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=o.u.getInstance(f.Or.RestrictedVideo,this),this.videoDataService=o.u.getInstance(f.Or.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.RESTRICTED_VIDEO,"".concat(f.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.Vk.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return O()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:s.H,selector:".".concat(m.svgContainer),title:r.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:d.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.t(this.videoCollection.map((function(e){return new y.n({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new v.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:g.U.VideoAccess,config:this.config,emptyStateType:d.ub.VideoAccess,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!e,showEmptyState:!0,libraries:this.libraries}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new c.Q({cursors:e,appLink:{application:f.OV.VIDEO_ACCESS,action:f.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var i=t.videosWithMetadata.get(e);i&&(i.set(n.toJSON()),i.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:h.p.config,currentUser:b.K.currentUser,libraries:C.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,t;return{styles:m,supportUrl:!w.g.hasLite&&l.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),u.w.VideoAccess,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),svg:a.Nj.getSvg(a.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),R}(i.Q.View)},99186:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'">'+c((n.lang||t&&t.lang||s).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'">'+c((n.lang||t&&t.lang||s).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},12827:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression;return' <a class="d-inline-block ml-2 '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" href="'+s(a(null!=(r=null!=t?t.options:t)?r.supportUrl:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+c((n.lang||t&&t.lang||s).call(a,"heading",{name:"lang",hash:{},data:o}))+" </h1>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.supportUrl:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+c((n.lang||t&&t.lang||s).call(a,"description",{name:"lang",hash:{},data:o}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4860],{44860:function(e,t,n){"use strict";n.r(t),n.d(t,{NotFoundView:function(){return b}});var r=n(31647),o=n(28099),i=n(74030),u=n.n(i),l={image:"dLQU1"};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(b,e);var t,n,r,i,a=(r=b,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(i){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function b(){return c(this,b),a.apply(this,arguments)}return t=b,(n=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(r.Q.View)},74030:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u=e.lambda,l=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\r\n<h2 class="h6 mt-3">'+l((n.lang||t&&t.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\r\n<p class="pb-5">'+(null!=(i=(n.lang||t&&t.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4860],{44860:function(e,t,n){"use strict";n.r(t),n.d(t,{NotFoundView:function(){return b}});var r=n(31647),o=n(30305),i=n(74030),u=n.n(i),l={image:"dLQU1"};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(b,e);var t,n,r,i,a=(r=b,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(i){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function b(){return c(this,b),a.apply(this,arguments)}return t=b,(n=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(r.Q.View)},74030:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,u=e.lambda,l=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\r\n<h2 class="h6 mt-3">'+l((n.lang||t&&t.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\r\n<p class="pb-5">'+(null!=(i=(n.lang||t&&t.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=t?t.options:t)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4885],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return h}});var o=n(39479),r=n(31647),i=n(70065),l=n(52076),c=n(99186),u=n.n(c);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,r,c,a=(r=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(c){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),a.call(this,e)}return t=h,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,r=e,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=l.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};l.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.Q.Component)},8614:function(e,t,n){"use strict";n.d(t,{fH:function(){return ye},$V:function(){return re},wY:function(){return Qe},b_:function(){return ke},SV:function(){return Ne},b5:function(){return X}});var o=n(48088),r=n(31647),i=n(28099),l=n(17422),c=n(70065),u=n(52076),a=n(99249),s=n(57857),f=n(30644),p=n(5344),y=n(21769),h=n(11060),d=n.n(h);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(o);if(r){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"py-1"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new ke({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.Component),O=n(65882),C=n.n(O);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=x(e);if(t){var r=x(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var N=function(e){S(n,e);var t=R(n);function n(){return T(this,n),t.apply(this,arguments)}return E(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),p.qr.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:f.K.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new I({collection:this.collection,channelName:this.channelName}))}}]),n}(r.Q.Component),I=function(e){S(n,e);var t=R(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return k}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.Q.ComponentCollection),D=n(7170),L={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},V=n(42007),B=n.n(V);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function Q(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(y,e);var t,n,r,l,f=(r=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=U(r);if(l){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Q(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),f.call(this,e)}return t=y,n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return B()}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat("axS5I")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=a.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new D.y(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!p.qr.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return p.qr.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=s.T.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.filterButton);return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){p.qr.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete},o={type:e.get("title"),value:p.qr.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};u.k.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete};u.k.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new N({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],n&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.Component),z=n(92689),W=n.n(z);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function $(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(f,e);var t,n,r,a,s=(r=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=J(r);if(a){var n=J(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,e)}return t=f,(n=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return W()}},{key:"lang",get:function(){return"search.filters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:l.LP.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){p.qr.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new D.y(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&p.qr.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new D.y(this.collection.filter((function(e){return e.get("showInMoreFilters")&&p.qr.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete};u.k.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new re({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new H({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:L.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:L.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&K(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Q.Component);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oe(o);if(r){var n=oe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ne(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return ye}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:c.LocationContext.SearchFilters,entity:c.EntityType.Video}}}}])&&ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.ComponentCollection),ie=n(44937),le=n(91776),ce=n.n(le);function ue(e){return ue="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},ue(e)}function ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function fe(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}var ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(h,e);var t,n,l,s,y=(l=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=pe(l);if(s){var n=pe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return fe(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return ce()}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=a.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new ie.wn(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){p.qr.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==f.K.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return p.qr.isSelected(this.model)?p.qr.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.filterButton);return p.qr.isSelected(this.model)?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=u.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Filter,workflowPhase:c.WorkflowPhase.Complete}),n={type:this.model.get("title"),value:p.qr.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};u.k.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=u.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,workflowPhase:c.WorkflowPhase.Complete}),t={type:this.model.get("title")};u.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:L,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new N({collection:new r.Q.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.Q.Component),he=n(81637),de=n.n(he);function be(e){return be="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},be(e)}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function ge(e,t){if(t&&("object"===be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ve(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=we(r);if(l){var n=we(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ge(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return de()}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){p.qr.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){p.qr.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===p.xF.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===p.xF.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===p.xF.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===p.xF.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===p.xF.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===f.K.Duration?Ot:this.isTagType()?Qt:this.isRangeType()?ut:this.isBooleanType()?$e:Ne}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}}])&&me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Oe=n(91713),Ce=n.n(Oe);function Pe(e){return Pe="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},Pe(e)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ee(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(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&&Fe(e,t)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=xe(e);if(t){var r=xe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _e(this,n)}}function _e(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}var Ne=function(e){Se(n,e);var t=Re(n);function n(e){return Te(this,n),t.call(this,e)}return Ee(n,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return Ce()}},{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===p.xF.Inclusive?p.qr.selectAllOptions(this.model):p.qr.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===p.xF.Inclusive?p.qr.allOptionsSelected(this.model):!p.qr.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new Ie({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}]),n}(r.Q.Component),Ie=function(e){Se(n,e);var t=Re(n);function n(e){return Te(this,n),t.call(this,e)}return Ee(n,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return Qe}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.Q.ComponentCollection),De=n(72673),Le=n.n(De);function Ve(e){return Ve="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},Ve(e)}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}function Me(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qe(r);if(l){var n=qe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Me(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Le()}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}}])&&Be(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Ue=n(18818),He=n.n(Ue);function ze(e){return ze="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},ze(e)}function We(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}function Ke(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ge(r);if(l){var n=Ge(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ke(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return He()}},{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}}])&&We(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Je=n(62568),Xe=n.n(Je);function Ze(e){return Ze="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},Ze(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nt(e,t,n){return t&&tt(e.prototype,t),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ot(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&&rt(e,t)}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ct(e);if(t){var r=ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var ut=function(e){ot(n,e);var t=it(n);function n(){return et(this,n),t.apply(this,arguments)}return nt(n,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat("U9MEr"," my-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return at}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.Q.ComponentCollection),at=function(e){ot(n,e);var t=it(n);function n(){return et(this,n),t.apply(this,arguments)}return nt(n,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return Xe()}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat("zSUig"," border btn btn-");return this.isSelected()?"".concat(e,"dark"):"".concat(e,"outline-dark")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}}]),n}(r.Q.Component),st=n(16869),ft=n.n(st),pt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};function yt(e){return yt="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},yt(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function bt(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mt(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&&vt(e,t)}function vt(e,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vt(e,t)}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=kt(e);if(t){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return wt(this,n)}}function wt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}var Ot=function(e){mt(n,e);var t=gt(n);function n(){return ht(this,n),t.apply(this,arguments)}return bt(n,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Ct}},{key:"className",get:function(){return pt.options}},{key:"getOptionItemClassName",value:function(){var e=pt.optionItem;return 4===this.collection.length&&(e+=" ".concat(pt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),n}(r.Q.ComponentCollection),Ct=function(e){mt(n,e);var t=gt(n);function n(e){return ht(this,n),t.call(this,e)}return bt(n,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return ft()}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}},{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(pt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}]),n}(r.Q.Component),Pt=n(39479),Tt=n(26457),jt=n(21626),Et=n.n(jt),St=n(44391),Ft=n(9586),Rt=n.n(Ft);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function xt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function It(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dt(e)}var Lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Dt(o);if(r){var n=Dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return It(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Rt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:l.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Pt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new St.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&xt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Q.Component);function Vt(e){return Vt="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},Vt(e)}function Bt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function At(e,t){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},At(e,t)}function Mt(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}var Qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qt(r);if(l){var n=qt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Mt(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return Et()}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat("bBNF3")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=p.qr.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new D.q(this.collection.filter((function(t){return!Pt.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=p.qr.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Pt.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=p.qr.getSelectedOptions(this.collection);this.showChildView("selectedTags",new Lt({collection:e,channelName:this.channelName,behavior:Tt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Lt({collection:this.relevantTags,channelName:this.channelName,behavior:Tt.Dm.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}}])&&Bt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component)},21769:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var o={TagFilter:"tag:filter"}},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},92689:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(c,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},91776:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},11060:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},65882:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},81637:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},18818:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(c,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},16869:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function";return'<button type="button" class="d-block option-btn w-100 '+c(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+c(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:a)===s?l.call(u,{name:"name",hash:{},data:r}):l)+'\r\n</button>\r\n<div class="text-center">'+c(typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:a)===s?l.call(u,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},72673:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.lambda,u=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+u(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+u(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(a,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</label>\r\n</div>"},useData:!0})},91713:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+c(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},62568:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},21626:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},9586:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},42007:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4885],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return h}});var o=n(39479),r=n(31647),i=n(70065),l=n(52076),c=n(99186),u=n.n(c);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(h,e);var t,n,r,c,a=(r=h,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(c){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),a.call(this,e)}return t=h,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,r=e,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=l.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};l.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.Q.Component)},8614:function(e,t,n){"use strict";n.d(t,{fH:function(){return ye},$V:function(){return re},wY:function(){return Qe},b_:function(){return ke},SV:function(){return Ne},b5:function(){return X}});var o=n(48088),r=n(31647),i=n(30305),l=n(17422),c=n(70065),u=n(52076),a=n(99249),s=n(57857),f=n(30644),p=n(5344),y=n(21769),h=n(11060),d=n.n(h);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(o);if(r){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"py-1"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new ke({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.Component),O=n(65882),C=n.n(O);function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=x(e);if(t){var r=x(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var N=function(e){S(n,e);var t=R(n);function n(){return T(this,n),t.apply(this,arguments)}return E(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),p.qr.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:f.K.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new I({collection:this.collection,channelName:this.channelName}))}}]),n}(r.Q.Component),I=function(e){S(n,e);var t=R(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return k}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.Q.ComponentCollection),D=n(7170),L={label:"PxEgY",filterButton:"CCepL",dropdownMenu:"tqkX2"},V=n(42007),B=n.n(V);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function Q(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(y,e);var t,n,r,l,f=(r=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=U(r);if(l){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Q(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),f.call(this,e)}return t=y,n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return B()}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat("axS5I")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=a.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new D.y(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!p.qr.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return p.qr.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=s.T.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.filterButton);return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){p.qr.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete},o={type:e.get("title"),value:p.qr.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};u.k.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete};u.k.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new N({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}],n&&M(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.Component),z=n(92689),W=n.n(z);function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function $(e,t){if(t&&("object"===Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(f,e);var t,n,r,a,s=(r=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=J(r);if(a){var n=J(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,e)}return t=f,(n=[{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return W()}},{key:"lang",get:function(){return"search.filters"}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:l.LP.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){p.qr.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new D.y(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&p.qr.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new D.y(this.collection.filter((function(e){return e.get("showInMoreFilters")&&p.qr.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.qr.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:c.LocationContext.SearchFilters,actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,entity:c.EntityType.Video,workflowPhase:c.WorkflowPhase.Complete};u.k.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new re({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new H({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:L.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:L.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}}])&&K(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Q.Component);function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(l,e);var t,n,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oe(o);if(r){var n=oe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ne(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return ye}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:c.LocationContext.SearchFilters,entity:c.EntityType.Video}}}}])&&ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.ComponentCollection),ie=n(44937),le=n(91776),ce=n.n(le);function ue(e){return ue="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},ue(e)}function ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function fe(e,t){if(t&&("object"===ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function pe(e){return pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pe(e)}var ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}(h,e);var t,n,l,s,y=(l=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=pe(l);if(s){var n=pe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return fe(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),y.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return ce()}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=a.r.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new ie.wn(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){p.qr.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==f.K.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return p.qr.isSelected(this.model)?p.qr.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(L.filterButton);return p.qr.isSelected(this.model)?e+=" btn-dark":e+=" btn-outline-dark",e}},{key:"logFilterApplyAction",value:function(e){var t=u.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Filter,workflowPhase:c.WorkflowPhase.Complete}),n={type:this.model.get("title"),value:p.qr.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};u.k.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=u.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Filter,descriptor:c.FilterDescriptor.Reset,workflowPhase:c.WorkflowPhase.Complete}),t={type:this.model.get("title")};u.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:L,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new N({collection:new r.Q.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}}])&&ae(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.Q.Component),he=n(81637),de=n.n(he);function be(e){return be="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},be(e)}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ve(e,t){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ve(e,t)}function ge(e,t){if(t&&("object"===be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function we(e){return we=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},we(e)}var ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ve(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=we(r);if(l){var n=we(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ge(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return de()}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.Vy.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){p.qr.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){p.qr.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===p.xF.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===p.xF.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===p.xF.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===p.xF.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===p.xF.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===f.K.Duration?Ot:this.isTagType()?Qt:this.isRangeType()?ut:this.isBooleanType()?$e:Ne}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}}])&&me(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Oe=n(91713),Ce=n.n(Oe);function Pe(e){return Pe="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},Pe(e)}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ee(e,t,n){return t&&je(e.prototype,t),n&&je(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(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&&Fe(e,t)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fe(e,t)}function Re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=xe(e);if(t){var r=xe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _e(this,n)}}function _e(e,t){if(t&&("object"===Pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}var Ne=function(e){Se(n,e);var t=Re(n);function n(e){return Te(this,n),t.call(this,e)}return Ee(n,[{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return Ce()}},{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===p.xF.Inclusive?p.qr.selectAllOptions(this.model):p.qr.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===p.xF.Inclusive?p.qr.allOptionsSelected(this.model):!p.qr.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new Ie({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}}]),n}(r.Q.Component),Ie=function(e){Se(n,e);var t=Re(n);function n(e){return Te(this,n),t.call(this,e)}return Ee(n,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return Qe}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.Q.ComponentCollection),De=n(72673),Le=n.n(De);function Ve(e){return Ve="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},Ve(e)}function Be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}function Me(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qe(r);if(l){var n=qe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Me(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Le()}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}}])&&Be(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Ue=n(18818),He=n.n(Ue);function ze(e){return ze="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},ze(e)}function We(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ye(e,t)}function Ke(e,t){if(t&&("object"===ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}var $e=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ge(r);if(l){var n=Ge(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ke(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return He()}},{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}}])&&We(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component),Je=n(62568),Xe=n.n(Je);function Ze(e){return Ze="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},Ze(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nt(e,t,n){return t&&tt(e.prototype,t),n&&tt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ot(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&&rt(e,t)}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ct(e);if(t){var r=ct(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return lt(this,n)}}function lt(e,t){if(t&&("object"===Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}var ut=function(e){ot(n,e);var t=it(n);function n(){return et(this,n),t.apply(this,arguments)}return nt(n,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat("U9MEr"," my-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return at}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.Q.ComponentCollection),at=function(e){ot(n,e);var t=it(n);function n(){return et(this,n),t.apply(this,arguments)}return nt(n,[{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return Xe()}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat("zSUig"," border btn btn-");return this.isSelected()?"".concat(e,"dark"):"".concat(e,"outline-dark")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}}]),n}(r.Q.Component),st=n(16869),ft=n.n(st),pt={optionItem:"EM99Q",customOptionItem:"aEaSA",selected:"i4EVL"};function yt(e){return yt="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},yt(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function bt(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mt(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&&vt(e,t)}function vt(e,t){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vt(e,t)}function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=kt(e);if(t){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return wt(this,n)}}function wt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}var Ot=function(e){mt(n,e);var t=gt(n);function n(){return ht(this,n),t.apply(this,arguments)}return bt(n,[{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Ct}},{key:"className",get:function(){return pt.options}},{key:"getOptionItemClassName",value:function(){var e=pt.optionItem;return 4===this.collection.length&&(e+=" ".concat(pt.customOptionItem)),e}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),n}(r.Q.ComponentCollection),Ct=function(e){mt(n,e);var t=gt(n);function n(e){return ht(this,n),t.call(this,e)}return bt(n,[{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return ft()}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}},{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(pt.optionButton," p-1");return this.isSelected()?e+=" btn-dark":e+=" btn-outline-dark",e}}]),n}(r.Q.Component),Pt=n(39479),Tt=n(26457),jt=n(21626),Et=n.n(jt),St=n(44391),Ft=n(9586),Rt=n.n(Ft);function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function xt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function It(e,t){if(t&&("object"===_t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dt(e){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dt(e)}var Lt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Dt(o);if(r){var n=Dt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return It(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Rt()}},{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:l.LP.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Pt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new St.K({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}}])&&xt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.Q.Component);function Vt(e){return Vt="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},Vt(e)}function Bt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function At(e,t){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},At(e,t)}function Mt(e,t){if(t&&("object"===Vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qt(e){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qt(e)}var Qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&At(e,t)}(u,e);var t,n,r,l,c=(r=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qt(r);if(l){var n=qt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Mt(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return Et()}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat("bBNF3")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(i.Vy.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(y.I.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=p.qr.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new D.q(this.collection.filter((function(t){return!Pt.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=p.qr.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Pt.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=p.qr.getSelectedOptions(this.collection);this.showChildView("selectedTags",new Lt({collection:e,channelName:this.channelName,behavior:Tt.Dm.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Lt({collection:this.relevantTags,channelName:this.channelName,behavior:Tt.Dm.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}}])&&Bt(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component)},21769:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var o={TagFilter:"tag:filter"}},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},92689:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(c,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},91776:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},11060:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},65882:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},81637:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},18818:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(c,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},16869:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s="function";return'<button type="button" class="d-block option-btn w-100 '+c(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+c(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:a)===s?l.call(u,{name:"name",hash:{},data:r}):l)+'\r\n</button>\r\n<div class="text-center">'+c(typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:a)===s?l.call(u,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},72673:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.lambda,u=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+u(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+u(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(a,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</label>\r\n</div>"},useData:!0})},91713:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+c(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},62568:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},21626:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},9586:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},42007:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5047],{59054:function(e,t,n){"use strict";var r;n.d(t,{f:function(){return r}}),function(e){e.Share="share",e.MasterObject="masterobject"}(r||(r={}))},79641:function(e,t,n){"use strict";n.r(t),n.d(t,{VideoDetailsView:function(){return Be}});var r,o=n(39479),i=n.n(o),c=n(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var s=n(8371),l=n(30305),a=n(70065),u=n(6681),f=n(56210),p=n(61843),d=n(66882),h={svgContainer:"qOHRG"},y=n(86745),b=n.n(y);function m(e){return m="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},m(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(s,e);var t,n,r,i,c=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=O(r);if(i){var n=O(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return w(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),c.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return b()}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between p-3 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:f.H,selector:".".concat(h.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:h,lockSvg:u.Nj.getSvg(u.vn.Lock),hasRestriction:!o.isUndefined(this.model.get("restrictions")),restrictionMessage:p.S9.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new d.R({model:this.model,showActionLabels:!0,application:l.OV.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:a.EntityType.Video,location:a.LocationContext.VideoDetailsHeader,descriptor:a.OperationDescriptor.Single},config:this.options.config}))}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(c.Q.Component),E=n(77605),C=n(68058),j=n(7427),S=n(9484),R=n(45837),P=n(44391),_=n(70042),I=n(26457),x=n(17349),T=n.n(x),V={interactive:"N1mrU"};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}function A(e,t){if(t&&("object"===D(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(c,e);var t,n,r,o,i=(r=c,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=U(r);if(o){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return A(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!p.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return T()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:S.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new C.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:a.LocationContext.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new P.K({collection:this.model.get("tags"),orientation:I.zM.Flex,behavior:I.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new j.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:V,interactive:_.u.isInteractive(this.model),duration:p.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&p.BK.filterObjectsByOwnerType(this.model.tags,R.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&L(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(c.Q.Component),N=n(70693),F=n(68708),H=n(63122),K=n(57085),Q=n(23130),J=n(10386),q=n.n(J),z=n(90118),X=n.n(z),Y={columnNames:"Hs0Sh"};function Z(e){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(e)}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(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&&te(e,t)}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ie=function(e){ee(n,e);var t=ne(n);function n(){return W(this,n),t.apply(this,arguments)}return $(n,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return q()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:Y}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new Q.Z({model:new c.Q.Model({description:this.model.get("value")}),linkify:!0,size:Q.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}]),n}(c.Q.Component),ce=function(e){ee(n,e);var t=ne(n);function n(){return W(this,n),t.apply(this,arguments)}return $(n,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return ie}}]),n}(c.Q.ComponentCollection),se=function(e){ee(n,e);var t=ne(n);function n(){return W(this,n),t.apply(this,arguments)}return $(n,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return X()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new ce({collection:this.collection}))}}]),n}(c.Q.Component),le=n(21251),ae=n(21679),ue=n(33800),fe=n(48404),pe=n(17422),de=n(75535),he=n(99748),ye=n(53854),be=n(95061),me=n(3059),ve=n(57857),ge=n(26835),we=n.n(ge),Oe={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};function ke(e){return ke="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},ke(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function je(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ce(e,t)}(s,e);var t,n,o,i,c=(o=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Se(o);if(i){var n=Se(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return je(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),c.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return we()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return p.mU.isInContentRegion(this.options.contentRegion,r.UK)?Oe.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return ve.T.getPhrase(this.lang,"era");case r.AU:return ve.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=p.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:Oe,logoClass:this.getLogoClass(),labelText:e?ve.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&Ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(c.Q.Component),Pe=n(91865),_e=n.n(Pe),Ie=n(59054);function xe(e){return xe="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},xe(e)}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function De(e,t){if(t&&("object"===xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}var Be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(f,e);var t,n,o,a,u=(o=f,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Le(o);if(a){var n=Le(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return De(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),u.call(this,e)}return t=f,n=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=ae.u.getInstance(ue.O.Video,this),this.videoMixinService=ae.u.getInstance(ue.K.VideoMixin,this),this.localCacheDataService=ae.u.getInstance(ue.O.LocalCache,this),this.playerDataService=ae.u.getInstance(ue.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(l.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(l.Vk.VIDEO,"".concat(le.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(l.Vk.VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(l.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(l.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(le.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(le.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(l.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(l.Vk.LOCAL_CACHE,"".concat(le.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return _e()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case he.h.NotFound:c.Q.ErrorHelper.throw(new de.l);break;case he.h.Forbidden:c.Q.ErrorHelper.throw(new ye.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},header:{replaceElement:!0,el:".video-header-region",partialLoading:pe.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:pe.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:pe.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||p.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,Ie.f.MasterObject,t)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var t=this.libraries.reduce((function(e,t){return e[t.id]=!0,e}),{});return this.video.categories.filter((function(e){var n=e.libraries.first().get("id");return t[n]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.showChildView("breadcrumbs",new K.n({folder:this.folder,libraries:this.libraries,enableLastItemAppLink:!0}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new k({model:this.video,customerHasLocalCache:p.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new me.F7(this.folder.id,p.x$.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new M({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new H.S({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===s.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.length&&this.currentUser.get("instanceRegion")!==s.b.US&&this.showChildView("fields",new se({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new N.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new E.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new F.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new Re({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:fe.p.config,currentUser:S.K.currentUser,libraries:be.T.libraries,exchanges:be.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,t=e.chapters,n=e.resources,r=e.fields,o=e.links;return{hasFolder:!!this.folder,hasChapters:t&&t.length,hasResources:n&&n.length,hasFields:r&&r.length,hasLinks:o&&o.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],n&&Te(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(c.Q.View)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return S}});var r=n(31647),o=n(93933),i=n.n(o),c=n(86363),s=n.n(c);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var m=function(e){p(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.Component),v=function(e){p(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}]),n}(r.Q.ComponentCollection),g=n(22557),w=n(30305);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function C(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(l,e);var t,n,o,c,s=(o=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(o);if(c){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return C(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"getBreadcrumbs",value:function(){this.breadcrumbCollection=new r.Q.Collection;var e,t=this.options.folder;do{if(e=g.P.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!e),{at:0}),!e)break;t=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:w.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?w.eX.LibraryEditor.FOLDER:w.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Q.Component)},3059:function(e,t,n){"use strict";n.d(t,{KX:function(){return R},IJ:function(){return y},xw:function(){return O},F7:function(){return r.F}});var r=n(1091),o=n(39479),i=n(33303),c=n(30305),s=n(44937),l=n(39090);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function d(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,r,i,a=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),(t=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_VIDEOS,":collection"),cursor:e.cursor,sort:e.sort})).setAdditionalData(e),t}return t=y,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString,r=e.subjects;t&&(this.libraryIds=t),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(l.US,{queryString:n})||l.U1;this.dateOption=new s.Wx(i)}},{key:"toString",value:function(){var e,t=this.subjects&&this.subjects.length&&this.subjects.map((function(e){return escape(e.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((e=t,function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),this.subjects&&(e.subjectIds=o.flatten(this.subjects.map((function(e){return e.get("subjectIds")})))),this.cursor&&(e.cursor=this.cursor),e}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(i.J);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(u,e);var t,n,r,i,a=(r=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(i){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return g(this,e)});function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_SUBJECTS,":collection"),sort:e.sort})).setAdditionalData(e),t}return t=u,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString;t&&(this.libraryIds=t);var r=o.findWhere(l.US,{queryString:n})||l.U1;this.dateOption=new s.Wx(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),e}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.J);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function j(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(i,e);var t,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=S(n);if(r){var o=S(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return j(this,e)});function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,i),o.call(this,{collectionPrefix:c.M_.FOLDERS,id:e,sort:t,cursor:n})}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(i.J)},86745:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,s=e.escapeExpression;return' <span class="d-inline-block ml-2 '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+s(c(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c,s=null!=t?t:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\r\n <h4 class="d-inline-block mb-0">'+e.escapeExpression("function"==typeof(c=null!=(c=n.name||(null!=t?t.name:t))?c:e.hooks.helperMissing)?c.call(s,{name:"name",hash:{},data:o}):c)+"</h4>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},17349:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.escapeExpression;return' <span class="badge p-1 '+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:o}))+"</span>\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.folders:i},data:o}))+'</h5>\r\n <div class="folders-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:o}))+'</h5>\r\n <div class="tags-region"></div>\r\n </div>\r\n'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.escapeExpression;return' <div class="mt-3">\r\n <h5>'+c((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:o}))+"</h5>\r\n <p>"+c(e.lambda(null!=(i=null!=t?t.options:t)?i.links:i,t))+"</p>\r\n </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=null!=t?t:e.nullContext||{};return'<div class="border-right h-100 pl-2 pr-3">\r\n <div class="video-preview-region"></div>\r\n <div class="mt-3">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.folders:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.tags:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})},91865:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="row pl-3 pt-3 pr-3">\r\n <div class="breadcrumbs-region"></div>\r\n</div>\r\n'},3:function(e,t,n,r,o){return' <div class="fields-region"></div>\r\n'},5:function(e,t,n,r,o){return' <div class="video-chapters-region"></div>\r\n'},7:function(e,t,n,r,o){return' <div class="video-resources-region"></div>\r\n'},9:function(e,t,n,r,o){return' <div class="video-links-region"></div>\r\n'},11:function(e,t,n,r,o){return' <div class="screenright-disclaimer-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFolder:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="row border-bottom">\r\n <div class="video-header-region"></div>\r\n</div>\r\n<div class="row">\r\n <div class="col-4">\r\n <div class="main-video-information-region"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="basic-video-information-region py-3 pr-2"></div>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFields:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasResources:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.showScreenrightsDisclaimer:i,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</div>"},useData:!0})},86363:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<span class="font-weight-bolder">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},10386:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c,s=e.escapeExpression;return'<div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s("function"==typeof(c=null!=(c=n.name||(null!=t?t.name:t))?c:e.hooks.helperMissing)?c.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):c)+'</div>\r\n<div class="col-9">\r\n <div class="description-region"></div>\r\n</div>'},useData:!0})},90118:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},26835:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,s=e.escapeExpression;return'<div class="d-inline-block '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.licenseContainer:i,t))+'">\r\n <div class="'+s(c(null!=(i=null!=t?t.options:t)?i.logoClass:i,t))+'">'+s(c(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+'</div>\r\n <p class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.license:i,t))+' bg-white p-2 border box-shadow">\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.licenseText:i,t))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})}}]);