@openmrs/esm-reports-app 4.4.1-pre.726 → 4.4.1-pre.759

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 (54) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/dist/2767.js +1 -1
  3. package/dist/3279.js +1 -1
  4. package/dist/3378.js +1 -1
  5. package/dist/3378.js.map +1 -1
  6. package/dist/3500.css +1 -0
  7. package/dist/3500.css.map +1 -0
  8. package/dist/3500.js +1 -0
  9. package/dist/3500.js.map +1 -0
  10. package/dist/3697.js +1 -1
  11. package/dist/3697.js.map +1 -1
  12. package/dist/3997.js +1 -1
  13. package/dist/3997.js.map +1 -1
  14. package/dist/4057.css +1 -0
  15. package/dist/4057.css.map +1 -0
  16. package/dist/4057.js +1 -0
  17. package/dist/4057.js.map +1 -0
  18. package/dist/41.js +1 -1
  19. package/dist/41.js.map +1 -1
  20. package/dist/5595.js +1 -1
  21. package/dist/5595.js.map +1 -1
  22. package/dist/7879.css +1 -0
  23. package/dist/7879.css.map +1 -0
  24. package/dist/{6677.js → 7879.js} +1 -1
  25. package/dist/{6677.js.map → 7879.js.map} +1 -1
  26. package/dist/8699.css +1 -0
  27. package/dist/8699.css.map +1 -0
  28. package/dist/8699.js +24 -24
  29. package/dist/8699.js.map +1 -1
  30. package/dist/9061.js +1 -0
  31. package/dist/9061.js.map +1 -0
  32. package/dist/9442.js +1 -1
  33. package/dist/9442.js.map +1 -1
  34. package/dist/9731.css +1 -0
  35. package/dist/9731.css.map +1 -0
  36. package/dist/9731.js +1 -0
  37. package/dist/9731.js.map +1 -0
  38. package/dist/openmrs-esm-reports-app.js +3 -3
  39. package/dist/openmrs-esm-reports-app.js.buildmanifest.json +258 -370
  40. package/dist/openmrs-esm-reports-app.js.map +1 -1
  41. package/dist/routes.json +1 -1
  42. package/package.json +1 -1
  43. package/dist/1824.js +0 -1
  44. package/dist/1824.js.map +0 -1
  45. package/dist/325.js +0 -1
  46. package/dist/325.js.map +0 -1
  47. package/dist/3473.js +0 -1
  48. package/dist/3473.js.map +0 -1
  49. package/dist/6396.js +0 -1
  50. package/dist/6396.js.map +0 -1
  51. package/dist/9058.js +0 -1
  52. package/dist/9058.js.map +0 -1
  53. package/dist/main.js +0 -3
  54. package/dist/main.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
2
2
  │ Assets:
3
3
  │ 9385.js (396.560 KiB)
4
- │ 8699.js (1.642 MiB)
4
+ │ 8699.js (819.470 KiB)
5
5
  
6
6
 
7
- Rspack compiled with 1 warning in 29.30 s
7
+ Rspack compiled with 1 warning in 26.76 s
package/dist/2767.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["2767"],{1202(t,e,n){n.r(e),n.d(e,{never:()=>t6,noop:()=>to,generate:()=>tJ,isObservable:()=>tu,GroupedObservable:()=>m,animationFrameScheduler:()=>tt,fromEvent:()=>function t(e,n,r,o){return((0,tH.T)(r)&&(o=r,r=void 0),o)?t(e,n,r).pipe(tf(function(t){return(0,tb.c)(t)?o.apply(void 0,t):o(t)})):new i.c(function(t){!function t(e,n,r,i,o){if((u=e)&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener)e.addEventListener(n,r,o),s=function(){return e.removeEventListener(n,r,o)};else if((c=e)&&"function"==typeof c.on&&"function"==typeof c.off)e.on(n,r),s=function(){return e.off(n,r)};else{if((h=e)&&"function"==typeof h.addListener&&"function"==typeof h.removeListener)e.addListener(n,r),s=function(){return e.removeListener(n,r)};else if(e&&e.length)for(var s,u,c,h,l=0,a=e.length;l<a;l++)t(e[l],n,r,i,o);else throw TypeError("Invalid event target")}i.add(s)}(e,n,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,r)})},onErrorResumeNext:()=>t2,UnsubscriptionError:()=>tl.Z,ArgumentOutOfRangeError:()=>tc.k,asapScheduler:()=>K,forkJoin:()=>tz,iif:()=>tZ,Subject:()=>f,range:()=>er,BehaviorSubject:()=>g,VirtualTimeScheduler:()=>tn,ReplaySubject:()=>Y,bindCallback:()=>function t(e,n,r){if(n)if(!T(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,r).apply(void 0,i).pipe(tf(function(t){return(0,tb.c)(t)?n.apply(void 0,t):n(t)}))};else r=n;return function(){for(var t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var s=this,u={context:s,subject:t,callbackFunc:e,scheduler:r};return new i.c(function(i){if(r)return r.schedule(ty,0,{args:n,subscriber:i,params:u});if(!t){t=new W;try{e.apply(s,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){(0,tv.H)(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}},scheduled:()=>tV,using:()=>eu,asyncScheduler:()=>$,defer:()=>tU,ObjectUnsubscribedError:()=>c,asap:()=>Z,concat:()=>tG,AsyncSubject:()=>W,zip:()=>ec,observable:()=>x.s,ConnectableObservable:()=>b,queue:()=>k,race:()=>et,interval:()=>tQ,bindNodeCallback:()=>function t(e,n,r){if(n)if(!T(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,r).apply(void 0,i).pipe(tf(function(t){return(0,tb.c)(t)?n.apply(void 0,t):n(t)}))};else r=n;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={subject:void 0,args:t,callbackFunc:e,scheduler:r,context:this};return new i.c(function(n){var i=o.context,s=o.subject;if(r)return r.schedule(tw,0,{params:o,subscriber:n,context:i});if(!s){s=o.subject=new W;try{e.apply(i,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?s.error(n):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){(0,tv.H)(s)?s.error(t):console.warn(t)}}return s.subscribe(n)})}},pipe:()=>ti.F,config:()=>ed.$,EmptyError:()=>th,Notification:()=>R,animationFrame:()=>te,Subscriber:()=>s.v,Subscription:()=>u.y,Observable:()=>i.c,async:()=>Q,Scheduler:()=>E,combineLatest:()=>tO,partition:()=>t8,pairs:()=>t4,NotificationKind:()=>r,from:()=>tR,EMPTY:()=>A.w,empty:()=>A.I,VirtualAction:()=>tr,merge:()=>t0,of:()=>F,queueScheduler:()=>j,TimeoutError:()=>ta,fromEventPattern:()=>function t(e,n,r){return r?t(e,n).pipe(tf(function(t){return(0,tb.c)(t)?r.apply(void 0,t):r(t)})):new i.c(function(t){var r,i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)};try{r=e(i)}catch(e){t.error(e);return}if((0,tH.T)(n))return function(){return n(i,r)}})},identity:()=>ts.D,throwError:()=>P,timer:()=>eo,NEVER:()=>t1});var r,i=n(8099),o=n(2505),s=n(1171),u=n(9708),c=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),h=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o.C6(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(u.y),l=n(8904),a=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o.C6(e,t),e}(s.v),f=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o.C6(e,t),e.prototype[l.D]=function(){return new a(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new c;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new c},e.prototype._subscribe=function(t){if(this.closed)throw new c;return this.hasError?(t.error(this.thrownError),u.y.EMPTY):this.isStopped?(t.complete(),u.y.EMPTY):(this.observers.push(t),new h(this,t))},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.c),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return o.C6(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.y.EMPTY},e}(f),d=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new v(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o.C6(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var n=this.connection,r=t._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},e}(s.v),b=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o.C6(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return!t&&(this._isComplete=!1,(t=this._connection=new u.y).add(this.source.subscribe(new y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.y.EMPTY)),t},e.prototype.refCount=function(){return this.lift(new d(this))},e}(i.c),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o.C6(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(a),m=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return o.C6(e,t),e.prototype._subscribe=function(t){var e=new u.y,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new w(n)),e.add(r.subscribe(t)),e},e}(i.c),w=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return o.C6(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(u.y),x=n(2413),g=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o.C6(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new c},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(f),_=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o.C6(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o.C6(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(u.y)),C=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.schedule=function(e,n){return(void 0===n&&(n=0),n>0)?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(_),E=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),S=function(t){function e(n,r){void 0===r&&(r=E.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o.C6(e,t),e.prototype.schedule=function(n,r,i){return(void 0===r&&(r=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e,n=this.actions;if(this.active)return void n.push(t);this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}},e}(E),j=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e}(S))(C),k=j,A=n(446);function T(t){return t&&"function"==typeof t.schedule}var I=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function N(t,e){return new i.c(function(n){var r=new u.y,i=0;return r.add(e.schedule(function(){i===t.length?n.complete():(n.next(t[i++]),n.closed||r.add(this.schedule()))})),r})}function O(t,e){return e?N(t,e):new i.c(I(t))}function F(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return T(n)?(t.pop(),N(t,n)):O(t)}function P(t,e){return new i.c(e?function(n){return e.schedule(V,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function V(t){var e=t.error;t.subscriber.error(e)}r||(r={});var R=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return F(this.value);case"E":return P(this.error);case"C":return(0,A.I)()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),q=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return o.C6(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new M(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(R.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(R.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(R.createComplete()),this.unsubscribe()},e}(s.v),M=function(t,e){this.notification=t,this.destination=e},Y=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o.C6(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new L(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c;if(this.isStopped||this.hasError?e=u.y.EMPTY:(this.observers.push(t),e=new h(this,t)),i&&t.add(t=new q(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(var s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||k).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(f),L=function(t,e){this.time=t,this.value=e},W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o.C6(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),u.y.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),u.y.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(f),D=1,G=Promise.resolve(),U={};function z(t){return t in U&&(delete U[t],!0)}var B=function(t){var e=D++;return U[e]=!0,G.then(function(){return z(e)&&t()}),e},H=function(t){z(t)},J=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=B(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(H(n),e.scheduled=void 0)},e}(_),K=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(S))(J),Z=K,$=new S(_),Q=$,X=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(_),tt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(S))(X),te=tt,tn=function(t){function e(e,n){void 0===e&&(e=tr),void 0===n&&(n=1/0);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o.C6(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(S),tr=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return o.C6(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){if(t.delay===e.delay)if(t.index===e.index)return 0;else if(t.index>e.index)return 1;else return -1;return t.delay>e.delay?1:-1},e}(_),ti=n(4956);function to(){}var ts=n(302);function tu(t){return!!t&&(t instanceof i.c||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var tc=n(7627),th=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),tl=n(2242),ta=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function tf(t,e){return function(n){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new tp(t,e))}}var tp=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new td(t,this.project,this.thisArg))},t}(),td=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return o.C6(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(s.v),tv=n(6934),tb=n(9707);function ty(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new W;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(tm,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function tm(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function tw(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,s=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new W;try{o.apply(i,s.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(tg,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(tx,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(tg,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function tx(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function tg(t){var e=t.err;t.subject.error(e)}var t_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(s.v),tC=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return o.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(s.v),tE=n(4856),tS="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",tj=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tk(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var tA=n(4779),tT=function(t){if(t&&"function"==typeof t[x.s])return function(e){var n=t[x.s]();if("function"==typeof n.subscribe)return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if(tj(t))return I(t);if(tk(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tE.T),e};if(t&&"function"==typeof t[tS])return function(e){for(var n=t[tS]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};throw TypeError("You provided "+((0,tA.G)(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function tI(t,e,n,r,o){if(void 0===o&&(o=new tC(t,n,r)),!o.closed)return e instanceof i.c?e.subscribe(o):tT(e)(o)}var tN={};function tO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return T(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,tb.c)(t[0])&&(t=t[0]),O(t,r).lift(new tF(n))}var tF=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tP(t,this.resultSelector))},t}(),tP=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o.C6(e,t),e.prototype._next=function(t){this.values.push(tN),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(tI(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===tN?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(t_);function tV(t,e){if(null!=t)if(t&&"function"==typeof t[x.s])return new i.c(function(n){var r=new u.y;return r.add(e.schedule(function(){var i=t[x.s]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r});else{if(tk(t))return new i.c(function(n){var r=new u.y;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r});if(tj(t))return N(t,e);if(t&&"function"==typeof t[tS]||"string"==typeof t){if(!t)throw Error("Iterable cannot be null");return new i.c(function(n){var r,i=new u.y;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[tS](),i.add(e.schedule(function(){if(!n.closed){try{var t,e,i=r.next();t=i.value,e=i.done}catch(t){n.error(t);return}e?n.complete():(n.next(t),this.schedule())}}))})),i})}}throw TypeError((null!==t&&typeof t||t)+" is not observable")}function tR(t,e){return e?tV(t,e):t instanceof i.c?t:new i.c(tT(t))}var tq=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return o.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(s.v),tM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(s.v);function tY(t,e){var n;if(!e.closed){if(t instanceof i.c)return t.subscribe(e);try{n=tT(t)(e)}catch(t){e.error(t)}return n}}var tL=function(){function t(t,e){void 0===e&&(e=1/0),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tW(t,this.project,this.concurrent))},t}(),tW=function(t){function e(e,n,r){void 0===r&&(r=1/0);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o.C6(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new tq(this),n=this.destination;n.add(e);var r=tY(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(tM);function tD(t){return void 0===t&&(t=1/0),function t(e,n,r){return(void 0===r&&(r=1/0),"function"==typeof n)?function(i){return i.pipe(t(function(t,r){return tR(e(t,r)).pipe(tf(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new tL(e,r))})}(ts.D,t)}function tG(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tD(1)(F.apply(void 0,t))}function tU(t){return new i.c(function(e){var n;try{n=t()}catch(t){e.error(t);return}return(n?tR(n):(0,A.I)()).subscribe(e)})}function tz(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if((0,tb.c)(n))return tB(n,null);if((0,tA.G)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return tB(r.map(function(t){return n[t]}),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return tB(t=1===t.length&&(0,tb.c)(t[0])?t[0]:t,null).pipe(tf(function(t){return i.apply(void 0,t)}))}return tB(t,null)}function tB(t,e){return new i.c(function(n){var r=t.length;if(0===r)return void n.complete();for(var i=Array(r),o=0,s=0,u=function(u){var c=tR(t[u]),h=!1;n.add(c.subscribe({next:function(t){!h&&(h=!0,s++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&h||(s===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},c=0;c<r;c++)u(c)})}var tH=n(8364);function tJ(t,e,n,r,o){if(1==arguments.length){var s,u;u=t.initialState,e=t.condition,n=t.iterate,s=t.resultSelector||ts.D,o=t.scheduler}else void 0===r||T(r)?(u=t,s=ts.D,o=r):(u=t,s=r);return new i.c(function(t){var r=u;if(o)return o.schedule(tK,0,{subscriber:t,iterate:n,condition:e,resultSelector:s,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){t.error(e);return}if(!i){t.complete();break}}var c=void 0;try{c=s(r)}catch(e){t.error(e);break}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){t.error(e);break}}})}function tK(t){var e,n=t.subscriber,r=t.condition;if(!n.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){n.error(t);return}else t.needIterate=!0;if(r){var i=void 0;try{i=r(t.state)}catch(t){n.error(t);return}if(!i)return void n.complete();if(n.closed)return}try{e=t.resultSelector(t.state)}catch(t){n.error(t);return}if(!n.closed&&(n.next(e),!n.closed))return this.schedule(t)}}function tZ(t,e,n){return void 0===e&&(e=A.w),void 0===n&&(n=A.w),tU(function(){return t()?e:n})}function t$(t){return!(0,tb.c)(t)&&t-parseFloat(t)+1>=0}function tQ(t,e){return void 0===t&&(t=0),void 0===e&&(e=Q),(!t$(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Q),new i.c(function(n){return n.add(e.schedule(tX,t,{subscriber:n,counter:0,period:t})),n})}function tX(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function t0(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1/0,r=null,o=t[t.length-1];return(T(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.c)?t[0]:tD(n)(O(t,r))}var t1=new i.c(to);function t6(){return t1}function t2(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return A.w;var n=t[0],r=t.slice(1);return 1===t.length&&(0,tb.c)(n)?t2.apply(void 0,n):new i.c(function(t){var e=function(){return t.add(t2.apply(void 0,r).subscribe(t))};return tR(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function t4(t,e){return new i.c(e?function(n){var r=Object.keys(t),i=new u.y;return i.add(e.schedule(t7,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}:function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function t7(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}function t9(t,e){return function(n){return n.lift(new t3(t,e))}}var t3=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new t5(t,this.predicate,this.thisArg))},t}(),t5=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return o.C6(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(s.v);function t8(t,e,n){return[t9(e,n)(new i.c(tT(t))),t9(function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}(e,n))(new i.c(tT(t)))]}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)if(!(0,tb.c)(t[0]))return t[0];else t=t[0];return O(t,void 0).lift(new ee)}var ee=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new en(t))},t}(),en=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return o.C6(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=tI(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(t_);function er(t,e,n){return void 0===t&&(t=0),new i.c(function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(ei,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}})}function ei(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}function eo(t,e,n){void 0===t&&(t=0);var r=-1;return t$(e)?r=1>Number(e)&&1||Number(e):T(e)&&(n=e),T(n)||(n=Q),new i.c(function(e){var i=t$(t)?t:t-n.now();return n.schedule(es,i,{index:0,period:r,subscriber:e})})}function es(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function eu(t,e){return new i.c(function(n){try{r=t()}catch(t){n.error(t);return}try{i=e(r)}catch(t){n.error(t);return}var r,i,o=(i?tR(i):A.w).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}function ec(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),O(t,void 0).lift(new eh(n))}var eh=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new el(t,this.resultSelector))},t}(),el=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return o.C6(e,t),e.prototype._next=function(t){var e=this.iterators;(0,tb.c)(t)?e.push(new ef(t)):"function"==typeof t[tS]?e.push(new ea(t[tS]())):e.push(new ep(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var i=t[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;r<e;r++){var i=t[r],u=i.next();if(i.hasCompleted()&&(o=!0),u.done)return void n.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),o&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(s.v),ea=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return!!(t&&t.done)},t}(),ef=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[tS]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),ep=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o.C6(e,t),e.prototype[tS]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return tY(this.observable,new tq(this))},e}(tM),ed=n(315)}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["2767"],{1202(t,e,n){n.r(e),n.d(e,{never:()=>t6,noop:()=>to,generate:()=>tJ,isObservable:()=>tu,GroupedObservable:()=>m,animationFrameScheduler:()=>tt,fromEvent:()=>function t(e,n,r,o){return((0,tH.T)(r)&&(o=r,r=void 0),o)?t(e,n,r).pipe(tf(function(t){return(0,tb.c)(t)?o.apply(void 0,t):o(t)})):new i.c(function(t){!function t(e,n,r,i,o){if((u=e)&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener)e.addEventListener(n,r,o),s=function(){return e.removeEventListener(n,r,o)};else if((c=e)&&"function"==typeof c.on&&"function"==typeof c.off)e.on(n,r),s=function(){return e.off(n,r)};else{if((h=e)&&"function"==typeof h.addListener&&"function"==typeof h.removeListener)e.addListener(n,r),s=function(){return e.removeListener(n,r)};else if(e&&e.length)for(var s,u,c,h,l=0,a=e.length;l<a;l++)t(e[l],n,r,i,o);else throw TypeError("Invalid event target")}i.add(s)}(e,n,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,r)})},onErrorResumeNext:()=>t4,UnsubscriptionError:()=>tl.Z,ArgumentOutOfRangeError:()=>tc.k,asapScheduler:()=>K,forkJoin:()=>tz,iif:()=>tZ,Subject:()=>f,range:()=>er,BehaviorSubject:()=>g,VirtualTimeScheduler:()=>tn,ReplaySubject:()=>Y,bindCallback:()=>function t(e,n,r){if(n)if(!T(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,r).apply(void 0,i).pipe(tf(function(t){return(0,tb.c)(t)?n.apply(void 0,t):n(t)}))};else r=n;return function(){for(var t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var s=this,u={context:s,subject:t,callbackFunc:e,scheduler:r};return new i.c(function(i){if(r)return r.schedule(ty,0,{args:n,subscriber:i,params:u});if(!t){t=new W;try{e.apply(s,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){(0,tv.H)(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}},scheduled:()=>tV,using:()=>eu,asyncScheduler:()=>$,defer:()=>tU,ObjectUnsubscribedError:()=>c,asap:()=>Z,concat:()=>tG,AsyncSubject:()=>W,zip:()=>ec,observable:()=>x.s,ConnectableObservable:()=>b,queue:()=>k,race:()=>et,interval:()=>tQ,bindNodeCallback:()=>function t(e,n,r){if(n)if(!T(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,r).apply(void 0,i).pipe(tf(function(t){return(0,tb.c)(t)?n.apply(void 0,t):n(t)}))};else r=n;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={subject:void 0,args:t,callbackFunc:e,scheduler:r,context:this};return new i.c(function(n){var i=o.context,s=o.subject;if(r)return r.schedule(tw,0,{params:o,subscriber:n,context:i});if(!s){s=o.subject=new W;try{e.apply(i,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?s.error(n):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){(0,tv.H)(s)?s.error(t):console.warn(t)}}return s.subscribe(n)})}},pipe:()=>ti.F,config:()=>ed.$,EmptyError:()=>th,Notification:()=>R,animationFrame:()=>te,Subscriber:()=>s.v,Subscription:()=>u.y,Observable:()=>i.c,async:()=>Q,Scheduler:()=>E,combineLatest:()=>tO,partition:()=>t3,pairs:()=>t7,NotificationKind:()=>r,from:()=>tR,EMPTY:()=>A.w,empty:()=>A.I,VirtualAction:()=>tr,merge:()=>t0,of:()=>F,queueScheduler:()=>j,TimeoutError:()=>ta,fromEventPattern:()=>function t(e,n,r){return r?t(e,n).pipe(tf(function(t){return(0,tb.c)(t)?r.apply(void 0,t):r(t)})):new i.c(function(t){var r,i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)};try{r=e(i)}catch(e){t.error(e);return}if((0,tH.T)(n))return function(){return n(i,r)}})},identity:()=>ts.D,throwError:()=>P,timer:()=>eo,NEVER:()=>t1});var r,i=n(8099),o=n(2505),s=n(1171),u=n(9708),c=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),h=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o.C6(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(u.y),l=n(8904),a=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o.C6(e,t),e}(s.v),f=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o.C6(e,t),e.prototype[l.D]=function(){return new a(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new c;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new c},e.prototype._subscribe=function(t){if(this.closed)throw new c;return this.hasError?(t.error(this.thrownError),u.y.EMPTY):this.isStopped?(t.complete(),u.y.EMPTY):(this.observers.push(t),new h(this,t))},e.prototype.asObservable=function(){var t=new i.c;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.c),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return o.C6(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.y.EMPTY},e}(f),d=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new v(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),v=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o.C6(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var n=this.connection,r=t._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},e}(s.v),b=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o.C6(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return!t&&(this._isComplete=!1,(t=this._connection=new u.y).add(this.source.subscribe(new y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.y.EMPTY)),t},e.prototype.refCount=function(){return this.lift(new d(this))},e}(i.c),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o.C6(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(a),m=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return o.C6(e,t),e.prototype._subscribe=function(t){var e=new u.y,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new w(n)),e.add(r.subscribe(t)),e},e}(i.c),w=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return o.C6(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(u.y),x=n(4794),g=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o.C6(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new c},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(f),_=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return o.C6(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o.C6(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(u.y)),C=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.schedule=function(e,n){return(void 0===n&&(n=0),n>0)?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(_),E=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),S=function(t){function e(n,r){void 0===r&&(r=E.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o.C6(e,t),e.prototype.schedule=function(n,r,i){return(void 0===r&&(r=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e,n=this.actions;if(this.active)return void n.push(t);this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}},e}(E),j=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e}(S))(C),k=j,A=n(446);function T(t){return t&&"function"==typeof t.schedule}var I=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function N(t,e){return new i.c(function(n){var r=new u.y,i=0;return r.add(e.schedule(function(){i===t.length?n.complete():(n.next(t[i++]),n.closed||r.add(this.schedule()))})),r})}function O(t,e){return e?N(t,e):new i.c(I(t))}function F(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return T(n)?(t.pop(),N(t,n)):O(t)}function P(t,e){return new i.c(e?function(n){return e.schedule(V,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function V(t){var e=t.error;t.subscriber.error(e)}r||(r={});var R=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return F(this.value);case"E":return P(this.error);case"C":return(0,A.I)()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),q=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return o.C6(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new M(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(R.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(R.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(R.createComplete()),this.unsubscribe()},e}(s.v),M=function(t,e){this.notification=t,this.destination=e},Y=function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o.C6(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new L(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new c;if(this.isStopped||this.hasError?e=u.y.EMPTY:(this.observers.push(t),e=new h(this,t)),i&&t.add(t=new q(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(var s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||k).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(f),L=function(t,e){this.time=t,this.value=e},W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o.C6(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),u.y.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),u.y.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(f),D=1,G=Promise.resolve(),U={};function z(t){return t in U&&(delete U[t],!0)}var B=function(t){var e=D++;return U[e]=!0,G.then(function(){return z(e)&&t()}),e},H=function(t){z(t)},J=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=B(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(H(n),e.scheduled=void 0)},e}(_),K=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(S))(J),Z=K,$=new S(_),Q=$,X=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return o.C6(e,t),e.prototype.requestAsyncId=function(e,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(_),tt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do if(e=t.execute(t.state,t.delay))break;while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(S))(X),te=tt,tn=function(t){function e(e,n){void 0===e&&(e=tr),void 0===n&&(n=1/0);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return o.C6(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(S),tr=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return o.C6(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){if(t.delay===e.delay)if(t.index===e.index)return 0;else if(t.index>e.index)return 1;else return -1;return t.delay>e.delay?1:-1},e}(_),ti=n(4956);function to(){}var ts=n(302);function tu(t){return!!t&&(t instanceof i.c||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var tc=n(7627),th=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),tl=n(2242),ta=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function tf(t,e){return function(n){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new tp(t,e))}}var tp=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new td(t,this.project,this.thisArg))},t}(),td=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return o.C6(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(s.v),tv=n(6934),tb=n(9707);function ty(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new W;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(tm,0,{value:r,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(r))}function tm(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function tw(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,s=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new W;try{o.apply(i,s.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(tg,0,{err:r,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(tx,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(tg,0,{err:t,subject:c}))}}this.add(c.subscribe(r))}function tx(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function tg(t){var e=t.err;t.subject.error(e)}var t_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(s.v),tC=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return o.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(s.v),tE=n(4856),tS="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",tj=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tk(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var tA=n(7160),tT=function(t){if(t&&"function"==typeof t[x.s])return function(e){var n=t[x.s]();if("function"==typeof n.subscribe)return n.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if(tj(t))return I(t);if(tk(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tE.T),e};if(t&&"function"==typeof t[tS])return function(e){for(var n=t[tS]();;){var r=void 0;try{r=n.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};throw TypeError("You provided "+((0,tA.G)(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function tI(t,e,n,r,o){if(void 0===o&&(o=new tC(t,n,r)),!o.closed)return e instanceof i.c?e.subscribe(o):tT(e)(o)}var tN={};function tO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return T(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,tb.c)(t[0])&&(t=t[0]),O(t,r).lift(new tF(n))}var tF=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tP(t,this.resultSelector))},t}(),tP=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return o.C6(e,t),e.prototype._next=function(t){this.values.push(tN),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(tI(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===tN?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(t_);function tV(t,e){if(null!=t)if(t&&"function"==typeof t[x.s])return new i.c(function(n){var r=new u.y;return r.add(e.schedule(function(){var i=t[x.s]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r});else{if(tk(t))return new i.c(function(n){var r=new u.y;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r});if(tj(t))return N(t,e);if(t&&"function"==typeof t[tS]||"string"==typeof t){if(!t)throw Error("Iterable cannot be null");return new i.c(function(n){var r,i=new u.y;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[tS](),i.add(e.schedule(function(){if(!n.closed){try{var t,e,i=r.next();t=i.value,e=i.done}catch(t){n.error(t);return}e?n.complete():(n.next(t),this.schedule())}}))})),i})}}throw TypeError((null!==t&&typeof t||t)+" is not observable")}function tR(t,e){return e?tV(t,e):t instanceof i.c?t:new i.c(tT(t))}var tq=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return o.C6(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(s.v),tM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.C6(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(s.v);function tY(t,e){var n;if(!e.closed){if(t instanceof i.c)return t.subscribe(e);try{n=tT(t)(e)}catch(t){e.error(t)}return n}}var tL=function(){function t(t,e){void 0===e&&(e=1/0),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tW(t,this.project,this.concurrent))},t}(),tW=function(t){function e(e,n,r){void 0===r&&(r=1/0);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o.C6(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new tq(this),n=this.destination;n.add(e);var r=tY(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(tM);function tD(t){return void 0===t&&(t=1/0),function t(e,n,r){return(void 0===r&&(r=1/0),"function"==typeof n)?function(i){return i.pipe(t(function(t,r){return tR(e(t,r)).pipe(tf(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new tL(e,r))})}(ts.D,t)}function tG(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tD(1)(F.apply(void 0,t))}function tU(t){return new i.c(function(e){var n;try{n=t()}catch(t){e.error(t);return}return(n?tR(n):(0,A.I)()).subscribe(e)})}function tz(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if((0,tb.c)(n))return tB(n,null);if((0,tA.G)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return tB(r.map(function(t){return n[t]}),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return tB(t=1===t.length&&(0,tb.c)(t[0])?t[0]:t,null).pipe(tf(function(t){return i.apply(void 0,t)}))}return tB(t,null)}function tB(t,e){return new i.c(function(n){var r=t.length;if(0===r)return void n.complete();for(var i=Array(r),o=0,s=0,u=function(u){var c=tR(t[u]),h=!1;n.add(c.subscribe({next:function(t){!h&&(h=!0,s++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&h||(s===r&&n.next(e?e.reduce(function(t,e,n){return t[e]=i[n],t},{}):i),n.complete())}}))},c=0;c<r;c++)u(c)})}var tH=n(8364);function tJ(t,e,n,r,o){if(1==arguments.length){var s,u;u=t.initialState,e=t.condition,n=t.iterate,s=t.resultSelector||ts.D,o=t.scheduler}else void 0===r||T(r)?(u=t,s=ts.D,o=r):(u=t,s=r);return new i.c(function(t){var r=u;if(o)return o.schedule(tK,0,{subscriber:t,iterate:n,condition:e,resultSelector:s,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){t.error(e);return}if(!i){t.complete();break}}var c=void 0;try{c=s(r)}catch(e){t.error(e);break}if(t.next(c),t.closed)break;try{r=n(r)}catch(e){t.error(e);break}}})}function tK(t){var e,n=t.subscriber,r=t.condition;if(!n.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){n.error(t);return}else t.needIterate=!0;if(r){var i=void 0;try{i=r(t.state)}catch(t){n.error(t);return}if(!i)return void n.complete();if(n.closed)return}try{e=t.resultSelector(t.state)}catch(t){n.error(t);return}if(!n.closed&&(n.next(e),!n.closed))return this.schedule(t)}}function tZ(t,e,n){return void 0===e&&(e=A.w),void 0===n&&(n=A.w),tU(function(){return t()?e:n})}function t$(t){return!(0,tb.c)(t)&&t-parseFloat(t)+1>=0}function tQ(t,e){return void 0===t&&(t=0),void 0===e&&(e=Q),(!t$(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Q),new i.c(function(n){return n.add(e.schedule(tX,t,{subscriber:n,counter:0,period:t})),n})}function tX(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function t0(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=1/0,r=null,o=t[t.length-1];return(T(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.c)?t[0]:tD(n)(O(t,r))}var t1=new i.c(to);function t6(){return t1}function t4(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return A.w;var n=t[0],r=t.slice(1);return 1===t.length&&(0,tb.c)(n)?t4.apply(void 0,n):new i.c(function(t){var e=function(){return t.add(t4.apply(void 0,r).subscribe(t))};return tR(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function t7(t,e){return new i.c(e?function(n){var r=Object.keys(t),i=new u.y;return i.add(e.schedule(t2,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}:function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function t2(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}function t9(t,e){return function(n){return n.lift(new t5(t,e))}}var t5=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new t8(t,this.predicate,this.thisArg))},t}(),t8=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return o.C6(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(s.v);function t3(t,e,n){return[t9(e,n)(new i.c(tT(t))),t9(function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}(e,n))(new i.c(tT(t)))]}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)if(!(0,tb.c)(t[0]))return t[0];else t=t[0];return O(t,void 0).lift(new ee)}var ee=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new en(t))},t}(),en=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return o.C6(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=tI(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(t_);function er(t,e,n){return void 0===t&&(t=0),new i.c(function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(ei,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}})}function ei(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}function eo(t,e,n){void 0===t&&(t=0);var r=-1;return t$(e)?r=1>Number(e)&&1||Number(e):T(e)&&(n=e),T(n)||(n=Q),new i.c(function(e){var i=t$(t)?t:t-n.now();return n.schedule(es,i,{index:0,period:r,subscriber:e})})}function es(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function eu(t,e){return new i.c(function(n){try{r=t()}catch(t){n.error(t);return}try{i=e(r)}catch(t){n.error(t);return}var r,i,o=(i?tR(i):A.w).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}function ec(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),O(t,void 0).lift(new eh(n))}var eh=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new el(t,this.resultSelector))},t}(),el=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return o.C6(e,t),e.prototype._next=function(t){var e=this.iterators;(0,tb.c)(t)?e.push(new ef(t)):"function"==typeof t[tS]?e.push(new ea(t[tS]())):e.push(new ep(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var i=t[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;r<e;r++){var i=t[r],u=i.next();if(i.hasCompleted()&&(o=!0),u.done)return void n.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),o&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(s.v),ea=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return!!(t&&t.done)},t}(),ef=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[tS]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),ep=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o.C6(e,t),e.prototype[tS]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return tY(this.observable,new tq(this))},e}(tM),ed=n(315)}}]);
package/dist/3279.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3279"],{8099(r,t,n){n.d(t,{c:()=>h});var e=n(6934),o=n(1171),s=n(8904),i=n(979),c=n(2413),u=n(4956),a=n(315),h=function(){function r(r){this._isScalar=!1,r&&(this._subscribe=r)}return r.prototype.lift=function(t){var n=new r;return n.source=this,n.operator=t,n},r.prototype.subscribe=function(r,t,n){var e=this.operator,c=function(r,t,n){if(r){if(r instanceof o.v)return r;if(r[s.D])return r[s.D]()}return r||t||n?new o.v(r,t,n):new o.v(i.I)}(r,t,n);if(e?c.add(e.call(c,this.source)):c.add(this.source||a.$.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),a.$.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},r.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){a.$.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=t),(0,e.H)(r)?r.error(t):console.warn(t)}},r.prototype.forEach=function(r,t){var n=this;return new(t=p(t))(function(t,e){var o;o=n.subscribe(function(t){try{r(t)}catch(r){e(r),o&&o.unsubscribe()}},e,t)})},r.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},r.prototype[c.s]=function(){return this},r.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:(0,u.m)(r)(this)},r.prototype.toPromise=function(r){var t=this;return new(r=p(r))(function(r,n){var e;t.subscribe(function(r){return e=r},function(r){return n(r)},function(){return r(e)})})},r.create=function(t){return new r(t)},r}();function p(r){if(r||(r=a.$.Promise||Promise),!r)throw Error("no Promise impl found");return r}},979(r,t,n){n.d(t,{I:()=>s});var e=n(315),o=n(4856),s={closed:!0,next:function(r){},error:function(r){if(e.$.useDeprecatedSynchronousErrorHandling)throw r;(0,o.T)(r)},complete:function(){}}},1171(r,t,n){n.d(t,{v:()=>h});var e=n(2505),o=n(8364),s=n(979),i=n(9708),c=n(8904),u=n(315),a=n(4856),h=function(r){function t(n,e,o){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=s.I;break;case 1:if(!n){i.destination=s.I;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new p(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new p(i,n,e,o)}return i}return e.C6(t,r),t.prototype[c.D]=function(){return this},t.create=function(r,n,e){var o=new t(r,n,e);return o.syncErrorThrowable=!1,o},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(i.y),p=function(r){function t(t,n,e,i){var c,u=r.call(this)||this;u._parentSubscriber=t;var a=u;return(0,o.T)(n)?c=n:n&&(c=n.next,e=n.error,i=n.complete,n!==s.I&&(a=Object.create(n),(0,o.T)(a.unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=c,u._error=e,u._complete=i,u}return e.C6(t,r),t.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.$.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},t.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=u.$.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,r):this.__tryOrUnsub(this._error,r),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):(0,a.T)(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;(0,a.T)(r)}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};u.$.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),u.$.useDeprecatedSynchronousErrorHandling)throw r;(0,a.T)(r)}},t.prototype.__tryOrSetError=function(r,t,n){if(!u.$.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(u.$.useDeprecatedSynchronousErrorHandling)return r.syncErrorValue=t,r.syncErrorThrown=!0,!0;return(0,a.T)(t),!0}return!1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},t}(h)},9708(r,t,n){n.d(t,{y:()=>c});var e=n(9707),o=n(4779),s=n(8364),i=n(2242),c=function(){var r;function t(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}return t.prototype.unsubscribe=function(){if(!this.closed){var r,n=this._parentOrParents,c=this._ctorUnsubscribe,a=this._unsubscribe,h=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var p=0;p<n.length;++p)n[p].remove(this);if((0,s.T)(a)){c&&(this._unsubscribe=void 0);try{a.call(this)}catch(t){r=t instanceof i.Z?u(t.errors):[t]}}if((0,e.c)(h))for(var p=-1,b=h.length;++p<b;){var f=h[p];if((0,o.G)(f))try{f.unsubscribe()}catch(t){r=r||[],t instanceof i.Z?r=r.concat(u(t.errors)):r.push(t)}}if(r)throw new i.Z(r)}},t.prototype.add=function(r){var n=r;if(!r)return t.EMPTY;switch(typeof r){case"function":n=new t(r);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var e=n;(n=new t)._subscriptions=[e]}break;default:throw Error("unrecognized teardown "+r+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},t.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},(r=new t).closed=!0,t.EMPTY=r,t}();function u(r){return r.reduce(function(r,t){return r.concat(t instanceof i.Z?t.errors:t)},[])}},315(r,t,n){n.d(t,{$:()=>o});var e=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,e=value},get useDeprecatedSynchronousErrorHandling(){return e}}},446(r,t,n){n.d(t,{I:()=>s,w:()=>o});var e=n(8099),o=new e.c(function(r){return r.complete()});function s(r){var t;return r?(t=r,new e.c(function(r){return t.schedule(function(){return r.complete()})})):o}},2413(r,t,n){n.d(t,{s:()=>e});var e="function"==typeof Symbol&&Symbol.observable||"@@observable"},8904(r,t,n){n.d(t,{D:()=>e});var e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7627(r,t,n){n.d(t,{k:()=>e});var e=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}()},2242(r,t,n){n.d(t,{Z:()=>e});var e=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map(function(r,t){return t+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}()},6934(r,t,n){n.d(t,{H:()=>o});var e=n(1171);function o(r){for(;r;){var t=r,n=t.closed,o=t.destination,s=t.isStopped;if(n||s)return!1;r=o&&o instanceof e.v?o:null}return!0}},4856(r,t,n){n.d(t,{T:()=>e});function e(r){setTimeout(function(){throw r},0)}},302(r,t,n){n.d(t,{D:()=>e});function e(r){return r}},9707(r,t,n){n.d(t,{c:()=>e});var e=Array.isArray||function(r){return r&&"number"==typeof r.length}},8364(r,t,n){n.d(t,{T:()=>e});function e(r){return"function"==typeof r}},4779(r,t,n){n.d(t,{G:()=>e});function e(r){return null!==r&&"object"==typeof r}},4956(r,t,n){n.d(t,{F:()=>o,m:()=>s});var e=n(302);function o(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return s(r)}function s(r){return 0===r.length?e.D:1===r.length?r[0]:function(t){return r.reduce(function(r,t){return t(r)},t)}}},2505(r,t,n){n.d(t,{C6:()=>o});var e=function(r,t){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])})(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3279"],{8099(r,t,n){n.d(t,{c:()=>h});var e=n(6934),o=n(1171),s=n(8904),i=n(979),c=n(4794),u=n(4956),a=n(315),h=function(){function r(r){this._isScalar=!1,r&&(this._subscribe=r)}return r.prototype.lift=function(t){var n=new r;return n.source=this,n.operator=t,n},r.prototype.subscribe=function(r,t,n){var e=this.operator,c=function(r,t,n){if(r){if(r instanceof o.v)return r;if(r[s.D])return r[s.D]()}return r||t||n?new o.v(r,t,n):new o.v(i.I)}(r,t,n);if(e?c.add(e.call(c,this.source)):c.add(this.source||a.$.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),a.$.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},r.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){a.$.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=t),(0,e.H)(r)?r.error(t):console.warn(t)}},r.prototype.forEach=function(r,t){var n=this;return new(t=p(t))(function(t,e){var o;o=n.subscribe(function(t){try{r(t)}catch(r){e(r),o&&o.unsubscribe()}},e,t)})},r.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},r.prototype[c.s]=function(){return this},r.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:(0,u.m)(r)(this)},r.prototype.toPromise=function(r){var t=this;return new(r=p(r))(function(r,n){var e;t.subscribe(function(r){return e=r},function(r){return n(r)},function(){return r(e)})})},r.create=function(t){return new r(t)},r}();function p(r){if(r||(r=a.$.Promise||Promise),!r)throw Error("no Promise impl found");return r}},979(r,t,n){n.d(t,{I:()=>s});var e=n(315),o=n(4856),s={closed:!0,next:function(r){},error:function(r){if(e.$.useDeprecatedSynchronousErrorHandling)throw r;(0,o.T)(r)},complete:function(){}}},1171(r,t,n){n.d(t,{v:()=>h});var e=n(2505),o=n(8364),s=n(979),i=n(9708),c=n(8904),u=n(315),a=n(4856),h=function(r){function t(n,e,o){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=s.I;break;case 1:if(!n){i.destination=s.I;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new p(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new p(i,n,e,o)}return i}return e.C6(t,r),t.prototype[c.D]=function(){return this},t.create=function(r,n,e){var o=new t(r,n,e);return o.syncErrorThrowable=!1,o},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(i.y),p=function(r){function t(t,n,e,i){var c,u=r.call(this)||this;u._parentSubscriber=t;var a=u;return(0,o.T)(n)?c=n:n&&(c=n.next,e=n.error,i=n.complete,n!==s.I&&(a=Object.create(n),(0,o.T)(a.unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=c,u._error=e,u._complete=i,u}return e.C6(t,r),t.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.$.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},t.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=u.$.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,r):this.__tryOrUnsub(this._error,r),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):(0,a.T)(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;(0,a.T)(r)}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};u.$.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),u.$.useDeprecatedSynchronousErrorHandling)throw r;(0,a.T)(r)}},t.prototype.__tryOrSetError=function(r,t,n){if(!u.$.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(u.$.useDeprecatedSynchronousErrorHandling)return r.syncErrorValue=t,r.syncErrorThrown=!0,!0;return(0,a.T)(t),!0}return!1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},t}(h)},9708(r,t,n){n.d(t,{y:()=>c});var e=n(9707),o=n(7160),s=n(8364),i=n(2242),c=function(){var r;function t(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}return t.prototype.unsubscribe=function(){if(!this.closed){var r,n=this._parentOrParents,c=this._ctorUnsubscribe,a=this._unsubscribe,h=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var p=0;p<n.length;++p)n[p].remove(this);if((0,s.T)(a)){c&&(this._unsubscribe=void 0);try{a.call(this)}catch(t){r=t instanceof i.Z?u(t.errors):[t]}}if((0,e.c)(h))for(var p=-1,b=h.length;++p<b;){var f=h[p];if((0,o.G)(f))try{f.unsubscribe()}catch(t){r=r||[],t instanceof i.Z?r=r.concat(u(t.errors)):r.push(t)}}if(r)throw new i.Z(r)}},t.prototype.add=function(r){var n=r;if(!r)return t.EMPTY;switch(typeof r){case"function":n=new t(r);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var e=n;(n=new t)._subscriptions=[e]}break;default:throw Error("unrecognized teardown "+r+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},t.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},(r=new t).closed=!0,t.EMPTY=r,t}();function u(r){return r.reduce(function(r,t){return r.concat(t instanceof i.Z?t.errors:t)},[])}},315(r,t,n){n.d(t,{$:()=>o});var e=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,e=value},get useDeprecatedSynchronousErrorHandling(){return e}}},446(r,t,n){n.d(t,{I:()=>s,w:()=>o});var e=n(8099),o=new e.c(function(r){return r.complete()});function s(r){var t;return r?(t=r,new e.c(function(r){return t.schedule(function(){return r.complete()})})):o}},4794(r,t,n){n.d(t,{s:()=>e});var e="function"==typeof Symbol&&Symbol.observable||"@@observable"},8904(r,t,n){n.d(t,{D:()=>e});var e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7627(r,t,n){n.d(t,{k:()=>e});var e=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}()},2242(r,t,n){n.d(t,{Z:()=>e});var e=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map(function(r,t){return t+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}()},6934(r,t,n){n.d(t,{H:()=>o});var e=n(1171);function o(r){for(;r;){var t=r,n=t.closed,o=t.destination,s=t.isStopped;if(n||s)return!1;r=o&&o instanceof e.v?o:null}return!0}},4856(r,t,n){n.d(t,{T:()=>e});function e(r){setTimeout(function(){throw r},0)}},302(r,t,n){n.d(t,{D:()=>e});function e(r){return r}},9707(r,t,n){n.d(t,{c:()=>e});var e=Array.isArray||function(r){return r&&"number"==typeof r.length}},8364(r,t,n){n.d(t,{T:()=>e});function e(r){return"function"==typeof r}},7160(r,t,n){n.d(t,{G:()=>e});function e(r){return null!==r&&"object"==typeof r}},4956(r,t,n){n.d(t,{F:()=>o,m:()=>s});var e=n(302);function o(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return s(r)}function s(r){return 0===r.length?e.D:1===r.length?r[0]:function(t){return r.reduce(function(r,t){return t(r)},t)}}},2505(r,t,n){n.d(t,{C6:()=>o});var e=function(r,t){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])})(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}}]);
package/dist/3378.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3378"],{4767(e,n,o){var t={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","997"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function s(e){if(!o.o(t,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=t[e],s=n[0];return o.e(n[1]).then(function(){return o(s)})}s.keys=()=>Object.keys(t),s.id=4767,e.exports=s},7003(e,n,o){"use strict";o.d(n,{AO:()=>t,Jp:()=>s,zD:()=>r});var t="@openmrs/esm-reports-app",s="/reports",r="System Developer"},7481(e,n,o){"use strict";o.r(n),o.d(n,{runReport:()=>j,scheduledOverview:()=>d,importTranslation:()=>p,overview:()=>m,reportsLink:()=>l,cancelReportModal:()=>h,startupApp:()=>c,root:()=>u});var t=o(7841),s=o(4557),r=o(7003),i={webPreviewViewReportUrl:{_type:t.Type.String,_description:'The custom URL that the "View Report" button should open when output format is Web Preview. Use {reportRequestUuid} as placeholder.',_default:""}},a={featureName:"reports",moduleName:r.AO},p=o(4767);function c(){var e=(0,s.getFixedT)(void 0,r.AO);(0,t.registerBreadcrumbs)([{title:"Home",path:"".concat(window.getOpenmrsSpaBase().slice(0,-1)).concat(r.Jp)},{path:"".concat(window.getOpenmrsSpaBase(),"system-administration"),title:function(){return Promise.resolve(e("systemAdmin","System Administration"))},parent:"".concat(window.getOpenmrsSpaBase(),"home")},{title:function(){return Promise.resolve(e("reports","Reports"))},path:"".concat(window.getOpenmrsSpaBase(),"reports"),parent:"".concat(window.getOpenmrsSpaBase(),"system-administration")},{title:function(){return Promise.resolve(e("scheduledReports","Scheduled Reports"))},path:"".concat(window.getOpenmrsSpaBase(),"reports/scheduled-overview"),parent:"".concat(window.getOpenmrsSpaBase(),"reports")},{title:function(){return Promise.resolve(e("reportsDataOverview","Reports Data Overview"))},path:"".concat(window.getOpenmrsSpaBase(),"reports/reports-data-overview"),parent:"".concat(window.getOpenmrsSpaBase(),"reports")}]),(0,t.defineConfigSchema)(r.AO,i)}var u=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("325"),o.e("3279"),o.e("5758"),o.e("3204"),o.e("1072"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("6396"),o.e("1824"),o.e("3997"),o.e("5740"),o.e("41"),o.e("9442"),o.e("3473")]).then(o.bind(o,3368))},a),l=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("6616"),o.e("9560"),o.e("5595")]).then(o.bind(o,7542))},a),m=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("325"),o.e("3279"),o.e("1072"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("6396"),o.e("1824"),o.e("3997"),o.e("9442"),o.e("6677")]).then(o.bind(o,7353))},a),d=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("325"),o.e("3279"),o.e("5758"),o.e("3204"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("6396"),o.e("1824"),o.e("41")]).then(o.bind(o,160))},a),j=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("325"),o.e("3279"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("6396"),o.e("3997"),o.e("9058")]).then(o.bind(o,188))},a),h=(0,t.getAsyncLifecycle)(function(){return Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("3697")]).then(o.bind(o,1992))},a)}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3378"],{4767(e,s,o){var n={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","997"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function t(e){if(!o.o(n,e))return Promise.resolve().then(function(){var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s});var s=n[e],t=s[0];return o.e(s[1]).then(function(){return o(t)})}t.keys=()=>Object.keys(n),t.id=4767,e.exports=t},7003(e,s,o){"use strict";o.d(s,{AO:()=>n,Jp:()=>t,zD:()=>r});let n="@openmrs/esm-reports-app",t="/reports",r="System Developer"},7481(e,s,o){"use strict";o.r(s),o.d(s,{runReport:()=>h,scheduledOverview:()=>c,importTranslation:()=>a,overview:()=>j,reportsLink:()=>d,cancelReportModal:()=>u,startupApp:()=>l,root:()=>m});var n=o(7841),t=o(4557),r=o(7003);let i={webPreviewViewReportUrl:{_type:n.Type.String,_description:'The custom URL that the "View Report" button should open when output format is Web Preview. Use {reportRequestUuid} as placeholder.',_default:""}},p={featureName:"reports",moduleName:r.AO},a=o(4767);function l(){let e=(0,t.getFixedT)(void 0,r.AO);(0,n.registerBreadcrumbs)([{title:"Home",path:`${window.getOpenmrsSpaBase().slice(0,-1)}${r.Jp}`},{path:`${window.getOpenmrsSpaBase()}system-administration`,title:()=>Promise.resolve(e("systemAdmin","System Administration")),parent:`${window.getOpenmrsSpaBase()}home`},{title:()=>Promise.resolve(e("reports","Reports")),path:`${window.getOpenmrsSpaBase()}reports`,parent:`${window.getOpenmrsSpaBase()}system-administration`},{title:()=>Promise.resolve(e("scheduledReports","Scheduled Reports")),path:`${window.getOpenmrsSpaBase()}reports/scheduled-overview`,parent:`${window.getOpenmrsSpaBase()}reports`},{title:()=>Promise.resolve(e("reportsDataOverview","Reports Data Overview")),path:`${window.getOpenmrsSpaBase()}reports/reports-data-overview`,parent:`${window.getOpenmrsSpaBase()}reports`}]),(0,n.defineConfigSchema)(r.AO,i)}let m=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("9061"),o.e("3279"),o.e("5758"),o.e("3204"),o.e("1072"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("3997"),o.e("5740"),o.e("41"),o.e("9442"),o.e("9731")]).then(o.bind(o,3368)),p),d=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("6616"),o.e("9560"),o.e("5595")]).then(o.bind(o,7542)),p),j=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("9061"),o.e("3279"),o.e("1072"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("3997"),o.e("9442"),o.e("4057")]).then(o.bind(o,7353)),p),c=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("9061"),o.e("3279"),o.e("5758"),o.e("3204"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("41"),o.e("3500")]).then(o.bind(o,160)),p),h=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("9061"),o.e("3279"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("3997"),o.e("7879")]).then(o.bind(o,188)),p),u=(0,n.getAsyncLifecycle)(()=>Promise.all([o.e("689"),o.e("9385"),o.e("1744"),o.e("6616"),o.e("9560"),o.e("7807"),o.e("3697")]).then(o.bind(o,1992)),p)}}]);
package/dist/3378.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"3378.js","sources":["webpack://@openmrs/esm-reports-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/config-schema.ts","webpack://@openmrs/esm-reports-app/./src/index.ts"],"names":["Promise","Error","Object","moduleName","basePath","PRIVILEGE_SYSTEM_DEVELOPER","configSchema","Type","options","importTranslation","require","startupApp","t","getFixedT","undefined","registerBreadcrumbs","window","title","defineConfigSchema","root","getAsyncLifecycle","reportsLink","overview","scheduledOverview","runReport","cancelReportModal"],"mappings":"kIAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CAC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AAA,iBAAAA,AAAAA,EAAkB,W,OAAM,0L,EAAqDZ,GAEjGgB,EAAYJ,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAAkB,W,OAAM,oK,EAA6DZ,GAEjGiB,EAAoBL,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAC/B,W,OAAM,sH,EACNZ,E"}
1
+ {"version":3,"file":"3378.js","sources":["webpack://@openmrs/esm-reports-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/config-schema.ts","webpack://@openmrs/esm-reports-app/./src/index.ts"],"names":["Promise","Error","Object","moduleName","basePath","PRIVILEGE_SYSTEM_DEVELOPER","configSchema","Type","options","importTranslation","require","startupApp","t","getFixedT","undefined","registerBreadcrumbs","window","defineConfigSchema","root","getAsyncLifecycle","reportsLink","overview","scheduledOverview","runReport","cancelReportModal"],"mappings":"kIAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OAC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AA,AAAAA,EAAkB,IAAM,mLAA2CX,GAE9Ec,EAAoBH,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAAkB,IAAM,gLAAqDX,GAEjGe,EAAYJ,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAAkB,IAAM,0JAA6DX,GAEjGgB,EAAoBL,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAC/B,IAAM,uHACNX,E"}
package/dist/3500.css ADDED
@@ -0,0 +1 @@
1
+ .-esm-reports__overlay__desktopOverlay___JSMey{z-index:3;background-color:#f4f4f4;border-left:1px solid #a8a8a8;width:700px;height:calc(100vh - 3rem);position:fixed;top:3rem;bottom:0;right:0;overflow-y:auto}.-esm-reports__overlay__desktopOverlay___JSMey:after{border-left:1px solid #a8a8a8;height:100%}.-esm-reports__overlay__tabletOverlay___G6STO{z-index:9999;-ms-overflow-style:none;scrollbar-width:none;z-index:3;background-color:#f4f4f4;position:fixed;inset:0;overflow-y:scroll}.-esm-reports__overlay__tabletOverlay___G6STO::-webkit-scrollbar{width:0}.-esm-reports__overlay__tabletOverlay___G6STO>div{margin-top:3rem}.-esm-reports__overlay__tabletOverlayHeader___jtFqQ button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-reports__overlay__tabletOverlayHeader___jtFqQ .-esm-reports__overlay__headerContent___pmU9J{color:#fff}.-esm-reports__overlay__desktopHeader___WpYyN{z-index:1000;background-color:#e0e0e0;border-bottom:1px solid #a8a8a8;justify-content:space-between;align-items:center;width:100%;display:flex;position:sticky;top:0}.-esm-reports__overlay__headerContent___pmU9J{font-size:var(--cds-heading-compact-02-font-size,1rem);font-weight:var(--cds-heading-compact-02-font-weight,600);line-height:var(--cds-heading-compact-02-line-height,1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing,0);color:#161616;padding:0 1rem}.-esm-reports__overlay__closeButton___LNwhl{color:#161616;fill:#161616;background-color:#fff}.omrs-breakpoint-gt-tablet .-esm-reports__overlay__overlayContent___92-Oj,.omrs-breakpoint-lt-desktop .-esm-reports__overlay__overlayContent___92-Oj{padding:0;overflow-y:auto}.-esm-reports__run-report-form__tablet___QfpzJ{background-color:#fff;padding:1.5rem 1rem}.-esm-reports__run-report-form__desktop___vIg\+q{padding:0}.-esm-reports__run-report-form__desktopRunReport___vOnoB{background-color:#fff;flex-direction:column;justify-content:space-between;display:flex}.-esm-reports__run-report-form__runReportInnerDivElement___llkjo{flex-direction:column;align-items:flex-start;gap:1rem;padding:1rem;display:flex}.-esm-reports__run-report-form__basicInputElement___uqISn{width:300px;height:30px;margin-bottom:30px}.-esm-reports__run-report-form__outputFormatDiv___XOaV7{flex-direction:column;align-items:flex-start;gap:1rem;margin-bottom:50px;padding:2rem 1rem 1rem;display:flex}.-esm-reports__run-report-form__buttonsDiv___CSki5{margin-top:50px}.-esm-reports__run-report-form__parameterElement___Zviy\+{margin-top:30px;margin-bottom:30px}.-esm-reports__run-report-form__datePicker___sJmQg{text-align:left}.-esm-reports__run-report-form__cancelActionButton___3PaYg{color:#525252;padding-left:0;text-decoration:underline}.-esm-reports__run-report-form__tableIcon___d\+Oqj{margin-left:10px;display:inline-block}.-esm-reports__run-report-form__reportButton___7hAi0{align-content:flex-start;align-items:baseline;min-width:50%;height:4rem;display:flex}.-esm-reports__run-report-form__rowCellEven___pmOR4{background-color:#fff!important}.-esm-reports__run-report-form__rowCellOdd___02jky{background-color:#f4f4f4!important}.-esm-reports__concept-search-results__container___i-7uS{z-index:1000;background:#f4f4f4;border:1px solid #e0e0e0;border-radius:.25rem;max-height:300px;margin:.5rem 0 0;position:relative;overflow-y:auto;box-shadow:0 2px 6px #0003}.-esm-reports__concept-search-results__searchResultsCount___qYTqm{font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);line-height:var(--cds-body-compact-01-line-height,1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);color:#525252}.-esm-reports__concept-search-results__conceptBasketSearchResultsHeader___JlOGD{border-bottom:1px solid #e0e0e0;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.5rem;display:flex}.-esm-reports__concept-search-results__tabletSearchResultTile___v7RMR:not(:last-of-type){margin-bottom:.75rem}.-esm-reports__concept-search-results__searchResultSkeletonWrapper___Smntr{margin:.5rem 0;padding:.5rem}.-esm-reports__concept-search-results__searchResultSkeletonWrapper___Smntr .cds--skeleton__text{margin:0}.-esm-reports__concept-search-results__searchResultSkeletonWrapper___Smntr .-esm-reports__concept-search-results__searchResultCntSkeleton___vSghD{margin-right:2rem}.-esm-reports__concept-search-results__searchResultSkeletonWrapper___Smntr .-esm-reports__concept-search-results__skeletonTile___9Rbro{align-items:center;display:flex}.-esm-reports__concept-search-results__emptyState___T6MC4{text-align:center;background-color:#f4f4f4;justify-content:center;align-items:center;margin:.5rem;padding:1rem;display:flex}.omrs-breakpoint-lt-small-desktop .-esm-reports__concept-search-results__emptyState___T6MC4{background-color:#fff}.-esm-reports__concept-search-results__link___dgiG6{color:#0f62fe;cursor:pointer;text-decoration:underline}.-esm-reports__concept-search-results__resultsContainer___iDm6W{padding:.5rem}.-esm-reports__concept-search-results__resultsContainer___iDm6W div[role=option]{cursor:pointer;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);line-height:var(--cds-body-compact-01-line-height,1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);border-radius:.25rem;margin:0;padding:.5rem}.-esm-reports__concept-search-results__resultsContainer___iDm6W div[role=option]:hover,.-esm-reports__concept-search-results__resultsContainer___iDm6W div[role=option]:focus{outline-offset:-2px;background-color:#e0e0e0;outline:2px solid #0f62fe}.-esm-reports__concept-search-results__resultsContainer___iDm6W::-webkit-scrollbar-thumb{border-radius:.25rem}.-esm-reports__concept-search-results__productiveHeading01___moK4c{font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);line-height:var(--cds-heading-compact-01-line-height,1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);margin-bottom:.5rem}.-esm-reports__concept-search-results__bodyShort01___gQTnM{font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);line-height:var(--cds-body-compact-01-line-height,1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px)}.-esm-reports__simple-cron-editor__dangerLabel01___Mz5nZ{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);line-height:var(--cds-label-01-line-height,1.33333);letter-spacing:var(--cds-label-01-letter-spacing,.32px);color:#da1e28}.-esm-reports__simple-cron-editor__cronEditor___o55fY{display:inline}.-esm-reports__simple-cron-editor__cronEditorField___oN\+\+K{float:left}.-esm-reports__simple-cron-editor__cronTimePickerField___uHzhk{float:left;width:min-content}.-esm-reports__simple-cron-editor__cronEditorFieldSeparator___c7oNw{float:left;height:2.5rem;margin-top:1.25rem;margin-left:1.25rem;margin-right:1.25rem}.-esm-reports__simple-cron-editor__cronContainer___9W7bI{padding:1rem}:root{--brand-01:#005d5d;--brand-02:#004144;--brand-03:#007d79;--bottom-nav-height:4rem;--workspace-header-height:3rem;--tablet-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-reports__edit-scheduled-report-form__tablet___cZI0s{background-color:#fff;padding:1.5rem 1rem}.-esm-reports__edit-scheduled-report-form__desktop___EyGla{padding:0}.-esm-reports__edit-scheduled-report-form__button___8HTdK{align-content:flex-start;align-items:baseline;min-width:50%;height:4rem;display:flex}.-esm-reports__edit-scheduled-report-form__container___cZida{background-color:#fff;margin:1rem 0}.-esm-reports__edit-scheduled-report-form__container___cZida section{margin:.25rem 1rem 0}.-esm-reports__edit-scheduled-report-form__desktopEditSchedule___uOQod{background-color:#fff;flex-direction:column;justify-content:space-between;display:flex}.-esm-reports__edit-scheduled-report-form__outputFormatDiv___LgUeQ{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:50px;padding:32px 16px 16px;display:flex}.-esm-reports__edit-scheduled-report-form__basicInputElement___RglCl{width:300px;height:30px;margin-bottom:30px}.-esm-reports__edit-scheduled-report-form__buttonsDiv___FvVub{margin-top:50px}.-esm-reports__edit-scheduled-report-form__reportButton___lxsG\+{width:350px!important;max-width:none!important}.-esm-reports__reports__statusIcon___GwEuv{margin-bottom:-.125rem;margin-right:.25rem}.-esm-reports__reports__failedIcon___HLjnH{color:red}.-esm-reports__reports__successIcon___hrrEG{color:green}.-esm-reports__reports__runningIcon___D8CGA{display:inline-block}.-esm-reports__reports__actionButon___bUxRz{fill:#0f62fe;color:inherit;padding-left:0}.-esm-reports__reports__actionButtonIcon___DR5UM{margin-left:.25rem}.-esm-reports__reports__mainActionButton___hhuma{margin-top:1.5rem}.-esm-reports__reports__mainPanelDiv___0CbYi{background-color:#fff;height:130px}.-esm-reports__reports__emptyButton___\+j5mb{width:100px}.-esm-reports__reports__actionsContainer___133QU{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:.5rem;display:flex}.-esm-reports__reports__actionButtonsWrapperDiv___wN4Yr{flex-shrink:0}.-esm-reports__reports__mainActionButtonsDiv___o1RAg{text-align:right;height:48px}.-esm-reports__reports__reportsLabelDiv___AnCCf{margin-left:1rem;padding-top:1rem}.-esm-reports__reports__breadcrumbsSlot___rweOT{grid-area:1/1/2/2}.-esm-reports__reports__downloadReportsVisible___WUg45{display:inline-block}.-esm-reports__reports__downloadReportsHidden___eEEyE{display:none}.-esm-reports__reports__breadcrumb___nIRPb{margin-top:-2rem}.-esm-reports__reports__rowCellEven___O6jJw{background-color:#fff!important}.-esm-reports__reports__rowCellOdd___g1pzY{background-color:#f4f4f4!important}.-esm-reports__reports__scheduledStatusText___qQ4vt{color:var(--cds-support-success,#24a148)}.-esm-reports__reports__scheduleCompletedStatusText___yllvu,.-esm-reports__reports__notScheduledStatusText___ML7Nn{color:var(--cds-support-error,#da1e28)}.-esm-reports__reports__filterForm___v4D1p{background-color:#f4f4f4;border-radius:.25rem;flex-flow:wrap;align-items:flex-end;gap:1rem;margin-bottom:1rem;padding:1rem;display:flex}.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW{flex:1;min-width:12.5rem;max-width:18.75rem;position:relative}.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW .-esm-reports__reports__cds--date-picker___MbrNm,.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW .-esm-reports__reports__cds--select___ZsnpP,.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW .-esm-reports__reports__cds--select-input___pxeBY,.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW .-esm-reports__reports__cds--date-picker__input___SV4kp{width:100%}@media (width<=48rem){.-esm-reports__reports__filterForm___v4D1p{flex-direction:column;align-items:stretch}.-esm-reports__reports__filterForm___v4D1p .-esm-reports__reports__formField___1c3UW{max-width:100%}}.-esm-reports__reports__reportDataViewer___hR-DH{background-color:var(--cds-background);flex-direction:column;height:100%;display:flex}.-esm-reports__reports__reportDataViewerHeader___7aFV8{border-bottom:1px solid var(--cds-border-subtle);justify-content:space-between;align-items:center;padding:1rem;display:flex}.-esm-reports__reports__reportDataViewerContent___oGaTi{flex:1;padding:1rem;overflow:auto}.-esm-reports__reports__reportDataViewerContainer___xUgtf{border:1px solid var(--cds-border-subtle);border-radius:.25rem;margin:1rem 0;overflow:hidden}.-esm-reports__reports__emptyTableMessage___9G9hd{text-align:center;color:var(--cds-text-secondary);padding:2rem}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3500.css","sources":["webpack://@openmrs/esm-reports-app/./src/components/overlay.scss","webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss","webpack://@openmrs/esm-reports-app/./src/components/concept-search/concept-search-results.scss","webpack://@openmrs/esm-reports-app/./src/components/simple-cron-editor/simple-cron-editor.scss","webpack://@openmrs/esm-reports-app/../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@openmrs/esm-reports-app/./src/components/edit-scheduled-report/edit-scheduled-report-form.scss","webpack://@openmrs/esm-reports-app/./src/components/reports.scss"],"names":[],"mappings":"AAIA,+MAaA,+FAKA,oLAaE,yEAIA,kEAMA,qHAIA,6GAKF,mNAaA,sTAMA,6FAQE,+KC7EF,yFAKA,2DAIA,gJAOA,iJAQA,qGAMA,qKASA,mEAIA,6FAKA,mEAIA,kHAMA,yFAKA,0IAQA,oFAIA,sFC1EA,sOAYA,wTAKA,gNAWE,8GAKF,wGAIE,yGAIA,oKAIA,uKAMF,sLAUA,kHAIA,2GAMA,8EAIA,oXAQA,qPAOA,8GAIA,2UAKA,mSCnGA,kRAKA,qEAIA,wEAIA,4FAKA,yJAQA,sECuBA,sUClDA,oGAKA,qEAIA,+IAQA,iGAIE,0FAKF,8JAOA,gLASA,gHAMA,8EAIA,gHCpDA,sFAKA,qDAIA,wDAIA,iEAIA,sFAMA,oEAIA,mEAIA,gFAKA,yDAIA,qIAQA,sEAIA,kFAKA,kFAKA,kEAKA,4EAIA,mEAIA,4DAIA,4EAIA,8EAIA,6FAIA,0JAQA,mLAWE,mJAME,siBAiBF,sBAlCF,qFAsCI,qGAMJ,uIAOA,mLAQA,0FAMA,uJAOA"}
package/dist/3500.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3500"],{7236(e,t,r){r.d(t,{A:()=>s});let s={tablet:"-esm-reports__run-report-form__tablet___QfpzJ",desktop:"-esm-reports__run-report-form__desktop___vIg+q",desktopRunReport:"-esm-reports__run-report-form__desktopRunReport___vOnoB",runReportInnerDivElement:"-esm-reports__run-report-form__runReportInnerDivElement___llkjo",basicInputElement:"-esm-reports__run-report-form__basicInputElement___uqISn",outputFormatDiv:"-esm-reports__run-report-form__outputFormatDiv___XOaV7",buttonsDiv:"-esm-reports__run-report-form__buttonsDiv___CSki5",parameterElement:"-esm-reports__run-report-form__parameterElement___Zviy+",datePicker:"-esm-reports__run-report-form__datePicker___sJmQg",cancelActionButton:"-esm-reports__run-report-form__cancelActionButton___3PaYg",tableIcon:"-esm-reports__run-report-form__tableIcon___d+Oqj",reportButton:"-esm-reports__run-report-form__reportButton___7hAi0",rowCellEven:"-esm-reports__run-report-form__rowCellEven___pmOR4",rowCellOdd:"-esm-reports__run-report-form__rowCellOdd___02jky"}},442(e,t,r){r.d(t,{A:()=>_});var s=r(2491),n=r.n(s);let a={container:"-esm-reports__concept-search-results__container___i-7uS",searchResultsCount:"-esm-reports__concept-search-results__searchResultsCount___qYTqm",conceptBasketSearchResultsHeader:"-esm-reports__concept-search-results__conceptBasketSearchResultsHeader___JlOGD",tabletSearchResultTile:"-esm-reports__concept-search-results__tabletSearchResultTile___v7RMR",searchResultSkeletonWrapper:"-esm-reports__concept-search-results__searchResultSkeletonWrapper___Smntr",searchResultCntSkeleton:"-esm-reports__concept-search-results__searchResultCntSkeleton___vSghD",skeletonTile:"-esm-reports__concept-search-results__skeletonTile___9Rbro",emptyState:"-esm-reports__concept-search-results__emptyState___T6MC4",link:"-esm-reports__concept-search-results__link___dgiG6",resultsContainer:"-esm-reports__concept-search-results__resultsContainer___iDm6W",productiveHeading01:"-esm-reports__concept-search-results__productiveHeading01___moK4c",bodyShort01:"-esm-reports__concept-search-results__bodyShort01___gQTnM"};var o=r(4011),l=r(7841),u=r(5520),c=r(3373),p=r.n(c),i=r(9876);function _({searchTerm:e,focusAndClearSearchInput:t,onConceptSelect:r}){let{t:c}=(0,o.useTranslation)(),p="tablet"===(0,l.useLayoutType)(),{concepts:d,isLoading:h,error:v}=function(e){let{data:t,...r}=(0,i.A)(e?`${l.restBaseUrl}/concept?q=${e}&v=full`:null,l.openmrsFetch);return(0,s.useMemo)(()=>({concepts:t?.data?.results,...r}),[t,r])}(e);return e?h?n().createElement(m,null):v?n().createElement(u.FAs,{className:a.emptyState},n().createElement("div",null,n().createElement("h4",{className:a.productiveHeading01},c("errorFetchingConceptResults",'Error fetching results for "{{searchTerm}}"',{searchTerm:e})),n().createElement("p",{className:a.bodyShort01},n().createElement("span",null,c("trySearchingAgain","Please try searching again"))))):d?.length===0?n().createElement(u.FAs,{className:a.emptyState},n().createElement("div",null,n().createElement("h4",{className:a.productiveHeading01},c("noResultsForConceptSearch",'No results to display for "{{searchTerm}}"',{searchTerm:e})),n().createElement("p",{className:a.bodyShort01},n().createElement("span",null,c("tryTo","Try to"))," ",n().createElement("span",{className:a.link,role:"link",tabIndex:0,onClick:t},c("searchAgain","search again"))," ",n().createElement("span",null,c("usingADifferentTerm","using a different term"))))):n().createElement("div",{className:a.container},n().createElement("div",{className:a.conceptBasketSearchResultsHeader},n().createElement("span",{className:a.searchResultsCount},c("searchResultsMatchesForTerm",'{{count}} results for "{{searchTerm}}"',{count:d?.length,searchTerm:e})),n().createElement(u.$nd,{kind:"ghost",onClick:t,size:p?"md":"sm"},c("clearSearchResults","Clear Results"))),n().createElement("div",{className:a.resultsContainer,role:"listbox","aria-label":c("conceptSearchResults","Concept search results")},d?.map((e,t)=>n().createElement("div",{key:e.uuid,role:"option",tabIndex:0,"aria-selected":!1,onClick:()=>{r?.(e)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),r?.(e))},style:{cursor:"pointer"}},e.display)))):null}let m=()=>{let e="tablet"===(0,l.useLayoutType)(),t=p()({[a.tabletSearchResultTile]:e,[a.desktopSearchResultTile]:!e,[a.skeletonTile]:!0});return n().createElement("div",{className:a.searchResultSkeletonWrapper},n().createElement("div",{className:a.conceptBasketSearchResultsHeader},n().createElement(u.rrI,{className:a.searchResultCntSkeleton}),n().createElement(u.k_N,{size:e?"md":"sm"})),[void 0,void 0,void 0,void 0].map((e,r)=>n().createElement(u.FAs,{key:r,className:t},n().createElement(u.rrI,null))))}},4164(e,t,r){r.d(t,{F5:()=>y,LC:()=>d,Ls:()=>i,Ns:()=>v,S:()=>m,Sh:()=>f,Wm:()=>R,b_:()=>g,c4:()=>S,jF:()=>h,kH:()=>c,mn:()=>_,rY:()=>p});var s=r(7841),n=r(1123),a=r(4274),o=r.n(a),l=r(4011),u=r(2491);function c(){let{data:e}=(0,n.Ay)("/ws/rest/v1/location?tag=Login+Location",s.openmrsFetch);return{locations:e?e?.data?.results:[]}}function p(e,t,r,a){let l=`/ws/rest/v1/reportingrest/reportRequest?status=${e}&startIndex=${t}&limit=${r}&totalCount=true`+(a?`&sortBy=${a}`:""),{data:u,error:c,isValidating:p,mutate:i}=(0,n.Ay)(l,s.openmrsFetch),_=u?.data?.results,m=u?.data?.totalCount;return{reports:_?[].concat(..._.map(e=>{var t,r;let s,n;return{id:(t=e).uuid,reportName:t.parameterizable.name,status:t.status,requestedBy:t.requestedBy.person.display,requestedByUserUuid:t.requestedBy.uuid,requestedOn:o()(t.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:t.renderingMode.label,parameters:(s="",(n=(r=t).parameterizable.parameters).length>0&&(n.forEach(e=>{let t=r.parameterMappings[e.name];"java.util.Date"===e.type?t=o()(t).format("YYYY-MM-DD"):"org.openmrs.Location"===e.type&&(t=t?.display),s=s+e.label+": "+t+", "}),","===(s=s.trim()).charAt(s.length-1)&&(s=s.slice(0,-1))),s),evaluateCompleteDatetime:t.evaluateCompleteDatetime?o()(t.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:t.schedule}})):[],reportsTotalCount:m,error:c,isValidating:p,mutateReports:i}}function i(e){let t=`/ws/rest/v1/reportingrest/reportRequest/${e}`,{data:r,error:a,isValidating:o,mutate:l}=(0,n.Ay)(t,s.openmrsFetch);return{reportRequest:r?.data,error:a,isValidating:o,mutate:l}}function _(e){let t="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?`?sortBy=${e}`:""),{data:r,error:a,isValidating:o,mutate:l}=(0,n.Ay)(t,s.openmrsFetch),u=r?.data?.results;return{scheduledReports:u?[].concat(...u.map(e=>{var t;return{reportDefinitionUuid:(t=e).reportDefinition.uuid,reportRequestUuid:t.scheduledRequests?.[0]?.uuid,name:t.reportDefinition.display,schedule:t.scheduledRequests?.[0]?.schedule}})):[],error:a,isValidating:o,mutateScheduledReports:l}}function m(){let{data:e}=(0,n.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",s.openmrsFetch);return{reportDefinitions:e?e?.data?.results:[]}}function d(e){let t=`/ws/rest/v1/reportingrest/reportDefinition/${e}?v=full`,{data:r}=(0,n.Ay)(t,s.openmrsFetch);return r?.data}function h(e){let t=`/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=${e}`,{data:r,error:a,isValidating:o,mutate:l}=(0,n.Ay)(e?t:null,s.openmrsFetch);return{reportDesigns:r?.data.results,error:a,isValidating:o,mutateReportDesigns:l}}function v(e){let t=new AbortController;return(0,s.openmrsObservableFetch)("/ws/rest/v1/reportingrest/reportRequest",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}async function f(e){let t=`/ws/rest/v1/reportingrest/reportRequest/${e}`;return(0,s.openmrsFetch)(t,{method:"DELETE"})}async function g(e){let t=`/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=${e}`;return(0,s.openmrsFetch)(t,{method:"POST"})}async function y(e){let t=`/ws/rest/v1/reportingrest/downloadReport?reportRequestUuid=${e}`,{data:r}=await (0,s.openmrsFetch)(t);return r}async function R(e){let t=`/ws/rest/v1/reportingrest/downloadMultipleReports?reportRequestUuids=${e}`,{data:r}=await (0,s.openmrsFetch)(t);return r}function S(e,t){let{t:r}=(0,l.useTranslation)(),[a,o]=(0,u.useState)(!1),[c,p]=(0,u.useState)("");(0,u.useEffect)(()=>{e!==c&&(o(!1),p(e))},[e,c]);let{data:i,error:_,isLoading:m,mutate:d}=(0,n.Ay)(a&&e?["reportData",e,t]:null,async()=>{if(!e)return null;let r=`/ws/rest/v1/reportingrest/reportdata/${e}`;if(Object.keys(t).length>0){let e=new URLSearchParams;Object.entries(t).forEach(([t,r])=>{r&&e.append(t,r)}),r+=`?${e.toString()}`}return(await (0,s.openmrsFetch)(r)).data},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{reportData:i,error:_,isLoading:m,mutate:()=>{o(!0),d()}}}},6452(e,t,r){r.d(t,{L9:()=>u,_5:()=>l,e:()=>c});var s=r(2491),n=r(7841);let a={isOverlayOpen:!1,header:""},o=()=>(0,n.getGlobalStore)("reports-store",a),l=(e,t)=>{o().setState({isOverlayOpen:!0,component:t,header:e})},u=()=>{o().setState({component:null,isOverlayOpen:!1})},c=()=>{let[e,t]=(0,s.useState)(),r=(0,s.useCallback)(e=>{t(e)},[]);(0,s.useEffect)(()=>{r(o().getState()),o().subscribe(r)},[r]);let{isOverlayOpen:n,component:a,header:l}=e??{};return{isOverlayOpen:n,component:a,header:l}}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"3500.js","sources":["webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss?1830","webpack://@openmrs/esm-reports-app/./src/components/concept-search/concept-search-results.scss?410d","webpack://@openmrs/esm-reports-app/./src/components/concept-search/concept-search-results.tsx","webpack://@openmrs/esm-reports-app/./src/hooks/useConceptSearch.ts","webpack://@openmrs/esm-reports-app/./src/components/reports.resource.tsx","webpack://@openmrs/esm-reports-app/./src/hooks/useOverlay.ts"],"names":["ConceptSearchResults","searchTerm","focusAndClearSearchInput","onConceptSelect","t","useTranslation","isTablet","useLayoutType","concepts","isLoading","error","useConceptSearch","query","data","rest","useSWRImmutable","restBaseUrl","openmrsFetch","useMemo","ConceptSearchSkeleton","Tile","styles","Button","concept","index","e","tileClassName","classNames","SkeletonText","ButtonSkeleton","_","useLocations","useSWR","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","isValidating","mutate","reports","totalCount","report","finalString","parameters","dayjs","parameter","value","undefined","useReportRequest","reportRequestUuid","useScheduledReports","scheduledReportsUrl","scheduledReports","useReportDefinitions","useReportDefinition","reportDefinitionUuid","apiUrl","useReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","useReportData","reportUuid","shouldFetch","setShouldFetch","useState","lastReportUuid","setLastReportUuid","useEffect","url","Object","queryParams","URLSearchParams","key","response","initialState","getOverlayStore","getGlobalStore","launchOverlay","headerTitle","componentToRender","store","closeOverlay","useOverlay","overlay","setOverlay","update","useCallback","state","isOverlayOpen","component","header"],"mappings":"gKACA,MAAe,CAAC,OAAS,gDAAgD,QAAU,iDAAiD,iBAAmB,0DAA0D,yBAA2B,kEAAkE,kBAAoB,2DAA2D,gBAAkB,yDAAyD,WAAa,oDAAoD,iBAAmB,0DAA0D,WAAa,oDAAoD,mBAAqB,4DAA4D,UAAY,mDAAmD,aAAe,sDAAsD,YAAc,qDAAqD,WAAa,mDAAmD,C,qDCA/+B,MAAe,CAAC,UAAY,0DAA0D,mBAAqB,mEAAmE,iCAAmC,iFAAiF,uBAAyB,uEAAuE,4BAA8B,4EAA4E,wBAA0B,wEAAwE,aAAe,6DAA6D,WAAa,2DAA2D,KAAO,qDAAqD,iBAAmB,iEAAiE,oBAAsB,oEAAoE,YAAc,2DAA2D,E,+DCatgC,SAASA,EAAqB,CAC3CC,WAAAA,CAAU,CACVC,yBAAAA,CAAwB,CACxBC,gBAAAA,CAAe,CACW,EAC1B,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IACRC,EAAWC,AAAoB,WAApBA,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,IACX,CAAEC,SAAAA,CAAQ,CAAEC,UAAAA,CAAS,CAAEC,MAAAA,CAAK,CAAE,CAAGC,ACjBlC,SAA0BC,CAAa,EAC5C,GAAM,CAAEC,KAAAA,CAAI,CAAE,GAAGC,EAAM,CAAGC,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,EACxBH,EAAQ,CAAC,EAAEI,EAAAA,WA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,GAAAA,EAAAA,WAAAA,AAAAA,EAAY,AAACC,IAC1BH,EAAWG,EACb,EAAG,EAAE,EAELpB,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,EAAU,KACRkB,EAAOV,IAAkB,QAAQ,IACjCA,IAAkB,SAAS,CAACU,EAC9B,EAAG,CAACA,EAAO,EAEX,GAAM,CAAEG,cAAAA,CAAa,CAAEC,UAAAA,CAAS,CAAEC,OAAAA,CAAM,CAAE,CAAGP,GAAW,CAAC,EAEzD,MAAO,CACLK,cAAAA,EACAC,UAAAA,EACAC,OAAAA,CACF,CACF,C"}
package/dist/3697.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3697"],{8644(e,t,r){r.d(t,{MX:()=>n,Nt:()=>s,Oy:()=>l,Wk:()=>u,Yu:()=>p,eJ:()=>o,g6:()=>a,oT:()=>d,qY:()=>c,qZ:()=>i});var n="SAVED",o="COMPLETED",a="PROCESSING",u="FAILED",l="SCHEDULED",i="SCHEDULE_COMPLETED",s="REQUESTED",c=[s,o,n,u,a],d=[s,a],p=[l,i]},4164(e,t,r){r.d(t,{F5:()=>A,LC:()=>S,Ls:()=>b,Ns:()=>D,S:()=>w,Sh:()=>R,Wm:()=>C,b_:()=>k,c4:()=>T,jF:()=>E,kH:()=>v,mn:()=>g,rY:()=>m});var n=r(7841),o=r(1123),a=r(4274),u=r.n(a),l=r(4011),i=r(2491);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,a,u){try{var l=e[a](u),i=l.value}catch(e){r(e);return}l.done?t(i):Promise.resolve(i).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(e){c(a,n,o,u,l,"next",e)}function l(e){c(a,n,o,u,l,"throw",e)}u(void 0)})}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],u=!0,l=!1;try{for(o=o.call(e);!(u=(r=o.next()).done)&&(a.push(r.value),!t||a.length!==t);u=!0);}catch(e){l=!0,n=e}finally{try{u||null==o.return||o.return()}finally{if(l)throw n}}return a}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}function y(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(u,"next",{value:i(0)}),l(u,"throw",{value:i(1)}),l(u,"return",{value:i(2)}),"function"==typeof Symbol&&l(u,Symbol.iterator,{value:function(){return this}}),u;function i(l){return function(i){var s=[l,i];if(r)throw TypeError("Generator is already executing.");for(;u&&(u=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function v(){var e,t=(0,o.Ay)("/ws/rest/v1/location?tag=Login+Location",n.openmrsFetch).data;return{locations:t?null==t||null==(e=t.data)?void 0:e.results:[]}}function m(e,t,r,a){var l,i,s,c="/ws/rest/v1/reportingrest/reportRequest?status=".concat(e,"&startIndex=").concat(t,"&limit=").concat(r,"&totalCount=true")+(a?"&sortBy=".concat(a):""),d=(0,o.Ay)(c,n.openmrsFetch),p=d.data,h=d.error,y=d.isValidating,v=d.mutate,m=null==p||null==(i=p.data)?void 0:i.results,b=null==p||null==(s=p.data)?void 0:s.totalCount;return{reports:m?(l=[]).concat.apply(l,f(m.map(function(e){var t,r,n,o;return{id:(t=e).uuid,reportName:t.parameterizable.name,status:t.status,requestedBy:t.requestedBy.person.display,requestedByUserUuid:t.requestedBy.uuid,requestedOn:u()(t.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:t.renderingMode.label,parameters:(n="",(o=(r=t).parameterizable.parameters).length>0&&(o.forEach(function(e){var t=r.parameterMappings[e.name];"java.util.Date"===e.type?t=u()(t).format("YYYY-MM-DD"):"org.openmrs.Location"===e.type&&(t=null==t?void 0:t.display),n=n+e.label+": "+t+", "}),","===(n=n.trim()).charAt(n.length-1)&&(n=n.slice(0,-1))),n),evaluateCompleteDatetime:t.evaluateCompleteDatetime?u()(t.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:t.schedule}}))):[],reportsTotalCount:b,error:h,isValidating:y,mutateReports:v}}function b(e){var t=(0,o.Ay)("/ws/rest/v1/reportingrest/reportRequest/".concat(e),n.openmrsFetch),r=t.data,a=t.error,u=t.isValidating,l=t.mutate;return{reportRequest:null==r?void 0:r.data,error:a,isValidating:u,mutate:l}}function g(e){var t,r,a=(0,o.Ay)("/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?"?sortBy=".concat(e):""),n.openmrsFetch),u=a.data,l=a.error,i=a.isValidating,s=a.mutate,c=null==u||null==(r=u.data)?void 0:r.results;return{scheduledReports:c?(t=[]).concat.apply(t,f(c.map(function(e){var t,r,n,o,a;return{reportDefinitionUuid:(t=e).reportDefinition.uuid,reportRequestUuid:null==(n=t.scheduledRequests)||null==(r=n[0])?void 0:r.uuid,name:t.reportDefinition.display,schedule:null==(a=t.scheduledRequests)||null==(o=a[0])?void 0:o.schedule}}))):[],error:l,isValidating:i,mutateScheduledReports:s}}function w(){var e,t=(0,o.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",n.openmrsFetch).data;return{reportDefinitions:t?null==t||null==(e=t.data)?void 0:e.results:[]}}function S(e){var t=(0,o.Ay)("/ws/rest/v1/reportingrest/reportDefinition/".concat(e,"?v=full"),n.openmrsFetch).data;return null==t?void 0:t.data}function E(e){var t=(0,o.Ay)(e?"/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=".concat(e):null,n.openmrsFetch),r=t.data,a=t.error,u=t.isValidating,l=t.mutate;return{reportDesigns:null==r?void 0:r.data.results,error:a,isValidating:u,mutateReportDesigns:l}}function D(e){var t=new AbortController;return(0,n.openmrsObservableFetch)("/ws/rest/v1/reportingrest/reportRequest",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function R(e){return d(function(){var t;return y(this,function(r){return t="/ws/rest/v1/reportingrest/reportRequest/".concat(e),[2,(0,n.openmrsFetch)(t,{method:"DELETE"})]})})()}function k(e){return d(function(){var t;return y(this,function(r){return t="/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=".concat(e),[2,(0,n.openmrsFetch)(t,{method:"POST"})]})})()}function A(e){return d(function(){var t;return y(this,function(r){switch(r.label){case 0:return t="/ws/rest/v1/reportingrest/downloadReport?reportRequestUuid=".concat(e),[4,(0,n.openmrsFetch)(t)];case 1:return[2,r.sent().data]}})})()}function C(e){return d(function(){var t;return y(this,function(r){switch(r.label){case 0:return t="/ws/rest/v1/reportingrest/downloadMultipleReports?reportRequestUuids=".concat(e),[4,(0,n.openmrsFetch)(t)];case 1:return[2,r.sent().data]}})})()}function T(e,t){(0,l.useTranslation)().t;var r=p((0,i.useState)(!1),2),a=r[0],u=r[1],s=p((0,i.useState)(""),2),c=s[0],f=s[1];(0,i.useEffect)(function(){e!==c&&(u(!1),f(e))},[e,c]);var h=(0,o.Ay)(a&&e?["reportData",e,t]:null,function(){return d(function(){var r,o;return y(this,function(a){switch(a.label){case 0:if(!e)return[2,null];return r="/ws/rest/v1/reportingrest/reportdata/".concat(e),Object.keys(t).length>0&&(o=new URLSearchParams,Object.entries(t).forEach(function(e){var t=p(e,2),r=t[0],n=t[1];n&&o.append(r,n)}),r+="?".concat(o.toString())),[4,(0,n.openmrsFetch)(r)];case 1:return[2,a.sent().data]}})})()},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1}),v=h.data,m=h.error,b=h.isLoading,g=h.mutate;return{reportData:v,error:m,isLoading:b,mutate:function(){u(!0),g()}}}},1992(e,t,r){r.r(t),r.d(t,{default:()=>f});var n=r(2491),o=r.n(n),a=r(4011),u=r(1123),l=r(5520),i=r(7841),s=r(4164),c=r(8644);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r,n,o,a,u){try{var l=e[a](u),i=l.value}catch(e){r(e);return}l.done?t(i):Promise.resolve(i).then(n,o)}let f=function(e){var t,r=e.closeModal,f=e.reportRequestUuid,h=e.modalType,y=(0,a.useTranslation)().t,v=function(e){if(Array.isArray(e))return e}(t=(0,n.useState)(!1))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(o.push(t.value),2!==o.length);a=!0);}catch(e){u=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw r}}return o}}(t)||function(e){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,2)}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),m=v[0],b=v[1],g=(0,n.useCallback)(function(e){return"delete"===e?y("deleteReport","Delete report"):"cancel"===e?y("cancelReport","Cancel report"):"schedule"===e?y("scheduleReport","Schedule report"):void 0},[y]),w=(0,n.useCallback)(function(e){return"delete"===e?y("deleteReportModalText","Are you sure you want to delete this report?"):"cancel"===e?y("cancelReportModalText","Are you sure you want to cancel this report?"):"schedule"===e?y("deleteReportScheduleModalText","Are you sure you want to delete this schedule?"):void 0},[y]),S=(0,n.useCallback)(function(e){return"delete"===e?y("reportDeletedSuccessfully","Report deleted successfully"):"cancel"===e?y("reportCancelledSuccessfully","Report cancelled successfully"):"schedule"===e?y("reportScheduleDeletedSuccessfully","Report schedule deleted successfully"):void 0},[y]),E=(0,n.useCallback)(function(e){return"delete"===e?y("reportDeletingErrorMsg","Error during report deleting"):"cancel"===e?y("reportCancelingErrorMsg","Error during report canceling"):"schedule"===e?y("reportScheduleDeletingErrorMsg","Error during report schedule deleting"):void 0},[y]),D=(0,n.useCallback)(function(e){return"delete"===e||"schedule"===e?y("deleting","Deleting"):"cancel"===e?y("cancelling","Cancelling"):void 0},[y]),R=(0,n.useCallback)(function(){var e;return(e=function(){return function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(u,"next",{value:i(0)}),l(u,"throw",{value:i(1)}),l(u,"return",{value:i(2)}),"function"==typeof Symbol&&l(u,Symbol.iterator,{value:function(){return this}}),u;function i(l){return function(i){var s=[l,i];if(r)throw TypeError("Generator is already executing.");for(;u&&(u=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),b(!0),[4,(0,s.Sh)(f)];case 1:return e.sent(),k(h),r(),(0,i.showSnackbar)({kind:"success",title:g(h),subtitle:S(h)}),[3,4];case 2:return e.sent(),(0,i.showSnackbar)({kind:"error",title:g(h),subtitle:E(h)}),[3,4];case 3:return b(!1),[7];case 4:return[2]}})},function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(e){p(a,n,o,u,l,"next",e)}function l(e){p(a,n,o,u,l,"throw",e)}u(void 0)})})()},[r,E,g,S,h,f]),k=function(e){var t="/ws/rest/v1/reportingrest/reportRequest?status=";"delete"===e?(0,u.Tk)(t+c.qY.join(",")):"cancel"===e?((0,u.Tk)(t+c.qY.join(",")),(0,u.Tk)(t+c.oT.join(","))):"schedule"===e&&(0,u.Tk)(t+c.Yu.join(",")+"&sortBy=name")};return o().createElement("div",null,o().createElement(l.rQ0,{closeModal:r,title:g(h)}),o().createElement(l.cwr,null,o().createElement("p",null,w(h))),o().createElement(l.jlY,null,o().createElement(l.$nd,{kind:"secondary",onClick:r},y("no","No")),o().createElement(l.$nd,{kind:"danger",onClick:R,disabled:m},m?o().createElement(l.OuH,{description:D(h)+"..."}):o().createElement("span",null,y("yes","Yes")))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([["3697"],{8644(e,t,r){r.d(t,{Nt:()=>a,Oy:()=>l,Yu:()=>c,eJ:()=>s,g6:()=>n,oT:()=>i,qY:()=>u,qZ:()=>o});let s="COMPLETED",n="PROCESSING",l="SCHEDULED",o="SCHEDULE_COMPLETED",a="REQUESTED",u=[a,s,"SAVED","FAILED",n],i=[a,n],c=[l,o]},4164(e,t,r){r.d(t,{F5:()=>E,LC:()=>h,Ls:()=>d,Ns:()=>y,S:()=>m,Sh:()=>f,Wm:()=>v,b_:()=>D,c4:()=>R,jF:()=>g,kH:()=>i,mn:()=>p,rY:()=>c});var s=r(7841),n=r(1123),l=r(4274),o=r.n(l),a=r(4011),u=r(2491);function i(){let{data:e}=(0,n.Ay)("/ws/rest/v1/location?tag=Login+Location",s.openmrsFetch);return{locations:e?e?.data?.results:[]}}function c(e,t,r,l){let a=`/ws/rest/v1/reportingrest/reportRequest?status=${e}&startIndex=${t}&limit=${r}&totalCount=true`+(l?`&sortBy=${l}`:""),{data:u,error:i,isValidating:c,mutate:d}=(0,n.Ay)(a,s.openmrsFetch),p=u?.data?.results,m=u?.data?.totalCount;return{reports:p?[].concat(...p.map(e=>{var t,r;let s,n;return{id:(t=e).uuid,reportName:t.parameterizable.name,status:t.status,requestedBy:t.requestedBy.person.display,requestedByUserUuid:t.requestedBy.uuid,requestedOn:o()(t.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:t.renderingMode.label,parameters:(s="",(n=(r=t).parameterizable.parameters).length>0&&(n.forEach(e=>{let t=r.parameterMappings[e.name];"java.util.Date"===e.type?t=o()(t).format("YYYY-MM-DD"):"org.openmrs.Location"===e.type&&(t=t?.display),s=s+e.label+": "+t+", "}),","===(s=s.trim()).charAt(s.length-1)&&(s=s.slice(0,-1))),s),evaluateCompleteDatetime:t.evaluateCompleteDatetime?o()(t.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:t.schedule}})):[],reportsTotalCount:m,error:i,isValidating:c,mutateReports:d}}function d(e){let t=`/ws/rest/v1/reportingrest/reportRequest/${e}`,{data:r,error:l,isValidating:o,mutate:a}=(0,n.Ay)(t,s.openmrsFetch);return{reportRequest:r?.data,error:l,isValidating:o,mutate:a}}function p(e){let t="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?`?sortBy=${e}`:""),{data:r,error:l,isValidating:o,mutate:a}=(0,n.Ay)(t,s.openmrsFetch),u=r?.data?.results;return{scheduledReports:u?[].concat(...u.map(e=>{var t;return{reportDefinitionUuid:(t=e).reportDefinition.uuid,reportRequestUuid:t.scheduledRequests?.[0]?.uuid,name:t.reportDefinition.display,schedule:t.scheduledRequests?.[0]?.schedule}})):[],error:l,isValidating:o,mutateScheduledReports:a}}function m(){let{data:e}=(0,n.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",s.openmrsFetch);return{reportDefinitions:e?e?.data?.results:[]}}function h(e){let t=`/ws/rest/v1/reportingrest/reportDefinition/${e}?v=full`,{data:r}=(0,n.Ay)(t,s.openmrsFetch);return r?.data}function g(e){let t=`/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=${e}`,{data:r,error:l,isValidating:o,mutate:a}=(0,n.Ay)(e?t:null,s.openmrsFetch);return{reportDesigns:r?.data.results,error:l,isValidating:o,mutateReportDesigns:a}}function y(e){let t=new AbortController;return(0,s.openmrsObservableFetch)("/ws/rest/v1/reportingrest/reportRequest",{signal:t.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}async function f(e){let t=`/ws/rest/v1/reportingrest/reportRequest/${e}`;return(0,s.openmrsFetch)(t,{method:"DELETE"})}async function D(e){let t=`/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=${e}`;return(0,s.openmrsFetch)(t,{method:"POST"})}async function E(e){let t=`/ws/rest/v1/reportingrest/downloadReport?reportRequestUuid=${e}`,{data:r}=await (0,s.openmrsFetch)(t);return r}async function v(e){let t=`/ws/rest/v1/reportingrest/downloadMultipleReports?reportRequestUuids=${e}`,{data:r}=await (0,s.openmrsFetch)(t);return r}function R(e,t){let{t:r}=(0,a.useTranslation)(),[l,o]=(0,u.useState)(!1),[i,c]=(0,u.useState)("");(0,u.useEffect)(()=>{e!==i&&(o(!1),c(e))},[e,i]);let{data:d,error:p,isLoading:m,mutate:h}=(0,n.Ay)(l&&e?["reportData",e,t]:null,async()=>{if(!e)return null;let r=`/ws/rest/v1/reportingrest/reportdata/${e}`;if(Object.keys(t).length>0){let e=new URLSearchParams;Object.entries(t).forEach(([t,r])=>{r&&e.append(t,r)}),r+=`?${e.toString()}`}return(await (0,s.openmrsFetch)(r)).data},{revalidateOnFocus:!1,revalidateOnReconnect:!1,shouldRetryOnError:!1});return{reportData:d,error:p,isLoading:m,mutate:()=>{o(!0),h()}}}},1992(e,t,r){r.r(t),r.d(t,{default:()=>d});var s=r(2491),n=r.n(s),l=r(4011),o=r(1123),a=r(5520),u=r(7841),i=r(4164),c=r(8644);let d=({closeModal:e,reportRequestUuid:t,modalType:r})=>{let{t:d}=(0,l.useTranslation)(),[p,m]=(0,s.useState)(!1),h=(0,s.useCallback)(e=>"delete"===e?d("deleteReport","Delete report"):"cancel"===e?d("cancelReport","Cancel report"):"schedule"===e?d("scheduleReport","Schedule report"):void 0,[d]),g=(0,s.useCallback)(e=>"delete"===e?d("deleteReportModalText","Are you sure you want to delete this report?"):"cancel"===e?d("cancelReportModalText","Are you sure you want to cancel this report?"):"schedule"===e?d("deleteReportScheduleModalText","Are you sure you want to delete this schedule?"):void 0,[d]),y=(0,s.useCallback)(e=>"delete"===e?d("reportDeletedSuccessfully","Report deleted successfully"):"cancel"===e?d("reportCancelledSuccessfully","Report cancelled successfully"):"schedule"===e?d("reportScheduleDeletedSuccessfully","Report schedule deleted successfully"):void 0,[d]),f=(0,s.useCallback)(e=>"delete"===e?d("reportDeletingErrorMsg","Error during report deleting"):"cancel"===e?d("reportCancelingErrorMsg","Error during report canceling"):"schedule"===e?d("reportScheduleDeletingErrorMsg","Error during report schedule deleting"):void 0,[d]),D=(0,s.useCallback)(e=>"delete"===e||"schedule"===e?d("deleting","Deleting"):"cancel"===e?d("cancelling","Cancelling"):void 0,[d]),E=(0,s.useCallback)(async()=>{try{m(!0),await (0,i.Sh)(t),v(r),e(),(0,u.showSnackbar)({kind:"success",title:h(r),subtitle:y(r)})}catch(e){(0,u.showSnackbar)({kind:"error",title:h(r),subtitle:f(r)})}finally{m(!1)}},[e,f,h,y,r,t]),v=e=>{let t="/ws/rest/v1/reportingrest/reportRequest?status=";"delete"===e?(0,o.Tk)(t+c.qY.join(",")):"cancel"===e?((0,o.Tk)(t+c.qY.join(",")),(0,o.Tk)(t+c.oT.join(","))):"schedule"===e&&(0,o.Tk)(t+c.Yu.join(",")+"&sortBy=name")};return n().createElement("div",null,n().createElement(a.rQ0,{closeModal:e,title:h(r)}),n().createElement(a.cwr,null,n().createElement("p",null,g(r))),n().createElement(a.jlY,null,n().createElement(a.$nd,{kind:"secondary",onClick:e},d("no","No")),n().createElement(a.$nd,{kind:"danger",onClick:E,disabled:p},p?n().createElement(a.OuH,{description:D(r)+"..."}):n().createElement("span",null,d("yes","Yes")))))}}}]);
package/dist/3697.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"3697.js","sources":["webpack://@openmrs/esm-reports-app/./src/components/report-statuses-constants.ts","webpack://@openmrs/esm-reports-app/./src/components/reports.resource.tsx","webpack://@openmrs/esm-reports-app/./src/components/run-report/cancel-report-modal.component.tsx"],"names":["SAVED","COMPLETED","PROCESSING","FAILED","SCHEDULED","SCHEDULE_COMPLETED","REQUESTED","RAN_REPORT_STATUSES","PROCESSING_REPORT_STATUSES","SCHEDULED_REPORT_STATUSES","useLocations","_data_data","data","useSWR","openmrsFetch","useReports","statuses","pageNumber","pageSize","sortBy","_instance","_data_data1","reportsUrl","_useSWR","error","isValidating","mutate","reports","totalCount","report","finalString","parameters","dayjs","parameter","value","undefined","useReportRequest","reportRequestUuid","useScheduledReports","scheduledReports","_data_scheduledRequests_","_data_scheduledRequests_1","useReportDefinitions","useReportDefinition","reportDefinitionUuid","useReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","cancelReportRequest","apiUrl","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","useReportData","reportUuid","useTranslation","t","_useState","shouldFetch","setShouldFetch","_useState1","lastReportUuid","setLastReportUuid","useEffect","url","queryParams","Object","URLSearchParams","key","response","a","isLoading","mutate1","closeModal","modalType","isCanceling","setIsCanceling","getModalTitleByType","useCallback","getModalBodyByType","getSuccessToastMessageByType","getFailedToastMessageByType","getLoadingMessageByType","handleCancel","callMutates","showSnackbar","baseUrl","ModalHeader","ModalBody","ModalFooter","Button","InlineLoading"],"mappings":"kPAAO,IAAMA,EAAQ,QACRC,EAAY,YACZC,EAAa,aACbC,EAAS,SACTC,EAAY,YACZC,EAAqB,qBACrBC,EAAY,YAEZC,EAAsB,CAACD,EAAWL,EAAWD,EAAOG,EAAQD,EAAW,CACvEM,EAA6B,CAACF,EAAWJ,EAAW,CACpDO,EAA4B,CAACL,EAAWC,EAAmB,A,88FCqBjE,SAASK,IAGd,IAGoBC,EAHZC,EAASC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAFF,0CAE2DC,EAAAA,YAAYA,EAA9EF,IAAI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EAA4BP,EACxC,G,oBAEAE,EAAe,I,uBAEnB,E,gLAAG,CACDH,EACAQ,EACAJ,EACAG,EACAN,EACAzC,EACD,EAEKmD,EAAc,SAACV,CAAS,EAC5B,IAAIY,EAAU,iDACVZ,AAAc,YAAdA,EACFpD,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAOgE,EAAUnF,EAAAA,EAAAA,CAAAA,IAAwB,CAAC,MACjCuE,AAAc,WAAdA,GACTpD,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAOgE,EAAUnF,EAAAA,EAAAA,CAAAA,IAAwB,CAAC,MAC1CmB,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAOgE,EAAUlF,EAAAA,EAAAA,CAAAA,IAA+B,CAAC,OACxCsE,AAAc,aAAdA,GACTpD,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAOgE,EAAUjF,EAAAA,EAAAA,CAAAA,IAA8B,CAAC,KAAO,eAE3D,EAEA,OACE,kBAAC,WACC,kBAACkF,EAAAA,GAAWA,CAAAA,CAAC,WAAYd,EAAY,MAAOI,EAAoBH,E,GAChE,kBAACc,EAAAA,GAASA,CAAAA,KACR,kBAAC,SAAGT,EAAmBL,KAEzB,kBAACe,EAAAA,GAAWA,CAAAA,KACV,kBAACC,EAAAA,GAAMA,CAAAA,CAAC,KAAK,YAAY,QAASjB,C,EAC/BjB,EAAE,KAAM,OAEX,kBAACkC,EAAAA,GAAMA,CAAAA,CAAC,KAAK,SAAS,QAASP,EAAc,SAAUR,C,EACpDA,EACC,kBAACgB,EAAAA,GAAaA,CAAAA,CAAC,YAAaT,EAAwBR,GAAa,K,GAEjE,kBAAC,YAAMlB,EAAE,MAAO,UAM5B,C"}
1
+ {"version":3,"file":"3697.js","sources":["webpack://@openmrs/esm-reports-app/./src/components/report-statuses-constants.ts","webpack://@openmrs/esm-reports-app/./src/components/reports.resource.tsx","webpack://@openmrs/esm-reports-app/./src/components/run-report/cancel-report-modal.component.tsx"],"names":["COMPLETED","PROCESSING","SCHEDULED","SCHEDULE_COMPLETED","REQUESTED","RAN_REPORT_STATUSES","PROCESSING_REPORT_STATUSES","SCHEDULED_REPORT_STATUSES","useLocations","data","useSWR","openmrsFetch","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","error","isValidating","mutate","reports","totalCount","report","finalString","parameters","dayjs","parameter","value","undefined","useReportRequest","reportRequestUuid","useScheduledReports","scheduledReportsUrl","scheduledReports","useReportDefinitions","useReportDefinition","reportDefinitionUuid","apiUrl","useReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","useReportData","reportUuid","t","useTranslation","shouldFetch","setShouldFetch","useState","lastReportUuid","setLastReportUuid","useEffect","isLoading","url","Object","queryParams","URLSearchParams","key","response","closeModal","modalType","isCanceling","setIsCanceling","getModalTitleByType","useCallback","getModalBodyByType","getSuccessToastMessageByType","getFailedToastMessageByType","getLoadingMessageByType","handleCancel","callMutates","showSnackbar","baseUrl","ModalHeader","ModalBody","ModalFooter","Button","InlineLoading"],"mappings":"gOACO,IAAMA,EAAY,YACZC,EAAa,aAEbC,EAAY,YACZC,EAAqB,qBACrBC,EAAY,YAEZC,EAAsB,CAACD,EAAWJ,EAR1B,QAGC,SAKmDC,EAAW,CACvEK,EAA6B,CAACF,EAAWH,EAAW,CACpDM,EAA4B,CAACL,EAAWC,EAAmB,A,0MCqBjE,SAASK,IAGd,GAAM,CAAEC,KAAAA,CAAI,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAFF,0CAE2DC,EAAAA,YAAYA,EAEtF,MAAO,CACL,UAAWF,EAAOA,GAAM,MAAM,QAAU,EAAE,AAC5C,CACF,CAEO,SAASG,EAAWC,CAAgB,CAAEC,CAAkB,CAAEC,CAAgB,CAAEC,CAAe,EAChG,IAAMC,EACJ,CAAC,+CAA+C,EAAEJ,EAAS,YAAY,EAAEC,EAAW,OAAO,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