@openmrs/esm-patient-immunizations-app 4.0.1-pre.474 → 4.0.1-pre.477

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.
@@ -1,32 +1,33 @@
1
- @openmrs/esm-patient-immunizations-app:build: cache hit, replaying output ffc6c861104bf7f5
2
- @openmrs/esm-patient-immunizations-app:build: assets by chunk 922 KiB (id hint: vendors)
3
- @openmrs/esm-patient-immunizations-app:build:  assets by status 853 KiB [big]
4
- @openmrs/esm-patient-immunizations-app:build:  asset 724.js 446 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
- @openmrs/esm-patient-immunizations-app:build:  asset 858.js 407 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
6
- @openmrs/esm-patient-immunizations-app:build:  asset 206.js 45.4 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
- @openmrs/esm-patient-immunizations-app:build:  asset 709.js 19 KiB [emitted] [minimized] (id hint: vendors)
8
- @openmrs/esm-patient-immunizations-app:build:  asset 245.js 4.15 KiB [emitted] [minimized] (id hint: vendors)
9
- @openmrs/esm-patient-immunizations-app:build: + 11 assets
10
- @openmrs/esm-patient-immunizations-app:build: orphan modules 3.99 MiB [orphan] 652 modules
11
- @openmrs/esm-patient-immunizations-app:build: runtime modules 39.6 KiB 28 modules
12
- @openmrs/esm-patient-immunizations-app:build: built modules 2.82 MiB (javascript) 252 bytes (consume-shared) 210 bytes (share-init) [built]
13
- @openmrs/esm-patient-immunizations-app:build:  modules by path ../../node_modules/ 2.68 MiB 93 modules
14
- @openmrs/esm-patient-immunizations-app:build:  modules by path ./ 64.4 KiB 13 modules
15
- @openmrs/esm-patient-immunizations-app:build:  modules by path ../esm-patient-common-lib/src/ 87.1 KiB
16
- @openmrs/esm-patient-immunizations-app:build:  ../esm-patient-common-lib/src/index.ts + 44 modules 76 KiB [built] [code generated]
17
- @openmrs/esm-patient-immunizations-app:build:  + 5 modules
18
- @openmrs/esm-patient-immunizations-app:build:  consume-shared-module modules 252 bytes
19
- @openmrs/esm-patient-immunizations-app:build:  modules by path consume shared module (default) @openmrs/ 126 bytes 3 modules
20
- @openmrs/esm-patient-immunizations-app:build:  + 3 modules
21
- @openmrs/esm-patient-immunizations-app:build:  provide-module modules 210 bytes
22
- @openmrs/esm-patient-immunizations-app:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
23
- @openmrs/esm-patient-immunizations-app:build:  + 3 modules
24
- @openmrs/esm-patient-immunizations-app:build:  container entry 42 bytes [built] [code generated]
25
- @openmrs/esm-patient-immunizations-app:build: 
26
- @openmrs/esm-patient-immunizations-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
27
- @openmrs/esm-patient-immunizations-app:build: This can impact web performance.
28
- @openmrs/esm-patient-immunizations-app:build: Assets:
29
- @openmrs/esm-patient-immunizations-app:build:  858.js (407 KiB)
30
- @openmrs/esm-patient-immunizations-app:build:  724.js (446 KiB)
31
- @openmrs/esm-patient-immunizations-app:build: 
32
- @openmrs/esm-patient-immunizations-app:build: webpack 5.74.0 compiled with 1 warning in 107710 ms
1
+ @openmrs/esm-patient-immunizations-app:build: cache hit, replaying output dc61acbc0b952cc3
2
+ @openmrs/esm-patient-immunizations-app:build: assets by chunk 939 KiB (id hint: vendors)
3
+ @openmrs/esm-patient-immunizations-app:build:  assets by status 853 KiB [big]
4
+ @openmrs/esm-patient-immunizations-app:build:  asset 724.js 446 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-patient-immunizations-app:build:  asset 858.js 407 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-patient-immunizations-app:build:  asset 206.js 45.4 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
+ @openmrs/esm-patient-immunizations-app:build:  asset 709.js 19 KiB [emitted] [minimized] (id hint: vendors)
8
+ @openmrs/esm-patient-immunizations-app:build:  asset 97.js 16.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
+ @openmrs/esm-patient-immunizations-app:build:  asset 245.js 4.15 KiB [emitted] [minimized] (id hint: vendors)
10
+ @openmrs/esm-patient-immunizations-app:build: + 11 assets
11
+ @openmrs/esm-patient-immunizations-app:build: orphan modules 4.05 MiB [orphan] 654 modules
12
+ @openmrs/esm-patient-immunizations-app:build: runtime modules 40.3 KiB 28 modules
13
+ @openmrs/esm-patient-immunizations-app:build: built modules 2.89 MiB (javascript) 294 bytes (consume-shared) 252 bytes (share-init) [built]
14
+ @openmrs/esm-patient-immunizations-app:build:  modules by path ../../node_modules/ 2.74 MiB 94 modules
15
+ @openmrs/esm-patient-immunizations-app:build:  modules by path ./ 64.4 KiB 13 modules
16
+ @openmrs/esm-patient-immunizations-app:build:  consume-shared-module modules 294 bytes
17
+ @openmrs/esm-patient-immunizations-app:build:  modules by path consume shared module (default) @openmrs/ 126 bytes 3 modules
18
+ @openmrs/esm-patient-immunizations-app:build:  + 4 modules
19
+ @openmrs/esm-patient-immunizations-app:build:  provide-module modules 252 bytes
20
+ @openmrs/esm-patient-immunizations-app:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
21
+ @openmrs/esm-patient-immunizations-app:build:  + 4 modules
22
+ @openmrs/esm-patient-immunizations-app:build:  modules by path ../esm-patient-common-lib/src/ 87.2 KiB
23
+ @openmrs/esm-patient-immunizations-app:build:  ../esm-patient-common-lib/src/index.ts + 44 modules 76 KiB [built] [code generated]
24
+ @openmrs/esm-patient-immunizations-app:build:  + 5 modules
25
+ @openmrs/esm-patient-immunizations-app:build:  container entry 42 bytes [built] [code generated]
26
+ @openmrs/esm-patient-immunizations-app:build: 
27
+ @openmrs/esm-patient-immunizations-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
28
+ @openmrs/esm-patient-immunizations-app:build: This can impact web performance.
29
+ @openmrs/esm-patient-immunizations-app:build: Assets:
30
+ @openmrs/esm-patient-immunizations-app:build:  858.js (407 KiB)
31
+ @openmrs/esm-patient-immunizations-app:build:  724.js (446 KiB)
32
+ @openmrs/esm-patient-immunizations-app:build: 
33
+ @openmrs/esm-patient-immunizations-app:build: webpack 5.74.0 compiled with 1 warning in 126048 ms
package/dist/382.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([[382],{7904:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I,.-esm-patient-immunizations__card-header__tabletHeader___efA_M{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I h4:after,.-esm-patient-immunizations__card-header__tabletHeader___efA_M h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I{height:3rem}.-esm-patient-immunizations__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-immunizations__card-header__tabletHeader___efA_M{height:4.5rem}.-esm-patient-immunizations__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}',""]),o.locals={desktopHeader:"-esm-patient-immunizations__card-header__desktopHeader___BUQ5I",tabletHeader:"-esm-patient-immunizations__card-header__tabletHeader___efA_M"};const s=o},7942:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.active-left-nav-link .-esm-patient-immunizations__dashboardextension__link___lom8t:nth-child(1){color:#161616;padding:1.2rem 0 1.2rem 1.2rem}",""]),o.locals={link:"-esm-patient-immunizations__dashboardextension__link___lom8t"};const s=o},7431:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__empty-state__action___xInzb{margin-bottom:.5rem}.-esm-patient-immunizations__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-immunizations__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-immunizations__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-immunizations__empty-state__desktopHeading___UIGID,.-esm-patient-immunizations__empty-state__tabletHeading___lVXqD{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-immunizations__empty-state__desktopHeading___UIGID h4:after,.-esm-patient-immunizations__empty-state__tabletHeading___lVXqD h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__empty-state__heading___gW4Bc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__empty-state__tile___DvfL3{text-align:center;border:1px solid #e0e0e0}',""]),o.locals={action:"-esm-patient-immunizations__empty-state__action___xInzb",content:"-esm-patient-immunizations__empty-state__content___lACIK",desktopHeading:"-esm-patient-immunizations__empty-state__desktopHeading___UIGID",tabletHeading:"-esm-patient-immunizations__empty-state__tabletHeading___lVXqD",heading:"-esm-patient-immunizations__empty-state__heading___gW4Bc",tile:"-esm-patient-immunizations__empty-state__tile___DvfL3"};const s=o},418:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__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-immunizations__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-immunizations__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-immunizations__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-immunizations__error-state__desktopHeading___Bhvtx,.-esm-patient-immunizations__error-state__tabletHeading___EAqy2{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-immunizations__error-state__desktopHeading___Bhvtx h4:after,.-esm-patient-immunizations__error-state__tabletHeading___EAqy2 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__error-state__tile___LTdVO{text-align:center;border:1px solid #e0e0e0}',""]),o.locals={errorMessage:"-esm-patient-immunizations__error-state__errorMessage___kDICS",errorCopy:"-esm-patient-immunizations__error-state__errorCopy___UX21v",desktopHeading:"-esm-patient-immunizations__error-state__desktopHeading___Bhvtx",tabletHeading:"-esm-patient-immunizations__error-state__tabletHeading___EAqy2",tile:"-esm-patient-immunizations__error-state__tile___LTdVO"};const s=o},8952:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__pagination__bodyShort01____zD39,.-esm-patient-immunizations__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-immunizations__pagination__desktop___TGt17,.-esm-patient-immunizations__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-immunizations__pagination__desktop___TGt17 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--select-input,.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--btn,.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--select-input,.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--btn,.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-immunizations__pagination__configurableLink___JhehZ{text-decoration:none;padding:0 .5rem}.-esm-patient-immunizations__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-immunizations__pagination__pagination___B09B8>.cds--pagination__left{display:none}",""]),o.locals={bodyShort01:"-esm-patient-immunizations__pagination__bodyShort01____zD39",configurableLink:"-esm-patient-immunizations__pagination__configurableLink___JhehZ",desktop:"-esm-patient-immunizations__pagination__desktop___TGt17",tablet:"-esm-patient-immunizations__pagination__tablet___BEzP7",pagination:"-esm-patient-immunizations__pagination__pagination___B09B8"};const s=o},382:(t,e,n)=>{n.r(e),n.d(e,{CardHeader:()=>w,DashboardExtension:()=>V,DashboardGroupExtension:()=>T,EmptyDataIllustration:()=>k,EmptyState:()=>P,ErrorState:()=>j,PatientChartPagination:()=>X,WorkspaceWindowSizeProvider:()=>Lt,cancelPrompt:()=>St,changeWorkspaceContext:()=>Et,closeAllWorkspaces:()=>kt,closeWorkspace:()=>zt,convertTime12to24:()=>tt,createDashboardGroup:()=>H,createDashboardLink:()=>F,createOfflineVisitForPatient:()=>Se,formEntrySub:()=>st,getOfflineVisitForPatient:()=>be,getPromptBeforeClosingFcn:()=>wt,getWorkspaceStore:()=>Ot,launchPatientChartWithWorkspaceOpen:()=>vt,launchPatientWorkspace:()=>gt,launchStartVisitPrompt:()=>B,patientRegistrationSyncType:()=>ce,promptBeforeClosing:()=>bt,registerNavGroup:()=>L,registerWorkspace:()=>_t,resetWorkspaceStore:()=>Pt,useActivePatientEnrollment:()=>Qt,useAutoCreatedOfflineVisit:()=>ye,useNavGroups:()=>M,useOfflineVisit:()=>ve,usePaginationInfo:()=>R,usePatientOrOfflineRegisteredPatient:()=>ue,useVisitOrOfflineVisit:()=>ge,useVitalsConceptMetadata:()=>it,useWorkspaceWindowSize:()=>Dt,useWorkspaces:()=>jt,visitSyncType:()=>he,withUnit:()=>ot});var r=n(268),a=n.n(r),i=n(906),o=n(321),s=n.n(o),l=n(1195),c=n.n(l),u=n(3275),p=n.n(u),d=n(7162),m=n.n(d),f=n(2094),_=n.n(f),h=n(757),g=n.n(h),v=n(7904),y={};y.styleTagTransform=g(),y.setAttributes=m(),y.insert=p().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(t){var e=t.title,n=t.children,r="tablet"===(0,i.useLayoutType)();return a().createElement("div",{className:r?b.tabletHeader:b.desktopHeader},a().createElement("h4",null,e),n)}var S=n(4732),z=n(4924),k=function(t){var e=t.width,n=void 0===e?"64":e,r=t.height,i=void 0===r?"64":r;return a().createElement("svg",{width:n,height:i,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})))},E=n(7431),A={};A.styleTagTransform=g(),A.setAttributes=m(),A.insert=p().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=_(),s()(E.Z,A);const O=E.Z&&E.Z.locals?E.Z.locals:void 0;var P=function(t){var e=(0,z.useTranslation)().t,n="tablet"===(0,i.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:O.tile},a().createElement("div",{className:n?O.tabletHeading:O.desktopHeading},a().createElement("h4",null,t.headerTitle)),a().createElement(k,null),a().createElement("p",{className:O.content},a().createElement(z.Trans,{i18nKey:"emptyStateText",values:{displayText:t.displayText.toLowerCase()}},"There are no ",t.displayText.toLowerCase()," to display for this patient")),a().createElement("p",{className:O.action},t.launchForm&&a().createElement("span",null,a().createElement(S.rUS,{onClick:function(){return t.launchForm()}},a().createElement(a().Fragment,null,e("record","Record")," ",t.displayText.toLowerCase()))))))},x=n(418),C={};C.styleTagTransform=g(),C.setAttributes=m(),C.insert=p().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 j=function(t){var e,n,r=t.error,o=t.headerTitle,s=(0,z.useTranslation)().t,l="tablet"===(0,i.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,o)),a().createElement("p",{className:I.errorMessage},s("error","Error")," ","".concat(null==r||null===(e=r.response)||void 0===e?void 0:e.status,": "),null==r||null===(n=r.response)||void 0===n?void 0:n.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."))))},T=function(t){var e=t.title,n=t.slotName,o=t.basePath,s=t.isExpanded;return(0,r.useEffect)((function(){L(n)}),[n]),a().createElement(S.UQy,null,a().createElement(S.Qdk,{open:null==s||s,title:e,style:{border:"none"}},a().createElement(i.ExtensionSlot,{extensionSlotName:null!=n?n:e,state:{basePath:o}})))},H=function(t){var e=t.title,n=t.slotName,r=t.isExpanded;return function(t){var i=t.basePath;return a().createElement(T,{title:e,slotName:n,basePath:i,isExpanded:r})}};function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var D=(0,i.createGlobalStore)("nav-groups",{navGroups:[]});function L(t){var e,n=D.getState();D.setState({navGroups:[t].concat((e=n.navGroups,function(t){if(Array.isArray(t))return W(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return W(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(t,e):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 M=(0,i.createUseStore)(D);var Z=n(7942),U={};U.styleTagTransform=g(),U.setAttributes=m(),U.insert=p().bind(null,"head"),U.domAPI=c(),U.insertStyleElement=_(),s()(Z.Z,U);const N=Z.Z&&Z.Z.locals?Z.Z.locals:void 0;var V=function(t){var e,n=t.title,o=t.basePath,s=null!==(e=window.location)&&void 0!==e?e:{pathname:""},l=n===(0,r.useMemo)((function(){return decodeURIComponent((t=s.pathname.split("/"),(e=null==t?0:t.length)?t[e-1]:void 0));var t,e}),[s.pathname])?"active-left-nav-link":"non-active";return a().createElement("div",{key:n,className:l},a().createElement(i.ConfigurableLink,{to:"".concat(o,"/").concat(encodeURIComponent(n)),className:"cds--side-nav__link "+N.link},n))},F=function(t){return function(e){var n=e.basePath;return a().createElement(V,{title:t.title,basePath:n})}};function B(){var t=(0,i.showModal)("start-visit-dialog",{closeModal:function(){return t()}})}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function R(t,e,n,a){var i=(0,z.useTranslation)().t,o=(0,r.useMemo)((function(){var n,r=Math.ceil(e/t);return(n=Array(r).keys(),function(t){if(Array.isArray(t))return G(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(t,e):void 0}}(n)||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(e){return(e+1)*t}))}),[t,e]),s=(0,r.useMemo)((function(){return t>e?"".concat(e," / ").concat(e):t*n>e?"".concat(t*(n-1)+a," / ").concat(e):"".concat(t*n," / ").concat(e)}),[t,e,n,a]);return{pageSizes:o,itemsDisplayed:"".concat(s," ").concat(i("items"," items"))}}var q=n(8952),$={};$.styleTagTransform=g(),$.setAttributes=m(),$.insert=p().bind(null,"head"),$.domAPI=c(),$.insertStyleElement=_(),s()(q.Z,$);const Q=q.Z&&q.Z.locals?q.Z.locals:void 0;var X=function(t){var e=t.totalItems,n=t.pageSize,r=t.onPageNumberChange,o=t.pageNumber,s=t.dashboardLinkUrl,l=t.currentItems,c=t.dashboardLinkLabel,u=(0,z.useTranslation)().t,p=R(n,e,o,l),d=p.itemsDisplayed,m=p.pageSizes,f="tablet"===(0,i.useLayoutType)();return a().createElement(a().Fragment,null,e>0&&a().createElement("div",{className:f?Q.tablet:Q.desktop},a().createElement("div",null,d,s&&a().createElement(i.ConfigurableLink,{to:s,className:Q.configurableLink},null!=c?c:u("seeAll","See all"))),a().createElement(S.tlE,{className:Q.pagination,page:o,pageSize:n,pageSizes:m,totalItems:e,onChange:r,size:f?"lg":"sm"})))};function J(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var K,Y,tt=function(t,e){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return J(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?J(t,e):void 0}}(t,e)||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.")}()}(t.split(":"),2),r=n[0],a=n[1];return"12"===r&&"AM"===e&&(r="00"),"PM"===e&&(r="12"===r?r:parseInt(r,10)+12),[r,a]},et=n(9857),nt=function(){return nt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},nt.apply(this,arguments)},rt=function(t){return"function"==typeof t[1]?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},at=(K=et.ZP,Y=function(t){return function(e,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,t(e,n,r)}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=rt(t),r=n[0],a=n[1],i=n[2],o=(i.use||[]).concat(Y);return K(r,a,nt(nt({},i),{use:o}))});function it(){var t,e,n="/ws/rest/v1/concept/?q=VITALS SIGNS&v=".concat("custom:(setMembers:(uuid,display,hiNormal,hiAbsolute,hiCritical,lowNormal,lowAbsolute,lowCritical,units))"),r=at(n,i.openmrsFetch),a=r.data,o=r.error,s=null===(e=null==a||null===(t=a.data)||void 0===t?void 0:t.results[0])||void 0===e?void 0:e.setMembers;return{data:(null==s?void 0:s.length)?new Map(s.map((function(t){return[t.uuid,t.units]}))):new Map([]),isError:o,isLoading:!a&&!o,conceptMetadata:s}}var ot=function(t,e){return"".concat(t," ").concat(e?"(".concat(e,")"):"")},st=new(n(2444).BehaviorSubject)(null),lt=n(6081);function ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){ut(t,e,n[e])}))}return t}function dt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function mt(t){return function(t){if(Array.isArray(t))return ct(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ct(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ft={};function _t(t){var e,n;ft[t.name]=dt(pt({},t),{preferredWindowSize:null!==(e=t.preferredWindowSize)&&void 0!==e?e:"normal",type:null!==(n=t.type)&&void 0!==n?n:"form"})}function ht(t){var e,n=null==t||null===(e=t.meta)||void 0===e?void 0:e.title;return"string"==typeof n?n:n&&"object"==typeof n?(0,i.translateFrom)(t.moduleName,n.key,n.default):t.name}function gt(t,e){var n=Ot(),r=n.getState(),a=function(t){if(ft[t])return ft[t];var e,n,r,a,i=(0,lt.getExtensionRegistration)(t);if(i)return{name:i.name,title:ht(i),preferredWindowSize:null!==(r=null===(e=i.meta)||void 0===e?void 0:e.screenSize)&&void 0!==r?r:"normal",load:i.load,type:null!==(a=null===(n=i.meta)||void 0===n?void 0:n.type)&&void 0!==a?a:"form"};throw new Error("No workspace named '".concat(t,"' has been registered."))}(t),o=dt(pt({},a),{closeWorkspace:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return zt(t,e)},promptBeforeClosing:function(e){return bt(t,e)},additionalProps:e}),s=r.openWorkspaces.filter((function(t){return t.type==o.type}));if(0==s.length)n.setState(dt(pt({},r),{openWorkspaces:[o].concat(mt(r.openWorkspaces))}));else{var l=r.openWorkspaces.findIndex((function(e){return e.name==t})),c=wt(s[0].name);if(l>=0){var u=mt(r.openWorkspaces);u.splice(l,1),r.openWorkspaces[l].additionalProps=o.additionalProps;var p=[r.openWorkspaces[l]].concat(mt(u));n.setState(dt(pt({},r),{openWorkspaces:p}))}else if(!c||c()){var d,m=null!==(d=s[0].title)&&void 0!==d?d:s[0].name,f={title:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","activeFormWarning","There is an active form open in the workspace"),body:(0,i.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 t=n.getState();n.setState({openWorkspaces:[o].concat(mt(t.openWorkspaces.filter((function(t){return t.type!=o.type})))),prompt:null})},confirmText:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","openAnyway","Open anyway")};n.setState(dt(pt({},r),{prompt:f}))}else{var _=n.getState();n.setState(dt(pt({},_),{openWorkspaces:[o].concat(mt(_.openWorkspaces.filter((function(t){return t.type!=o.type}))))}))}}}function vt(t){var e=t.patientUuid,n=t.workspaceName,r=t.dashboardName,a=t.additionalProps;Et(e),gt(n,a),(0,i.navigate)({to:"${openmrsSpaBase}/patient/"+"".concat(e,"/chart")+(r?"/".concat(r):"")})}var yt={};function bt(t,e){yt[t]=e}function wt(t){return yt[t]}function St(){var t=Ot(),e=t.getState();t.setState(dt(pt({},e),{prompt:null}))}function zt(t,e){var n=Ot(),r=wt(t);if(!e&&r&&r()){var a={title:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangesTitleText","Unsaved Changes"),body:(0,i.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 e=n.getState();n.setState(dt(pt({},e),{prompt:null,openWorkspaces:e.openWorkspaces.filter((function(e){return e.name!=t}))}))},confirmText:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","discard","Discard")};n.setState(dt(pt({},n.getState()),{prompt:a}))}else{var o=n.getState();n.setState(dt(pt({},o),{openWorkspaces:o.openWorkspaces.filter((function(e){return e.name!=t}))}))}}function kt(){var t=Ot(),e=t.getState();t.setState(dt(pt({},e),{openWorkspaces:[]}))}function Et(t){var e=Ot();e.getState().patientUuid!=t&&e.setState({patientUuid:t,openWorkspaces:[],prompt:null})}var At={patientUuid:null,openWorkspaces:[],prompt:null};function Ot(){return(0,i.getGlobalStore)("workspace",At)}function Pt(){Ot().setState(At)}var xt=n(6217);function Ct(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function It(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ct(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ct(t,e):void 0}}(t,e)||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 jt(){var t=It((0,r.useState)([]),2),e=t[0],n=t[1],a=It((0,r.useState)(null),2),i=a[0],o=a[1];(0,r.useEffect)((function(){var t=function(t){n(t.openWorkspaces),o(t.prompt)};t((0,xt.getWorkspaceStore)().getState()),(0,xt.getWorkspaceStore)().subscribe(t)}),[]);var s=(0,r.useMemo)((function(){return 0===e.length?"hidden":e[0].preferredWindowSize}),[e]);return{active:e.length>0,windowState:s,workspaces:e,prompt:i}}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ht(t,e){switch(e){case"minimized":case"reopened":return{size:"normal"};default:return{size:e}}}var Wt=(0,r.createContext)({windowSize:{size:"normal"},active:!1}),Dt=function(){return(0,r.useContext)(Wt)},Lt=function(t){var e=t.children,n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(t,e):void 0}}(t,e)||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().useReducer(Ht,{size:"normal"}),2),i=n[0],o=n[1],s=jt(),l=s.workspaces,c=s.windowState,u=s.active;(0,r.useEffect)((function(){l.length>0&&"maximized"===c?o("maximized"):o("reopened")}),[l.length,c]);var p=(0,r.useCallback)((function(t){o(t)}),[]),d=(0,r.useMemo)((function(){return{windowSize:i,updateWindowSize:p,active:u}}),[i,p,u]);return a().createElement(Wt.Provider,{value:d},e)},Mt=n(617),Zt=n(6806),Ut=n(1610);const Nt=function(t,e){return!(null==t||!t.length)&&(0,Ut.Z)(t,e,0)>-1},Vt=function(t,e,n){for(var r=-1,a=null==t?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1};var Ft=n(1749),Bt=n(7459);var Gt=n(3249);const Rt=Bt.Z&&1/(0,Gt.Z)(new Bt.Z([,-0]))[1]==1/0?function(t){return new Bt.Z(t)}:function(){},qt=function(t,e){return t&&t.length?function(t,e,n){var r=-1,a=Nt,i=t.length,o=!0,s=[],l=s;if(n)o=!1,a=Vt;else if(i>=200){var c=e?null:Rt(t);if(c)return(0,Gt.Z)(c);o=!1,a=Ft.Z,l=new Zt.Z}else l=e?[]:s;t:for(;++r<i;){var u=t[r],p=e?e(u):u;if(u=n||0!==u?u:0,o&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue t;e&&l.push(p),s.push(u)}else a(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}(t,(0,Mt.Z)(e,2)):[]};var $t,Qt=function(t){var e,n=(0,et.ZP)("/ws/rest/v1/programenrollment?patient=".concat(t,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),i.openmrsFetch),a=n.data,o=n.error,s=(0,r.useMemo)((function(){return null!==(e=null==a?void 0:a.data.results.sort((function(t,e){return e.dateEnrolled>t.dateEnrolled?1:-1})).filter((function(t){return null===t.dateCompleted})))&&void 0!==e?e:[]}),[null==a?void 0:a.data.results]);return{activePatientEnrollment:qt(s,(function(t){var e;return null==t||null===(e=t.program)||void 0===e?void 0:e.uuid})),error:o,isLoading:!a&&!o}},Xt=n(5047),Jt=n.n(Xt),Kt=new Uint8Array(16);function Yt(){if(!$t&&!($t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $t(Kt)}const te=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ee=function(t){return"string"==typeof t&&te.test(t)};for(var ne=[],re=0;re<256;++re)ne.push((re+256).toString(16).substr(1));const ae=function(t,e,n){var r=(t=t||{}).random||(t.rng||Yt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=r[a];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ne[t[e+0]]+ne[t[e+1]]+ne[t[e+2]]+ne[t[e+3]]+"-"+ne[t[e+4]]+ne[t[e+5]]+"-"+ne[t[e+6]]+ne[t[e+7]]+"-"+ne[t[e+8]]+ne[t[e+9]]+"-"+ne[t[e+10]]+ne[t[e+11]]+ne[t[e+12]]+ne[t[e+13]]+ne[t[e+14]]+ne[t[e+15]]).toLowerCase();if(!ee(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oe(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function se(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){oe(i,r,a,o,s,"next",t)}function s(t){oe(i,r,a,o,s,"throw",t)}o(void 0)}))}}function le(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ce="patient-registration";function ue(t){var e=(0,i.useConnectivity)(),n=(0,i.usePatient)(t),a=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(t,e):void 0}}(t,e)||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.")}()}((0,r.useState)({patient:void 0,error:void 0}),2),o=a[0],s=a[1];return(0,r.useEffect)((function(){e?s({error:void 0,patient:void 0}):function(t){return pe.apply(this,arguments)}(t).then((function(t){s({error:void 0,patient:t})})).catch((function(t){var e,n;e=t,(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?s({error:t,patient:void 0}):s({error:new Error(JSON.stringify(t)),patient:void 0})}))}),[t,e]),(0,r.useMemo)((function(){if(e){if(n.patient&&n.patient.hasOwnProperty("issue")){var t=n.patient;return r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){le(t,e,n[e])}))}return t}({},n),a=null!=(a={patient:void 0,error:new Error(JSON.stringify(t.issue))})?a:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(a)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t))})),r}return n}var r,a,i;return{isLoading:!(o.patient||o.error),patient:o.patient,patientUuid:null===(i=o.patient)||void 0===i?void 0:i.id,error:o.error}}),[e,n,o.patient,o.error])}function pe(){return(pe=se(Jt().mark((function t(e){var n,r;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(ce);case 2:return n=t.sent,r=n.find((function(t){var n;return(null===(n=t.fhirPatient)||void 0===n?void 0:n.id)===e})),t.abrupt("return",r.fhirPatient);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function me(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function fe(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){me(i,r,a,o,s,"next",t)}function s(t){me(i,r,a,o,s,"throw",t)}o(void 0)}))}}function _e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(t,e):void 0}}(t,e)||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 he="visit";function ge(t){var e=(0,i.useConnectivity)(),n=_e((0,r.useState)(),2),a=(n[0],n[1],(0,i.useVisit)(t)),o=ve(t);return e?a:o}function ve(t){var e=_e((0,r.useState)({data:null,error:null,isLoading:!0}),2),n=e[0],a=e[1];return(0,r.useEffect)((function(){be(t).then((function(t){a({error:null,data:t?ke(t):null,isLoading:!1})})).catch((function(t){a({error:t,data:null,isLoading:!1})}))}),[t]),{currentVisit:n.data,isLoading:n.isLoading,isValidating:!1,error:n.error,mutate:function(){}}}function ye(t,e){var n,a,o=(0,i.useConnectivity)(),s=null===(n=(0,i.useSession)())||void 0===n||null===(a=n.sessionLocation)||void 0===a?void 0:a.uuid,l=ve(t),c=l.currentVisit,u=l.isValidating,p=l.error,d=l.mutate;(0,r.useEffect)((function(){o||u||c||p||Se(t,s,e).finally((function(){return d()}))}),[o,c,u,p,d,s,e,t])}function be(t){return we.apply(this,arguments)}function we(){return(we=fe(Jt().mark((function t(e){var n;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(he);case 2:return n=t.sent,t.abrupt("return",n.find((function(t){return t.patient===e})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Se(t,e,n){return ze.apply(this,arguments)}function ze(){return(ze=fe(Jt().mark((function t(e,n,r){var a,o,s,l;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(ce);case 2:return a=t.sent,o=a.some((function(t){return t.fhirPatient.id===e})),s={uuid:ae(),patient:e,startDatetime:new Date,location:n,visitType:r},l={id:s.uuid,displayName:"Offline visit",patientUuid:e,dependencies:o?[{type:ce,id:e}]:[]},t.next=8,(0,i.queueSynchronizationItem)(he,s,l);case 8:return t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ke(t){var e,n;return{uuid:t.uuid,startDatetime:null===(e=t.startDatetime)||void 0===e?void 0:e.toString(),stopDatetime:null===(n=t.stopDatetime)||void 0===n?void 0:n.toString(),encounters:[],visitType:{uuid:t.visitType,display:"Offline"},patient:{uuid:t.patient}}}}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([[382],{7904:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I,.-esm-patient-immunizations__card-header__tabletHeader___efA_M{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I h4:after,.-esm-patient-immunizations__card-header__tabletHeader___efA_M h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__card-header__desktopHeader___BUQ5I{height:3rem}.-esm-patient-immunizations__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-immunizations__card-header__tabletHeader___efA_M{height:4.5rem}.-esm-patient-immunizations__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}',""]),o.locals={desktopHeader:"-esm-patient-immunizations__card-header__desktopHeader___BUQ5I",tabletHeader:"-esm-patient-immunizations__card-header__tabletHeader___efA_M"};const s=o},7942:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.active-left-nav-link .-esm-patient-immunizations__dashboardextension__link___lom8t:nth-child(1){color:#161616;padding:1.2rem 0 1.2rem 1.2rem}",""]),o.locals={link:"-esm-patient-immunizations__dashboardextension__link___lom8t"};const s=o},7431:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__empty-state__action___xInzb{margin-bottom:.5rem}.-esm-patient-immunizations__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-immunizations__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-immunizations__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-immunizations__empty-state__desktopHeading___UIGID,.-esm-patient-immunizations__empty-state__tabletHeading___lVXqD{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-immunizations__empty-state__desktopHeading___UIGID h4:after,.-esm-patient-immunizations__empty-state__tabletHeading___lVXqD h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__empty-state__heading___gW4Bc:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__empty-state__tile___DvfL3{text-align:center;border:1px solid #e0e0e0}',""]),o.locals={action:"-esm-patient-immunizations__empty-state__action___xInzb",content:"-esm-patient-immunizations__empty-state__content___lACIK",desktopHeading:"-esm-patient-immunizations__empty-state__desktopHeading___UIGID",tabletHeading:"-esm-patient-immunizations__empty-state__tabletHeading___lVXqD",heading:"-esm-patient-immunizations__empty-state__heading___gW4Bc",tile:"-esm-patient-immunizations__empty-state__tile___DvfL3"};const s=o},418:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__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-immunizations__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-immunizations__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-immunizations__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-immunizations__error-state__desktopHeading___Bhvtx,.-esm-patient-immunizations__error-state__tabletHeading___EAqy2{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-patient-immunizations__error-state__desktopHeading___Bhvtx h4:after,.-esm-patient-immunizations__error-state__tabletHeading___EAqy2 h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-patient-immunizations__error-state__tile___LTdVO{text-align:center;border:1px solid #e0e0e0}',""]),o.locals={errorMessage:"-esm-patient-immunizations__error-state__errorMessage___kDICS",errorCopy:"-esm-patient-immunizations__error-state__errorCopy___UX21v",desktopHeading:"-esm-patient-immunizations__error-state__desktopHeading___Bhvtx",tabletHeading:"-esm-patient-immunizations__error-state__tabletHeading___EAqy2",tile:"-esm-patient-immunizations__error-state__tile___LTdVO"};const s=o},8952:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(9601),a=n.n(r),i=n(2609),o=n.n(i)()(a());o.push([t.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-patient-immunizations__pagination__bodyShort01____zD39,.-esm-patient-immunizations__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-immunizations__pagination__desktop___TGt17,.-esm-patient-immunizations__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-immunizations__pagination__desktop___TGt17 .cds--pagination{min-height:0rem;height:2rem;width:auto;border:none}.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--select-input,.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--btn,.-esm-patient-immunizations__pagination__desktop___TGt17 .cds--pagination .cds--pagination__right{min-height:0rem;height:2rem}.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination{min-height:0rem;height:3rem;width:auto;border:none}.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--select-input,.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--btn,.-esm-patient-immunizations__pagination__tablet___BEzP7 .cds--pagination .cds--pagination__right{min-height:0rem;height:3rem}.-esm-patient-immunizations__pagination__configurableLink___JhehZ{text-decoration:none;padding:0 .5rem}.-esm-patient-immunizations__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-immunizations__pagination__pagination___B09B8>.cds--pagination__left{display:none}",""]),o.locals={bodyShort01:"-esm-patient-immunizations__pagination__bodyShort01____zD39",configurableLink:"-esm-patient-immunizations__pagination__configurableLink___JhehZ",desktop:"-esm-patient-immunizations__pagination__desktop___TGt17",tablet:"-esm-patient-immunizations__pagination__tablet___BEzP7",pagination:"-esm-patient-immunizations__pagination__pagination___B09B8"};const s=o},382:(t,e,n)=>{n.r(e),n.d(e,{CardHeader:()=>w,DashboardExtension:()=>B,DashboardGroupExtension:()=>T,EmptyDataIllustration:()=>k,EmptyState:()=>P,ErrorState:()=>j,PatientChartPagination:()=>J,WorkspaceWindowSizeProvider:()=>Mt,cancelPrompt:()=>zt,changeWorkspaceContext:()=>At,closeAllWorkspaces:()=>Et,closeWorkspace:()=>kt,convertTime12to24:()=>et,createDashboardGroup:()=>H,createDashboardLink:()=>F,createOfflineVisitForPatient:()=>ze,formEntrySub:()=>lt,getOfflineVisitForPatient:()=>we,getPromptBeforeClosingFcn:()=>St,getWorkspaceStore:()=>Pt,launchPatientChartWithWorkspaceOpen:()=>yt,launchPatientWorkspace:()=>vt,launchStartVisitPrompt:()=>G,patientRegistrationSyncType:()=>ue,promptBeforeClosing:()=>wt,registerNavGroup:()=>D,registerWorkspace:()=>ht,resetWorkspaceStore:()=>xt,useActivePatientEnrollment:()=>Xt,useAutoCreatedOfflineVisit:()=>be,useNavGroups:()=>M,useOfflineVisit:()=>ye,usePaginationInfo:()=>q,usePatientOrOfflineRegisteredPatient:()=>pe,useVisitOrOfflineVisit:()=>ve,useVitalsConceptMetadata:()=>ot,useWorkspaceWindowSize:()=>Dt,useWorkspaces:()=>Tt,visitSyncType:()=>ge,withUnit:()=>st});var r=n(268),a=n.n(r),i=n(906),o=n(321),s=n.n(o),l=n(1195),c=n.n(l),u=n(3275),p=n.n(u),d=n(7162),m=n.n(d),f=n(2094),_=n.n(f),h=n(757),g=n.n(h),v=n(7904),y={};y.styleTagTransform=g(),y.setAttributes=m(),y.insert=p().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(t){var e=t.title,n=t.children,r="tablet"===(0,i.useLayoutType)();return a().createElement("div",{className:r?b.tabletHeader:b.desktopHeader},a().createElement("h4",null,e),n)}var S=n(4732),z=n(4924),k=function(t){var e=t.width,n=void 0===e?"64":e,r=t.height,i=void 0===r?"64":r;return a().createElement("svg",{width:n,height:i,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})))},E=n(7431),A={};A.styleTagTransform=g(),A.setAttributes=m(),A.insert=p().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=_(),s()(E.Z,A);const O=E.Z&&E.Z.locals?E.Z.locals:void 0;var P=function(t){var e=(0,z.useTranslation)().t,n="tablet"===(0,i.useLayoutType)();return a().createElement(S.mh4,null,a().createElement(S.n9L,{className:O.tile},a().createElement("div",{className:n?O.tabletHeading:O.desktopHeading},a().createElement("h4",null,t.headerTitle)),a().createElement(k,null),a().createElement("p",{className:O.content},a().createElement(z.Trans,{i18nKey:"emptyStateText",values:{displayText:t.displayText.toLowerCase()}},"There are no ",t.displayText.toLowerCase()," to display for this patient")),a().createElement("p",{className:O.action},t.launchForm&&a().createElement("span",null,a().createElement(S.rUS,{onClick:function(){return t.launchForm()}},a().createElement(a().Fragment,null,e("record","Record")," ",t.displayText.toLowerCase()))))))},x=n(418),C={};C.styleTagTransform=g(),C.setAttributes=m(),C.insert=p().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 j=function(t){var e,n,r=t.error,o=t.headerTitle,s=(0,z.useTranslation)().t,l="tablet"===(0,i.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,o)),a().createElement("p",{className:I.errorMessage},s("error","Error")," ","".concat(null==r||null===(e=r.response)||void 0===e?void 0:e.status,": "),null==r||null===(n=r.response)||void 0===n?void 0:n.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."))))},T=function(t){var e=t.title,n=t.slotName,o=t.basePath,s=t.isExpanded;return(0,r.useEffect)((function(){D(n)}),[n]),a().createElement(S.UQy,null,a().createElement(S.Qdk,{open:null==s||s,title:e,style:{border:"none"}},a().createElement(i.ExtensionSlot,{extensionSlotName:null!=n?n:e,state:{basePath:o}})))},H=function(t){var e=t.title,n=t.slotName,r=t.isExpanded;return function(t){var i=t.basePath;return a().createElement(T,{title:e,slotName:n,basePath:i,isExpanded:r})}};function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var W=(0,i.createGlobalStore)("nav-groups",{navGroups:[]});function D(t){var e,n=W.getState();W.setState({navGroups:[t].concat((e=n.navGroups,function(t){if(Array.isArray(t))return L(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):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 M=(0,i.createUseStore)(W),Z=n(7228);var U=n(7942),N={};N.styleTagTransform=g(),N.setAttributes=m(),N.insert=p().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=_(),s()(U.Z,N);const V=U.Z&&U.Z.locals?U.Z.locals:void 0;var B=function(t){var e=t.title,n=t.basePath,o=(0,Z.useLocation)(),s=e===(0,r.useMemo)((function(){return decodeURIComponent((t=o.pathname.split("/"),(e=null==t?0:t.length)?t[e-1]:void 0));var t,e}),[o.pathname])?"active-left-nav-link":"non-active";return a().createElement("div",{key:e,className:s},a().createElement(i.ConfigurableLink,{to:"".concat(n,"/").concat(encodeURIComponent(e)),className:"cds--side-nav__link "+V.link},e))},F=function(t){return function(e){var n=e.basePath;return a().createElement(Z.BrowserRouter,null,a().createElement(B,{title:t.title,basePath:n}))}};function G(){var t=(0,i.showModal)("start-visit-dialog",{closeModal:function(){return t()}})}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function q(t,e,n,a){var i=(0,z.useTranslation)().t,o=(0,r.useMemo)((function(){var n,r=Math.ceil(e/t);return(n=Array(r).keys(),function(t){if(Array.isArray(t))return R(t)}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}(n)||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(e){return(e+1)*t}))}),[t,e]),s=(0,r.useMemo)((function(){return t>e?"".concat(e," / ").concat(e):t*n>e?"".concat(t*(n-1)+a," / ").concat(e):"".concat(t*n," / ").concat(e)}),[t,e,n,a]);return{pageSizes:o,itemsDisplayed:"".concat(s," ").concat(i("items"," items"))}}var $=n(8952),Q={};Q.styleTagTransform=g(),Q.setAttributes=m(),Q.insert=p().bind(null,"head"),Q.domAPI=c(),Q.insertStyleElement=_(),s()($.Z,Q);const X=$.Z&&$.Z.locals?$.Z.locals:void 0;var J=function(t){var e=t.totalItems,n=t.pageSize,r=t.onPageNumberChange,o=t.pageNumber,s=t.dashboardLinkUrl,l=t.currentItems,c=t.dashboardLinkLabel,u=(0,z.useTranslation)().t,p=q(n,e,o,l),d=p.itemsDisplayed,m=p.pageSizes,f="tablet"===(0,i.useLayoutType)();return a().createElement(a().Fragment,null,e>0&&a().createElement("div",{className:f?X.tablet:X.desktop},a().createElement("div",null,d,s&&a().createElement(i.ConfigurableLink,{to:s,className:X.configurableLink},null!=c?c:u("seeAll","See all"))),a().createElement(S.tlE,{className:X.pagination,page:o,pageSize:n,pageSizes:m,totalItems:e,onChange:r,size:f?"lg":"sm"})))};function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Y,tt,et=function(t,e){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t,e)||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.")}()}(t.split(":"),2),r=n[0],a=n[1];return"12"===r&&"AM"===e&&(r="00"),"PM"===e&&(r="12"===r?r:parseInt(r,10)+12),[r,a]},nt=n(9857),rt=function(){return rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},rt.apply(this,arguments)},at=function(t){return"function"==typeof t[1]?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},it=(Y=nt.ZP,tt=function(t){return function(e,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,t(e,n,r)}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=at(t),r=n[0],a=n[1],i=n[2],o=(i.use||[]).concat(tt);return Y(r,a,rt(rt({},i),{use:o}))});function ot(){var t,e,n="/ws/rest/v1/concept/?q=VITALS SIGNS&v=".concat("custom:(setMembers:(uuid,display,hiNormal,hiAbsolute,hiCritical,lowNormal,lowAbsolute,lowCritical,units))"),r=it(n,i.openmrsFetch),a=r.data,o=r.error,s=null===(e=null==a||null===(t=a.data)||void 0===t?void 0:t.results[0])||void 0===e?void 0:e.setMembers;return{data:(null==s?void 0:s.length)?new Map(s.map((function(t){return[t.uuid,t.units]}))):new Map([]),isError:o,isLoading:!a&&!o,conceptMetadata:s}}var st=function(t,e){return"".concat(t," ").concat(e?"(".concat(e,")"):"")},lt=new(n(2444).BehaviorSubject)(null),ct=n(6081);function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){pt(t,e,n[e])}))}return t}function mt(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function ft(t){return function(t){if(Array.isArray(t))return ut(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ut(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _t={};function ht(t){var e,n;_t[t.name]=mt(dt({},t),{preferredWindowSize:null!==(e=t.preferredWindowSize)&&void 0!==e?e:"normal",type:null!==(n=t.type)&&void 0!==n?n:"form"})}function gt(t){var e,n=null==t||null===(e=t.meta)||void 0===e?void 0:e.title;return"string"==typeof n?n:n&&"object"==typeof n?(0,i.translateFrom)(t.moduleName,n.key,n.default):t.name}function vt(t,e){var n=Pt(),r=n.getState(),a=function(t){if(_t[t])return _t[t];var e,n,r,a,i=(0,ct.getExtensionRegistration)(t);if(i)return{name:i.name,title:gt(i),preferredWindowSize:null!==(r=null===(e=i.meta)||void 0===e?void 0:e.screenSize)&&void 0!==r?r:"normal",load:i.load,type:null!==(a=null===(n=i.meta)||void 0===n?void 0:n.type)&&void 0!==a?a:"form"};throw new Error("No workspace named '".concat(t,"' has been registered."))}(t),o=mt(dt({},a),{closeWorkspace:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return kt(t,e)},promptBeforeClosing:function(e){return wt(t,e)},additionalProps:e}),s=r.openWorkspaces.filter((function(t){return t.type==o.type}));if(0==s.length)n.setState(mt(dt({},r),{openWorkspaces:[o].concat(ft(r.openWorkspaces))}));else{var l=r.openWorkspaces.findIndex((function(e){return e.name==t})),c=St(s[0].name);if(l>=0){var u=ft(r.openWorkspaces);u.splice(l,1),r.openWorkspaces[l].additionalProps=o.additionalProps;var p=[r.openWorkspaces[l]].concat(ft(u));n.setState(mt(dt({},r),{openWorkspaces:p}))}else if(!c||c()){var d,m=null!==(d=s[0].title)&&void 0!==d?d:s[0].name,f={title:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","activeFormWarning","There is an active form open in the workspace"),body:(0,i.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 t=n.getState();n.setState({openWorkspaces:[o].concat(ft(t.openWorkspaces.filter((function(t){return t.type!=o.type})))),prompt:null})},confirmText:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","openAnyway","Open anyway")};n.setState(mt(dt({},r),{prompt:f}))}else{var _=n.getState();n.setState(mt(dt({},_),{openWorkspaces:[o].concat(ft(_.openWorkspaces.filter((function(t){return t.type!=o.type}))))}))}}}function yt(t){var e=t.patientUuid,n=t.workspaceName,r=t.dashboardName,a=t.additionalProps;At(e),vt(n,a),(0,i.navigate)({to:"${openmrsSpaBase}/patient/"+"".concat(e,"/chart")+(r?"/".concat(r):"")})}var bt={};function wt(t,e){bt[t]=e}function St(t){return bt[t]}function zt(){var t=Pt(),e=t.getState();t.setState(mt(dt({},e),{prompt:null}))}function kt(t,e){var n=Pt(),r=St(t);if(!e&&r&&r()){var a={title:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","unsavedChangesTitleText","Unsaved Changes"),body:(0,i.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 e=n.getState();n.setState(mt(dt({},e),{prompt:null,openWorkspaces:e.openWorkspaces.filter((function(e){return e.name!=t}))}))},confirmText:(0,i.translateFrom)("@openmrs/esm-patient-chart-app","discard","Discard")};n.setState(mt(dt({},n.getState()),{prompt:a}))}else{var o=n.getState();n.setState(mt(dt({},o),{openWorkspaces:o.openWorkspaces.filter((function(e){return e.name!=t}))}))}}function Et(){var t=Pt(),e=t.getState();t.setState(mt(dt({},e),{openWorkspaces:[]}))}function At(t){var e=Pt();e.getState().patientUuid!=t&&e.setState({patientUuid:t,openWorkspaces:[],prompt:null})}var Ot={patientUuid:null,openWorkspaces:[],prompt:null};function Pt(){return(0,i.getGlobalStore)("workspace",Ot)}function xt(){Pt().setState(Ot)}var Ct=n(6217);function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return It(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(t,e):void 0}}(t,e)||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 Tt(){var t=jt((0,r.useState)([]),2),e=t[0],n=t[1],a=jt((0,r.useState)(null),2),i=a[0],o=a[1];(0,r.useEffect)((function(){var t=function(t){n(t.openWorkspaces),o(t.prompt)};t((0,Ct.getWorkspaceStore)().getState()),(0,Ct.getWorkspaceStore)().subscribe(t)}),[]);var s=(0,r.useMemo)((function(){return 0===e.length?"hidden":e[0].preferredWindowSize}),[e]);return{active:e.length>0,windowState:s,workspaces:e,prompt:i}}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lt(t,e){switch(e){case"minimized":case"reopened":return{size:"normal"};default:return{size:e}}}var Wt=(0,r.createContext)({windowSize:{size:"normal"},active:!1}),Dt=function(){return(0,r.useContext)(Wt)},Mt=function(t){var e=t.children,n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ht(t,e):void 0}}(t,e)||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().useReducer(Lt,{size:"normal"}),2),i=n[0],o=n[1],s=Tt(),l=s.workspaces,c=s.windowState,u=s.active;(0,r.useEffect)((function(){l.length>0&&"maximized"===c?o("maximized"):o("reopened")}),[l.length,c]);var p=(0,r.useCallback)((function(t){o(t)}),[]),d=(0,r.useMemo)((function(){return{windowSize:i,updateWindowSize:p,active:u}}),[i,p,u]);return a().createElement(Wt.Provider,{value:d},e)},Zt=n(617),Ut=n(6806),Nt=n(1610);const Vt=function(t,e){return!(null==t||!t.length)&&(0,Nt.Z)(t,e,0)>-1},Bt=function(t,e,n){for(var r=-1,a=null==t?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1};var Ft=n(1749),Gt=n(7459);var Rt=n(3249);const qt=Gt.Z&&1/(0,Rt.Z)(new Gt.Z([,-0]))[1]==1/0?function(t){return new Gt.Z(t)}:function(){},$t=function(t,e){return t&&t.length?function(t,e,n){var r=-1,a=Vt,i=t.length,o=!0,s=[],l=s;if(n)o=!1,a=Bt;else if(i>=200){var c=e?null:qt(t);if(c)return(0,Rt.Z)(c);o=!1,a=Ft.Z,l=new Ut.Z}else l=e?[]:s;t:for(;++r<i;){var u=t[r],p=e?e(u):u;if(u=n||0!==u?u:0,o&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue t;e&&l.push(p),s.push(u)}else a(l,p,n)||(l!==s&&l.push(p),s.push(u))}return s}(t,(0,Zt.Z)(e,2)):[]};var Qt,Xt=function(t){var e,n=(0,nt.ZP)("/ws/rest/v1/programenrollment?patient=".concat(t,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),i.openmrsFetch),a=n.data,o=n.error,s=(0,r.useMemo)((function(){return null!==(e=null==a?void 0:a.data.results.sort((function(t,e){return e.dateEnrolled>t.dateEnrolled?1:-1})).filter((function(t){return null===t.dateCompleted})))&&void 0!==e?e:[]}),[null==a?void 0:a.data.results]);return{activePatientEnrollment:$t(s,(function(t){var e;return null==t||null===(e=t.program)||void 0===e?void 0:e.uuid})),error:o,isLoading:!a&&!o}},Jt=n(5047),Kt=n.n(Jt),Yt=new Uint8Array(16);function te(){if(!Qt&&!(Qt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qt(Yt)}const ee=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ne=function(t){return"string"==typeof t&&ee.test(t)};for(var re=[],ae=0;ae<256;++ae)re.push((ae+256).toString(16).substr(1));const ie=function(t,e,n){var r=(t=t||{}).random||(t.rng||te)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=r[a];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(re[t[e+0]]+re[t[e+1]]+re[t[e+2]]+re[t[e+3]]+"-"+re[t[e+4]]+re[t[e+5]]+"-"+re[t[e+6]]+re[t[e+7]]+"-"+re[t[e+8]]+re[t[e+9]]+"-"+re[t[e+10]]+re[t[e+11]]+re[t[e+12]]+re[t[e+13]]+re[t[e+14]]+re[t[e+15]]).toLowerCase();if(!ne(n))throw TypeError("Stringified UUID is invalid");return n}(r)};function oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function se(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function le(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){se(i,r,a,o,s,"next",t)}function s(t){se(i,r,a,o,s,"throw",t)}o(void 0)}))}}function ce(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ue="patient-registration";function pe(t){var e=(0,i.useConnectivity)(),n=(0,i.usePatient)(t),a=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(t,e):void 0}}(t,e)||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.")}()}((0,r.useState)({patient:void 0,error:void 0}),2),o=a[0],s=a[1];return(0,r.useEffect)((function(){e?s({error:void 0,patient:void 0}):function(t){return de.apply(this,arguments)}(t).then((function(t){s({error:void 0,patient:t})})).catch((function(t){var e,n;e=t,(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?s({error:t,patient:void 0}):s({error:new Error(JSON.stringify(t)),patient:void 0})}))}),[t,e]),(0,r.useMemo)((function(){if(e){if(n.patient&&n.patient.hasOwnProperty("issue")){var t=n.patient;return r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){ce(t,e,n[e])}))}return t}({},n),a=null!=(a={patient:void 0,error:new Error(JSON.stringify(t.issue))})?a:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}(Object(a)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t))})),r}return n}var r,a,i;return{isLoading:!(o.patient||o.error),patient:o.patient,patientUuid:null===(i=o.patient)||void 0===i?void 0:i.id,error:o.error}}),[e,n,o.patient,o.error])}function de(){return(de=le(Kt().mark((function t(e){var n,r;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(ue);case 2:return n=t.sent,r=n.find((function(t){var n;return(null===(n=t.fhirPatient)||void 0===n?void 0:n.id)===e})),t.abrupt("return",r.fhirPatient);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fe(t,e,n,r,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,a)}function _e(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function o(t){fe(i,r,a,o,s,"next",t)}function s(t){fe(i,r,a,o,s,"throw",t)}o(void 0)}))}}function he(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){s=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t,e)||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 ge="visit";function ve(t){var e=(0,i.useConnectivity)(),n=he((0,r.useState)(),2),a=(n[0],n[1],(0,i.useVisit)(t)),o=ye(t);return e?a:o}function ye(t){var e=he((0,r.useState)({data:null,error:null,isLoading:!0}),2),n=e[0],a=e[1];return(0,r.useEffect)((function(){we(t).then((function(t){a({error:null,data:t?Ee(t):null,isLoading:!1})})).catch((function(t){a({error:t,data:null,isLoading:!1})}))}),[t]),{currentVisit:n.data,isLoading:n.isLoading,isValidating:!1,error:n.error,mutate:function(){}}}function be(t,e){var n,a,o=(0,i.useConnectivity)(),s=null===(n=(0,i.useSession)())||void 0===n||null===(a=n.sessionLocation)||void 0===a?void 0:a.uuid,l=ye(t),c=l.currentVisit,u=l.isValidating,p=l.error,d=l.mutate;(0,r.useEffect)((function(){o||u||c||p||ze(t,s,e).finally((function(){return d()}))}),[o,c,u,p,d,s,e,t])}function we(t){return Se.apply(this,arguments)}function Se(){return(Se=_e(Kt().mark((function t(e){var n;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(ge);case 2:return n=t.sent,t.abrupt("return",n.find((function(t){return t.patient===e})));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ze(t,e,n){return ke.apply(this,arguments)}function ke(){return(ke=_e(Kt().mark((function t(e,n,r){var a,o,s,l;return Kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,i.getSynchronizationItems)(ue);case 2:return a=t.sent,o=a.some((function(t){return t.fhirPatient.id===e})),s={uuid:ie(),patient:e,startDatetime:new Date,location:n,visitType:r},l={id:s.uuid,displayName:"Offline visit",patientUuid:e,dependencies:o?[{type:ue,id:e}]:[]},t.next=8,(0,i.queueSynchronizationItem)(ge,s,l);case 8:return t.abrupt("return",s);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ee(t){var e,n;return{uuid:t.uuid,startDatetime:null===(e=t.startDatetime)||void 0===e?void 0:e.toString(),stopDatetime:null===(n=t.stopDatetime)||void 0===n?void 0:n.toString(),encounters:[],visitType:{uuid:t.visitType,display:"Offline"},patient:{uuid:t.patient}}}}}]);
package/dist/684.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([[684,660],{2684:(e,n,i)=>{"use strict";i.r(n),i.d(n,{backendDependencies:()=>u,importTranslation:()=>c,setupOpenMRS:()=>m,version:()=>r});var t=i(906),s=i(6217),a={immunizationsConfig:{vaccinesConceptSet:{_type:t.Type.String,_default:"CIEL:984",_description:"A uuid or concept mapping which will have all the possible vaccines as set-members."},sequenceDefinitions:{_type:t.Type.Array,_description:"Doses/Schedules definitions for each vaccine configured if applicable. If not provided the vaccine would be treated as a vaccine without schedules",_elements:{vaccineConceptUuid:{_type:t.Type.UUID,_description:"The UUID of the individual vaccine concept"},sequences:{_type:t.Type.Array,_elements:{sequenceLabel:{_type:t.Type.String,_description:"Name of the dose/booster/schedule.. This will be used as a translation key as well."},sequenceNumber:{_type:t.Type.Number,_description:"The dose number in the vaccines. Convention for doses is [1...9] and for boosters is [11...19]"}}}},_default:[{vaccineConceptUuid:"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",sequences:[{sequenceLabel:"Dose-1",sequenceNumber:1},{sequenceLabel:"Dose-2",sequenceNumber:2},{sequenceLabel:"Dose-3",sequenceNumber:3},{sequenceLabel:"Dose-4",sequenceNumber:4},{sequenceLabel:"Booster-1",sequenceNumber:11},{sequenceLabel:"Booster-2",sequenceNumber:12}]}]}}},o={slot:"patient-chart-immunizations-dashboard-slot",columns:1,title:"Immunizations"},r="4.0.1-pre.474",c=i(3979),u={"webservices.rest":"^2.2.0",fhir2:"^1.2.0"};function m(){var e="@openmrs/esm-patient-immunizations-app",n={featureName:"patient-immunizations",moduleName:e};return(0,t.defineConfigSchema)(e,a),{extensions:[{name:"immunization-overview-widget",slot:"patient-chart-summary-dashboard-slot",order:10,load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(250)]).then(i.bind(i,1250))}),n),meta:{columnSpan:4}},{name:"immunization-details-widget",slot:o.slot,load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(444),i.e(110)]).then(i.bind(i,8110))}),n),meta:{columnSpan:1}},{name:"immunization-summary-dashboard",slot:"patient-chart-dashboard-slot",order:8,load:(0,t.getSyncLifecycle)((0,s.createDashboardLink)(o),n),meta:o},{name:"immunization-form-workspace",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(444),i.e(778)]).then(i.bind(i,4778))}),n),meta:{title:"Immunization Form"}}]}}},3979:(e,n,i)=>{var t={"./en.json":[3574,574],"./fr.json":[2757,757]};function s(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],s=n[0];return i.e(n[1]).then((()=>i(s)))}s.keys=()=>Object.keys(t),s.id=3979,e.exports=s}}]);
1
+ (self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([[684,660],{2684:(e,n,i)=>{"use strict";i.r(n),i.d(n,{backendDependencies:()=>u,importTranslation:()=>c,setupOpenMRS:()=>m,version:()=>r});var t=i(906),s=i(6217),a={immunizationsConfig:{vaccinesConceptSet:{_type:t.Type.String,_default:"CIEL:984",_description:"A uuid or concept mapping which will have all the possible vaccines as set-members."},sequenceDefinitions:{_type:t.Type.Array,_description:"Doses/Schedules definitions for each vaccine configured if applicable. If not provided the vaccine would be treated as a vaccine without schedules",_elements:{vaccineConceptUuid:{_type:t.Type.UUID,_description:"The UUID of the individual vaccine concept"},sequences:{_type:t.Type.Array,_elements:{sequenceLabel:{_type:t.Type.String,_description:"Name of the dose/booster/schedule.. This will be used as a translation key as well."},sequenceNumber:{_type:t.Type.Number,_description:"The dose number in the vaccines. Convention for doses is [1...9] and for boosters is [11...19]"}}}},_default:[{vaccineConceptUuid:"783AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",sequences:[{sequenceLabel:"Dose-1",sequenceNumber:1},{sequenceLabel:"Dose-2",sequenceNumber:2},{sequenceLabel:"Dose-3",sequenceNumber:3},{sequenceLabel:"Dose-4",sequenceNumber:4},{sequenceLabel:"Booster-1",sequenceNumber:11},{sequenceLabel:"Booster-2",sequenceNumber:12}]}]}}},o={slot:"patient-chart-immunizations-dashboard-slot",columns:1,title:"Immunizations"},r="4.0.1-pre.477",c=i(3979),u={"webservices.rest":"^2.2.0",fhir2:"^1.2.0"};function m(){var e="@openmrs/esm-patient-immunizations-app",n={featureName:"patient-immunizations",moduleName:e};return(0,t.defineConfigSchema)(e,a),{extensions:[{name:"immunization-overview-widget",slot:"patient-chart-summary-dashboard-slot",order:10,load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(250)]).then(i.bind(i,1250))}),n),meta:{columnSpan:4}},{name:"immunization-details-widget",slot:o.slot,load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(444),i.e(110)]).then(i.bind(i,8110))}),n),meta:{columnSpan:1}},{name:"immunization-summary-dashboard",slot:"patient-chart-dashboard-slot",order:8,load:(0,t.getSyncLifecycle)((0,s.createDashboardLink)(o),n),meta:o},{name:"immunization-form-workspace",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(724),i.e(245),i.e(268),i.e(924),i.e(444),i.e(778)]).then(i.bind(i,4778))}),n),meta:{title:"Immunization Form"}}]}}},3979:(e,n,i)=>{var t={"./en.json":[3574,574],"./fr.json":[2757,757]};function s(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],s=n[0];return i.e(n[1]).then((()=>i(s)))}s.keys=()=>Object.keys(t),s.id=3979,e.exports=s}}]);
package/dist/97.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 97.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([[97],{7097:(e,t,n)=>{n.r(t),n.d(t,{BrowserRouter:()=>re,HashRouter:()=>ie,Link:()=>ue,MemoryRouter:()=>V,NavLink:()=>ce,Navigate:()=>z,NavigationType:()=>a,Outlet:()=>q,Route:()=>G,Router:()=>Q,Routes:()=>X,UNSAFE_LocationContext:()=>m,UNSAFE_NavigationContext:()=>v,UNSAFE_RouteContext:()=>d,createPath:()=>f,createRoutesFromChildren:()=>Y,createSearchParams:()=>he,generatePath:()=>y,matchPath:()=>w,matchRoutes:()=>b,parsePath:()=>p,renderMatches:()=>Z,resolvePath:()=>S,unstable_HistoryRouter:()=>oe,useHref:()=>$,useInRouterContext:()=>_,useLinkClickHandler:()=>le,useLocation:()=>j,useMatch:()=>W,useNavigate:()=>H,useNavigationType:()=>B,useOutlet:()=>U,useOutletContext:()=>I,useParams:()=>F,useResolvedPath:()=>D,useRoutes:()=>J,useSearchParams:()=>se});var a,r=n(268);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));var o="beforeunload",u="popstate";function c(e,t,n){return Math.min(Math.max(e,t),n)}function l(e){e.preventDefault(),e.returnValue=""}function s(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function h(){return Math.random().toString(36).substr(2,8)}function f(e){var t=e.pathname,n=void 0===t?"/":t,a=e.search,r=void 0===a?"":a,i=e.hash,o=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function p(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}const v=(0,r.createContext)(null),m=(0,r.createContext)(null),d=(0,r.createContext)({outlet:null,matches:[]});function g(e,t){if(!e)throw new Error(t)}function y(e,t){return void 0===t&&(t={}),e.replace(/:(\w+)/g,((e,n)=>(null==t[n]&&g(!1),t[n]))).replace(/\/*\*$/,(e=>null==t["*"]?"":t["*"].replace(/^\/*/,"/")))}function b(e,t,n){void 0===n&&(n="/");let a=O(("string"==typeof t?p(t):t).pathname||"/",n);if(null==a)return null;let r=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let i=null;for(let e=0;null==i&&e<r.length;++e)i=C(r[e],a);return i}function x(e,t,n,a){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a=""),e.forEach(((e,r)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(a)||g(!1),i.relativePath=i.relativePath.slice(a.length));let o=L([a,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&g(!1),x(e.children,t,u,o)),(null!=e.path||e.index)&&t.push({path:o,score:k(o,e.index),routesMeta:u})})),t}const P=/^:\w+$/,E=e=>"*"===e;function k(e,t){let n=e.split("/"),a=n.length;return n.some(E)&&(a+=-2),t&&(a+=2),n.filter((e=>!E(e))).reduce(((e,t)=>e+(P.test(t)?3:""===t?1:10)),a)}function C(e,t){let{routesMeta:n}=e,a={},r="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],u=e===n.length-1,c="/"===r?t:t.slice(r.length)||"/",l=w({path:o.relativePath,caseSensitive:o.caseSensitive,end:u},c);if(!l)return null;Object.assign(a,l.params);let s=o.route;i.push({params:a,pathname:L([r,l.pathname]),pathnameBase:A(L([r,l.pathnameBase])),route:s}),"/"!==l.pathnameBase&&(r=L([r,l.pathnameBase]))}return i}function w(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(a.push(t),"([^\\/]+)")));return e.endsWith("*")?(a.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],o=i.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:a.reduce(((e,t,n)=>{if("*"===t){let e=u[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(t){return e}}(u[n]||""),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function S(e,t){void 0===t&&(t="/");let{pathname:n,search:a="",hash:r=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:N(a),hash:M(r)}}function R(e,t,n){let a,r="string"==typeof e?p(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)a=n;else{let e=t.length-1;if(i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}a=e>=0?t[e]:"/"}let o=S(r,a);return i&&"/"!==i&&i.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const L=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",M=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function $(e){_()||g(!1);let{basename:t,navigator:n}=(0,r.useContext)(v),{hash:a,pathname:i,search:o}=D(e),u=i;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?p(e).pathname:e.pathname}(e),a=null!=n&&n.endsWith("/");u="/"===i?t+(a?"/":""):L([t,i])}return n.createHref({pathname:u,search:o,hash:a})}function _(){return null!=(0,r.useContext)(m)}function j(){return _()||g(!1),(0,r.useContext)(m).location}function B(){return(0,r.useContext)(m).navigationType}function W(e){_()||g(!1);let{pathname:t}=j();return(0,r.useMemo)((()=>w(e,t)),[t,e])}function H(){_()||g(!1);let{basename:e,navigator:t}=(0,r.useContext)(v),{matches:n}=(0,r.useContext)(d),{pathname:a}=j(),i=JSON.stringify(n.map((e=>e.pathnameBase))),o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{o.current=!0})),(0,r.useCallback)((function(n,r){if(void 0===r&&(r={}),!o.current)return;if("number"==typeof n)return void t.go(n);let u=R(n,JSON.parse(i),a);"/"!==e&&(u.pathname=L([e,u.pathname])),(r.replace?t.replace:t.push)(u,r.state)}),[e,t,i,a])}const T=(0,r.createContext)(null);function I(){return(0,r.useContext)(T)}function U(e){let t=(0,r.useContext)(d).outlet;return t?(0,r.createElement)(T.Provider,{value:e},t):t}function F(){let{matches:e}=(0,r.useContext)(d),t=e[e.length-1];return t?t.params:{}}function D(e){let{matches:t}=(0,r.useContext)(d),{pathname:n}=j(),a=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,r.useMemo)((()=>R(e,JSON.parse(a),n)),[e,a,n])}function J(e,t){_()||g(!1);let{matches:n}=(0,r.useContext)(d),a=n[n.length-1],i=a?a.params:{},o=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let u,c=j();if(t){var l;let e="string"==typeof t?p(t):t;"/"===o||(null==(l=e.pathname)?void 0:l.startsWith(o))||g(!1),u=e}else u=c;let s=u.pathname||"/",h=b(e,{pathname:"/"===o?s:s.slice(o.length)||"/"});return K(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:L([o,e.pathname]),pathnameBase:"/"===e.pathnameBase?o:L([o,e.pathnameBase])}))),n)}function K(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,a,i)=>(0,r.createElement)(d.Provider,{children:void 0!==a.route.element?a.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})),null)}function V(e){let{basename:t,children:n,initialEntries:o,initialIndex:u}=e,l=(0,r.useRef)();null==l.current&&(l.current=function(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,u=r.map((function(e){return i({pathname:"/",search:"",hash:"",state:null,key:h()},"string"==typeof e?p(e):e)})),l=c(null==o?u.length-1:o,0,u.length-1),v=a.Pop,m=u[l],d=s(),g=s();function y(e,t){return void 0===t&&(t=null),i({pathname:m.pathname,search:"",hash:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function b(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function x(e,t){v=e,m=t,d.call({action:v,location:m})}function P(e){var t=c(l+e,0,u.length-1),n=a.Pop,r=u[t];b(n,r,(function(){P(e)}))&&(l=t,x(n,r))}var E={get index(){return l},get action(){return v},get location(){return m},createHref:function(e){return"string"==typeof e?e:f(e)},push:function e(t,n){var r=a.Push,i=y(t,n);b(r,i,(function(){e(t,n)}))&&(l+=1,u.splice(l,u.length,i),x(r,i))},replace:function e(t,n){var r=a.Replace,i=y(t,n);b(r,i,(function(){e(t,n)}))&&(u[l]=i,x(r,i))},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return d.push(e)},block:function(e){return g.push(e)}};return E}({initialEntries:o,initialIndex:u}));let v=l.current,[m,d]=(0,r.useState)({action:v.action,location:v.location});return(0,r.useLayoutEffect)((()=>v.listen(d)),[v]),(0,r.createElement)(Q,{basename:t,children:n,location:m.location,navigationType:m.action,navigator:v})}function z(e){let{to:t,replace:n,state:a}=e;_()||g(!1);let i=H();return(0,r.useEffect)((()=>{i(t,{replace:n,state:a})})),null}function q(e){return U(e.context)}function G(e){g(!1)}function Q(e){let{basename:t="/",children:n=null,location:i,navigationType:o=a.Pop,navigator:u,static:c=!1}=e;_()&&g(!1);let l=A(t),s=(0,r.useMemo)((()=>({basename:l,navigator:u,static:c})),[l,u,c]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:f="",hash:d="",state:y=null,key:b="default"}=i,x=(0,r.useMemo)((()=>{let e=O(h,l);return null==e?null:{pathname:e,search:f,hash:d,state:y,key:b}}),[l,h,f,d,y,b]);return null==x?null:(0,r.createElement)(v.Provider,{value:s},(0,r.createElement)(m.Provider,{children:n,value:{location:x,navigationType:o}}))}function X(e){let{children:t,location:n}=e;return J(Y(t),n)}function Y(e){let t=[];return r.Children.forEach(e,(e=>{if(!(0,r.isValidElement)(e))return;if(e.type===r.Fragment)return void t.push.apply(t,Y(e.props.children));e.type!==G&&g(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=Y(e.props.children)),t.push(n)})),t}function Z(e){return K(e)}function ee(){return ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ee.apply(this,arguments)}function te(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}const ne=["onClick","reloadDocument","replace","state","target","to"],ae=["aria-current","caseSensitive","className","end","style","to","children"];function re(e){let{basename:t,children:n,window:c}=e,v=(0,r.useRef)();null==v.current&&(v.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function c(){var e=n.location,t=e.pathname,a=e.search,i=e.hash,o=r.state||{};return[o.idx,{pathname:t,search:a,hash:i,state:o.usr||null,key:o.key||"default"}]}var v=null;n.addEventListener(u,(function(){if(v)x.call(v),v=null;else{var e=a.Pop,t=c(),n=t[0],r=t[1];if(x.length){if(null!=n){var i=g-n;i&&(v={action:e,location:r,retry:function(){S(-1*i)}},S(i))}}else w(e)}}));var m=a.Pop,d=c(),g=d[0],y=d[1],b=s(),x=s();function P(e){return"string"==typeof e?e:f(e)}function E(e,t){return void 0===t&&(t=null),i({pathname:y.pathname,hash:"",search:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function k(e,t){return[{usr:e.state,key:e.key,idx:t},P(e)]}function C(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function w(e){m=e;var t=c();g=t[0],y=t[1],b.call({action:m,location:y})}function S(e){r.go(e)}null==g&&(g=0,r.replaceState(i({},r.state,{idx:g}),""));var R={get action(){return m},get location(){return y},createHref:P,push:function e(t,i){var o=a.Push,u=E(t,i);if(C(o,u,(function(){e(t,i)}))){var c=k(u,g+1),l=c[0],s=c[1];try{r.pushState(l,"",s)}catch(e){n.location.assign(s)}w(o)}},replace:function e(t,n){var i=a.Replace,o=E(t,n);if(C(i,o,(function(){e(t,n)}))){var u=k(o,g),c=u[0],l=u[1];r.replaceState(c,"",l),w(i)}},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(e){return b.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(o,l),function(){t(),x.length||n.removeEventListener(o,l)}}};return R}({window:c}));let m=v.current,[d,g]=(0,r.useState)({action:m.action,location:m.location});return(0,r.useLayoutEffect)((()=>m.listen(g)),[m]),(0,r.createElement)(Q,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:m})}function ie(e){let{basename:t,children:n,window:c}=e,v=(0,r.useRef)();null==v.current&&(v.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function c(){var e=p(n.location.hash.substr(1)),t=e.pathname,a=void 0===t?"/":t,i=e.search,o=void 0===i?"":i,u=e.hash,c=void 0===u?"":u,l=r.state||{};return[l.idx,{pathname:a,search:o,hash:c,state:l.usr||null,key:l.key||"default"}]}var v=null;function m(){if(v)P.call(v),v=null;else{var e=a.Pop,t=c(),n=t[0],r=t[1];if(P.length){if(null!=n){var i=y-n;i&&(v={action:e,location:r,retry:function(){R(-1*i)}},R(i))}}else S(e)}}n.addEventListener(u,m),n.addEventListener("hashchange",(function(){f(c()[1])!==f(b)&&m()}));var d=a.Pop,g=c(),y=g[0],b=g[1],x=s(),P=s();function E(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var a=n.location.href,r=a.indexOf("#");t=-1===r?a:a.slice(0,r)}return t}()+"#"+("string"==typeof e?e:f(e))}function k(e,t){return void 0===t&&(t=null),i({pathname:b.pathname,hash:"",search:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function C(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function w(e,t,n){return!P.length||(P.call({action:e,location:t,retry:n}),!1)}function S(e){d=e;var t=c();y=t[0],b=t[1],x.call({action:d,location:b})}function R(e){r.go(e)}return null==y&&(y=0,r.replaceState(i({},r.state,{idx:y}),"")),{get action(){return d},get location(){return b},createHref:E,push:function e(t,i){var o=a.Push,u=k(t,i);if(w(o,u,(function(){e(t,i)}))){var c=C(u,y+1),l=c[0],s=c[1];try{r.pushState(l,"",s)}catch(e){n.location.assign(s)}S(o)}},replace:function e(t,n){var i=a.Replace,o=k(t,n);if(w(i,o,(function(){e(t,n)}))){var u=C(o,y),c=u[0],l=u[1];r.replaceState(c,"",l),S(i)}},go:R,back:function(){R(-1)},forward:function(){R(1)},listen:function(e){return x.push(e)},block:function(e){var t=P.push(e);return 1===P.length&&n.addEventListener(o,l),function(){t(),P.length||n.removeEventListener(o,l)}}}}({window:c}));let m=v.current,[d,g]=(0,r.useState)({action:m.action,location:m.location});return(0,r.useLayoutEffect)((()=>m.listen(g)),[m]),(0,r.createElement)(Q,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:m})}function oe(e){let{basename:t,children:n,history:a}=e;const[i,o]=(0,r.useState)({action:a.action,location:a.location});return(0,r.useLayoutEffect)((()=>a.listen(o)),[a]),(0,r.createElement)(Q,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}const ue=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:a,replace:i=!1,state:o,target:u,to:c}=e,l=te(e,ne),s=$(c),h=le(c,{replace:i,state:o,target:u});return(0,r.createElement)("a",ee({},l,{href:s,onClick:function(e){n&&n(e),e.defaultPrevented||a||h(e)},ref:t,target:u}))})),ce=(0,r.forwardRef)((function(e,t){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:o=!1,style:u,to:c,children:l}=e,s=te(e,ae),h=j(),f=D(c),p=h.pathname,v=f.pathname;a||(p=p.toLowerCase(),v=v.toLowerCase());let m,d=p===v||!o&&p.startsWith(v)&&"/"===p.charAt(v.length),g=d?n:void 0;m="function"==typeof i?i({isActive:d}):[i,d?"active":null].filter(Boolean).join(" ");let y="function"==typeof u?u({isActive:d}):u;return(0,r.createElement)(ue,ee({},s,{"aria-current":g,className:m,ref:t,style:y,to:c}),"function"==typeof l?l({isActive:d}):l)}));function le(e,t){let{target:n,replace:a,state:i}=void 0===t?{}:t,o=H(),u=j(),c=D(e);return(0,r.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!a||f(u)===f(c);o(e,{replace:n,state:i})}}),[u,o,c,a,i,n,e])}function se(e){let t=(0,r.useRef)(he(e)),n=j(),a=(0,r.useMemo)((()=>{let e=he(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),i=H();return[a,(0,r.useCallback)(((e,t)=>{i("?"+he(e),t)}),[i])]}function he(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map((e=>[n,e])):[[n,a]])}),[]))}}}]);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * React Router DOM v6.3.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+
12
+ /**
13
+ * React Router v6.3.0
14
+ *
15
+ * Copyright (c) Remix Software Inc.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE.md file in the root directory of this source tree.
19
+ *
20
+ * @license MIT
21
+ */
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,r,t={2684:(e,r,t)=>{"use strict";var n=t(906);t(6217),n.Type.String,n.Type.Array,n.Type.UUID,n.Type.Array,n.Type.String,n.Type.Number,t(3979)},3979:(e,r,t)=>{var n={"./en.json":[3574,574],"./fr.json":[2757,757]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-immunizations-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var s,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),p=0;p<u.length;p++){var f=u[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",r+a),s.src=t),e[t]=[n];var c=(r,n)=>{s.onerror=s.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],s="@openmrs/esm-patient-immunizations-app",l=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:s>a.from))&&(o[r]={get:t,from:s,eager:!!n})},u=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.2-pre.328",(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),l("@openmrs/esm-patient-common-lib","4.0.1-pre.474",(()=>Promise.all([o.e(724),o.e(268),o.e(924),o.e(444),o.e(382),o.e(660)]).then((()=>()=>o(382))))),l("react-i18next","11.18.6",(()=>Promise.all([o.e(709),o.e(268)]).then((()=>()=>o(709))))),l("react","18.2.0",(()=>o.e(784).then((()=>()=>o(2784))))),l("rxjs","6.6.7",(()=>o.e(206).then((()=>()=>o(5206)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return n}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():r(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,f=s<r.length?(typeof r[s])[0]:"";if(i>=n.length||"o"==(p=(typeof(u=n[i]))[0]))return!l||("u"==f?s>o&&!a:""==f!=a);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=o){if(u!=r[s])return!1}else{if(a?u>r[s]:u<r[s])return!1;u!=r[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||p<f!=a)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(i=1;i<r.length;i++){var m=r[i];c.push(1==m?d()|d():2==m?d()&d():m?t(m,n):!d())}return!!d()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,s)=>{var l=n(e,a);return t(s,l)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,l,s)),i(e[a][l])},i=e=>(e.loaded=1,e.get()),s=e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)},l=s(((e,r,t,a)=>r&&o.o(r,t)?((e,r,t,o)=>{var a=n(e,t);return i(e[t][a])})(r,0,t):a())),u=s(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),p={},f={268:()=>u("default","react",[1,18],(()=>o.e(784).then((()=>()=>o(2784))))),4924:()=>u("default","react-i18next",[1,11],(()=>o.e(709).then((()=>()=>o(709))))),2444:()=>u("default","rxjs",[1,6],(()=>o.e(206).then((()=>()=>o(5206))))),6081:()=>l("default","@openmrs/esm-framework/src/internal",(()=>o.e(858).then((()=>()=>o(6858))))),906:()=>u("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),6217:()=>u("default","@openmrs/esm-patient-common-lib",[1,4],(()=>Promise.all([o.e(724),o.e(268),o.e(924),o.e(444),o.e(382)]).then((()=>()=>o(382)))))};[906,6217].forEach((e=>{o.m[e]=r=>{p[e]=0,delete o.c[e];var t=f[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var c={268:[268],382:[6081],444:[2444],660:[906,6217],924:[4924]};o.f.consumes=(e,r)=>{o.o(c,e)&&c[e].forEach((e=>{if(o.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,o.m[e]=t=>{delete o.c[e],t.exports=r()}},n=r=>{delete p[e],o.m[e]=t=>{throw delete o.c[e],r}};try{var a=f[e]();a.then?r.push(p[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,660:0,684:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|444|660|924)$/.test(r))e[r]=0;else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),s=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[i,s,l]=t,u=0;if(i.some((r=>0!==e[r]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);l&&l(o)}for(r&&r(t);u<i.length;u++)a=i[u],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.nc=void 0,o(2684)})();
1
+ (()=>{var e,r,t={2684:(e,r,t)=>{"use strict";var n=t(906);t(6217),n.Type.String,n.Type.Array,n.Type.UUID,n.Type.Array,n.Type.String,n.Type.Number,t(3979)},3979:(e,r,t)=>{var n={"./en.json":[3574,574],"./fr.json":[2757,757]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-immunizations-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,s;if(void 0!==a)for(var u=document.getElementsByTagName("script"),p=0;p<u.length;p++){var f=u[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var d=(r,n)=>{l.onerror=l.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-patient-immunizations-app",s=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.2-pre.328",(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),s("@openmrs/esm-patient-common-lib","4.0.1-pre.477",(()=>Promise.all([o.e(724),o.e(268),o.e(924),o.e(444),o.e(382),o.e(660)]).then((()=>()=>o(382))))),s("react-i18next","11.18.6",(()=>Promise.all([o.e(709),o.e(268)]).then((()=>()=>o(709))))),s("react-router-dom","6.3.0",(()=>Promise.all([o.e(97),o.e(268)]).then((()=>()=>o(7097))))),s("react","18.2.0",(()=>o.e(784).then((()=>()=>o(2784))))),s("rxjs","6.6.7",(()=>o.e(206).then((()=>()=>o(5206)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return n}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():r(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=n.length||"o"==(p=(typeof(u=n[i]))[0]))return!s||("u"==f?l>o&&!a:""==f!=a);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=o){if(u!=r[l])return!1}else{if(a?u>r[l]:u<r[l])return!1;u!=r[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(a||l<=o)return!1;s=!1,l--}else{if(l<=o||p<f!=a)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<r.length;i++){var m=r[i];d.push(1==m?c()|c():2==m?c()&c():m?t(m,n):!c())}return!!c()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,l)=>{var s=n(e,a);return t(l,s)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,s,l)),i(e[a][s])},i=e=>(e.loaded=1,e.get()),l=e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)},s=l(((e,r,t,a)=>r&&o.o(r,t)?((e,r,t,o)=>{var a=n(e,t);return i(e[t][a])})(r,0,t):a())),u=l(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),p={},f={268:()=>u("default","react",[1,18],(()=>o.e(784).then((()=>()=>o(2784))))),4924:()=>u("default","react-i18next",[1,11],(()=>o.e(709).then((()=>()=>o(709))))),2444:()=>u("default","rxjs",[1,6],(()=>o.e(206).then((()=>()=>o(5206))))),6081:()=>s("default","@openmrs/esm-framework/src/internal",(()=>o.e(858).then((()=>()=>o(6858))))),7228:()=>u("default","react-router-dom",[1,6],(()=>o.e(97).then((()=>()=>o(7097))))),906:()=>u("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),6217:()=>u("default","@openmrs/esm-patient-common-lib",[1,4],(()=>Promise.all([o.e(724),o.e(268),o.e(924),o.e(444),o.e(382)]).then((()=>()=>o(382)))))};[906,6217].forEach((e=>{o.m[e]=r=>{p[e]=0,delete o.c[e];var t=f[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var d={268:[268],382:[6081,7228],444:[2444],660:[906,6217],924:[4924]};o.f.consumes=(e,r)=>{o.o(d,e)&&d[e].forEach((e=>{if(o.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,o.m[e]=t=>{delete o.c[e],t.exports=r()}},n=r=>{delete p[e],o.m[e]=t=>{throw delete o.c[e],r}};try{var a=f[e]();a.then?r.push(p[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,660:0,684:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|444|660|924)$/.test(r))e[r]=0;else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[i,l,s]=t,u=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);s&&s(o)}for(r&&r(t);u<i.length;u++)a=i[u],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.nc=void 0,o(2684)})();
@@ -1 +1 @@
1
- var _openmrs_esm_patient_immunizations_app;(()=>{function j(a){var b=g[a];if(void 0!==b)return b.exports;var c=g[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,j),c.loaded=!0,c.exports}var k,q,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M={6278:(b,c,d)=>{var f={"./start":()=>d.e(684).then(()=>()=>d(2684))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},g={};j.m=M,j.c=g,j.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return j.d(b,{a:b}),b},j.d=(a,b)=>{for(var c in b)j.o(b,c)&&!j.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},j.f={},j.e=a=>Promise.all(Object.keys(j.f).reduce((b,c)=>(j.f[c](a,b),b),[])),j.u=a=>a+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),j.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},q="@openmrs/esm-patient-immunizations-app:",j.l=(a,b,c)=>{if(k[a])k[a].push(b);else{var e,g;if(void 0!==c)for(var h,m=document.getElementsByTagName("script"),l=0;l<m.length;l++)if(h=m[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==q+c){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,j.nc&&e.setAttribute("nonce",j.nc),e.setAttribute("data-webpack",q+c),e.src=a),k[a]=[b];var n=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(n.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=n.bind(null,e.onerror),e.onload=n.bind(null,e.onload),g&&document.head.appendChild(e)}},j.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},j.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{j.S={};var b={},c={};j.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];j.o(j.S,d)||(j.S[d]={});var g=j.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-patient-immunizations-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-patient-immunizations-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework","4.0.2-pre.328",()=>Promise.all([j.e(858),j.e(268)]).then(()=>()=>j(6858))),a("@openmrs/esm-patient-common-lib","4.0.1-pre.474",()=>Promise.all([j.e(724),j.e(268),j.e(924),j.e(444),j.e(382),j.e(660)]).then(()=>()=>j(382))),a("react-i18next","11.18.6",()=>Promise.all([j.e(709),j.e(268)]).then(()=>()=>j(709))),a("react","18.2.0",()=>j.e(784).then(()=>()=>j(2784))),a("rxjs","6.6.7",()=>j.e(206).then(()=>()=>j(5206)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),(()=>{var a;j.g.importScripts&&(a=j.g.location+"");var b=j.g.document;if(!a&&b&&(b.currentScript&&(a=b.currentScript.src),!a)){var c=b.getElementsByTagName("script");c.length&&(a=c[c.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=a})(),x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},y=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},z=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():z(i))}return c()},A=(a,b)=>{if(0 in a){b=x(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var h=0,j=1,k=!0;;j++,h++){var o,q,t=j<a.length?(typeof a[j])[0]:"";if(h>=b.length||"o"==(q=(typeof(o=b[h]))[0]))return!k||("u"==t?j>e&&!g:""==t!=g);if("u"==q){if(!k||"u"!=t)return!1;}else if(!k)"s"!=t&&"n"!=t&&(k=!1,j--);else if(t==q){if(!(j<=e)){if(g?o>a[j]:o<a[j])return!1;o!=a[j]&&(k=!1)}else if(o!=a[j])return!1;}else if("s"!=t&&"n"!=t){if(g||j<=e)return!1;k=!1,j--}else{if(j<=e||q<t!=g)return!1;k=!1}}}var f=[],d=f.pop.bind(f);for(h=1;h<a.length;h++){var m=a[h];f.push(1==m?d()|d():2==m?d()&d():m?A(m,b):!d())}return!!d()},B=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!y(a,b))?a:b,0)},C=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+z(d)+")",D=(a,b,c)=>{var d=B(a,c);return F(a[c][d])},E=(a,b,c,d)=>{var e=B(a,c);return A(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(C(a,c,e,d)),F(a[c][e])},F=a=>(a.loaded=1,a.get()),H=(G=b=>function(c,d,e,f){var g=j.I(c);return g&&g.then?g.then(b.bind(b,c,j.S[c],d,e,f)):b(c,j.S[c],d,e,f)})((a,b,c,d)=>b&&j.o(b,c)?D(b,0,c):d()),I=G((a,b,c,d,e)=>b&&j.o(b,c)?E(b,0,c,d):e()),J={},K={268:()=>I("default","react",[1,18],()=>j.e(784).then(()=>()=>j(2784))),4924:()=>I("default","react-i18next",[1,11],()=>j.e(709).then(()=>()=>j(709))),2444:()=>I("default","rxjs",[1,6],()=>j.e(206).then(()=>()=>j(5206))),6081:()=>H("default","@openmrs/esm-framework/src/internal",()=>j.e(858).then(()=>()=>j(6858))),906:()=>I("default","@openmrs/esm-framework",[1,4],()=>Promise.all([j.e(858),j.e(268)]).then(()=>()=>j(6858))),6217:()=>I("default","@openmrs/esm-patient-common-lib",[1,4],()=>Promise.all([j.e(724),j.e(268),j.e(924),j.e(444),j.e(382)]).then(()=>()=>j(382)))},L={268:[268],382:[6081],444:[2444],660:[906,6217],684:[906,6217],924:[4924]},j.f.consumes=(a,b)=>{j.o(L,a)&&L[a].forEach(a=>{if(j.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,j.m[a]=c=>{delete j.c[a],c.exports=b()}},d=b=>{delete J[a],j.m[a]=()=>{throw delete j.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={537:0};j.f.j=(c,d)=>{var e=j.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(268|444|660|924)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=j.p+j.u(c),h=new Error;j.l(g,d=>{if(j.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)j.o(a,e)&&(j.m[e]=a[e]);h&&h(j)}for(c&&c(d);i<g.length;i++)f=g[i],j.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),j.nc=void 0;var b=j(6278);_openmrs_esm_patient_immunizations_app=b})();
1
+ var _openmrs_esm_patient_immunizations_app;(()=>{function j(a){var b=g[a];if(void 0!==b)return b.exports;var c=g[a]={id:a,loaded:!1,exports:{}};return M[a].call(c.exports,c,c.exports,j),c.loaded=!0,c.exports}var k,q,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M={6278:(b,c,d)=>{var f={"./start":()=>d.e(684).then(()=>()=>d(2684))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},g={};j.m=M,j.c=g,j.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return j.d(b,{a:b}),b},j.d=(a,b)=>{for(var c in b)j.o(b,c)&&!j.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},j.f={},j.e=a=>Promise.all(Object.keys(j.f).reduce((b,c)=>(j.f[c](a,b),b),[])),j.u=a=>a+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),j.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),k={},q="@openmrs/esm-patient-immunizations-app:",j.l=(a,b,c)=>{if(k[a])k[a].push(b);else{var e,g;if(void 0!==c)for(var h,m=document.getElementsByTagName("script"),l=0;l<m.length;l++)if(h=m[l],h.getAttribute("src")==a||h.getAttribute("data-webpack")==q+c){e=h;break}e||(g=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,j.nc&&e.setAttribute("nonce",j.nc),e.setAttribute("data-webpack",q+c),e.src=a),k[a]=[b];var n=(b,c)=>{e.onerror=e.onload=null,clearTimeout(f);var d=k[a];if(delete k[a],e.parentNode&&e.parentNode.removeChild(e),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(n.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=n.bind(null,e.onerror),e.onload=n.bind(null,e.onload),g&&document.head.appendChild(e)}},j.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},j.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{j.S={};var b={},c={};j.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];j.o(j.S,d)||(j.S[d]={});var g=j.S[d],a=(a,b,c,d)=>{var e=g[a]=g[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-patient-immunizations-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-patient-immunizations-app",eager:!!d})},h=[];return"default"===d&&(a("@openmrs/esm-framework","4.0.2-pre.328",()=>Promise.all([j.e(858),j.e(268)]).then(()=>()=>j(6858))),a("@openmrs/esm-patient-common-lib","4.0.1-pre.477",()=>Promise.all([j.e(724),j.e(268),j.e(924),j.e(444),j.e(382),j.e(660)]).then(()=>()=>j(382))),a("react-i18next","11.18.6",()=>Promise.all([j.e(709),j.e(268)]).then(()=>()=>j(709))),a("react-router-dom","6.3.0",()=>Promise.all([j.e(97),j.e(268)]).then(()=>()=>j(7097))),a("react","18.2.0",()=>j.e(784).then(()=>()=>j(2784))),a("rxjs","6.6.7",()=>j.e(206).then(()=>()=>j(5206)))),b[d]=h.length?Promise.all(h).then(()=>b[d]=1):1}}})(),(()=>{var a;j.g.importScripts&&(a=j.g.location+"");var b=j.g.document;if(!a&&b&&(b.currentScript&&(a=b.currentScript.src),!a)){var c=b.getElementsByTagName("script");c.length&&(a=c[c.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=a})(),x=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},y=(b,c)=>{b=x(b),c=x(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},z=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():z(i))}return c()},A=(a,b)=>{if(0 in a){b=x(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var h=0,j=1,k=!0;;j++,h++){var o,q,t=j<a.length?(typeof a[j])[0]:"";if(h>=b.length||"o"==(q=(typeof(o=b[h]))[0]))return!k||("u"==t?j>e&&!g:""==t!=g);if("u"==q){if(!k||"u"!=t)return!1;}else if(!k)"s"!=t&&"n"!=t&&(k=!1,j--);else if(t==q){if(!(j<=e)){if(g?o>a[j]:o<a[j])return!1;o!=a[j]&&(k=!1)}else if(o!=a[j])return!1;}else if("s"!=t&&"n"!=t){if(g||j<=e)return!1;k=!1,j--}else{if(j<=e||q<t!=g)return!1;k=!1}}}var f=[],d=f.pop.bind(f);for(h=1;h<a.length;h++){var m=a[h];f.push(1==m?d()|d():2==m?d()&d():m?A(m,b):!d())}return!!d()},B=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!y(a,b))?a:b,0)},C=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+z(d)+")",D=(a,b,c)=>{var d=B(a,c);return F(a[c][d])},E=(a,b,c,d)=>{var e=B(a,c);return A(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(C(a,c,e,d)),F(a[c][e])},F=a=>(a.loaded=1,a.get()),H=(G=b=>function(c,d,e,f){var g=j.I(c);return g&&g.then?g.then(b.bind(b,c,j.S[c],d,e,f)):b(c,j.S[c],d,e,f)})((a,b,c,d)=>b&&j.o(b,c)?D(b,0,c):d()),I=G((a,b,c,d,e)=>b&&j.o(b,c)?E(b,0,c,d):e()),J={},K={268:()=>I("default","react",[1,18],()=>j.e(784).then(()=>()=>j(2784))),4924:()=>I("default","react-i18next",[1,11],()=>j.e(709).then(()=>()=>j(709))),2444:()=>I("default","rxjs",[1,6],()=>j.e(206).then(()=>()=>j(5206))),6081:()=>H("default","@openmrs/esm-framework/src/internal",()=>j.e(858).then(()=>()=>j(6858))),7228:()=>I("default","react-router-dom",[1,6],()=>j.e(97).then(()=>()=>j(7097))),906:()=>I("default","@openmrs/esm-framework",[1,4],()=>Promise.all([j.e(858),j.e(268)]).then(()=>()=>j(6858))),6217:()=>I("default","@openmrs/esm-patient-common-lib",[1,4],()=>Promise.all([j.e(724),j.e(268),j.e(924),j.e(444),j.e(382)]).then(()=>()=>j(382)))},L={268:[268],382:[6081,7228],444:[2444],660:[906,6217],684:[906,6217],924:[4924]},j.f.consumes=(a,b)=>{j.o(L,a)&&L[a].forEach(a=>{if(j.o(J,a))return b.push(J[a]);var c=b=>{J[a]=0,j.m[a]=c=>{delete j.c[a],c.exports=b()}},d=b=>{delete J[a],j.m[a]=()=>{throw delete j.c[a],b}};try{var e=K[a]();e.then?b.push(J[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={537:0};j.f.j=(c,d)=>{var e=j.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(268|444|660|924)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var g=j.p+j.u(c),h=new Error;j.l(g,d=>{if(j.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),g=d&&d.target&&d.target.src;h.message="Loading chunk "+c+" failed.\n("+f+": "+g+")",h.name="ChunkLoadError",h.type=f,h.request=g,e[1](h)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[g,a,h]=d,i=0;if(g.some(a=>0!==b[a])){for(e in a)j.o(a,e)&&(j.m[e]=a[e]);h&&h(j)}for(c&&c(d);i<g.length;i++)f=g[i],j.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),j.nc=void 0;var b=j(6278);_openmrs_esm_patient_immunizations_app=b})();
@@ -1,5 +1,30 @@
1
1
  {
2
2
  "chunks": [
3
+ {
4
+ "rendered": true,
5
+ "initial": false,
6
+ "entry": false,
7
+ "recorded": false,
8
+ "reason": "reused as split chunk (cache group: defaultVendors)",
9
+ "size": 68158,
10
+ "sizes": {
11
+ "javascript": 68158
12
+ },
13
+ "names": [],
14
+ "idHints": [
15
+ "vendors"
16
+ ],
17
+ "runtime": [
18
+ "@openmrs/esm-patient-immunizations-app",
19
+ "main"
20
+ ],
21
+ "files": [
22
+ "97.js"
23
+ ],
24
+ "auxiliaryFiles": [],
25
+ "hash": "9a890892eb25ae66c534",
26
+ "childrenByOrder": {}
27
+ },
3
28
  {
4
29
  "rendered": true,
5
30
  "initial": false,
@@ -27,12 +52,12 @@
27
52
  "initial": true,
28
53
  "entry": true,
29
54
  "recorded": false,
30
- "size": 25834,
55
+ "size": 26223,
31
56
  "sizes": {
32
57
  "consume-shared": 84,
33
58
  "javascript": 5071,
34
- "share-init": 210,
35
- "runtime": 20469
59
+ "share-init": 252,
60
+ "runtime": 20816
36
61
  },
37
62
  "names": [
38
63
  "main"
@@ -45,7 +70,7 @@
45
70
  "main.js"
46
71
  ],
47
72
  "auxiliaryFiles": [],
48
- "hash": "a091dd8e230139d6dd11",
73
+ "hash": "90cba0e99bcc75d8a4c2",
49
74
  "childrenByOrder": {}
50
75
  },
51
76
  {
@@ -147,10 +172,10 @@
147
172
  "entry": false,
148
173
  "recorded": false,
149
174
  "reason": "reused as split chunk (cache group: default)",
150
- "size": 89265,
175
+ "size": 89350,
151
176
  "sizes": {
152
- "javascript": 89223,
153
- "consume-shared": 42
177
+ "javascript": 89266,
178
+ "consume-shared": 84
154
179
  },
155
180
  "names": [],
156
181
  "idHints": [],
@@ -162,7 +187,7 @@
162
187
  "382.js"
163
188
  ],
164
189
  "auxiliaryFiles": [],
165
- "hash": "3ac345bb9c59c9770413",
190
+ "hash": "deff253fe5b482371cc5",
166
191
  "childrenByOrder": {}
167
192
  },
168
193
  {
@@ -191,11 +216,11 @@
191
216
  "initial": true,
192
217
  "entry": true,
193
218
  "recorded": false,
194
- "size": 20348,
219
+ "size": 20737,
195
220
  "sizes": {
196
221
  "javascript": 42,
197
- "share-init": 210,
198
- "runtime": 20096
222
+ "share-init": 252,
223
+ "runtime": 20443
199
224
  },
200
225
  "names": [
201
226
  "@openmrs/esm-patient-immunizations-app"
@@ -208,7 +233,7 @@
208
233
  "openmrs-esm-patient-immunizations-app.js"
209
234
  ],
210
235
  "auxiliaryFiles": [],
211
- "hash": "921b815d6dadded8d9d2",
236
+ "hash": "0a42ff0b11c19214db95",
212
237
  "childrenByOrder": {}
213
238
  },
214
239
  {
@@ -272,7 +297,7 @@
272
297
  "684.js"
273
298
  ],
274
299
  "auxiliaryFiles": [],
275
- "hash": "0203d4043233c0c0d1d9",
300
+ "hash": "4cd32551aff0d5812e88",
276
301
  "childrenByOrder": {}
277
302
  },
278
303
  {
@@ -1 +1 @@
1
- var _openmrs_esm_patient_immunizations_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,m,c,h,v,g={6278:(e,r,t)=>{var n={"./start":()=>t.e(684).then((()=>()=>t(2684)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-immunizations-app:",y.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-patient-immunizations-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.2-pre.328",(()=>Promise.all([y.e(858),y.e(268)]).then((()=>()=>y(6858))))),s("@openmrs/esm-patient-common-lib","4.0.1-pre.474",(()=>Promise.all([y.e(724),y.e(268),y.e(924),y.e(444),y.e(382),y.e(660)]).then((()=>()=>y(382))))),s("react-i18next","11.18.6",(()=>Promise.all([y.e(709),y.e(268)]).then((()=>()=>y(709))))),s("react","18.2.0",(()=>y.e(784).then((()=>()=>y(2784))))),s("rxjs","6.6.7",(()=>y.e(206).then((()=>()=>y(5206)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==f?s>n&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=n){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],m=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?m()|m():2==c?m()&m():c?a(c,r):!m())}return!!m()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return p(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),d=(f=e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(r,y.S[r],t,n,o)})(((e,r,t,n)=>r&&y.o(r,t)?l(r,0,t):n())),m=f(((e,r,t,n,o)=>r&&y.o(r,t)?u(r,0,t,n):o())),c={},h={268:()=>m("default","react",[1,18],(()=>y.e(784).then((()=>()=>y(2784))))),4924:()=>m("default","react-i18next",[1,11],(()=>y.e(709).then((()=>()=>y(709))))),2444:()=>m("default","rxjs",[1,6],(()=>y.e(206).then((()=>()=>y(5206))))),6081:()=>d("default","@openmrs/esm-framework/src/internal",(()=>y.e(858).then((()=>()=>y(6858))))),906:()=>m("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([y.e(858),y.e(268)]).then((()=>()=>y(6858))))),6217:()=>m("default","@openmrs/esm-patient-common-lib",[1,4],(()=>Promise.all([y.e(724),y.e(268),y.e(924),y.e(444),y.e(382)]).then((()=>()=>y(382)))))},v={268:[268],382:[6081],444:[2444],660:[906,6217],684:[906,6217],924:[4924]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(c,e))return r.push(c[e]);var t=r=>{c[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete c[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=h[e]();o.then?r.push(c[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={537:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|444|660|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);l<a.length;l++)o=a[l],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var w=y(6278);_openmrs_esm_patient_immunizations_app=w})();
1
+ var _openmrs_esm_patient_immunizations_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,f,d,m,c,h,v,g={6278:(e,r,t)=>{var n={"./start":()=>t.e(684).then((()=>()=>t(2684)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-immunizations-app:",y.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-patient-immunizations-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.2-pre.328",(()=>Promise.all([y.e(858),y.e(268)]).then((()=>()=>y(6858))))),s("@openmrs/esm-patient-common-lib","4.0.1-pre.477",(()=>Promise.all([y.e(724),y.e(268),y.e(924),y.e(444),y.e(382),y.e(660)]).then((()=>()=>y(382))))),s("react-i18next","11.18.6",(()=>Promise.all([y.e(709),y.e(268)]).then((()=>()=>y(709))))),s("react-router-dom","6.3.0",(()=>Promise.all([y.e(97),y.e(268)]).then((()=>()=>y(7097))))),s("react","18.2.0",(()=>y.e(784).then((()=>()=>y(2784))))),s("rxjs","6.6.7",(()=>y.e(206).then((()=>()=>y(5206)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==f?s>n&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=n){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var d=[],m=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?m()|m():2==c?m()&m():c?a(c,r):!m())}return!!m()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return p(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),d=(f=e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(r,y.S[r],t,n,o)})(((e,r,t,n)=>r&&y.o(r,t)?l(r,0,t):n())),m=f(((e,r,t,n,o)=>r&&y.o(r,t)?u(r,0,t,n):o())),c={},h={268:()=>m("default","react",[1,18],(()=>y.e(784).then((()=>()=>y(2784))))),4924:()=>m("default","react-i18next",[1,11],(()=>y.e(709).then((()=>()=>y(709))))),2444:()=>m("default","rxjs",[1,6],(()=>y.e(206).then((()=>()=>y(5206))))),6081:()=>d("default","@openmrs/esm-framework/src/internal",(()=>y.e(858).then((()=>()=>y(6858))))),7228:()=>m("default","react-router-dom",[1,6],(()=>y.e(97).then((()=>()=>y(7097))))),906:()=>m("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([y.e(858),y.e(268)]).then((()=>()=>y(6858))))),6217:()=>m("default","@openmrs/esm-patient-common-lib",[1,4],(()=>Promise.all([y.e(724),y.e(268),y.e(924),y.e(444),y.e(382)]).then((()=>()=>y(382)))))},v={268:[268],382:[6081,7228],444:[2444],660:[906,6217],684:[906,6217],924:[4924]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(c,e))return r.push(c[e]);var t=r=>{c[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete c[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=h[e]();o.then?r.push(c[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={537:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|444|660|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);l<a.length;l++)o=a[l],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_patient_immunizations_app=self.webpackChunk_openmrs_esm_patient_immunizations_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var w=y(6278);_openmrs_esm_patient_immunizations_app=w})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-immunizations-app",
3
- "version": "4.0.1-pre.474",
3
+ "version": "4.0.1-pre.477",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Patient immunizations microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-patient-immunizations-app.js",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@carbon/react": "^1.12.0",
37
- "@openmrs/esm-patient-common-lib": "^4.0.1-pre.474",
37
+ "@openmrs/esm-patient-common-lib": "^4.0.1-pre.477",
38
38
  "lodash-es": "^4.17.15"
39
39
  },
40
40
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "webpack": "^5.74.0"
51
51
  },
52
- "gitHead": "27eaf226e4d16556dce787471ad7f1b09b665256"
52
+ "gitHead": "bbc4b4e43bb81ce1878308e52a90f1418418425b"
53
53
  }