@clickview/library-editor 1.63.0-rc.1 → 1.64.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{5193-library-editor-b0081783ab.chunk.css → 2781-library-editor-054108e3bf.chunk.css} +5 -4
- package/dist/css/{336-library-editor-ebbdf687fd.chunk.css → 336-library-editor-0763858934.chunk.css} +2 -2
- package/dist/css/{library-editor-app-2321c4f5e3.css → library-editor-app-17d6a6644c.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/2781-efa54c8c8c.chunk.js +2 -0
- package/dist/scripts/{3236-6956d24163.chunk.js → 3236-24a5bf1bb8.chunk.js} +2 -2
- package/dist/scripts/336-86a858ee3c.chunk.js +2 -0
- package/dist/scripts/3475-c2090d0f65.chunk.js +1 -0
- package/dist/scripts/3664-7bab52835f.chunk.js +1 -0
- package/dist/scripts/4096-2f0afc78f8.chunk.js +1 -0
- package/dist/scripts/4201-f856bd659a.chunk.js +1 -0
- package/dist/scripts/4796-1b85c00672.chunk.js +2 -0
- package/dist/scripts/{5513-77d89142ce.chunk.js → 5513-1c7c464e84.chunk.js} +1 -1
- package/dist/scripts/{5972-988de17e3f.chunk.js → 5972-e170671a7c.chunk.js} +1 -1
- package/dist/scripts/6591-62947b6aea.chunk.js +1 -0
- package/dist/scripts/{6768-aab63a1809.chunk.js → 6768-416924be66.chunk.js} +1 -1
- package/dist/scripts/{7197-faf24e915d.chunk.js → 7197-35da0227f2.chunk.js} +1 -1
- package/dist/scripts/{777-1328221d09.chunk.js → 777-03d78e4162.chunk.js} +1 -1
- package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/8306-7e1ecc6b80.chunk.js +1 -0
- package/dist/scripts/9096-ce7dabfccf.chunk.js +1 -0
- package/dist/scripts/{9219-925a2f0d6d.chunk.js → 9219-5a71a27c3e.chunk.js} +1 -1
- package/dist/scripts/95-d04a83d83f.chunk.js +1 -0
- package/dist/scripts/968-b8e7ead008.chunk.js +1 -0
- package/dist/scripts/9743-d88fb1f700.chunk.js +1 -0
- package/dist/scripts/bundle-64721692b2.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/3288-library-editor-cbe896c46a.chunk.css +0 -1
- package/dist/scripts/3288-bab20aa94e.chunk.js +0 -1
- package/dist/scripts/336-632ad6b1fd.chunk.js +0 -2
- package/dist/scripts/3475-896a4bf034.chunk.js +0 -1
- package/dist/scripts/3664-1de6858c52.chunk.js +0 -1
- package/dist/scripts/4096-884ca2d342.chunk.js +0 -1
- package/dist/scripts/4201-8856b389f1.chunk.js +0 -1
- package/dist/scripts/4796-71f3b01af9.chunk.js +0 -2
- package/dist/scripts/5193-c993e0b42c.chunk.js +0 -1
- package/dist/scripts/6591-4e6eb900d4.chunk.js +0 -1
- package/dist/scripts/7153-2e88379ef0.chunk.js +0 -1
- package/dist/scripts/9096-ebb6d8925e.chunk.js +0 -1
- package/dist/scripts/95-999936425e.chunk.js +0 -1
- package/dist/scripts/968-ba17f0be6f.chunk.js +0 -1
- package/dist/scripts/9743-bfa716d7eb.chunk.js +0 -1
- package/dist/scripts/bundle-e7e41a68f2.min.js +0 -2
- /package/dist/scripts/{1010-0051447919.chunk.js → 1010-9c54dac5ec.chunk.js} +0 -0
- /package/dist/scripts/{1115-538343833e.chunk.js → 1115-189174d1dd.chunk.js} +0 -0
- /package/dist/scripts/{1318-d8b9d84472.chunk.js → 1318-11b8de6498.chunk.js} +0 -0
- /package/dist/scripts/{1524-2f444ac3ec.chunk.js → 1524-ae7b7beeda.chunk.js} +0 -0
- /package/dist/scripts/{2591-384c8c6cac.chunk.js → 2591-730e72b14a.chunk.js} +0 -0
- /package/dist/scripts/{3236-6956d24163.chunk.js.LICENSE.txt → 2781-efa54c8c8c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{299-e0377b8731.chunk.js → 299-f415ca8856.chunk.js} +0 -0
- /package/dist/scripts/{336-632ad6b1fd.chunk.js.LICENSE.txt → 3236-24a5bf1bb8.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3305-dc6932b39d.chunk.js → 3305-d21eab0110.chunk.js} +0 -0
- /package/dist/scripts/{4796-71f3b01af9.chunk.js.LICENSE.txt → 336-86a858ee3c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3373-39774fb619.chunk.js → 3373-c35e99d4f4.chunk.js} +0 -0
- /package/dist/scripts/{3391-79af5afacd.chunk.js → 3391-c1544af17d.chunk.js} +0 -0
- /package/dist/scripts/{3643-8f1bb9fe5a.chunk.js → 3643-877406d207.chunk.js} +0 -0
- /package/dist/scripts/{3873-f1118739a9.chunk.js → 3873-32cef8b267.chunk.js} +0 -0
- /package/dist/scripts/{4245-8b0c56357d.chunk.js → 4245-09abccc77c.chunk.js} +0 -0
- /package/dist/scripts/{7197-faf24e915d.chunk.js.LICENSE.txt → 4796-1b85c00672.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5327-22e2dcce4b.chunk.js → 5327-c4b6d0885a.chunk.js} +0 -0
- /package/dist/scripts/{5346-e31d4e982b.chunk.js → 5346-4a50d1fd29.chunk.js} +0 -0
- /package/dist/scripts/{5424-78b4a60a70.chunk.js → 5424-843a480e1a.chunk.js} +0 -0
- /package/dist/scripts/{576-c984785d03.chunk.js → 576-b7bc67c359.chunk.js} +0 -0
- /package/dist/scripts/{6239-f2b11c31b2.chunk.js → 6239-b13c96eaf8.chunk.js} +0 -0
- /package/dist/scripts/{6350-f5d0b9b443.chunk.js → 6350-ebae8f11b0.chunk.js} +0 -0
- /package/dist/scripts/{6467-48cc8b5479.chunk.js → 6467-eae5f517db.chunk.js} +0 -0
- /package/dist/scripts/{6677-4118a57ece.chunk.js → 6677-5c66883ffc.chunk.js} +0 -0
- /package/dist/scripts/{6796-0794258bfc.chunk.js → 6796-d47d2fa948.chunk.js} +0 -0
- /package/dist/scripts/{7071-19ad9a324d.chunk.js → 7071-e41e06917b.chunk.js} +0 -0
- /package/dist/scripts/{777-1328221d09.chunk.js.LICENSE.txt → 7197-35da0227f2.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7366-2f7da593c6.chunk.js → 7366-4b7b22791a.chunk.js} +0 -0
- /package/dist/scripts/{7384-80e81af49f.chunk.js → 7384-8f86b79bd6.chunk.js} +0 -0
- /package/dist/scripts/{8862-4e8a2dc34f.chunk.js → 8862-292b678cef.chunk.js} +0 -0
- /package/dist/scripts/{8915-75cddb9442.chunk.js → 8915-e31f2d1282.chunk.js} +0 -0
- /package/dist/scripts/{9082-c3c4b347ad.chunk.js → 9082-ad6d7d2f96.chunk.js} +0 -0
- /package/dist/scripts/{9928-f23b5324b7.chunk.js → 9928-0d83a09f31.chunk.js} +0 -0
- /package/dist/scripts/{bundle-e7e41a68f2.min.js.LICENSE.txt → bundle-64721692b2.min.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.go5qS{width:13rem}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3288],{3288:function(e,t,n){"use strict";n.r(t),n.d(t,{GeneratePastReleasesPdfView:function(){return T}});var r=n(21161),i=n(21679),o=n(57857),a=n(31647),l=n(10657),s=n(52076),u=n(70065),c=n(10101),f=n(88172),p=n(45390),d=n(3059),h=n(67670),b=n(19226),y=n(93569),g=n(39090),v=n(44937),m=n(29569),j=n.n(m),S={image:"go5qS"};function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function O(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}var T=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=k(t),function(e,t){if(t&&("object"==P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],k(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(t,e),n=t,(a=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(p.Or.Library,this),this.contentUpdatesDataService=i.u.getInstance(p.Or.ContentUpdates,this),this.exportDataService=i.u.getInstance(p.Or.Export,this)}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return j()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:o.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new h.v,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"generateBtn"),onClick:function(){return e.onClickGeneratePdf()}}}]}},{key:"onLibrariesSync",value:function(e){var t=this;this.libraries=e,this.selectedLibraryIds=g.RF.getLibraryIds(this.options.librariesQueryString,e),this.subjectCollectionIdentifier=new d.xw({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return t.onSubjectsSync(e,n)}))}},{key:"onSubjectsSync",value:function(e,t){var n=g.RF.getSubjectOptions(t).map((function(e){return new v.Wx(e)})),i={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new d.IJ(i),void this.spinnerModel.set(f.ZV.Disabled,!1);var o=this.getSubjectIds();this.videoCollectionIdentifier=new d.IJ(r.extend(i,{subjects:n.filter((function(e){return!!r.intersection(o,e.get("subjectIds")).length}))})),this.spinnerModel.set(f.ZV.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var e=this;if(this.libraries.length!==this.selectedLibraryIds.length){var t=this.libraries.filter((function(t){return r.contains(e.selectedLibraryIds,t.id.toString())})),n=t.map((function(e){return"<strong>".concat(y.m$.escapeExpression(e.get("name")),"</strong>")}));return t.length<=2?n.join(" ".concat(o.T.getPhrase(this.lang,"and")," ")):r.first(n,n.length-1).join(", ")+" ".concat(o.T.getPhrase(this.lang,"and")," ").concat(r.last(n))}}},{key:"getFormattedDate",value:function(e){if(e)return l.O.format(e,"DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var e=this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")}));return 1===e.length?e[0]:e.slice(0,-1).join(", ")+" ".concat(o.T.getPhrase(this.lang,"and")," ")+e.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(f.ZV.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var e=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(t){t&&t.length?e.generatePdf(t.map((function(e){return e.id.toString()}))):e.triggerMethod("hide")}))}},{key:"generatePdf",value:function(e){var t=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():o.T.getPhrase(this.lang,"latestReleases"),r=l.O.format(this.videoCollectionIdentifier.dateOption.get("from"),"MMMM YYYY"),i=l.O.format(this.videoCollectionIdentifier.dateOption.get("to"),"MMMM YYYY"),a=r===i?o.T.getPhrase(this.lang,"fromContentUpdate",{from:r}):o.T.getPhrase(this.lang,"fromToContentUpdates",{from:r,to:i});this.exportDataService.generateCustomListPdf(n,a,e,this.currentUser,(function(){return t.triggerMethod("hide")})),this.logAction(e.length)}},{key:"logAction",value:function(e){var t={location:u.LZ.Popup,actionType:u.Vw.Create,entity:u.py.PDF,workflowPhase:u.eu.Complete},n={videoCount:e,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(e){return e.get("name")})).join(","):""};s.k.logUserAction(n,t)}},{key:"requiredResources",get:function(){return{currentUser:b.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this;this.libraries||this.libraryDataService.getHostedLibraries((function(t){return e.onLibrariesSync(t)}))}},{key:"viewOptions",value:function(){return{styles:S,dataFetched:!!this.libraries,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:p.Wn.Shared.GENERATE_PDF,libraryText:this.getLibrariesText(),subject:this.getFormattedSubjects(),from:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("from")),to:this.videoCollectionIdentifier&&this.getFormattedDate(this.videoCollectionIdentifier.dateOption.get("to"))}}}])&&w(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(a.Q.G7)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),i=n(88172);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=c(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return a(a({},i.ZV.Disabled,!0),i.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},29569:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="pb-3 text-center">\n <img src="'+l(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+l(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.image:o,t))+'" />\n</div>\n<p class="m-0">\n '+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body1",{name:"lang",hash:{},data:i}))?o:"")+"\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.libraryText:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")+"\n "+(null!=(o=n.if.call(s,null!=(o=null!=t?t.options:t)?o.subject:o,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+"\n "+(null!=(o=(n.lang||t&&t.lang||u).call(s,"body4",{name:"lang",hash:{email:null!=(o=null!=t?t.options:t)?o.email:o,to:null!=(o=null!=t?t.options:t)?o.to:o,from:null!=(o=null!=t?t.options:t)?o.from:o},data:i}))?o:"")+"\n</p>\n"},4:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(o=null!=t?t.options:t)?o.libraryText:o},data:i}))?o:""},6:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(o=null!=t?t.options:t)?o.subject:o},data:i}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})}}]);
|