@clickview/library-editor 1.6.1-dev.1 → 1.6.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/1832-library-editor-761fcb8755.chunk.css +2 -0
  3. package/dist/css/{3427-library-editor-8442ad6453.chunk.css → 3427-library-editor-2ba6a08f4c.chunk.css} +1 -1
  4. package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +2 -0
  5. package/dist/css/{5047-library-editor-3ed99ac07f.chunk.css → 5047-library-editor-d59ace1885.chunk.css} +1 -1
  6. package/dist/css/5747-library-editor-a3e5ded646.chunk.css +2 -0
  7. package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +2 -0
  8. package/dist/css/7053-library-editor-96752915ef.chunk.css +2 -0
  9. package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +2 -0
  10. package/dist/css/{library-editor-app-520ef9f4dd.css → library-editor-app-011417eae4.css} +2 -2
  11. package/dist/en.json +1 -1
  12. package/dist/scripts/{1832-9528386bfe.chunk.js → 1832-89afc0b65d.chunk.js} +1 -1
  13. package/dist/scripts/259-01aab15df9.chunk.js +1 -0
  14. package/dist/scripts/2802-6a6c18c88e.chunk.js +2 -0
  15. package/dist/scripts/4201-d09f8e78d9.chunk.js +1 -0
  16. package/dist/scripts/4703-8907adfcd9.chunk.js +1 -0
  17. package/dist/scripts/4860-e790102563.chunk.js +1 -0
  18. package/dist/scripts/4983-f1497e81d9.chunk.js +1 -0
  19. package/dist/scripts/5248-5e71750de8.chunk.js +1 -0
  20. package/dist/scripts/5356-1daf7014ec.chunk.js +1 -0
  21. package/dist/scripts/5431-ae8fb2a0d5.chunk.js +1 -0
  22. package/dist/scripts/{5747-c94ce9aec7.chunk.js → 5747-e533b579f8.chunk.js} +1 -1
  23. package/dist/scripts/{5967-4f0965dfb6.chunk.js → 5967-4561d168be.chunk.js} +1 -1
  24. package/dist/scripts/{6092-95acc023c1.chunk.js → 6092-b2d4926dbd.chunk.js} +2 -2
  25. package/dist/scripts/6093-7981719748.chunk.js +1 -0
  26. package/dist/scripts/{9195-18d277a22b.chunk.js → 6183-90e0e42029.chunk.js} +1 -1
  27. package/dist/scripts/{6625-39e5f05b25.chunk.js → 6625-754683073a.chunk.js} +1 -1
  28. package/dist/scripts/{6788-2c2381f971.chunk.js → 6788-7373d05068.chunk.js} +1 -1
  29. package/dist/scripts/7053-8ab28971fd.chunk.js +1 -0
  30. package/dist/scripts/7251-a247842ccb.chunk.js +2 -0
  31. package/dist/scripts/8420-fae27640ba.chunk.js +1 -0
  32. package/dist/scripts/9592-35ee192235.chunk.js +1 -0
  33. package/dist/scripts/9695-efcf04cb36.chunk.js +1 -0
  34. package/dist/scripts/bundle-975342b553.min.js +2 -0
  35. package/package.json +2 -2
  36. package/dist/css/1832-library-editor-16982d18f9.chunk.css +0 -2
  37. package/dist/css/4860-library-editor-27c2a56d40.chunk.css +0 -2
  38. package/dist/css/5747-library-editor-615300053c.chunk.css +0 -2
  39. package/dist/css/6093-library-editor-3b3ef2f270.chunk.css +0 -2
  40. package/dist/css/7053-library-editor-43ee5fb1f9.chunk.css +0 -2
  41. package/dist/css/9695-library-editor-a3a0f8d8e8.chunk.css +0 -2
  42. package/dist/css/9927-library-editor-e3b21e68b0.chunk.css +0 -2
  43. package/dist/scripts/259-fb7e645a88.chunk.js +0 -1
  44. package/dist/scripts/2802-b2ecdec04d.chunk.js +0 -2
  45. package/dist/scripts/4201-973ee89615.chunk.js +0 -1
  46. package/dist/scripts/4703-91a9057db3.chunk.js +0 -1
  47. package/dist/scripts/4860-56e7955cd4.chunk.js +0 -1
  48. package/dist/scripts/4983-aaf93b05f3.chunk.js +0 -1
  49. package/dist/scripts/5248-e994f353a6.chunk.js +0 -1
  50. package/dist/scripts/5356-1642cf84ae.chunk.js +0 -1
  51. package/dist/scripts/5431-9b17f3323f.chunk.js +0 -1
  52. package/dist/scripts/6093-d60094ebe6.chunk.js +0 -1
  53. package/dist/scripts/7053-312e4779fe.chunk.js +0 -1
  54. package/dist/scripts/7251-787b3da712.chunk.js +0 -2
  55. package/dist/scripts/8420-a48a49afa5.chunk.js +0 -1
  56. package/dist/scripts/9695-72bc239f92.chunk.js +0 -1
  57. package/dist/scripts/9927-6933b86ad4.chunk.js +0 -1
  58. package/dist/scripts/bundle-b7ff45d66e.min.js +0 -2
  59. /package/dist/css/{9195-library-editor-14f7d9be38.chunk.css → 6183-library-editor-14f7d9be38.chunk.css} +0 -0
  60. /package/dist/scripts/{1010-f5821049de.chunk.js → 1010-24607acfed.chunk.js} +0 -0
  61. /package/dist/scripts/{1086-ba954c2a70.chunk.js → 1086-a34fb060e6.chunk.js} +0 -0
  62. /package/dist/scripts/{1203-c5dbf7e172.chunk.js → 1203-69f107f194.chunk.js} +0 -0
  63. /package/dist/scripts/{1409-fd44225dc3.chunk.js → 1409-8253b07056.chunk.js} +0 -0
  64. /package/dist/scripts/{2098-81d327208e.chunk.js → 2098-4df3c20f35.chunk.js} +0 -0
  65. /package/dist/scripts/{2417-f94be32319.chunk.js → 2417-5465fe7d6e.chunk.js} +0 -0
  66. /package/dist/scripts/{243-a47bc2738b.chunk.js → 243-9d49b60575.chunk.js} +0 -0
  67. /package/dist/scripts/{2692-15c761ec3d.chunk.js → 2692-a5f1f0cbe9.chunk.js} +0 -0
  68. /package/dist/scripts/{2733-c490fcd11e.chunk.js → 2733-12d5618933.chunk.js} +0 -0
  69. /package/dist/scripts/{2802-b2ecdec04d.chunk.js.LICENSE.txt → 2802-6a6c18c88e.chunk.js.LICENSE.txt} +0 -0
  70. /package/dist/scripts/{2803-4001a13e71.chunk.js → 2803-f77ffe8d6d.chunk.js} +0 -0
  71. /package/dist/scripts/{2888-367d734290.chunk.js → 2888-0544d20f9b.chunk.js} +0 -0
  72. /package/dist/scripts/{299-e705baba74.chunk.js → 299-7fe66010c3.chunk.js} +0 -0
  73. /package/dist/scripts/{3096-1996cb2491.chunk.js → 3096-b12e6929ef.chunk.js} +0 -0
  74. /package/dist/scripts/{3427-c123fde939.chunk.js → 3427-4824860784.chunk.js} +0 -0
  75. /package/dist/scripts/{3639-3a08b64061.chunk.js → 3639-0103f45f8f.chunk.js} +0 -0
  76. /package/dist/scripts/{3763-6bcada88e2.chunk.js → 3763-c9be4b8c8b.chunk.js} +0 -0
  77. /package/dist/scripts/{3803-d2d3b20313.chunk.js → 3803-3be21d0c1c.chunk.js} +0 -0
  78. /package/dist/scripts/{400-00070f1714.chunk.js → 400-228bfe98a2.chunk.js} +0 -0
  79. /package/dist/scripts/{409-1285d42d9a.chunk.js → 409-8f0171be19.chunk.js} +0 -0
  80. /package/dist/scripts/{4245-539cbeccf6.chunk.js → 4245-30ea8edd8c.chunk.js} +0 -0
  81. /package/dist/scripts/{435-5359811578.chunk.js → 435-c96da17150.chunk.js} +0 -0
  82. /package/dist/scripts/{4353-b4b96c0408.chunk.js → 4353-aea4f383f2.chunk.js} +0 -0
  83. /package/dist/scripts/{4591-3fa9999f29.chunk.js → 4591-da8d98f460.chunk.js} +0 -0
  84. /package/dist/scripts/{4810-90c94e948c.chunk.js → 4810-596cb1efb0.chunk.js} +0 -0
  85. /package/dist/scripts/{4885-dfe20cec34.chunk.js → 4885-7e874365cf.chunk.js} +0 -0
  86. /package/dist/scripts/{5047-1eb393ebcb.chunk.js → 5047-1e64f11a19.chunk.js} +0 -0
  87. /package/dist/scripts/{514-8288578cec.chunk.js → 514-425e874f7e.chunk.js} +0 -0
  88. /package/dist/scripts/{5412-468bf7d847.chunk.js → 5412-95411d83f3.chunk.js} +0 -0
  89. /package/dist/scripts/{5418-b740aac744.chunk.js → 5418-0089ab591d.chunk.js} +0 -0
  90. /package/dist/scripts/{546-6736b53bcd.chunk.js → 546-0cec8e55ef.chunk.js} +0 -0
  91. /package/dist/scripts/{5665-0883ca6960.chunk.js → 5665-073470759f.chunk.js} +0 -0
  92. /package/dist/scripts/{6092-95acc023c1.chunk.js.LICENSE.txt → 6092-b2d4926dbd.chunk.js.LICENSE.txt} +0 -0
  93. /package/dist/scripts/{6420-6bae432c6b.chunk.js → 6420-2178cb2561.chunk.js} +0 -0
  94. /package/dist/scripts/{6774-580a63bbeb.chunk.js → 6774-dd35a32f7d.chunk.js} +0 -0
  95. /package/dist/scripts/{693-0ae38e2ba5.chunk.js → 693-e91aae32f6.chunk.js} +0 -0
  96. /package/dist/scripts/{7002-4895587ec3.chunk.js → 7002-135475be76.chunk.js} +0 -0
  97. /package/dist/scripts/{7190-1641f45cb9.chunk.js → 7190-b9b56210c7.chunk.js} +0 -0
  98. /package/dist/scripts/{7251-787b3da712.chunk.js.LICENSE.txt → 7251-a247842ccb.chunk.js.LICENSE.txt} +0 -0
  99. /package/dist/scripts/{8074-e02348d9c5.chunk.js → 8074-fdddb2e35b.chunk.js} +0 -0
  100. /package/dist/scripts/{8343-302fa9dead.chunk.js → 8343-3686ad13bf.chunk.js} +0 -0
  101. /package/dist/scripts/{8362-a88a675488.chunk.js → 8362-eafdfe9326.chunk.js} +0 -0
  102. /package/dist/scripts/{8726-18e0343855.chunk.js → 8726-fd10d5f1f3.chunk.js} +0 -0
  103. /package/dist/scripts/{8727-24d6b079b1.chunk.js → 8727-2cdd110cc8.chunk.js} +0 -0
  104. /package/dist/scripts/{8762-afe0358334.chunk.js → 8762-912bdafad1.chunk.js} +0 -0
  105. /package/dist/scripts/{8906-ad7ae16f53.chunk.js → 8906-16bf68d7a8.chunk.js} +0 -0
  106. /package/dist/scripts/{9167-46f5b4112f.chunk.js → 9167-2c993dcf7a.chunk.js} +0 -0
  107. /package/dist/scripts/{9298-89f5e3b9c8.chunk.js → 9298-2d96858320.chunk.js} +0 -0
  108. /package/dist/scripts/{9355-2eb7bb39e2.chunk.js → 9355-0629e54449.chunk.js} +0 -0
  109. /package/dist/scripts/{9357-48623968db.chunk.js → 9357-30cb06614f.chunk.js} +0 -0
  110. /package/dist/scripts/{9383-e274073684.chunk.js → 9383-5cb6aa9ccd.chunk.js} +0 -0
  111. /package/dist/scripts/{bundle-b7ff45d66e.min.js.LICENSE.txt → bundle-975342b553.min.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7053],{87053:function(t,e,n){"use strict";n.r(e),n.d(e,{GeneratePastReleasesPdfView:function(){return k}});var r=n(39479),o=n(33192),i=n(31647),u=n(21679),c=n(57857),a=n(70065),s=n(52076),l=n(10101),f=n(3059),p=n(9484),y=n(30305),b=n(67670),d=n(61843),h=n(39090),g=n(88172),m=n(44937),v=n(29569),O=n.n(v),j={image:"go5qS"};function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function I(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var k=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&&P(t,e)}(k,t);var e,n,i,v,w=(i=k,v=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}}(),function(){var t,e=_(i);if(v){var n=_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return I(this,t)});function k(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,k),w.call(this,t)}return e=k,(n=[{key:"initialize",value:function(){this.libraryDataService=u.u.getInstance(y.Or.Library,this),this.contentUpdatesDataService=u.u.getInstance(y.Or.ContentUpdates,this),this.exportDataService=u.u.getInstance(y.Or.Export,this)}},{key:"name",get:function(){return"GeneratePastReleasesPdfView"}},{key:"title",get:function(){return c.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.generatePastReleasesPdf"}},{key:"template",get:function(){return O()}},{key:"channelName",get:function(){return d.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.Yw,title:c.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:c.T.getPhrase(this.lang,"generateBtn"),onClick:function(){return t.onClickGeneratePdf()}}}]}},{key:"onLibrariesSync",value:function(t){var e=this;this.libraries=t,this.selectedLibraryIds=h.RF.getLibraryIds(this.options.librariesQueryString,t),this.subjectCollectionIdentifier=new f.xw({dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds}),this.contentUpdatesDataService.getRecentVideoSubjects(this.subjectCollectionIdentifier,(function(n){return e.onSubjectsSync(t,n)}))}},{key:"onSubjectsSync",value:function(t,e){var n=h.RF.getSubjectOptions(e).map((function(t){return new m.Wx(t)})),o={dateQueryString:this.options.dateQueryString,libraryIds:this.selectedLibraryIds};if(!this.options.subjectQueryString)return this.videoCollectionIdentifier=new f.IJ(o),void this.spinnerModel.set(g.ZV.Disabled,!1);var i=this.getSubjectIds();this.videoCollectionIdentifier=new f.IJ(r.extend(o,{subjects:n.filter((function(t){return!!r.intersection(i,t.get("subjectIds")).length}))})),this.spinnerModel.set(g.ZV.Disabled,!1)}},{key:"getSubjectIds",value:function(){if(this.options.subjectQueryString)return this.options.subjectQueryString.split("-")[1].split(",")}},{key:"getLibrariesText",value:function(){var t=this;if(this.libraries.length!==this.selectedLibraryIds.length){var e=this.libraries.filter((function(e){return r.contains(t.selectedLibraryIds,e.id.toString())})),n=e.map((function(t){return"<strong>".concat(d.m$.escapeExpression(t.get("name")),"</strong>")}));return e.length<=2?n.join(" ".concat(c.T.getPhrase(this.lang,"and")," ")):r.first(n,n.length-1).join(", ")+" ".concat(c.T.getPhrase(this.lang,"and")," ").concat(r.last(n))}}},{key:"getFormattedDate",value:function(t){if(t)return o(t).format("DD MMMM YYYY")}},{key:"getFormattedSubjects",value:function(){if(this.videoCollectionIdentifier.subjects){var t=this.videoCollectionIdentifier.subjects.map((function(t){return t.get("name")}));return 1===t.length?t[0]:t.slice(0,-1).join(", ")+" ".concat(c.T.getPhrase(this.lang,"and")," ")+t.slice(-1)}}},{key:"onClickGeneratePdf",value:function(){this.spinnerModel.set(g.ZV.ShowSpinner,!0),this.fetchVideosAndGeneratePdf()}},{key:"fetchVideosAndGeneratePdf",value:function(){var t=this;this.contentUpdatesDataService.getRecentVideosAllPages(this.videoCollectionIdentifier,(function(e){e&&e.length?t.generatePdf(e.map((function(t){return t.id.toString()}))):t.triggerMethod("hide")}))}},{key:"generatePdf",value:function(t){var e=this,n=this.videoCollectionIdentifier.subjects?this.getFormattedSubjects():c.T.getPhrase(this.lang,"latestReleases"),r=o(this.videoCollectionIdentifier.dateOption.get("from")).format("MMMM YYYY"),i=o(this.videoCollectionIdentifier.dateOption.get("to")).format("MMMM YYYY"),u=r===i?c.T.getPhrase(this.lang,"fromContentUpdate",{from:r}):c.T.getPhrase(this.lang,"fromToContentUpdates",{from:r,to:i});this.exportDataService.generateCustomListPdf(n,u,t,this.currentUser,(function(){return e.triggerMethod("hide")})),this.logAction(t.length)}},{key:"logAction",value:function(t){var e={location:a.LocationContext.Popup,actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Complete},n={videoCount:t,libraries:this.selectedLibraryIds.join(","),releaseDate:this.videoCollectionIdentifier.dateOption.get("name"),subjects:this.options.subjectQueryString?this.videoCollectionIdentifier.subjects.map((function(t){return t.get("name")})).join(","):""};s.k.logUserAction(n,e)}},{key:"requiredResources",get:function(){return{currentUser:p.K.currentUser}}},{key:"onBeforeRender",value:function(){var t=this;this.libraries||this.libraryDataService.getHostedLibraries((function(e){return t.onLibrariesSync(e)}))}},{key:"viewOptions",value:function(){return{styles:j,dataFetched:!!this.libraries,spinnerEl:d.Kp.getSpinner({size:d.Ey.Large,extraClasses:"mx-auto"}),email:this.currentUser.get("email"),imageUrl:y.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"))}}}])&&S(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),k}(i.Q.View)},3059:function(t,e,n){"use strict";n.d(e,{KX:function(){return k},IJ:function(){return d},xw:function(){return j},F7:function(){return r.F}});var r=n(1091),o=n(39479),i=n(33303),u=n(30305),c=n(44937),a=n(39090);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(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 p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}var d=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&&p(t,e)}(d,t);var e,n,r,i,s=(r=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=b(r);if(i){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return y(this,t)});function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(e=s.call(this,{collectionPrefix:"".concat(u.M_.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=d,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(a.US,{queryString:n})||a.U1;this.dateOption=new c.Wx(i)}},{key:"toString",value:function(){var t,e=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((t=e,function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.J);function h(t){return h="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},h(t)}function g(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 m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function v(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}var j=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&&m(t,e)}(l,t);var e,n,r,i,s=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=O(r);if(i){var n=O(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this,{collectionPrefix:"".concat(u.M_.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(a.US,{queryString:n})||a.U1;this.dateOption=new c.Wx(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&g(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.J);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function I(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}var k=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&&P(t,e)}(i,t);var e,n,r,o=(n=i,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=_(n);if(r){var o=_(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return I(this,t)});function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(this,i),o.call(this,{collectionPrefix:u.M_.FOLDERS,id:t,sort:e,cursor:n})}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(i.J)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return f}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(p,t);var e,n,r,i,f=(r=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(r);if(i){var n=l(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return s(this,t)});function p(){return u(this,p),f.apply(this,arguments)}return e=p,(n=[{key:"defaults",value:function(){return t={},!0,(e=o.ZV.Disabled)in t?Object.defineProperty(t,e,{value:true,enumerable:!0,configurable:!0,writable:!0}):t[e]=true,t;var t,e}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),p}(r.Q.Model)},29569:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return'<div class="pb-3 text-center">\r\n <img src="'+c(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'" />\r\n</div>\r\n<p class="m-0">\r\n '+(null!=(i=(n.lang||e&&e.lang||s).call(a,"body1",{name:"lang",hash:{},data:o}))?i:"")+"\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.libraryText:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")+"\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.subject:i,{name:"if",hash:{},fn:t.program(6,o,0),inverse:t.noop,data:o}))?i:"")+"\r\n "+(null!=(i=(n.lang||e&&e.lang||s).call(a,"body4",{name:"lang",hash:{email:null!=(i=null!=e?e.options:e)?i.email:i,to:null!=(i=null!=e?e.options:e)?i.to:i,from:null!=(i=null!=e?e.options:e)?i.from:i},data:o}))?i:"")+"\r\n</p>\r\n"},4:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"body2",{name:"lang",hash:{libraryText:null!=(i=null!=e?e.options:e)?i.libraryText:i},data:o}))?i:""},6:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"body3",{name:"lang",hash:{subject:null!=(i=null!=e?e.options:e)?i.subject:i},data:o}))?i:""},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.dataFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);