@openmrs/esm-ward-app 11.1.1-pre.9708 → 11.1.1-pre.9714
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/1442.js +1 -0
- package/dist/1442.js.map +1 -0
- package/dist/1780.js +1 -1
- package/dist/2152.js +1 -0
- package/dist/2152.js.map +1 -0
- package/dist/3560.js +1 -1
- package/dist/3989.js +1 -1
- package/dist/3989.js.map +1 -1
- package/dist/4560.js +1 -0
- package/dist/4560.js.map +1 -0
- package/dist/581.js +1 -1
- package/dist/7209.js +1 -0
- package/dist/7209.js.map +1 -0
- package/dist/9061.js +1 -1
- package/dist/9061.js.map +1 -1
- package/dist/9590.js +1 -0
- package/dist/9590.js.map +1 -0
- package/dist/9771.js +1 -1
- package/dist/9771.js.map +1 -1
- package/dist/992.js +1 -1
- package/dist/openmrs-esm-ward-app.js +2 -2
- package/dist/openmrs-esm-ward-app.js.buildmanifest.json +162 -96
- package/dist/openmrs-esm-ward-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/dist/1744.js +0 -1
- package/dist/1744.js.map +0 -1
package/dist/7209.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["7209"],{5216(e,a,s){s.r(a),s.d(a,{SWRConfig:()=>l.S,default:()=>l.u,mutate:()=>p.k,preload:()=>u.preload,unload:()=>p.l,unstable_serialize:()=>o,useSWRConfig:()=>u.useSWRConfig});var l=s(4675),p=s(4079),u=s(2372);let o=e=>(0,p.s)(e)[0]}}]);
|
package/dist/7209.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"7209.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/index/index.mjs"],"names":[],"mappings":"0UAMA,IAAM,EAAqB,AAAC,GAAM,QAAU,EAAI,CAAC,EAAE,A"}
|
package/dist/9061.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9061"],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9061"],{9876(e,a,r){r.r(a),r.d(a,{default:()=>d,immutable:()=>s});var l=r(4675),t=r(2372);let s=e=>(a,r,l)=>(l.revalidateOnFocus=!1,l.revalidateIfStale=!1,l.revalidateOnReconnect=!1,l.refreshInterval=0,e(a,r,l)),d=(0,t.withMiddleware)(l.u,s)}}]);
|
package/dist/9061.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"9061.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/
|
|
1
|
+
{"version":3,"file":"9061.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":[],"mappings":"+MAGA,IAAM,EAAY,AAAC,GAAa,CAAC,EAAK,EAAS,KAEvC,EAAO,iBAAiB,CAAG,GAC3B,EAAO,iBAAiB,CAAG,GAC3B,EAAO,qBAAqB,CAAG,GAC/B,EAAO,eAAe,CAAG,EAClB,EAAW,EAAK,EAAS,IAElC,EAAkB,qBAAe,GAAM,CAAE,E"}
|
package/dist/9590.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9590"],{5216(e,a,s){s.r(a),s.d(a,{SWRConfig:()=>l.S,default:()=>l.u,mutate:()=>p.k,preload:()=>u.preload,unload:()=>p.l,unstable_serialize:()=>o,useSWRConfig:()=>u.useSWRConfig});var l=s(4675),p=s(4079),u=s(2372);let o=e=>(0,p.s)(e)[0]}}]);
|
package/dist/9590.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"9590.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/index/index.mjs"],"names":[],"mappings":"0UAMA,IAAM,EAAqB,AAAC,GAAM,QAAU,EAAI,CAAC,EAAE,A"}
|
package/dist/9771.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9771"],{
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["9771"],{2470(e,t,a){a.r(t),a.d(t,{default:()=>_,infinite:()=>d,unstable_serialize:()=>c});var r=a(7125),l=a(4675),i=a(4079),n=a(2372),u=a(8139);let s=e=>(0,i.s)(e?e(0,null):null)[0],c=e=>"$inf$"+s(e),o=Promise.resolve(),d=e=>(t,a,l)=>{let n,c=(0,r.useRef)(!1),{cache:d,initialSize:_=1,revalidateAll:f=!1,persistSize:p=!1,revalidateFirstPage:b=!0,revalidateOnMount:g=!1,parallel:m=!1}=l,[,,,h]=i.a.get(i.o);try{(n=s(t))&&(n="$inf$"+n)}catch(e){}let[k,w,y]=(0,i.c)(d,n),v=(0,r.useCallback)(()=>(0,i.i)(k()._l)?_:k()._l,[d,n,_]);(0,u.useSyncExternalStore)((0,r.useCallback)(e=>n?y(n,()=>{e()}):()=>{},[d,n]),v,v);let C=(0,r.useCallback)(()=>{let e=k()._l;return(0,i.i)(e)?_:e},[n,_]),$=(0,r.useRef)(C());(0,i.u)(()=>{if(!c.current){c.current=!0;return}n&&w({_l:p?$.current:C()})},[n,d]);let U=g&&!c.current,z=e(n,async e=>{let r=k()._i,n=k()._r,u=i.a.get(d),s=u[8],c=()=>u[8]!==s;w({_r:i.U});let o=[],_=C(),[p]=(0,i.c)(d,e),g=p().data,y=[],v=null;for(let e=0;e<_;++e){let[u,s]=(0,i.s)(t(e,m?null:v));if(!u)break;let[_,p]=(0,i.c)(d,u),k=_().data,w=f||r||(0,i.i)(k)||b&&!e&&!(0,i.i)(g)||U||g&&!(0,i.i)(g[e])&&!l.compare(g[e],k);if(a&&("function"==typeof n?n(k,s):w)){let t=async()=>{if(u in h){let e=h[u];delete h[u],k=await e}else k=await a(s);c()||p({data:k,_k:s}),o[e]=k};m?y.push(t):await t()}else o[e]=k;m||(v=k)}return m&&await Promise.all(y.map(e=>e())),c()||w({_i:i.U}),o},l),L=(0,r.useCallback)(function(e,t){let a="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==a.revalidate;return n?(r&&((0,i.i)(e)?w({_i:!0,_r:a.revalidate}):w({_i:!1,_r:a.revalidate})),arguments.length?z.mutate(e,{...a,revalidate:r}):z.mutate()):o},[n,d]),P=(0,r.useCallback)(e=>{let a;if(!n)return o;let[,r]=(0,i.c)(d,n);if((0,i.e)(e)?a=e(C()):"number"==typeof e&&(a=e),"number"!=typeof a)return o;r({_l:a}),$.current=a;let l=[],[u]=(0,i.c)(d,n),s=null;for(let e=0;e<a;++e){let[a]=(0,i.s)(t(e,s)),[r]=(0,i.c)(d,a),n=a?r().data:i.U;if((0,i.i)(n))return L(u().data);l.push(n),s=n}return L(l)},[n,d,L,C]);return{size:C(),setSize:P,mutate:L,get data(){return z.data},get error(){return z.error},get isValidating(){return z.isValidating},get isLoading(){return z.isLoading}}},_=(0,n.withMiddleware)(l.u,d)}}]);
|
package/dist/9771.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"9771.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/infinite/index.mjs"],"names":["r","Object","u","e","window","i","s","c","f","setTimeout","Date","clearTimeout","Error","Promise","arguments"],"mappings":"yIAWA,IAAI,EAAQA,EAAQ,MAIhB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file":"9771.js","sources":["webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/infinite/index.mjs"],"names":["Promise","p","e","i","u","arguments"],"mappings":"qQAOA,IAAM,EAAkB,AAAC,GACd,QAAU,EAAS,EAAO,EAAG,MAAQ,KAAK,CAAC,EAAE,CAElD,EAAqB,AAAC,GACjB,QAAkB,EAAgB,GAKvC,EAAgBA,QAAQ,OAAO,GAC/B,EAAW,AAAC,GAAa,CAAC,EAAQ,EAAI,KACpC,IAKI,EALE,EAAc,aAAO,IACrB,CAAE,MAAO,CAAO,CAAE,cAAc,CAAC,CAAE,gBAAgB,EAAK,CAAEC,YAAAA,EAAc,EAAK,CAAE,sBAAsB,EAAI,CAAE,oBAAoB,EAAK,CAAE,WAAW,EAAK,CAAE,CAAG,EAC3J,IAAO,EAAQ,CAAG,OAAkB,CAAC,GAAK,EAIhD,GAAI,CAEI,AADJ,GAAc,EAAgB,EAAM,GACnB,GAAc,QAAkB,CAAU,CAC/D,CAAE,MAAOC,EAAK,CAEd,CACA,GAAM,CAAC,EAAK,EAAK,EAAe,CAAG,QAAkB,EAAS,GACxD,EAAc,kBAAY,IACf,GAAAC,EAAA,GAAY,IAAM,EAAE,EAAI,EAAc,IAAM,EAAE,CAG5D,CACC,EACA,EACA,EACH,EACD,GAAAC,EAAA,sBAAqB,kBAAY,AAAC,GAC9B,AAAI,EAAoB,EAAe,EAAa,KAChD,GACJ,GACO,KAAK,EAEhB,CACI,EACA,EACH,EAAG,EAAa,GACjB,IAAM,EAAkB,kBAAY,KAChC,IAAM,EAAiB,IAAM,EAAE,CAC/B,MAAO,GAAAD,EAAA,GAAY,GAAkB,EAAc,CAGvD,EAAG,CACC,EACA,EACH,EAEK,EAAkB,aAAO,KAE/B,QAA0B,KACtB,GAAI,CAAC,EAAY,OAAO,CAAE,CACtB,EAAY,OAAO,CAAG,GACtB,MACJ,CACI,GAGA,EAAI,CACA,GAAIF,EAAc,EAAgB,OAAO,CAAG,GAChD,EAGR,EAAG,CACC,E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O,IAAmB,IAAI,EAEzC,EAAK,IAAI,CAAC,GACV,EAAmB,CACvB,CACA,OAAO,EAAO,EAClB,EAEA,CACI,EACA,EACA,EACA,EACH,EAGD,MAAO,CACH,KAAM,IACN,UACA,SACA,IAAI,MAAQ,CACR,OAAO,EAAI,IAAI,AACnB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,qBAAe,GAAM,CAAE,E"}
|
package/dist/992.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["992"],{3356(e,t,a){a.d(t,{A:()=>n});let n={wardPatientCard:"-esm-ward__ward-patient-card__wardPatientCard___NjMVe",wardPatientCardButton:"-esm-ward__ward-patient-card__wardPatientCardButton___Xw-ov",activeWardPatientCardButton:"-esm-ward__ward-patient-card__activeWardPatientCardButton___jp465",wardPatientCardRow:"-esm-ward__ward-patient-card__wardPatientCardRow___O-Jht",wardPatientCardPendingItemsRow:"-esm-ward__ward-patient-card__wardPatientCardPendingItemsRow___MzSq2",wardPatientPendingOrdersRow:"-esm-ward__ward-patient-card__wardPatientPendingOrdersRow___rRApd",wardPatientCardExtensionSlot:"-esm-ward__ward-patient-card__wardPatientCardExtensionSlot___WvNzG",wardPatientCardHeader:"-esm-ward__ward-patient-card__wardPatientCardHeader___5a47N",wardPatientCardHeaderBadge:"-esm-ward__ward-patient-card__wardPatientCardHeaderBadge___xnMNB",wardPatientCardDispositionTypeContainer:"-esm-ward__ward-patient-card__wardPatientCardDispositionTypeContainer___yNAdL",wardPatientName:"-esm-ward__ward-patient-card__wardPatientName___w0ALg",wardPatientBedNumber:"-esm-ward__ward-patient-card__wardPatientBedNumber___dxTfe",empty:"-esm-ward__ward-patient-card__empty___fjKgf",bedNumberBox:"-esm-ward__ward-patient-card__bedNumberBox___IUQwS",movementIcon:"-esm-ward__ward-patient-card__movementIcon___D2yrt",cancelTransferRequestButton:"-esm-ward__ward-patient-card__cancelTransferRequestButton___K2Amt",chemistryReferenceIcon:"-esm-ward__ward-patient-card__chemistryReferenceIcon___+cAiI",wardPatientAddress:"-esm-ward__ward-patient-card__wardPatientAddress___4G9m6",wardPatientObsLabel:"-esm-ward__ward-patient-card__wardPatientObsLabel___XO4yd",responsiveTooltip:"-esm-ward__ward-patient-card__responsiveTooltip___p-jmt",dotSeparatedChildren:"-esm-ward__ward-patient-card__dotSeparatedChildren___OdHvX",skeletonText:"-esm-ward__ward-patient-card__skeletonText___E6V6B",unassignedPatient:"-esm-ward__ward-patient-card__unassignedPatient___XyiyN"}},3724(e,t,a){a.d(t,{A:()=>d});var n=a(2895),r=a(7125),i=a(4498),s=a.n(i);let o=`custom:${[["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map(e=>e.join(":")).join(",")}`;function d(){let e=s()(`${n.restBaseUrl}/emrapi/configuration?v=${o}`,n.openmrsFetch);return(0,r.useMemo)(()=>({emrConfiguration:e.data?.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}),[e])}},160(e,t,a){a.d(t,{k:()=>r});var n=a(2895);function r(e){let t=e?.length>0,a=new URLSearchParams;for(let t of(a.append("v","custom:(visit,patient:(uuid,identifiers:(uuid,display,identifier,identifierType),voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),encounterAssigningToCurrentInpatientLocation:(encounterDatetime),currentInpatientRequest:(dispositionLocation,dispositionType,disposition:(uuid,display),dispositionEncounter:(uuid,display),dispositionObsGroup:(uuid,display),visit:(uuid),patient:(uuid)),firstAdmissionOrTransferEncounter:(encounterDatetime),currentInpatientLocation,)"),e??[]))a.append("patients",t);return(0,n.useOpenmrsFetchAll)(t?`${n.restBaseUrl}/emrapi/inpatient/admission?${a.toString()}`:null)}},9656(e,t,a){a.d(t,{A:()=>o});var n=a(2895),r=a(2745),i=a(4498),s=a.n(i);function o(){let{locationUuid:e}=(0,r.useParams)(),{sessionLocation:t}=(0,n.useSession)(),{data:a,isLoading:i,error:o}=function(e,t="custom:(display,uuid)"){return s()(e?`${n.restBaseUrl}/location/${e}?v=${t}`:null,n.openmrsFetch)}(e||null),d=e&&o;return{location:e?a?.data:t,isLoadingLocation:i,errorFetchingLocation:o,invalidLocation:d}}},3836(e,t,a){a.d(t,{A:()=>l});var n=a(7125),r=a.n(n),i=a(5921),s=a(7768),o=a(2895),d=a(9656),c=a(6794);let l=({wardPatient:e,relatedTransferPatients:t,onAdmitPatientSuccess:a,disabled:l,dispositionType:u,kind:p="ghost",size:_})=>{let{patient:m,visit:w,bed:f}=e??{},{t:y}=(0,i.useTranslation)(),{location:T}=(0,d.A)(),h="tablet"===(0,o.useLayoutType)()?"lg":"md",{wardPatientGroupDetails:g}=(0,o.useAppContext)("ward-view-context")??{},{admitPatient:P,isLoadingEmrConfiguration:E,errorFetchingEmrConfiguration:A}=(0,c.E)(),[C,v]=(0,n.useState)(!1),{launchChildWorkspace:b}=(0,o.useWorkspace2Context)(),k=(0,o.useFeatureFlag)("bedmanagement-module"),L=async()=>{if(k&&!f)b("admit-patient-form-workspace",{wardPatient:e,relatedTransferPatients:t});else{v(!0);let n=[e,...t??[]],r=await Promise.allSettled(n.map(e=>P(e.patient,e.inpatientRequest?.dispositionType??u,e.visit.uuid)));await g?.mutate?.(),r.forEach((e,t)=>{let a=n[t],r=a.patient.person.preferredName.display,i=a.inpatientRequest?.dispositionType??u;if("fulfilled"===e.status)(0,o.showSnackbar)({kind:"success",title:"ADMIT"===i?y("patientAdmittedSuccessfully","Patient admitted successfully"):y("patientTransferredSuccessfully","Patient transferred successfully"),subtitle:"ADMIT"===i?y("patientAdmittedToLocation","{{patientName}} admitted successfully to {{location}}",{patientName:r,location:T?.display}):y("patientTransferredToLocation","{{patientName}} transferred successfully to {{location}}",{patientName:r,location:T?.display})});else{let t=e.reason,a=t?.responseBody?.error?.globalErrors?.[0]?.message??t?.message??y("unknownError","An unknown error occurred");(0,o.showSnackbar)({kind:"error",title:"ADMIT"===i?y("errorAdmittingPatient","Failed to admit {{patientName}}",{patientName:r}):y("errorTransferringPatient","Failed to transfer {{patientName}}",{patientName:r}),subtitle:a})}}),r.some(e=>"fulfilled"===e.status)&&a(),v(!1)}},S=E||A||l||C;return r().createElement(s.$nd,{kind:p,renderIcon:o.ArrowRightIcon,size:_??h,disabled:S,onClick:L},"ADMIT"===u||S?y("admitPatient","Admit patient"):y("transferPatient","Transfer patient"))}},787(e,t,a){a.r(t),a.d(t,{default:()=>y});var n=a(7125),r=a.n(n),i=a(5921),s=a(7768),o=a(2895),d=a(7364),c=a.n(d),l=a(160),u=a(4498),p=a.n(u),_=a(9656),m=a(3836);let w=({patientUuid:e,patient:t,launchChildWorkspace:a,startVisitWorkspaceName:n,closeWorkspace:d})=>{let{t:c}=(0,i.useTranslation)();return r().createElement(s.BJc,{className:"-esm-ward__create-admission-encounter__noActiveVisitContent___vfov5",gap:4},r().createElement(s.jeF,{hideCloseButton:!0,kind:"info",lowContrast:!0,subtitle:c("visitRequiredToAdmitPatient","A visit is required to admit this patient to the ward")}),r().createElement(o.ExtensionSlot,{name:"start-visit-button-slot2",state:{patientUuid:e,patient:t,launchChildWorkspace:a,startVisitWorkspaceName:n}}),r().createElement(s.$nd,{className:"-esm-ward__create-admission-encounter__backButton___lK7iF",kind:"ghost",renderIcon:e=>r().createElement(o.ArrowLeftIcon,{size:16,...e}),iconDescription:c("backToSearchResults","Back to search results"),size:"sm",onClick:()=>d()},r().createElement("span",null,c("backToSearchResults","Back to search results"))))};var f=a(1378);let y=({closeWorkspace:e,workspaceProps:{selectedPatientUuid:t},windowProps:{startVisitWorkspaceName:a},launchChildWorkspace:d})=>{let u,{location:y}=(0,_.A)(),{patient:T,isLoading:h,error:g}=function(e,t="custom:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate))"){let{data:a,...r}=p()(e?`${o.restBaseUrl}/patient/${e}?v=${t}`:null,o.openmrsFetch);return(0,n.useMemo)(()=>({patient:a?.data,...r}),[a,r])}(t),{activeVisit:P,isLoading:E,error:A}=(0,o.useVisit)(t),{t:C}=(0,i.useTranslation)(),{data:v,isLoading:b,error:k}=(u=`${o.restBaseUrl}/beds?patientUuid=${t}`,c()(u,o.openmrsFetch)),{data:L,isLoading:S,error:N}=(0,l.k)([t]),{inpatientRequests:R,isLoading:D,error:B}=function(e,t=["ADMIT","TRANSFER"],a="custom:(dispositionLocation,dispositionType,disposition,dispositionEncounter:full,patient:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),dispositionObsGroup,visit)"){let n=new URLSearchParams;n.set("dispositionType",t.join(",")),n.set("patients",e?.join(",")),n.set("v",a);let{data:r,...i}=(0,o.useOpenmrsFetchAll)(e?.length>0?`${o.restBaseUrl}/emrapi/inpatient/request?${n.toString()}`:null);return{inpatientRequests:r,...i}}([t]),I=null,F=!1,$=!1,x=null,U="ADMIT",M=!1;if(h||E||b||S||D)I=r().createElement(s.rrI,null);else if(g||A||k||N||B)F=!0,I=r().createElement(s.jeF,{kind:"error",lowContrast:!0,title:C("errorLoadingPatientInfo","Error loading patient info")});else{let n=v.data.results[0],i=n?.physicalLocation?.uuid===y.uuid,c=L[0]?.currentInpatientLocation?.uuid===y.uuid,l=L[0]&&!c,u={patient:T,visit:P,bed:i?{id:n.bedId,bedNumber:n.bedNumber,bedType:n.bedType}:null,inpatientAdmission:L[0],inpatientRequest:null};F=!!P,$=!!P,x=u,U=L[0]?"TRANSFER":"ADMIT",M=c,I=r().createElement(r().Fragment,null,r().createElement(f.default,{wardPatient:u}),P?r().createElement("div",{className:"-esm-ward__create-admission-encounter__visitContext___kA+hm"},r().createElement("div",{className:"-esm-ward__create-admission-encounter__visitDetails___SprNQ"},r().createElement("span",{className:"-esm-ward__create-admission-encounter__visitDetailsLabel___MIXmD"},C("activeVisit","Active visit")),r().createElement("span",null,P.visitType?.display,P.location?.display?` \xb7 ${P.location.display}`:"",P.startDatetime?` \xb7 ${C("startedDatetime","Started {{datetime}}",{datetime:(0,o.formatDatetime)((0,o.parseDate)(P.startDatetime)),interpolation:{escapeValue:!1}})}`:"")),c&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientAlreadyAdmittedToCurrentLocation","Patient already admitted to current location")}),l&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientCurrentlyAdmittedToWardLocation","Patient currently admitted to {{wardLocation}}",{wardLocation:L[0].currentInpatientLocation.display})}),R[0]&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientHasPendingAdmissionRequest","Patient already has a pending admission request to location {{location}}",{location:R[0].dispositionLocation.display})})):r().createElement(w,{patientUuid:t,patient:T,launchChildWorkspace:d,startVisitWorkspaceName:a,closeWorkspace:()=>e()}))}return r().createElement(o.Workspace2,{title:C("admitPatient","Admit patient")},r().createElement("div",{id:"create-admission-encounter-workspace",className:"-esm-ward__create-admission-encounter__workspaceWrapper___P2STK"},r().createElement("div",{className:"-esm-ward__create-admission-encounter__workspaceContent___3pkAO"},I),F&&r().createElement(s.Te$,{className:"-esm-ward__create-admission-encounter__buttonSet___3uJMx"},r().createElement(s.$nd,{size:"xl",kind:"secondary",onClick:()=>e()},C("backToSearchResults","Back to search results")),$&&r().createElement(m.A,{wardPatient:x,dispositionType:U,onAdmitPatientSuccess:async()=>{await e({discardUnsavedChanges:!0}),(0,o.closeWorkspaceGroup2)()},disabled:M,kind:"primary",size:"xl"}))))}},1378(e,t,a){a.r(t),a.d(t,{default:()=>c});var n=a(7125),r=a.n(n),i=a(3373),s=a.n(i),o=a(2895),d=a(3356);let c=({wardPatient:e})=>{let{patient:t}=e??{},{WardPatientHeader:a}=(0,o.useAppContext)("ward-view-context")??{};return t?a?r().createElement("div",{className:s()("-esm-ward__style__wardWorkspacePatientBanner___t0OA5",d.A.wardPatientCard)},r().createElement(a,{wardPatient:e})):r().createElement(r().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},6794(e,t,a){a.d(t,{E:()=>d,R_:()=>s,S6:()=>u,Tb:()=>l,ZJ:()=>o,tf:()=>c});var n=a(2895),r=a(3724),i=a(9656);function s(){let{location:e}=(0,i.A)(),{currentProvider:t}=(0,n.useSession)(),{emrConfiguration:a,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:o}=(0,r.A)();return{createEncounter:(r,i,s,o=[])=>{let d={patient:r.uuid,encounterType:i,location:e?.uuid,encounterProviders:[{provider:t?.uuid,encounterRole:a?.clinicianEncounterRole?.uuid}],obs:o,visit:s};return(0,n.openmrsFetch)(`${n.restBaseUrl}/encounter`,{method:"POST",headers:{"content-type":"application/json"},body:d})},emrConfiguration:a,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:o}}function o(e){return(0,n.openmrsFetch)(`${n.restBaseUrl}/encounter/${e}`,{method:"DELETE"})}function d(){let{createEncounter:e,emrConfiguration:t,isLoadingEmrConfiguration:a,errorFetchingEmrConfiguration:n}=s();return{admitPatient:(a,n,r)=>e(a,"ADMIT"===n?t.admissionEncounterType:"TRANSFER"===n?t.transferWithinHospitalEncounterType:null,r),isLoadingEmrConfiguration:a,errorFetchingEmrConfiguration:n}}function c(e,t,a){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:t,encounterUuid:a}})}function l(e,t){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds/${e}?patientUuid=${t}`,{method:"DELETE"})}function u(e){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds?patientUuid=${e}`)}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([["992"],{3356(e,t,a){a.d(t,{A:()=>n});let n={wardPatientCard:"-esm-ward__ward-patient-card__wardPatientCard___NjMVe",wardPatientCardButton:"-esm-ward__ward-patient-card__wardPatientCardButton___Xw-ov",activeWardPatientCardButton:"-esm-ward__ward-patient-card__activeWardPatientCardButton___jp465",wardPatientCardRow:"-esm-ward__ward-patient-card__wardPatientCardRow___O-Jht",wardPatientCardPendingItemsRow:"-esm-ward__ward-patient-card__wardPatientCardPendingItemsRow___MzSq2",wardPatientPendingOrdersRow:"-esm-ward__ward-patient-card__wardPatientPendingOrdersRow___rRApd",wardPatientCardExtensionSlot:"-esm-ward__ward-patient-card__wardPatientCardExtensionSlot___WvNzG",wardPatientCardHeader:"-esm-ward__ward-patient-card__wardPatientCardHeader___5a47N",wardPatientCardHeaderBadge:"-esm-ward__ward-patient-card__wardPatientCardHeaderBadge___xnMNB",wardPatientCardDispositionTypeContainer:"-esm-ward__ward-patient-card__wardPatientCardDispositionTypeContainer___yNAdL",wardPatientName:"-esm-ward__ward-patient-card__wardPatientName___w0ALg",wardPatientBedNumber:"-esm-ward__ward-patient-card__wardPatientBedNumber___dxTfe",empty:"-esm-ward__ward-patient-card__empty___fjKgf",bedNumberBox:"-esm-ward__ward-patient-card__bedNumberBox___IUQwS",movementIcon:"-esm-ward__ward-patient-card__movementIcon___D2yrt",cancelTransferRequestButton:"-esm-ward__ward-patient-card__cancelTransferRequestButton___K2Amt",chemistryReferenceIcon:"-esm-ward__ward-patient-card__chemistryReferenceIcon___+cAiI",wardPatientAddress:"-esm-ward__ward-patient-card__wardPatientAddress___4G9m6",wardPatientObsLabel:"-esm-ward__ward-patient-card__wardPatientObsLabel___XO4yd",responsiveTooltip:"-esm-ward__ward-patient-card__responsiveTooltip___p-jmt",dotSeparatedChildren:"-esm-ward__ward-patient-card__dotSeparatedChildren___OdHvX",skeletonText:"-esm-ward__ward-patient-card__skeletonText___E6V6B",unassignedPatient:"-esm-ward__ward-patient-card__unassignedPatient___XyiyN"}},3724(e,t,a){a.d(t,{A:()=>d});var n=a(2895),r=a(7125),i=a(4498),s=a.n(i);let o=`custom:${[["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map(e=>e.join(":")).join(",")}`;function d(){let e=s()(`${n.restBaseUrl}/emrapi/configuration?v=${o}`,n.openmrsFetch);return(0,r.useMemo)(()=>({emrConfiguration:e.data?.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}),[e])}},160(e,t,a){a.d(t,{k:()=>r});var n=a(2895);function r(e){let t=e?.length>0,a=new URLSearchParams;for(let t of(a.append("v","custom:(visit,patient:(uuid,identifiers:(uuid,display,identifier,identifierType),voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),encounterAssigningToCurrentInpatientLocation:(encounterDatetime),currentInpatientRequest:(dispositionLocation,dispositionType,disposition:(uuid,display),dispositionEncounter:(uuid,display),dispositionObsGroup:(uuid,display),visit:(uuid),patient:(uuid)),firstAdmissionOrTransferEncounter:(encounterDatetime),currentInpatientLocation,)"),e??[]))a.append("patients",t);return(0,n.useOpenmrsFetchAll)(t?`${n.restBaseUrl}/emrapi/inpatient/admission?${a.toString()}`:null)}},9656(e,t,a){a.d(t,{A:()=>o});var n=a(2895),r=a(2745),i=a(4498),s=a.n(i);function o(){let{locationUuid:e}=(0,r.useParams)(),{sessionLocation:t}=(0,n.useSession)(),{data:a,isLoading:i,error:o}=function(e,t="custom:(display,uuid)"){return s()(e?`${n.restBaseUrl}/location/${e}?v=${t}`:null,n.openmrsFetch)}(e||null),d=e&&o;return{location:e?a?.data:t,isLoadingLocation:i,errorFetchingLocation:o,invalidLocation:d}}},3836(e,t,a){a.d(t,{A:()=>l});var n=a(7125),r=a.n(n),i=a(5921),s=a(7768),o=a(2895),d=a(9656),c=a(6794);let l=({wardPatient:e,relatedTransferPatients:t,onAdmitPatientSuccess:a,disabled:l,dispositionType:u,kind:p="ghost",size:_})=>{let{patient:m,visit:w,bed:f}=e??{},{t:y}=(0,i.useTranslation)(),{location:T}=(0,d.A)(),h="tablet"===(0,o.useLayoutType)()?"lg":"md",{wardPatientGroupDetails:g}=(0,o.useAppContext)("ward-view-context")??{},{admitPatient:P,isLoadingEmrConfiguration:E,errorFetchingEmrConfiguration:A}=(0,c.E)(),[C,v]=(0,n.useState)(!1),{launchChildWorkspace:b}=(0,o.useWorkspace2Context)(),k=(0,o.useFeatureFlag)("bedmanagement-module"),L=async()=>{if(k&&!f)b("admit-patient-form-workspace",{wardPatient:e,relatedTransferPatients:t});else{v(!0);let n=[e,...t??[]],r=await Promise.allSettled(n.map(e=>P(e.patient,e.inpatientRequest?.dispositionType??u,e.visit.uuid)));await g?.mutate?.(),r.forEach((e,t)=>{let a=n[t],r=a.patient.person.preferredName.display,i=a.inpatientRequest?.dispositionType??u;if("fulfilled"===e.status)(0,o.showSnackbar)({kind:"success",title:"ADMIT"===i?y("patientAdmittedSuccessfully","Patient admitted successfully"):y("patientTransferredSuccessfully","Patient transferred successfully"),subtitle:"ADMIT"===i?y("patientAdmittedToLocation","{{patientName}} admitted successfully to {{location}}",{patientName:r,location:T?.display}):y("patientTransferredToLocation","{{patientName}} transferred successfully to {{location}}",{patientName:r,location:T?.display})});else{let t=e.reason,a=t?.responseBody?.error?.globalErrors?.[0]?.message??t?.message??y("unknownError","An unknown error occurred");(0,o.showSnackbar)({kind:"error",title:"ADMIT"===i?y("errorAdmittingPatient","Failed to admit {{patientName}}",{patientName:r}):y("errorTransferringPatient","Failed to transfer {{patientName}}",{patientName:r}),subtitle:a})}}),r.some(e=>"fulfilled"===e.status)&&a(),v(!1)}},S=E||A||l||C;return r().createElement(s.$nd,{kind:p,renderIcon:o.ArrowRightIcon,size:_??h,disabled:S,onClick:L},"ADMIT"===u||S?y("admitPatient","Admit patient"):y("transferPatient","Transfer patient"))}},787(e,t,a){a.r(t),a.d(t,{default:()=>y});var n=a(7125),r=a.n(n),i=a(5921),s=a(7768),o=a(2895),d=a(8909),c=a.n(d),l=a(160),u=a(4498),p=a.n(u),_=a(9656),m=a(3836);let w=({patientUuid:e,patient:t,launchChildWorkspace:a,startVisitWorkspaceName:n,closeWorkspace:d})=>{let{t:c}=(0,i.useTranslation)();return r().createElement(s.BJc,{className:"-esm-ward__create-admission-encounter__noActiveVisitContent___vfov5",gap:4},r().createElement(s.jeF,{hideCloseButton:!0,kind:"info",lowContrast:!0,subtitle:c("visitRequiredToAdmitPatient","A visit is required to admit this patient to the ward")}),r().createElement(o.ExtensionSlot,{name:"start-visit-button-slot2",state:{patientUuid:e,patient:t,launchChildWorkspace:a,startVisitWorkspaceName:n}}),r().createElement(s.$nd,{className:"-esm-ward__create-admission-encounter__backButton___lK7iF",kind:"ghost",renderIcon:e=>r().createElement(o.ArrowLeftIcon,{size:16,...e}),iconDescription:c("backToSearchResults","Back to search results"),size:"sm",onClick:()=>d()},r().createElement("span",null,c("backToSearchResults","Back to search results"))))};var f=a(1378);let y=({closeWorkspace:e,workspaceProps:{selectedPatientUuid:t},windowProps:{startVisitWorkspaceName:a},launchChildWorkspace:d})=>{let u,{location:y}=(0,_.A)(),{patient:T,isLoading:h,error:g}=function(e,t="custom:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate))"){let{data:a,...r}=p()(e?`${o.restBaseUrl}/patient/${e}?v=${t}`:null,o.openmrsFetch);return(0,n.useMemo)(()=>({patient:a?.data,...r}),[a,r])}(t),{activeVisit:P,isLoading:E,error:A}=(0,o.useVisit)(t),{t:C}=(0,i.useTranslation)(),{data:v,isLoading:b,error:k}=(u=`${o.restBaseUrl}/beds?patientUuid=${t}`,c()(u,o.openmrsFetch)),{data:L,isLoading:S,error:N}=(0,l.k)([t]),{inpatientRequests:R,isLoading:D,error:B}=function(e,t=["ADMIT","TRANSFER"],a="custom:(dispositionLocation,dispositionType,disposition,dispositionEncounter:full,patient:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),dispositionObsGroup,visit)"){let n=new URLSearchParams;n.set("dispositionType",t.join(",")),n.set("patients",e?.join(",")),n.set("v",a);let{data:r,...i}=(0,o.useOpenmrsFetchAll)(e?.length>0?`${o.restBaseUrl}/emrapi/inpatient/request?${n.toString()}`:null);return{inpatientRequests:r,...i}}([t]),I=null,F=!1,$=!1,x=null,U="ADMIT",M=!1;if(h||E||b||S||D)I=r().createElement(s.rrI,null);else if(g||A||k||N||B)F=!0,I=r().createElement(s.jeF,{kind:"error",lowContrast:!0,title:C("errorLoadingPatientInfo","Error loading patient info")});else{let n=v.data.results[0],i=n?.physicalLocation?.uuid===y.uuid,c=L[0]?.currentInpatientLocation?.uuid===y.uuid,l=L[0]&&!c,u={patient:T,visit:P,bed:i?{id:n.bedId,bedNumber:n.bedNumber,bedType:n.bedType}:null,inpatientAdmission:L[0],inpatientRequest:null};F=!!P,$=!!P,x=u,U=L[0]?"TRANSFER":"ADMIT",M=c,I=r().createElement(r().Fragment,null,r().createElement(f.default,{wardPatient:u}),P?r().createElement("div",{className:"-esm-ward__create-admission-encounter__visitContext___kA+hm"},r().createElement("div",{className:"-esm-ward__create-admission-encounter__visitDetails___SprNQ"},r().createElement("span",{className:"-esm-ward__create-admission-encounter__visitDetailsLabel___MIXmD"},C("activeVisit","Active visit")),r().createElement("span",null,P.visitType?.display,P.location?.display?` \xb7 ${P.location.display}`:"",P.startDatetime?` \xb7 ${C("startedDatetime","Started {{datetime}}",{datetime:(0,o.formatDatetime)((0,o.parseDate)(P.startDatetime)),interpolation:{escapeValue:!1}})}`:"")),c&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientAlreadyAdmittedToCurrentLocation","Patient already admitted to current location")}),l&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientCurrentlyAdmittedToWardLocation","Patient currently admitted to {{wardLocation}}",{wardLocation:L[0].currentInpatientLocation.display})}),R[0]&&r().createElement(s.jeF,{kind:"warning",lowContrast:!0,hideCloseButton:!0,title:C("patientHasPendingAdmissionRequest","Patient already has a pending admission request to location {{location}}",{location:R[0].dispositionLocation.display})})):r().createElement(w,{patientUuid:t,patient:T,launchChildWorkspace:d,startVisitWorkspaceName:a,closeWorkspace:()=>e()}))}return r().createElement(o.Workspace2,{title:C("admitPatient","Admit patient")},r().createElement("div",{id:"create-admission-encounter-workspace",className:"-esm-ward__create-admission-encounter__workspaceWrapper___P2STK"},r().createElement("div",{className:"-esm-ward__create-admission-encounter__workspaceContent___3pkAO"},I),F&&r().createElement(s.Te$,{className:"-esm-ward__create-admission-encounter__buttonSet___3uJMx"},r().createElement(s.$nd,{size:"xl",kind:"secondary",onClick:()=>e()},C("backToSearchResults","Back to search results")),$&&r().createElement(m.A,{wardPatient:x,dispositionType:U,onAdmitPatientSuccess:async()=>{await e({discardUnsavedChanges:!0}),(0,o.closeWorkspaceGroup2)()},disabled:M,kind:"primary",size:"xl"}))))}},1378(e,t,a){a.r(t),a.d(t,{default:()=>c});var n=a(7125),r=a.n(n),i=a(3373),s=a.n(i),o=a(2895),d=a(3356);let c=({wardPatient:e})=>{let{patient:t}=e??{},{WardPatientHeader:a}=(0,o.useAppContext)("ward-view-context")??{};return t?a?r().createElement("div",{className:s()("-esm-ward__style__wardWorkspacePatientBanner___t0OA5",d.A.wardPatientCard)},r().createElement(a,{wardPatient:e})):r().createElement(r().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},6794(e,t,a){a.d(t,{E:()=>d,R_:()=>s,S6:()=>u,Tb:()=>l,ZJ:()=>o,tf:()=>c});var n=a(2895),r=a(3724),i=a(9656);function s(){let{location:e}=(0,i.A)(),{currentProvider:t}=(0,n.useSession)(),{emrConfiguration:a,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:o}=(0,r.A)();return{createEncounter:(r,i,s,o=[])=>{let d={patient:r.uuid,encounterType:i,location:e?.uuid,encounterProviders:[{provider:t?.uuid,encounterRole:a?.clinicianEncounterRole?.uuid}],obs:o,visit:s};return(0,n.openmrsFetch)(`${n.restBaseUrl}/encounter`,{method:"POST",headers:{"content-type":"application/json"},body:d})},emrConfiguration:a,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:o}}function o(e){return(0,n.openmrsFetch)(`${n.restBaseUrl}/encounter/${e}`,{method:"DELETE"})}function d(){let{createEncounter:e,emrConfiguration:t,isLoadingEmrConfiguration:a,errorFetchingEmrConfiguration:n}=s();return{admitPatient:(a,n,r)=>e(a,"ADMIT"===n?t.admissionEncounterType:"TRANSFER"===n?t.transferWithinHospitalEncounterType:null,r),isLoadingEmrConfiguration:a,errorFetchingEmrConfiguration:n}}function c(e,t,a){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:t,encounterUuid:a}})}function l(e,t){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds/${e}?patientUuid=${t}`,{method:"DELETE"})}function u(e){return(0,n.openmrsFetch)(`${n.restBaseUrl}/beds?patientUuid=${e}`)}}}]);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _openmrs_esm_ward_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-ward-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-ward-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={2664(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},O=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-ward-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(O))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},6267(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-ward-app:11.1.1-pre.9708";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
1
|
+
var _openmrs_esm_ward_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-ward-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-ward-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={2664(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},O=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},M=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],w={},T=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(M))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-ward-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(O))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:w,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:T,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},6267(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-ward-app:11.1.1-pre.9714";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
2
2
|
${n}`),o.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},2677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(223),o=r(3545),i=r(3586),a=r(1864),s=r(2221),l=r(4307),u=r(1180),p=r(367),c=r(1315),d=r(3738);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},367(e,t,r){let n=r(223),o=r(3738),i=r(9837);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},1180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2221(e,t,r){let n=r(3545),o=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},4307(e,t,r){let n=r(1092),o=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},3586(e,t,r){r(223);let n=r(3545),o=r(6917),i=r(1092),a=r(1853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
|
-
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(6267),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2997|4493|6111|7226|7884|9270|9794)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p={},s.l=function(e,t,r,n){if(p[e])return void p[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var u=a[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@openmrs/esm-ward-app:"+r){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-ward-app:"+r),o.src=e),p[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5452",factory:()=>Promise.all([s.e("689"),s.e("9011"),s.e("6673"),s.e("581"),s.e("7226"),s.e("7884"),s.e("9270"),s.e("6111"),s.e("2997"),s.e("4493"),s.e("9794")]).then(()=>()=>s(5860)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("9270")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.1",factory:()=>Promise.all([s.e("689"),s.e("9712"),s.e("9270")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([s.e("3989"),s.e("9270")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([s.e("9061"),s.e("9270"),s.e("6111")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([s.e("9771"),s.e("9270"),s.e("6111")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.2.5",factory:()=>Promise.all([s.e("1744"),s.e("9270"),s.e("6111")]).then(()=>()=>s(1123)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-ward-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(c=s.g.location+"");var l,u,p,c,d=s.g.document;if(!c&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(c=d.currentScript.src),!c)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!c||!/^http(s?):/.test(c));)c=f[h--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");if(s.p=c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{9270:["7125"],7884:["4498"],3560:["2895"],2997:["7364"],7226:["5921"],4493:["5292"],6111:["9106"],9794:["2745"]},moduleIdToConsumeDataMapping:{4498:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9061"),s.e("6111")]).then(()=>()=>s(9876))},7364:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1744"),s.e("6111")]).then(()=>()=>s(1123))},7125:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},5292:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9771").then(()=>()=>s(2470))},2895:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9011"),s.e("6673"),s.e("581"),s.e("7226"),s.e("7884"),s.e("6111"),s.e("2997"),s.e("4493")]).then(()=>()=>s(5860))},2745:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9712")]).then(()=>()=>s(7059))},9106:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},5921:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var m=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},g=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},b={7357:0};s.f.miniCss=function(e,t){if(b[e])t.push(b[e]);else 0!==b[e]&&({1364:1,2008:1,2101:1,2162:1,388:1,412:1,5296:1,581:1,6418:1,6703:1,6802:1,8340:1,8424:1,8493:1,9080:1,992:1,9983:1})[e]&&t.push(b[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(g(n,o))return t();m(e,o,null,t,r)}).then(function(){b[e]=0},function(t){throw delete b[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("9270"),s.e("9794"),s.e("3560")]).then(()=>()=>s(7227))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={7357:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(2997|4493|6111|7226|7884|9270|9794)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(2664)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_ward_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(6267),s.federation||(s.federation={chunkMatcher:function(e){return!/^((212|722|886)6|7884|9270|9794)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&t&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p={},s.l=function(e,t,r,n){if(p[e])return void p[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var u=a[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@openmrs/esm-ward-app:"+r){o=u;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-ward-app:"+r),o.src=e),p[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=p[e];if(delete p[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5452",factory:()=>Promise.all([s.e("689"),s.e("9011"),s.e("6673"),s.e("581"),s.e("7226"),s.e("7884"),s.e("9270"),s.e("2126"),s.e("8866"),s.e("9794")]).then(()=>()=>s(5860)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("9270")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.1",factory:()=>Promise.all([s.e("689"),s.e("9712"),s.e("9270")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("9270")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-ward-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(c=s.g.location+"");var l,u,p,c,d=s.g.document;if(!c&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(c=d.currentScript.src),!c)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!c||!/^http(s?):/.test(c));)c=f[h--].src}if(!c)throw Error("Automatic publicPath is not supported in this browser");if(s.p=c=c.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{9270:["7125"],7884:["4498"],2126:["8909"],8866:["9106","5292"],3560:["2895"],9794:["2745"],7226:["5921"]},moduleIdToConsumeDataMapping:{4498:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},7125:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},8909:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))},2895:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9011"),s.e("6673"),s.e("581"),s.e("7226"),s.e("7884"),s.e("2126"),s.e("8866")]).then(()=>()=>s(5860))},5292:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},2745:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("9712")]).then(()=>()=>s(7059))},9106:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},5921:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var m=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},g=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},b={7357:0};s.f.miniCss=function(e,t){if(b[e])t.push(b[e]);else 0!==b[e]&&({1364:1,2008:1,2101:1,2162:1,388:1,412:1,5296:1,581:1,6418:1,6703:1,6802:1,8340:1,8424:1,8493:1,9080:1,992:1,9983:1})[e]&&t.push(b[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(g(n,o))return t();m(e,o,null,t,r)}).then(function(){b[e]=0},function(t){throw delete b[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("9270"),s.e("9794"),s.e("3560")]).then(()=>()=>s(7227))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={7357:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^((212|722|886)6|7884|9270|9794)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(2664)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_ward_app=s.x()})();
|