@clickview/library-editor 1.45.1 → 1.46.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 (117) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{3778-library-editor-75b6a2eca6.chunk.css → 3778-library-editor-4f07a203a7.chunk.css} +1 -1
  3. package/dist/css/{5185-library-editor-577789a2ba.chunk.css → 5185-library-editor-50b3d0c9c2.chunk.css} +1 -1
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/{1010-78c730c3d3.chunk.js → 1010-60f6dfd832.chunk.js} +1 -1
  6. package/dist/scripts/{1086-bf7355e402.chunk.js → 1086-2682e6d3f7.chunk.js} +1 -1
  7. package/dist/scripts/{112-9f396668ac.chunk.js → 112-24c19e2cde.chunk.js} +1 -1
  8. package/dist/scripts/{1216-7c3584c6ee.chunk.js → 1216-f3e3f911fa.chunk.js} +1 -1
  9. package/dist/scripts/{1269-99208bcecc.chunk.js → 1269-a34a1de36d.chunk.js} +1 -1
  10. package/dist/scripts/{1409-a161f8245a.chunk.js → 1409-93a72ff5bf.chunk.js} +1 -1
  11. package/dist/scripts/{1601-879d0665e7.chunk.js → 1601-6eb85a794d.chunk.js} +2 -2
  12. package/dist/scripts/{1703-63ad0b3ce1.chunk.js → 1703-a320de79f3.chunk.js} +1 -1
  13. package/dist/scripts/{1832-882ab67791.chunk.js → 1832-23fead57c5.chunk.js} +1 -1
  14. package/dist/scripts/{1876-42c5fe7a33.chunk.js → 1876-2b788843ab.chunk.js} +1 -1
  15. package/dist/scripts/{2417-a7f6defb26.chunk.js → 2417-1ee31c4281.chunk.js} +1 -1
  16. package/dist/scripts/{243-e21d40c982.chunk.js → 243-2012c53e96.chunk.js} +1 -1
  17. package/dist/scripts/{2482-b7ad002b09.chunk.js → 2482-955e4b3615.chunk.js} +1 -1
  18. package/dist/scripts/{259-671fc59e31.chunk.js → 259-7d1d480f6e.chunk.js} +1 -1
  19. package/dist/scripts/{2601-c4230f3cfd.chunk.js → 2601-d973ed65dc.chunk.js} +1 -1
  20. package/dist/scripts/{2644-4815c4b278.chunk.js → 2644-485d14740b.chunk.js} +1 -1
  21. package/dist/scripts/{2692-92122fb3d2.chunk.js → 2692-438539ccbe.chunk.js} +1 -1
  22. package/dist/scripts/{2888-2c0a5591ef.chunk.js → 2888-55edc16fd6.chunk.js} +1 -1
  23. package/dist/scripts/{299-9ab1d59d5c.chunk.js → 299-eeaac48864.chunk.js} +1 -1
  24. package/dist/scripts/{2998-234d4e79d4.chunk.js → 2998-24191bc8ab.chunk.js} +1 -1
  25. package/dist/scripts/{3400-48eceba386.chunk.js → 3400-95d7a3a0d6.chunk.js} +1 -1
  26. package/dist/scripts/{343-6d71f27a71.chunk.js → 343-bb56a70dd3.chunk.js} +1 -1
  27. package/dist/scripts/{35-3e0fe9666f.chunk.js → 35-7bfbab50e6.chunk.js} +1 -1
  28. package/dist/scripts/{3551-5456900410.chunk.js → 3551-5513258594.chunk.js} +1 -1
  29. package/dist/scripts/{376-7e5af8f053.chunk.js → 376-98c734f74f.chunk.js} +1 -1
  30. package/dist/scripts/{3763-64dc73b8c4.chunk.js → 3763-c5de5a36a1.chunk.js} +1 -1
  31. package/dist/scripts/{3778-34a6c70ced.chunk.js → 3778-f76c45aa72.chunk.js} +1 -1
  32. package/dist/scripts/{4201-228a2b8d76.chunk.js → 4201-6311ac5cac.chunk.js} +1 -1
  33. package/dist/scripts/{4245-cacf193d02.chunk.js → 4245-6e9e71cc7d.chunk.js} +1 -1
  34. package/dist/scripts/{4591-c798b9d80a.chunk.js → 4591-9e342f97bc.chunk.js} +1 -1
  35. package/dist/scripts/{4860-f770422186.chunk.js → 4860-955b4bf901.chunk.js} +1 -1
  36. package/dist/scripts/{5046-432362ee4e.chunk.js → 5046-19d7090284.chunk.js} +1 -1
  37. package/dist/scripts/{514-20644e0a4e.chunk.js → 514-927a43219d.chunk.js} +1 -1
  38. package/dist/scripts/{5185-48169130b8.chunk.js → 5185-e8c8993e07.chunk.js} +2 -2
  39. package/dist/scripts/{5286-f967ae444b.chunk.js → 5286-293188ce69.chunk.js} +1 -1
  40. package/dist/scripts/{5412-e675c4ef4e.chunk.js → 5412-95152820bb.chunk.js} +1 -1
  41. package/dist/scripts/{5418-dce1baab7a.chunk.js → 5418-f31f79952c.chunk.js} +1 -1
  42. package/dist/scripts/{5424-50632a5025.chunk.js → 5424-f53a7d8068.chunk.js} +1 -1
  43. package/dist/scripts/{5707-bc3c7af0c0.chunk.js → 5707-41f283fd98.chunk.js} +1 -1
  44. package/dist/scripts/{5747-d8ee53162d.chunk.js → 5747-0ab2cc3678.chunk.js} +1 -1
  45. package/dist/scripts/{6093-7fe8c7fcce.chunk.js → 6093-7e5c1af050.chunk.js} +1 -1
  46. package/dist/scripts/{61-ad1f6f5f42.chunk.js → 61-c14d2f90fd.chunk.js} +2 -2
  47. package/dist/scripts/{6352-bbe31ba815.chunk.js → 6352-aaaf02499b.chunk.js} +1 -1
  48. package/dist/scripts/{6732-35dcc7a725.chunk.js → 6732-5bf9ec4e56.chunk.js} +1 -1
  49. package/dist/scripts/{6774-5af5e4b0b8.chunk.js → 6774-3cad51b5b7.chunk.js} +1 -1
  50. package/dist/scripts/{7002-8564980898.chunk.js → 7002-3686f9dcfb.chunk.js} +1 -1
  51. package/dist/scripts/{7053-79f4e3e275.chunk.js → 7053-38535c04ca.chunk.js} +1 -1
  52. package/dist/scripts/{7071-a0cb4a599c.chunk.js → 7071-5a543a7eec.chunk.js} +1 -1
  53. package/dist/scripts/{708-0c400838a2.chunk.js → 708-9aa6428a97.chunk.js} +1 -1
  54. package/dist/scripts/{7295-aa334844a4.chunk.js → 7295-594d2f2def.chunk.js} +1 -1
  55. package/dist/scripts/{7376-34e0848b6f.chunk.js → 7376-baac126511.chunk.js} +1 -1
  56. package/dist/scripts/{7408-64e0468c04.chunk.js → 7408-35779961a6.chunk.js} +1 -1
  57. package/dist/scripts/{8213-0a91276442.chunk.js → 8213-ef3077d565.chunk.js} +1 -1
  58. package/dist/scripts/{8362-9fa19d6e1e.chunk.js → 8362-e82bef3e07.chunk.js} +1 -1
  59. package/dist/scripts/{8726-b262387b6e.chunk.js → 8726-edded1064e.chunk.js} +1 -1
  60. package/dist/scripts/{8727-2a68455289.chunk.js → 8727-2e314f9301.chunk.js} +1 -1
  61. package/dist/scripts/{8762-63efbfcfa7.chunk.js → 8762-4ee15995c8.chunk.js} +1 -1
  62. package/dist/scripts/{8906-5592870e17.chunk.js → 8906-3bde92a78d.chunk.js} +1 -1
  63. package/dist/scripts/{9357-2b5993c1b5.chunk.js → 9357-c5c5984ec8.chunk.js} +1 -1
  64. package/dist/scripts/{9383-7d95ed4d9b.chunk.js → 9383-51cb65e6f7.chunk.js} +1 -1
  65. package/dist/scripts/{9695-694c2d9147.chunk.js → 9695-a04e508364.chunk.js} +1 -1
  66. package/dist/scripts/{9927-8b7265b00a.chunk.js → 9927-a667775ac4.chunk.js} +1 -1
  67. package/dist/scripts/bundle-5de4908d0e.min.js +2 -0
  68. package/package.json +72 -72
  69. package/typings/libs/CVEvents.d.ts +12 -12
  70. package/typings/libs/CVLanguages.d.ts +24 -24
  71. package/typings/libs/Environment.d.ts +10 -10
  72. package/typings/libs/LazyLoad.d.ts +29 -29
  73. package/typings/libs/LazyLoad.ts +27 -27
  74. package/typings/libs/backbone.validation.d.ts +99 -99
  75. package/typings/libs/cloneDeep.d.ts +4 -4
  76. package/typings/libs/cookiesjs.d.ts +24 -24
  77. package/typings/libs/draft-convert.d.ts +3 -3
  78. package/typings/libs/google-api.d.ts +4 -4
  79. package/typings/libs/microsoft-teams.d.ts +2 -2
  80. package/typings/libs/trackjs.d.ts +2 -2
  81. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  82. package/typings/utils/imports.d.ts +9 -9
  83. package/dist/css/101-library-editor-5af6f4e937.chunk.css +0 -2
  84. package/dist/css/2696-library-editor-4a7e07523b.chunk.css +0 -77
  85. package/dist/css/3746-library-editor-d4c68a200b.chunk.css +0 -1
  86. package/dist/css/3778-library-editor-e7f11db43a.chunk.css +0 -12
  87. package/dist/css/456-library-editor-e9cac790d6.chunk.css +0 -17
  88. package/dist/css/5524-library-editor-36f0a42508.chunk.css +0 -11
  89. package/dist/css/5891-library-editor-d4c68a200b.chunk.css +0 -1
  90. package/dist/css/61-library-editor-af56e745db.chunk.css +0 -47
  91. package/dist/css/6963-library-editor-d4c68a200b.chunk.css +0 -1
  92. package/dist/css/8614-library-editor-5368f03ffe.chunk.css +0 -16
  93. package/dist/css/library-editor-app-899160fa5a.css +0 -62
  94. package/dist/scripts/101-dd5f891259.chunk.js +0 -1
  95. package/dist/scripts/2696-c93bc6ba82.chunk.js +0 -2
  96. package/dist/scripts/3087-31652fd164.chunk.js +0 -1
  97. package/dist/scripts/3746-092214a0a0.chunk.js +0 -1
  98. package/dist/scripts/3778-60cf0a97d4.chunk.js +0 -1
  99. package/dist/scripts/456-a1c2432237.chunk.js +0 -1
  100. package/dist/scripts/5524-3ecfd1675f.chunk.js +0 -1
  101. package/dist/scripts/5850-5f1fb603a9.chunk.js +0 -1
  102. package/dist/scripts/5891-b72da0591f.chunk.js +0 -1
  103. package/dist/scripts/61-1aa3a1edbc.chunk.js +0 -2
  104. package/dist/scripts/61-ad1f6f5f42.chunk.js.LICENSE.txt +0 -1
  105. package/dist/scripts/6721-b31c7b97e8.chunk.js +0 -1
  106. package/dist/scripts/6963-386c2153af.chunk.js +0 -1
  107. package/dist/scripts/8542-727d658bd8.chunk.js +0 -1
  108. package/dist/scripts/8614-d2aae15910.chunk.js +0 -2
  109. package/dist/scripts/8614-d2aae15910.chunk.js.LICENSE.txt +0 -1
  110. package/dist/scripts/bundle-59de85bc08.min.js +0 -2
  111. package/dist/scripts/bundle-59de85bc08.min.js.LICENSE.txt +0 -1
  112. package/dist/scripts/bundle-6c5a619a82.min.js +0 -2
  113. package/dist/scripts/bundle-6c5a619a82.min.js.LICENSE.txt +0 -1
  114. /package/dist/scripts/{1601-879d0665e7.chunk.js.LICENSE.txt → 1601-6eb85a794d.chunk.js.LICENSE.txt} +0 -0
  115. /package/dist/scripts/{2696-c93bc6ba82.chunk.js.LICENSE.txt → 5185-e8c8993e07.chunk.js.LICENSE.txt} +0 -0
  116. /package/dist/scripts/{5185-48169130b8.chunk.js.LICENSE.txt → 61-c14d2f90fd.chunk.js.LICENSE.txt} +0 -0
  117. /package/dist/scripts/{61-1aa3a1edbc.chunk.js.LICENSE.txt → bundle-5de4908d0e.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4860],{44860:function(t,e,n){"use strict";n.r(e),n.d(e,{NotFoundView:function(){return m}});var r=n(31647),o=n(57098),i=n(74030),u=n.n(i),l={image:"dLQU1"};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(t,e,n){return e=y(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.G7)},74030:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" />\r\n<h2 class="h6 mt-3">'+l((n.lang||e&&e.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\r\n<p class="pb-5">'+(null!=(i=(n.lang||e&&e.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=e?e.options:e)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4860],{44860:function(t,e,n){"use strict";n.r(e),n.d(e,{NotFoundView:function(){return m}});var r=n(31647),o=n(57098),i=n(74030),u=n.n(i),l={image:"dLQU1"};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(t,e,n){return e=y(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return u()}},{key:"appLinks",get:function(){return{".applink-home":{application:o.OV.DEFAULT,action:o.eX.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center rounded"}},{key:"viewOptions",value:function(){return{styles:l,linkClasses:"applink-home info-link",imageUrl:o.Wn.Errors.NOT_FOUND}}}])&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.G7)},74030:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing;return'<img class="img-fluid '+l(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" src="'+l(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" />\n<h2 class="h6 mt-3">'+l((n.lang||e&&e.lang||c).call(a,"pageNotFound",{name:"lang",hash:{},data:o}))+'</h4>\n<p class="pb-5">'+(null!=(i=(n.lang||e&&e.lang||c).call(a,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=e?e.options:e)?i.linkClasses:i},data:o}))?i:"")+"</p>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5046],{59054:function(t,e,n){"use strict";var o;n.d(e,{f:function(){return o}}),function(t){t.Share="share",t.MasterObject="masterobject"}(o||(o={}))},47022:function(t,e,n){"use strict";n.d(e,{Q:function(){return m}});var o=n(39479),r=n(31647),i=n(52076),a=n(70065),s=n(99186),c=n.n(s);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(r=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous,!0);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,e){var n=this.options.appLink.params;return e?(null==n?void 0:n.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==n?void 0:n.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,l(l({},this.options.cursorParamName,t),"previous",n.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=i.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),n={id:this.options.collectionId,page:t};i.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},4113:function(t,e,n){"use strict";n.r(e),n.d(e,{RestrictedVideoListView:function(){return T}});var o=n(21679),r=n(57857),i=n(31647),a=n(59054),s=n(25692),c=n(56210),u=n(47022),l=n(98985),p=n(63791),f=n(70763),d=n(57085),y=n(58688),h=n(80867),b=n(57098),m=n(29457),v=n(64404),g=n(48404),w=n(19226),k=n(264),O=n(95061),C=n(12827),E=n.n(C);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function P(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,j(o.key),o)}}function j(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}function V(t,e,n){return e=L(e),function(t,e){if(e&&("object"==S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],L(t).constructor):e.apply(t,n))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}var T=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=o.u.getInstance(b.Or.RestrictedVideo,this),this.videoDataService=o.u.getInstance(b.Or.Video,this),this.playerDataService=o.u.getInstance(b.Or.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":invalidate"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return E()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:c.H,selector:".info-tooltip",title:r.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:m.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:m.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(t){return new v.n({id:t.get("id")})}))))}},{key:"createViewKey",value:function(t,e){this.playerDataService.createViewKey(t,a.f.MasterObject,e)}},{key:"renderVideoList",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new h.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:b.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.U.VideoAccess,config:this.config,emptyStateType:m.ub.VideoAccess,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!t,showEmptyState:!0,libraries:this.libraries,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey}))}},{key:"renderPagination",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new u.Q({cursors:t,appLink:{application:b.OV.VIDEO_ACCESS,action:b.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new d.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:r.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:r.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(t){var e=this;this.videoDataService.getVideo(t,(function(n){var o=e.videosWithMetadata.get(t);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:w.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){return{supportUrl:!k.g.hasLite&&l.o.getOnlineArticle(s.s.VideoAccess),svg:p.Nj.getSvg(p.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&P(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.G7)},57085:function(t,e,n){"use strict";n.d(e,{n:function(){return _}});var o=n(31647),r=n(57098),i=n(22557),a=n(86363),s=n.n(a);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return u(this,e),d(this,e,arguments)}return b(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="breadcrumb-item";return this.model.get("active")&&(t+=" active"),t}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(t){function e(){return u(this,e),d(this,e,arguments)}return b(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(o.Q.$W),w=n(93933),k=n.n(w);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function C(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,E(o.key),o)}}function E(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function S(t,e,n){return e=j(e),function(t,e){if(e&&("object"==O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,n||[],j(t).constructor):e.apply(t,n))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}var _=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(e,t),n=e,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var t=this;this.breadcrumbCollection=new o.Q.FE([]);var e,n=this.options.folder;do{if(!n)break;if(e=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!e),{at:0}),!e)break;n=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:r.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(e){return t.breadcrumbCollection.add(e)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(t,e){var n=e?r.eX.LibraryEditor.FOLDER:r.eX.LibraryEditor.LIBRARY;return{name:t.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:n,args:[t.id]}}}},{key:"onRender",value:function(){var t=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",t)}}])&&C(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},80867:function(t,e,n){"use strict";n.d(e,{Y:function(){return j}});var o=n(31647),r=n(52076),i=n(70065),a=n(50028),s=n(80758),c=n(10101),u=n(58688),l=n(37071),p=n(57098),f=n(29457),d=n(26457),y=n(30606),h=n.n(y);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function k(t,e,n){return e=C(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){return m(this,e),k(this,e,[t])}return E(e,t),g(e,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return l.j}},{key:"childViewOptions",get:function(){var t=this;return function(e,n){return{componentType:e.get("status")===a.X.Processing?u.U.ProcessingVideo:t.options.videoItemComponentType,videoWithMetadata:t.options.videosWithMetadata&&t.options.videosWithMetadata.get(e.get("id")),allowBulk:t.options.allowBulk,collectionIdentifier:t.options.collectionIdentifier,application:t.options.application,pendingItems:t.options.pendingItems,config:t.options.config,sourceMetadataOptions:t.options.sourceMetadataOptions,collectionViewChannel:t.options.collectionViewChannel,customerHasLocalCache:t.options.customerHasLocalCache,customerHasExchange:t.options.customerHasExchange,customerHasCustomLibrary:t.options.customerHasCustomLibrary,analyticsOptions:t.options.analyticsOptions,videoCollectionSource:t.options.videoCollectionSource,currentUser:t.options.currentUser,playerApiUrl:t.options.playerApiUrl,createViewKey:t.options.createViewKey,isLastItem:!t.options.hasCursors&&n===t.collection.length-1,libraries:t.options.libraries,products:t.options.products}}}}])}(o.Q.$W),j=function(t){function e(t){return m(this,e),k(this,e,[t])}return E(e,t),g(e,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return h()}},{key:"defaults",get:function(){return{videoItemComponentType:u.U.Base,allowBulk:!1,emptyState:f.ub.Default,videoCollectionSource:d.x_.Folder}}},{key:"behaviors",get:function(){var t=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&t.push({behaviorClass:s.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),t}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var t=new P({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LZ.VideoListItem,entity:i.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",t)}}])}(o.Q.wA)},99186:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},12827:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return' <a class="d-inline-block ms-2 svg-container sm info-tooltip" href="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="ps-3 pt-3 pe-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-2">\r\n <h1 class="h3 d-inline-block m-0">'+c((n.lang||e&&e.lang||s).call(a,"heading",{name:"lang",hash:{},data:r}))+" </h1>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\r\n <div class="breadcrumbs-region"></div>\r\n <p class="pb-3 pt-2 m-0">\r\n '+c((n.lang||e&&e.lang||s).call(a,"description",{name:"lang",hash:{},data:r}))+'\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})},86363:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<span class="fw-bolder">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},3:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"<a>"+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.isActive:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?i:""},useData:!0})},93933:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},30606:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5046],{59054:function(t,e,n){"use strict";var o;n.d(e,{f:function(){return o}}),function(t){t.Share="share",t.MasterObject="masterobject"}(o||(o={}))},47022:function(t,e,n){"use strict";n.d(e,{Q:function(){return m}});var o=n(39479),r=n(31647),i=n(52076),a=n(70065),s=n(99186),c=n.n(s);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function l(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,(r=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var e=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous,!0);+e<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,t[".previous-applink"]=n}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t,e){var n=this.options.appLink.params;return e?(null==n?void 0:n.previous)?{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:{cursor:null==n?void 0:n.previous}}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args}:{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,l(l({},this.options.cursorParamName,t),"previous",n.cursor))}}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var e=i.k.mergeOptions(this.options.analyticsOptions,{location:a.LZ.Pagination,entity:a.py.Pagination,actionType:a.Vw.Navigate}),n={id:this.options.collectionId,page:t};i.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},4113:function(t,e,n){"use strict";n.r(e),n.d(e,{RestrictedVideoListView:function(){return T}});var o=n(21679),r=n(57857),i=n(31647),a=n(59054),s=n(25692),c=n(56210),u=n(47022),l=n(98985),p=n(63791),f=n(70763),d=n(57085),y=n(58688),h=n(80867),b=n(57098),m=n(29457),v=n(64404),g=n(48404),w=n(19226),k=n(264),O=n(95061),C=n(12827),E=n.n(C);function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function P(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,j(o.key),o)}}function j(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}function V(t,e,n){return e=L(e),function(t,e){if(e&&("object"==S(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],L(t).constructor):e.apply(t,n))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}var T=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(e,t),n=e,(i=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=o.u.getInstance(b.Or.RestrictedVideo,this),this.videoDataService=o.u.getInstance(b.Or.Video,this),this.playerDataService=o.u.getInstance(b.Or.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(b.Vk.RESTRICTED_VIDEO,"".concat(b.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":invalidate"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return E()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:c.H,selector:".info-tooltip",title:r.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:m.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:m.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(t){return new v.n({id:t.get("id")})}))))}},{key:"createViewKey",value:function(t,e){this.playerDataService.createViewKey(t,a.f.MasterObject,e)}},{key:"renderVideoList",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new h.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:b.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.U.VideoAccess,config:this.config,emptyStateType:m.ub.VideoAccess,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!t,showEmptyState:!0,libraries:this.libraries,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey}))}},{key:"renderPagination",value:function(){var t=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new u.Q({cursors:t,appLink:{application:b.OV.VIDEO_ACCESS,action:b.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new d.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:r.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.HOME}},{name:r.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(t){var e=this;this.videoDataService.getVideo(t,(function(n){var o=e.videosWithMetadata.get(t);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:w.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){return{supportUrl:!k.g.hasLite&&l.o.getOnlineArticle(s.s.VideoAccess),svg:p.Nj.getSvg(p.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&P(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.G7)},57085:function(t,e,n){"use strict";n.d(e,{n:function(){return _}});var o=n(31647),r=n(57098),i=n(22557),a=n(86363),s=n.n(a);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function p(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function f(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function d(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function b(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return u(this,e),d(this,e,arguments)}return b(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="breadcrumb-item";return this.model.get("active")&&(t+=" active"),t}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(t){function e(){return u(this,e),d(this,e,arguments)}return b(e,t),p(e,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return v}}])}(o.Q.$W),w=n(93933),k=n.n(w);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function C(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,E(o.key),o)}}function E(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function S(t,e,n){return e=j(e),function(t,e){if(e&&("object"==O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,n||[],j(t).constructor):e.apply(t,n))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}var _=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(e,t),n=e,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var t=this;this.breadcrumbCollection=new o.Q.FE([]);var e,n=this.options.folder;do{if(!n)break;if(e=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!e),{at:0}),!e)break;n=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:r.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(e){return t.breadcrumbCollection.add(e)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(t,e){var n=e?r.eX.LibraryEditor.FOLDER:r.eX.LibraryEditor.LIBRARY;return{name:t.get("name"),appLink:{application:r.OV.LIBRARY_EDITOR,action:n,args:[t.id]}}}},{key:"onRender",value:function(){var t=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",t)}}])&&C(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},80867:function(t,e,n){"use strict";n.d(e,{Y:function(){return j}});var o=n(31647),r=n(52076),i=n(70065),a=n(50028),s=n(80758),c=n(10101),u=n(58688),l=n(37071),p=n(57098),f=n(29457),d=n(26457),y=n(30606),h=n.n(y);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function g(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function k(t,e,n){return e=C(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],C(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){return m(this,e),k(this,e,[t])}return E(e,t),g(e,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return l.j}},{key:"childViewOptions",get:function(){var t=this;return function(e,n){return{componentType:e.get("status")===a.X.Processing?u.U.ProcessingVideo:t.options.videoItemComponentType,videoWithMetadata:t.options.videosWithMetadata&&t.options.videosWithMetadata.get(e.get("id")),allowBulk:t.options.allowBulk,collectionIdentifier:t.options.collectionIdentifier,application:t.options.application,pendingItems:t.options.pendingItems,config:t.options.config,sourceMetadataOptions:t.options.sourceMetadataOptions,collectionViewChannel:t.options.collectionViewChannel,customerHasLocalCache:t.options.customerHasLocalCache,customerHasExchange:t.options.customerHasExchange,customerHasCustomLibrary:t.options.customerHasCustomLibrary,analyticsOptions:t.options.analyticsOptions,videoCollectionSource:t.options.videoCollectionSource,currentUser:t.options.currentUser,playerApiUrl:t.options.playerApiUrl,createViewKey:t.options.createViewKey,isLastItem:!t.options.hasCursors&&n===t.collection.length-1,libraries:t.options.libraries,products:t.options.products}}}}])}(o.Q.$W),j=function(t){function e(t){return m(this,e),k(this,e,[t])}return E(e,t),g(e,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return h()}},{key:"defaults",get:function(){return{videoItemComponentType:u.U.Base,allowBulk:!1,emptyState:f.ub.Default,videoCollectionSource:d.x_.Folder}}},{key:"behaviors",get:function(){var t=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&t.push({behaviorClass:s.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),t}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var t=new P({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LZ.VideoListItem,entity:i.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",t)}}])}(o.Q.wA)},99186:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"previous",{name:"lang",hash:{},data:r}))+'</a>\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">'+c((n.lang||e&&e.lang||s).call(a,"next",{name:"lang",hash:{},data:r}))+"</a>\n</div>"},useData:!0})},12827:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return' <a class="d-inline-block ms-2 svg-container sm info-tooltip" href="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.supportUrl:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="ps-3 pt-3 pe-3">\n <div class="border-bottom">\n <div class="d-flex align-items-center pb-2">\n <h1 class="h3 d-inline-block m-0">'+c((n.lang||e&&e.lang||s).call(a,"heading",{name:"lang",hash:{},data:r}))+" </h1>\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.supportUrl:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' </div>\n <div class="breadcrumbs-region"></div>\n <p class="pb-3 pt-2 m-0">\n '+c((n.lang||e&&e.lang||s).call(a,"description",{name:"lang",hash:{},data:r}))+'\n </p>\n </div> \n</div>\n<div class="video-list-region"></div>\n<div class="pagination-region"></div>\n<div class="empty-region"></div>'},useData:!0})},86363:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,'<span class="fw-bolder">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\n"},3:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,"<a>"+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.isActive:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?i:""},useData:!0})},93933:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},30606:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="videos-region"></div>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[514],{42905:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var o=n(57857),l=n(68003),i="shared.shared-utils",r={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:o.T.getPhrase(i,"small"),width:"640",height:"360"},{label:o.T.getPhrase(i,"medium"),width:"1014",height:"576"},{label:o.T.getPhrase(i,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:o.T.getPhrase(i,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,o="100%"===n.width,l=o?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),i='src="'.concat(t,'"'),r="<iframe ".concat(l," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(i,"></iframe>");return o?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(r,"</div>"):r},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,o=e.shareId,i=e.autoplay,r=e.consumerKey,a=t;a||(a=l._.safeUrlConcat(n,"share/embed/".concat(o)));var s={};return i&&(s.a=!0),r&&(s.consumerKey=r),l._.urlBuilder(a,s)}}},40514:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return U}});var o=n(61050),l=n(39479),i=n(21679),r=n(57857),a=n(99249),s=n(68003),u=n(31647),c=n(42905),h=n(10101),p=n(57098),d=n(33800),f=n(29457),b=n(48404),m=n(93569),y=n(721),v=n.n(y),g=n(98723),k=n.n(g),w=n(151),S=n.n(w),x={container:"UHvy5",shareInput:"YMGwr",footerText:"D4m9G"};function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,T(o.key),o)}}function O(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=E(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function I(e,t,n){return t=M(t),function(e,t){if(t&&("object"==E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,z()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function V(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)}var _=function(e){function t(e){return C(this,t),I(this,t,[e])}return V(t,e),O(t,[{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return S()}},{key:"viewOptions",value:function(){return{footerTextClass:x.footerText,privacyDescription:this.options.privacyDescription}}}])}(u.Q.wA),U=function(e){function t(e){var n;return C(this,t),(n=I(this,t,[e])).clipboards=[],n}return V(t,e),O(t,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=i.u.getInstance(d.O.Video,this)}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"sharedLe.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(x.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:c.i.getEmbedResolutions()}}},{key:"behaviors",get:function(){return[{behaviorClass:h.Yw,title:r.T.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:h.Bp,bindViewModel:!0}]}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return l.map(e.options.videoSizes,(function(e,t){return{label:e.label,value:t}}))}}},"[name=public]":"public"}}},{key:"setUpViewModel",value:function(){this.viewModel=a.r.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?f.F2.Public:f.F2.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,(function(n){n.set("privacyId",t),e.onSharedResourceSync(n)}))}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===f.F2.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,l.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=l.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=s._.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var o=v()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(r.T.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case f.F2[f.F2.Private]:return r.T.getPhrase(this.lang,"private");case f.F2[f.F2.SchoolOnly]:return r.T.getPhrase(this.lang,"schoolOnly");case f.F2[f.F2.Public]:return r.T.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each((function(t,n){e.clipboards.push(new o(n))}))}},{key:"destroyClipboards",value:function(){l.each(this.clipboards,(function(e){return e.destroy()})),this.clipboards=[]}},{key:"requiredResources",get:function(){return{config:b.p.config}}},{key:"getCannotPublicShareText",value:function(){return this.video?m.M2.isExchangeVideo(this.video)?r.T.getPhrase(this.lang,"cannotShareExchange"):r.T.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new _({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:x},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:m.Kp.getSpinner({size:m.Ey.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&m.BK.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}}])}(u.Q.G7)},721:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,l){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,l){e.propertyIsEnumerable;var i,r=e.lambda,a=e.escapeExpression;return'width="'+a(r(null!=(i=null!=t?t.videoSize:t)?i.width:i,t))+'" height="'+a(r(null!=(i=null!=t?t.videoSize:t)?i.height:i,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){e.propertyIsEnumerable;var i,r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(i=n.if.call(a,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?i:"")+' src="'+c(typeof(r=null!=(r=n.baseUrl||(null!=t?t.baseUrl:t))?r:s)===u?r.call(a,{name:"baseUrl",hash:{},data:l}):r)+"?shareCode="+c(typeof(r=null!=(r=n.shortCode||(null!=t?t.shortCode:t))?r:s)===u?r.call(a,{name:"shortCode",hash:{},data:l}):r)+"&a="+c(typeof(r=null!=(r=n.autoplay||(null!=t?t.autoplay:t))?r:s)===u?r.call(a,{name:"autoplay",hash:{},data:l}):r)+'"></iframe>'},useData:!0})},98723:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,o,l){e.propertyIsEnumerable;var i,r,a=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'\r\n<div class="'+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.container:i,t))+'">\r\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||c).call(u,"shareLink",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="input-group mb-2">\r\n <input type="text" autocomplete="off" class="form-control '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.shareInput:i,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(r=null!=(r=n.shortUrl||(null!=t?t.shortUrl:t))?r:c)?r.call(u,{name:"shortUrl",hash:{},data:l}):r)+'>\r\n <button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||c).call(u,"copy",{name:"lang",hash:{},data:l}))+"</button>\r\n </div>\r\n\r\n"+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"unless",hash:{},fn:e.program(4,l,0),inverse:e.noop,data:l}))?i:"")+"\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"if",hash:{},fn:e.program(6,l,0),inverse:e.noop,data:l}))?i:"")+"</div>\r\n"},4:function(e,t,n,o,l){return e.propertyIsEnumerable,' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:l}))+"</a></small>\r\n"},6:function(e,t,n,o,l){e.propertyIsEnumerable;var i,r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <hr class="mt-4">\r\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||a).call(r,"linkOptions",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="form-check mb-2">\r\n <input type="checkbox" autocomplete="off" class="form-check-input public-checkbox" id="public-checkbox" name="public" '+(null!=(i=n.unless.call(r,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(7,l,0),inverse:e.noop,data:l}))?i:"")+'>\r\n <label class="form-check-label" for="public-checkbox">'+s((n.lang||t&&t.lang||a).call(r,"publicCheckbox",{name:"lang",hash:{},data:l}))+"</label>\r\n "+(null!=(i=n.unless.call(r,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(9,l,0),inverse:e.noop,data:l}))?i:"")+'\r\n </div>\r\n <hr class="mt-4">\r\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||a).call(r,"embed",{name:"lang",hash:{},data:l}))+'</label>\r\n <div class="input-group mb-2 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textareaContainer:i,t))+'">\r\n <textarea type="text" class="form-control rounded w-100 h-100 z-0" id="embed-input" spellcheck="false" rows="6" readonly>'+s(u(null!=(i=null!=t?t.options:t)?i.embedString:i,t))+'</textarea>\r\n <div class="position-absolute bottom-0 end-0"><button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||a).call(r,"copy",{name:"lang",hash:{},data:l}))+"</button></div>\r\n </div>\r\n"+(null!=(i=n.if.call(r,null!=(i=null!=t?t.options:t)?i.videoSizes:i,{name:"if",hash:{},fn:e.program(11,l,0),inverse:e.noop,data:l}))?i:"")+' <div class="form-check d-inline-block">\r\n <input type="checkbox" autocomplete="off" class="form-check-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\r\n <label class="form-check-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||a).call(r,"autoplay",{name:"lang",hash:{},data:l}))+"</label>\r\n </div>\r\n"},7:function(e,t,n,o,l){return"disabled"},9:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,'<div class="text-secondary">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.cannotPublicShareText:i,t))+"</div>"},11:function(e,t,n,o,l){return e.propertyIsEnumerable,' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:l}))+'</label>\r\n <select class="form-select me-4 size-select w-50 d-inline-block" id="#size-select" name="selectedVideoSize"></select>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLoader:i,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?i:""},useData:!0})},151: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,l){e.propertyIsEnumerable;var i,r=e.lambda,a=e.escapeExpression;return'<small class="text-start w-100 mb-0 '+a(r(null!=(i=null!=t?t.options:t)?i.footerTextClass:i,t))+'">'+a(r(null!=(i=null!=t?t.options:t)?i.privacyDescription:i,t))+"</small>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[514],{42905:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var o=n(57857),l=n(68003),i="shared.shared-utils",a={getEmbedResolutions:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[{label:o.T.getPhrase(i,"small"),width:"640",height:"360"},{label:o.T.getPhrase(i,"medium"),width:"1014",height:"576"},{label:o.T.getPhrase(i,"large"),width:"1280",height:"720"}];return e&&t.unshift({label:o.T.getPhrase(i,"responsive"),width:"100%",height:"100%"}),t},getEmbedString:function(e){var t=e.url,n=e.size,o="100%"===n.width,l=o?'style="position:absolute; top:0; left:0; width:100%; height:100%;"':'width="'.concat(n.width,'" height="').concat(n.height,'"'),i='src="'.concat(t,'"'),a="<iframe ".concat(l," ").concat('frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay"'," ").concat(i,"></iframe>");return o?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(a,"</div>"):a},buildEmbedUrl:function(e){var t=e.embedUrl,n=e.host,o=e.shareId,i=e.autoplay,a=e.consumerKey,r=t;r||(r=l._.safeUrlConcat(n,"share/embed/".concat(o)));var s={};return i&&(s.a=!0),a&&(s.consumerKey=a),l._.urlBuilder(r,s)}}},40514:function(e,t,n){"use strict";n.r(t),n.d(t,{ShareView:function(){return U}});var o=n(61050),l=n(39479),i=n(21679),a=n(57857),r=n(99249),s=n(68003),u=n(31647),c=n(42905),h=n(10101),p=n(57098),d=n(33800),f=n(29457),b=n(48404),m=n(93569),y=n(721),v=n.n(y),g=n(98723),k=n.n(g),w=n(151),S=n.n(w),x={container:"UHvy5",shareInput:"YMGwr",footerText:"D4m9G"};function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,T(o.key),o)}}function O(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function T(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=E(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function I(e,t,n){return t=M(t),function(e,t){if(t&&("object"==E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,z()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z=function(){return!!e})()}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function V(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)}var _=function(e){function t(e){return C(this,t),I(this,t,[e])}return V(t,e),O(t,[{key:"name",get:function(){return"ShareFooterComponent"}},{key:"className",get:function(){return"modal-footer bg-light rounded-bottom"}},{key:"template",get:function(){return S()}},{key:"viewOptions",value:function(){return{footerTextClass:x.footerText,privacyDescription:this.options.privacyDescription}}}])}(u.Q.wA),U=function(e){function t(e){var n;return C(this,t),(n=I(this,t,[e])).clipboards=[],n}return V(t,e),O(t,[{key:"initialize",value:function(){this.setUpViewModel(),this.bindListeners(),this.videoDataService=i.u.getInstance(d.O.Video,this)}},{key:"name",get:function(){return"ShareView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"sharedLe.share"}},{key:"props",get:function(){return["videoId"]}},{key:"elements",get:function(){return{copy:".copy",embedToggle:".embed-toggle"}}},{key:"events",value:function(){return{"click @ui.copy":"onClickCopy","click @ui.embedToggle":"onClickEmbed"}}},{key:"regions",value:function(){return{container:{el:".".concat(x.container),replaceElement:!1},footer:{el:".modal-footer",replaceElement:!0}}}},{key:"defaults",get:function(){return{autoplay:!1,selectedVideoSize:0,videoSizes:c.i.getEmbedResolutions()}}},{key:"behaviors",get:function(){return[{behaviorClass:h.Yw,title:a.T.getPhrase(this.lang,"share"),hideCloseButton:!0},{behaviorClass:h.Bp,bindViewModel:!0}]}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:autoplay change:selectedVideoSize",this.render),this.listenTo(this.viewModel,"change:public",this.onTogglePublic),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"bindings",get:function(){var e=this;return{"[name=autoplay]":"autoplay","[name=selectedVideoSize]":{observe:"selectedVideoSize",selectOptions:{collection:function(){return l.map(e.options.videoSizes,(function(e,t){return{label:e.label,value:t}}))}}},"[name=public]":"public"}}},{key:"setUpViewModel",value:function(){this.viewModel=r.r.get("share:".concat(this.options.videoId),this.options)}},{key:"onTogglePublic",value:function(){var e=this,t=this.viewModel.get("public")?f.F2.Public:f.F2.SchoolOnly;this.videoDataService.getSharedResource(this.videoId,t,(function(n){n.set("privacyId",t),e.onSharedResourceSync(n)}))}},{key:"updateViewModel",value:function(){this.viewModel.set("public",this.model.get("privacyId")===f.F2.Public,{silent:!0})}},{key:"onSharedResourceSync",value:function(e){this.model=e,this.updateViewModel(),this.render()}},{key:"fetchData",value:function(){this.video=this.videoDataService.getVideo(this.videoId),this.model||this.videoDataService.getSharedResource(this.videoId,null,l.bind(this.onSharedResourceSync,this))}},{key:"buildEmbedString",value:function(){var e=l.extend({},this.model.toJSON(),this.viewModel.toJSON()),t=this.options.videoSizes[e.selectedVideoSize],n="100%"===t.height&&"100%"===t.width;e.videoSize=t,e.baseUrl=s._.safeUrlConcat(this.config.get("onlineUrl"),"/share/embed"),e.isResponsive=n;var o=v()(e);return n?'<div style="padding:56.25% 0 0 0; position:relative;">'.concat(o,"</div>"):o}},{key:"onClickEmbed",value:function(){this.viewModel.set("showEmbed",!0),this.render()}},{key:"onClickCopy",value:function(e){this.$(e.currentTarget).text(a.T.getPhrase(this.lang,"copied"))}},{key:"getPrivacyDescription",value:function(e){switch(e){case f.F2[f.F2.Private]:return a.T.getPhrase(this.lang,"private");case f.F2[f.F2.SchoolOnly]:return a.T.getPhrase(this.lang,"schoolOnly");case f.F2[f.F2.Public]:return a.T.getPhrase(this.lang,"public");default:return""}}},{key:"initClipboards",value:function(){var e=this;this.destroyClipboards(),this.getUI("copy").each((function(t,n){e.clipboards.push(new o(n))}))}},{key:"destroyClipboards",value:function(){l.each(this.clipboards,(function(e){return e.destroy()})),this.clipboards=[]}},{key:"requiredResources",get:function(){return{config:b.p.config}}},{key:"getCannotPublicShareText",value:function(){return this.video?m.M2.isExchangeVideo(this.video)?a.T.getPhrase(this.lang,"cannotShareExchange"):a.T.getPhrase(this.lang,"cannotShareClickView"):""}},{key:"onBeforeDestroy",value:function(){this.destroyClipboards()}},{key:"renderFooter",value:function(){var e=this.model&&this.getPrivacyDescription(this.model.get("privacy"));this.showChildView("footer",new _({privacyDescription:e}))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:x},this.viewModel.toJSON()),{embedString:this.model&&this.buildEmbedString(),spinnerEl:m.Kp.getSpinner({size:m.Ey.Large,extraClasses:"mx-auto"}),showLoader:!this.model||!this.video,canPublicShare:this.video&&m.BK.canPublicShare(this.video),cannotPublicShareText:this.getCannotPublicShareText()})}},{key:"onBeforeRender",value:function(){this.fetchData()}},{key:"onRender",value:function(){this.initClipboards(),this.renderFooter()}}])}(u.Q.G7)},721:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,l){return'style="position:absolute; top:0; left:0; width:100%; height:100%;"'},3:function(e,t,n,o,l){e.propertyIsEnumerable;var i,a=e.lambda,r=e.escapeExpression;return'width="'+r(a(null!=(i=null!=t?t.videoSize:t)?i.width:i,t))+'" height="'+r(a(null!=(i=null!=t?t.videoSize:t)?i.height:i,t))+'"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){e.propertyIsEnumerable;var i,a,r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return'<iframe frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen '+(null!=(i=n.if.call(r,null!=t?t.isResponsive:t,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?i:"")+' src="'+c(typeof(a=null!=(a=n.baseUrl||(null!=t?t.baseUrl:t))?a:s)===u?a.call(r,{name:"baseUrl",hash:{},data:l}):a)+"?shareCode="+c(typeof(a=null!=(a=n.shortCode||(null!=t?t.shortCode:t))?a:s)===u?a.call(r,{name:"shortCode",hash:{},data:l}):a)+"&a="+c(typeof(a=null!=(a=n.autoplay||(null!=t?t.autoplay:t))?a:s)===u?a.call(r,{name:"autoplay",hash:{},data:l}):a)+'"></iframe>'},useData:!0})},98723:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,o,l){e.propertyIsEnumerable;var i,a,r=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'\n<div class="'+s(r(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.container:i,t))+'">\n <label for="share-input" class="mb-0 h6">'+s((n.lang||t&&t.lang||c).call(u,"shareLink",{name:"lang",hash:{},data:l}))+'</label>\n <div class="input-group mb-2">\n <input type="text" autocomplete="off" class="form-control '+s(r(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.shareInput:i,t))+'" id="share-input" spellcheck="false" readonly="true" value='+s("function"==typeof(a=null!=(a=n.shortUrl||(null!=t?t.shortUrl:t))?a:c)?a.call(u,{name:"shortUrl",hash:{},data:l}):a)+'>\n <button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#share-input">'+s((n.lang||t&&t.lang||c).call(u,"copy",{name:"lang",hash:{},data:l}))+"</button>\n </div>\n\n"+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"unless",hash:{},fn:e.program(4,l,0),inverse:e.noop,data:l}))?i:"")+"\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.showEmbed:i,{name:"if",hash:{},fn:e.program(6,l,0),inverse:e.noop,data:l}))?i:"")+"</div>\n"},4:function(e,t,n,o,l){return e.propertyIsEnumerable,' <small class="embed-toggle"><a class="text-info cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showOptions",{name:"lang",hash:{},data:l}))+"</a></small>\n"},6:function(e,t,n,o,l){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},r=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return' <hr class="mt-4">\n <label for="link-options-input" class="mb-2 h6">'+s((n.lang||t&&t.lang||r).call(a,"linkOptions",{name:"lang",hash:{},data:l}))+'</label>\n <div class="form-check mb-2">\n <input type="checkbox" autocomplete="off" class="form-check-input public-checkbox" id="public-checkbox" name="public" '+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(7,l,0),inverse:e.noop,data:l}))?i:"")+'>\n <label class="form-check-label" for="public-checkbox">'+s((n.lang||t&&t.lang||r).call(a,"publicCheckbox",{name:"lang",hash:{},data:l}))+"</label>\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.canPublicShare:i,{name:"unless",hash:{},fn:e.program(9,l,0),inverse:e.noop,data:l}))?i:"")+'\n </div>\n <hr class="mt-4">\n <label for="embed-input" class="mb-0 mt-2 h6">'+s((n.lang||t&&t.lang||r).call(a,"embed",{name:"lang",hash:{},data:l}))+'</label>\n <div class="input-group mb-2 '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textareaContainer:i,t))+'">\n <textarea type="text" class="form-control rounded w-100 h-100 z-0" id="embed-input" spellcheck="false" rows="6" readonly>'+s(u(null!=(i=null!=t?t.options:t)?i.embedString:i,t))+'</textarea>\n <div class="position-absolute bottom-0 end-0"><button class="btn btn-outline-dark copy" type="button" data-clipboard-target="#embed-input">'+s((n.lang||t&&t.lang||r).call(a,"copy",{name:"lang",hash:{},data:l}))+"</button></div>\n </div>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.videoSizes:i,{name:"if",hash:{},fn:e.program(11,l,0),inverse:e.noop,data:l}))?i:"")+' <div class="form-check d-inline-block">\n <input type="checkbox" autocomplete="off" class="form-check-input autoplay-checkbox" id="autoplay-checkbox" name="autoplay">\n <label class="form-check-label" for="autoplay-checkbox">'+s((n.lang||t&&t.lang||r).call(a,"autoplay",{name:"lang",hash:{},data:l}))+"</label>\n </div>\n"},7:function(e,t,n,o,l){return"disabled"},9:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,'<div class="text-secondary">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.cannotPublicShareText:i,t))+"</div>"},11:function(e,t,n,o,l){return e.propertyIsEnumerable,' <label for="size-select" class="d-block pt-2 h6">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"playerSize",{name:"lang",hash:{},data:l}))+'</label>\n <select class="form-select me-4 size-select w-50 d-inline-block" id="#size-select" name="selectedVideoSize"></select>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,l){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showLoader:i,{name:"if",hash:{},fn:e.program(1,l,0),inverse:e.program(3,l,0),data:l}))?i:""},useData:!0})},151: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,l){e.propertyIsEnumerable;var i,a=e.lambda,r=e.escapeExpression;return'<small class="text-start w-100 mb-0 '+r(a(null!=(i=null!=t?t.options:t)?i.footerTextClass:i,t))+'">'+r(a(null!=(i=null!=t?t.options:t)?i.privacyDescription:i,t))+"</small>"},useData:!0})}}]);