@openmrs/esm-reports-app 4.0.6-pre.168 → 4.0.6-pre.179

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 (52) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/dist/126.js +1 -1
  3. package/dist/126.js.map +1 -1
  4. package/dist/156.js +1 -1
  5. package/dist/156.js.map +1 -1
  6. package/dist/216.js +1 -1
  7. package/dist/216.js.map +1 -1
  8. package/dist/300.js +1 -1
  9. package/dist/322.js +1 -1
  10. package/dist/322.js.map +1 -1
  11. package/dist/367.js +1 -1
  12. package/dist/367.js.map +1 -1
  13. package/dist/549.js +1 -1
  14. package/dist/549.js.map +1 -1
  15. package/dist/640.js +1 -1
  16. package/dist/640.js.map +1 -1
  17. package/dist/947.js +1 -1
  18. package/dist/947.js.map +1 -1
  19. package/dist/972.js +1 -1
  20. package/dist/972.js.map +1 -1
  21. package/dist/main.js +1 -1
  22. package/dist/main.js.map +1 -1
  23. package/dist/openmrs-esm-reports-app.js +1 -1
  24. package/dist/openmrs-esm-reports-app.js.buildmanifest.json +37 -64
  25. package/dist/openmrs-esm-reports-app.js.map +1 -1
  26. package/dist/routes.json +1 -1
  27. package/package.json +1 -1
  28. package/src/components/edit-scheduled-report/edit-scheduled-report-form.component.tsx +10 -10
  29. package/src/components/next-report-execution.component.tsx +1 -1
  30. package/src/components/overlay.component.tsx +6 -8
  31. package/src/components/overview.component.tsx +88 -79
  32. package/src/components/report-parameter-input.component.tsx +17 -14
  33. package/src/components/report-status.component.tsx +11 -10
  34. package/src/components/run-report/cancel-report-modal.component.tsx +74 -52
  35. package/src/components/run-report/run-report-form.component.tsx +18 -16
  36. package/src/components/scheduled-overview-cell-content.component.tsx +6 -6
  37. package/src/components/scheduled-overview.component.tsx +6 -6
  38. package/src/components/scheduled-report-status.component.tsx +3 -3
  39. package/src/components/simple-cron-editor/cron-date-picker.component.tsx +15 -15
  40. package/src/components/simple-cron-editor/cron-day-of-month-select.component.tsx +16 -16
  41. package/src/components/simple-cron-editor/cron-day-of-week-select.component.tsx +19 -21
  42. package/src/components/simple-cron-editor/cron-time-picker.component.tsx +16 -18
  43. package/src/components/simple-cron-editor/simple-cron-editor.component.tsx +111 -103
  44. package/src/index.ts +0 -24
  45. package/src/reports-link.tsx +3 -3
  46. package/src/reports.component.tsx +2 -2
  47. package/translations/en.json +15 -16
  48. package/tsconfig.json +0 -1
  49. package/webpack.config.js +1 -1
  50. package/dist/304.js +0 -1
  51. package/dist/304.js.map +0 -1
  52. package/src/hooks/{useOverlay.tsx → useOverlay.ts} +1 -1
@@ -3,19 +3,19 @@ Browserslist: caniuse-lite is outdated. Please run:
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
4
  assets by path *.js 2.34 MiB
5
5
  assets by chunk 2.07 MiB (id hint: vendors)
6
- assets by status 1.68 MiB [big]
7
- asset 367.js 1.33 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
6
+ assets by status 1.72 MiB [big]
7
+ asset 367.js 1.37 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
8
8
  asset 202.js 358 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
9
- + 8 assets
9
+ + 7 assets
10
10
  + 13 assets
11
- assets by path *.json 13.5 KiB
12
- asset openmrs-esm-reports-app.js.buildmanifest.json 13 KiB [emitted]
11
+ assets by path *.json 13 KiB
12
+ asset openmrs-esm-reports-app.js.buildmanifest.json 12.4 KiB [emitted]
13
13
  asset routes.json 591 bytes [emitted] [from: src/routes.json] [copied]
14
- orphan modules 4.67 MiB [orphan] 1591 modules
15
- runtime modules 41.1 KiB 30 modules
16
- built modules 8.43 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
17
- cacheable modules 8.43 MiB
18
- modules by path ../../node_modules/ 5.56 MiB 53 modules
14
+ orphan modules 4.76 MiB [orphan] 1592 modules
15
+ runtime modules 41 KiB 30 modules
16
+ built modules 8.44 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
17
+ cacheable modules 8.44 MiB
18
+ modules by path ../../node_modules/ 5.56 MiB 52 modules
19
19
  modules by path ./ 2.87 MiB 41 modules
20
20
  provide-module modules 210 bytes
21
21
  provide shared module (default) @openmrs/esm-framework@6.0.3-pre.2587 = ../../no...(truncated) 42 bytes [built] [code generated]
@@ -31,6 +31,6 @@ WARNING in asset size limit: The following asset(s) exceed the recommended size
31
31
  This can impact web performance.
32
32
  Assets:
33
33
  202.js (358 KiB)
34
- 367.js (1.33 MiB)
34
+ 367.js (1.37 MiB)
35
35
 
36
- webpack 5.90.3 compiled with 1 warning in 75600 ms
36
+ webpack 5.90.3 compiled with 1 warning in 78948 ms
package/dist/126.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[126],{9963:(e,a,t)=>{t.d(a,{p1:()=>r,zD:()=>n});var r="".concat(window.spaBase).concat("/reports"),n="System Developer"},7126:(e,a,t)=>{t.r(a),t.d(a,{default:()=>o});var r=t(1343),n=t.n(r),s=t(3150),p=t(9963),c=t(1202),l=t(2137);function o(){var e=(0,s.useTranslation)().t;return n().createElement(c.Wdr,null,n().createElement(c.t3h,{href:"".concat(p.p1)},n().createElement("div",null,n().createElement("div",{className:"heading"},e("manageReports","Manage Reports")),n().createElement("div",{className:"content"},e("reports","Reports"))),n().createElement("div",{className:"iconWrapper"},n().createElement(l.Qp,{size:16}))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[126],{9963:(e,a,r)=>{r.d(a,{p1:()=>t,zD:()=>n});var t="".concat(window.spaBase).concat("/reports"),n="System Developer"},7126:(e,a,r)=>{r.r(a),r.d(a,{default:()=>o});var t=r(1343),n=r.n(t),s=r(3150),p=r(1202),l=r(2137),c=r(9963);function o(){var e=(0,s.useTranslation)().t;return n().createElement(p.Wdr,null,n().createElement(p.t3h,{href:c.p1},n().createElement("div",null,n().createElement("div",{className:"heading"},e("manageReports","Manage reports")),n().createElement("div",{className:"content"},e("reports","Reports"))),n().createElement("div",{className:"iconWrapper"},n().createElement(l.Qp,{size:16}))))}}}]);
package/dist/126.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"126.js","mappings":"0KAAO,IACMA,EAAc,GAAoBC,OAAjBC,OAAOC,SAAmB,OADhC,YAEXC,EAA6B,kB,8GCI3B,SAASC,IACtB,IAAM,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,kBAACC,EAAAA,IAAKA,KACJ,kBAACC,EAAAA,IAAaA,CAACC,KAAM,GAAe,OAAZV,EAAAA,KACtB,kBAACW,MAAAA,KACC,kBAACA,MAAAA,CAAIC,UAAU,WAAWL,EAAE,gBAAiB,mBAC7C,kBAACI,MAAAA,CAAIC,UAAU,WAAWL,EAAE,UAAW,aAEzC,kBAACI,MAAAA,CAAIC,UAAU,eACb,kBAACC,EAAAA,GAAUA,CAACC,KAAM,OAK5B,C","sources":["webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/reports-link.tsx"],"names":["spaBasePath","basePath","window","spaBase","PRIVILEGE_SYSTEM_DEVELOPER","ReportsLink","useTranslation","t","Layer","ClickableTile","href","div","className","ArrowRight","size"],"sourceRoot":""}
1
+ {"version":3,"file":"126.js","mappings":"0KAAO,IACMA,EAAc,GAAoBC,OAAjBC,OAAOC,SAAmB,OADhC,YAEXC,EAA6B,kB,8GCI3B,SAASC,IACtB,IAAM,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,kBAACC,EAAAA,IAAKA,KACJ,kBAACC,EAAAA,IAAaA,CAACC,KAAMV,EAAAA,IACnB,kBAACW,MAAAA,KACC,kBAACA,MAAAA,CAAIC,UAAU,WAAWL,EAAE,gBAAiB,mBAC7C,kBAACI,MAAAA,CAAIC,UAAU,WAAWL,EAAE,UAAW,aAEzC,kBAACI,MAAAA,CAAIC,UAAU,eACb,kBAACC,EAAAA,GAAUA,CAACC,KAAM,OAK5B,C","sources":["webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/reports-link.tsx"],"names":["spaBasePath","basePath","window","spaBase","PRIVILEGE_SYSTEM_DEVELOPER","ReportsLink","useTranslation","t","Layer","ClickableTile","href","div","className","ArrowRight","size"],"sourceRoot":""}
package/dist/156.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[156],{5216:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,":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__overlay__container___TMlf\\+{padding:2rem}.-esm-reports__overlay__welcome___uVRL2{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0);margin:1rem 0}.-esm-reports__overlay__explainer___kB70Z{margin-bottom:2rem}.-esm-reports__overlay__desktopOverlay___-aKbt{position:fixed;top:3rem;width:700px;right:0;bottom:0;border-left:1px solid #a8a8a8;background-color:#f4f4f4;overflow-y:auto;height:calc(100vh - 3rem);z-index:3}.-esm-reports__overlay__desktopOverlay___-aKbt::after{height:100%;border-left:1px solid #a8a8a8}.-esm-reports__overlay__tabletOverlay___fvJiV{position:fixed;top:0;bottom:0;left:0;right:0;z-index:9999;background-color:#f4f4f4;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;z-index:3}.-esm-reports__overlay__tabletOverlay___fvJiV::-webkit-scrollbar{width:0}.-esm-reports__overlay__tabletOverlay___fvJiV>div{margin-top:3rem}.-esm-reports__overlay__tabletOverlayHeader___ilBNA button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-reports__overlay__tabletOverlayHeader___ilBNA .-esm-reports__overlay__headerContent___X2O0m{color:#fff}.-esm-reports__overlay__desktopHeader___8dXzC{display:flex;justify-content:space-between;align-items:center;background-color:#e0e0e0;border-bottom:1px solid #a8a8a8;position:sticky;position:-webkit-sticky;width:100%;z-index:1000;top:0}.-esm-reports__overlay__headerContent___X2O0m{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);padding:0 1rem;color:#161616}.-esm-reports__overlay__closeButton___DnQeA{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-reports__overlay__overlayContent___6Zi6T{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-reports__overlay__overlayContent___6Zi6T{padding:0 0 0 0;overflow-y:auto}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./src/components/overlay.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,2CACE,YCqCW,CDlCb,wCE21BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CFz1BF,aAAA,CAGF,0CACE,kBAAA,CGRF,+CACE,cAAA,CACA,QF4CW,CE3CX,WAAA,CACA,OAAA,CACA,QAAA,CACA,6BAAA,CACA,wBJZM,CIaN,eAAA,CACA,yBAAA,CACA,SAAA,CAGF,sDACE,WAAA,CACA,6BAAA,CAGF,8CACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,YAAA,CACA,wBJ9BM,CI+BN,iBAAA,CACA,uBAAA,CACA,oBAAA,CACA,SAAA,CAEA,iEACE,OAAA,CAGF,kDACE,eFUS,CELX,2DJRA,wBAAA,CACA,gCAAA,CIWA,kGACE,UJlDI,CIsDR,8CACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,wBJzDM,CI0DN,+BAAA,CACA,eAAA,CACA,uBAAA,CACA,UAAA,CACA,YAAA,CACA,KAAA,CAGF,8CD8xBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CC5xBF,cAAA,CACA,aJnEM,CIsER,4CACE,qBJpEc,CIqEd,aJxEM,CIyEN,YJzEM,CI8EN,0EACE,eAAA,CACA,eAAA,CAMF,2EACE,eAAA,CACA,eAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n\n.container {\n padding: layout.$spacing-07;\n}\n\n.welcome {\n @include type.type-style('heading-04');\n margin: layout.$spacing-05 0; \n}\n\n.explainer {\n margin-bottom: 2rem;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n@import './../root.scss';\n\n.desktopOverlay {\n position: fixed;\n top: layout.$spacing-09;\n width: 700px;\n right: 0;\n bottom: 0;\n border-left: 1px solid $text-03;\n background-color: $ui-01;\n overflow-y: auto;\n height: calc(100vh - 3rem);\n z-index: 3;\n}\n\n.desktopOverlay::after {\n height: 100%;\n border-left: 1px solid $text-03;\n}\n\n.tabletOverlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 9999;\n background-color: $ui-01;\n overflow-y: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n z-index: 3;\n\n &::-webkit-scrollbar {\n width: 0;\n }\n\n & > div {\n margin-top: layout.$spacing-09;\n }\n}\n\n.tabletOverlayHeader {\n button {\n @include brand-01(background-color);\n }\n\n .headerContent {\n color: $ui-02;\n }\n}\n\n.desktopHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: $ui-03;\n border-bottom: 1px solid $text-03;\n position: sticky;\n position: -webkit-sticky;\n width: 100%;\n z-index: 1000;\n top: 0;\n}\n\n.headerContent {\n @include type.type-style('heading-compact-02');\n padding: 0 layout.$spacing-05;\n color: $ui-05;\n}\n\n.closeButton {\n background-color: $ui-background;\n color: $ui-05;\n fill: $ui-05;\n}\n\n/* Desktop */\n:global(.omrs-breakpoint-gt-tablet) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}"],sourceRoot:""}]),i.locals={container:"-esm-reports__overlay__container___TMlf+",welcome:"-esm-reports__overlay__welcome___uVRL2",explainer:"-esm-reports__overlay__explainer___kB70Z",desktopOverlay:"-esm-reports__overlay__desktopOverlay___-aKbt",tabletOverlay:"-esm-reports__overlay__tabletOverlay___fvJiV",tabletOverlayHeader:"-esm-reports__overlay__tabletOverlayHeader___ilBNA",headerContent:"-esm-reports__overlay__headerContent___X2O0m",desktopHeader:"-esm-reports__overlay__desktopHeader___8dXzC",closeButton:"-esm-reports__overlay__closeButton___DnQeA",overlayContent:"-esm-reports__overlay__overlayContent___6Zi6T"};const s=i},5459:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,".-esm-reports__reports__statusIcon___ZBOPS{margin-bottom:-2px;margin-right:5px}.-esm-reports__reports__failedIcon___LkrmK{color:red}.-esm-reports__reports__successIcon___K1Cb-{color:green}.-esm-reports__reports__runningIcon___acZQi{display:inline-block}.-esm-reports__reports__actionButon___j0fzZ{padding-left:0px;color:inherit}.-esm-reports__reports__actionButtonIcon___5jGpk{margin-left:5px}.-esm-reports__reports__mainActionButton___pAVJu{margin-top:25px}.-esm-reports__reports__mainPanelDiv___AzyUT{height:130px;background-color:#fff}.-esm-reports__reports__emptyButton___heJoD{width:100px}.-esm-reports__reports__actionButtonsWrapperDiv___EdUhy{width:110px;display:inline-block}.-esm-reports__reports__mainActionButtonsDiv___0rrH9{text-align:right;height:48px}.-esm-reports__reports__reportsLabelDiv___0cOEq{margin-left:20px;padding-top:20px}.-esm-reports__reports__breadcrumbsSlot___yliJm{grid-row:1/2;grid-column:1/2}.-esm-reports__reports__downloadReportsVisible___RYk-g{display:inline-block}.-esm-reports__reports__downloadReportsHidden___eTv7W{display:none}.-esm-reports__reports__breadcrumb___8Dkgz{margin-top:-30px}.-esm-reports__reports__rowCellEven___wq1EK{background-color:#fff !important}.-esm-reports__reports__rowCellOdd___06b9z{background-color:#f4f4f4 !important}.-esm-reports__reports__scheduledStatusText___DW5uq{color:green}.-esm-reports__reports__scheduleCompletedStatusText___fkFaz{color:red}.-esm-reports__reports__notScheduledStatusText___gn1lD{color:red}","",{version:3,sources:["webpack://./src/components/reports.scss"],names:[],mappings:"AAAA,2CACE,kBAAA,CACA,gBAAA,CAGF,2CACE,SAAA,CAGF,4CACE,WAAA,CAGF,4CACE,oBAAA,CAGF,4CACE,gBAAA,CACA,aAAA,CAGF,iDACE,eAAA,CAGF,iDACE,eAAA,CAGF,6CACE,YAAA,CACA,qBAAA,CAGF,4CACE,WAAA,CAGF,wDACE,WAAA,CACA,oBAAA,CAGF,qDACE,gBAAA,CACA,WAAA,CAGF,gDACE,gBAAA,CACA,gBAAA,CAGF,gDACE,YAAA,CACA,eAAA,CAGF,uDACE,oBAAA,CAGF,sDACE,YAAA,CAGF,2CACE,gBAAA,CAGF,4CACE,gCAAA,CAGF,2CACE,mCAAA,CAGF,oDACE,WAAA,CAGF,4DACE,SAAA,CAGF,uDACE,SAAA",sourcesContent:[".statusIcon {\n margin-bottom: -2px;\n margin-right: 5px;\n}\n\n.failedIcon {\n color: red;\n}\n\n.successIcon {\n color: green;\n}\n\n.runningIcon {\n display: inline-block;\n}\n\n.actionButon {\n padding-left: 0px;\n color: inherit;\n}\n\n.actionButtonIcon {\n margin-left: 5px;\n}\n\n.mainActionButton {\n margin-top: 25px;\n}\n\n.mainPanelDiv {\n height: 130px;\n background-color: white;\n}\n\n.emptyButton {\n width: 100px;\n}\n\n.actionButtonsWrapperDiv {\n width: 110px;\n display: inline-block;\n}\n\n.mainActionButtonsDiv {\n text-align: right;\n height: 48px;\n}\n\n.reportsLabelDiv {\n margin-left: 20px;\n padding-top: 20px;\n}\n\n.breadcrumbsSlot {\n grid-row: 1 / 2;\n grid-column: 1 / 2;\n}\n\n.downloadReportsVisible {\n display: inline-block;\n}\n\n.downloadReportsHidden {\n display: none;\n}\n\n.breadcrumb {\n margin-top: -30px;\n}\n\n.rowCellEven {\n background-color: #FFFFFF !important;\n}\n\n.rowCellOdd {\n background-color: #F4F4F4 !important;\n}\n\n.scheduledStatusText {\n color: green;\n}\n\n.scheduleCompletedStatusText {\n color: red;\n}\n\n.notScheduledStatusText {\n color: red;\n}\n"],sourceRoot:""}]),i.locals={statusIcon:"-esm-reports__reports__statusIcon___ZBOPS",failedIcon:"-esm-reports__reports__failedIcon___LkrmK",successIcon:"-esm-reports__reports__successIcon___K1Cb-",runningIcon:"-esm-reports__reports__runningIcon___acZQi",actionButon:"-esm-reports__reports__actionButon___j0fzZ",actionButtonIcon:"-esm-reports__reports__actionButtonIcon___5jGpk",mainActionButton:"-esm-reports__reports__mainActionButton___pAVJu",mainPanelDiv:"-esm-reports__reports__mainPanelDiv___AzyUT",emptyButton:"-esm-reports__reports__emptyButton___heJoD",actionButtonsWrapperDiv:"-esm-reports__reports__actionButtonsWrapperDiv___EdUhy",mainActionButtonsDiv:"-esm-reports__reports__mainActionButtonsDiv___0rrH9",reportsLabelDiv:"-esm-reports__reports__reportsLabelDiv___0cOEq",breadcrumbsSlot:"-esm-reports__reports__breadcrumbsSlot___yliJm",downloadReportsVisible:"-esm-reports__reports__downloadReportsVisible___RYk-g",downloadReportsHidden:"-esm-reports__reports__downloadReportsHidden___eTv7W",breadcrumb:"-esm-reports__reports__breadcrumb___8Dkgz",rowCellEven:"-esm-reports__reports__rowCellEven___wq1EK",rowCellOdd:"-esm-reports__reports__rowCellOdd___06b9z",scheduledStatusText:"-esm-reports__reports__scheduledStatusText___DW5uq",scheduleCompletedStatusText:"-esm-reports__reports__scheduleCompletedStatusText___fkFaz",notScheduledStatusText:"-esm-reports__reports__notScheduledStatusText___gn1lD"};const s=i},8758:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,":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__run-report-form__tablet___SswdZ{padding:1.5rem 1rem;background-color:#fff}.-esm-reports__run-report-form__desktop___7wbtn{padding:0rem}.-esm-reports__run-report-form__desktopRunReport___l0TCO{background-color:#fff;display:flex;flex-direction:column;justify-content:space-between}.-esm-reports__run-report-form__runReportInnerDivElement___8M8TK{display:flex;padding:1rem;flex-direction:column;align-items:flex-start;gap:1rem}.-esm-reports__run-report-form__basicInputElement___e9bgE{width:300px;height:30px;margin-bottom:30px}.-esm-reports__run-report-form__outputFormatDiv___\\+v3AS{margin-bottom:50px;display:flex;padding:2rem 1rem 1rem 1rem;flex-direction:column;align-items:flex-start;gap:1rem}.-esm-reports__run-report-form__buttonsDiv___YkKsw{margin-top:50px}.-esm-reports__run-report-form__parameterElement___LaldY{margin-bottom:30px;margin-top:30px}.-esm-reports__run-report-form__datePicker___UqBDM{text-align:left}.-esm-reports__run-report-form__cancelActionButton___veZKq{text-decoration:underline;color:#525252;padding-left:0px}.-esm-reports__run-report-form__unknownParameterTypeSpan___lkA0N{text-align:left;color:red}.-esm-reports__run-report-form__tableIcon___c5rBq{display:inline-block;margin-left:10px}.-esm-reports__run-report-form__reportButton___0Oio\\+{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-reports__run-report-form__rowCellEven___kDe4-{background-color:#fff !important}.-esm-reports__run-report-form__rowCellOdd___HdIte{background-color:#f4f4f4 !important}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/run-report/run-report-form.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,+CACE,mBAAA,CACA,qBDLM,CCQR,gDACE,YAAA,CAGF,yDACE,qBDPc,CCQd,YAAA,CACA,qBAAA,CACA,6BAAA,CAGF,iEACE,YAAA,CACA,YCSW,CDRX,qBAAA,CACA,sBAAA,CACA,QCMW,CDHb,0DACE,WAAA,CACA,WAAA,CACA,kBAAA,CAGF,yDACE,kBAAA,CACA,YAAA,CACA,2BAAA,CACA,qBAAA,CACA,sBAAA,CACA,QCTW,CDYb,mDACE,eAAA,CAGF,yDACE,kBAAA,CACA,eAAA,CAGF,mDACE,eAAA,CAGF,2DACE,yBAAA,CACA,aAAA,CACA,gBAAA,CAGF,iEACE,eAAA,CACA,SAAA,CAGF,kDACE,oBAAA,CACA,gBAAA,CAGF,sDACE,WCjBW,CDkBX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,oDACE,gCAAA,CAGF,mDACE,mCAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.desktopRunReport {\n background-color: $ui-background;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.runReportInnerDivElement {\n display: flex;\n padding: layout.$spacing-05;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-05;\n}\n\n.basicInputElement {\n width: 300px;\n height: 30px;\n margin-bottom: 30px;\n}\n\n.outputFormatDiv {\n margin-bottom: 50px;\n display: flex;\n padding: layout.$spacing-07 layout.$spacing-05 layout.$spacing-05 layout.$spacing-05;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-05;\n}\n\n.buttonsDiv {\n margin-top: 50px;\n}\n\n.parameterElement {\n margin-bottom: 30px;\n margin-top: 30px;\n}\n\n.datePicker {\n text-align: left;\n}\n\n.cancelActionButton {\n text-decoration: underline;\n color: #525252;\n padding-left: 0px;\n}\n\n.unknownParameterTypeSpan {\n text-align: left;\n color: red;\n}\n\n.tableIcon {\n display: inline-block;\n margin-left: 10px;\n}\n\n.reportButton {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.rowCellEven {\n background-color: #FFFFFF !important;\n}\n\n.rowCellOdd {\n background-color: #F4F4F4 !important;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={tablet:"-esm-reports__run-report-form__tablet___SswdZ",desktop:"-esm-reports__run-report-form__desktop___7wbtn",desktopRunReport:"-esm-reports__run-report-form__desktopRunReport___l0TCO",runReportInnerDivElement:"-esm-reports__run-report-form__runReportInnerDivElement___8M8TK",basicInputElement:"-esm-reports__run-report-form__basicInputElement___e9bgE",outputFormatDiv:"-esm-reports__run-report-form__outputFormatDiv___+v3AS",buttonsDiv:"-esm-reports__run-report-form__buttonsDiv___YkKsw",parameterElement:"-esm-reports__run-report-form__parameterElement___LaldY",datePicker:"-esm-reports__run-report-form__datePicker___UqBDM",cancelActionButton:"-esm-reports__run-report-form__cancelActionButton___veZKq",unknownParameterTypeSpan:"-esm-reports__run-report-form__unknownParameterTypeSpan___lkA0N",tableIcon:"-esm-reports__run-report-form__tableIcon___c5rBq",reportButton:"-esm-reports__run-report-form__reportButton___0Oio+",rowCellEven:"-esm-reports__run-report-form__rowCellEven___kDe4-",rowCellOdd:"-esm-reports__run-report-form__rowCellOdd___HdIte"};const s=i},5145:(e,n,t)=>{t.d(n,{A:()=>h});var r=t(111),a=t.n(r),o=t(5660),i=t.n(o),s=t(3824),p=t.n(s),l=t(8823),c=t.n(l),u=t(6747),d=t.n(u),g=t(4072),f=t.n(g),m=t(5459),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=p().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),a()(m.A,y);const h=m.A&&m.A.locals?m.A.locals:void 0},8456:(e,n,t)=>{t.d(n,{A:()=>h});var r=t(111),a=t.n(r),o=t(5660),i=t.n(o),s=t(3824),p=t.n(s),l=t(8823),c=t.n(l),u=t(6747),d=t.n(u),g=t(4072),f=t.n(g),m=t(8758),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=p().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),a()(m.A,y);const h=m.A&&m.A.locals?m.A.locals:void 0},1730:(e,n,t)=>{t.d(n,{A:()=>B});var r=t(1343),a=t.n(r),o=t(1202),i=t(2137),s=t(9184),p=t(2516),l=t(8100),c=t(111),u=t.n(c),d=t(5660),g=t.n(d),f=t(3824),m=t.n(f),y=t(8823),h=t.n(y),b=t(6747),_=t.n(b),A=t(4072),$=t.n(A),v=t(5216),C={};C.styleTagTransform=$(),C.setAttributes=h(),C.insert=m().bind(null,"head"),C.domAPI=g(),C.insertStyleElement=_(),u()(v.A,C);const k=v.A&&v.A.locals?v.A.locals:void 0;var w=t(7304),x=t(3373),z=t.n(x);function E(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const B=function(){var e,n=(0,l.e)(),t=n.header,r=n.component,c=n.isOverlayOpen,u=(0,p.useLayoutType)();return a().createElement(a().Fragment,null,c&&a().createElement("div",{className:z()((e={},E(e,k.desktopOverlay,"tablet"!==u),E(e,k.tabletOverlay,"tablet"===u),e))},"tablet"===u&&a().createElement(o.Y9Y,{onClick:function(){return(0,l.L9)()},"aria-label":"Tablet overlay",className:k.tabletOverlayHeader},a().createElement(o.K0,null,a().createElement(i.nk,{size:16})),a().createElement("div",{className:k.headerContent},t)),"tablet"!==u&&a().createElement("div",{className:k.desktopHeader},a().createElement("div",{className:k.headerContent},t),a().createElement(o.K0,{className:k.closePanelButton,onClick:function(){return(0,l.L9)()},kind:"ghost",label:(0,w.t)("close","Close")},a().createElement(s.bm,{size:16}))),r))}},6547:(e,n,t)=>{t.d(n,{Et:()=>o,ZE:()=>a,yQ:()=>r});var r=10,a=[5,10,20,50],o=1},2605:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(1343),a=t.n(r),o=t(1202),i=t(5145);const s=function(e){var n=e.shouldBeDisplayed,t=e.label,r=e.icon,s=e.onClick;return n?a().createElement("div",{className:i.A.actionButtonsWrapperDiv},a().createElement(o.$nd,{kind:"ghost",renderIcon:r,iconDescription:t,onClick:s,className:i.A.actionButon},t)):a().createElement("div",{className:i.A.actionButtonsWrapperDiv})}},1892:(e,n,t)=>{t.d(n,{F5:()=>k,LC:()=>h,Ls:()=>f,Ns:()=>_,S:()=>y,Sh:()=>A,Wm:()=>x,b_:()=>v,jF:()=>b,kH:()=>d,mn:()=>m,rY:()=>g});var r=t(2516),a=t(8855),o=t(231),i=t.n(o);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function p(e,n,t,r,a,o,i){try{var s=e[o](i),p=s.value}catch(e){return void t(e)}s.done?n(p):Promise.resolve(p).then(r,a)}function l(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){p(o,r,a,i,s,"next",e)}function s(e){p(o,r,a,i,s,"throw",e)}i(void 0)}))}}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(){var e,n,t=(0,a.Ay)("/ws/rest/v1/location?tag=Login+Location",r.openmrsFetch).data;return{locations:t?null===(n=t)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results:[]}}function g(e,n,t,o){var s,p,l,u,d,g="/ws/rest/v1/reportingrest/reportRequest?status=".concat(e,"&startIndex=").concat(n,"&limit=").concat(t,"&totalCount=true")+(o?"&sortBy=".concat(o):""),f=(0,a.Ay)(g,r.openmrsFetch),m=f.data,y=f.error,h=f.isValidating,b=f.mutate,_=null===(l=m)||void 0===l||null===(p=l.data)||void 0===p?void 0:p.results,A=null===(d=m)||void 0===d||null===(u=d.data)||void 0===u?void 0:u.totalCount,$=_?(s=[]).concat.apply(s,c(_.map((function(e){return function(e){return{id:e.uuid,reportName:e.parameterizable.name,status:e.status,requestedBy:e.requestedBy.person.display,requestedByUserUuid:e.requestedBy.uuid,requestedOn:i()(e.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:e.renderingMode.label,parameters:E(e),evaluateCompleteDatetime:e.evaluateCompleteDatetime?i()(e.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:e.schedule}}(e)})))):[];return{reports:$,reportsTotalCount:A,error:y,isValidating:h,mutateReports:b}}function f(e){var n,t="/ws/rest/v1/reportingrest/reportRequest/".concat(e),o=(0,a.Ay)(t,r.openmrsFetch),i=o.data,s=o.error,p=o.isValidating,l=o.mutate;return{reportRequest:null===(n=i)||void 0===n?void 0:n.data,error:s,isValidating:p,mutate:l}}function m(e){var n,t,o,i="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?"?sortBy=".concat(e):""),s=(0,a.Ay)(i,r.openmrsFetch),p=s.data,l=s.error,u=s.isValidating,d=s.mutate,g=null===(o=p)||void 0===o||null===(t=o.data)||void 0===t?void 0:t.results,f=g?(n=[]).concat.apply(n,c(g.map((function(e){return function(e){var n,t,r,a;return{reportDefinitionUuid:e.reportDefinition.uuid,reportRequestUuid:null===(t=e.scheduledRequests)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.uuid,name:e.reportDefinition.display,schedule:null===(a=e.scheduledRequests)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.schedule}}(e)})))):[];return{scheduledReports:f,error:l,isValidating:u,mutateScheduledReports:d}}function y(){var e,n,t=(0,a.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",r.openmrsFetch).data;return{reportDefinitions:t?null===(n=t)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results:[]}}function h(e){var n,t="/ws/rest/v1/reportingrest/reportDefinition/".concat(e,"?v=full");return null===(n=(0,a.Ay)(t,r.openmrsFetch).data)||void 0===n?void 0:n.data}function b(e){var n,t="/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=".concat(e),o=(0,a.Ay)(e?t:null,r.openmrsFetch),i=o.data,s=o.error,p=o.isValidating,l=o.mutate;return{reportDesigns:null===(n=i)||void 0===n?void 0:n.data.results,error:s,isValidating:p,mutateReportDesigns:l}}function _(e){var n=new AbortController;return(0,r.openmrsObservableFetch)("/ws/rest/v1/reportingrest/reportRequest",{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function A(e){return $.apply(this,arguments)}function $(){return($=l((function(e){var n;return u(this,(function(t){return n="/ws/rest/v1/reportingrest/reportRequest/".concat(e),[2,(0,r.openmrsFetch)(n,{method:"DELETE"})]}))}))).apply(this,arguments)}function v(e){return C.apply(this,arguments)}function C(){return(C=l((function(e){var n;return u(this,(function(t){return n="/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=".concat(e),[2,(0,r.openmrsFetch)(n,{method:"POST"})]}))}))).apply(this,arguments)}function k(e){return w.apply(this,arguments)}function w(){return(w=l((function(e){var n;return u(this,(function(t){switch(t.label){case 0:return n="/ws/rest/v1/reportingrest/downloadReport?reportRequestUuid=".concat(e),[4,(0,r.openmrsFetch)(n)];case 1:return[2,t.sent().data]}}))}))).apply(this,arguments)}function x(e){return z.apply(this,arguments)}function z(){return(z=l((function(e){var n;return u(this,(function(t){switch(t.label){case 0:return n="/ws/rest/v1/reportingrest/downloadMultipleReports?reportRequestUuids=".concat(e),[4,(0,r.openmrsFetch)(n)];case 1:return[2,t.sent().data]}}))}))).apply(this,arguments)}function E(e){var n="",t=e.parameterizable.parameters;return t.length>0&&(t.forEach((function(t){var r=e.parameterMappings[t.name];if("java.util.Date"===t.type)r=i()(r).format("YYYY-MM-DD");else if("org.openmrs.Location"===t.type){var a;r=null===(a=r)||void 0===a?void 0:a.display}n=n+t.label+": "+r+", "})),","===(n=n.trim()).charAt(n.length-1)&&(n=n.slice(0,-1))),n}},9963:(e,n,t)=>{t.d(n,{p1:()=>r,zD:()=>a});var r="".concat(window.spaBase).concat("/reports"),a="System Developer"},8100:(e,n,t)=>{t.d(n,{L9:()=>l,_5:()=>p,e:()=>c});var r=t(2516),a=t(1343);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var i={isOverlayOpen:!1,header:""},s=function(){return(0,r.getGlobalStore)("reports-store",i)},p=function(e,n){s().setState({isOverlayOpen:!0,component:n,header:e})},l=function(){s().setState({component:null,isOverlayOpen:!1})},c=function(){var e,n,t=(e=(0,a.useState)(),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),r=t[0],i=t[1],p=(0,a.useCallback)((function(e){i(e)}),[]);(0,a.useEffect)((function(){p(s().getState()),s().subscribe(p)}),[p]);var l=null!=r?r:{};return{isOverlayOpen:l.isOverlayOpen,component:l.component,header:l.header}}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[156],{5216:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,":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__overlay__container___TMlf\\+{padding:2rem}.-esm-reports__overlay__welcome___uVRL2{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0);margin:1rem 0}.-esm-reports__overlay__explainer___kB70Z{margin-bottom:2rem}.-esm-reports__overlay__desktopOverlay___-aKbt{position:fixed;top:3rem;width:700px;right:0;bottom:0;border-left:1px solid #a8a8a8;background-color:#f4f4f4;overflow-y:auto;height:calc(100vh - 3rem);z-index:3}.-esm-reports__overlay__desktopOverlay___-aKbt::after{height:100%;border-left:1px solid #a8a8a8}.-esm-reports__overlay__tabletOverlay___fvJiV{position:fixed;top:0;bottom:0;left:0;right:0;z-index:9999;background-color:#f4f4f4;overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;z-index:3}.-esm-reports__overlay__tabletOverlay___fvJiV::-webkit-scrollbar{width:0}.-esm-reports__overlay__tabletOverlay___fvJiV>div{margin-top:3rem}.-esm-reports__overlay__tabletOverlayHeader___ilBNA button{background-color:#005d5d;background-color:var(--brand-01)}.-esm-reports__overlay__tabletOverlayHeader___ilBNA .-esm-reports__overlay__headerContent___X2O0m{color:#fff}.-esm-reports__overlay__desktopHeader___8dXzC{display:flex;justify-content:space-between;align-items:center;background-color:#e0e0e0;border-bottom:1px solid #a8a8a8;position:sticky;position:-webkit-sticky;width:100%;z-index:1000;top:0}.-esm-reports__overlay__headerContent___X2O0m{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);padding:0 1rem;color:#161616}.-esm-reports__overlay__closeButton___DnQeA{background-color:#fff;color:#161616;fill:#161616}.omrs-breakpoint-gt-tablet .-esm-reports__overlay__overlayContent___6Zi6T{padding:0 0 0 0;overflow-y:auto}.omrs-breakpoint-lt-desktop .-esm-reports__overlay__overlayContent___6Zi6T{padding:0 0 0 0;overflow-y:auto}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./src/components/overlay.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,2CACE,YCqCW,CDlCb,wCE21BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CFz1BF,aAAA,CAGF,0CACE,kBAAA,CGRF,+CACE,cAAA,CACA,QF4CW,CE3CX,WAAA,CACA,OAAA,CACA,QAAA,CACA,6BAAA,CACA,wBJZM,CIaN,eAAA,CACA,yBAAA,CACA,SAAA,CAGF,sDACE,WAAA,CACA,6BAAA,CAGF,8CACE,cAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,YAAA,CACA,wBJ9BM,CI+BN,iBAAA,CACA,uBAAA,CACA,oBAAA,CACA,SAAA,CAEA,iEACE,OAAA,CAGF,kDACE,eFUS,CELX,2DJRA,wBAAA,CACA,gCAAA,CIWA,kGACE,UJlDI,CIsDR,8CACE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,wBJzDM,CI0DN,+BAAA,CACA,eAAA,CACA,uBAAA,CACA,UAAA,CACA,YAAA,CACA,KAAA,CAGF,8CD8xBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CC5xBF,cAAA,CACA,aJnEM,CIsER,4CACE,qBJpEc,CIqEd,aJxEM,CIyEN,YJzEM,CI8EN,0EACE,eAAA,CACA,eAAA,CAMF,2EACE,eAAA,CACA,eAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n\n.container {\n padding: layout.$spacing-07;\n}\n\n.welcome {\n @include type.type-style('heading-04');\n margin: layout.$spacing-05 0; \n}\n\n.explainer {\n margin-bottom: 2rem;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n@import './../root.scss';\n\n.desktopOverlay {\n position: fixed;\n top: layout.$spacing-09;\n width: 700px;\n right: 0;\n bottom: 0;\n border-left: 1px solid $text-03;\n background-color: $ui-01;\n overflow-y: auto;\n height: calc(100vh - 3rem);\n z-index: 3;\n}\n\n.desktopOverlay::after {\n height: 100%;\n border-left: 1px solid $text-03;\n}\n\n.tabletOverlay {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 9999;\n background-color: $ui-01;\n overflow-y: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n z-index: 3;\n\n &::-webkit-scrollbar {\n width: 0;\n }\n\n & > div {\n margin-top: layout.$spacing-09;\n }\n}\n\n.tabletOverlayHeader {\n button {\n @include brand-01(background-color);\n }\n\n .headerContent {\n color: $ui-02;\n }\n}\n\n.desktopHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: $ui-03;\n border-bottom: 1px solid $text-03;\n position: sticky;\n position: -webkit-sticky;\n width: 100%;\n z-index: 1000;\n top: 0;\n}\n\n.headerContent {\n @include type.type-style('heading-compact-02');\n padding: 0 layout.$spacing-05;\n color: $ui-05;\n}\n\n.closeButton {\n background-color: $ui-background;\n color: $ui-05;\n fill: $ui-05;\n}\n\n/* Desktop */\n:global(.omrs-breakpoint-gt-tablet) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .overlayContent {\n padding: 0 0 0 0;\n overflow-y: auto;\n }\n}"],sourceRoot:""}]),i.locals={container:"-esm-reports__overlay__container___TMlf+",welcome:"-esm-reports__overlay__welcome___uVRL2",explainer:"-esm-reports__overlay__explainer___kB70Z",desktopOverlay:"-esm-reports__overlay__desktopOverlay___-aKbt",tabletOverlay:"-esm-reports__overlay__tabletOverlay___fvJiV",tabletOverlayHeader:"-esm-reports__overlay__tabletOverlayHeader___ilBNA",headerContent:"-esm-reports__overlay__headerContent___X2O0m",desktopHeader:"-esm-reports__overlay__desktopHeader___8dXzC",closeButton:"-esm-reports__overlay__closeButton___DnQeA",overlayContent:"-esm-reports__overlay__overlayContent___6Zi6T"};const s=i},5459:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,".-esm-reports__reports__statusIcon___ZBOPS{margin-bottom:-2px;margin-right:5px}.-esm-reports__reports__failedIcon___LkrmK{color:red}.-esm-reports__reports__successIcon___K1Cb-{color:green}.-esm-reports__reports__runningIcon___acZQi{display:inline-block}.-esm-reports__reports__actionButon___j0fzZ{padding-left:0px;color:inherit}.-esm-reports__reports__actionButtonIcon___5jGpk{margin-left:5px}.-esm-reports__reports__mainActionButton___pAVJu{margin-top:25px}.-esm-reports__reports__mainPanelDiv___AzyUT{height:130px;background-color:#fff}.-esm-reports__reports__emptyButton___heJoD{width:100px}.-esm-reports__reports__actionButtonsWrapperDiv___EdUhy{width:110px;display:inline-block}.-esm-reports__reports__mainActionButtonsDiv___0rrH9{text-align:right;height:48px}.-esm-reports__reports__reportsLabelDiv___0cOEq{margin-left:20px;padding-top:20px}.-esm-reports__reports__breadcrumbsSlot___yliJm{grid-row:1/2;grid-column:1/2}.-esm-reports__reports__downloadReportsVisible___RYk-g{display:inline-block}.-esm-reports__reports__downloadReportsHidden___eTv7W{display:none}.-esm-reports__reports__breadcrumb___8Dkgz{margin-top:-30px}.-esm-reports__reports__rowCellEven___wq1EK{background-color:#fff !important}.-esm-reports__reports__rowCellOdd___06b9z{background-color:#f4f4f4 !important}.-esm-reports__reports__scheduledStatusText___DW5uq{color:green}.-esm-reports__reports__scheduleCompletedStatusText___fkFaz{color:red}.-esm-reports__reports__notScheduledStatusText___gn1lD{color:red}","",{version:3,sources:["webpack://./src/components/reports.scss"],names:[],mappings:"AAAA,2CACE,kBAAA,CACA,gBAAA,CAGF,2CACE,SAAA,CAGF,4CACE,WAAA,CAGF,4CACE,oBAAA,CAGF,4CACE,gBAAA,CACA,aAAA,CAGF,iDACE,eAAA,CAGF,iDACE,eAAA,CAGF,6CACE,YAAA,CACA,qBAAA,CAGF,4CACE,WAAA,CAGF,wDACE,WAAA,CACA,oBAAA,CAGF,qDACE,gBAAA,CACA,WAAA,CAGF,gDACE,gBAAA,CACA,gBAAA,CAGF,gDACE,YAAA,CACA,eAAA,CAGF,uDACE,oBAAA,CAGF,sDACE,YAAA,CAGF,2CACE,gBAAA,CAGF,4CACE,gCAAA,CAGF,2CACE,mCAAA,CAGF,oDACE,WAAA,CAGF,4DACE,SAAA,CAGF,uDACE,SAAA",sourcesContent:[".statusIcon {\n margin-bottom: -2px;\n margin-right: 5px;\n}\n\n.failedIcon {\n color: red;\n}\n\n.successIcon {\n color: green;\n}\n\n.runningIcon {\n display: inline-block;\n}\n\n.actionButon {\n padding-left: 0px;\n color: inherit;\n}\n\n.actionButtonIcon {\n margin-left: 5px;\n}\n\n.mainActionButton {\n margin-top: 25px;\n}\n\n.mainPanelDiv {\n height: 130px;\n background-color: white;\n}\n\n.emptyButton {\n width: 100px;\n}\n\n.actionButtonsWrapperDiv {\n width: 110px;\n display: inline-block;\n}\n\n.mainActionButtonsDiv {\n text-align: right;\n height: 48px;\n}\n\n.reportsLabelDiv {\n margin-left: 20px;\n padding-top: 20px;\n}\n\n.breadcrumbsSlot {\n grid-row: 1 / 2;\n grid-column: 1 / 2;\n}\n\n.downloadReportsVisible {\n display: inline-block;\n}\n\n.downloadReportsHidden {\n display: none;\n}\n\n.breadcrumb {\n margin-top: -30px;\n}\n\n.rowCellEven {\n background-color: #FFFFFF !important;\n}\n\n.rowCellOdd {\n background-color: #F4F4F4 !important;\n}\n\n.scheduledStatusText {\n color: green;\n}\n\n.scheduleCompletedStatusText {\n color: red;\n}\n\n.notScheduledStatusText {\n color: red;\n}\n"],sourceRoot:""}]),i.locals={statusIcon:"-esm-reports__reports__statusIcon___ZBOPS",failedIcon:"-esm-reports__reports__failedIcon___LkrmK",successIcon:"-esm-reports__reports__successIcon___K1Cb-",runningIcon:"-esm-reports__reports__runningIcon___acZQi",actionButon:"-esm-reports__reports__actionButon___j0fzZ",actionButtonIcon:"-esm-reports__reports__actionButtonIcon___5jGpk",mainActionButton:"-esm-reports__reports__mainActionButton___pAVJu",mainPanelDiv:"-esm-reports__reports__mainPanelDiv___AzyUT",emptyButton:"-esm-reports__reports__emptyButton___heJoD",actionButtonsWrapperDiv:"-esm-reports__reports__actionButtonsWrapperDiv___EdUhy",mainActionButtonsDiv:"-esm-reports__reports__mainActionButtonsDiv___0rrH9",reportsLabelDiv:"-esm-reports__reports__reportsLabelDiv___0cOEq",breadcrumbsSlot:"-esm-reports__reports__breadcrumbsSlot___yliJm",downloadReportsVisible:"-esm-reports__reports__downloadReportsVisible___RYk-g",downloadReportsHidden:"-esm-reports__reports__downloadReportsHidden___eTv7W",breadcrumb:"-esm-reports__reports__breadcrumb___8Dkgz",rowCellEven:"-esm-reports__reports__rowCellEven___wq1EK",rowCellOdd:"-esm-reports__reports__rowCellOdd___06b9z",scheduledStatusText:"-esm-reports__reports__scheduledStatusText___DW5uq",scheduleCompletedStatusText:"-esm-reports__reports__scheduleCompletedStatusText___fkFaz",notScheduledStatusText:"-esm-reports__reports__notScheduledStatusText___gn1lD"};const s=i},8758:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(5836),a=t.n(r),o=t(8023),i=t.n(o)()(a());i.push([e.id,":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__run-report-form__tablet___SswdZ{padding:1.5rem 1rem;background-color:#fff}.-esm-reports__run-report-form__desktop___7wbtn{padding:0rem}.-esm-reports__run-report-form__desktopRunReport___l0TCO{background-color:#fff;display:flex;flex-direction:column;justify-content:space-between}.-esm-reports__run-report-form__runReportInnerDivElement___8M8TK{display:flex;padding:1rem;flex-direction:column;align-items:flex-start;gap:1rem}.-esm-reports__run-report-form__basicInputElement___e9bgE{width:300px;height:30px;margin-bottom:30px}.-esm-reports__run-report-form__outputFormatDiv___\\+v3AS{margin-bottom:50px;display:flex;padding:2rem 1rem 1rem 1rem;flex-direction:column;align-items:flex-start;gap:1rem}.-esm-reports__run-report-form__buttonsDiv___YkKsw{margin-top:50px}.-esm-reports__run-report-form__parameterElement___LaldY{margin-bottom:30px;margin-top:30px}.-esm-reports__run-report-form__datePicker___UqBDM{text-align:left}.-esm-reports__run-report-form__cancelActionButton___veZKq{text-decoration:underline;color:#525252;padding-left:0px}.-esm-reports__run-report-form__unknownParameterTypeSpan___lkA0N{text-align:left;color:red}.-esm-reports__run-report-form__tableIcon___c5rBq{display:inline-block;margin-left:10px}.-esm-reports__run-report-form__reportButton___0Oio\\+{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-reports__run-report-form__rowCellEven___kDe4-{background-color:#fff !important}.-esm-reports__run-report-form__rowCellOdd___HdIte{background-color:#f4f4f4 !important}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/run-report/run-report-form.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,+CACE,mBAAA,CACA,qBDLM,CCQR,gDACE,YAAA,CAGF,yDACE,qBDPc,CCQd,YAAA,CACA,qBAAA,CACA,6BAAA,CAGF,iEACE,YAAA,CACA,YCSW,CDRX,qBAAA,CACA,sBAAA,CACA,QCMW,CDHb,0DACE,WAAA,CACA,WAAA,CACA,kBAAA,CAGF,yDACE,kBAAA,CACA,YAAA,CACA,2BAAA,CACA,qBAAA,CACA,sBAAA,CACA,QCTW,CDYb,mDACE,eAAA,CAGF,yDACE,kBAAA,CACA,eAAA,CAGF,mDACE,eAAA,CAGF,2DACE,yBAAA,CACA,aAAA,CACA,gBAAA,CAGF,iEACE,eAAA,CACA,SAAA,CAGF,kDACE,oBAAA,CACA,gBAAA,CAGF,sDACE,WCjBW,CDkBX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,oDACE,gCAAA,CAGF,mDACE,mCAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.desktopRunReport {\n background-color: $ui-background;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.runReportInnerDivElement {\n display: flex;\n padding: layout.$spacing-05;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-05;\n}\n\n.basicInputElement {\n width: 300px;\n height: 30px;\n margin-bottom: 30px;\n}\n\n.outputFormatDiv {\n margin-bottom: 50px;\n display: flex;\n padding: layout.$spacing-07 layout.$spacing-05 layout.$spacing-05 layout.$spacing-05;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-05;\n}\n\n.buttonsDiv {\n margin-top: 50px;\n}\n\n.parameterElement {\n margin-bottom: 30px;\n margin-top: 30px;\n}\n\n.datePicker {\n text-align: left;\n}\n\n.cancelActionButton {\n text-decoration: underline;\n color: #525252;\n padding-left: 0px;\n}\n\n.unknownParameterTypeSpan {\n text-align: left;\n color: red;\n}\n\n.tableIcon {\n display: inline-block;\n margin-left: 10px;\n}\n\n.reportButton {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.rowCellEven {\n background-color: #FFFFFF !important;\n}\n\n.rowCellOdd {\n background-color: #F4F4F4 !important;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={tablet:"-esm-reports__run-report-form__tablet___SswdZ",desktop:"-esm-reports__run-report-form__desktop___7wbtn",desktopRunReport:"-esm-reports__run-report-form__desktopRunReport___l0TCO",runReportInnerDivElement:"-esm-reports__run-report-form__runReportInnerDivElement___8M8TK",basicInputElement:"-esm-reports__run-report-form__basicInputElement___e9bgE",outputFormatDiv:"-esm-reports__run-report-form__outputFormatDiv___+v3AS",buttonsDiv:"-esm-reports__run-report-form__buttonsDiv___YkKsw",parameterElement:"-esm-reports__run-report-form__parameterElement___LaldY",datePicker:"-esm-reports__run-report-form__datePicker___UqBDM",cancelActionButton:"-esm-reports__run-report-form__cancelActionButton___veZKq",unknownParameterTypeSpan:"-esm-reports__run-report-form__unknownParameterTypeSpan___lkA0N",tableIcon:"-esm-reports__run-report-form__tableIcon___c5rBq",reportButton:"-esm-reports__run-report-form__reportButton___0Oio+",rowCellEven:"-esm-reports__run-report-form__rowCellEven___kDe4-",rowCellOdd:"-esm-reports__run-report-form__rowCellOdd___HdIte"};const s=i},5145:(e,n,t)=>{t.d(n,{A:()=>h});var r=t(111),a=t.n(r),o=t(5660),i=t.n(o),s=t(3824),p=t.n(s),l=t(8823),c=t.n(l),u=t(6747),d=t.n(u),g=t(4072),f=t.n(g),m=t(5459),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=p().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),a()(m.A,y);const h=m.A&&m.A.locals?m.A.locals:void 0},8456:(e,n,t)=>{t.d(n,{A:()=>h});var r=t(111),a=t.n(r),o=t(5660),i=t.n(o),s=t(3824),p=t.n(s),l=t(8823),c=t.n(l),u=t(6747),d=t.n(u),g=t(4072),f=t.n(g),m=t(8758),y={};y.styleTagTransform=f(),y.setAttributes=c(),y.insert=p().bind(null,"head"),y.domAPI=i(),y.insertStyleElement=d(),a()(m.A,y);const h=m.A&&m.A.locals?m.A.locals:void 0},1730:(e,n,t)=>{t.d(n,{A:()=>E});var r=t(1343),a=t.n(r),o=t(3373),i=t.n(o),s=t(1202),p=t(2137),l=t(9184),c=t(2516),u=t(8292),d=t(111),g=t.n(d),f=t(5660),m=t.n(f),y=t(3824),h=t.n(y),b=t(8823),_=t.n(b),A=t(6747),$=t.n(A),v=t(4072),C=t.n(v),k=t(5216),w={};w.styleTagTransform=C(),w.setAttributes=_(),w.insert=h().bind(null,"head"),w.domAPI=m(),w.insertStyleElement=$(),g()(k.A,w);const x=k.A&&k.A.locals?k.A.locals:void 0;function z(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const E=function(){var e,n=(0,u.e)(),t=n.header,r=n.component,o=n.isOverlayOpen,d=(0,c.useLayoutType)();return a().createElement(a().Fragment,null,o&&a().createElement("div",{className:i()((e={},z(e,x.desktopOverlay,"tablet"!==d),z(e,x.tabletOverlay,"tablet"===d),e))},"tablet"===d&&a().createElement(s.Y9Y,{"aria-label":"Tablet overlay",className:x.tabletOverlayHeader,onClick:u.L9},a().createElement(s.K0,null,a().createElement(p.nk,{size:16})),a().createElement("div",{className:x.headerContent},t)),"tablet"!==d&&a().createElement("div",{className:x.desktopHeader},a().createElement("div",{className:x.headerContent},t),a().createElement(s.K0,{className:x.closePanelButton,kind:"ghost",label:(0,c.getCoreTranslation)("close"),onClick:u.L9},a().createElement(l.bm,{size:16}))),r))}},6547:(e,n,t)=>{t.d(n,{Et:()=>o,ZE:()=>a,yQ:()=>r});var r=10,a=[5,10,20,50],o=1},2605:(e,n,t)=>{t.d(n,{A:()=>s});var r=t(1343),a=t.n(r),o=t(1202),i=t(5145);const s=function(e){var n=e.shouldBeDisplayed,t=e.label,r=e.icon,s=e.onClick;return n?a().createElement("div",{className:i.A.actionButtonsWrapperDiv},a().createElement(o.$nd,{kind:"ghost",renderIcon:r,iconDescription:t,onClick:s,className:i.A.actionButon},t)):a().createElement("div",{className:i.A.actionButtonsWrapperDiv})}},1892:(e,n,t)=>{t.d(n,{F5:()=>k,LC:()=>h,Ls:()=>f,Ns:()=>_,S:()=>y,Sh:()=>A,Wm:()=>x,b_:()=>v,jF:()=>b,kH:()=>d,mn:()=>m,rY:()=>g});var r=t(2516),a=t(8855),o=t(231),i=t.n(o);function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function p(e,n,t,r,a,o,i){try{var s=e[o](i),p=s.value}catch(e){return void t(e)}s.done?n(p):Promise.resolve(p).then(r,a)}function l(e){return function(){var n=this,t=arguments;return new Promise((function(r,a){var o=e.apply(n,t);function i(e){p(o,r,a,i,s,"next",e)}function s(e){p(o,r,a,i,s,"throw",e)}i(void 0)}))}}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,n){var t,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],r=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function d(){var e,n,t=(0,a.Ay)("/ws/rest/v1/location?tag=Login+Location",r.openmrsFetch).data;return{locations:t?null===(n=t)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results:[]}}function g(e,n,t,o){var s,p,l,u,d,g="/ws/rest/v1/reportingrest/reportRequest?status=".concat(e,"&startIndex=").concat(n,"&limit=").concat(t,"&totalCount=true")+(o?"&sortBy=".concat(o):""),f=(0,a.Ay)(g,r.openmrsFetch),m=f.data,y=f.error,h=f.isValidating,b=f.mutate,_=null===(l=m)||void 0===l||null===(p=l.data)||void 0===p?void 0:p.results,A=null===(d=m)||void 0===d||null===(u=d.data)||void 0===u?void 0:u.totalCount,$=_?(s=[]).concat.apply(s,c(_.map((function(e){return function(e){return{id:e.uuid,reportName:e.parameterizable.name,status:e.status,requestedBy:e.requestedBy.person.display,requestedByUserUuid:e.requestedBy.uuid,requestedOn:i()(e.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:e.renderingMode.label,parameters:E(e),evaluateCompleteDatetime:e.evaluateCompleteDatetime?i()(e.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:e.schedule}}(e)})))):[];return{reports:$,reportsTotalCount:A,error:y,isValidating:h,mutateReports:b}}function f(e){var n,t="/ws/rest/v1/reportingrest/reportRequest/".concat(e),o=(0,a.Ay)(t,r.openmrsFetch),i=o.data,s=o.error,p=o.isValidating,l=o.mutate;return{reportRequest:null===(n=i)||void 0===n?void 0:n.data,error:s,isValidating:p,mutate:l}}function m(e){var n,t,o,i="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?"?sortBy=".concat(e):""),s=(0,a.Ay)(i,r.openmrsFetch),p=s.data,l=s.error,u=s.isValidating,d=s.mutate,g=null===(o=p)||void 0===o||null===(t=o.data)||void 0===t?void 0:t.results,f=g?(n=[]).concat.apply(n,c(g.map((function(e){return function(e){var n,t,r,a;return{reportDefinitionUuid:e.reportDefinition.uuid,reportRequestUuid:null===(t=e.scheduledRequests)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.uuid,name:e.reportDefinition.display,schedule:null===(a=e.scheduledRequests)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.schedule}}(e)})))):[];return{scheduledReports:f,error:l,isValidating:u,mutateScheduledReports:d}}function y(){var e,n,t=(0,a.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",r.openmrsFetch).data;return{reportDefinitions:t?null===(n=t)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results:[]}}function h(e){var n,t="/ws/rest/v1/reportingrest/reportDefinition/".concat(e,"?v=full");return null===(n=(0,a.Ay)(t,r.openmrsFetch).data)||void 0===n?void 0:n.data}function b(e){var n,t="/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=".concat(e),o=(0,a.Ay)(e?t:null,r.openmrsFetch),i=o.data,s=o.error,p=o.isValidating,l=o.mutate;return{reportDesigns:null===(n=i)||void 0===n?void 0:n.data.results,error:s,isValidating:p,mutateReportDesigns:l}}function _(e){var n=new AbortController;return(0,r.openmrsObservableFetch)("/ws/rest/v1/reportingrest/reportRequest",{signal:n.signal,method:"POST",headers:{"Content-type":"application/json"},body:e})}function A(e){return $.apply(this,arguments)}function $(){return($=l((function(e){var n;return u(this,(function(t){return n="/ws/rest/v1/reportingrest/reportRequest/".concat(e),[2,(0,r.openmrsFetch)(n,{method:"DELETE"})]}))}))).apply(this,arguments)}function v(e){return C.apply(this,arguments)}function C(){return(C=l((function(e){var n;return u(this,(function(t){return n="/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=".concat(e),[2,(0,r.openmrsFetch)(n,{method:"POST"})]}))}))).apply(this,arguments)}function k(e){return w.apply(this,arguments)}function w(){return(w=l((function(e){var n;return u(this,(function(t){switch(t.label){case 0:return n="/ws/rest/v1/reportingrest/downloadReport?reportRequestUuid=".concat(e),[4,(0,r.openmrsFetch)(n)];case 1:return[2,t.sent().data]}}))}))).apply(this,arguments)}function x(e){return z.apply(this,arguments)}function z(){return(z=l((function(e){var n;return u(this,(function(t){switch(t.label){case 0:return n="/ws/rest/v1/reportingrest/downloadMultipleReports?reportRequestUuids=".concat(e),[4,(0,r.openmrsFetch)(n)];case 1:return[2,t.sent().data]}}))}))).apply(this,arguments)}function E(e){var n="",t=e.parameterizable.parameters;return t.length>0&&(t.forEach((function(t){var r=e.parameterMappings[t.name];if("java.util.Date"===t.type)r=i()(r).format("YYYY-MM-DD");else if("org.openmrs.Location"===t.type){var a;r=null===(a=r)||void 0===a?void 0:a.display}n=n+t.label+": "+r+", "})),","===(n=n.trim()).charAt(n.length-1)&&(n=n.slice(0,-1))),n}},9963:(e,n,t)=>{t.d(n,{p1:()=>r,zD:()=>a});var r="".concat(window.spaBase).concat("/reports"),a="System Developer"},8292:(e,n,t)=>{t.d(n,{L9:()=>l,_5:()=>p,e:()=>c});var r=t(1343),a=t(2516);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var i={isOverlayOpen:!1,header:""},s=function(){return(0,a.getGlobalStore)("reports-store",i)},p=function(e,n){s().setState({isOverlayOpen:!0,component:n,header:e})},l=function(){s().setState({component:null,isOverlayOpen:!1})},c=function(){var e,n,t=(e=(0,r.useState)(),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,a,o=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=t[0],i=t[1],p=(0,r.useCallback)((function(e){i(e)}),[]);(0,r.useEffect)((function(){p(s().getState()),s().subscribe(p)}),[p]);var l=null!=a?a:{};return{isOverlayOpen:l.isOverlayOpen,component:l.component,header:l.header}}}}]);
package/dist/156.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"156.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,64EAA84E,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4BAA4B,uEAAuE,0DAA0D,2CAA2C,MAAQ,GAAG,SAAW,uyBAAuyB,eAAiB,CAAC,o7DAAo7D,6OAA6O,05DAA05D,u8uBAAu8uB,soDAAsoD,WAAa,MAEtshCH,EAAwBI,OAAS,CAChC,UAAa,2CACb,QAAW,yCACX,UAAa,2CACb,eAAkB,gDAClB,cAAiB,+CACjB,oBAAuB,qDACvB,cAAiB,+CACjB,cAAiB,+CACjB,YAAe,6CACf,eAAkB,iDAEnB,S,mEChBIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,68CAA88C,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2CAA2C,MAAQ,GAAG,SAAW,qaAAqa,eAAiB,CAAC,6nCAA6nC,WAAa,MAEppGH,EAAwBI,OAAS,CAChC,WAAc,4CACd,WAAc,4CACd,YAAe,6CACf,YAAe,6CACf,YAAe,6CACf,iBAAoB,kDACpB,iBAAoB,kDACpB,aAAgB,8CAChB,YAAe,6CACf,wBAA2B,yDAC3B,qBAAwB,sDACxB,gBAAmB,iDACnB,gBAAmB,iDACnB,uBAA0B,wDAC1B,sBAAyB,u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EAAQA,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAOpD,OACjB,CACAgD,EAAcA,EAAcG,EAAU5F,MAAQ,KAAO6F,EAAQ,IAC/D,IAImD,OAFnDJ,EAAcA,EAAYO,QAEVC,OAAOR,EAAYC,OAAS,KAC1CD,EAAcA,EAAYS,MAAM,GAAI,KAIjCT,CACT,C,4CC/NO,IACMU,EAAc,GAAoBC,OAAjBC,OAAOC,SAAmB,OADhC,YAEXC,EAA6B,kB,sLCO1C,IAAMC,EAA6B,CAAE7H,eAAe,EAAOF,OAAQ,IAE7DgI,EAAkB,WACtB,OAAOC,EAAAA,EAAAA,gBAAe,gBAAiBF,EACzC,EAEaG,EAAgB,SAACC,EAAqBC,GACnCJ,IACRK,SAAS,CAAEnI,eAAe,EAAMD,UAAWmI,EAAmBpI,OAAQmI,GAC9E,EAEatH,EAAe,WACZmH,IACRK,SAAS,CAAEpI,UAAW,KAAMC,eAAe,GACnD,EAEaH,EAAa,WACxB,I,IAA8BuI,G,GAAAA,EAAAA,EAAAA,Y,EAAQA,E,+zBAA/BC,EAAuBD,EAAAA,GAAdE,EAAcF,EAAAA,GAExBG,GAASC,EAAAA,EAAAA,cAAY,SAACC,GAC1BH,EAAWG,EACb,GAAG,KAEHC,EAAAA,EAAAA,YAAU,WACRH,EAAOT,IAAkBa,YACzBb,IAAkBc,UAAUL,EAC9B,GAAG,CAACA,IAEJ,IAA6CF,EAAAA,QAAAA,EAAW,CAAC,EAEzD,MAAO,CACLrI,cAH2CqI,EAArCrI,cAIND,UAJ2CsI,EAAtBtI,UAKrBD,OAL2CuI,EAAXvI,OAOpC,C","sources":["webpack://@openmrs/esm-reports-app/./src/components/overlay.scss","webpack://@openmrs/esm-reports-app/./src/components/reports.scss","webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss","webpack://@openmrs/esm-reports-app/./src/components/reports.scss?6692","webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss?2d0f","webpack://@openmrs/esm-reports-app/./src/components/overlay.scss?4333","webpack://@openmrs/esm-reports-app/./src/components/overlay.component.tsx","webpack://@openmrs/esm-reports-app/./src/components/pagination-constants.ts","webpack://@openmrs/esm-reports-app/./src/components/report-overview-button.component.tsx","webpack://@openmrs/esm-reports-app/./src/components/reports.resource.tsx","webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/hooks/useOverlay.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useOverlay","header","component","isOverlayOpen","layout","useLayoutType","div","className","classNames","styles","desktopOverlay","tabletOverlay","Header","onClick","closeOverlay","aria-label","tabletOverlayHeader","IconButton","ArrowLeft","size","headerContent","desktopHeader","closePanelButton","kind","label","t","Close","DEFAULT_PAGE_SIZE","DEFAULT_PAGE_SIZES","DEFAULT_PAGE_NUMBER","shouldBeDisplayed","icon","actionButtonsWrapperDiv","Button","renderIcon","iconDescription","actionButon","useLocations","data","useSWR","openmrsFetch","locations","results","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","error","isValidating","mutate","reports","totalCount","reportsArray","concat","map","report","uuid","reportName","parameterizable","name","status","requestedBy","person","display","requestedByUserUuid","requestedOn","dayjs","requestDate","format","outputFormat","renderingMode","parameters","convertParametersToString","evaluateCompleteDatetime","schedule","mapReportResults","reportsTotalCount","mutateReports","useReportRequest","reportRequestUuid","reportRequest","useScheduledReports","scheduledReportsUrl","scheduledReports","scheduledReportsArray","reportDefinitionUuid","reportDefinition","scheduledRequests","mapScheduledReportResults","mutateScheduledReports","useReportDefinitions","reportDefinitions","useReportDefinition","apiUrl","useReportDesigns","reportDesigns","mutateReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","signal","method","headers","body","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","finalString","length","forEach","parameter","value","parameterMappings","type","trim","charAt","slice","spaBasePath","basePath","window","spaBase","PRIVILEGE_SYSTEM_DEVELOPER","initialState","getOverlayStore","getGlobalStore","launchOverlay","headerTitle","componentToRender","setState","useState","overlay","setOverlay","update","useCallback","state","useEffect","getState","subscribe"],"sourceRoot":""}
1
+ {"version":3,"file":"156.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,64EAA84E,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4BAA4B,uEAAuE,0DAA0D,2CAA2C,MAAQ,GAAG,SAAW,uyBAAuyB,eAAiB,CAAC,o7DAAo7D,6OAA6O,05DAA05D,u8uBAAu8uB,soDAAsoD,WAAa,MAEtshCH,EAAwBI,OAAS,CAChC,UAAa,2CACb,QAAW,yCACX,UAAa,2CACb,eAAkB,gDAClB,cAAiB,+CACjB,oBAAuB,qDACvB,cAAiB,+CACjB,cAAiB,+CACjB,YAAe,6CACf,eAAkB,iDAEnB,S,mEChBIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,68CAA88C,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,2CAA2C,MAAQ,GAAG,SAAW,qaAAqa,eAAiB,CAAC,6nCAA6nC,WAAa,MAEppGH,EAAwBI,OAAS,CAChC,WAAc,4CACd,WAAc,4CACd,YAAe,6CACf,YAAe,6CACf,YAAe,6CACf,iBAAoB,kDACpB,iBAAoB,kDACpB,aAAgB,8CAChB,YAAe,6CACf,wBAA2B,yDAC3B,qBAAwB,sDACxB,gBAAmB,iDACnB,gBAAmB,iDACnB,uBAA0B,wDAC1B,sBAAyB,uDACzB,WAAc,4CACd,YAAe,6CACf,WAAc,4CACd,oBAAuB,qDACvB,4BAA+B,6DAC/B,uBAA0B,yDAE3B,S,mEC3BIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,y1DAA01D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,6DAA6D,wEAAw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OC,SAAmB,OADhC,YAEXC,EAA6B,kB,sLCO1C,IAAMC,EAA6B,CAAE7H,eAAe,EAAOF,OAAQ,IAE7DgI,EAAkB,WACtB,OAAOC,EAAAA,EAAAA,gBAAe,gBAAiBF,EACzC,EAEaG,EAAgB,SAACC,EAAqBC,GACnCJ,IACRK,SAAS,CAAEnI,eAAe,EAAMD,UAAWmI,EAAmBpI,OAAQmI,GAC9E,EAEapH,EAAe,WACZiH,IACRK,SAAS,CAAEpI,UAAW,KAAMC,eAAe,GACnD,EAEaH,EAAa,WACxB,I,IAA8BuI,G,GAAAA,EAAAA,EAAAA,Y,EAAQA,E,+zBAA/BC,EAAuBD,EAAAA,GAAdE,EAAcF,EAAAA,GAExBG,GAASC,EAAAA,EAAAA,cAAY,SAACC,GAC1BH,EAAWG,EACb,GAAG,KAEHC,EAAAA,EAAAA,YAAU,WACRH,EAAOT,IAAkBa,YACzBb,IAAkBc,UAAUL,EAC9B,GAAG,CAACA,IAEJ,IAA6CF,EAAAA,QAAAA,EAAW,CAAC,EAEzD,MAAO,CACLrI,cAH2CqI,EAArCrI,cAIND,UAJ2CsI,EAAtBtI,UAKrBD,OAL2CuI,EAAXvI,OAOpC,C","sources":["webpack://@openmrs/esm-reports-app/./src/components/overlay.scss","webpack://@openmrs/esm-reports-app/./src/components/reports.scss","webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss","webpack://@openmrs/esm-reports-app/./src/components/reports.scss?6692","webpack://@openmrs/esm-reports-app/./src/components/run-report/run-report-form.scss?2d0f","webpack://@openmrs/esm-reports-app/./src/components/overlay.scss?4333","webpack://@openmrs/esm-reports-app/./src/components/overlay.component.tsx","webpack://@openmrs/esm-reports-app/./src/components/pagination-constants.ts","webpack://@openmrs/esm-reports-app/./src/components/report-overview-button.component.tsx","webpack://@openmrs/esm-reports-app/./src/components/reports.resource.tsx","webpack://@openmrs/esm-reports-app/./src/constants.ts","webpack://@openmrs/esm-reports-app/./src/hooks/useOverlay.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useOverlay","header","component","isOverlayOpen","layout","useLayoutType","div","className","classNames","styles","desktopOverlay","tabletOverlay","Header","aria-label","tabletOverlayHeader","onClick","closeOverlay","IconButton","ArrowLeft","size","headerContent","desktopHeader","closePanelButton","kind","label","getCoreTranslation","Close","DEFAULT_PAGE_SIZE","DEFAULT_PAGE_SIZES","DEFAULT_PAGE_NUMBER","shouldBeDisplayed","icon","actionButtonsWrapperDiv","Button","renderIcon","iconDescription","actionButon","useLocations","data","useSWR","openmrsFetch","locations","results","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","error","isValidating","mutate","reports","totalCount","reportsArray","concat","map","report","uuid","reportName","parameterizable","name","status","requestedBy","person","display","requestedByUserUuid","requestedOn","dayjs","requestDate","format","outputFormat","renderingMode","parameters","convertParametersToString","evaluateCompleteDatetime","schedule","mapReportResults","reportsTotalCount","mutateReports","useReportRequest","reportRequestUuid","reportRequest","useScheduledReports","scheduledReportsUrl","scheduledReports","scheduledReportsArray","reportDefinitionUuid","reportDefinition","scheduledRequests","mapScheduledReportResults","mutateScheduledReports","useReportDefinitions","reportDefinitions","useReportDefinition","apiUrl","useReportDesigns","reportDesigns","mutateReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","signal","method","headers","body","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","finalString","length","forEach","parameter","value","parameterMappings","type","trim","charAt","slice","spaBasePath","basePath","window","spaBase","PRIVILEGE_SYSTEM_DEVELOPER","initialState","getOverlayStore","getGlobalStore","launchOverlay","headerTitle","componentToRender","setState","useState","overlay","setOverlay","update","useCallback","state","useEffect","getState","subscribe"],"sourceRoot":""}
package/dist/216.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[216],{8532:(e,t,r)=>{r.d(t,{MX:()=>n,Nt:()=>s,Oy:()=>u,Wk:()=>i,Yu:()=>p,eJ:()=>o,g6:()=>a,oT:()=>d,qY:()=>c,qZ:()=>l});var n="SAVED",o="COMPLETED",a="PROCESSING",i="FAILED",u="SCHEDULED",l="SCHEDULE_COMPLETED",s="REQUESTED",c=[s,o,n,i,a],d=[s,a],p=[u,l]},1892:(e,t,r)=>{r.d(t,{F5:()=>R,LC:()=>m,Ls:()=>h,Ns:()=>b,S:()=>y,Sh:()=>w,Wm:()=>A,b_:()=>E,jF:()=>g,kH:()=>p,mn:()=>v,rY:()=>f});var n=r(2516),o=r(8855),a=r(231),i=r.n(a);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void r(e)}u.done?t(l):Promise.resolve(l).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){l(a,n,o,i,u,"next",e)}function u(e){l(a,n,o,i,u,"throw",e)}i(void 0)}))}}function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function p(){var e,t,r=(0,o.Ay)("/ws/rest/v1/location?tag=Login+Location",n.openmrsFetch).data;return{locations:r?null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results:[]}}function f(e,t,r,a){var u,l,s,d,p,f="/ws/rest/v1/reportingrest/reportRequest?status=".concat(e,"&startIndex=").concat(t,"&limit=").concat(r,"&totalCount=true")+(a?"&sortBy=".concat(a):""),h=(0,o.Ay)(f,n.openmrsFetch),v=h.data,y=h.error,m=h.isValidating,g=h.mutate,b=null===(s=v)||void 0===s||null===(l=s.data)||void 0===l?void 0:l.results,w=null===(p=v)||void 0===p||null===(d=p.data)||void 0===d?void 0:d.totalCount,D=b?(u=[]).concat.apply(u,c(b.map((function(e){return function(e){return{id:e.uuid,reportName:e.parameterizable.name,status:e.status,requestedBy:e.requestedBy.person.display,requestedByUserUuid:e.requestedBy.uuid,requestedOn:i()(e.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:e.renderingMode.label,parameters:q(e),evaluateCompleteDatetime:e.evaluateCompleteDatetime?i()(e.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:e.schedule}}(e)})))):[];return{reports:D,reportsTotalCount:w,error:y,isValidating:m,mutateReports:g}}function h(e){var t,r="/ws/rest/v1/reportingrest/reportRequest/".concat(e),a=(0,o.Ay)(r,n.openmrsFetch),i=a.data,u=a.error,l=a.isValidating,s=a.mutate;return{reportRequest:null===(t=i)||void 0===t?void 0:t.data,error:u,isValidating:l,mutate:s}}function v(e){var t,r,a,i="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?"?sortBy=".concat(e):""),u=(0,o.Ay)(i,n.openmrsFetch),l=u.data,s=u.error,d=u.isValidating,p=u.mutate,f=null===(a=l)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.results,h=f?(t=[]).concat.apply(t,c(f.map((function(e){return function(e){var t,r,n,o;return{reportDefinitionUuid:e.reportDefinition.uuid,reportRequestUuid:null===(r=e.scheduledRequests)||void 0===r||null===(t=r[0])||void 0===t?void 0:t.uuid,name:e.reportDefinition.display,schedule:null===(o=e.scheduledRequests)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.schedule}}(e)})))):[];return{scheduledReports:h,error:s,isValidating:d,mutateScheduledReports:p}}function y(){var e,t,r=(0,o.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",n.openmrsFetch).data;return{reportDefinitions:r?null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results:[]}}function m(e){var t,r="/ws/rest/v1/reportingrest/reportDefinition/".concat(e,"?v=full");return null===(t=(0,o.Ay)(r,n.openmrsFetch).data)||void 0===t?void 0:t.data}function g(e){var t,r="/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=".concat(e),a=(0,o.Ay)(e?r:null,n.openmrsFetch),i=a.data,u=a.error,l=a.isValidating,s=a.mutate;return{reportDesigns:null===(t=i)||void 0===t?void 0:t.data.results,error:u,isValidating:l,mutateReportDesigns:s}}function b(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 w(e){return D.apply(this,arguments)}function D(){return(D=s((function(e){var t;return d(this,(function(r){return t="/ws/rest/v1/reportingrest/reportRequest/".concat(e),[2,(0,n.openmrsFetch)(t,{method:"DELETE"})]}))}))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=s((function(e){var t;return d(this,(function(r){return t="/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=".concat(e),[2,(0,n.openmrsFetch)(t,{method:"POST"})]}))}))).apply(this,arguments)}function R(e){return k.apply(this,arguments)}function k(){return(k=s((function(e){var t;return d(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]}}))}))).apply(this,arguments)}function A(e){return C.apply(this,arguments)}function C(){return(C=s((function(e){var t;return d(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]}}))}))).apply(this,arguments)}function q(e){var t="",r=e.parameterizable.parameters;return r.length>0&&(r.forEach((function(r){var n=e.parameterMappings[r.name];if("java.util.Date"===r.type)n=i()(n).format("YYYY-MM-DD");else if("org.openmrs.Location"===r.type){var o;n=null===(o=n)||void 0===o?void 0:o.display}t=t+r.label+": "+n+", "})),","===(t=t.trim()).charAt(t.length-1)&&(t=t.slice(0,-1))),t}},2216:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n=r(1343),o=r.n(n),a=r(1202),i=r(3150),u=r(1892),l=r(2516),s=r(8855),c=r(8532);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r,n,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void r(e)}u.done?t(l):Promise.resolve(l).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){p(a,n,o,i,u,"next",e)}function u(e){p(a,n,o,i,u,"throw",e)}i(void 0)}))}}const h=function(e){var t,r,p=e.closeModal,h=e.reportRequestUuid,v=e.modalType,y=(0,i.useTranslation)().t,m=(t=(0,n.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){u=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=m[0],b=m[1],w=(0,n.useCallback)(f((function(){return function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),b(!0),[4,(0,u.Sh)(h)];case 1:return e.sent(),D(v),p(),(0,l.showSnackbar)({kind:"success",title:E(v),subtitle:S(v)}),[3,4];case 2:return e.sent(),(0,l.showSnackbar)({kind:"error",title:E(v),subtitle:R(v)}),[3,4];case 3:return b(!1),[7];case 4:return[2]}}))})),[p]),D=function(e){var t="/ws/rest/v1/reportingrest/reportRequest?status=";"delete"===e?(0,s.Tk)(t+c.qY.join(",")):"cancel"===e?((0,s.Tk)(t+c.qY.join(",")),(0,s.Tk)(t+c.oT.join(","))):"schedule"===e&&(0,s.Tk)(t+c.Yu.join(",")+"&sortBy=name")},E=function(e){return"delete"===e?y("deleteReport","Delete report"):"cancel"===e?y("cancelReport","Cancel report"):"schedule"===e?y("scheduleReport","Schedule report"):void 0},S=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},R=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};return o().createElement("div",null,o().createElement(a.rQ0,{closeModal:p,title:E(v)}),o().createElement(a.cwr,null,o().createElement("p",null,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}(v))),o().createElement(a.jlY,null,o().createElement(a.$nd,{kind:"secondary",onClick:p},y("no","No")),o().createElement(a.$nd,{kind:"danger",onClick:w,disabled:g},g?o().createElement(a.OuH,{description:function(e){return"delete"===e||"schedule"===e?y("deleting","Deleting"):"cancel"===e?y("canceling","Canceling"):void 0}(v)+"..."}):o().createElement("span",null,y("yes","Yes")))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[216],{8532:(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]},1892:(e,t,r)=>{r.d(t,{F5:()=>k,LC:()=>m,Ls:()=>h,Ns:()=>g,S:()=>y,Sh:()=>w,Wm:()=>C,b_:()=>E,jF:()=>b,kH:()=>p,mn:()=>v,rY:()=>f});var n=r(2516),o=r(8855),a=r(231),u=r.n(a);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r,n,o,a,u){try{var l=e[a](u),i=l.value}catch(e){return void r(e)}l.done?t(i):Promise.resolve(i).then(n,o)}function s(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,l,"next",e)}function l(e){i(a,n,o,u,l,"throw",e)}u(void 0)}))}}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){var r,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function p(){var e,t,r=(0,o.Ay)("/ws/rest/v1/location?tag=Login+Location",n.openmrsFetch).data;return{locations:r?null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results:[]}}function f(e,t,r,a){var l,i,s,d,p,f="/ws/rest/v1/reportingrest/reportRequest?status=".concat(e,"&startIndex=").concat(t,"&limit=").concat(r,"&totalCount=true")+(a?"&sortBy=".concat(a):""),h=(0,o.Ay)(f,n.openmrsFetch),v=h.data,y=h.error,m=h.isValidating,b=h.mutate,g=null===(s=v)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.results,w=null===(p=v)||void 0===p||null===(d=p.data)||void 0===d?void 0:d.totalCount,D=g?(l=[]).concat.apply(l,c(g.map((function(e){return function(e){return{id:e.uuid,reportName:e.parameterizable.name,status:e.status,requestedBy:e.requestedBy.person.display,requestedByUserUuid:e.requestedBy.uuid,requestedOn:u()(e.requestDate).format("YYYY-MM-DD HH:mm"),outputFormat:e.renderingMode.label,parameters:q(e),evaluateCompleteDatetime:e.evaluateCompleteDatetime?u()(e.evaluateCompleteDatetime).format("YYYY-MM-DD HH:mm"):void 0,schedule:e.schedule}}(e)})))):[];return{reports:D,reportsTotalCount:w,error:y,isValidating:m,mutateReports:b}}function h(e){var t,r="/ws/rest/v1/reportingrest/reportRequest/".concat(e),a=(0,o.Ay)(r,n.openmrsFetch),u=a.data,l=a.error,i=a.isValidating,s=a.mutate;return{reportRequest:null===(t=u)||void 0===t?void 0:t.data,error:l,isValidating:i,mutate:s}}function v(e){var t,r,a,u="/ws/rest/v1/reportingrest/reportDefinitionsWithScheduledRequests"+(e?"?sortBy=".concat(e):""),l=(0,o.Ay)(u,n.openmrsFetch),i=l.data,s=l.error,d=l.isValidating,p=l.mutate,f=null===(a=i)||void 0===a||null===(r=a.data)||void 0===r?void 0:r.results,h=f?(t=[]).concat.apply(t,c(f.map((function(e){return function(e){var t,r,n,o;return{reportDefinitionUuid:e.reportDefinition.uuid,reportRequestUuid:null===(r=e.scheduledRequests)||void 0===r||null===(t=r[0])||void 0===t?void 0:t.uuid,name:e.reportDefinition.display,schedule:null===(o=e.scheduledRequests)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.schedule}}(e)})))):[];return{scheduledReports:h,error:s,isValidating:d,mutateScheduledReports:p}}function y(){var e,t,r=(0,o.Ay)("/ws/rest/v1/reportingrest/reportDefinition?v=full",n.openmrsFetch).data;return{reportDefinitions:r?null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results:[]}}function m(e){var t,r="/ws/rest/v1/reportingrest/reportDefinition/".concat(e,"?v=full");return null===(t=(0,o.Ay)(r,n.openmrsFetch).data)||void 0===t?void 0:t.data}function b(e){var t,r="/ws/rest/v1/reportingrest/reportDesign?reportDefinitionUuid=".concat(e),a=(0,o.Ay)(e?r:null,n.openmrsFetch),u=a.data,l=a.error,i=a.isValidating,s=a.mutate;return{reportDesigns:null===(t=u)||void 0===t?void 0:t.data.results,error:l,isValidating:i,mutateReportDesigns:s}}function g(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 w(e){return D.apply(this,arguments)}function D(){return(D=s((function(e){var t;return d(this,(function(r){return t="/ws/rest/v1/reportingrest/reportRequest/".concat(e),[2,(0,n.openmrsFetch)(t,{method:"DELETE"})]}))}))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=s((function(e){var t;return d(this,(function(r){return t="/ws/rest/v1/reportingrest/saveReport?reportRequestUuid=".concat(e),[2,(0,n.openmrsFetch)(t,{method:"POST"})]}))}))).apply(this,arguments)}function k(e){return R.apply(this,arguments)}function R(){return(R=s((function(e){var t;return d(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]}}))}))).apply(this,arguments)}function C(e){return A.apply(this,arguments)}function A(){return(A=s((function(e){var t;return d(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]}}))}))).apply(this,arguments)}function q(e){var t="",r=e.parameterizable.parameters;return r.length>0&&(r.forEach((function(r){var n=e.parameterMappings[r.name];if("java.util.Date"===r.type)n=u()(n).format("YYYY-MM-DD");else if("org.openmrs.Location"===r.type){var o;n=null===(o=n)||void 0===o?void 0:o.display}t=t+r.label+": "+n+", "})),","===(t=t.trim()).charAt(t.length-1)&&(t=t.slice(0,-1))),t}},2216:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n=r(1343),o=r.n(n),a=r(3150),u=r(8855),l=r(1202),i=r(2516),s=r(1892),c=r(8532);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new 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){return void r(e)}l.done?t(i):Promise.resolve(i).then(n,o)}function f(e){return 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)}))}}const h=function(e){var t,r,p=e.closeModal,h=e.reportRequestUuid,v=e.modalType,y=(0,a.useTranslation)().t,m=(t=(0,n.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],u=!0,l=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(l)throw o}}return a}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=m[0],g=m[1],w=(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]),D=(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]),E=(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]),S=(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]),k=(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)(f((function(){return function(e,t){var r,n,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),g(!0),[4,(0,s.Sh)(h)];case 1:return e.sent(),C(v),p(),(0,i.showSnackbar)({kind:"success",title:w(v),subtitle:E(v)}),[3,4];case 2:return e.sent(),(0,i.showSnackbar)({kind:"error",title:w(v),subtitle:S(v)}),[3,4];case 3:return g(!1),[7];case 4:return[2]}}))})),[p,S,w,E,v,h]),C=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:p,title:w(v)}),o().createElement(l.cwr,null,o().createElement("p",null,D(v))),o().createElement(l.jlY,null,o().createElement(l.$nd,{kind:"secondary",onClick:p},y("no","No")),o().createElement(l.$nd,{kind:"danger",onClick:R,disabled:b},b?o().createElement(l.OuH,{description:k(v)+"..."}):o().createElement("span",null,y("yes","Yes")))))}}}]);
package/dist/216.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"216.js","mappings":"kPAAO,IAAMA,EAAQ,QACRC,EAAY,YACZC,EAAa,aACbC,EAAS,SACTC,EAAY,YACZC,EAAqB,qBACrBC,EAAY,YAEZC,EAAsB,CAACD,EAAWL,EAAWD,EAAOG,EAAQD,GAC5DM,EAA6B,CAACF,EAAWJ,GACzCO,EAA4B,CAACL,EAAWC,E,kwECmB9C,SAASK,I,IAMMC,EAAAA,EAHd,GAAWC,EAAAA,EAAAA,IAFD,0CAE0DC,EAAAA,cAAlEF,K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AAkB,WAAdA,EACKE,EAAE,4BAA6B,+BACf,WAAdF,EACFE,EAAE,8BAA+B,iCACjB,aAAdF,EACFE,EAAE,oCAAqC,6CADzC,CAGT,EAEMa,EAA8B,SAACf,GACnC,MAAkB,WAAdA,EACKE,EAAE,yBAA0B,gCACZ,WAAdF,EACFE,EAAE,0BAA2B,iCACb,aAAdF,EACFE,EAAE,iCAAkC,8CADtC,CAGT,EAUA,OACE,kBAACgB,MAAAA,KACC,kBAACC,EAAAA,IAAWA,CAACpB,WAAYA,EAAYY,MAAOC,EAAoBZ,KAChE,kBAACoB,EAAAA,IAASA,KACR,kBAACC,IAAAA,KA1CoB,SAACrB,GAC1B,MAAkB,WAAdA,EACKE,EAAE,wBAAyB,gDACX,WAAdF,EACFE,EAAE,wBAAyB,gDACX,aAAdF,EACFE,EAAE,gCAAiC,uDADrC,CAGT,CAkCUoB,CAAmBtB,KAEzB,kBAACuB,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACd,KAAK,YAAYe,QAAS1B,GAC/BG,EAAE,KAAM,OAEX,kBAACsB,EAAAA,IAAMA,CAACd,KAAK,SAASe,QAASnB,EAAcoB,SAAUtB,GACpDA,EACC,kBAACuB,EAAAA,IAAaA,CAACC,YApBO,SAAC5B,GAC/B,MAAkB,WAAdA,GAAwC,aAAdA,EACrBE,EAAE,WAAY,YACE,WAAdF,EACFE,EAAE,YAAa,kBADjB,CAGT,CAcsC2B,CAAwB7B,GAAa,QAEjE,kBAAC8B,OAAAA,KAAM5B,EAAE,MAAO,UAM5B,C","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","useSWR","openmrsFetch","locations","results","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","error","isValidating","mutate","reports","totalCount","reportsArray","concat","map","report","id","uuid","reportName","parameterizable","name","status","requestedBy","person","display","requestedByUserUuid","requestedOn","dayjs","requestDate","format","outputFormat","renderingMode","label","parameters","convertParametersToString","evaluateCompleteDatetime","undefined","schedule","mapReportResults","reportsTotalCount","mutateReports","useReportRequest","reportRequestUuid","reportRequest","useScheduledReports","scheduledReportsUrl","scheduledReports","scheduledReportsArray","reportDefinitionUuid","reportDefinition","scheduledRequests","mapScheduledReportResults","mutateScheduledReports","useReportDefinitions","reportDefinitions","useReportDefinition","apiUrl","useReportDesigns","reportDesigns","mutateReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","signal","method","headers","body","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","finalString","length","forEach","parameter","value","parameterMappings","type","trim","charAt","slice","closeModal","modalType","useTranslation","t","useState","isCanceling","setIsCanceling","handleCancel","useCallback","callMutates","showSnackbar","kind","title","getModalTitleByType","subtitle","getSuccessToastMessageByType","getFailedToastMessageByType","baseUrl","join","div","ModalHeader","ModalBody","p","getModalBodyByType","ModalFooter","Button","onClick","disabled","InlineLoading","description","getLoadingMessageByType","span"],"sourceRoot":""}
1
+ {"version":3,"file":"216.js","mappings":"kPAAO,IAAMA,EAAQ,QACRC,EAAY,YACZC,EAAa,aACbC,EAAS,SACTC,EAAY,YACZC,EAAqB,qBACrBC,EAAY,YAEZC,EAAsB,CAACD,EAAWL,EAAWD,EAAOG,EAAQD,GAC5DM,EAA6B,CAACF,EAAWJ,GACzCO,EAA4B,CAACL,EAAWC,E,kwECmB9C,SAASK,I,IAMMC,EAAAA,EAHd,GAAWC,EAAAA,EAAAA,IAFD,0CAE0DC,EAAAA,cAAlEF,KAER,MAAO,CACLG,UAAWH,EAAOA,QAAAA,EAAAA,SAAAA,IAAAA,GAAU,QAAVA,EAAAA,EAAMA,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AYb,GACZD,KACAe,EAAAA,EAAAA,cAAa,CACXC,KAAM,UACNC,MAAOV,EAAoBN,GAC3BiB,SAAUR,EAA6BT,K,oBAElC9E,EAAAA,QACP4F,EAAAA,EAAAA,cAAa,CACXC,KAAM,QACNC,MAAOV,EAAoBN,GAC3BiB,SAAUP,EAA4BV,K,oBAGxCK,GAAe,G,wBAEnB,IAAG,CACDN,EACAW,EACAJ,EACAG,EACAT,EACA3C,IAGIwD,EAAc,SAACb,GACnB,IAAIkB,EAAU,kDACI,WAAdlB,GACF5E,EAAAA,EAAAA,IAAO8F,EAAU/G,EAAAA,GAAoBgH,KAAK,MACnB,WAAdnB,IACT5E,EAAAA,EAAAA,IAAO8F,EAAU/G,EAAAA,GAAoBgH,KAAK,OAC1C/F,EAAAA,EAAAA,IAAO8F,EAAU9G,EAAAA,GAA2B+G,KAAK,OAC1B,aAAdnB,IACT5E,EAAAA,EAAAA,IAAO8F,EAAU7G,EAAAA,GAA0B8G,KAAK,KAAO,eAE3D,EAEA,OACE,kBAACC,MAAAA,KACC,kBAACC,EAAAA,IAAWA,CAACtB,WAAYA,EAAYiB,MAAOV,EAAoBN,KAChE,kBAACsB,EAAAA,IAASA,KACR,kBAACC,IAAAA,KAAGf,EAAmBR,KAEzB,kBAACwB,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACV,KAAK,YAAYW,QAAS3B,GAC/BG,EAAE,KAAM,OAEX,kBAACuB,EAAAA,IAAMA,CAACV,KAAK,SAASW,QAASd,EAAce,SAAUvB,GACpDA,EACC,kBAACwB,EAAAA,IAAaA,CAACC,YAAalB,EAAwBX,GAAa,QAEjE,kBAAC8B,OAAAA,KAAM5B,EAAE,MAAO,UAM5B,C","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","useSWR","openmrsFetch","locations","results","useReports","statuses","pageNumber","pageSize","sortBy","reportsUrl","error","isValidating","mutate","reports","totalCount","reportsArray","concat","map","report","id","uuid","reportName","parameterizable","name","status","requestedBy","person","display","requestedByUserUuid","requestedOn","dayjs","requestDate","format","outputFormat","renderingMode","label","parameters","convertParametersToString","evaluateCompleteDatetime","undefined","schedule","mapReportResults","reportsTotalCount","mutateReports","useReportRequest","reportRequestUuid","reportRequest","useScheduledReports","scheduledReportsUrl","scheduledReports","scheduledReportsArray","reportDefinitionUuid","reportDefinition","scheduledRequests","mapScheduledReportResults","mutateScheduledReports","useReportDefinitions","reportDefinitions","useReportDefinition","apiUrl","useReportDesigns","reportDesigns","mutateReportDesigns","runReportObservable","payload","abortController","AbortController","openmrsObservableFetch","signal","method","headers","body","cancelReportRequest","preserveReport","downloadReport","downloadMultipleReports","reportRequestUuids","finalString","length","forEach","parameter","value","parameterMappings","type","trim","charAt","slice","closeModal","modalType","useTranslation","t","useState","isCanceling","setIsCanceling","getModalTitleByType","useCallback","getModalBodyByType","getSuccessToastMessageByType","getFailedToastMessageByType","getLoadingMessageByType","handleCancel","callMutates","showSnackbar","kind","title","subtitle","baseUrl","join","div","ModalHeader","ModalBody","p","ModalFooter","Button","onClick","disabled","InlineLoading","description","span"],"sourceRoot":""}
package/dist/300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[300],{4300:e=>{e.exports=JSON.parse('{"actions":"Actions","at":"at","cancel":"Cancel","canceling":"Canceling","cancelReport":"Cancel report","cancelReportModalText":"Are you sure you want to cancel this report?","close":"Close","completed":"Completed","completedAndPreserved":"Completed and Preserved","dateRequired":"Required","dayOfMonthRequired":"Required","dayOfWeekRequired":"Required","delete":"Delete","deleteReport":"Delete report","deleteReportModalText":"Are you sure you want to delete this report?","deleteReportScheduleModalText":"Are you sure you want to delete this schedule?","deleteSchedule":"Delete Schedule","deleting":"Deleting","download":"Download","downloadReport":"Download report(s)","downloadReports":"Download reports","edit":"Edit","editScheduledReport":"Edit Scheduled Report","failed":"Failed","nextPage":"Next page","nextRun":"Next run","no":"No","notATimeText":"hh:mm 24-hr pattern required","notScheduled":"Not Scheduled","on":"on","outputFormat":"Output format","parameters":"Parameters","preserve":"Preserve","preserveReport":"Preserve report","previousPage":"Previous page","queued":"Queued","reportCancelingErrorMsg":"Error during report canceling","reportCancelledSuccessfully":"Report cancelled successfully","reportDeletedSuccessfully":"Report deleted successfully","reportDeletingErrorMsg":"Error during report deleting","reportDownloadedSuccessfully":"Report(s) downloaded successfully","reportDownloadError":"Error during report(s) downloading","reportDownloadingErrorMsg":"Error during report(s) downloading","reportName":"Report Name","reportPreservedSuccessfully":"Report preserved successfully","reportPreservingErrorMsg":"Error during report preserving","reportRanSuccessfullyMsg":"Report ran successfully","reportRunning":"Report running","reportRunningErrorMsg":"Error while running the report","reports":"Reports","reportSchedule":"Report schedule","reportScheduled":"Report scheduled","reportScheduleDeletedSuccessfully":"Report schedule deleted successfully","reportScheduleDeletingErrorMsg":"Error during report schedule deleting","reportScheduledErrorMsg":"Failed to schedule a report","reportScheduledSuccessfullyMsg":"Report scheduled successfully","requestedBy":"Requested by","requestedOn":"Requested on","run":"Run","running":"Running","runReport":"Run report","runReports":"Run reports","save":"Save","schedule":"Schedule","scheduleCompleted":"Schedule Completed","scheduled":"Scheduled","scheduledReports":"Scheduled Reports","scheduleReport":"Schedule report","selectReportLabel":"Report","status":"Status","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[300],{4300:e=>{e.exports=JSON.parse('{"actions":"Actions","at":"at","cancel":"Cancel","cancelling":"Cancelling","cancelReport":"Cancel report","cancelReportModalText":"Are you sure you want to cancel this report?","completed":"Completed","completedAndPreserved":"Completed and preserved","dateRequired":"Required","dayOfMonthRequired":"Required","dayOfWeekRequired":"Required","delete":"Delete","deleteReport":"Delete report","deleteReportModalText":"Are you sure you want to delete this report?","deleteReportScheduleModalText":"Are you sure you want to delete this schedule?","deleteSchedule":"Delete Schedule","deleting":"Deleting","download":"Download","downloadReports":"Download reports","edit":"Edit","editScheduledReport":"Edit scheduled report","errorDownloadingReport":"Error downloading report","errorDownloadingReports":"Error downloading reports","errorRunningReport":"Error running report","failed":"Failed","nextPage":"Next page","nextRun":"Next run","no":"No","notATimeText":"hh:mm 24-hr pattern required","notScheduled":"Not scheduled","on":"on","outputFormat":"Output format","parameters":"Parameters","preserve":"Preserve","preserveReport":"Preserve report","previousPage":"Previous page","queued":"Queued","reportCancelingErrorMsg":"Error during report canceling","reportCancelledSuccessfully":"Report cancelled successfully","reportDeletedSuccessfully":"Report deleted successfully","reportDeletingErrorMsg":"Error during report deleting","reportDownloaded":"Report downloaded","reportDownloadedSuccessfully":"Report downloaded successfully","reportName":"Report name","reportPreservedSuccessfully":"Report preserved successfully","reportPreservingErrorMsg":"Error during report preserving","reportRanSuccessfully":"Report ran successfully","reports":"Reports","reportSchedule":"Report schedule","reportScheduled":"Report scheduled","reportScheduleDeletedSuccessfully":"Report schedule deleted successfully","reportScheduleDeletingErrorMsg":"Error during report schedule deleting","reportScheduledErrorMsg":"Failed to schedule a report","reportScheduledSuccessfullyMsg":"Report scheduled successfully","reportsDownloaded":"Reports downloaded","reportsDownloadedSuccessfully":"Reports downloaded successfully","requestedBy":"Requested by","requestedOn":"Requested on","run":"Run","running":"Running","runReport":"Run report","runReports":"Run reports","schedule":"Schedule","scheduleCompleted":"Schedule completed","scheduled":"Scheduled","scheduledReports":"Scheduled reports","scheduleReport":"Schedule report","selectReportLabel":"Report","status":"Status","yes":"Yes"}')}}]);