@openmrs/esm-patient-programs-app 4.0.1-pre.261 → 4.0.1-pre.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
1
|
+
[32m@openmrs/esm-patient-programs-app:build[0m: cache hit, replaying output [2mf2bb47a6dad9c619[0m
|
|
2
|
+
[32m@openmrs/esm-patient-programs-app:build: [0massets by chunk 919 KiB (id hint: vendors)
|
|
3
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m assets by status [1m[33m842 KiB[39m[22m [1m[33m[big][39m[22m
|
|
4
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[33m734.js[39m[22m [1m[33m435 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[33m858.js[39m[22m [1m[33m407 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m206.js[39m[22m 45.4 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m709.js[39m[22m 19 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
8
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m238.js[39m[22m 8.46 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m461.js[39m[22m 3.83 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
10
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m+ 12 assets
|
|
11
|
+
[32m@openmrs/esm-patient-programs-app:build: [0morphan modules 3.88 MiB [1m[33m[orphan][39m[22m 734 modules
|
|
12
|
+
[32m@openmrs/esm-patient-programs-app:build: [0mruntime modules 40.1 KiB 28 modules
|
|
13
|
+
[32m@openmrs/esm-patient-programs-app:build: [0mbuilt modules 3.08 MiB (javascript) 294 bytes (consume-shared) 252 bytes (share-init) [1m[33m[built][39m[22m
|
|
14
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m../../node_modules/[39m[22m 2.96 MiB 87 modules
|
|
15
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m./[39m[22m 49.2 KiB 11 modules
|
|
16
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m consume-shared-module modules 294 bytes
|
|
17
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 126 bytes 3 modules
|
|
18
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m + 4 modules
|
|
19
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m provide-module modules 252 bytes
|
|
20
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m modules by path [1mprovide shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
21
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m + 4 modules
|
|
22
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m../esm-patient-common-lib/src/[39m[22m 75.2 KiB
|
|
23
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m [1m../esm-patient-common-lib/src/index.ts + 31 modules[39m[22m 64.4 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
24
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m + 5 modules
|
|
25
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m
|
|
27
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
28
|
+
[32m@openmrs/esm-patient-programs-app:build: [0mThis can impact web performance.
|
|
29
|
+
[32m@openmrs/esm-patient-programs-app:build: [0mAssets:
|
|
30
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m 858.js (407 KiB)
|
|
31
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m 734.js (435 KiB)[39m[22m
|
|
32
|
+
[32m@openmrs/esm-patient-programs-app:build: [0m
|
|
33
|
+
[32m@openmrs/esm-patient-programs-app:build: [0mwebpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in 109218 ms
|
package/dist/402.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[402],{7904:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__card-header__desktopHeader___BUQ5I,.-esm-patient-programs__card-header__tabletHeader___efA_M{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-programs__card-header__desktopHeader___BUQ5I h4:after,.-esm-patient-programs__card-header__tabletHeader___efA_M h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__card-header__desktopHeader___BUQ5I{height:3rem}.-esm-patient-programs__card-header__desktopHeader___BUQ5I h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__card-header__tabletHeader___efA_M{height:4.5rem}.-esm-patient-programs__card-header__tabletHeader___efA_M h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}',""]),i.locals={desktopHeader:"-esm-patient-programs__card-header__desktopHeader___BUQ5I",tabletHeader:"-esm-patient-programs__card-header__tabletHeader___efA_M"};const s=i},7942:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.active-left-nav-link .-esm-patient-programs__dashboardextension__link___lom8t:nth-child(1){color:#161616;padding:1.2rem 0 1.2rem 1.2rem}",""]),i.locals={link:"-esm-patient-programs__dashboardextension__link___lom8t"};const s=i},7431:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__empty-state__action___xInzb{margin-bottom:.5rem}.-esm-patient-programs__empty-state__content___lACIK{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-patient-programs__empty-state__desktopHeading___UIGID h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__tabletHeading___lVXqD h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__desktopHeading___UIGID,.-esm-patient-programs__empty-state__tabletHeading___lVXqD{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__empty-state__desktopHeading___UIGID h4:after,.-esm-patient-programs__empty-state__tabletHeading___lVXqD h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__heading___gW4Bc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__tile___DvfL3{text-align:center;border:1px solid #e0e0e0}',""]),i.locals={action:"-esm-patient-programs__empty-state__action___xInzb",content:"-esm-patient-programs__empty-state__content___lACIK",desktopHeading:"-esm-patient-programs__empty-state__desktopHeading___UIGID",tabletHeading:"-esm-patient-programs__empty-state__tabletHeading___lVXqD",heading:"-esm-patient-programs__empty-state__heading___gW4Bc",tile:"-esm-patient-programs__empty-state__tile___DvfL3"};const s=i},418:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__error-state__errorMessage___kDICS{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);margin-top:2.25rem;margin-bottom:.5rem}.-esm-patient-programs__error-state__errorCopy___UX21v{margin-bottom:.5rem;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-programs__error-state__desktopHeading___Bhvtx h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__tabletHeading___EAqy2 h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__desktopHeading___Bhvtx,.-esm-patient-programs__error-state__tabletHeading___EAqy2{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__error-state__desktopHeading___Bhvtx h4:after,.-esm-patient-programs__error-state__tabletHeading___EAqy2 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__error-state__tile___LTdVO{text-align:center;border:1px solid #e0e0e0}',""]),i.locals={errorMessage:"-esm-patient-programs__error-state__errorMessage___kDICS",errorCopy:"-esm-patient-programs__error-state__errorCopy___UX21v",desktopHeading:"-esm-patient-programs__error-state__desktopHeading___Bhvtx",tabletHeading:"-esm-patient-programs__error-state__tabletHeading___EAqy2",tile:"-esm-patient-programs__error-state__tile___LTdVO"};const s=i},8952:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__pagination__bodyShort01____zD39,.-esm-patient-programs__pagination__configurableLink___JhehZ{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-patient-programs__pagination__desktop___TGt17,.-esm-patient-programs__pagination__tablet___BEzP7{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;border-top:1px solid #e0e0e0;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center}.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--btn,.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--btn,.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-programs__pagination__configurableLink___JhehZ{text-decoration:none;padding:0 .5rem}.-esm-patient-programs__pagination__pagination___B09B8{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-patient-programs__pagination__pagination___B09B8>.cds--pagination__left{display:none}",""]),i.locals={bodyShort01:"-esm-patient-programs__pagination__bodyShort01____zD39",configurableLink:"-esm-patient-programs__pagination__configurableLink___JhehZ",desktop:"-esm-patient-programs__pagination__desktop___TGt17",tablet:"-esm-patient-programs__pagination__tablet___BEzP7",pagination:"-esm-patient-programs__pagination__pagination___B09B8"};const s=i},9402:(e,t,r)=>{r.r(t),r.d(t,{CardHeader:()=>w,DashboardExtension:()=>F,DashboardGroupExtension:()=>H,EmptyDataIllustration:()=>E,EmptyState:()=>C,ErrorState:()=>O,PatientChartPagination:()=>J,WorkspaceWindowSizeProvider:()=>He,cancelPrompt:()=>ve,changeWorkspaceContext:()=>we,closeAllWorkspaces:()=>be,closeWorkspace:()=>ye,convertTime12to24:()=>Y,createDashboardGroup:()=>L,createDashboardLink:()=>V,createOfflineVisitForPatient:()=>rt,formEntrySub:()=>ne,getOfflineVisitForPatient:()=>et,getPromptBeforeClosingFcn:()=>he,getWorkspaceStore:()=>ke,launchPatientChartWithWorkspaceOpen:()=>_e,launchPatientWorkspace:()=>me,launchStartVisitPrompt:()=>G,patientRegistrationSyncType:()=>Fe,promptBeforeClosing:()=>ge,registerNavGroup:()=>M,registerWorkspace:()=>ue,resetWorkspaceStore:()=>Ee,useActivePatientEnrollment:()=>je,useAutoCreatedOfflineVisit:()=>Ye,useNavGroups:()=>D,useOfflineVisit:()=>Ke,usePaginationInfo:()=>R,usePatientOrOfflineRegisteredPatient:()=>Ve,useVisitOrOfflineVisit:()=>Je,useVitalsConceptMetadata:()=>te,useWorkspaceWindowSize:()=>Oe,useWorkspaces:()=>Ce,visitSyncType:()=>Xe,withUnit:()=>re});var n=r(268),a=r.n(n),o=r(906),i=r(6062),s=r.n(i),l=r(4036),c=r.n(l),p=r(6793),u=r.n(p),d=r(7892),m=r.n(d),_=r(1173),f=r.n(_),g=r(2464),h=r.n(g),v=r(7904),y={};y.styleTagTransform=h(),y.setAttributes=m(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=f(),s()(v.Z,y);const b=v.Z&&v.Z.locals?v.Z.locals:void 0;function w(e){var t=e.title,r=e.children,n="tablet"===(0,o.useLayoutType)();return a().createElement("div",{className:n?b.tabletHeader:b.desktopHeader},a().createElement("h4",null,t),r)}var S=r(7047),k=r(4924),E=function(e){var t=e.width,r=void 0===t?"64":t,n=e.height,o=void 0===n?"64":n;return a().createElement("svg",{width:r,height:o,viewBox:"0 0 64 64"},a().createElement("title",null,"Empty data illustration"),a().createElement("g",{fill:"none",fillRule:"evenodd"},a().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),a().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),a().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),a().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},A=r(7431),z={};z.styleTagTransform=h(),z.setAttributes=m(),z.insert=u().bind(null,"head"),z.domAPI=c(),z.insertStyleElement=f(),s()(A.Z,z);const x=A.Z&&A.Z.locals?A.Z.locals:void 0;var C=function(e){var t=(0,k.useTranslation)().t,r="tablet"===(0,o.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:x.tile},a().createElement("div",{className:r?x.tabletHeading:x.desktopHeading},a().createElement("h4",null,e.headerTitle)),a().createElement(E,null),a().createElement("p",{className:x.content},a().createElement(k.Trans,{i18nKey:"emptyStateText",values:{displayText:e.displayText.toLowerCase()}},"There are no ",e.displayText.toLowerCase()," to display for this patient")),a().createElement("p",{className:x.action},e.launchForm&&a().createElement("span",null,a().createElement(S.rUS,{onClick:function(){return e.launchForm()}},a().createElement(a().Fragment,null,t("record","Record")," ",e.displayText.toLowerCase()))))))},I=r(418),P={};P.styleTagTransform=h(),P.setAttributes=m(),P.insert=u().bind(null,"head"),P.domAPI=c(),P.insertStyleElement=f(),s()(I.Z,P);const T=I.Z&&I.Z.locals?I.Z.locals:void 0;var O=function(e){var t,r,n=e.error,i=e.headerTitle,s=(0,k.useTranslation)().t,l="tablet"===(0,o.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:T.tile},a().createElement("div",{className:l?T.tabletHeading:T.desktopHeading},a().createElement("h4",null,i)),a().createElement("p",{className:T.errorMessage},s("error","Error")," ","".concat(null==n||null===(t=n.response)||void 0===t?void 0:t.status,": "),null==n||null===(r=n.response)||void 0===r?void 0:r.statusText),a().createElement("p",{className:T.errorCopy},s("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above."))))},H=function(e){var t=e.title,r=e.slotName,i=e.basePath,s=e.isExpanded;return(0,n.useEffect)((function(){M(r)}),[r]),a().createElement(S.UQy,null,a().createElement(S.Qdk,{open:null==s||s,title:t,style:{border:"none"}},a().createElement(o.ExtensionSlot,{extensionSlotName:null!=r?r:t,state:{basePath:i}})))},L=function(e){var t=e.title,r=e.slotName,n=e.isExpanded;return function(e){var o=e.basePath;return a().createElement(H,{title:t,slotName:r,basePath:o,isExpanded:n})}};function W(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}var j=(0,o.createGlobalStore)("nav-groups",{navGroups:[]});function M(e){var t,r=j.getState();j.setState({navGroups:[e].concat((t=r.navGroups,function(e){if(Array.isArray(e))return W(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}var D=(0,o.createUseStore)(j),U=r(2228),Z=r(7942),N={};N.styleTagTransform=h(),N.setAttributes=m(),N.insert=u().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=f(),s()(Z.Z,N);const B=Z.Z&&Z.Z.locals?Z.Z.locals:void 0;var F=function(e){var t,r=e.title,i=e.basePath,s=null!==(t=window.location)&&void 0!==t?t:{pathname:""},l=r===(0,n.useMemo)((function(){return decodeURIComponent((0,U.Z)(s.pathname.split("/")))}),[s.pathname])?"active-left-nav-link":"non-active";return a().createElement("div",{key:r,className:l},a().createElement(o.ConfigurableLink,{to:"".concat(i,"/").concat(encodeURIComponent(r)),className:"cds--side-nav__link "+B.link},r))},V=function(e){return function(t){var r=t.basePath;return a().createElement(F,{title:e.title,basePath:r})}};function G(){var e=(0,o.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}function q(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 R(e,t,r,a){var o=(0,k.useTranslation)().t,i=(0,n.useMemo)((function(){var r,n=Math.ceil(t/e);return(r=Array(n).keys(),function(e){if(Array.isArray(e))return q(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return q(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)?q(e,t):void 0}}(r)||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.")}()).map((function(t){return(t+1)*e}))}),[e,t]),s=(0,n.useMemo)((function(){return e>t?"".concat(t," / ").concat(t):e*r>t?"".concat(e*(r-1)+a," / ").concat(t):"".concat(e*r," / ").concat(t)}),[e,t,r,a]);return{pageSizes:i,itemsDisplayed:"".concat(s," ").concat(o("items"," items"))}}var $=r(8952),Q={};Q.styleTagTransform=h(),Q.setAttributes=m(),Q.insert=u().bind(null,"head"),Q.domAPI=c(),Q.insertStyleElement=f(),s()($.Z,Q);const X=$.Z&&$.Z.locals?$.Z.locals:void 0;var J=function(e){var t=e.totalItems,r=e.pageSize,n=e.onPageNumberChange,i=e.pageNumber,s=e.dashboardLinkUrl,l=e.currentItems,c=e.dashboardLinkLabel,p=(0,k.useTranslation)().t,u=R(r,t,i,l),d=u.itemsDisplayed,m=u.pageSizes,_="tablet"===(0,o.useLayoutType)();return a().createElement(a().Fragment,null,t>0&&a().createElement("div",{className:_?X.tablet:X.desktop},a().createElement("div",null,d,s&&a().createElement(o.ConfigurableLink,{to:s,className:X.configurableLink},null!=c?c:p("seeAll","See all"))),a().createElement(S.tlE,{className:X.pagination,page:i,pageSize:r,pageSizes:m,totalItems:t,onChange:n,size:_?"lg":"sm"})))};function K(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}var Y=function(e,t){var r,n,a=(r=e.split(":"),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(r,n)||function(e,t){if(e){if("string"==typeof e)return K(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)?K(e,t):void 0}}(r,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.")}()),o=a[0],i=a[1];return"12"===o&&"AM"===t&&(o="00"),"PM"===t&&(o="12"===o?o:parseInt(o,10)+12),[o,i]},ee=r(2303);function te(){var e,t,r="/ws/rest/v1/concept/?q=VITALS SIGNS&v=".concat("custom:(setMembers:(uuid,display,hiNormal,hiAbsolute,hiCritical,lowNormal,lowAbsolute,lowCritical,units))"),n=(0,ee.Z)(r,o.openmrsFetch),a=n.data,i=n.error,s=null===(t=null==a||null===(e=a.data)||void 0===e?void 0:e.results[0])||void 0===t?void 0:t.setMembers;return{data:(null==s?void 0:s.length)?new Map(s.map((function(e){return[e.uuid,e.units]}))):new Map([]),isError:i,isLoading:!a&&!i,conceptMetadata:s}}var re=function(e,t){return"".concat(e," ").concat(t?"(".concat(t,")"):"")},ne=new(r(2444).BehaviorSubject)(null),ae=r(6081);function oe(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 ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ie(e,t,r[t])}))}return e}function le(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function ce(e){return function(e){if(Array.isArray(e))return oe(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 oe(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)?oe(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.")}()}var pe={};function ue(e){var t,r;pe[e.name]=le(se({},e),{preferredWindowSize:null!==(t=e.preferredWindowSize)&&void 0!==t?t:"normal",type:null!==(r=e.type)&&void 0!==r?r:"form"})}function de(e){var t,r=null==e||null===(t=e.meta)||void 0===t?void 0:t.title;return"string"==typeof r?r:r&&"object"==typeof r?(0,o.translateFrom)(e.moduleName,r.key,r.default):e.name}function me(e,t){var r=ke(),n=r.getState(),a=function(e){if(pe[e])return pe[e];var t,r,n,a,o=(0,ae.getExtensionRegistration)(e);if(o)return{name:o.name,title:de(o),preferredWindowSize:null!==(n=null===(t=o.meta)||void 0===t?void 0:t.screenSize)&&void 0!==n?n:"normal",load:o.load,type:null!==(a=null===(r=o.meta)||void 0===r?void 0:r.type)&&void 0!==a?a:"form"};throw new Error("No workspace named '".concat(e,"' has been registered."))}(e),i=le(se({},a),{closeWorkspace:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return ye(e,t)},promptBeforeClosing:function(t){return ge(e,t)},additionalProps:t}),s=n.openWorkspaces.filter((function(e){return e.type==i.type}));if(0==s.length)r.setState(le(se({},n),{openWorkspaces:[i].concat(ce(n.openWorkspaces))}));else{var l=n.openWorkspaces.findIndex((function(t){return t.name==e})),c=he(s[0].name);if(l>=0){var p=ce(n.openWorkspaces);p.splice(l,1),n.openWorkspaces[l].additionalProps=i.additionalProps;var u=[n.openWorkspaces[l]].concat(ce(p));r.setState(le(se({},n),{openWorkspaces:u}))}else if(!c||c()){var d,m=null!==(d=s[0].title)&&void 0!==d?d:s[0].name,_={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","activeFormWarning","There is an active form open in the workspace"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","workspaceModalText","Launching a new form in the workspace could cause you to lose unsaved work on the ".concat(m," form."),{formName:m}),onConfirm:function(){var e=r.getState();r.setState({openWorkspaces:[i].concat(ce(e.openWorkspaces.filter((function(e){return e.type!=i.type})))),prompt:null})},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","openAnyway","Open anyway")};r.setState(le(se({},n),{prompt:_}))}else{var f=r.getState();r.setState(le(se({},f),{openWorkspaces:[i].concat(ce(f.openWorkspaces.filter((function(e){return e.type!=i.type}))))}))}}}function _e(e){var t=e.patientUuid,r=e.workspaceName,n=e.dashboardName,a=e.additionalProps;we(t),me(r,a),(0,o.navigate)({to:"${openmrsSpaBase}/patient/"+"".concat(t,"/chart")+(n?"/".concat(n):"")})}var fe={};function ge(e,t){fe[e]=t}function he(e){return fe[e]}function ve(){var e=ke(),t=e.getState();e.setState(le(se({},t),{prompt:null}))}function ye(e,t){var r=ke(),n=he(e);if(!t&&n&&n()){var a={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangesTitleText","Unsaved Changes"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangeText","You have unsaved changes in the side panel. Do you want to discard these changes?"),onConfirm:function(){var t=r.getState();r.setState(le(se({},t),{prompt:null,openWorkspaces:t.openWorkspaces.filter((function(t){return t.name!=e}))}))},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","discard","Discard")};r.setState(le(se({},r.getState()),{prompt:a}))}else{var i=r.getState();r.setState(le(se({},i),{openWorkspaces:i.openWorkspaces.filter((function(t){return t.name!=e}))}))}}function be(){var e=ke(),t=e.getState();e.setState(le(se({},t),{openWorkspaces:[]}))}function we(e){var t=ke();t.getState().patientUuid!=e&&t.setState({patientUuid:e,openWorkspaces:[],prompt:null})}var Se={patientUuid:null,openWorkspaces:[],prompt:null};function ke(){return(0,o.getGlobalStore)("workspace",Se)}function Ee(){ke().setState(Se)}var Ae=r(6217);function ze(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 xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ze(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)?ze(e,t):void 0}}(e,t)||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.")}()}function Ce(){var e=xe((0,n.useState)([]),2),t=e[0],r=e[1],a=xe((0,n.useState)(null),2),o=a[0],i=a[1];(0,n.useEffect)((function(){var e=function(e){r(e.openWorkspaces),i(e.prompt)};e((0,Ae.getWorkspaceStore)().getState()),(0,Ae.getWorkspaceStore)().subscribe(e)}),[]);var s=(0,n.useMemo)((function(){return 0===t.length?"hidden":t[0].preferredWindowSize}),[t]);return{active:t.length>0,windowState:s,workspaces:t,prompt:o}}function Ie(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 Pe(e,t){switch(t){case"minimized":case"reopened":return{size:"normal"};default:return{size:t}}}var Te=(0,n.createContext)({windowSize:{size:"normal"},active:!1}),Oe=function(){return(0,n.useContext)(Te)},He=function(e){var t,r,o=e.children,i=(t=a().useReducer(Pe,{size:"normal"}),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,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ie(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)?Ie(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.")}()),s=i[0],l=i[1],c=Ce(),p=c.workspaces,u=c.windowState,d=c.active;(0,n.useEffect)((function(){p.length>0&&"maximized"===u?l("maximized"):l("reopened")}),[p.length,u]);var m=(0,n.useCallback)((function(e){l(e)}),[]),_=(0,n.useMemo)((function(){return{windowSize:s,updateWindowSize:m,active:d}}),[s,m,d]);return a().createElement(Te.Provider,{value:_},o)},Le=r(9857),We=r(4200),je=function(e){var t,r=(0,Le.ZP)("/ws/rest/v1/programenrollment?patient=".concat(e,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),o.openmrsFetch),a=r.data,i=r.error,s=(0,n.useMemo)((function(){return null!==(t=null==a?void 0:a.data.results.sort((function(e,t){return t.dateEnrolled>e.dateEnrolled?1:-1})).filter((function(e){return null===e.dateCompleted})))&&void 0!==t?t:[]}),[null==a?void 0:a.data.results]);return{activePatientEnrollment:(0,We.Z)(s,(function(e){var t;return null==e||null===(t=e.program)||void 0===t?void 0:t.uuid})),error:i,isLoading:!a&&!i}},Me=r(5047),De=r.n(Me),Ue=r(9571);function Ze(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 Ne(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Be(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ne(o,n,a,i,s,"next",e)}function s(e){Ne(o,n,a,i,s,"throw",e)}i(void 0)}))}}var Fe="patient-registration";function Ve(e){var t,r,a=(0,o.useConnectivity)(),i=(0,o.usePatient)(e),s=(t=(0,n.useState)({data:null,error:null}),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,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ze(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)?Ze(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.")}()),l=s[0],c=s[1];return(0,n.useEffect)((function(){a?c({error:null,data:null}):function(e){return Ge.apply(this,arguments)}(e).then((function(e){c({error:null,data:e})})).catch((function(e){c({error:e,data:null})}))}),[e,a]),(0,n.useMemo)((function(){return i.isLoading||!l.data&&!l.error?{isLoading:!0,patient:null,patientUuid:e,error:null}:i.patient&&!i.patient.issue?{isLoading:!1,patient:i.patient,patientUuid:e,error:null}:l.data?{isLoading:!1,patient:l.data,patientUuid:e,error:null}:{isLoading:!1,patient:null,patientUuid:e,error:null!==(t=i.error)&&void 0!==t?t:l.error};var t}),[i,l.data,l.error,e])}function Ge(){return(Ge=Be(De().mark((function e(t){var r,n;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Fe);case 2:return r=e.sent,n=r.find((function(e){var r;return(null===(r=e.fhirPatient)||void 0===r?void 0:r.id)===t})),e.abrupt("return",n.fhirPatient);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(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 Re(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function $e(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Re(o,n,a,i,s,"next",e)}function s(e){Re(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qe(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)?qe(e,t):void 0}}(e,t)||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.")}()}var Xe="visit";function Je(e){var t=(0,o.useConnectivity)(),r=Qe((0,n.useState)(),2),a=r[0],i=r[1];return(0,n.useEffect)((function(){i((t?o.useVisit:Ke)(e))}),[t,e]),a}function Ke(e){var t=Qe((0,n.useState)({data:null,error:null,isLoading:!0}),2),r=t[0],a=t[1];return(0,n.useEffect)((function(){et(e).then((function(e){a({error:null,data:e?at(e):null,isLoading:!1})})).catch((function(e){a({error:e,data:null,isLoading:!1})}))}),[e]),{currentVisit:r.data,isLoading:r.isLoading,isValidating:!1,error:r.error,mutate:function(){}}}function Ye(e,t){var r,a,i=(0,o.useConnectivity)(),s=null===(r=(0,o.useSession)())||void 0===r||null===(a=r.sessionLocation)||void 0===a?void 0:a.uuid,l=Ke(e),c=l.currentVisit,p=l.isValidating,u=l.error,d=l.mutate;(0,n.useEffect)((function(){i||p||c||u||rt(e,s,t).finally((function(){return d()}))}),[i,c,p,u,d,s,t,e])}function et(e){return tt.apply(this,arguments)}function tt(){return(tt=$e(De().mark((function e(t){var r;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Xe);case 2:return r=e.sent,e.abrupt("return",r.find((function(e){return e.patient===t})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function rt(e,t,r){return nt.apply(this,arguments)}function nt(){return(nt=$e(De().mark((function e(t,r,n){var a,i,s,l;return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Fe);case 2:return a=e.sent,i=a.some((function(e){return e.fhirPatient.id===t})),s={uuid:(0,Ue.Z)(),patient:t,startDatetime:new Date,location:r,visitType:n},l={id:s.uuid,displayName:"Offline visit",patientUuid:t,dependencies:i?[{type:Fe,id:t}]:[]},e.next=8,(0,o.queueSynchronizationItem)(Xe,s,l);case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function at(e){var t,r;return{uuid:e.uuid,startDatetime:null===(t=e.startDatetime)||void 0===t?void 0:t.toString(),stopDatetime:null===(r=e.stopDatetime)||void 0===r?void 0:r.toString(),encounters:[],visitType:{uuid:e.visitType,display:"Offline"},patient:{uuid:e.patient}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[402],{7904:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__card-header__desktopHeader___BUQ5I,.-esm-patient-programs__card-header__tabletHeader___efA_M{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-programs__card-header__desktopHeader___BUQ5I h4:after,.-esm-patient-programs__card-header__tabletHeader___efA_M h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__card-header__desktopHeader___BUQ5I{height:3rem}.-esm-patient-programs__card-header__desktopHeader___BUQ5I h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__card-header__tabletHeader___efA_M{height:4.5rem}.-esm-patient-programs__card-header__tabletHeader___efA_M h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}',""]),i.locals={desktopHeader:"-esm-patient-programs__card-header__desktopHeader___BUQ5I",tabletHeader:"-esm-patient-programs__card-header__tabletHeader___efA_M"};const s=i},7942:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.active-left-nav-link .-esm-patient-programs__dashboardextension__link___lom8t:nth-child(1){color:#161616;padding:1.2rem 0 1.2rem 1.2rem}",""]),i.locals={link:"-esm-patient-programs__dashboardextension__link___lom8t"};const s=i},7431:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__empty-state__action___xInzb{margin-bottom:.5rem}.-esm-patient-programs__empty-state__content___lACIK{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-patient-programs__empty-state__desktopHeading___UIGID h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__tabletHeading___lVXqD h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__empty-state__desktopHeading___UIGID,.-esm-patient-programs__empty-state__tabletHeading___lVXqD{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__empty-state__desktopHeading___UIGID h4:after,.-esm-patient-programs__empty-state__tabletHeading___lVXqD h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__heading___gW4Bc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__empty-state__tile___DvfL3{text-align:center;border:1px solid #e0e0e0}',""]),i.locals={action:"-esm-patient-programs__empty-state__action___xInzb",content:"-esm-patient-programs__empty-state__content___lACIK",desktopHeading:"-esm-patient-programs__empty-state__desktopHeading___UIGID",tabletHeading:"-esm-patient-programs__empty-state__tabletHeading___lVXqD",heading:"-esm-patient-programs__empty-state__heading___gW4Bc",tile:"-esm-patient-programs__empty-state__tile___DvfL3"};const s=i},418:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__error-state__errorMessage___kDICS{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);margin-top:2.25rem;margin-bottom:.5rem}.-esm-patient-programs__error-state__errorCopy___UX21v{margin-bottom:.5rem;font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:#525252}.-esm-patient-programs__error-state__desktopHeading___Bhvtx h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__tabletHeading___EAqy2 h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-patient-programs__error-state__desktopHeading___Bhvtx,.-esm-patient-programs__error-state__tabletHeading___EAqy2{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-programs__error-state__desktopHeading___Bhvtx h4:after,.-esm-patient-programs__error-state__tabletHeading___EAqy2 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-programs__error-state__tile___LTdVO{text-align:center;border:1px solid #e0e0e0}',""]),i.locals={errorMessage:"-esm-patient-programs__error-state__errorMessage___kDICS",errorCopy:"-esm-patient-programs__error-state__errorCopy___UX21v",desktopHeading:"-esm-patient-programs__error-state__desktopHeading___Bhvtx",tabletHeading:"-esm-patient-programs__error-state__tabletHeading___EAqy2",tile:"-esm-patient-programs__error-state__tile___LTdVO"};const s=i},8952:(e,t,r)=>{r.d(t,{Z:()=>s});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-programs__pagination__bodyShort01____zD39,.-esm-patient-programs__pagination__configurableLink___JhehZ{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-patient-programs__pagination__desktop___TGt17,.-esm-patient-programs__pagination__tablet___BEzP7{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;border-top:1px solid #e0e0e0;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center}.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--btn,.-esm-patient-programs__pagination__desktop___TGt17 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--select-input,.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--btn,.-esm-patient-programs__pagination__tablet___BEzP7 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-programs__pagination__configurableLink___JhehZ{text-decoration:none;padding:0 .5rem}.-esm-patient-programs__pagination__pagination___B09B8{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-patient-programs__pagination__pagination___B09B8>.cds--pagination__left{display:none}",""]),i.locals={bodyShort01:"-esm-patient-programs__pagination__bodyShort01____zD39",configurableLink:"-esm-patient-programs__pagination__configurableLink___JhehZ",desktop:"-esm-patient-programs__pagination__desktop___TGt17",tablet:"-esm-patient-programs__pagination__tablet___BEzP7",pagination:"-esm-patient-programs__pagination__pagination___B09B8"};const s=i},9402:(e,t,r)=>{r.r(t),r.d(t,{CardHeader:()=>w,DashboardExtension:()=>F,DashboardGroupExtension:()=>j,EmptyDataIllustration:()=>E,EmptyState:()=>P,ErrorState:()=>T,PatientChartPagination:()=>J,WorkspaceWindowSizeProvider:()=>je,cancelPrompt:()=>ve,changeWorkspaceContext:()=>we,closeAllWorkspaces:()=>be,closeWorkspace:()=>ye,convertTime12to24:()=>Y,createDashboardGroup:()=>H,createDashboardLink:()=>V,createOfflineVisitForPatient:()=>nt,formEntrySub:()=>ne,getOfflineVisitForPatient:()=>tt,getPromptBeforeClosingFcn:()=>he,getWorkspaceStore:()=>ke,launchPatientChartWithWorkspaceOpen:()=>fe,launchPatientWorkspace:()=>me,launchStartVisitPrompt:()=>G,patientRegistrationSyncType:()=>Ve,promptBeforeClosing:()=>ge,registerNavGroup:()=>L,registerWorkspace:()=>ue,resetWorkspaceStore:()=>Ee,useActivePatientEnrollment:()=>De,useAutoCreatedOfflineVisit:()=>et,useNavGroups:()=>M,useOfflineVisit:()=>Ye,usePaginationInfo:()=>R,usePatientOrOfflineRegisteredPatient:()=>Ge,useVisitOrOfflineVisit:()=>Ke,useVitalsConceptMetadata:()=>te,useWorkspaceWindowSize:()=>Te,useWorkspaces:()=>Pe,visitSyncType:()=>Je,withUnit:()=>re});var n=r(268),a=r.n(n),o=r(906),i=r(6062),s=r.n(i),l=r(4036),c=r.n(l),p=r(6793),u=r.n(p),d=r(7892),m=r.n(d),f=r(1173),_=r.n(f),g=r(2464),h=r.n(g),v=r(7904),y={};y.styleTagTransform=h(),y.setAttributes=m(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=_(),s()(v.Z,y);const b=v.Z&&v.Z.locals?v.Z.locals:void 0;function w(e){var t=e.title,r=e.children,n="tablet"===(0,o.useLayoutType)();return a().createElement("div",{className:n?b.tabletHeader:b.desktopHeader},a().createElement("h4",null,t),r)}var S=r(7047),k=r(4924),E=function(e){var t=e.width,r=void 0===t?"64":t,n=e.height,o=void 0===n?"64":n;return a().createElement("svg",{width:r,height:o,viewBox:"0 0 64 64"},a().createElement("title",null,"Empty data illustration"),a().createElement("g",{fill:"none",fillRule:"evenodd"},a().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),a().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),a().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),a().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},A=r(7431),O={};O.styleTagTransform=h(),O.setAttributes=m(),O.insert=u().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=_(),s()(A.Z,O);const z=A.Z&&A.Z.locals?A.Z.locals:void 0;var P=function(e){var t=(0,k.useTranslation)().t,r="tablet"===(0,o.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:z.tile},a().createElement("div",{className:r?z.tabletHeading:z.desktopHeading},a().createElement("h4",null,e.headerTitle)),a().createElement(E,null),a().createElement("p",{className:z.content},a().createElement(k.Trans,{i18nKey:"emptyStateText",values:{displayText:e.displayText.toLowerCase()}},"There are no ",e.displayText.toLowerCase()," to display for this patient")),a().createElement("p",{className:z.action},e.launchForm&&a().createElement("span",null,a().createElement(S.rUS,{onClick:function(){return e.launchForm()}},a().createElement(a().Fragment,null,t("record","Record")," ",e.displayText.toLowerCase()))))))},x=r(418),C={};C.styleTagTransform=h(),C.setAttributes=m(),C.insert=u().bind(null,"head"),C.domAPI=c(),C.insertStyleElement=_(),s()(x.Z,C);const I=x.Z&&x.Z.locals?x.Z.locals:void 0;var T=function(e){var t,r,n=e.error,i=e.headerTitle,s=(0,k.useTranslation)().t,l="tablet"===(0,o.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:I.tile},a().createElement("div",{className:l?I.tabletHeading:I.desktopHeading},a().createElement("h4",null,i)),a().createElement("p",{className:I.errorMessage},s("error","Error")," ","".concat(null==n||null===(t=n.response)||void 0===t?void 0:t.status,": "),null==n||null===(r=n.response)||void 0===r?void 0:r.statusText),a().createElement("p",{className:I.errorCopy},s("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above."))))},j=function(e){var t=e.title,r=e.slotName,i=e.basePath,s=e.isExpanded;return(0,n.useEffect)((function(){L(r)}),[r]),a().createElement(S.UQy,null,a().createElement(S.Qdk,{open:null==s||s,title:t,style:{border:"none"}},a().createElement(o.ExtensionSlot,{extensionSlotName:null!=r?r:t,state:{basePath:i}})))},H=function(e){var t=e.title,r=e.slotName,n=e.isExpanded;return function(e){var o=e.basePath;return a().createElement(j,{title:t,slotName:r,basePath:o,isExpanded:n})}};function W(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}var D=(0,o.createGlobalStore)("nav-groups",{navGroups:[]});function L(e){var t,r=D.getState();D.setState({navGroups:[e].concat((t=r.navGroups,function(e){if(Array.isArray(e))return W(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return W(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)?W(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}var M=(0,o.createUseStore)(D),N=r(2228),U=r(7942),Z={};Z.styleTagTransform=h(),Z.setAttributes=m(),Z.insert=u().bind(null,"head"),Z.domAPI=c(),Z.insertStyleElement=_(),s()(U.Z,Z);const B=U.Z&&U.Z.locals?U.Z.locals:void 0;var F=function(e){var t,r=e.title,i=e.basePath,s=null!==(t=window.location)&&void 0!==t?t:{pathname:""},l=r===(0,n.useMemo)((function(){return decodeURIComponent((0,N.Z)(s.pathname.split("/")))}),[s.pathname])?"active-left-nav-link":"non-active";return a().createElement("div",{key:r,className:l},a().createElement(o.ConfigurableLink,{to:"".concat(i,"/").concat(encodeURIComponent(r)),className:"cds--side-nav__link "+B.link},r))},V=function(e){return function(t){var r=t.basePath;return a().createElement(F,{title:e.title,basePath:r})}};function G(){var e=(0,o.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}function q(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 R(e,t,r,a){var o=(0,k.useTranslation)().t,i=(0,n.useMemo)((function(){var r,n=Math.ceil(t/e);return(r=Array(n).keys(),function(e){if(Array.isArray(e))return q(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return q(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)?q(e,t):void 0}}(r)||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.")}()).map((function(t){return(t+1)*e}))}),[e,t]),s=(0,n.useMemo)((function(){return e>t?"".concat(t," / ").concat(t):e*r>t?"".concat(e*(r-1)+a," / ").concat(t):"".concat(e*r," / ").concat(t)}),[e,t,r,a]);return{pageSizes:i,itemsDisplayed:"".concat(s," ").concat(o("items"," items"))}}var $=r(8952),Q={};Q.styleTagTransform=h(),Q.setAttributes=m(),Q.insert=u().bind(null,"head"),Q.domAPI=c(),Q.insertStyleElement=_(),s()($.Z,Q);const X=$.Z&&$.Z.locals?$.Z.locals:void 0;var J=function(e){var t=e.totalItems,r=e.pageSize,n=e.onPageNumberChange,i=e.pageNumber,s=e.dashboardLinkUrl,l=e.currentItems,c=e.dashboardLinkLabel,p=(0,k.useTranslation)().t,u=R(r,t,i,l),d=u.itemsDisplayed,m=u.pageSizes,f="tablet"===(0,o.useLayoutType)();return a().createElement(a().Fragment,null,t>0&&a().createElement("div",{className:f?X.tablet:X.desktop},a().createElement("div",null,d,s&&a().createElement(o.ConfigurableLink,{to:s,className:X.configurableLink},null!=c?c:p("seeAll","See all"))),a().createElement(S.tlE,{className:X.pagination,page:i,pageSize:r,pageSizes:m,totalItems:t,onChange:n,size:f?"lg":"sm"})))};function K(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}var Y=function(e,t){var r,n,a=(r=e.split(":"),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(r,n)||function(e,t){if(e){if("string"==typeof e)return K(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)?K(e,t):void 0}}(r,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.")}()),o=a[0],i=a[1];return"12"===o&&"AM"===t&&(o="00"),"PM"===t&&(o="12"===o?o:parseInt(o,10)+12),[o,i]},ee=r(2303);function te(){var e,t,r="/ws/rest/v1/concept/?q=VITALS SIGNS&v=".concat("custom:(setMembers:(uuid,display,hiNormal,hiAbsolute,hiCritical,lowNormal,lowAbsolute,lowCritical,units))"),n=(0,ee.Z)(r,o.openmrsFetch),a=n.data,i=n.error,s=null===(t=null==a||null===(e=a.data)||void 0===e?void 0:e.results[0])||void 0===t?void 0:t.setMembers;return{data:(null==s?void 0:s.length)?new Map(s.map((function(e){return[e.uuid,e.units]}))):new Map([]),isError:i,isLoading:!a&&!i,conceptMetadata:s}}var re=function(e,t){return"".concat(e," ").concat(t?"(".concat(t,")"):"")},ne=new(r(2444).BehaviorSubject)(null),ae=r(6081);function oe(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 ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ie(e,t,r[t])}))}return e}function le(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function ce(e){return function(e){if(Array.isArray(e))return oe(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 oe(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)?oe(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.")}()}var pe={};function ue(e){var t,r;pe[e.name]=le(se({},e),{preferredWindowSize:null!==(t=e.preferredWindowSize)&&void 0!==t?t:"normal",type:null!==(r=e.type)&&void 0!==r?r:"form"})}function de(e){var t,r=null==e||null===(t=e.meta)||void 0===t?void 0:t.title;return"string"==typeof r?r:r&&"object"==typeof r?(0,o.translateFrom)(e.moduleName,r.key,r.default):e.name}function me(e,t){var r=ke(),n=r.getState(),a=function(e){if(pe[e])return pe[e];var t,r,n,a,o=(0,ae.getExtensionRegistration)(e);if(o)return{name:o.name,title:de(o),preferredWindowSize:null!==(n=null===(t=o.meta)||void 0===t?void 0:t.screenSize)&&void 0!==n?n:"normal",load:o.load,type:null!==(a=null===(r=o.meta)||void 0===r?void 0:r.type)&&void 0!==a?a:"form"};throw new Error("No workspace named '".concat(e,"' has been registered."))}(e),i=le(se({},a),{closeWorkspace:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return ye(e,t)},promptBeforeClosing:function(t){return ge(e,t)},additionalProps:t}),s=n.openWorkspaces.filter((function(e){return e.type==i.type}));if(0==s.length)r.setState(le(se({},n),{openWorkspaces:[i].concat(ce(n.openWorkspaces))}));else{var l=n.openWorkspaces.findIndex((function(t){return t.name==e})),c=he(s[0].name);if(l>=0){var p=ce(n.openWorkspaces);p.splice(l,1),n.openWorkspaces[l].additionalProps=i.additionalProps;var u=[n.openWorkspaces[l]].concat(ce(p));r.setState(le(se({},n),{openWorkspaces:u}))}else if(!c||c()){var d,m=null!==(d=s[0].title)&&void 0!==d?d:s[0].name,f={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","activeFormWarning","There is an active form open in the workspace"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","workspaceModalText","Launching a new form in the workspace could cause you to lose unsaved work on the ".concat(m," form."),{formName:m}),onConfirm:function(){var e=r.getState();r.setState({openWorkspaces:[i].concat(ce(e.openWorkspaces.filter((function(e){return e.type!=i.type})))),prompt:null})},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","openAnyway","Open anyway")};r.setState(le(se({},n),{prompt:f}))}else{var _=r.getState();r.setState(le(se({},_),{openWorkspaces:[i].concat(ce(_.openWorkspaces.filter((function(e){return e.type!=i.type}))))}))}}}function fe(e){var t=e.patientUuid,r=e.workspaceName,n=e.dashboardName,a=e.additionalProps;we(t),me(r,a),(0,o.navigate)({to:"${openmrsSpaBase}/patient/"+"".concat(t,"/chart")+(n?"/".concat(n):"")})}var _e={};function ge(e,t){_e[e]=t}function he(e){return _e[e]}function ve(){var e=ke(),t=e.getState();e.setState(le(se({},t),{prompt:null}))}function ye(e,t){var r=ke(),n=he(e);if(!t&&n&&n()){var a={title:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangesTitleText","Unsaved Changes"),body:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangeText","You have unsaved changes in the side panel. Do you want to discard these changes?"),onConfirm:function(){var t=r.getState();r.setState(le(se({},t),{prompt:null,openWorkspaces:t.openWorkspaces.filter((function(t){return t.name!=e}))}))},confirmText:(0,o.translateFrom)("@openmrs/esm-patient-chart-app","discard","Discard")};r.setState(le(se({},r.getState()),{prompt:a}))}else{var i=r.getState();r.setState(le(se({},i),{openWorkspaces:i.openWorkspaces.filter((function(t){return t.name!=e}))}))}}function be(){var e=ke(),t=e.getState();e.setState(le(se({},t),{openWorkspaces:[]}))}function we(e){var t=ke();t.getState().patientUuid!=e&&t.setState({patientUuid:e,openWorkspaces:[],prompt:null})}var Se={patientUuid:null,openWorkspaces:[],prompt:null};function ke(){return(0,o.getGlobalStore)("workspace",Se)}function Ee(){ke().setState(Se)}var Ae=r(6217);function Oe(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 ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oe(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)?Oe(e,t):void 0}}(e,t)||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.")}()}function Pe(){var e=ze((0,n.useState)([]),2),t=e[0],r=e[1],a=ze((0,n.useState)(null),2),o=a[0],i=a[1];(0,n.useEffect)((function(){var e=function(e){r(e.openWorkspaces),i(e.prompt)};e((0,Ae.getWorkspaceStore)().getState()),(0,Ae.getWorkspaceStore)().subscribe(e)}),[]);var s=(0,n.useMemo)((function(){return 0===t.length?"hidden":t[0].preferredWindowSize}),[t]);return{active:t.length>0,windowState:s,workspaces:t,prompt:o}}function xe(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 Ce(e,t){switch(t){case"minimized":case"reopened":return{size:"normal"};default:return{size:t}}}var Ie=(0,n.createContext)({windowSize:{size:"normal"},active:!1}),Te=function(){return(0,n.useContext)(Ie)},je=function(e){var t,r,o=e.children,i=(t=a().useReducer(Ce,{size:"normal"}),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,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return xe(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)?xe(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.")}()),s=i[0],l=i[1],c=Pe(),p=c.workspaces,u=c.windowState,d=c.active;(0,n.useEffect)((function(){p.length>0&&"maximized"===u?l("maximized"):l("reopened")}),[p.length,u]);var m=(0,n.useCallback)((function(e){l(e)}),[]),f=(0,n.useMemo)((function(){return{windowSize:s,updateWindowSize:m,active:d}}),[s,m,d]);return a().createElement(Ie.Provider,{value:f},o)},He=r(9857),We=r(4200),De=function(e){var t,r=(0,He.ZP)("/ws/rest/v1/programenrollment?patient=".concat(e,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),o.openmrsFetch),a=r.data,i=r.error,s=(0,n.useMemo)((function(){return null!==(t=null==a?void 0:a.data.results.sort((function(e,t){return t.dateEnrolled>e.dateEnrolled?1:-1})).filter((function(e){return null===e.dateCompleted})))&&void 0!==t?t:[]}),[null==a?void 0:a.data.results]);return{activePatientEnrollment:(0,We.Z)(s,(function(e){var t;return null==e||null===(t=e.program)||void 0===t?void 0:t.uuid})),error:i,isLoading:!a&&!i}},Le=r(5047),Me=r.n(Le),Ne=r(9571);function Ue(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 Ze(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Be(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){Ze(o,n,a,i,s,"next",e)}function s(e){Ze(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ve="patient-registration";function Ge(e){var t,r,a=(0,o.useConnectivity)(),i=(0,o.usePatient)(e),s=(t=(0,n.useState)({patient:void 0,error:void 0}),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,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ue(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)?Ue(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.")}()),l=s[0],c=s[1];return(0,n.useEffect)((function(){a?c({error:void 0,patient:void 0}):function(e){return qe.apply(this,arguments)}(e).then((function(e){c({error:void 0,patient:e})})).catch((function(e){var t,r;t=e,(null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?c({error:e,patient:void 0}):c({error:new Error(JSON.stringify(e)),patient:void 0})}))}),[e,a]),(0,n.useMemo)((function(){if(a){if(i.patient&&i.patient.hasOwnProperty("issue")){var e=i.patient;return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Fe(e,t,r[t])}))}return e}({},i),r=null!=(r={patient:void 0,error:new Error(JSON.stringify(e.issue))})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t}return i}var t,r,n;return{isLoading:!(l.patient||l.error),patient:l.patient,patientUuid:null===(n=l.patient)||void 0===n?void 0:n.id,error:l.error}}),[a,i,l.patient,l.error])}function qe(){return(qe=Be(Me().mark((function e(t){var r,n;return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Ve);case 2:return r=e.sent,n=r.find((function(e){var r;return(null===(r=e.fhirPatient)||void 0===r?void 0:r.id)===t})),e.abrupt("return",n.fhirPatient);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(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 $e(e,t,r,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function Qe(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){$e(o,n,a,i,s,"next",e)}function s(e){$e(o,n,a,i,s,"throw",e)}i(void 0)}))}}function Xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Re(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)?Re(e,t):void 0}}(e,t)||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.")}()}var Je="visit";function Ke(e){var t=(0,o.useConnectivity)(),r=Xe((0,n.useState)(),2),a=r[0],i=r[1];return(0,n.useEffect)((function(){i((t?o.useVisit:Ye)(e))}),[t,e]),a}function Ye(e){var t=Xe((0,n.useState)({data:null,error:null,isLoading:!0}),2),r=t[0],a=t[1];return(0,n.useEffect)((function(){tt(e).then((function(e){a({error:null,data:e?ot(e):null,isLoading:!1})})).catch((function(e){a({error:e,data:null,isLoading:!1})}))}),[e]),{currentVisit:r.data,isLoading:r.isLoading,isValidating:!1,error:r.error,mutate:function(){}}}function et(e,t){var r,a,i=(0,o.useConnectivity)(),s=null===(r=(0,o.useSession)())||void 0===r||null===(a=r.sessionLocation)||void 0===a?void 0:a.uuid,l=Ye(e),c=l.currentVisit,p=l.isValidating,u=l.error,d=l.mutate;(0,n.useEffect)((function(){i||p||c||u||nt(e,s,t).finally((function(){return d()}))}),[i,c,p,u,d,s,t,e])}function tt(e){return rt.apply(this,arguments)}function rt(){return(rt=Qe(Me().mark((function e(t){var r;return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Je);case 2:return r=e.sent,e.abrupt("return",r.find((function(e){return e.patient===t})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(e,t,r){return at.apply(this,arguments)}function at(){return(at=Qe(Me().mark((function e(t,r,n){var a,i,s,l;return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getSynchronizationItems)(Ve);case 2:return a=e.sent,i=a.some((function(e){return e.fhirPatient.id===t})),s={uuid:(0,Ne.Z)(),patient:t,startDatetime:new Date,location:r,visitType:n},l={id:s.uuid,displayName:"Offline visit",patientUuid:t,dependencies:i?[{type:Ve,id:t}]:[]},e.next=8,(0,o.queueSynchronizationItem)(Je,s,l);case 8:return e.abrupt("return",s);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ot(e){var t,r;return{uuid:e.uuid,startDatetime:null===(t=e.startDatetime)||void 0===t?void 0:t.toString(),stopDatetime:null===(r=e.stopDatetime)||void 0===r?void 0:r.toString(),encounters:[],visitType:{uuid:e.visitType,display:"Offline"},patient:{uuid:e.patient}}}}}]);
|
|
@@ -128,9 +128,9 @@
|
|
|
128
128
|
"entry": false,
|
|
129
129
|
"recorded": false,
|
|
130
130
|
"reason": "reused as split chunk (cache group: default)",
|
|
131
|
-
"size":
|
|
131
|
+
"size": 77072,
|
|
132
132
|
"sizes": {
|
|
133
|
-
"javascript":
|
|
133
|
+
"javascript": 76988,
|
|
134
134
|
"consume-shared": 84
|
|
135
135
|
},
|
|
136
136
|
"names": [],
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"402.js"
|
|
144
144
|
],
|
|
145
145
|
"auxiliaryFiles": [],
|
|
146
|
-
"hash": "
|
|
146
|
+
"hash": "29cbdca9bcac4b2e4c34",
|
|
147
147
|
"childrenByOrder": {}
|
|
148
148
|
},
|
|
149
149
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-programs-app",
|
|
3
|
-
"version": "4.0.1-pre.
|
|
3
|
+
"version": "4.0.1-pre.265",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient programs microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-programs-app.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@carbon/react": "^1.9.0",
|
|
38
|
-
"@openmrs/esm-patient-common-lib": "^4.0.1-pre.
|
|
38
|
+
"@openmrs/esm-patient-common-lib": "^4.0.1-pre.265",
|
|
39
39
|
"d3": "^7.0.3",
|
|
40
40
|
"lodash-es": "^4.17.15"
|
|
41
41
|
},
|
|
@@ -48,5 +48,8 @@
|
|
|
48
48
|
"react-router-dom": "6.x",
|
|
49
49
|
"rxjs": "6.x"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"webpack": "^5.74.0"
|
|
53
|
+
},
|
|
54
|
+
"gitHead": "f384205b2db697d23c6d4cc108ba05a6512fa83b"
|
|
52
55
|
}
|