@clickview/library-editor 1.1.56 → 1.1.57-rc.1
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-5e31ed6fcd.css → library-editor-app-73ef35d93e.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/{0-104e5d80cf.chunk.js → 0-7a0a00671e.chunk.js} +1 -1
- package/dist/scripts/{1-43c3a05437.chunk.js → 1-709b927521.chunk.js} +1 -1
- package/dist/scripts/{10-dc22480d09.chunk.js → 10-9adc2cda45.chunk.js} +1 -1
- package/dist/scripts/{11-ba2c1f6f70.chunk.js → 11-ff467086e1.chunk.js} +1 -1
- package/dist/scripts/{12-6470f50978.chunk.js → 12-24c4543472.chunk.js} +1 -1
- package/dist/scripts/{13-172db124a0.chunk.js → 13-10636e2af5.chunk.js} +1 -1
- package/dist/scripts/{14-dd8068d186.chunk.js → 14-9b1ecd3e9e.chunk.js} +1 -1
- package/dist/scripts/{15-f984451404.chunk.js → 15-e4ef6f64cf.chunk.js} +1 -1
- package/dist/scripts/{16-60b31364a5.chunk.js → 16-ea4e41f570.chunk.js} +1 -1
- package/dist/scripts/{17-b61e29dd2b.chunk.js → 17-9353ded8cd.chunk.js} +1 -1
- package/dist/scripts/{18-58b75c92e6.chunk.js → 18-fb56568492.chunk.js} +1 -1
- package/dist/scripts/{19-3ca41936dc.chunk.js → 19-85a94ac004.chunk.js} +1 -1
- package/dist/scripts/{2-717e5953ab.chunk.js → 2-6e60c5cd87.chunk.js} +1 -1
- package/dist/scripts/{22-fa2e26f44d.chunk.js → 22-a4903ff45c.chunk.js} +1 -1
- package/dist/scripts/{23-f058deefc3.chunk.js → 23-b47ac20bca.chunk.js} +1 -1
- package/dist/scripts/{24-58f8c283fc.chunk.js → 24-f431e57e2a.chunk.js} +1 -1
- package/dist/scripts/{25-1dfacd4e49.chunk.js → 25-560da8ad7f.chunk.js} +1 -1
- package/dist/scripts/{26-7da6f45c3c.chunk.js → 26-4931172ebc.chunk.js} +1 -1
- package/dist/scripts/{27-b5d99ffc79.chunk.js → 27-adae09a46f.chunk.js} +1 -1
- package/dist/scripts/{28-a0737bd2c3.chunk.js → 28-696a0da105.chunk.js} +1 -1
- package/dist/scripts/{29-658d384be3.chunk.js → 29-c2c961a586.chunk.js} +1 -1
- package/dist/scripts/{3-ce455b9d76.chunk.js → 3-aa6f0c5b23.chunk.js} +1 -1
- package/dist/scripts/{30-87ab8d44d3.chunk.js → 30-92d387d3d9.chunk.js} +1 -1
- package/dist/scripts/{31-678e15cb27.chunk.js → 31-7e545aa0de.chunk.js} +1 -1
- package/dist/scripts/{32-acbf2f0622.chunk.js → 32-7328345fae.chunk.js} +1 -1
- package/dist/scripts/{33-fc59f7f6f1.chunk.js → 33-128143c106.chunk.js} +1 -1
- package/dist/scripts/{34-6bf5b4f684.chunk.js → 34-c915802337.chunk.js} +1 -1
- package/dist/scripts/{35-7ae663a318.chunk.js → 35-a166f1b8e3.chunk.js} +1 -1
- package/dist/scripts/{36-1fad1714f7.chunk.js → 36-c347fda103.chunk.js} +1 -1
- package/dist/scripts/{37-4abfd00db9.chunk.js → 37-74139562b8.chunk.js} +1 -1
- package/dist/scripts/{38-fbad2fc82c.chunk.js → 38-f300998fdd.chunk.js} +1 -1
- package/dist/scripts/{39-6c8b47f584.chunk.js → 39-b3dc9c44a0.chunk.js} +1 -1
- package/dist/scripts/{4-58def50cec.chunk.js → 4-a6f41aa1cf.chunk.js} +1 -1
- package/dist/scripts/{40-66d8af09cf.chunk.js → 40-3e0329bded.chunk.js} +1 -1
- package/dist/scripts/{41-ef31310489.chunk.js → 41-14984944f5.chunk.js} +1 -1
- package/dist/scripts/{42-fa1d88c59b.chunk.js → 42-a83543523b.chunk.js} +1 -1
- package/dist/scripts/{43-c9c476d9b2.chunk.js → 43-1dd75e9a7c.chunk.js} +1 -1
- package/dist/scripts/{44-453006db03.chunk.js → 44-b009aed5ee.chunk.js} +1 -1
- package/dist/scripts/{45-daa6556c90.chunk.js → 45-8784f71efb.chunk.js} +1 -1
- package/dist/scripts/{46-9511520501.chunk.js → 46-84948e5396.chunk.js} +1 -1
- package/dist/scripts/{47-6f93dc2e88.chunk.js → 47-e8ee683c6b.chunk.js} +1 -1
- package/dist/scripts/{48-3b06f60df4.chunk.js → 48-f7d6b635d4.chunk.js} +1 -1
- package/dist/scripts/{49-46c2f49588.chunk.js → 49-85880607e1.chunk.js} +1 -1
- package/dist/scripts/{5-3a1843b403.chunk.js → 5-441004c068.chunk.js} +1 -1
- package/dist/scripts/{50-02fa3eb163.chunk.js → 50-7119810c07.chunk.js} +1 -1
- package/dist/scripts/{51-6c16ea537e.chunk.js → 51-4073403c2a.chunk.js} +1 -1
- package/dist/scripts/{52-76487916a5.chunk.js → 52-83ac3c5f59.chunk.js} +1 -1
- package/dist/scripts/{53-af50db3c3c.chunk.js → 53-44b9074b42.chunk.js} +1 -1
- package/dist/scripts/{54-72d736205b.chunk.js → 54-f87b2698de.chunk.js} +1 -1
- package/dist/scripts/{55-3bc9a0b42d.chunk.js → 55-02e36c66d8.chunk.js} +1 -1
- package/dist/scripts/{56-43f593b7c5.chunk.js → 56-7e9d94a656.chunk.js} +1 -1
- package/dist/scripts/{57-508febbd1b.chunk.js → 57-4ad9ab266e.chunk.js} +1 -1
- package/dist/scripts/{58-ff54459bd1.chunk.js → 58-6ebe979a17.chunk.js} +1 -1
- package/dist/scripts/{59-56d1f7537f.chunk.js → 59-09ad6d94e9.chunk.js} +1 -1
- package/dist/scripts/{6-8b8b5a5977.chunk.js → 6-f1f3ea7cec.chunk.js} +1 -1
- package/dist/scripts/{60-aa380ff112.chunk.js → 60-d4f9eaf20d.chunk.js} +1 -1
- package/dist/scripts/{61-fac76029c9.chunk.js → 61-45cfc05bd5.chunk.js} +1 -1
- package/dist/scripts/{62-a3b4e94851.chunk.js → 62-4242c25552.chunk.js} +1 -1
- package/dist/scripts/{63-c5943f97ff.chunk.js → 63-779b927a04.chunk.js} +1 -1
- package/dist/scripts/{64-b51ab4e2b7.chunk.js → 64-29f65ce8e5.chunk.js} +1 -1
- package/dist/scripts/{65-cfd5e46f89.chunk.js → 65-0e5cd44c96.chunk.js} +1 -1
- package/dist/scripts/{66-d4e52adf0e.chunk.js → 66-782fe6a351.chunk.js} +1 -1
- package/dist/scripts/{67-a308ef650d.chunk.js → 67-c749606e6f.chunk.js} +1 -1
- package/dist/scripts/{68-c5dcd410e9.chunk.js → 68-9ef5b70dc6.chunk.js} +1 -1
- package/dist/scripts/{69-439f478464.chunk.js → 69-ea32cbf274.chunk.js} +1 -1
- package/dist/scripts/{7-866c6652bd.chunk.js → 7-00dd3cbb22.chunk.js} +1 -1
- package/dist/scripts/{70-47761f2ccc.chunk.js → 70-876856aed0.chunk.js} +1 -1
- package/dist/scripts/{71-ddefa84f7b.chunk.js → 71-89a356a899.chunk.js} +1 -1
- package/dist/scripts/{72-29eb61cf43.chunk.js → 72-6e08024788.chunk.js} +1 -1
- package/dist/scripts/{73-723909f9f9.chunk.js → 73-7cc4cc7383.chunk.js} +1 -1
- package/dist/scripts/{74-665f11c3f0.chunk.js → 74-8ffb258210.chunk.js} +1 -1
- package/dist/scripts/{8-8a9b216365.chunk.js → 8-878942d96f.chunk.js} +1 -1
- package/dist/scripts/{9-06e24ea6dd.chunk.js → 9-da8328e091.chunk.js} +1 -1
- package/dist/scripts/bundle-183cd5dde9.min.js +10 -0
- package/dist/scripts/polyfills-4de7102781.min.js +1 -0
- package/package.json +2 -2
- package/dist/scripts/bundle-02ee4c3730.min.js +0 -10
- package/dist/scripts/polyfills-712bbaf7d4.min.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[59],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[59],{1369:function(t,e,n){t.exports={welcome:"_3MANn",middle:"_2sLB2",image:"_1--7s",text:"ivhYc",migrationBackupContainer:"W7da5"}},1370: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})},1458:function(t,e,n){"use strict";n.r(e),n.d(e,"PublisherBackupWelcomeView",(function(){return O}));var r=n(2),o=n(5),i=n(3),a=n(1369),l=n.n(a),c=n(1370),u=n.n(c),s=n(0),p=n(201),f=n(58),g=n(310),y=n(308),m=n(144);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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 v(t,e){return(v=Object.setPrototypeOf||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=_(t);if(e){var 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"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf: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&&v(t,e)}(b,t);var e,n,a,c=w(b);function b(){return h(this,b),c.apply(this,arguments)}return e=b,(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 g.a.getArticle(e,y.a.PublisherArchive,this.currentUser.get("countryCode"))}},{key:"requiredResources",get:function(){return{config:p.b.config,currentUser:m.b.currentUser}}},{key:"viewOptions",value:function(){return{styles:l.a,migrationUrl:this.getMigrationUrl()}}},{key:"onRender",value:function(){this.pollCloudSyncStatus()}}])&&d(e.prototype,n),a&&d(e,a),Object.defineProperty(e,"prototype",{writable:!1}),b}(r.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[6],{1050:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\r\n</div>'},useData:!0})},1055:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return b}));var o=n(1),r=n(2),i=n(1050),l=n.n(i),a=n(13);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h="checkbox-all",b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,n,r,i=p(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",h));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return h}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(h),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Component)},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1050),i=n.n(r),l=n(13),a=n(1055);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf: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&&s(e,t)}(u,e);var t,n,o,r=f(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),r.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.a.Component)},1113:function(e,t,n){"use strict";var o=n(2),r=n(16),i=n(0),l=n(335),a=n(1374),u=n.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e,t){return(p=Object.setPrototypeOf||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 n,o=h(e);if(t){var r=h(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"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,n,o,a=y(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:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var e="container";return"publisher-archive"===this.options.selected&&(e+=" ".concat(l.publisherArchive)),"migration-errors"===this.options.selected&&(e+=" ".concat(l.migrationErrors)),"none"===this.options.selected&&(e+=" ".concat(l.none)),e}},{key:"elements",get:function(){return{search:".search"}}},{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"appLinks",get:function(){var e;return s(e={},".".concat(l.reviewErroredAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}),s(e,".".concat(l.publisherArchiveAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.HOME}),e}},{key:"viewOptions",value:function(){return{styles:l,warningSvg:r.a.getSvg(r.b.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new Wt)}}])&&f(t.prototype,n),o&&f(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a.Component),g=n(1),m=n(6),v=n(1055),k=n(13),w=n(200),O=n(1122),C=n(53),x=n(336),R=n.n(x),j=n(1375),_=n.n(j);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 E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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=M(e);if(t){var r=M(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"===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 M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(a,e);var t,n,o,l=T(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),w.CheckboxTypes.MIGRATION_VIDEO_LIST),this.listenTo(this.viewModel,"change:".concat(v.a),this.onCheckboxChange)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(R.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"viewOptions",value:function(){return{styles:R.a,showCategory:this.options.searchTerm,sortSvg:r.a.getSvg(r.b.UpDown)}}},{key:"elements",get:function(){return{sortOption:".sort"}}},{key:"events",value:function(){return{"click .sort-title":"sortTitle","click .sort-views":"sortViews"}}},{key:"regions",value:function(){return{selectAll:{replaceElement:!0,el:".select-all"}}}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.options.folderChord}},{key:"onRender",value:function(){this.showChildView("selectAll",new v.b({type:w.CheckboxTypes.MIGRATION_VIDEO_LIST,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(R.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(C.e.Title)}},{key:"sortViews",value:function(){this.sort(C.e.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(e){return e.get("migrationStatus")===O.a.HasNotBeenMigrated}))}},{key:"sort",value:function(e){m.Radio.channel(i.e.MIGRATION).trigger(i.i.MigrationWizard.SORT_VIDEOS,e)}},{key:"onCheckboxChange",value:function(){var e=m.Radio.channel(this.options.channelName),t=this.viewModel.get(v.a),n=this.getVideosThatCanBeMigrated();t?e.trigger("add:selected",n,this.options.folderChord):g.isUndefined(t)&&e.trigger("remove:selected",n,this.options.folderChord)}}])&&P(t.prototype,n),o&&P(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.Component),V=n(1376),D=n.n(V),N=n(290);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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(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=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(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 U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf: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&&W(e,t)}(i,e);var t,n,o,r=z(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"StatusBarComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(N.statusBar)}},{key:"template",get:function(){return D.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var e=this.options,t=e.nextAppLink,n=e.backAppLink,o={".applink-next":t};return n&&(o[".applink-back"]=n),o}},{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||g.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){g.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:N},this.options),{multipleVideosAvailable:1!==this.options.numberAvailable,numberAvailable:this.options.numberAvailable||0,videoCount:this.options.numberSelected||0})}}])&&A(t.prototype,n),o&&A(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),K=n(5),Z=n(337),F=n.n(Z),Y=n(1377),J=n.n(Y),X=n(1064);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(l,e);var t,n,o,r=te(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),w.CheckboxTypes.MIGRATION_VIDEO_LIST),this.selectedVideoService=K.a.getInstance(i.x.SelectedVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:".concat(this.getCheckboxId()),this.onCheckboxChange)}},{key:"template",get:function(){return J.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(F.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}},{key:"regions",value:function(){return{bulkCheckbox:{replaceElement:!0,el:".bulk-checkbox-region"},errorCode:{replaceElement:!0,el:".error-code-region"}}}},{key:"hasBeenMigrated",value:function(){return this.model.get("migrationStatus")!==O.a.HasNotBeenMigrated}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.model.get("categoryChord")}},{key:"getCheckboxId",value:function(){return this.model.get("id")}},{key:"onCheckboxChange",value:function(){if(!this.hasBeenMigrated()){var e=this.viewModel.get("".concat(this.getCheckboxId()));e?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):g.isUndefined(e)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var e=this.hasBeenMigrated(),t=e?" ".concat(F.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||e;this.showChildView("bulkCheckbox",new X.a({checked:n,checkboxClassName:t,disabled:e,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:w.CheckboxTypes.MIGRATION_VIDEO_LIST,className:"".concat(F.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:F.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}}])&&Q(t.prototype,n),o&&Q(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component),ie=n(3),le=n(1123),ae=n(1378),ue=n.n(ae);function ce(e){return(ce="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 se(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 fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pe(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=de(e);if(t){var r=de(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===ce(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 de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=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&&fe(e,t)}(l,e);var t,n,o,r=pe(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoListCollection"}},{key:"template",get:function(){return ue.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}},{key:"regions",value:function(){return{videoListSort:{replaceElement:!0,el:".video-sorting-region"},videoList:{el:".video-list-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(e){this.collection&&0!==this.collection.length&&(this.collection=le.a.toggleMigrated(this.collection,e),this.render())}},{key:"sort",value:function(e){0!==this.collection.length&&(this.sortedBy=this.sortedBy===e?void 0:e,this.collection=le.a.sortVideos(this.collection,e,this.sortedBy===e),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new it({text:ie.a.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new B({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new xe({folderChord:this.options.folderChord,collection:this.collection,searchTerm:this.options.searchTerm,supportSiteUrl:this.options.supportSiteUrl}))}},{key:"onRender",value:function(){this.renderSortingRow(),0!==this.collection.where({hidden:!1}).length?this.renderVideoList():this.renderEmptyMessage()}}])&&se(t.prototype,n),o&&se(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component),be=n(1379),ge=n.n(be);function me(e){return(me="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 ve(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 ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(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=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"===me(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 Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=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&&ke(e,t)}(i,e);var t,n,o,r=we(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return ge.a.videoList}},{key:"childView",get:function(){return re}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&ve(t.prototype,n),o&&ve(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.ComponentCollection),Re=n(310),je=n(308),_e=n(1380),Se=n.n(_e),Pe=n(1381),Ee=n.n(Pe);function Te(e){return(Te="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 Ie(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 Me(e,t){return(Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(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=De(e);if(t){var r=De(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){if(t&&("object"===Te(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 De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=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&&Me(e,t)}(i,e);var t,n,o,r=Be(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(Se.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return Ee.a}},{key:"viewOptions",value:function(){return{styles:Se.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var e,t;return Re.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),je.a.PublisherArchive,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode"))}}])&&Ie(t.prototype,n),o&&Ie(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),Le=n(1382),Ae=n.n(Le),We=n(1383),ze=n.n(We);function Ge(e){return(Ge="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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(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 Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(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=Ye(e);if(t){var r=Ye(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){if(t&&("object"===Ge(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 Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Je=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&&Ke(e,t)}(i,e);var t,n,o,r=Ze(i);function i(){return Ue(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return ze.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}},{key:"viewOptions",value:function(){return{styles:Ae.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}}])&&He(t.prototype,n),o&&He(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),$e=n(1384),Xe=n(1385),qe=n.n(Xe);function Qe(e){return(Qe="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 et(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 tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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=rt(e);if(t){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(e,t){if(t&&("object"===Qe(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 rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=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&&tt(e,t)}(i,e);var t,n,o,r=nt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"EmptyVideoListComponent"}},{key:"className",get:function(){return"d-flex justify-content-center align-items-center text-muted p-5 ".concat($e.videoList)}},{key:"template",get:function(){return qe.a}},{key:"viewOptions",value:function(){return{text:this.options.text}}}])&&et(t.prototype,n),o&&et(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),lt=n(1386),at=n.n(lt),ut=n(1387),ct=n.n(ut);function st(e){return(st="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 ft(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 pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yt(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=ht(e);if(t){var r=ht(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return dt(this,n)}}function dt(e,t){if(t&&("object"===st(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=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&&pt(e,t)}(i,e);var t,n,o,r=yt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ProgressBarComponent"}},{key:"className",get:function(){return this.options.class||""}},{key:"template",get:function(){return ct.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"viewOptions",value:function(){return{styles:at.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var e=this.getUI("progressBar"),t=this.getUI("progressText");e&&e.get(0)&&$(e.get(0)).css("width","".concat(this.model.get("percentage"),"%")),t&&t.get(0)&&$(t.get(0)).text("".concat(this.model.get("percentage"),"%"))}},{key:"onRender",value:function(){this.update()}}])&&ft(t.prototype,n),o&&ft(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),gt=n(1121),mt=n(1184),vt=n(1388),kt=n.n(vt);function wt(e){return(wt="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 Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(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 xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rt(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=_t(e);if(t){var r=_t(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return jt(this,n)}}function jt(e,t){if(t&&("object"===wt(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 _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var St=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&&xt(e,t)}(a,e);var t,n,r,l=Rt(a);function a(){var e;return Ot(this,a),(e=l.apply(this,arguments)).buttonDisabled=!0,e}return t=a,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=K.a.getInstance(i.g.MigrationVideo,this),this.bindListeners()}},{key:"name",get:function(){return"GenerateReportComponent"}},{key:"template",get:function(){return kt.a}},{key:"className",get:function(){return"dropdown-menu dropdown-menu-right dropdown-arrow"}},{key:"lang",get:function(){return"migrationWizard.generateReport"}},{key:"events",value:function(){return{"click .options":"onClickOptionsContainer","change #migrated-option":"onToggleMigratedOption","change #remaining-option":"onToggleRemainingOption","change #errored-option":"onToggleErroredOption","change #content-matched-option":"onToggleContentMatchedOption","click .generate-report":"onClickSubmit"}}},{key:"elements",get:function(){return{generateReportBtn:".generate-report"}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(e){e.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var e=this.reportOptions[C.d.Migrated];e.selected=!e.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var e=this.reportOptions[C.d.Remaining];e.selected=!e.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var e=this.reportOptions[C.d.Errored];e.selected=!e.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var e=this.reportOptions[C.d.ContentMatched];e.selected=!e.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||o.a.AppLinkHelper.trigger({application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.GENERATE_CSV_REPORT,params:{options:mt.a.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var e=this.getUI("generateReportBtn");mt.a.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,e.removeAttr("disabled")):(this.buttonDisabled=!0,e.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var e=this;this.migrationVideoDataService.getMigrationReportOptions((function(t){e.reportOptions=mt.a.processValidReportOptions(t),e.render()}))}},{key:"viewOptions",value:function(){return{reportOptions:this.reportOptions}}},{key:"onRender",value:function(){this.reportOptions||this.fetchMigrationReportOptions()}}])&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.Component),Pt=n(1389),Et=n.n(Pt),Tt=n(1390),It=n.n(Tt);function Mt(e){return(Mt="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 Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(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 Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(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=At(e);if(t){var r=At(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Mt(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 At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=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&&Dt(e,t)}(i,e);var t,n,o,r=Nt(i);function i(){return Bt(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return Et.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:It.a}}},{key:"onRender",value:function(){this.showChildView("options",new St)}}])&&Vt(t.prototype,n),o&&Vt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component);n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return B})),n.d(t,"k",(function(){return H})),n.d(t,"e",(function(){return re})),n.d(t,"l",(function(){return he})),n.d(t,"m",(function(){return xe})),n.d(t,"a",(function(){return Ne})),n.d(t,"i",(function(){return Je})),n.d(t,"b",(function(){return it})),n.d(t,"f",(function(){return bt})),n.d(t,"g",(function(){return gt.a})),n.d(t,"d",(function(){return St})),n.d(t,"c",(function(){return Wt}))},1121:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1182),i=n.n(r),l=n(1183),a=n.n(l);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf: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&&s(e,t)}(l,e);var t,n,o,r=f(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}},{key:"viewOptions",value:function(){return{styles:i.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var e=this.model.get("percentage")||0,t=this.getUI("circle").get(0),n=2*t.r.baseVal.value*Math.PI;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=n;var o=n-e/100*n;t.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(e,"%"))}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component)},1122:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){e[e.NeedsManualReview=-1]="NeedsManualReview",e[e.HasNotBeenMigrated=0]="HasNotBeenMigrated",e[e.MigratedByUser=1]="MigratedByUser"}(o||(o={}))},1123:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(1),r=n(2),i=n(91),l=n(1122),a={setChecked:function(e,t,n){e.set("selected",!1);var r=n&&e.get("viewsLast3Years")>0;(o.contains(t,e.id.toString())||r&&0===t.length)&&e.set("selected",!0)},sortVideos:function(e,t,n){var o="name";return e.comparator=function(e,r){e.keys().forEach((function(e){e===t&&(o=e)}));var i=e.get(o),l=r.get(o);return"string"==typeof i&&"string"==typeof l&&(i=i.toLowerCase(),l=l.toLowerCase()),i<l?n?1:-1:i>l?n?-1:1:0},e.sort(),e},toggleMigrated:function(e,t){return e.each((function(e){var n=e.get("migrationStatus")!==l.a.HasNotBeenMigrated,r=e.get("hidden");!o.isUndefined(t)&&n?e.set("hidden",t):n?e.set("hidden",!r):e.set("hidden",!1)})),e},getSelectedVideosCollection:function(e){var t=new r.a.Collection;return Object.keys(e).forEach((function(n){var o=e[n],r=o.id,l=o.folderChord,a=t.findWhere({folderChord:l});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):t.add(new i.f({count:1,folderChord:l,videoIds:[r]}))})),t.each((function(e){e.set("folderChord",e.get("folderChord"))})),t}}},1182:function(e,t,n){e.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},1183:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.extraText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.circle:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.class:i,t))+'">\r\n <span>\r\n <span class="progress-circle-text">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(u,"progress",{name:"lang",hash:{percentage:null!=(i=null!=t?t.options:t)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.text:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircleContainer:i,t))+'">\r\n <circle class="progress-circle '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircle:i,t))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},1184:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(1),r=n(3),i=n(53);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a="migrationWizard.utils",u={getReportOptions:function(){var e;return l(e={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:r.a.getPhrase(a,"migratedOption")}),l(e,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:r.a.getPhrase(a,"remainingOption")}),l(e,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:r.a.getPhrase(a,"erroredOption")}),l(e,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:r.a.getPhrase(a,"linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return o.each(o.keys(t),(function(r){o.contains(e,t[r].type)&&(n[r]=t[r])})),n},filterSelectedOptions:function(e){return o.filter(o.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return o.filter(o.keys(t),(function(n){return o.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}}},1374: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabContainer:i,t))+' position-relative">\r\n <a class="col-4 p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherArchiveAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.reviewErroredAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},1375: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="col-8">\r\n <div class="select-all"></div>\r\n <div class="align-middle d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+'</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="col-4 pr-3 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},1376:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="applink-back btn btn-secondary '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="align-middle '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.statusBarMessage:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=t?t.options:t)?i.videoCount:i,smartCount:null!=(i=null!=t?t.options:t)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.lambda,u=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showBackButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showSelected:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+u(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},1377:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"text-muted"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-show cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkCheckbox:i,t))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n </div>\r\n <div class="col-4 position-static">\r\n <div class="row no-gutters">\r\n <div class="col-11 text-right pr-2">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?i:"")+' <div class="'+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewCount:i,t))+'">\r\n <span>\r\n '+u((n.lang||t&&t.lang||s).call(c,"views",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.views:i},data:r}))+'\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-1 d-flex justify-content-center position-static">\r\n <div class="error-code-region"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1378: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){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},1379:function(e,t,n){e.exports={videoList:"_3RFYO"}},1380:function(e,t,n){e.exports={banner:"O5CMF",learnMore:"MjcUE"}},1381: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){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<span class="text-white mr-1">'+u((n.lang||t&&t.lang||a).call(l,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+u(c(null!=(i=null!=t?t.options:t)?i.learnMoreUrl:i,t))+'" class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learnMore:i,t))+'" target="_blank">'+u((n.lang||t&&t.lang||a).call(l,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},1382:function(e,t,n){e.exports={category:"BSPKV"}},1383: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 null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=t?t.options:t)?i.folder:i,className:null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:r}))?i:""},useData:!0})},1384:function(e,t,n){e.exports={videoList:"_3TgUv"}},1385: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'<h3 class="m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</h3>"},useData:!0})},1386:function(e,t,n){e.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},1387: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBarContainter:i,t))+' pl-0">\r\n <div class="progress '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'">\r\n <div class="progress-bar '+a(l(null!=(i=null!=t?t.options:t)?i.background:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'" role="progressbar" aria-valuenow="'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n </div>\r\n </div>\r\n <div class="col-1 pr-0">\r\n <span class="float-right progress-text">'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},1388:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=e.lambda,l=e.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+l(i(null!=t?t.id:t,t))+'-option" name="checkbox-'+l(i(null!=t?t.id:t,t))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+l(i(null!=t?t.id:t,t))+'-option"> </label>\r\n </div>\r\n <label for="'+l(i(null!=t?t.id:t,t))+'-option">'+l(i(null!=t?t.labelText:t,t))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+u((n.lang||t&&t.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+u((n.lang||t&&t.lang||a).call(l,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="dropdown-divider"></div>\r\n<div class="mr-3">\r\n <button class="btn btn-primary w-100 mx-2 generate-report" disabled>'+u((n.lang||t&&t.lang||a).call(l,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},1389: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){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.generateReport:i,t))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},1390:function(e,t,n){e.exports={generateReport:"_2PRgW"}}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[6],{1057:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\r\n</div>'},useData:!0})},1062:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return b}));var o=n(1),r=n(2),i=n(1057),l=n.n(i),a=n(13);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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=d(e);if(t){var r=d(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h="checkbox-all",b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(u,e);var t,n,r,i=p(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",h));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return h}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(h),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.Component)},1071:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1057),i=n.n(r),l=n(13),a=n(1062);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf: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&&s(e,t)}(u,e);var t,n,o,r=f(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),r.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.a.Component)},1120:function(e,t,n){"use strict";var o=n(2),r=n(16),i=n(0),l=n(335),a=n(1381),u=n.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 p(e,t){return(p=Object.setPrototypeOf||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 n,o=h(e);if(t){var r=h(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"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(c,e);var t,n,o,a=y(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:"name",get:function(){return"SearchBarComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"migrationWizard.searchBar"}},{key:"className",get:function(){var e="container";return"publisher-archive"===this.options.selected&&(e+=" ".concat(l.publisherArchive)),"migration-errors"===this.options.selected&&(e+=" ".concat(l.migrationErrors)),"none"===this.options.selected&&(e+=" ".concat(l.none)),e}},{key:"elements",get:function(){return{search:".search"}}},{key:"regions",value:function(){return{generateReport:{el:".generate-report-region",replaceElement:!0}}}},{key:"appLinks",get:function(){var e;return s(e={},".".concat(l.reviewErroredAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}),s(e,".".concat(l.publisherArchiveAppLink),{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.HOME}),e}},{key:"viewOptions",value:function(){return{styles:l,warningSvg:r.a.getSvg(r.b.Warning)}}},{key:"onRender",value:function(){this.showChildView("generateReport",new Wt)}}])&&f(t.prototype,n),o&&f(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.a.Component),g=n(1),m=n(6),v=n(1062),k=n(13),w=n(200),O=n(1129),C=n(53),x=n(336),R=n.n(x),j=n(1382),_=n.n(j);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 E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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=M(e);if(t){var r=M(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"===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 M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(a,e);var t,n,o,l=T(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),w.CheckboxTypes.MIGRATION_VIDEO_LIST),this.listenTo(this.viewModel,"change:".concat(v.a),this.onCheckboxChange)}},{key:"name",get:function(){return"SortingRowComponent"}},{key:"template",get:function(){return _.a}},{key:"className",get:function(){return"row no-gutters px-2 py-1 ".concat(R.a.sortingRow)}},{key:"lang",get:function(){return"migrationWizard.sortingRow"}},{key:"viewOptions",value:function(){return{styles:R.a,showCategory:this.options.searchTerm,sortSvg:r.a.getSvg(r.b.UpDown)}}},{key:"elements",get:function(){return{sortOption:".sort"}}},{key:"events",value:function(){return{"click .sort-title":"sortTitle","click .sort-views":"sortViews"}}},{key:"regions",value:function(){return{selectAll:{replaceElement:!0,el:".select-all"}}}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.options.folderChord}},{key:"onRender",value:function(){this.showChildView("selectAll",new v.b({type:w.CheckboxTypes.MIGRATION_VIDEO_LIST,key:this.getCheckboxKey(),disabled:0===this.getVideosThatCanBeMigrated().length,className:"".concat(R.a.bulkCheckbox," position-relative d-inline-block"),numberOfItems:this.collection.length}))}},{key:"sortTitle",value:function(){this.sort(C.e.Title)}},{key:"sortViews",value:function(){this.sort(C.e.Views)}},{key:"getVideosThatCanBeMigrated",value:function(){return this.collection.filter((function(e){return e.get("migrationStatus")===O.a.HasNotBeenMigrated}))}},{key:"sort",value:function(e){m.Radio.channel(i.e.MIGRATION).trigger(i.i.MigrationWizard.SORT_VIDEOS,e)}},{key:"onCheckboxChange",value:function(){var e=m.Radio.channel(this.options.channelName),t=this.viewModel.get(v.a),n=this.getVideosThatCanBeMigrated();t?e.trigger("add:selected",n,this.options.folderChord):g.isUndefined(t)&&e.trigger("remove:selected",n,this.options.folderChord)}}])&&P(t.prototype,n),o&&P(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.Component),V=n(1383),D=n.n(V),N=n(290);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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(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=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(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 U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf: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&&W(e,t)}(i,e);var t,n,o,r=z(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"StatusBarComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(N.statusBar)}},{key:"template",get:function(){return D.a}},{key:"lang",get:function(){return"migrationWizard.statusBar"}},{key:"appLinks",get:function(){var e=this.options,t=e.nextAppLink,n=e.backAppLink,o={".applink-next":t};return n&&(o[".applink-back"]=n),o}},{key:"events",value:function(){return{"click .applink-next":"onClickNext","click .applink-back":"onClickBack"}}},{key:"onClickNext",value:function(){this.options.nextDisabled||g.isFunction(this.options.onClickNext)&&this.options.onClickNext()}},{key:"onClickBack",value:function(){g.isFunction(this.options.onClickBack)&&this.options.onClickBack()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:N},this.options),{multipleVideosAvailable:1!==this.options.numberAvailable,numberAvailable:this.options.numberAvailable||0,videoCount:this.options.numberSelected||0})}}])&&A(t.prototype,n),o&&A(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),K=n(5),Z=n(337),F=n.n(Z),Y=n(1384),J=n.n(Y),X=n(1071);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ee(e,t)}(l,e);var t,n,o,r=te(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.viewModel=k.a.GetViewModel(this.getCheckboxKey(),w.CheckboxTypes.MIGRATION_VIDEO_LIST),this.selectedVideoService=K.a.getInstance(i.x.SelectedVideo,this),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.viewModel,"change:".concat(this.getCheckboxId()),this.onCheckboxChange)}},{key:"template",get:function(){return J.a}},{key:"name",get:function(){return"MigrationVideoItemComponent"}},{key:"className",get:function(){if(this.shouldRender())return"col-12 py-1 ".concat(F.a.videoRow)}},{key:"lang",get:function(){return"migrationWizard.migrationVideoItem"}},{key:"appLinks",get:function(){return{".applink-show":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,args:[this.model.get("trackingCode")]},".applink-remigrate":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.REMIGRATE_VIDEO,args:[this.model.get("id").toString(),this.model.get("masterId")&&this.model.get("masterId").toString(),this.model.get("categoryChord")]}}}},{key:"regions",value:function(){return{bulkCheckbox:{replaceElement:!0,el:".bulk-checkbox-region"},errorCode:{replaceElement:!0,el:".error-code-region"}}}},{key:"hasBeenMigrated",value:function(){return this.model.get("migrationStatus")!==O.a.HasNotBeenMigrated}},{key:"getCheckboxKey",value:function(){return this.options.searchTerm||this.model.get("categoryChord")}},{key:"getCheckboxId",value:function(){return this.model.get("id")}},{key:"onCheckboxChange",value:function(){if(!this.hasBeenMigrated()){var e=this.viewModel.get("".concat(this.getCheckboxId()));e?this.selectedVideoService.addSelectedVideos(this.model,this.options.folderChord):g.isUndefined(e)||this.selectedVideoService.removeSelectedVideos(this.model,this.options.folderChord)}}},{key:"shouldRender",value:function(){return!this.model.get("hidden")}},{key:"renderCheckbox",value:function(){var e=this.hasBeenMigrated(),t=e?" ".concat(F.a.faded):"",n=this.model.get("selected")||this.model.get("checkedForMigration")||e;this.showChildView("bulkCheckbox",new X.a({checked:n,checkboxClassName:t,disabled:e,key:this.getCheckboxKey(),itemId:this.getCheckboxId(),type:w.CheckboxTypes.MIGRATION_VIDEO_LIST,className:"".concat(F.a.bulkCheckbox," position-relative d-inline-block")}))}},{key:"onBeforeRender",value:function(){return this.shouldRender()}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:F.a},this.options),{migrated:this.hasBeenMigrated(),views:this.model.get("viewsLast3Years")})}},{key:"onRender",value:function(){this.renderCheckbox()}}])&&Q(t.prototype,n),o&&Q(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component),ie=n(3),le=n(1130),ae=n(1385),ue=n.n(ae);function ce(e){return(ce="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 se(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 fe(e,t){return(fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pe(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=de(e);if(t){var r=de(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ye(this,n)}}function ye(e,t){if(t&&("object"===ce(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 de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=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&&fe(e,t)}(l,e);var t,n,o,r=pe(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoListCollection"}},{key:"template",get:function(){return ue.a}},{key:"lang",get:function(){return"migrationWizard.videoList"}},{key:"regions",value:function(){return{videoListSort:{replaceElement:!0,el:".video-sorting-region"},videoList:{el:".video-list-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.SORT_VIDEOS,this.sort),this.listenTo(i.e.MIGRATION,i.i.MigrationWizard.TOGGLE_MIGRATED,this.toggleMigrated)}},{key:"toggleMigrated",value:function(e){this.collection&&0!==this.collection.length&&(this.collection=le.a.toggleMigrated(this.collection,e),this.render())}},{key:"sort",value:function(e){0!==this.collection.length&&(this.sortedBy=this.sortedBy===e?void 0:e,this.collection=le.a.sortVideos(this.collection,e,this.sortedBy===e),this.renderVideoList())}},{key:"renderEmptyMessage",value:function(){this.showChildView("videoList",new it({text:ie.a.getPhrase(this.lang,"noVideos")}))}},{key:"renderSortingRow",value:function(){this.showChildView("videoListSort",new B({collection:this.collection,folderChord:this.options.folderChord,searchTerm:this.options.searchTerm,channelName:this.options.channelName}))}},{key:"renderVideoList",value:function(){this.showChildView("videoList",new xe({folderChord:this.options.folderChord,collection:this.collection,searchTerm:this.options.searchTerm,supportSiteUrl:this.options.supportSiteUrl}))}},{key:"onRender",value:function(){this.renderSortingRow(),0!==this.collection.where({hidden:!1}).length?this.renderVideoList():this.renderEmptyMessage()}}])&&se(t.prototype,n),o&&se(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component),be=n(1386),ge=n.n(be);function me(e){return(me="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 ve(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 ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(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=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){if(t&&("object"===me(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 Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=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&&ke(e,t)}(i,e);var t,n,o,r=we(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"VideoListCollectionComponent"}},{key:"className",get:function(){return ge.a.videoList}},{key:"childView",get:function(){return re}},{key:"childViewOptions",get:function(){return{folderChord:this.options.folderChord,searchTerm:this.getOption("searchTerm"),supportSiteUrl:this.options.supportSiteUrl}}}])&&ve(t.prototype,n),o&&ve(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.ComponentCollection),Re=n(310),je=n(308),_e=n(1387),Se=n.n(_e),Pe=n(1388),Ee=n.n(Pe);function Te(e){return(Te="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 Ie(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 Me(e,t){return(Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(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=De(e);if(t){var r=De(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){if(t&&("object"===Te(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 De(e){return(De=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ne=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&&Me(e,t)}(i,e);var t,n,o,r=Be(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"w-100 p-2 pl-3 pr-3 ".concat(Se.a.banner)}},{key:"lang",get:function(){return"migrationWizard.banner"}},{key:"props",get:function(){return["config"]}},{key:"template",get:function(){return Ee.a}},{key:"viewOptions",value:function(){return{styles:Se.a,learnMoreUrl:this.getLearnMoreUrl()}}},{key:"getLearnMoreUrl",value:function(){var e,t;return Re.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),je.a.PublisherArchive,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode"))}}])&&Ie(t.prototype,n),o&&Ie(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),Le=n(1389),Ae=n.n(Le),We=n(1390),ze=n.n(We);function Ge(e){return(Ge="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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(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 Ke(e,t){return(Ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(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=Ye(e);if(t){var r=Ye(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){if(t&&("object"===Ge(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 Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Je=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&&Ke(e,t)}(i,e);var t,n,o,r=Ze(i);function i(){return Ue(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"SelectedVideoItemComponent"}},{key:"template",get:function(){return ze.a}},{key:"lang",get:function(){return"migrationWizard.selectedVideoItem"}},{key:"className",get:function(){return"ml-2 pt-1"}},{key:"viewOptions",value:function(){return{styles:Ae.a,folder:this.model.get("folderChord").split("->").join(" / "),videoCount:this.model.get("count")}}}])&&He(t.prototype,n),o&&He(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),$e=n(1391),Xe=n(1392),qe=n.n(Xe);function Qe(e){return(Qe="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 et(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 tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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=rt(e);if(t){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(e,t){if(t&&("object"===Qe(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 rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=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&&tt(e,t)}(i,e);var t,n,o,r=nt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"EmptyVideoListComponent"}},{key:"className",get:function(){return"d-flex justify-content-center align-items-center text-muted p-5 ".concat($e.videoList)}},{key:"template",get:function(){return qe.a}},{key:"viewOptions",value:function(){return{text:this.options.text}}}])&&et(t.prototype,n),o&&et(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),lt=n(1393),at=n.n(lt),ut=n(1394),ct=n.n(ut);function st(e){return(st="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 ft(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 pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yt(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=ht(e);if(t){var r=ht(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return dt(this,n)}}function dt(e,t){if(t&&("object"===st(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bt=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&&pt(e,t)}(i,e);var t,n,o,r=yt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ProgressBarComponent"}},{key:"className",get:function(){return this.options.class||""}},{key:"template",get:function(){return ct.a}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"viewOptions",value:function(){return{styles:at.a,background:this.options.backgroundClass,progress:this.options.percentage}}},{key:"update",value:function(){var e=this.getUI("progressBar"),t=this.getUI("progressText");e&&e.get(0)&&$(e.get(0)).css("width","".concat(this.model.get("percentage"),"%")),t&&t.get(0)&&$(t.get(0)).text("".concat(this.model.get("percentage"),"%"))}},{key:"onRender",value:function(){this.update()}}])&&ft(t.prototype,n),o&&ft(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component),gt=n(1128),mt=n(1191),vt=n(1395),kt=n.n(vt);function wt(e){return(wt="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 Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ct(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 xt(e,t){return(xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rt(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=_t(e);if(t){var r=_t(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return jt(this,n)}}function jt(e,t){if(t&&("object"===wt(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 _t(e){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var St=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&&xt(e,t)}(a,e);var t,n,r,l=Rt(a);function a(){var e;return Ot(this,a),(e=l.apply(this,arguments)).buttonDisabled=!0,e}return t=a,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=K.a.getInstance(i.g.MigrationVideo,this),this.bindListeners()}},{key:"name",get:function(){return"GenerateReportComponent"}},{key:"template",get:function(){return kt.a}},{key:"className",get:function(){return"dropdown-menu dropdown-menu-right dropdown-arrow"}},{key:"lang",get:function(){return"migrationWizard.generateReport"}},{key:"events",value:function(){return{"click .options":"onClickOptionsContainer","change #migrated-option":"onToggleMigratedOption","change #remaining-option":"onToggleRemainingOption","change #errored-option":"onToggleErroredOption","change #content-matched-option":"onToggleContentMatchedOption","click .generate-report":"onClickSubmit"}}},{key:"elements",get:function(){return{generateReportBtn:".generate-report"}}},{key:"bindListeners",value:function(){this.listenTo(i.e.MIGRATION,"get:migration:report:options",this.render)}},{key:"onClickOptionsContainer",value:function(e){e.stopPropagation()}},{key:"onToggleMigratedOption",value:function(){var e=this.reportOptions[C.d.Migrated];e.selected=!e.selected,this.updateButton()}},{key:"onToggleRemainingOption",value:function(){var e=this.reportOptions[C.d.Remaining];e.selected=!e.selected,this.updateButton()}},{key:"onToggleErroredOption",value:function(){var e=this.reportOptions[C.d.Errored];e.selected=!e.selected,this.updateButton()}},{key:"onToggleContentMatchedOption",value:function(){var e=this.reportOptions[C.d.ContentMatched];e.selected=!e.selected,this.updateButton()}},{key:"onClickSubmit",value:function(){this.buttonDisabled||o.a.AppLinkHelper.trigger({application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.GENERATE_CSV_REPORT,params:{options:mt.a.filterSelectedOptions(this.reportOptions)}})}},{key:"updateButton",value:function(){var e=this.getUI("generateReportBtn");mt.a.filterSelectedOptions(this.reportOptions).length?(this.buttonDisabled=!1,e.removeAttr("disabled")):(this.buttonDisabled=!0,e.attr("disabled","disabled"))}},{key:"fetchMigrationReportOptions",value:function(){var e=this;this.migrationVideoDataService.getMigrationReportOptions((function(t){e.reportOptions=mt.a.processValidReportOptions(t),e.render()}))}},{key:"viewOptions",value:function(){return{reportOptions:this.reportOptions}}},{key:"onRender",value:function(){this.reportOptions||this.fetchMigrationReportOptions()}}])&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.Component),Pt=n(1396),Et=n.n(Pt),Tt=n(1397),It=n.n(Tt);function Mt(e){return(Mt="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 Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vt(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 Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(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=At(e);if(t){var r=At(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Lt(this,n)}}function Lt(e,t){if(t&&("object"===Mt(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 At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wt=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&&Dt(e,t)}(i,e);var t,n,o,r=Nt(i);function i(){return Bt(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"GenerateReportButtonComponent"}},{key:"template",get:function(){return Et.a}},{key:"lang",get:function(){return"migrationWizard.generateReportButton"}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:It.a}}},{key:"onRender",value:function(){this.showChildView("options",new St)}}])&&Vt(t.prototype,n),o&&Vt(t,o),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.a.Component);n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return B})),n.d(t,"k",(function(){return H})),n.d(t,"e",(function(){return re})),n.d(t,"l",(function(){return he})),n.d(t,"m",(function(){return xe})),n.d(t,"a",(function(){return Ne})),n.d(t,"i",(function(){return Je})),n.d(t,"b",(function(){return it})),n.d(t,"f",(function(){return bt})),n.d(t,"g",(function(){return gt.a})),n.d(t,"d",(function(){return St})),n.d(t,"c",(function(){return Wt}))},1128:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),r=n(1189),i=n.n(r),l=n(1190),a=n.n(l);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(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 s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(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=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf: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&&s(e,t)}(l,e);var t,n,o,r=f(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:percentage",this.update)}},{key:"name",get:function(){return"ProgressCircleComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"migrationWizard.progressCircle"}},{key:"elements",get:function(){return{circle:".progress-circle",text:".progress-circle-text"}}},{key:"viewOptions",value:function(){return{styles:i.a,text:this.options.text,class:this.options.class,percentage:this.options.percentage}}},{key:"onRender",value:function(){this.update()}},{key:"update",value:function(){var e=this.model.get("percentage")||0,t=this.getUI("circle").get(0),n=2*t.r.baseVal.value*Math.PI;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=n;var o=n-e/100*n;t.style.strokeDashoffset=o;var r=this.getUI("text");r&&r.text("".concat(e,"%"))}}])&&c(t.prototype,n),o&&c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.a.Component)},1129:function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return o})),function(e){e[e.NeedsManualReview=-1]="NeedsManualReview",e[e.HasNotBeenMigrated=0]="HasNotBeenMigrated",e[e.MigratedByUser=1]="MigratedByUser"}(o||(o={}))},1130:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(1),r=n(2),i=n(91),l=n(1129),a={setChecked:function(e,t,n){e.set("selected",!1);var r=n&&e.get("viewsLast3Years")>0;(o.contains(t,e.id.toString())||r&&0===t.length)&&e.set("selected",!0)},sortVideos:function(e,t,n){var o="name";return e.comparator=function(e,r){e.keys().forEach((function(e){e===t&&(o=e)}));var i=e.get(o),l=r.get(o);return"string"==typeof i&&"string"==typeof l&&(i=i.toLowerCase(),l=l.toLowerCase()),i<l?n?1:-1:i>l?n?-1:1:0},e.sort(),e},toggleMigrated:function(e,t){return e.each((function(e){var n=e.get("migrationStatus")!==l.a.HasNotBeenMigrated,r=e.get("hidden");!o.isUndefined(t)&&n?e.set("hidden",t):n?e.set("hidden",!r):e.set("hidden",!1)})),e},getSelectedVideosCollection:function(e){var t=new r.a.Collection;return Object.keys(e).forEach((function(n){var o=e[n],r=o.id,l=o.folderChord,a=t.findWhere({folderChord:l});a?(a.set("count",a.get("count")+1),a.get("videoIds").push(r)):t.add(new i.f({count:1,folderChord:l,videoIds:[r]}))})),t.each((function(e){e.set("folderChord",e.get("folderChord"))})),t}}},1189:function(e,t,n){e.exports={circle:"_3iX0l",extraText:"_1nYnx",progressCircleContainer:"_2l1Al",progressCircle:"_1RbA5"}},1190:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.extraText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.circle:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.class:i,t))+'">\r\n <span>\r\n <span class="progress-circle-text">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(u,"progress",{name:"lang",hash:{percentage:null!=(i=null!=t?t.options:t)?i.percentage:i},data:r}))+"</span>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.text:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </span>\r\n\r\n <svg class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircleContainer:i,t))+'">\r\n <circle class="progress-circle '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressCircle:i,t))+'" transform=\'rotate(270 160 0)\' stroke-width="28" fill="transparent" r="150">\r\n </svg>\r\n</div>'},useData:!0})},1191:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(1),r=n(3),i=n(53);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a="migrationWizard.utils",u={getReportOptions:function(){var e;return l(e={},i.d.Migrated,{id:"migrated",type:"homemigrator.le.migration.migrated.report",labelText:r.a.getPhrase(a,"migratedOption")}),l(e,i.d.Remaining,{id:"remaining",type:"homemigrator.le.migration.videos.remaining.report",labelText:r.a.getPhrase(a,"remainingOption")}),l(e,i.d.Errored,{id:"errored",type:"homemigrator.le.migration.error.report",labelText:r.a.getPhrase(a,"erroredOption")}),l(e,i.d.ContentMatched,{id:"content-matched",type:"homemigrator.le.migration.content.matched.report",labelText:r.a.getPhrase(a,"linkedOption")}),e},processValidReportOptions:function(e){var t=this.getReportOptions(),n={};return o.each(o.keys(t),(function(r){o.contains(e,t[r].type)&&(n[r]=t[r])})),n},filterSelectedOptions:function(e){return o.filter(o.keys(e),(function(t){return e[t].selected})).map((function(t){return e[t].id}))},getSelectedOptionsText:function(e){var t=this.getReportOptions();return o.filter(o.keys(t),(function(n){return o.contains(e,t[n].id)})).map((function(e){return t[e].labelText}))}}},1381: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tabContainer:i,t))+' position-relative">\r\n <a class="col-4 p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.publisherArchiveAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"addVideos",{name:"lang",hash:{},data:r}))+'</h1></a>\r\n <a class="p-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.reviewErroredAppLink:i,t))+'"><h1 class="m-0 h5">'+a((n.lang||t&&t.lang||c).call(u,"migrationWarnings",{name:"lang",hash:{},data:r}))+'<span class="ml-2 svg-container d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.warningSvg:i,t))?i:"")+'</span></h1></a>\r\n <div class="generate-report-region"></div>\r\n</div>'},useData:!0})},1382: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="col-8">\r\n <div class="select-all"></div>\r\n <div class="align-middle d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortTitle",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+'</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="col-4 pr-3 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.sortOption:i,t))+'">\r\n <span>'+a((n.lang||t&&t.lang||c).call(u,"sortViews",{name:"lang",hash:{},data:r}))+'</span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.sortSvg:i,t))?i:"")+"</span>\r\n </span>\r\n</div>"},useData:!0})},1383:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="applink-back btn btn-secondary '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"back",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="align-middle '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.statusBarMessage:i,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosSelected",{name:"lang",hash:{videoCount:null!=(i=null!=t?t.options:t)?i.videoCount:i,smartCount:null!=(i=null!=t?t.options:t)?i.numberAvailable:i},data:r}))+"\r\n </span>\r\n"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.lambda,u=e.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showBackButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-6">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showSelected:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-2 text-right">\r\n <button class="applink-next btn btn-primary '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.nextDisabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+">\r\n "+u(a(null!=(i=null!=t?t.options:t)?i.text:i,t))+"\r\n </button>\r\n </div>\r\n</div>"},useData:!0})},1384:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"text-muted"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-remigrate cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"readd",{name:"lang",hash:{},data:r}))+"</a>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="applink-show cursor-pointer '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewLink:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"details",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,u=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="row no-gutters">\r\n <div class="col-8">\r\n <div class="bulk-checkbox-region '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkCheckbox:i,t))+'"></div>\r\n <a class="applink-show align-middle cursor-pointer mt-2 '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoTitle:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+u("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n </div>\r\n <div class="col-4 position-static">\r\n <div class="row no-gutters">\r\n <div class="col-11 text-right pr-2">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.migrated:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.program(5,r,0),data:r}))?i:"")+' <div class="'+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.viewCount:i,t))+'">\r\n <span>\r\n '+u((n.lang||t&&t.lang||s).call(c,"views",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.views:i},data:r}))+'\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-1 d-flex justify-content-center position-static">\r\n <div class="error-code-region"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1385: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){return'<div class="video-sorting-region"></div>\r\n<div class="video-list-region"></div>'},useData:!0})},1386:function(e,t,n){e.exports={videoList:"_3RFYO"}},1387:function(e,t,n){e.exports={banner:"O5CMF",learnMore:"MjcUE"}},1388: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){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<span class="text-white mr-1">'+u((n.lang||t&&t.lang||a).call(l,"banner",{name:"lang",hash:{},data:r}))+'</span>\r\n<a href="'+u(c(null!=(i=null!=t?t.options:t)?i.learnMoreUrl:i,t))+'" class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.learnMore:i,t))+'" target="_blank">'+u((n.lang||t&&t.lang||a).call(l,"learnMore",{name:"lang",hash:{},data:r}))+"</a>"},useData:!0})},1389:function(e,t,n){e.exports={category:"BSPKV"}},1390: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 null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"selectedVideos",{name:"lang",hash:{folder:null!=(i=null!=t?t.options:t)?i.folder:i,className:null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.category:i,smartCount:null!=(i=null!=t?t.options:t)?i.videoCount:i},data:r}))?i:""},useData:!0})},1391:function(e,t,n){e.exports={videoList:"_3TgUv"}},1392: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'<h3 class="m-0">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</h3>"},useData:!0})},1393:function(e,t,n){e.exports={progressBarContainter:"_1aNlZ",progressBar:"_325nt"}},1394: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){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="row">\r\n <div class="col-11 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBarContainter:i,t))+' pl-0">\r\n <div class="progress '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'">\r\n <div class="progress-bar '+a(l(null!=(i=null!=t?t.options:t)?i.background:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.progressBar:i,t))+'" role="progressbar" aria-valuenow="'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n </div>\r\n </div>\r\n <div class="col-1 pr-0">\r\n <span class="float-right progress-text">'+a(l(null!=(i=null!=t?t.options:t)?i.progress:i,t))+"%</span>\r\n </div>\r\n</div>\r\n\r\n"},useData:!0})},1395:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i=e.lambda,l=e.escapeExpression;return' <div class="d-flex py-1">\r\n <div class="custom-control custom-checkbox">\r\n <input id="'+l(i(null!=t?t.id:t,t))+'-option" name="checkbox-'+l(i(null!=t?t.id:t,t))+'" type="checkbox" class="custom-control-input cursor-pointer">\r\n <label class="custom-control-label cursor-pointer" for="'+l(i(null!=t?t.id:t,t))+'-option"> </label>\r\n </div>\r\n <label for="'+l(i(null!=t?t.id:t,t))+'-option">'+l(i(null!=t?t.labelText:t,t))+"</label>\r\n </div> \r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<h1 class="h5 py-1 mx-2">'+u((n.lang||t&&t.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h1>\r\n<div class="dropdown-divider"></div>\r\n<p class="m-2 mt-0">'+u((n.lang||t&&t.lang||a).call(l,"options",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n<div class="mx-2 options">\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.reportOptions:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="dropdown-divider"></div>\r\n<div class="mr-3">\r\n <button class="btn btn-primary w-100 mx-2 generate-report" disabled>'+u((n.lang||t&&t.lang||a).call(l,"generate",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>"},useData:!0})},1396: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){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.generateReport:i,t))+' mr-2"\r\n>\r\n <div class="btn btn-link border px-2 my-2">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"generateReport",{name:"lang",hash:{},data:r}))+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},1397:function(e,t,n){e.exports={generateReport:"_2PRgW"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[60],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[60],{1371:function(n,t,e){n.exports={backupImage:"_10r2k",info:"_1O7-y",button:"_1cN_3",bolder:"bxulh",question:"_2OYs-",collapse:"_1dD-L",collapseContents:"_2sqEn",migrationBackupContainer:"_2Hcov"}},1372:function(n,t,e){var l=e(10);n.exports=(l.default||l).template({compiler:[8,">= 4.3.0"],main:function(n,t,e,l,a){n.propertyIsEnumerable;var o,r,i=null!=t?t:n.nullContext||{},c=n.hooks.helperMissing,s=n.escapeExpression,u=n.lambda;return'<div class="row mb-2">\r\n <h4 class="col-12">'+s((e.lang||t&&t.lang||c).call(i,"heading",{name:"lang",hash:{},data:a}))+'</h4>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-12">\r\n <p>\r\n '+s((e.lang||t&&t.lang||c).call(i,"toSucceed",{name:"lang",hash:{},data:a}))+'\r\n </p>\r\n </div>\r\n</div>\r\n\r\n<div class="row mt-3 d-block p-3 '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.question:o,t))+'">\r\n <p class="text-center text-white">'+s((e.lang||t&&t.lang||c).call(i,"check",{name:"lang",hash:{},data:a}))+'</p>\r\n\r\n <div id="accordion">\r\n <button type="button" class="btn bg-white btn-block '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.button:o,t))+' mb-2 mt-2" data-toggle="collapse" data-target="#collapseYes" aria-expanded="true" aria-controls="collapseYes">'+s((e.lang||t&&t.lang||c).call(i,"checkConfirm",{name:"lang",hash:{},data:a}))+'</button>\r\n <div id="collapseYes" class="collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.collapse:o,t))+'" aria-labelledby="collapseYes" data-parent="#accordion">\r\n <hr>\r\n <div class="text-center '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.collapseContents:o,t))+'">\r\n <p class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.bolder:o,t))+'">\r\n '+s((e.lang||t&&t.lang||c).call(i,"downloadAndRun",{name:"lang",hash:{},data:a}))+"\r\n <br>\r\n ("+s((e.lang||t&&t.lang||c).call(i,"contactAdmin",{name:"lang",hash:{},data:a}))+')\r\n </p>\r\n <a class="text-white text-center btn btn-primary" target="_blank" href='+s("function"==typeof(r=null!=(r=e.downloadUrl||(null!=t?t.downloadUrl:t))?r:c)?r.call(i,{name:"downloadUrl",hash:{},data:a}):r)+">"+s((e.lang||t&&t.lang||c).call(i,"download",{name:"lang",hash:{},data:a}))+'</a>\r\n </div>\r\n </div>\r\n\r\n <button type="button" class="btn bg-white btn-block '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.button:o,t))+' mb-2 mt-2" data-toggle="collapse" data-target="#collapseNo" aria-expanded="true" aria-controls="collapseNo">'+s((e.lang||t&&t.lang||c).call(i,"checkDecline",{name:"lang",hash:{},data:a}))+'</button>\r\n <div id="collapseNo" class="collapse mb-2 mt-2 pl-3 pr-3 pb-3 pt-1 '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.collapse:o,t))+'" aria-labelledby="collapseNo" data-parent="#accordion">\r\n <hr>\r\n <div class="text-center '+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.collapseContents:o,t))+'">\r\n <p class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.bolder:o,t))+'">\r\n '+s((e.lang||t&&t.lang||c).call(i,"toComplete",{name:"lang",hash:{},data:a}))+'<a class="info-link" target="_blank" href="'+s(u(null!=(o=null!=t?t.options:t)?o.supportUrl:o,t))+'">'+s((e.lang||t&&t.lang||c).call(i,"helpArticle",{name:"lang",hash:{},data:a}))+"</a>.\r\n <br>\r\n "+s((e.lang||t&&t.lang||c).call(i,"contactAdmin",{name:"lang",hash:{},data:a}))+'\r\n </p>\r\n <p class="'+s(u(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.bolder:o,t))+'">\r\n '+(null!=(o=(e.lang||t&&t.lang||c).call(i,"bookAppointment",{name:"lang",hash:{appointmentUrl:null!=(o=null!=t?t.options:t)?o.appointmentUrl:o,className:"info-link"},data:a}))?o:"")+"\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n</div>"},useData:!0})},1459:function(n,t,e){"use strict";e.r(t),e.d(t,"PublisherBackupView",(function(){return S}));var l=e(57),a=e(2),o=e(5),r=e(3),i=e(1371),c=e.n(i),s=e(1372),u=e.n(s),p=e(58),d=e(0),f=e(201),g=e(308),b=e(310),h=e(144);function y(n){return(y="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 m(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var e=0;e<t.length;e++){var l=t[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function k(n,t){return(k=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function w(n){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(n){return!1}}();return function(){var e,l=O(n);if(t){var a=O(this).constructor;e=Reflect.construct(l,arguments,a)}else e=l.apply(this,arguments);return _(this,e)}}function _(n,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(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function O(n){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var S=function(n){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&k(n,t)}(y,n);var t,e,i,s=w(y);function y(){return m(this,y),s.apply(this,arguments)}return t=y,(e=[{key:"initialize",value:function(){this.migrationVideoDataService=o.a.getInstance(d.g.MigrationVideo,this),this.listenTo(d.e.MIGRATION,"".concat(d.f.BACKUP_TOOL,":sync"),this.render)}},{key:"name",get:function(){return"PublisherBackupView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.publisherBackup"}},{key:"className",get:function(){return"container p-4 bg-white ".concat(c.a.migrationBackupContainer," ").concat(c.a.info)}},{key:"template",get:function(){return u.a}},{key:"pollCloudSyncStatus",value:function(){var n=this;this.migrationVideoDataService.clearCacheAndGetCustomerMetadata((function(t){p.a.backupProcessing(t)?a.a.AppLinkHelper.trigger({application:d.b.MIGRATION_WIZARD,action:d.a.MigrationWizard.BACKUP_PROGRESS}):p.a.backupComplete(t)?a.a.AppLinkHelper.trigger({application:d.b.MIGRATION_WIZARD,action:d.a.MigrationWizard.BACKUP_COMPLETE}):setTimeout((function(){return n.pollCloudSyncStatus()}),3e4)}))}},{key:"requiredResources",get:function(){return{config:f.b.config,currentUser:h.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.model=this.migrationVideoDataService.getBackupTool(this.config.get("pbtDownloadChannel")),!!this.model}},{key:"viewOptions",value:function(){var n,t;return{styles:c.a,supportUrl:b.a.getArticle(null===(n=this.config)||void 0===n?void 0:n.get("supportSiteUrl"),g.a.PublisherServer,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),appointmentUrl:"".concat(l.a.safeUrlConcat(this.config.get("marketingSiteUrl"),"/library-editor/book-appointment"))}}},{key:"onRender",value:function(){this.pollingStarted||(this.pollCloudSyncStatus(),this.pollingStarted=!0)}}])&&v(t.prototype,e),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),y}(a.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[61],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[61],{1398:function(n,e,l){n.exports={videosAdded:"_2mvcb",migrationContainer:"_kJhb",info:"wszk6",image:"_1HF1l",publisherLink:"_2SXoK",icon:"_2wZJN"}},1399:function(n,e,l){var t=l(10);n.exports=(t.default||t).template({1:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,o=n.escapeExpression,s=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added.png" class="'+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+o((l.lang||e&&e.lang||u).call(s,"heading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(s,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(2,a,0),inverse:n.program(4,a,0),data:a}))?r:"")+" "+o((l.lang||e&&e.lang||u).call(s,"tip1",{name:"lang",hash:{},data:a}))+'\r\n <span class="'+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.publisherLink:r,e))+'">\r\n <span class="d-inline-block align-middle '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.icon:r,e))+'">'+(null!=(r=i(null!=(r=null!=e?e.options:e)?r.publisherIcon:r,e))?r:"")+"</span>\r\n "+o((l.lang||e&&e.lang||u).call(s,"tip2",{name:"lang",hash:{},data:a}))+'\r\n </span>\r\n </span>\r\n <a class="btn btn-primary m-2 applink-start '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(s,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(6,a,0),inverse:n.program(8,a,0),data:a}))?r:"")+" </a>\r\n"},2:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"firstTime",{name:"lang",hash:{},data:a}))+"\r\n"},4:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"notFirstTime",{name:"lang",hash:{},data:a}))+"\r\n"},6:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"start",{name:"lang",hash:{},data:a}))+"\r\n"},8:function(n,e,l,t,a){n.propertyIsEnumerable;return" "+n.escapeExpression((l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"continue",{name:"lang",hash:{},data:a}))+" \r\n"},10:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,o=n.escapeExpression,s=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added-warning.png" class="'+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+o((l.lang||e&&e.lang||u).call(s,"warningHeading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n '+(null!=(r=(l.lang||e&&e.lang||u).call(s,"issues",{name:"lang",hash:{},data:a}))?r:"")+' \r\n <span class="'+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.publisherLink:r,e))+'">\r\n <span class="d-inline-block align-middle '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.icon:r,e))+'">'+(null!=(r=i(null!=(r=null!=e?e.options:e)?r.publisherIcon:r,e))?r:"")+"</span>\r\n </span>\r\n "+o((l.lang||e&&e.lang||u).call(s,"tip2",{name:"lang",hash:{},data:a}))+"\r\n </span>\r\n"+(null!=(r=l.if.call(s,null!=(r=null!=e?e.options:e)?r.firstTime:r,{name:"if",hash:{},fn:n.program(11,a,0),inverse:n.program(13,a,0),data:a}))?r:"")},11:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"startOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",startClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:a}))?r:"")+"\r\n"},13:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"continueOrReview",{name:"lang",hash:{reviewClasses:"applink-migration-warnings text-underline",continueClasses:"btn btn-primary m-2 applink-start {{options.styles.info}}"},data:a}))?r:"")+"\r\n"},15:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=n.lambda,o=n.escapeExpression,s=null!=e?e:n.nullContext||{},u=n.hooks.helperMissing;return' <img src="/images/added-error.png" class="'+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.image:r,e))+' d-block p-3">\r\n <h4>'+o((l.lang||e&&e.lang||u).call(s,"errorsHeading",{name:"lang",hash:{},data:a}))+'</h4>\r\n <span class="p-2 d-block '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n'+(null!=(r=l.if.call(s,null!=(r=null!=e?e.options:e)?r.successes:r,{name:"if",hash:{},fn:n.program(16,a,0),inverse:n.noop,data:a}))?r:"")+" "+(null!=(r=(l.lang||e&&e.lang||u).call(s,"reviews",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.warnings:r},data:a}))?r:"")+'\r\n </span>\r\n <button class="btn btn-primary m-2 applink-migration-warnings '+o(i(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.info:r,e))+'">\r\n '+o((l.lang||e&&e.lang||u).call(s,"goToReview",{name:"lang",hash:{},data:a}))+"\r\n </button>\r\n"},16:function(n,e,l,t,a){var r;n.propertyIsEnumerable;return" "+(null!=(r=(l.lang||e&&e.lang||n.hooks.helperMissing).call(null!=e?e:n.nullContext||{},"successes",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.successes:r},data:a}))?r:"")+" \r\n"},compiler:[8,">= 4.3.0"],main:function(n,e,l,t,a){n.propertyIsEnumerable;var r,i=null!=e?e:n.nullContext||{};return(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showSuccess:r,{name:"if",hash:{},fn:n.program(1,a,0),inverse:n.noop,data:a}))?r:"")+(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showWarning:r,{name:"if",hash:{},fn:n.program(10,a,0),inverse:n.noop,data:a}))?r:"")+(null!=(r=l.if.call(i,null!=(r=null!=e?e.options:e)?r.showError:r,{name:"if",hash:{},fn:n.program(15,a,0),inverse:n.noop,data:a}))?r:"")},useData:!0})},1464:function(n,e,l){"use strict";l.r(e),l.d(e,"VideosAddedView",(function(){return b}));var t=l(2),a=l(5),r=l(16),i=l(0),o=l(3),s=l(1398),u=l.n(s),c=l(1399),p=l.n(c);function g(n){return(g="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 h(n,e){for(var l=0;l<e.length;l++){var t=e[l];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function f(n,e){return(f=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function d(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 l,t=y(n);if(e){var a=y(this).constructor;l=Reflect.construct(t,arguments,a)}else l=t.apply(this,arguments);return m(this,l)}}function m(n,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(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function y(n){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var b=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&&f(n,e)}(c,n);var e,l,t,s=d(c);function c(n){return function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,n)}return e=c,(l=[{key:"initialize",value:function(){this.migrationVideoDataService=a.a.getInstance(i.g.MigrationVideo,this),this.listenTo(i.e.MIGRATION,"".concat(i.f.FINALISATION,":").concat(this.options.finalisationTaskId,":sync"),this.render)}},{key:"name",get:function(){return"VideosAddedView"}},{key:"title",get:function(){return o.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.videosAdded"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"".concat(u.a.migrationContainer," text-center p-3 bg-white ").concat(u.a.videosAdded)}},{key:"appLinks",get:function(){return{".applink-start":{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.HOME},".applink-migration-warnings":{application:i.b.MIGRATION_WIZARD,action:i.a.MigrationWizard.MIGRATION_ERRORS}}}},{key:"showError",value:function(){return!this.options.firstTime&&this.model.get("videosWithWarning")}},{key:"showWarning",value:function(){return!(!this.options.firstTime||!this.model.get("videosWithWarning"))}},{key:"showSuccess",value:function(){return!this.model.get("videosWithWarning")}},{key:"viewOptions",value:function(){return{styles:u.a,publisherIcon:r.a.getSvg(r.b.PublisherArchive),firstTime:this.options.firstTime,showSuccess:this.showSuccess(),showWarning:this.showWarning(),showError:this.showError(),successes:this.model.get("successfullyProcessed"),warnings:this.model.get("videosWithWarning")}}},{key:"onBeforeRender",value:function(){var n=this;return!!this.model||(this.migrationVideoDataService.clearCacheAndGetManualReviewVideoCount(),this.migrationVideoDataService.getFinalisationTask(this.options.finalisationTaskId,(function(e){n.model=e,n.render()})),!1)}}])&&h(e.prototype,l),t&&h(e,t),Object.defineProperty(e,"prototype",{writable:!1}),c}(t.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[62],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[62],{1042: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 s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||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 o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(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: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&&u(e,t)}(l,e);var t,n,r,i=c(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(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}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.a.Model)},1195:function(e,t,n){"use strict";var r=n(3),o="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return r.a.getPhrase(o,"selectFolder")}},a={message:[{required:!0,msg:function(){return r.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}))},1343: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){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return"<p><strong>"+a(e.lambda(null!=(i=null!=t?t.video:t)?i.name:i,t))+"</strong> "+a((n.lang||t&&t.lang||u).call(s,"notAddedToLibrary",{name:"lang",hash:{},data:o}))+'</p>\r\n<div class="form-group">\r\n <label for="message">'+a((n.lang||t&&t.lang||u).call(s,"provideMessageForUser",{name:"lang",hash:{lastName:null!=(i=null!=t?t.user:t)?i.surname:i,firstName:null!=(i=null!=t?t.user:t)?i.username:i},data:o}))+'</label>\r\n <textarea class="form-control" id="message" name="message" autofocus></textarea>\r\n <div class="form-feedback"></div>\r\n</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})},1450:function(e,t,n){"use strict";n.r(t),n.d(t,"RejectStaffRequestView",(function(){return T}));var r=n(6),o=n(2),i=n(30),a=n(5),s=n(4),u=n(42),c=n(305),l=n(265),f=n(1042),p=n(0),d=n(13),h=n(3),y=n(1195),b=n(1343),m=n.n(b);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 w(e,t){return(w=Object.setPrototypeOf||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=k(e);if(t){var o=k(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"===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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var T=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&&w(e,t)}(R,e);var t,n,b,g=S(R);function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),g.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.staffRequestDataService=a.a.getInstance(p.g.StaffRequests,this),this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"RejectStaffRequestView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"staffRequests.rejectStaffRequest"}},{key:"template",get:function(){return m.a}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.requestId)}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:h.a.getPhrase(this.lang,"rejectCheck"),size:"modal-md",spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:h.a.getPhrase(this.lang,"reject"),extraButtonClass:"btn-danger",onClick:function(t){return e.onSubmit(t)},tooltip:function(){return e.getBtnTooltipOptions()}}},{behaviorClass:c.f,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=message]":{observe:"message",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){var e="".concat(p.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(p.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(p.e.STAFF_REQUEST,"".concat(e,":error"),this.redirectToHome);var t="".concat(p.f.STAFF_REQUESTS,":").concat(this.options.requestId,":update");this.listenTo(p.e.STAFF_REQUEST,"".concat(t,":sync"),this.redirectToHome),this.listenTo(p.e.STAFF_REQUEST,"".concat(t,":error"),this.redirectToHome),this.listenTo(this.viewModel,"change",this.onChange)}},{key:"getViewModel",value:function(){this.viewModel=i.a.get(this.viewModelName),this.viewModel.addValidation(y.b)}},{key:"getBtnTooltipOptions",value:function(){if(!this.viewModel.isValid())return{title:h.a.getPhrase(this.lang,"provideMessage")}}},{key:"onChange",value:function(){this.spinnerModel.set(l.c.Disabled,!1===this.viewModel.isValid())}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(l.b.ShowSpinner),this.staffRequestDataService.rejectStaffRequest(this.options.requestId,this.viewModel.get("message")),this.logAction())}},{key:"logAction",value:function(){var e={location:s.LocationContext.Popup,actionType:s.UserAction.Reject,entity:s.EntityType.StaffRequest,workflowPhase:s.WorkflowPhase.Complete},t={id:this.options.requestId,videoId:this.model.get("video")&&this.model.get("video").id,requestingUserId:this.model.get("user")&&this.model.get("user").id,sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").id,sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").id};u.a.logUserAction(t,e)}},{key:"redirectToHome",value:function(){o.a.AppLinkHelper.trigger({application:p.b.STAFF_REQUESTS,action:p.a.StaffRequests.HOME})}},{key:"onBeforeRender",value:function(){this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:d.r.getSpinner({size:d.s.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){r.Validation.bind(this,{model:this.viewModel})}}])&&v(t.prototype,n),b&&v(t,b),Object.defineProperty(t,"prototype",{writable:!1}),R}(o.a.View)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[63],{
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[63],{1354: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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression,s=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||n&&n.lang||l).call(i,"uploadVideos",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="my-3">\r\n <img src="/images/upload/upload-vid@2x.png" class="'+c(s(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.uploadImage:a,n))+'" />\r\n </div>\r\n <div>\r\n <button class="btn btn-primary choose-files">'+c((t.lang||n&&n.lang||l).call(i,"chooseVideo",{name:"lang",hash:{},data:o}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||n&&n.lang||l).call(i,"dragDrop",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n</div>\r\n<div class="p-3 bg-white container-fluid">\r\n <div class="row">\r\n <div class="col-4">\r\n <h4>'+c((t.lang||n&&n.lang||l).call(i,"help",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+c(s(null!=(a=null!=n?n.options:n)?a.uploadArticleUrl:a,n))+'" target="_blank">'+c((t.lang||n&&n.lang||l).call(i,"instructionsHeading",{name:"lang",hash:{},data:o}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-8">\r\n <h4>'+c((t.lang||n&&n.lang||l).call(i,"termsHeading",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||n&&n.lang||l).call(i,"term1",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+c((t.lang||n&&n.lang||l).call(i,"term2",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+(null!=(a=(t.lang||n&&n.lang||l).call(i,"term3",{name:"lang",hash:{classNames:null!=(a=null!=n?n.options:n)?a.classNames:a,uploadTermsUrl:null!=(a=null!=n?n.options:n)?a.uploadTermsUrl:a},data:o}))?a:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})},1355:function(e,n,t){e.exports={uploadImage:"_2qNTM"}},1456:function(e,n,t){"use strict";t.r(n),t.d(n,"FileSelectView",(function(){return x}));var r=t(1),o=t(2),a=t(5),i=t(3),l=t(57),c=t(201),s=t(4),u=t(42),p=t(0),d=t(1354),f=t.n(d),h=t(1355),g=t.n(h),y=t(317),m=t(45),v=t(310),b=t(308),w=t(496);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function S(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 _(e,n){return(_=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function O(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=E(e);if(n){var o=E(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return T(this,t)}}function T(e,n){if(n&&("object"===k(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 E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=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&&_(e,n)}(h,e);var n,t,o,d=O(h);function h(){return U(this,h),d.apply(this,arguments)}return n=h,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,m.a.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=a.a.getInstance(p.x.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return f.a}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.a.mapInteractionType(n)};u.a.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:c.b.config,currentUser:w.a.currentUser}}},{key:"viewOptions",value:function(){var e,n;return{styles:g.a,uploadArticleUrl:v.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),b.a.UploadToLibraryEditor,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),uploadTermsUrl:this.config?l.a.safeUrlConcat(this.config.get("marketingSiteUrl"),p.r.UploadingUserContent):"",classNames:"info-link"}}}])&&S(n.prototype,t),o&&S(n,o),Object.defineProperty(n,"prototype",{writable:!1}),h}(o.a.View)}}]);
|