@clickview/library-editor 1.2.2 → 1.3.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{library-editor-app-73ef35d93e.css → library-editor-app-30cd08bfae.css} +2 -2
- package/dist/en.json +1 -1
- package/dist/scripts/0-d20750cdec.chunk.js +1 -0
- package/dist/scripts/1-28a327acf3.chunk.js +1 -0
- package/dist/scripts/10-b830a40f72.chunk.js +1 -0
- package/dist/scripts/{11-efbe8b672b.chunk.js → 11-02eba260f6.chunk.js} +1 -1
- package/dist/scripts/12-8791a92594.chunk.js +1 -0
- package/dist/scripts/13-665738fbb1.chunk.js +1 -0
- package/dist/scripts/14-1e2cd6ac41.chunk.js +1 -0
- package/dist/scripts/15-0dc89981e2.chunk.js +1 -0
- package/dist/scripts/16-4a1c634dda.chunk.js +1 -0
- package/dist/scripts/17-3c94d08d78.chunk.js +1 -0
- package/dist/scripts/{18-4c5983938e.chunk.js → 18-3fadb1f394.chunk.js} +1 -1
- package/dist/scripts/19-8e572002ab.chunk.js +1 -0
- package/dist/scripts/{2-d90f461b10.chunk.js → 2-7a78d29f44.chunk.js} +1 -1
- package/dist/scripts/22-d2e056e746.chunk.js +1 -0
- package/dist/scripts/23-f8a294ec40.chunk.js +1 -0
- package/dist/scripts/24-2bcd00effe.chunk.js +1 -0
- package/dist/scripts/25-c4aaeab127.chunk.js +1 -0
- package/dist/scripts/26-9a7dd55620.chunk.js +1 -0
- package/dist/scripts/27-7e018cd6b5.chunk.js +1 -0
- package/dist/scripts/28-b1c31de615.chunk.js +1 -0
- package/dist/scripts/29-2beecb7b1b.chunk.js +1 -0
- package/dist/scripts/3-eb941619ce.chunk.js +1 -0
- package/dist/scripts/30-e056eceff1.chunk.js +1 -0
- package/dist/scripts/31-f5fb9024bf.chunk.js +1 -0
- package/dist/scripts/32-3a253b3136.chunk.js +1 -0
- package/dist/scripts/33-48b0479da2.chunk.js +1 -0
- package/dist/scripts/34-3d5a50c31b.chunk.js +1 -0
- package/dist/scripts/35-0d7358dba8.chunk.js +1 -0
- package/dist/scripts/36-d6d7b848e2.chunk.js +1 -0
- package/dist/scripts/37-d39100a6e1.chunk.js +1 -0
- package/dist/scripts/38-35d9648dc7.chunk.js +1 -0
- package/dist/scripts/39-06dd548dc5.chunk.js +1 -0
- package/dist/scripts/4-2a82a84056.chunk.js +1 -0
- package/dist/scripts/40-792c2cdf70.chunk.js +1 -0
- package/dist/scripts/41-b943713472.chunk.js +1 -0
- package/dist/scripts/42-f49212bb91.chunk.js +1 -0
- package/dist/scripts/43-fb162a1122.chunk.js +1 -0
- package/dist/scripts/44-b3b4565828.chunk.js +1 -0
- package/dist/scripts/45-fed967dc8d.chunk.js +1 -0
- package/dist/scripts/46-372fa93c13.chunk.js +1 -0
- package/dist/scripts/47-3af23cc886.chunk.js +1 -0
- package/dist/scripts/48-f0403bcb83.chunk.js +1 -0
- package/dist/scripts/49-13b2893542.chunk.js +1 -0
- package/dist/scripts/5-0fa94bdf69.chunk.js +1 -0
- package/dist/scripts/50-f2d6010fd8.chunk.js +1 -0
- package/dist/scripts/51-ec94176992.chunk.js +1 -0
- package/dist/scripts/52-f541d887ed.chunk.js +1 -0
- package/dist/scripts/53-5de0b434bf.chunk.js +1 -0
- package/dist/scripts/54-e397b03055.chunk.js +1 -0
- package/dist/scripts/55-a5aa7796a9.chunk.js +1 -0
- package/dist/scripts/56-de18389621.chunk.js +1 -0
- package/dist/scripts/57-ea4f07ceff.chunk.js +1 -0
- package/dist/scripts/58-be172a6ca4.chunk.js +1 -0
- package/dist/scripts/59-4bf5baafed.chunk.js +1 -0
- package/dist/scripts/6-c0744fc9f6.chunk.js +1 -0
- package/dist/scripts/{60-02ac1d0885.chunk.js → 60-03e44d916c.chunk.js} +1 -1
- package/dist/scripts/{61-11806e7f0f.chunk.js → 61-f5f8c3a7f9.chunk.js} +1 -1
- package/dist/scripts/62-78089903fa.chunk.js +1 -0
- package/dist/scripts/63-ea5265b3ba.chunk.js +1 -0
- package/dist/scripts/64-1460024bea.chunk.js +1 -0
- package/dist/scripts/65-81c6f0a1d0.chunk.js +1 -0
- package/dist/scripts/66-469cc41ce6.chunk.js +1 -0
- package/dist/scripts/67-d83860b6f9.chunk.js +1 -0
- package/dist/scripts/68-bf1905261e.chunk.js +1 -0
- package/dist/scripts/69-01456dee21.chunk.js +1 -0
- package/dist/scripts/7-8ae226ffea.chunk.js +1 -0
- package/dist/scripts/70-e79d42e859.chunk.js +1 -0
- package/dist/scripts/71-8bee00418c.chunk.js +1 -0
- package/dist/scripts/72-c9c79df587.chunk.js +1 -0
- package/dist/scripts/73-172b46004e.chunk.js +1 -0
- package/dist/scripts/74-3a572e4113.chunk.js +1 -0
- package/dist/scripts/8-320ab9271f.chunk.js +1 -0
- package/dist/scripts/9-eb320e3ae9.chunk.js +1 -0
- package/dist/scripts/bundle-d80b4b3ce7.min.js +10 -0
- package/dist/scripts/polyfills-afb66ec8cc.min.js +1 -0
- package/package.json +2 -2
- package/dist/scripts/0-3146283f04.chunk.js +0 -1
- package/dist/scripts/1-8f308c9df2.chunk.js +0 -1
- package/dist/scripts/10-1f8e4712fb.chunk.js +0 -1
- package/dist/scripts/12-9a649bd1e8.chunk.js +0 -1
- package/dist/scripts/13-d003ff9e41.chunk.js +0 -1
- package/dist/scripts/14-79273eff4c.chunk.js +0 -1
- package/dist/scripts/15-1a0756e067.chunk.js +0 -1
- package/dist/scripts/16-bbf0f01fe8.chunk.js +0 -1
- package/dist/scripts/17-3056f1e460.chunk.js +0 -1
- package/dist/scripts/19-f6bd3a3d49.chunk.js +0 -1
- package/dist/scripts/22-f0e56683c3.chunk.js +0 -1
- package/dist/scripts/23-cdce4174d1.chunk.js +0 -1
- package/dist/scripts/24-afd2aa2bfc.chunk.js +0 -1
- package/dist/scripts/25-b8aeb90fea.chunk.js +0 -1
- package/dist/scripts/26-08a7f60500.chunk.js +0 -1
- package/dist/scripts/27-4fdfe99ba0.chunk.js +0 -1
- package/dist/scripts/28-bb3ced1465.chunk.js +0 -1
- package/dist/scripts/29-ef11dca9b5.chunk.js +0 -1
- package/dist/scripts/3-f02b82314e.chunk.js +0 -1
- package/dist/scripts/30-41819d54db.chunk.js +0 -1
- package/dist/scripts/31-adedea4916.chunk.js +0 -1
- package/dist/scripts/32-92b6dc1186.chunk.js +0 -1
- package/dist/scripts/33-dda4dfbdee.chunk.js +0 -1
- package/dist/scripts/34-0f61f7fc7d.chunk.js +0 -1
- package/dist/scripts/35-df3c6c90f7.chunk.js +0 -1
- package/dist/scripts/36-97a61b13fd.chunk.js +0 -1
- package/dist/scripts/37-5f0b4c4b24.chunk.js +0 -1
- package/dist/scripts/38-1806441e62.chunk.js +0 -1
- package/dist/scripts/39-cb06876d63.chunk.js +0 -1
- package/dist/scripts/4-3556f5cd86.chunk.js +0 -1
- package/dist/scripts/40-dedc900f03.chunk.js +0 -1
- package/dist/scripts/41-2a772649ef.chunk.js +0 -1
- package/dist/scripts/42-edd884c6e1.chunk.js +0 -1
- package/dist/scripts/43-7cb12bb043.chunk.js +0 -1
- package/dist/scripts/44-6e38e6c3da.chunk.js +0 -1
- package/dist/scripts/45-7696788c78.chunk.js +0 -1
- package/dist/scripts/46-6fae0cec47.chunk.js +0 -1
- package/dist/scripts/47-c5e053926b.chunk.js +0 -1
- package/dist/scripts/48-c62f428014.chunk.js +0 -1
- package/dist/scripts/49-0221ac925c.chunk.js +0 -1
- package/dist/scripts/5-f2fad668b9.chunk.js +0 -1
- package/dist/scripts/50-6c9cd76347.chunk.js +0 -1
- package/dist/scripts/51-4c4cb2a786.chunk.js +0 -1
- package/dist/scripts/52-1a2a4d664f.chunk.js +0 -1
- package/dist/scripts/53-4420fdb2ff.chunk.js +0 -1
- package/dist/scripts/54-7ad2a43bae.chunk.js +0 -1
- package/dist/scripts/55-6bdc1394e8.chunk.js +0 -1
- package/dist/scripts/56-0e7f151d8f.chunk.js +0 -1
- package/dist/scripts/57-e02ec7e3aa.chunk.js +0 -1
- package/dist/scripts/58-23f2f08ffa.chunk.js +0 -1
- package/dist/scripts/59-73f62422ee.chunk.js +0 -1
- package/dist/scripts/6-41fbd1d098.chunk.js +0 -1
- package/dist/scripts/62-36cd4edbe1.chunk.js +0 -1
- package/dist/scripts/63-221a784003.chunk.js +0 -1
- package/dist/scripts/64-de212ef1ff.chunk.js +0 -1
- package/dist/scripts/65-2a3fe2cf9f.chunk.js +0 -1
- package/dist/scripts/66-3d86df4f03.chunk.js +0 -1
- package/dist/scripts/67-4044e5776b.chunk.js +0 -1
- package/dist/scripts/68-d9ac81db0f.chunk.js +0 -1
- package/dist/scripts/69-4523125605.chunk.js +0 -1
- package/dist/scripts/7-7d08599cb1.chunk.js +0 -1
- package/dist/scripts/70-cac4a9fb87.chunk.js +0 -1
- package/dist/scripts/71-59ded4dd7b.chunk.js +0 -1
- package/dist/scripts/72-8329bfea82.chunk.js +0 -1
- package/dist/scripts/73-dfe0e3c96a.chunk.js +0 -1
- package/dist/scripts/74-1aee6ab328.chunk.js +0 -1
- package/dist/scripts/8-b20f6d3c66.chunk.js +0 -1
- package/dist/scripts/9-4baf495c07.chunk.js +0 -1
- package/dist/scripts/bundle-aba0b4f36c.min.js +0 -10
- package/dist/scripts/polyfills-c68217e80d.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[44],{1045:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(265);function i(t){return(i="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})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(l,t);var e,n,r,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"defaults",value:function(){return t={},e=o.c.Disabled,n=!0,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}}])&&u(e.prototype,n),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.a.Model)},1101:function(t,e,n){"use strict";var r=n(204),o=n(1),i=n(202),a=n(0),u=n(146),c=n(307);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})(t)}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(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)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(s,t);var e,n,r,i=b(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(c.g,{queryString:n})||c.e;this.dateOption=new u.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(l(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(i.a);function v(t){return(v="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})(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=P(t);if(e){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function P(t){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(s,t);var e,n,r,i=O(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(c.g,{queryString:n})||c.e;this.dateOption=new u.b(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&m(e.prototype,n),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(i.a);function I(t){return(I="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})(t)}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function R(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===I(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(i,t);var e,n,r,o=R(i);function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return k(this,i),o.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:e,cursor:n})}return e=i,n&&_(e.prototype,n),r&&_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.a);n.d(e,"d",(function(){return r.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return S})),n.d(e,"a",(function(){return T}))},1351:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,u=t.escapeExpression,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+u(a(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+u(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'" />\r\n</div>\r\n<p class="m-0">\r\n '+(null!=(i=(n.lang||e&&e.lang||s).call(c,"body1",{name:"lang",hash:{},data:o}))?i:"")+"\r\n "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.libraryText:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")+"\r\n "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.subject:i,{name:"if",hash:{},fn:t.program(6,o,0),inverse:t.noop,data:o}))?i:"")+"\r\n "+(null!=(i=(n.lang||e&&e.lang||s).call(c,"body4",{name:"lang",hash:{email:null!=(i=null!=e?e.options:e)?i.email:i,to:null!=(i=null!=e?e.options:e)?i.to:i,from:null!=(i=null!=e?e.options:e)?i.from:i},data:o}))?i:"")+"\r\n</p>\r\n"},4:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(i=null!=e?e.options:e)?i.libraryText:i},data:o}))?i:""},6:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(i=null!=e?e.options:e)?i.subject:i},data:o}))?i:""},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.dataFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},1352:function(t,e,n){t.exports={image:"_2AV9T"}},1455:function(t,e,n){"use strict";n.r(e),n.d(e,"GeneratePastReleasesPdfView",(function(){return R}));var r=n(1),o=n(29),i=n(2),a=n(5),u=n(3),c=n(4),s=n(42),l=n(305),f=n(1101),p=n(145),y=n(0),b=n(1045),d=n(12),h=n(307),g=n(265),v=n(146),m=n(1351),j=n.n(m),O=n(1352),w=n.n(O);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(t,e){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&I(t,e)}(O,t);var e,n,i,m=_(O);function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.libraryDataService=a.a.getInstance(y.g.Library,this),this.contentUpdatesDataService=a.a.getInstance(y.g.ContentUpdates,this),this.exportDataService=a.a.getInstance(y.g.Export,this)}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return j.a}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.e,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:u.a.getPhrase(this.lang,"generateBtn"),onClick:function(){return t.onClickGeneratePdf()}}}]}},{key:"onLibrariesSync",value:function(t){var e=this;this.libraries=t,this.selectedLibraryIds=h.f.getLibraryIds(this.options.librariesQueryString,t),this.subjectCollectionIdentifier=new f.c({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return e.onSubjectsSync(t,n)}))}},{key:"onSubjectsSync",value:function(t,e){var n=h.f.getSubjectOptions(e).map((function(t){return new v.b(t)})),o={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new f.b(o),void this.spinnerModel.set(g.c.Disabled,!1);var i=this.getSubjectIds();this.videoCollectionIdentifier=new f.b(r.extend(o,{subjects:n.filter((function(t){return!!r.intersection(i,t.get("subjectIds")).length}))})),this.spinnerModel.set(g.c.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var t=this;if(this.libraries.length!==this.selectedLibraryIds.length){var e=this.libraries.filter((function(e){return r.contains(t.selectedLibraryIds,e.id.toString())})),n=e.map((function(t){return"<strong>".concat(d.w.escapeExpression(t.get("name")),"</strong>")}));return e.length<=2?n.join(" ".concat(u.a.getPhrase(this.lang,"and")," ")):r.first(n,n.length-1).join(", ")+" ".concat(u.a.getPhrase(this.lang,"and")," ").concat(r.last(n))}}},{key:"getFormattedDate",value:function(t){if(t)return o(t).format("DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var t=this.videoCollectionIdentifier.subjects.map((function(t){return t.get("name")}));return 1===t.length?t[0]:t.slice(0,-1).join(", ")+" ".concat(u.a.getPhrase(this.lang,"and")," ")+t.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(g.c.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var t=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(e){e&&e.length?t.generatePdf(e.map((function(t){return t.id.toString()}))):t.triggerMethod("hide")}))}},{key:"generatePdf",value:function(t){var e=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():u.a.getPhrase(this.lang,"latestReleases"),r=o(this.videoCollectionIdentifier.dateOption.get("from")).format("MMMM YYYY"),i=o(this.videoCollectionIdentifier.dateOption.get("to")).format("MMMM YYYY"),a=r===i?u.a.getPhrase(this.lang,"fromContentUpdate",{from:r}):u.a.getPhrase(this.lang,"fromToContentUpdates",{from:r,to:i});this.exportDataService.generateCustomListPdf(n,a,t,this.currentUser,(function(){return e.triggerMethod("hide")})),this.logAction(t.length)}},{key:"logAction",value:function(t){var e={location:c.LocationContext.Popup,actionType:c.UserAction.Create,entity:c.EntityType.PDF,workflowPhase:c.WorkflowPhase.Complete},n={videoCount:t,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(t){return t.get("name")})).join(","):""};s.a.logUserAction(n,e)}},{key:"requiredResources",get:function(){return{currentUser:p.b.currentUser}}},{key:"onBeforeRender",value:function(){var t=this;this.libraries||this.libraryDataService.getHostedLibraries((function(e){return t.onLibrariesSync(e)}))}},{key:"viewOptions",value:function(){return{styles:w.a,dataFetched:!!this.libraries,spinnerEl:d.r.getSpinner({size:d.s.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:y.l.Shared.GeneratePdf,libraryText:this.getLibrariesText(),subject:this.getFormattedSubjects(),from:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("from")),to:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("to"))}}}])&&S(e.prototype,n),i&&S(e,i),Object.defineProperty(e,"prototype",{writable:!1}),O}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[45],{1072:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(37),i=n(3);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})(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,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,t);var e,n,o,a=u(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,e}return e=l,(n=[{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"</p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.a)},1109:function(t,e,n){"use strict";n(311);var r=n(2),o=n(37),i=n(3);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})(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,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,t);var e,n,o,a=u(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title"))}return e=l,(n=[{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.a);function g(t){return(g="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})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(c,t);var e,n,o,a=h(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return e=c,(n=[{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.a);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){if(e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(c,t);var e,n,o,a=T(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return e=c,(n=[{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&w(e.prototype,n),o&&w(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.a);n(1072);n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return y}))},1382:function(t,e,n){t.exports={progress:"bJ21G",remaining:"_1T3fH",info:"_3m6CX",migrationContainer:"MVm9U",migrationSyncContainer:"KH7rf",syncServer:"_2-0ob",syncVideo:"_2Rh0f",migrationSyncAnimation:"oXD93",syncCloud:"_3B9BP"}},1383:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="p-3 pl-5 pr-5">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.migrationSyncContainer:i,e))+' pt-2 pb-4">\r\n <img src="/images/server.png" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.syncServer:i,e))+'">\r\n <img src="/images/video.png" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.syncVideo:i,e))+'">\r\n <img src="/images/cloud.png" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.syncCloud:i,e))+'">\r\n </div>\r\n\r\n <h4 class="adding-text">'+c(a(null!=(i=null!=e?e.options:e)?i.addingText:i,e))+'</h4>\r\n <div class="progress-bar-region"></div>\r\n</div>\r\n\r\n<span class="d-block text-center pb-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.info:i,e))+'">'+c((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"keepWindowOpen",{name:"lang",hash:{},data:o}))+"</span>"},useData:!0})},1466:function(t,e,n){"use strict";n.r(e),n.d(e,"MigrationProgressView",(function(){return O}));var r=n(2),o=n(30),i=n(5),a=n(1382),c=n.n(a),s=n(1383),u=n.n(s),l=n(1109),f=n(1123),p=n(0),y=n(3);function g(t){return(g="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})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(g,t);var e,n,a,s=h(g);function g(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),s.call(this,t)}return e=g,(n=[{key:"initialize",value:function(){this.viewModel=o.a.get("migration:progress",{percentage:0}),this.migrationVideoDataService=i.a.getInstance(p.g.MigrationVideo,this),this.bindMigrationDataListeners()}},{key:"name",get:function(){return"MigrationProgressView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationProgress"}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"".concat(c.a.migrationContainer," p-3 bg-white ").concat(c.a.progress)}},{key:"elements",get:function(){return{addingText:".adding-text"}}},{key:"regions",value:function(){return{progressBar:{replaceElement:!0,el:".progress-bar-region"}}}},{key:"bindMigrationDataListeners",value:function(){this.listenTo(p.e.MIGRATION,"".concat(p.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(p.e.MIGRATION,"".concat(p.f.FINALISATION,":").concat(this.options.finalisationTaskId,":error"),this.onError)}},{key:"poll",value:function(){var t=this;this.migrationVideoDataService.getFinalisationTask(this.options.finalisationTaskId,(function(e){if(t.finalisationTask=e,t.setPercentage(),t.viewModel.get("percentage")>=100){i.a.getInstance(p.g.Library).clearLibrariesCache(),i.a.releaseInstance(p.g.Library),t.migrationVideoDataService.clearCacheAndGetCustomerMetadata();var n={};return t.options.firstTime&&(n.initialMigration=!0),void r.a.AppLinkHelper.trigger({application:p.b.MIGRATION_WIZARD,action:p.a.MigrationWizard.VIDEOS_ADDED,args:[t.options.finalisationTaskId],params:n})}setTimeout((function(){return t.poll()}),5e3),t.isRendered()?(t.renderProgressBar(),t.getUI("addingText").text(t.getAddingText())):t.render()}))}},{key:"setPercentage",value:function(){if(this.finalisationTask){var t=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess"),e=this.finalisationTask.get("numberOfVideos");this.finalisationTask.get("videosWithWarning")&&0===e?this.viewModel.set("percentage",100):this.viewModel.set("percentage",Math.round(t/e*100))}}},{key:"onError",value:function(){r.a.ErrorHelper.throw(new l.c)}},{key:"renderProgressBar",value:function(){this.showChildView("progressBar",new f.f({model:this.viewModel,backgroundClass:"bg-info"}))}},{key:"onBeforeRender",value:function(){return this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!!this.finalisationTask&&!!this.customerMetadata}},{key:"getAddingText",value:function(){var t=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess");return y.a.getPhrase(this.lang,"addingVideos",{numberMigrated:t||1,numberSelected:this.finalisationTask.get("numberOfVideos")+this.finalisationTask.get("videosWithWarning")})}},{key:"viewOptions",value:function(){if(this.finalisationTask){var t=this.finalisationTask.get("successfullyProcessed")+this.finalisationTask.get("failedToProcess");return{styles:c.a,numberMigrated:t||1,numberSelected:this.finalisationTask.get("numberOfVideos")+this.finalisationTask.get("videosWithWarning"),addingText:this.getAddingText()}}}},{key:"onRender",value:function(){this.renderProgressBar()}}])&&d(e.prototype,n),a&&d(e,a),Object.defineProperty(e,"prototype",{writable:!1}),g}(r.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[46],{1072:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(2),o=n(37),i=n(3);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="migrationWizard.smartMigrationApiCall",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,e);var t,n,o,a=l(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=e,t}return t=s,(n=[{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"</p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.a)},1109:function(e,t,n){"use strict";n(311);var r=n(2),o=n(37),i=n(3);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p="migrationWizard.backupProgress",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,e);var t,n,o,a=l(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,i.a.getPhrase(p,"title"))}return t=s,(n=[{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.a);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(c,e);var t,n,o,a=g(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return t=c,(n=[{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&b(t.prototype,n),o&&b(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(c,e);var t,n,o,a=k(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return t=c,(n=[{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&P(t.prototype,n),o&&P(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a);n(1072);n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return y}))},1403:function(e,t,n){e.exports={container:"_2SvL3",header:"_2KEEa",footer:"wCMJb"}},1404:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.selected:i},data:o}))+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noVideosSelected",{name:"lang",hash:{},data:o}))+"\r\n"},5:function(e,t,n,r,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="p-3 w-100 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">\r\n <span class="d-inline-block">'+c((n.lang||t&&t.lang||l).call(u,"addVideos",{name:"lang",hash:{},data:o}))+'</span>\r\n</div>\r\n<div class="p-3 w-100">\r\n <h6 class="mt-1 mb-1">\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.selected:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+' </h6>\r\n <div class="selected-video-list-region"></div>\r\n</div>\r\n<div class="py-2 px-3 w-100 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.footer:i,t))+'">\r\n <div class="row">\r\n <div class="col-4">\r\n <button class="applink-back btn btn-secondary '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+c((n.lang||t&&t.lang||l).call(u,"back",{name:"lang",hash:{},data:o}))+'\r\n </button>\r\n </div>\r\n <div class="col-2 offset-6 text-right spinner-region">\r\n <button class="applink-next btn btn-primary '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">\r\n "+c((n.lang||t&&t.lang||l).call(u,"addTitles",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.selected:i},data:o}))+"\r\n </button>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1468:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectedVideosView",(function(){return x}));var r=n(6),o=n(2),i=n(5),a=n(265),c=n(3),u=n(0),l=n(12),s=n(1123),f=n(326),p=n(1133),y=n(1109),d=n(53),b=n(58),h=n(1403),g=n.n(h),m=n(1404),v=n.n(m);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){k(n,e);var t=_(n);function n(){return O(this,n),t.apply(this,arguments)}return S(n,[{key:"name",get:function(){return"SelectedVideoComponentCollection"}},{key:"childView",get:function(){return s.i}}]),n}(o.a.ComponentCollection),x=function(e){k(n,e);var t=_(n);function n(e){return O(this,n),t.call(this,e)}return S(n,[{key:"initialize",value:function(){this.selectedVideoService=i.a.getInstance(u.x.SelectedVideo,this),this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.videoDataService=i.a.getInstance(u.g.Video,this),this.listenTo(this.channelName,"add",this.onClickAdd)}},{key:"name",get:function(){return"SelectedVideosView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.selectedVideos"}},{key:"template",get:function(){return v.a}},{key:"className",get:function(){return"row mt-2 container-region ".concat(g.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{selectedVideoListRegion:{replaceElement:!0,el:".selected-video-list-region"},spinner:".spinner-region"}}},{key:"appLinks",get:function(){return{".applink-back":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.HOME,params:{folder:this.options.previousFolderChord}}}}},{key:"onClickAdd",value:function(){var e=this;this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_VIDEOS,":finalise:error"),this.onError),r.Radio.channel(this.channelName).trigger(a.b.ShowSpinner);var t={};b.a.isInitialMigration(this.customerMetaData)&&(t.initialMigration=!0),this.migrationVideoDataService.updateCustomerMigrationOption(d.c.Smart,(function(){e.migrationVideoDataService.finaliseCustomerVideos(e.groupedVideos,!1,(function(n){e.selectedVideoService.removeAllSelectedVideos(),e.migrationVideoDataService.clearVideoCache(),e.videoDataService.clearVideoCache(),o.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.PROGRESS,args:[n.id],params:t})}))}))}},{key:"onError",value:function(){o.a.ErrorHelper.throw(new y.b)}},{key:"getGroupedVideos",value:function(){var e=this.selectedVideoService.getSelectedVideos();this.groupedVideos=new o.a.Collection(p.a.getSelectedVideosCollection(e).sortBy("folderChord"))}},{key:"renderSelectedVideoList",value:function(){this.showChildView("selectedVideoListRegion",new V({collection:this.groupedVideos}))}},{key:"renderSpinner",value:function(){var e=this.selectedVideoService.getNumberSelected(),t=new a.a({buttonText:c.a.getPhrase(this.lang,"buttonText",{smartCount:e}),extraButtonClass:"btn-primary",model:new o.a.Model({disabled:0===e}),spinnerOptions:{size:l.s.Small,type:l.t.Light,extraClasses:"mx-auto"},saveEvent:"add",channelName:this.channelName});this.showChildView("spinner",t)}},{key:"viewOptions",value:function(){var e=this.selectedVideoService.getNumberSelected();return{styles:g.a,selected:e,multipleSelected:e>1,nextDisabled:0===e}}},{key:"requiredResources",get:function(){return{customerMetaData:f.b.customerMetaData}}},{key:"onRender",value:function(){this.getGroupedVideos(),this.renderSelectedVideoList(),this.renderSpinner()}}]),n}(o.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[47],{1072:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(37),i=n(3);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})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.smartMigrationApiCall",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(s,t);var e,n,o,a=u(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=a.call(this,i.a.getPhrase(p,"title"))).supportUrl=t,e}return e=s,(n=[{key:"name",get:function(){return"SmartMigrationApiCallError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:"<p>".concat(i.a.getPhrase(p,"errorNotice")," \n <strong>").concat(i.a.getPhrase(p,"reloadPage"),"</strong></p>\n <p>").concat(i.a.getPhrase(p,"helpGuide",{supportUrl:this.supportUrl,linkClasses:"text-info"}),"</p>"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a)},1109:function(t,e,n){"use strict";n(311);var r=n(2),o=n(37),i=n(3);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})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="migrationWizard.backupProgress",y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(s,t);var e,n,o,a=u(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,i.a.getPhrase(p,"title"))}return e=s,(n=[{key:"name",get:function(){return"BackupProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a);function g(t){return(g="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})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(l,t);var e,n,o,a=h(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationProgressError","title"))}return e=l,(n=[{key:"name",get:function(){return"MigrationProgressError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationProgressError","heading"),text:i.a.getPhrase("migrationWizard.migrationProgressError","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationProgressError","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.a);function w(t){return(w="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})(t)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(l,t);var e,n,o,a=k(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase("migrationWizard.migrationFinalisation","title"))}return e=l,(n=[{key:"name",get:function(){return"MigrationFinalisationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("migrationWizard.migrationFinalisation","heading"),text:i.a.getPhrase("migrationWizard.migrationFinalisation","body"),buttons:[{text:i.a.getPhrase("migrationWizard.migrationFinalisation","reload"),className:"btn btn-primary",success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&P(e.prototype,n),o&&P(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(o.a);n(1072);n.d(e,"a",(function(){return y})),n.d(e,"c",(function(){return O})),n.d(e,"b",(function(){return R})),n.d(e,"a",(function(){return y}))},1380:function(t,e,n){t.exports={start:"GpK3N",subtitle:"_2tQJA",options:"BxsJX",optionHeader:"_2OS3h",optionText:"_1sNAq",image:"xsCzA",infoMessage:"_3jOln",migrationBanner:"n_A_A",migrationBadge:"plIse",migrationContainer:"_33xeg"}},1381:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lambda;return'<div class="m-4">\r\n <h4>'+c((n.lang||e&&e.lang||l).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n <div class="text-left mt-3">\r\n <p class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subtitle:i,e))+' text-center">'+c((n.lang||e&&e.lang||l).call(a,"question",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <img src="/images/migrate.png" class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' w-50 d-block p-2">\r\n\r\n <p class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.options:i,e))+' mt-3">'+c((n.lang||e&&e.lang||l).call(a,"options",{name:"lang",hash:{},data:o}))+'</p>\r\n\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="smart" value="1" name="options">\r\n <label for="smart" class="mb-1 '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionHeader:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"smartOption",{name:"lang",hash:{},data:o}))+' <span class="badge '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.migrationBadge:i,e))+' ml-2">'+c((n.lang||e&&e.lang||l).call(a,"recommended",{name:"lang",hash:{},data:o}))+'</span></label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionText:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"smartOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="all" value="3" name="options">\r\n <label for="all" class="mb-1 '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionHeader:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"allVideosOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionText:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"allVideosOptionInfo",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n <div class="mb-2">\r\n <input type="radio" class="d-inline-block align-top mt-1" id="fresh" value="2" name="options">\r\n <label for="fresh" class="mb-1 '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionHeader:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"startFreshOption",{name:"lang",hash:{},data:o}))+'</label>\r\n <span class="d-block '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.optionText:i,e))+'">'+c((n.lang||e&&e.lang||l).call(a,"startFreshOptionInfo",{name:"lang",hash:{},data:o}))+"</span>\r\n </div>\r\n <div>\r\n "+(null!=(i=(n.lang||e&&e.lang||l).call(a,"support",{name:"lang",hash:{supportUrl:null!=(i=null!=e?e.options:e)?i.supportUrl:i,className:"info-link"},data:o}))?i:"")+'\r\n </div>\r\n </div>\r\n\r\n <div class="save-region"></div>\r\n <div class="smart-select-waiting-message" style="display: none;">\r\n <p class="mt-2">'+c((n.lang||e&&e.lang||l).call(a,"waiting",{name:"lang",hash:{},data:o}))+'</p>\r\n <p class="mt-2 smart-count"></p>\r\n </div>\r\n</div>\r\n<div class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.migrationBanner:i,e))+" p-3 text-white "+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.infoMessage:i,e))+'">\r\n '+c((n.lang||e&&e.lang||l).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</div>"},useData:!0})},1465:function(t,e,n){"use strict";n.r(e),n.d(e,"StartView",(function(){return T}));var r=n(6),o=n(3),i=n(2),a=n(5),l=n(30),c=n(310),u=n(308),s=n(145),f=n(305),p=n(265),y=n(201),g=n(0),d=n(12),b=n(53),h=n(91),m=n(1109),v=n(1072),O=n(1380),w=n.n(O),P=n(1381),S=n.n(P);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e){return(R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}(k,t);var e,n,O,P=E(k);function k(){return _(this,k),P.apply(this,arguments)}return e=k,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(g.g.MigrationVideo,this),this.selectedVideoService=a.a.getInstance(g.x.SelectedVideo,this),this.initViewModel(),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(g.e.MIGRATION,"".concat(g.f.CUSTOMER_SMART_VIDEOS,":error"),this.onSmartMigrationError)}},{key:"name",get:function(){return"StartView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.start"}},{key:"className",get:function(){return"".concat(w.a.migrationContainer," text-center bg-white ").concat(w.a.start)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return S.a}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"input[name=options]":"option"}}},{key:"behaviors",get:function(){return[{behaviorClass:f.f,bindViewModel:!0}]}},{key:"elements",get:function(){return{continue:".continue",waitingMessage:".smart-select-waiting-message",smartCount:".smart-count"}}},{key:"initViewModel",value:function(){this.viewModel=l.a.get("".concat(this.name,":viewmodel"),{option:b.c.Smart},{ctor:h.e})}},{key:"viewOptions",value:function(){var t,e;return{styles:w.a,supportUrl:c.a.getArticle(null===(t=this.config)||void 0===t?void 0:t.get("supportSiteUrl"),u.a.MigrationOptions,null===(e=this.currentUser)||void 0===e?void 0:e.get("countryCode"))}}},{key:"onClickContinue",value:function(){switch(this.listenTo(g.e.MIGRATION,"".concat(g.f.CUSTOMER_VIDEOS,":finalise:all:error"),this.onFinaliseError),r.Radio.channel(this.channelName).trigger(p.b.ShowSpinner),+this.viewModel.get("option")){case b.c.Smart:this.startSmartMigrationPaginated();break;case b.c.Full:this.startFullMigration();break;case b.c.Scratch:this.startScratchMigration()}}},{key:"startScratchMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(b.c.Scratch,(function(){t.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){i.a.AppLinkHelper.trigger({application:g.b.LIBRARY_EDITOR,action:g.a.LibraryEditor.HOME})}))}))}},{key:"startFullMigration",value:function(){var t=this;this.migrationVideoDataService.updateCustomerMigrationOption(b.c.Full,(function(){t.migrationVideoDataService.finaliseAllVideos((function(e){t.migrationVideoDataService.getCustomerMetadata((function(t){t.set("finalisationTask",e.toJSON()),i.a.AppLinkHelper.trigger({application:g.b.MIGRATION_WIZARD,action:g.a.MigrationWizard.PROGRESS,args:[e.get("id")],params:{initialMigration:!0}})}))}))}))}},{key:"startSmartMigrationPaginated",value:function(){var t=this,e=window.setTimeout((function(){var e=t.getUI("waitingMessage");e&&e.show()}),2e3);this.selectedVideoService.removeAllSelectedVideos(),this.migrationVideoDataService.clearCacheAndgetCustomerSmartSelect((function(e){var n="<strong>".concat(o.a.getPhrase(t.lang,"progress",{count:e}),"</strong>");t.getUI("smartCount").html(n)}),(function(n){window.clearTimeout(e),t.selectedVideoService.addSmartSelectedVideos(n),i.a.AppLinkHelper.trigger({application:g.b.MIGRATION_WIZARD,action:g.a.MigrationWizard.SMART})}))}},{key:"onSmartMigrationError",value:function(){i.a.ErrorHelper.throw(new v.a(this.config.get("supportSiteUrl")))}},{key:"onFinaliseError",value:function(){i.a.ErrorHelper.throw(new m.b)}},{key:"requiredResources",get:function(){return{config:y.b.config,currentUser:s.b.currentUser}}},{key:"renderSaveButton",value:function(){var t=new p.a({saveEvent:"continue",channelName:this.channelName,buttonText:o.a.getPhrase(this.lang,"continue"),extraButtonClass:"btn-lg btn-primary mt-3",spinnerOptions:{size:d.s.Medium,type:d.t.Light,extraClasses:"mx-auto"}});this.showChildView("save",t)}},{key:"onRender",value:function(){this.renderSaveButton()}}])&&j(e.prototype,n),O&&j(e,O),Object.defineProperty(e,"prototype",{writable:!1}),k}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[48],{1045:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(265);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(s,e);var t,n,r,i=l(s);function s(){return a(this,s),i.apply(this,arguments)}return t=s,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.a.Model)},1194:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(3),i=n(53);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="migrationWizard.utils",c={getReportOptions:function(){var e;return a(e={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:o.a.getPhrase(u,"migratedOption")}),a(e,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:o.a.getPhrase(u,"remainingOption")}),a(e,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:o.a.getPhrase(u,"erroredOption")}),a(e,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:o.a.getPhrase(u,"linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return r.each(r.keys(t),(function(o){r.contains(e,t[o].type)&&(n[o]=t[o])})),n},filterSelectedOptions:function(e){return r.filter(r.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return r.filter(r.keys(t),(function(n){return r.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}}},1422:function(e,t,n){e.exports={image:"_2A7jn"}},1423:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return" <li>"+e.escapeExpression(e.lambda(t,t))+"</li>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+u(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n</div>\r\n<p class="m-0">'+u((n.lang||t&&t.lang||l).call(c,"reportInfo1",{name:"lang",hash:{},data:o}))+"</p>\r\n<ul>\r\n"+(null!=(i=n.each.call(c,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</ul>\r\n<p class="mt-2">'+(null!=(i=(n.lang||t&&t.lang||l).call(c,"reportInfo2",{name:"lang",hash:{email:null!=(i=null!=t?t.options:t)?i.email:i},data:o}))?i:"")+"</p>\r\n"},useData:!0})},1471:function(e,t,n){"use strict";n.r(t),n.d(t,"GenerateCsvReportView",(function(){return j}));var r=n(6),o=n(2),i=n(5),a=n(3),u=n(305),c=n(12),l=n(0),s=n(145),f=n(1045),p=n(265),y=n(1194),h=n(1422),b=n.n(h),d=n(1423),m=n.n(d);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(d,e);var t,n,o,h=w(d);function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),h.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(l.g.MigrationVideo,this),this.bindListeners()}},{key:"name",get:function(){return"GenerateCsvReportView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.generateCsvReport"}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return m.a}},{key:"behaviors",get:function(){return[{behaviorClass:u.e,title:a.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,saveEvent:"generate:csv",channelName:this.channelName,buttonText:a.a.getPhrase(this.lang,"generateReport"),extraButtonClass:"btn-primary",spinnerOptions:{size:c.s.Small,type:c.t.Light,extraClasses:"mx-auto"}}}]}},{key:"requiredResources",get:function(){return{currentUser:s.b.currentUser}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"generate:csv",this.onClickGenerateCsv)}},{key:"onClickGenerateCsv",value:function(){var e=this;r.Radio.channel(this.channelName).trigger(p.b.ShowSpinner),this.migrationVideoDataService.generateMigrationReportCsv(this.options.options,(function(){return e.triggerMethod("hide")}))}},{key:"viewOptions",value:function(){return{styles:b.a,reportOptions:y.a.getSelectedOptionsText(this.options.options),imageUrl:l.l.Shared.GenerateCsv,email:this.currentUser.get("email")}}},{key:"onBeforeRender",value:function(){this.spinnerModel.set(p.c.Disabled,!1)}}])&&v(t.prototype,n),o&&v(t,o),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[49],{1045:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),i=n(265);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(u,e);var t,n,r,o=s(u);function u(){return a(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1309:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,c=e.escapeExpression;return'<div class="pb-3 text-center">\r\n <img src="'+c(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+c(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\r\n</div>\r\n<p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"info",{name:"lang",hash:{email:null!=(o=null!=t?t.options:t)?o.email:o,name:null!=t?t.name:t},data:i}))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})},1310:function(e,t,n){e.exports={image:"J9jn_"}},1443:function(e,t,n){"use strict";n.r(t),n.d(t,"GeneratePdfView",(function(){return j}));var r=n(6),i=n(2),o=n(5),a=n(3),c=n(4),l=n(42),s=n(36),u=n(305),f=n(265),p=n(1045),h=n(145),y=n(0),d=n(12),b=n(206),g=n(1309),v=n.n(g),m=n(1310),w=n.n(m);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=S(e);if(t){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(O,e);var t,n,g,m=E(O);function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.collectionIdentifier=this.options.collectionIdentifier,this.libraryDataService=o.a.getInstance(y.g.Library,this),this.videoDataService=o.a.getInstance(y.g.Video,this),this.exportDataService=o.a.getInstance(y.g.Export,this),this.bindListeners()}},{key:"name",get:function(){return"GeneratePdfView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.generatePdf"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:u.e,title:a.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new p.a,saveEvent:"generate:pdf",channelName:this.channelName,buttonText:a.a.getPhrase(this.lang,"generate"),extraButtonClass:"btn-primary",spinnerOptions:{size:d.s.Small,type:d.t.Light,extraClasses:"mx-auto"}}}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"generate:pdf",this.onClickGeneratePdf),this.listenTo(y.e.LIBRARY,"".concat(y.f.FOLDER,":").concat(this.collectionIdentifier.id,":sync"),this.render),this.listenTo(y.e.VIDEO,"".concat(this.collectionIdentifier.toString(),":sync"),this.render),this.listenTo(y.e.EXPORT,"".concat(y.f.GENERATE_COLLECTION_PDF,":").concat(this.collectionIdentifier.id,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"onClickGeneratePdf",value:function(){this.hasDataFetched()&&(r.Radio.channel(this.channelName).trigger(f.b.ShowSpinner),this.exportDataService.generateCollectionPdf(this.library.id,this.collectionIdentifier.id,this.currentUser,this.collectionIdentifier.sort),this.logAction(this.collectionIdentifier.id,this.collectionIdentifier.sort))}},{key:"fetchData",value:function(){var e=this;this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id),this.library||this.libraryDataService.getLibraries((function(t){e.library=d.f.getLibrary(e.collectionIdentifier.id,t),e.render()}))}},{key:"logAction",value:function(e,t){var n={location:c.LocationContext.Popup,actionType:c.UserAction.Create,entity:c.EntityType.PDF,workflowPhase:c.WorkflowPhase.Complete},r={id:e,sort:s.a[t]};l.a.logUserAction(r,n)}},{key:"hasDataFetched",value:function(){return!!this.model&&!!this.videos&&!!this.library}},{key:"requiredResources",get:function(){return{currentUser:h.b.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;return this.fetchData(),!!this.hasDataFetched()&&(this.videos&&!this.videos.length?(window.setTimeout((function(){e.triggerMethod("hide"),i.a.ErrorHelper.throw(new b.a(a.a.getPhrase(e.lang,"errorHeading")))}),y.s.POPUP_FADE_TIMEOUT),!1):(this.hasDataFetched()&&this.spinnerModel.set(f.c.Disabled,!1),!0))}},{key:"viewOptions",value:function(){return{dataFetched:this.hasDataFetched(),spinnerEl:d.r.getSpinner({size:d.s.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:y.l.Shared.GeneratePdf,styles:w.a}}}])&&P(t.prototype,n),g&&P(t,g),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[5],{1061:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var o=n(2),i=n(0),r=n(12),a=n(1223),l=n.n(a),s=n(1224),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})(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,o.key,o)}}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=y(t);if(e){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(s,t);var e,n,o,a=h(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return l.a}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.model.get("categories"))||void 0===t?void 0:t.length)?this.model.get("categories").reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},e="click .".concat(c.a.sourceLabel),n="onClick",e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t=this,e=this.model.get("categories");if(null==e?void 0:e.length){var n={};return e.forEach((function(e){var o=t.options.highlight?r.w.wordsHighlighter(r.w.escapeExpression(e.get("name")),t.model.get("_matchedWords")):r.w.escapeExpression(e.get("name"));n[e.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"onBeforeRender",value:function(){var t;return this.options.showFolder&&(null===(t=this.model.get("categories"))||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:c.a,folderCount:this.model.get("categories").length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&p(e.prototype,n),o&&p(e,o),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.Component)},1076:function(t,e,n){"use strict";var o=n(2),i=n(19),r=n(6),a=n(0),l=n(306),s=n(1142),c=n.n(s),u=n(1143),p=n.n(u);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(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,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(s,t);var e,n,o,i=y(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===l.b.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.c.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===l.b.Disabled?" ".concat(p.a.disabled):""),o="".concat(this.options.behavior===l.b.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==l.b.Link?{}:{"[this]":{application:a.b.SEARCH,action:a.a.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:l.b.Link,orientation:l.c.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===l.b.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==l.b.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==l.b.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&h(e.prototype,n),o&&h(e,o),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.Component);function v(t){return(v="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})(t)}function k(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,o.key,o)}}function O(t,e){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return P}));var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(s,t);var e,n,r,a=w(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.options.behavior!==l.b.Edit||this.options.removeEvent||o.a.ErrorHelper.throw(new i.a("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:l.c.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.c.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&k(e.prototype,n),r&&k(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.a.ComponentCollection)},1114:function(t,e,n){"use strict";var o=n(2),i=n(57),r=n(4),a=n(42),l=n(16),s=n(1),c=n(144),u=n(1227),p=n.n(u),f=n(1202),h=n.n(f);function d(t){return(d="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var o,i,r=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);a=!0);}catch(t){l=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw i}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(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,o.key,o)}}function v(t,e,n){return e&&b(t.prototype,e),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}function O(t,e){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=function(t){k(n,t);var e=w(n);function n(t){return m(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return p.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){if(!this.model.get("href"))return{}}},{key:"className",get:function(){var t="d-inline-block px-1 no-decoration";return this.model.get("isDisabled")&&(t+=" ".concat(h.a.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:c.a,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t=this.model.get("appLink");if(s.isObject(t)){var e=y(t.args,1)[0];a.a.logUserAction({id:e},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:h.a,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}]),n}(o.a.Component),C=function(t){k(n,t);var e=w(n);function n(t){return m(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return P}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}]),n}(o.a.ComponentCollection),j=n(1059),_=n(0),A=n(12),T=n(3),L=n(306),R=n(1228),x=n.n(R);function D(t){return(D="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})(t)}function I(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,o.key,o)}}function V(t,e){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=U(t);if(e){var i=U(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return M(this,n)}}function M(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return F}));var F=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V(t,e)}(u,t);var e,n,s,c=N(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,t)}return e=u,(n=[{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return x.a}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return h.a.actions}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick","click @ui.dropdownToggle":"onClickMore","click @ui.moreActions":"onClickMore"}}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"getActions",value:function(){return new o.a.Collection([{title:T.a.getPhrase(this.lang,"share"),svg:l.a.getSvg(l.b.Share),isDisabled:!A.j.canShareVideo(this.model,this.options.application),tooltipText:A.j.canShareVideo(this.model,this.options.application)?T.a.getPhrase(this.lang,"share"):A.j.getSharePermissionsMessage(this.model,this.options.application),appLink:{application:this.options.application,action:_.a.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Share,eventVersion:r.EventVersion.V2})},{title:T.a.getPhrase(this.lang,"edit"),svg:A.j.canEditVideo(this.model)?l.a.getSvg(l.b.Edit):l.a.getSvg(l.b.EditClickView),tooltipText:this.getEditTooltip(),appLink:{application:_.b.LIBRARY_EDITOR,action:_.a.LibraryEditor.EDIT_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Edit,workflowPhase:r.WorkflowPhase.Start})}])}},{key:"getEditTooltip",value:function(){return A.j.canEditVideo(this.model)?T.a.getPhrase(this.lang,"edit"):A.y.isExchangeVideo(this.model)?T.a.getPhrase(this.lang,"linkedToExchange"):T.a.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===L.d.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];this.options.collectionIdentifier&&t.push({title:T.a.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.a.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Move,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),t.push({title:T.a.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.SetAccess,workflowPhase:r.WorkflowPhase.Start})}),this.options.application===_.b.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:T.a.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.a.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}});var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));if(t.push({title:T.a.getPhrase(this.lang,"openInStaffView"),href:i.a.urlBuilder(e,{loginPrompt:!1}),external:!0,icon:l.a.getSvg(l.b.NewWindow),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.OpenInStaffView})}),this.options.application!==_.b.CONTENT_UPDATES){var n=A.j.canDownloadVideo(this.model);t.push({title:T.a.getPhrase(this.lang,"download"),disabled:!n,classes:n?"":"".concat(h.a.disabled),tooltip:n?null:{title:T.a.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Download}),appLink:n?{application:this.options.application,action:_.a.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&A.j.canAddToExchange(this.model)&&t.push({title:T.a.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.a.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),this.options.customerHasLocalCache&&t.push({title:T.a.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.a.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:T.a.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.a.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Delete,descriptor:r.OperationDescriptor.Single,workflowPhase:r.WorkflowPhase.Start})}),new o.a.Collection(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new j.a({displayOptions:{alignment:"right"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.a})))}},{key:"viewOptions",value:function(){return{styles:h.a,moreSvg:l.a.getSvg(l.b.More)}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions()}}])&&I(e.prototype,n),s&&I(e,s),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.a.Component)},1142:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="close cursor-pointer" aria-hidden="true">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<span class="clamp-1" title="'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)?a.call(l,{name:"name",hash:{},data:i}):a)+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)?a.call(l,{name:"name",hash:{},data:i}):a)+"</span>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},1143:function(t,e,n){t.exports={disabled:"_3Vziu"}},1202:function(t,e,n){t.exports={actions:"_1U-Yf",svgContainer:"_3hYSf",actionName:"_2kY6B",disabled:"_3UjU0"}},1223:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;t.propertyIsEnumerable;return(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},1224:function(t,e,n){t.exports={sourceLabel:"_2HK7r"}},1227:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression;return' <span class="align-middle mr-2 '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.actionName:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):a)+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\r\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},1228:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda;return'<div class="actions-region d-inline-block"></div>\r\n<span class="d-inline-block">\r\n <span data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="ui-more d-inline-block ui-dropdown-toggle align-middle '+t.escapeExpression(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+' cursor-pointer d-inline-block">'+(null!=(r=a(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\r\n <div class="more-actions-region"></div>\r\n</span>\r\n'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[50],{1077:function(t,n,e){"use strict";e.d(n,"a",(function(){return b}));var o=e(1),i=e(2),r=e(4),a=e(42),s=e(1078),c=e.n(s);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function f(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=h(t);if(n){var i=h(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return y(this,e)}}function y(t,n){if(n&&("object"===u(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&p(t,n)}(u,t);var n,e,i,s=f(u);function u(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,t)}return n=u,(e=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},e=this.options.cursorParamName,i=t,e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n))};var n,e,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=a.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),e={id:this.options.collectionId,page:t};a.a.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&l(n.prototype,e),i&&l(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(i.a.Component)},1078:function(t,n,e){var o=e(10);t.exports=(o.default||o).template({1:function(t,n,e,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1356:function(t,n,e){var o=e(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:i}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},1458:function(t,n,e){"use strict";e.r(n),e.d(n,"NotificationsView",(function(){return j}));var o=e(2),i=e(3),r=e(5),a=e(25),s=e(52),c=e(22),u=e(43),l=e(202),p=e(1077),f=e(240),y=e(1356),h=e.n(y),b=e(496),v=e.n(b),d=e(497),g=e.n(d);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function O(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=C(t);if(n){var i=C(this).constructor;e=Reflect.construct(o,arguments,i)}else e=o.apply(this,arguments);return P(this,e)}}function P(t,n){if(n&&("object"===m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&w(t,n)}(b,t);var n,e,o,y=O(b);function b(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,b),y.call(this,t)}return n=b,(e=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return h.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:v.a,className:"px-1 py-2",viewOptions:{styles:g.a}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.a.getInstance(c.b.Notification,this),this.appVariables=r.a.getInstance(u.a.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new l.a(Object.assign({collectionPrefix:s.a.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new f.b({collection:this.collection,childType:f.a.Default});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new p.a({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&k(n.prototype,e),o&&k(n,o),Object.defineProperty(n,"prototype",{writable:!1}),b}(o.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[51],{1213:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'\r\n<img src="/images/errors/Oops'+c(u(null!=(i=null!=t?t.options:t)?i.imageNumber:i,t))+'@2x.png" class="'+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+'" />\r\n<h4 class="mt-3 text-muted">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n<p>"+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})},1214:function(e,t,r){e.exports={image:"_1wvl8"}},1429:function(e,t,r){"use strict";r.r(t),r.d(t,"ErrorView",(function(){return d}));var n=r(6),o=r(2),i=r(1213),u=r.n(i),c=r(1214),l=r.n(c);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,r,o,i=y(c);function c(){return f(this,c),i.apply(this,arguments)}return t=c,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center"}},{key:"template",get:function(){return u.a}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageNumber:Math.round(5*Math.random()+1),styles:l.a}}}])&&s(t.prototype,r),o&&s(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[52],{1211:function(t,n,e){var o=e(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,o,r){t.propertyIsEnumerable;var i,l=t.lambda,a=t.escapeExpression,u=null!=n?n:t.nullContext||{},c=t.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.illoContainer:i,n))+'">\r\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lunaHead:i,n))+'"><img width="86px" height="110px" src="/images/errors/not-found/luna-head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.head:i,n))+'"><img width="134px" height="138px" src="/images/errors/not-found/head@2x.png"></div>\r\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.body:i,n))+'"><img width="241px" height="229px" src="/images/errors/not-found/back@2x.png"></div>\r\n</div>\r\n<h4 class="mt-3 text-muted">'+a((e.lang||n&&n.lang||c).call(u,"pageNotFound",{name:"lang",hash:{},data:r}))+"</h4>\r\n<p>"+(null!=(i=(e.lang||n&&n.lang||c).call(u,"takeMeBack",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.linkClasses:i},data:r}))?i:"")+"</p>"},useData:!0})},1212:function(t,n,e){t.exports={illoContainer:"_3Eqbe",body:"_39GQb",head:"PVOtq",lunaHead:"_3z13a",animate:"_2FR1z","luna-animate":"_12szO",lunaTail:"_1memV",tintinTail:"_2V4lb","wag-tail-small":"_2atTc","wag-tail":"_13j3E"}},1428:function(t,n,e){"use strict";e.r(n),e.d(n,"NotFoundView",(function(){return h}));var o=e(2),r=e(0),i=e(1211),l=e.n(i),a=e(1212),u=e.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})(t)}function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function p(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function f(t,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function y(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,o=b(t);if(n){var r=b(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return d(this,e)}}function d(t,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&f(t,n)}(a,t);var n,e,o,i=y(a);function a(){return s(this,a),i.apply(this,arguments)}return n=a,(e=[{key:"name",get:function(){return"NotFoundView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"default.notFound"}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){return{".applink-home":{application:r.b.DEFAULT,action:r.a.Default.HOME}}}},{key:"className",get:function(){return"bg-white p-5 text-center"}},{key:"viewOptions",value:function(){return{styles:u.a,linkClasses:"applink-home info-link"}}}])&&p(n.prototype,e),o&&p(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(o.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[53],{1121:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return y}));var r,o=n(6),i=n(2),a=n(1165),u=n.n(a),c=n(1122),l=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(c,e);var t,n,i,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new u.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1122:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})},1312:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1445:function(e,t,n){"use strict";n.r(t),n.d(t,"BannerUploadView",(function(){return E}));var r=n(1),o=n(6),i=n(5),a=n(2),u=n(30),c=n(19),l=n(319),s=n(0),p=n(9),f=n(305),h=n(12),d=n(1121),g=n(265),y=n(3),m=n(1312),b=n.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(O,e);var t,n,m,v=C(O);function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),v.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.libraryDataService=i.a.getInstance(s.g.Library,this),this.imageUploadDataService=i.a.getInstance(s.g.ImageUpload,this),this.viewModel=u.a.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"BannerUploadView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.bannerUpload"}},{key:"template",get:function(){return b.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:f.e,title:y.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,d.a.ImageCropped,this.onImageCropped),this.listenTo(s.e.VIDEO,"".concat(s.f.FOLDER,":").concat(this.options.folderId,":sync"),this.render),this.listenTo(s.e.VIDEO,"".concat(s.f.UPDATE_FOLDER_BANNER,":").concat(this.options.folderId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||a.a.ErrorHelper.throw(new c.a("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(d.a.CropImage),o.Radio.channel(this.channelName).trigger(g.b.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,p.f.Banners,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={folderId:this.options.folderId,imageModel:e,currentImageId:this.model.banner&&this.model.banner.id};this.libraryDataService.addOrUpdateBanner(n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new l.a({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new d.b({model:e,channelName:this.channelName,imageType:p.f.Banners,minWidth:s.k[p.f.Banners].width,minHeight:s.k[p.f.Banners].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.libraryDataService.getFolder(this.options.folderId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:h.r.getSpinner({size:h.s.Large,extraClasses:"mx-auto"})}}}])&&w(t.prototype,n),m&&w(t,m),Object.defineProperty(t,"prototype",{writable:!1}),O}(a.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[54],{1045:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),i=n(265);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(){return l(this,u),o.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Model)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),i=n(2),o=n(312);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,i,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return o.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,i="dropdown-menu-".concat(n);return r&&(i="".concat(i," ").concat(r)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.a.ComponentCollection)},1246:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:i}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,i){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1436:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return P}));var r=n(1),i=n(3),o=n(5),l=n(2),a=n(321),s=n(42),c=n(305),u=n(0),f=n(154),h=n(1045),d=n(318),p=n(12),y=n(1064),b=n(265),v=n(1125),g=n(1246),m=n.n(g);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function L(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(w,e);var t,n,l,g=k(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.a.getInstance(u.g.Library,this),this.videoDataService=o.a.getInstance(u.g.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&i.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m.a}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:i.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:i.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),i=[],o=[];this.libraries.forEach((function(t){var l=p.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?i.push(t):o.push(t)})),this.libraries=new f.a(i),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:i.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=p.f.getSelected(this.libraryTreeKey,this.libraries);t&&p.f.deselectAll(this.folderTreeKey,t.get("children")),p.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=p.f.getSelected(this.libraryTreeKey,this.libraries).get("children");p.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=p.f.getSelected(this.folderTreeKey,this.libraries),i=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===o.length?n.get("name"):"",a=d.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,i,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,i)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=i.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new v.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=p.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),p.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&O(t.prototype,n),l&&O(t,l),Object.defineProperty(t,"prototype",{writable:!1}),w}(l.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[55],{1121:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return m}));var o,r=n(6),i=n(2),a=n(1165),u=n.n(a),c=n(1122),l=n.n(c);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(o||(o={}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(c,e);var t,n,i,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,o.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());r.Radio.channel(this.options.channelName).trigger(o.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new u.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1122:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:r}):i)+'" class="img img-fluid" />'},useData:!0})},1311:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,o,r){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1444:function(e,t,n){"use strict";n.r(t),n.d(t,"ThumbnailUploadView",(function(){return E}));var o=n(1),r=n(6),i=n(2),a=n(30),u=n(19),c=n(5),l=n(3),s=n(305),p=n(0),f=n(265),h=n(319),d=n(9),g=n(12),m=n(1121),y=n(1311),v=n.n(y);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return I(this,n)}}function I(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(I,e);var t,n,y,b=C(I);function I(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,I),b.call(this,e)}return t=I,(n=[{key:"initialize",value:function(){this.videoDataService=c.a.getInstance(p.g.Video,this),this.imageUploadDataService=c.a.getInstance(p.g.ImageUpload,this),this.navLockService=c.a.getInstance(p.x.NavLock,this),this.viewModel=a.a.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return l.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:l.a.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:l.a.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,m.a.ImageCropped,this.onImageCropped),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.VIDEO,"".concat(p.f.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||i.a.ErrorHelper.throw(new u.a("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(m.a.CropImage),r.Radio.channel(this.channelName).trigger(f.b.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.f.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new h.a({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new m.b({model:e,channelName:this.channelName,imageType:d.f.Thumbnails,minWidth:p.k[d.f.Thumbnails].width,minHeight:p.k[d.f.Thumbnails].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:g.r.getSpinner({size:g.s.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){a.a.get("upload:thumbnail:options").get("lockNav")&&this.navLockService.lock()}}])&&w(t.prototype,n),y&&w(t,y),Object.defineProperty(t,"prototype",{writable:!1}),I}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[56],{1408:function(e,n,t){var r=t(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,c=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.middle:i,n))+'">\r\n <img src="/images/checked.png" class="p-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.checkedImage:i,n))+'">\r\n <h4>'+a((t.lang||n&&n.lang||u).call(c,"complete",{name:"lang",hash:{},data:o}))+"</h4>\r\n <p>\r\n "+a((t.lang||n&&n.lang||u).call(c,"newLibraryNote",{name:"lang",hash:{},data:o}))+'\r\n </p>\r\n <a class="btn btn-primary link-to-online" href="'+a(l(null!=(i=null!=n?n.options:n)?i.onlineUrl:i,n))+'" target="_blank">'+a((t.lang||n&&n.lang||u).call(c,"checkItOut",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},1409:function(e,n,t){e.exports={complete:"_2A6IC",middle:"_1R3SI",checkedImage:"_2Vb1u",migrationBackupContainer:"_26fzE"}},1470:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryCompleteView",(function(){return k}));var r=t(2),o=t(3),i=t(57),l=t(201),a=t(0),c=t(1408),u=t.n(c),f=t(1409),p=t.n(f);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function m(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=d(e);if(n){var o=d(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(s,e);var n,t,c,f=m(s);function s(){return y(this,s),f.apply(this,arguments)}return n=s,(t=[{key:"name",get:function(){return"PublishLibraryCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryComplete"}},{key:"template",get:function(){return u.a}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(p.a.migrationBackupContainer," ").concat(p.a.complete)}},{key:"events",value:function(){return{"click .link-to-online":"onClickLinkToOnline"}}},{key:"onClickLinkToOnline",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME})}},{key:"requiredResources",get:function(){return{config:l.b.config}}},{key:"viewOptions",value:function(){return{styles:p.a,onlineUrl:i.a.urlBuilder(i.a.safeUrlConcat(this.config.get("onlineUrl"),"libraries"),{loginPrompt:!1})}}}])&&b(n.prototype,t),c&&b(n,c),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[57],{1406:function(e,t,r){e.exports={backupProgress:"sg8Kg",info:"_2HxTI",progress:"hbLuA",migrationBackupContainer:"_2lpDI"}},1407:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<h4 class="pb-4">'+c((r.lang||t&&t.lang||s).call(a,"heading",{name:"lang",hash:{},data:o}))+'</h4>\r\n<div class="progress-circle-region"></div>\r\n<p class="'+c(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.info:i,t))+' pt-4">\r\n '+c((r.lang||t&&t.lang||s).call(a,"body",{name:"lang",hash:{},data:o}))+"\r\n <br>\r\n "+c((r.lang||t&&t.lang||s).call(a,"note",{name:"lang",hash:{},data:o}))+"\r\n</p>"},useData:!0})},1489:function(e,t,r){"use strict";r.r(t);var n,o=r(6),i=r(2),a=r(5),s=r(30),c=r(3),l=r(0),u=r(1123),p=r(492);!function(e){e[e.Processing=1]="Processing",e[e.Completed=2]="Completed",e[e.Queued=3]="Queued"}(n||(n={}));var f=r(324),g=r(1406),h=r(1407);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function P(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"PublishLibraryProgressView",(function(){return k}));var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(w,e);var t,r,y,P=v(w);function w(){return d(this,w),P.apply(this,arguments)}return t=w,(r=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(l.g.MigrationVideo,this),this.viewModel=s.a.get("publish:library:progress",{percentage:0})}},{key:"name",get:function(){return"PublishLibraryProgressView"}},{key:"title",get:function(){return c.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publishLibraryProgress"}},{key:"className",get:function(){return"container text-center p-5 bg-white ".concat(g.migrationBackupContainer," ").concat(g.backupProgress)}},{key:"template",get:function(){return h}},{key:"regions",value:function(){return{progressCircle:{replaceElement:!0,el:".progress-circle-region"}}}},{key:"poll",value:function(){var e=this;this.migrationVideoDataService.getPublishLibrariesProgress(p.a.Phase2,(function(t){if(!e.isDestroyed()){if(t.get("type")!==p.a.Phase2)return e.progress=0,void setTimeout((function(){return e.poll()}),3e3);e.progress=100*t.get("progressPercentage"),e.setPercentage(),t.get("status")!==n.Completed?setTimeout((function(){return e.poll()}),3e3):e.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(){o.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"),i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE})}))}}))}},{key:"setPercentage",value:function(){this.progress&&this.viewModel.set({percentage:Math.round(this.progress)})}},{key:"renderProgressCircle",value:function(){this.showChildView("progressCircle",new u.g({model:this.viewModel,text:c.a.getPhrase(this.lang,"hasBeenPublished"),class:g.progress}))}},{key:"onRender",value:function(){this.pollingStarted||(this.poll(),this.pollingStarted=!0),this.renderProgressCircle()}}])&&b(t.prototype,r),y&&b(t,y),Object.defineProperty(t,"prototype",{writable:!1}),w}(i.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[58],{1378:function(n,e,t){n.exports={complete:"_2YgCz",middle:"_2QcuL",checkedImage:"_30_1Z",warningImage:"_2gF7F"}},1379:function(n,e,t){var r=t(10);n.exports=(r.default||r).template({1:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/warning.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.warningImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"errorHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"errorDescription",{name:"lang",hash:{},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"continueAnyway",{name:"lang",hash:{},data:a}))+'</a>\r\n <p class="mt-3">'+(null!=(i=(t.lang||e&&e.lang||c).call(l,"bookAnAppointment",{name:"lang",hash:{url:null!=(i=null!=e?e.options:e)?i.appointmentUrl:i,linkClasses:"info-link"},data:a}))?i:"")+"</p>\r\n"},3:function(n,e,t,r,a){n.propertyIsEnumerable;var i,o=n.escapeExpression,l=null!=e?e:n.nullContext||{},c=n.hooks.helperMissing;return' <img src="/images/checked.png" class="p-3 '+o(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.checkedImage:i,e))+'">\r\n <h4>'+o((t.lang||e&&e.lang||c).call(l,"completeHeading",{name:"lang",hash:{},data:a}))+"</h4>\r\n <p>\r\n "+(null!=(i=(t.lang||e&&e.lang||c).call(l,"completeBody",{name:"lang",hash:{archiveSvg:null!=(i=null!=e?e.options:e)?i.archiveSvg:i},data:a}))?i:"")+'\r\n </p>\r\n <a class="btn btn-primary applink-start-migration">'+o((t.lang||e&&e.lang||c).call(l,"getStarted",{name:"lang",hash:{},data:a}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(n,e,t,r,a){var i;n.propertyIsEnumerable;return'<div class="'+n.escapeExpression(n.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.middle:i,e))+'">\r\n'+(null!=(i=t.if.call(null!=e?e:n.nullContext||{},null!=(i=null!=e?e.options:e)?i.error:i,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.program(3,a,0),data:a}))?i:"")+"</div>"},useData:!0})},1464:function(n,e,t){"use strict";t.r(e),t.d(e,"PublisherBackupCompleteView",(function(){return S}));var r=t(57),a=t(2),i=t(5),o=t(3),l=t(16),c=t(201),u=t(0),s=t(58),p=t(1378),f=t.n(p),g=t(1379),h=t.n(g);function d(n){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function y(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function m(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function b(n,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n})(n,e)}function v(n){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=w(n);if(e){var a=w(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return k(this,t)}}function k(n,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function w(n){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var S=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&b(n,e)}(d,n);var e,t,p,g=v(d);function d(){return y(this,d),g.apply(this,arguments)}return e=d,(t=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(u.g.MigrationVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(u.e.MIGRATION,"".concat(u.f.CUSTOMER_METADATA,":sync"),this.render)}},{key:"name",get:function(){return"PublisherBackupCompleteView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupComplete"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(f.a.migrationBackupContainer," ").concat(f.a.complete)}},{key:"template",get:function(){return h.a}},{key:"viewOptions",value:function(){return{styles:f.a,error:this.hasErrored(),archiveSvg:'<span class="d-inline-block align-middle svg-container">\n '.concat(l.a.getSvg(l.b.PublisherArchive),"</span>"),appointmentUrl:"\n ".concat(r.a.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment?type=library-editor-publisher-backup-tool"),"\n ")}}},{key:"appLinks",get:function(){return{".applink-start-migration":{application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.START_MIGRATION}}}},{key:"requiredResources",get:function(){return{config:c.b.config}}},{key:"onBeforeRender",value:function(){var n=this;return this.migrationVideoDataService.getCustomerMetadata((function(e){n.metadata=e})),!!this.metadata}},{key:"onRender",value:function(){!this.pollingStarted&&this.hasErrored()&&(this.pollCloudSyncStatus(),this.pollingStarted=!0)}},{key:"hasErrored",value:function(){return s.a.backupCompleteWithError(this.metadata)}},{key:"pollCloudSyncStatus",value:function(){var n=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(e){n.isDestroyed()||(s.a.backupProcessing(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_PROGRESS}):s.a.backupCompleteWithoutError(e)?a.a.AppLinkHelper.trigger({application:u.b.MIGRATION_WIZARD,action:u.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return n.pollCloudSyncStatus()}),3e4))}))}}])&&m(e.prototype,t),p&&m(e,p),Object.defineProperty(e,"prototype",{writable:!1}),d}(a.a.View)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[59],{1372:function(t,e,n){t.exports={welcome:"_3MANn",middle:"_2sLB2",image:"_1--7s",text:"ivhYc",migrationBackupContainer:"W7da5"}},1373:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing;return'<div>\r\n <img src="/images/wave.png" class="p-3 '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'">\r\n\r\n <h4>'+l((n.lang||e&&e.lang||u).call(c,"welcome",{name:"lang",hash:{},data:o}))+'</h4>\r\n\r\n <p class="w-75 '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' mb-3 mt-3">\r\n '+l((n.lang||e&&e.lang||u).call(c,"welcomeInfo",{name:"lang",hash:{},data:o}))+'\r\n </p>\r\n\r\n <a class="btn btn-primary applink-lets-start">'+l((n.lang||e&&e.lang||u).call(c,"start",{name:"lang",hash:{},data:o}))+'</a>\r\n\r\n <p class="mt-3">\r\n '+(null!=(i=(n.lang||e&&e.lang||u).call(c,"learnMore",{name:"lang",hash:{className:"text-info",migrationUrl:null!=(i=null!=e?e.options:e)?i.migrationUrl:i},data:o}))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})},1461:function(t,e,n){"use strict";n.r(e),n.d(e,"PublisherBackupWelcomeView",(function(){return _}));var r=n(2),o=n(5),i=n(3),a=n(1372),l=n.n(a),c=n(1373),u=n.n(c),s=n(0),p=n(201),f=n(58),y=n(310),g=n(308),b=n(145);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(m,t);var e,n,a,c=w(m);function m(){return d(this,m),c.apply(this,arguments)}return e=m,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=o.a.getInstance(s.g.MigrationVideo,this)}},{key:"name",get:function(){return"PublisherBackupWelcomeView"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackupWelcome"}},{key:"className",get:function(){return"container text-center p-4 bg-white ".concat(l.a.migrationBackupContainer," ").concat(l.a.welcome)}},{key:"template",get:function(){return u.a}},{key:"appLinks",get:function(){return{".applink-lets-start":{application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_DOWNLOAD}}}},{key:"pollCloudSyncStatus",value:function(){var t=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(e){f.a.backupProcessing(e)?r.a.AppLinkHelper.trigger({application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_PROGRESS}):f.a.backupComplete(e)?r.a.AppLinkHelper.trigger({application:s.b.MIGRATION_WIZARD,action:s.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return t.pollCloudSyncStatus()}),3e4)}))}},{key:"getMigrationUrl",value:function(){var t,e=null===(t=this.config)||void 0===t?void 0:t.get("supportSiteUrl");return y.a.getArticle(e,g.a.PublisherArchive,this.currentUser.get("countryCode"))}},{key:"requiredResources",get:function(){return{config:p.b.config,currentUser:b.b.currentUser}}},{key:"viewOptions",value:function(){return{styles:l.a,migrationUrl:this.getMigrationUrl()}}},{key:"onRender",value:function(){this.pollCloudSyncStatus()}}])&&h(e.prototype,n),a&&h(e,a),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.a.View)}}]);
|