@openmrs/esm-patient-immunizations-app 13.0.2-pre.12952 → 13.0.2-pre.12955
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/6271.js +1 -0
- package/dist/6271.js.map +1 -0
- package/dist/880.js +1 -1
- package/dist/880.js.map +1 -1
- package/dist/openmrs-esm-patient-immunizations-app.js +2 -2
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/translations/es_419.json +49 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/6271.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([["6271"],{1842(e){e.exports=JSON.parse('{"actions":"Actions","add":"Add","addImmunizations":"Add immunizations","deleteImmunization":"Delete immunization","deleting":"Deleting","doseNumber":"Dose {{number}}","doseNumberWithinSeries":"Dose number within series","doses":"Doses","due":"Due","duplicateDoseWarning":"Dose {{dose}} has already been recorded for this vaccine","editImmunization":"Edit immunization","error":"Error","errorSaving":"Error saving vaccination","expirationDate":"Expiration Date","immunization":"Immunization","immunizationDeleteConfirm":"Are you sure you want to delete dose {{doseNumber}} of {{vaccineName}}?","immunizationDeleted":"Immunization deleted","immunizationDeletedSuccess":"Immunization dose deleted successfully","immunizationDeleteError":"Failed to delete immunization: ","immunizationHistory":"Immunization history","immunizationNotePlaceholder":"For example: mild redness at injection site","immunizations":"Immunizations","Immunizations":"Immunizations","immunizations__lower":"immunizations","immunizationsHistory":"Immunizations history","immunizationWorkspaceTitle":"Immunization Form","lastDoseOnDate":"Last dose on {{date}}","lotNumber":"Lot number","manufacturer":"Manufacturer","nextDose":"Next dose","nextDoseDate":"Next dose date","notDue":"Not due","note":"Note","pleaseSelect":"Please select","recentVaccination":"Recent vaccination","saving":"Saving","seeAll":"See all","selectImmunization":"Select immunization","sequence":"Sequence","unknownVaccine":"Unknown vaccine","vaccinationDate":"Vaccination date","vaccinationDateCannotBeBeforeBirthDate":"Vaccination date cannot precede birth date","vaccinationDateCannotBeInTheFuture":"Vaccination date cannot be in the future","vaccinationSaved":"Vaccination saved successfully","vaccine":"Vaccine","vaccineBatchInformation":"Vaccine Batch Information","vaccineRequired":"Vaccine is required"}')}}]);
|
package/dist/6271.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6271.js","sources":["webpack://@openmrs/esm-patient-immunizations-app/json|/home/runner/work/openmrs-esm-patient-chart/openmrs-esm-patient-chart/packages/esm-patient-immunizations-app/translations/es_419.json"],"names":["JSON"],"mappings":"uKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,8zD"}
|
package/dist/880.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([["880"],{4767(e,n,i){var t={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function a(e){if(!i.o(t,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=t[e],a=n[0];return i.e(n[1]).then(function(){return i(a)})}a.keys=()=>Object.keys(t),a.id=4767,e.exports=a},7663(e,n,i){"use strict";i.d(n,{B:()=>o,v:()=>s});var t=i(2664),a=i(2178);function s(e){let n=`${t.fhirBaseUrl}/Immunization?patient=${e}`,{data:i,error:s,isLoading:o,isValidating:r,mutate:c}=(0,t.useFhirFetchAll)(n);return{data:i?(0,a.qj)(i):[],error:s,isLoading:o,isValidating:r,mutate:c}}async function o(e){let n=new AbortController,i=`${t.fhirBaseUrl}/Immunization/${e}`;await (0,t.openmrsFetch)(i,{method:"DELETE",signal:n.signal})}},2178(e,n,i){"use strict";i.d(n,{DA:()=>u,qj:()=>l});var t=i(6966),a=i(4501),s=i(7891),o=i(6551);let r="http://hl7.eu/fhir/StructureDefinition/immunization-nextDoseDate",c=e=>{var n;if(!e)return null;let i=e?.id,t=e?.manufacturer?.display,a=e?.lotNumber,s=e?.protocolApplied?.length>0&&e?.protocolApplied[0],o=s?.doseNumberPositiveInt,c=e?.occurrenceDateTime?.toString(),m=e?.extension?.find(e=>e.url===r),l=m?.valueDateTime?.toString(),d=e?.expirationDate?.toString(),u=e?.note?.length>0&&e?.note[0]?.text;return{immunizationObsUuid:i,manufacturer:t,lotNumber:a,nextDoseDate:l,doseNumber:o,note:u?[{text:u}]:[],occurrenceDateTime:c,expirationDate:d,visitUuid:(n=e?.encounter)&&n.reference?n.reference.split("/")[1]:null}},m=function(e){return e?.vaccineCode?.coding&&(0,t.A)(e.vaccineCode.coding,function(e){return(0,a.A)(e.system)})||null},l=e=>{if(!e)return[];let n=[];if(Array.isArray(e)?n=e.filter(e=>e&&"object"==typeof e&&"Immunization"===e.resourceType):e?.entry&&(n=e.entry.filter(e=>e?.resource?.resourceType==="Immunization").map(e=>e.resource)),!n.length)return[];let i=Object.entries((0,s.A)(n,e=>m(e)?.code)).filter(([e])=>e).map(([e,n])=>{let i=n.map(c).filter(e=>null!==e),t=m(n[0]);return{vaccineName:t?.display,vaccineUuid:t?.code,existingDoses:(0,o.A)(i,[e=>e.occurrenceDateTime],["desc"])}});return(0,o.A)(i,[e=>e.existingDoses?.[0]?.occurrenceDateTime??""],["desc"])};function d(e,n){if(!n)return null;let i=`${e}/${n}`;return{type:e,reference:i}}let u=(e,n,i,t)=>{let a={resourceType:"Immunization",status:"completed",id:e.immunizationId,vaccineCode:{coding:[{code:e.vaccineUuid,display:e.vaccineName}]},patient:d("Patient",e.patientUuid),encounter:d("Encounter",n),occurrenceDateTime:e.vaccinationDate,expirationDate:e.expirationDate||void 0,extension:e.nextDoseDate?[{url:r,valueDateTime:e.nextDoseDate}]:[],note:e.note?.trim()?[{text:e.note.trim()}]:[],location:d("Location",i)};t&&(a.performer=[{actor:d("Practitioner",t)}]);let s=e.manufacturer?.trim();s&&(a.manufacturer={display:s});let o=e.lotNumber?.trim();o&&(a.lotNumber=o);let c=e.doseNumber;return"number"==typeof c&&c>=1&&(a.protocolApplied=[{doseNumberPositiveInt:c}]),a}},7723(e,n,i){"use strict";i.d(n,{RA:()=>s,xS:()=>o,yM:()=>r});var t=i(4683),a=i(6966);let s=new(i(4354)).BehaviorSubject(null),o=(e,n)=>(0,t.A)(e,e=>{let i=(0,a.A)(n,n=>n.vaccineConceptUuid===e.vaccineUuid);return e.sequences=i?.sequences||[],e}),r=(e,n)=>new Date(n.occurrenceDateTime).getTime()-new Date(e.occurrenceDateTime).getTime()},8195(e,n,i){"use strict";i.r(n),i.d(n,{immunizationsOverview:()=>w,deleteImmunizationConfirmationModal:()=>U,immunizationsDashboardLink:()=>I,importTranslation:()=>A,immunizationHistorySummary:()=>S,immunizationsDetailedSummary:()=>k,immunizationFormWorkspace:()=>q,startupApp:()=>C});var t=i(2664),a=i(6717);let s={immunizationConceptSet:{_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,_elements:{_type:t.Type.Object,vaccineConceptUuid:{_type:t.Type.UUID,_description:"The UUID of the individual vaccine concept"},sequences:{_type:t.Type.Array,_elements:{_type:t.Type.Object,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]"}}}},_description:"Doses/Schedules definitions for each vaccine configured if applicable. If not provided the vaccine would be treated as a vaccine without schedules",_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}]}]}};var o=i(3338),r=i(5399),c=i.n(r),m=i(3373),l=i.n(m),d=i(7807),u=i(324),h=i(7663);let _={widgetCard:"-esm-patient-immunizations__immunizations-overview__widgetCard___AmbOd",paginationContainer:"-esm-patient-immunizations__immunizations-overview__paginationContainer___zV1Hc"};var p=i(6551),b=i(7723);let D=({immunizationsByVaccine:e,launchPatientImmunizationForm:n,patientUuid:i})=>{let{t:a}=(0,d.useTranslation)(),{existingDoses:s,sequences:c,vaccineUuid:m}=e,l="tablet"===(0,t.useLayoutType)()?"md":"sm",h=(0,r.useMemo)(()=>[{key:"sequence",header:c.length?a("sequence","Sequence"):a("doseNumberWithinSeries","Dose number within series")},{key:"vaccinationDate",header:a("vaccinationDate","Vaccination date")},{key:"nextDoseDate",header:a("nextDoseDate","Next dose date")},{key:"expirationDate",header:a("expirationDate","Expiration date")},{key:"note",header:a("note","Note")},{key:"actions",header:a("actions","Actions")}],[a,c.length]),_=s?.map(e=>({id:e?.immunizationObsUuid,sequence:c.length?c?.find(n=>n.sequenceNumber===e.doseNumber)?.sequenceLabel||e.doseNumber:e.doseNumber||0,vaccinationDate:e?.occurrenceDateTime&&(0,t.formatDate)(new Date(e.occurrenceDateTime),{mode:"standard",noToday:!0,time:!1}),nextDoseDate:e?.nextDoseDate?(0,t.formatDate)(new Date(e.nextDoseDate),{mode:"standard",noToday:!0,time:!1}):"--",expirationDate:e?.expirationDate&&(0,t.formatDate)(new Date(e.expirationDate),{mode:"standard",noToday:!0,time:!1})||"--",note:e?.note[0]?.text||"--",actions:(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunizations-sequence-table__actionButtons___jzEjU",children:[(0,o.jsx)(u.IconButton,{kind:"ghost",label:(0,t.getCoreTranslation)("edit"),onClick:()=>{b.RA.next({vaccineUuid:m,immunizationId:e.immunizationObsUuid,vaccinationDate:e.occurrenceDateTime,doseNumber:e.doseNumber,nextDoseDate:e.nextDoseDate,note:e.note[0]?.text,expirationDate:e.expirationDate,lotNumber:e.lotNumber,manufacturer:e.manufacturer,visitId:e.visitUuid}),n()},size:l,children:(0,o.jsx)(t.EditIcon,{size:16})}),(0,o.jsx)(u.IconButton,{kind:"ghost",label:(0,t.getCoreTranslation)("delete"),onClick:()=>(({doseNumber:e,immunizationId:n,vaccineUuid:a})=>{let s=(0,t.showModal)("immunization-delete-confirmation-modal",{doseNumber:e,immunizationId:n,patientUuid:i,vaccineUuid:a,close:()=>s?.()})})({doseNumber:e.doseNumber,immunizationId:e.immunizationObsUuid,vaccineUuid:m}),size:l,children:(0,o.jsx)(t.TrashCanIcon,{size:16})})]})}));if(_?.length)return(0,o.jsx)(u.DataTable,{rows:_,headers:h,useZebraStyles:!0,children:({rows:e,headers:n,getHeaderProps:i,getTableProps:t,getRowProps:a})=>(0,o.jsx)(u.TableContainer,{className:"-esm-patient-immunizations__immunizations-sequence-table__sequenceTable___rTgeE",children:(0,o.jsxs)(u.Table,{...t(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:n.map(e=>(0,o.jsx)(u.TableHeader,{...i({header:e}),children:e.header}))})}),(0,o.jsx)(u.TableBody,{children:e.map(e=>(0,o.jsx)(u.TableRow,{...a({row:e}),children:e.cells.map(e=>(0,o.jsx)(u.TableCell,{className:"-esm-patient-immunizations__immunizations-sequence-table__tableCell___SEELH",children:e?.value},e?.id))},e.id))})]})})})};var x=i(222),j=i.n(x),y=i(3376),z=i.n(y);let T="-esm-patient-immunizations__immunization-history-card__vaccineNameCell___vYS6+";j().extend(z());let g=e=>{let n=j()().startOf("day"),i=j()(e).startOf("day");return n.isSameOrAfter(i)?"DUE":"NOT_DUE"},v=({error:e,immunizations:n})=>{let{t:i}=(0,d.useTranslation)(),s=i("immunizations","Immunizations"),c="tablet"===(0,t.useLayoutType)(),m=(0,r.useMemo)(()=>(n||[]).map(e=>({...e,existingDoses:(e?.existingDoses||[]).sort((e,n)=>new Date(e?.occurrenceDateTime).getTime()-new Date(n?.occurrenceDateTime).getTime())})),[n]),l=[{key:"vaccine",header:i("vaccine","Vaccine")},{key:"doses",header:i("doses","Doses")}],h=(0,r.useMemo)(()=>(m||[]).map(e=>{let n=e.existingDoses?.[e.existingDoses.length-1];return{id:e.vaccineUuid,vaccine:e.vaccineName,nextDoseDate:n?.nextDoseDate,doses:e.existingDoses.map(n=>(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseCell___l9TRp",children:[(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseLabel___+Sc6D",children:e.sequences?.find(e=>e.sequenceNumber===n.doseNumber)?.sequenceLabel??i("doseNumber","Dose {{number}}",{number:n.doseNumber})}),n.occurrenceDateTime&&(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseDate___VEH8-",children:(0,t.formatDate)((0,t.parseDate)(n.occurrenceDateTime),{mode:"standard",time:!1,noToday:!0})})]},n.immunizationObsUuid))}}),[m,i]),{results:_,currentPage:p,goTo:b}=(0,t.usePagination)(h||[],5),D=(h?.length||0)>5;return e?(0,o.jsx)(a.ErrorState,{error:e,headerTitle:s}):(0,o.jsxs)("div",{children:[(0,o.jsxs)(u.Table,{"aria-label":i("immunizationHistory","Immunization history"),className:"-esm-patient-immunizations__immunization-history-card__table___KBKrD",size:c?"md":"sm",useZebraStyles:!0,children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:l.map((e,n)=>(0,o.jsx)(u.TableHeader,{className:0===n?T:void 0,children:e.header},e.key))})}),(0,o.jsx)(u.TableBody,{children:_?.map(e=>(0,o.jsxs)(u.TableRow,{children:[(0,o.jsx)(u.TableCell,{className:T,children:(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__vaccineNameContent___Llc+K",children:[(0,o.jsx)("strong",{children:e.vaccine}),e.nextDoseDate&&(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__nextDoseDateLabel___cNyUL","data-status":g(e.nextDoseDate),children:[i("nextDose","Next dose"),":"," ",(0,t.formatDate)((0,t.parseDate)(e.nextDoseDate),{mode:"standard",time:!1,noToday:!0})," ","(","DUE"===g(e.nextDoseDate)?i("due","Due"):i("notDue","Not due"),")"]})]})}),(0,o.jsx)(u.TableCell,{className:"-esm-patient-immunizations__immunization-history-card__dosesCell___gDjBE",children:(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__vaccineDose___j7DYY",children:e.doses})})]},e.id))})]}),D?(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__paginationContainer___G0vj+",children:(0,o.jsx)(a.PatientChartPagination,{currentItems:_?.length||0,onPageNumberChange:({page:e})=>b(e),pageNumber:p,pageSize:5,totalItems:h?.length||0})}):null]})},N="@openmrs/esm-patient-immunizations-app",f={featureName:"patient-immunizations",moduleName:N},A=i(4767);function C(){(0,t.defineConfigSchema)(N,s)}let w=(0,t.getSyncLifecycle)(({patient:e,patientUuid:n,basePath:i})=>{let{t:s}=(0,d.useTranslation)(),m=s("immunizations__lower","immunizations"),p=s("immunizations","Immunizations"),b=s("seeAll","See all"),D=window.spaBase+i+"/immunizations",{data:x,error:j,isLoading:y,isValidating:z}=(0,h.v)(n),{results:T,goTo:g,currentPage:v}=(0,t.usePagination)(x??[],5),N=c().useCallback(()=>(0,t.launchWorkspace2)("immunization-form-workspace"),[]),f=[{key:"vaccineName",header:s("recentVaccination","Recent vaccination")},{key:"vaccinationDate",header:s("vaccinationDate","Vaccination date")}],A=(0,r.useMemo)(()=>T?.map((e,n)=>({...e,id:`${n}`,vaccineName:e.vaccineName,vaccinationDate:`${(0,t.formatDate)((0,t.parseDate)(e.existingDoses[0].occurrenceDateTime),{day:!1,time:!1})}`})),[T]);return y?(0,o.jsx)(u.DataTableSkeleton,{role:"progressbar"}):j?(0,o.jsx)(a.ErrorState,{error:j,headerTitle:p}):x?.length?(0,o.jsxs)("div",{className:_.widgetCard,children:[(0,o.jsxs)(a.CardHeader,{title:p,children:[(0,o.jsx)("span",{children:z?(0,o.jsx)(u.InlineLoading,{}):null}),(0,o.jsx)(u.Button,{kind:"ghost",renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),iconDescription:"Add immunizations",onClick:N,children:s("add","Add")})]}),(0,o.jsx)(u.DataTable,{headers:f,rows:A,isSortable:!0,size:"sm",useZebraStyles:!0,children:({rows:e,headers:n,getHeaderProps:i,getTableProps:t})=>(0,o.jsx)(u.TableContainer,{children:(0,o.jsxs)(u.Table,{...t(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:n.map(e=>(0,o.jsx)(u.TableHeader,{className:l()(_.productiveHeading01,_.text02),...i({header:e}),children:e.header}))})}),(0,o.jsx)(u.TableBody,{children:e.map(e=>(0,o.jsx)(u.TableRow,{children:e.cells.map(e=>(0,o.jsx)(u.TableCell,{children:e.value?.content??e.value},e.id))},e.id))})]})})}),(0,o.jsx)("div",{className:_.paginationContainer,children:(0,o.jsx)(a.PatientChartPagination,{currentItems:T.length,onPageNumberChange:({page:e})=>g(e),pageNumber:v,pageSize:5,totalItems:x.length,dashboardLinkUrl:D,dashboardLinkLabel:b})})]}):(0,o.jsx)(a.EmptyState,{displayText:m,headerTitle:p,launchForm:N})},f),k=(0,t.getSyncLifecycle)(({patientUuid:e,launchStartVisitPrompt:n})=>{let{t:i}=(0,d.useTranslation)(),{immunizationsConfig:s}=(0,t.useConfig)(),m=i("immunizations__lower","immunizations"),l=i("immunizations","Immunizations"),{activeVisit:_}=(0,a.usePatientChartStore)(e),x="tablet"===(0,t.useLayoutType)(),j=s?.sequenceDefinitions,{data:y,isLoading:z,error:T,isValidating:g}=(0,h.v)(e),v=(0,r.useMemo)(()=>(0,b.xS)(y,j),[y,j]),N=(0,r.useCallback)(()=>{_?(0,t.launchWorkspace2)("immunization-form-workspace"):n()},[_,n]),f=(0,r.useMemo)(()=>(0,p.A)(v,[e=>{let n=e.existingDoses?.length?e.existingDoses.reduce((e,n)=>new Date(n.occurrenceDateTime)>new Date(e.occurrenceDateTime)?n:e,e.existingDoses[0]):null;return n?new Date(n.occurrenceDateTime).getTime():0}],["desc"]),[v]),A=(0,r.useMemo)(()=>[{key:"vaccine",header:i("vaccine","Vaccine")},{key:"recentVaccination",header:i("recentVaccination","Recent vaccination")},{key:"add",header:""}],[i]),C=(0,r.useMemo)(()=>f?.map(e=>{let n=e.existingDoses?[...e.existingDoses].sort(b.yM):[],a=n?.[0],s=!!a,r=e.sequences?.length>0?e.sequences.find(e=>e.sequenceNumber===a?.doseNumber)?.sequenceLabel:null,c=s?`${i("lastDoseOnDate","Last dose on {{date}}",{date:(0,t.formatDate)((0,t.parseDate)(a.occurrenceDateTime),{mode:"standard",noToday:!0,time:!1})})}, ${r??i("doseNumber","Dose {{number}}",{number:a.doseNumber})}`:"";return{id:e.vaccineUuid,vaccine:e.vaccineName,recentVaccination:c,add:(0,o.jsx)(u.Button,{hasIconOnly:!0,iconDescription:i("add","Add"),kind:"ghost",onClick:()=>{b.RA.next({vaccineUuid:e.vaccineUuid,immunizationId:null,vaccinationDate:null,doseNumber:0,nextDoseDate:null,note:"",expirationDate:null,lotNumber:null,manufacturer:null}),N()},renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),size:"sm"})}}),[N,f,i]),{results:w,currentPage:k,goTo:S}=(0,t.usePagination)(C,10),I=(0,r.useMemo)(()=>new Map(f?.map(e=>[e.vaccineUuid,e])??[]),[f]);return z||!f?(0,o.jsx)(u.DataTableSkeleton,{role:"progressbar"}):T?(0,o.jsx)(a.ErrorState,{error:T,headerTitle:l}):f?.length?(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunizations-detailed-summary__widgetCard___-l-g3",children:[(0,o.jsxs)(a.CardHeader,{title:l,children:[(0,o.jsx)("span",{children:g?(0,o.jsx)(u.InlineLoading,{}):null}),(0,o.jsx)(u.Button,{"data-testid":"add-immunizations-button",iconDescription:i("addImmunizations","Add immunizations"),kind:"ghost",renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),onClick:N,children:i("add","Add")})]}),(0,o.jsx)(u.DataTable,{rows:w,headers:A,size:x?"lg":"sm",useZebraStyles:!0,children:({rows:n,headers:i,getExpandedRowProps:t,getHeaderProps:a,getRowProps:s,getTableProps:r,getExpandHeaderProps:m})=>(0,o.jsx)(u.TableContainer,{children:(0,o.jsxs)(u.Table,{"aria-label":"immunizations summary",size:x?"md":"sm",...r(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsxs)(u.TableRow,{children:[(0,o.jsx)(u.TableExpandHeader,{enableToggle:!0,...m()}),i.map(e=>(0,o.jsx)(u.TableHeader,{...a({header:e}),children:e.header}))]})}),(0,o.jsx)(u.TableBody,{children:n.map(n=>{let a=I.get(n.id);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(u.TableExpandRow,{...s({row:n}),children:n.cells.map(e=>(0,o.jsx)(u.TableCell,{children:e.value},e.id))}),n.isExpanded?(0,o.jsx)(u.TableExpandedRow,{...t({row:n}),colSpan:i.length+2,children:a&&(0,o.jsx)(D,{immunizationsByVaccine:a,launchPatientImmunizationForm:N,patientUuid:e})}):(0,o.jsx)(u.TableExpandedRow,{className:"-esm-patient-immunizations__immunizations-detailed-summary__hiddenRow___n9QIw",colSpan:i.length+2})]},n.id)})})]})})}),(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunizations-detailed-summary__paginationContainer___3J+SS",children:(0,o.jsx)(a.PatientChartPagination,{totalItems:C?.length,pageSize:10,onPageNumberChange:({page:e})=>S(e),pageNumber:k,currentItems:w?.length})})]}):(0,o.jsx)(a.EmptyState,{displayText:m,headerTitle:l,launchForm:N})},f),S=(0,t.getSyncLifecycle)(({patientUuid:e})=>{let{t:n}=(0,d.useTranslation)(),{sequenceDefinitions:i}=(0,t.useConfig)(),{data:s,error:c}=(0,h.v)(e),m=n("immunizationsHistory","Immunizations history"),l=(0,r.useMemo)(()=>(0,b.xS)(s,i),[s,i]);return s?.length?(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__widgetCard___ddB3F",children:[(0,o.jsx)(a.CardHeader,{title:m,children:null}),(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__content___N6YsM",children:(0,o.jsx)(v,{error:c,immunizations:l})})]}):null},f),I=(0,t.getSyncLifecycle)((0,a.createDashboardLink)({slot:"patient-chart-immunizations-dashboard-slot",path:"immunizations",title:"Immunizations",icon:"omrs-icon-syringe"}),f),q=(0,t.getAsyncLifecycle)(()=>Promise.all([i.e("2304"),i.e("3840"),i.e("4377")]).then(i.bind(i,5056)),f),U=(0,t.getAsyncLifecycle)(()=>Promise.all([i.e("3840"),i.e("1388")]).then(i.bind(i,7431)),f)}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app||[]).push([["880"],{4767(e,n,i){var t={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./es_419.json":["1842","6271"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function a(e){if(!i.o(t,e))return Promise.resolve().then(function(){var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n});var n=t[e],a=n[0];return i.e(n[1]).then(function(){return i(a)})}a.keys=()=>Object.keys(t),a.id=4767,e.exports=a},7663(e,n,i){"use strict";i.d(n,{B:()=>o,v:()=>s});var t=i(2664),a=i(2178);function s(e){let n=`${t.fhirBaseUrl}/Immunization?patient=${e}`,{data:i,error:s,isLoading:o,isValidating:r,mutate:c}=(0,t.useFhirFetchAll)(n);return{data:i?(0,a.qj)(i):[],error:s,isLoading:o,isValidating:r,mutate:c}}async function o(e){let n=new AbortController,i=`${t.fhirBaseUrl}/Immunization/${e}`;await (0,t.openmrsFetch)(i,{method:"DELETE",signal:n.signal})}},2178(e,n,i){"use strict";i.d(n,{DA:()=>u,qj:()=>l});var t=i(6966),a=i(4501),s=i(7891),o=i(6551);let r="http://hl7.eu/fhir/StructureDefinition/immunization-nextDoseDate",c=e=>{var n;if(!e)return null;let i=e?.id,t=e?.manufacturer?.display,a=e?.lotNumber,s=e?.protocolApplied?.length>0&&e?.protocolApplied[0],o=s?.doseNumberPositiveInt,c=e?.occurrenceDateTime?.toString(),m=e?.extension?.find(e=>e.url===r),l=m?.valueDateTime?.toString(),d=e?.expirationDate?.toString(),u=e?.note?.length>0&&e?.note[0]?.text;return{immunizationObsUuid:i,manufacturer:t,lotNumber:a,nextDoseDate:l,doseNumber:o,note:u?[{text:u}]:[],occurrenceDateTime:c,expirationDate:d,visitUuid:(n=e?.encounter)&&n.reference?n.reference.split("/")[1]:null}},m=function(e){return e?.vaccineCode?.coding&&(0,t.A)(e.vaccineCode.coding,function(e){return(0,a.A)(e.system)})||null},l=e=>{if(!e)return[];let n=[];if(Array.isArray(e)?n=e.filter(e=>e&&"object"==typeof e&&"Immunization"===e.resourceType):e?.entry&&(n=e.entry.filter(e=>e?.resource?.resourceType==="Immunization").map(e=>e.resource)),!n.length)return[];let i=Object.entries((0,s.A)(n,e=>m(e)?.code)).filter(([e])=>e).map(([e,n])=>{let i=n.map(c).filter(e=>null!==e),t=m(n[0]);return{vaccineName:t?.display,vaccineUuid:t?.code,existingDoses:(0,o.A)(i,[e=>e.occurrenceDateTime],["desc"])}});return(0,o.A)(i,[e=>e.existingDoses?.[0]?.occurrenceDateTime??""],["desc"])};function d(e,n){if(!n)return null;let i=`${e}/${n}`;return{type:e,reference:i}}let u=(e,n,i,t)=>{let a={resourceType:"Immunization",status:"completed",id:e.immunizationId,vaccineCode:{coding:[{code:e.vaccineUuid,display:e.vaccineName}]},patient:d("Patient",e.patientUuid),encounter:d("Encounter",n),occurrenceDateTime:e.vaccinationDate,expirationDate:e.expirationDate||void 0,extension:e.nextDoseDate?[{url:r,valueDateTime:e.nextDoseDate}]:[],note:e.note?.trim()?[{text:e.note.trim()}]:[],location:d("Location",i)};t&&(a.performer=[{actor:d("Practitioner",t)}]);let s=e.manufacturer?.trim();s&&(a.manufacturer={display:s});let o=e.lotNumber?.trim();o&&(a.lotNumber=o);let c=e.doseNumber;return"number"==typeof c&&c>=1&&(a.protocolApplied=[{doseNumberPositiveInt:c}]),a}},7723(e,n,i){"use strict";i.d(n,{RA:()=>s,xS:()=>o,yM:()=>r});var t=i(4683),a=i(6966);let s=new(i(4354)).BehaviorSubject(null),o=(e,n)=>(0,t.A)(e,e=>{let i=(0,a.A)(n,n=>n.vaccineConceptUuid===e.vaccineUuid);return e.sequences=i?.sequences||[],e}),r=(e,n)=>new Date(n.occurrenceDateTime).getTime()-new Date(e.occurrenceDateTime).getTime()},8195(e,n,i){"use strict";i.r(n),i.d(n,{immunizationsOverview:()=>w,deleteImmunizationConfirmationModal:()=>U,immunizationsDashboardLink:()=>I,importTranslation:()=>A,immunizationHistorySummary:()=>S,immunizationsDetailedSummary:()=>k,immunizationFormWorkspace:()=>q,startupApp:()=>C});var t=i(2664),a=i(6717);let s={immunizationConceptSet:{_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,_elements:{_type:t.Type.Object,vaccineConceptUuid:{_type:t.Type.UUID,_description:"The UUID of the individual vaccine concept"},sequences:{_type:t.Type.Array,_elements:{_type:t.Type.Object,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]"}}}},_description:"Doses/Schedules definitions for each vaccine configured if applicable. If not provided the vaccine would be treated as a vaccine without schedules",_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}]}]}};var o=i(3338),r=i(5399),c=i.n(r),m=i(3373),l=i.n(m),d=i(7807),u=i(324),h=i(7663);let _={widgetCard:"-esm-patient-immunizations__immunizations-overview__widgetCard___AmbOd",paginationContainer:"-esm-patient-immunizations__immunizations-overview__paginationContainer___zV1Hc"};var p=i(6551),b=i(7723);let D=({immunizationsByVaccine:e,launchPatientImmunizationForm:n,patientUuid:i})=>{let{t:a}=(0,d.useTranslation)(),{existingDoses:s,sequences:c,vaccineUuid:m}=e,l="tablet"===(0,t.useLayoutType)()?"md":"sm",h=(0,r.useMemo)(()=>[{key:"sequence",header:c.length?a("sequence","Sequence"):a("doseNumberWithinSeries","Dose number within series")},{key:"vaccinationDate",header:a("vaccinationDate","Vaccination date")},{key:"nextDoseDate",header:a("nextDoseDate","Next dose date")},{key:"expirationDate",header:a("expirationDate","Expiration date")},{key:"note",header:a("note","Note")},{key:"actions",header:a("actions","Actions")}],[a,c.length]),_=s?.map(e=>({id:e?.immunizationObsUuid,sequence:c.length?c?.find(n=>n.sequenceNumber===e.doseNumber)?.sequenceLabel||e.doseNumber:e.doseNumber||0,vaccinationDate:e?.occurrenceDateTime&&(0,t.formatDate)(new Date(e.occurrenceDateTime),{mode:"standard",noToday:!0,time:!1}),nextDoseDate:e?.nextDoseDate?(0,t.formatDate)(new Date(e.nextDoseDate),{mode:"standard",noToday:!0,time:!1}):"--",expirationDate:e?.expirationDate&&(0,t.formatDate)(new Date(e.expirationDate),{mode:"standard",noToday:!0,time:!1})||"--",note:e?.note[0]?.text||"--",actions:(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunizations-sequence-table__actionButtons___jzEjU",children:[(0,o.jsx)(u.IconButton,{kind:"ghost",label:(0,t.getCoreTranslation)("edit"),onClick:()=>{b.RA.next({vaccineUuid:m,immunizationId:e.immunizationObsUuid,vaccinationDate:e.occurrenceDateTime,doseNumber:e.doseNumber,nextDoseDate:e.nextDoseDate,note:e.note[0]?.text,expirationDate:e.expirationDate,lotNumber:e.lotNumber,manufacturer:e.manufacturer,visitId:e.visitUuid}),n()},size:l,children:(0,o.jsx)(t.EditIcon,{size:16})}),(0,o.jsx)(u.IconButton,{kind:"ghost",label:(0,t.getCoreTranslation)("delete"),onClick:()=>(({doseNumber:e,immunizationId:n,vaccineUuid:a})=>{let s=(0,t.showModal)("immunization-delete-confirmation-modal",{doseNumber:e,immunizationId:n,patientUuid:i,vaccineUuid:a,close:()=>s?.()})})({doseNumber:e.doseNumber,immunizationId:e.immunizationObsUuid,vaccineUuid:m}),size:l,children:(0,o.jsx)(t.TrashCanIcon,{size:16})})]})}));if(_?.length)return(0,o.jsx)(u.DataTable,{rows:_,headers:h,useZebraStyles:!0,children:({rows:e,headers:n,getHeaderProps:i,getTableProps:t,getRowProps:a})=>(0,o.jsx)(u.TableContainer,{className:"-esm-patient-immunizations__immunizations-sequence-table__sequenceTable___rTgeE",children:(0,o.jsxs)(u.Table,{...t(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:n.map(e=>(0,o.jsx)(u.TableHeader,{...i({header:e}),children:e.header}))})}),(0,o.jsx)(u.TableBody,{children:e.map(e=>(0,o.jsx)(u.TableRow,{...a({row:e}),children:e.cells.map(e=>(0,o.jsx)(u.TableCell,{className:"-esm-patient-immunizations__immunizations-sequence-table__tableCell___SEELH",children:e?.value},e?.id))},e.id))})]})})})};var x=i(222),j=i.n(x),y=i(3376),z=i.n(y);let T="-esm-patient-immunizations__immunization-history-card__vaccineNameCell___vYS6+";j().extend(z());let g=e=>{let n=j()().startOf("day"),i=j()(e).startOf("day");return n.isSameOrAfter(i)?"DUE":"NOT_DUE"},v=({error:e,immunizations:n})=>{let{t:i}=(0,d.useTranslation)(),s=i("immunizations","Immunizations"),c="tablet"===(0,t.useLayoutType)(),m=(0,r.useMemo)(()=>(n||[]).map(e=>({...e,existingDoses:(e?.existingDoses||[]).sort((e,n)=>new Date(e?.occurrenceDateTime).getTime()-new Date(n?.occurrenceDateTime).getTime())})),[n]),l=[{key:"vaccine",header:i("vaccine","Vaccine")},{key:"doses",header:i("doses","Doses")}],h=(0,r.useMemo)(()=>(m||[]).map(e=>{let n=e.existingDoses?.[e.existingDoses.length-1];return{id:e.vaccineUuid,vaccine:e.vaccineName,nextDoseDate:n?.nextDoseDate,doses:e.existingDoses.map(n=>(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseCell___l9TRp",children:[(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseLabel___+Sc6D",children:e.sequences?.find(e=>e.sequenceNumber===n.doseNumber)?.sequenceLabel??i("doseNumber","Dose {{number}}",{number:n.doseNumber})}),n.occurrenceDateTime&&(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__doseDate___VEH8-",children:(0,t.formatDate)((0,t.parseDate)(n.occurrenceDateTime),{mode:"standard",time:!1,noToday:!0})})]},n.immunizationObsUuid))}}),[m,i]),{results:_,currentPage:p,goTo:b}=(0,t.usePagination)(h||[],5),D=(h?.length||0)>5;return e?(0,o.jsx)(a.ErrorState,{error:e,headerTitle:s}):(0,o.jsxs)("div",{children:[(0,o.jsxs)(u.Table,{"aria-label":i("immunizationHistory","Immunization history"),className:"-esm-patient-immunizations__immunization-history-card__table___KBKrD",size:c?"md":"sm",useZebraStyles:!0,children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:l.map((e,n)=>(0,o.jsx)(u.TableHeader,{className:0===n?T:void 0,children:e.header},e.key))})}),(0,o.jsx)(u.TableBody,{children:_?.map(e=>(0,o.jsxs)(u.TableRow,{children:[(0,o.jsx)(u.TableCell,{className:T,children:(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__vaccineNameContent___Llc+K",children:[(0,o.jsx)("strong",{children:e.vaccine}),e.nextDoseDate&&(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__nextDoseDateLabel___cNyUL","data-status":g(e.nextDoseDate),children:[i("nextDose","Next dose"),":"," ",(0,t.formatDate)((0,t.parseDate)(e.nextDoseDate),{mode:"standard",time:!1,noToday:!0})," ","(","DUE"===g(e.nextDoseDate)?i("due","Due"):i("notDue","Not due"),")"]})]})}),(0,o.jsx)(u.TableCell,{className:"-esm-patient-immunizations__immunization-history-card__dosesCell___gDjBE",children:(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__vaccineDose___j7DYY",children:e.doses})})]},e.id))})]}),D?(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__paginationContainer___G0vj+",children:(0,o.jsx)(a.PatientChartPagination,{currentItems:_?.length||0,onPageNumberChange:({page:e})=>b(e),pageNumber:p,pageSize:5,totalItems:h?.length||0})}):null]})},N="@openmrs/esm-patient-immunizations-app",f={featureName:"patient-immunizations",moduleName:N},A=i(4767);function C(){(0,t.defineConfigSchema)(N,s)}let w=(0,t.getSyncLifecycle)(({patient:e,patientUuid:n,basePath:i})=>{let{t:s}=(0,d.useTranslation)(),m=s("immunizations__lower","immunizations"),p=s("immunizations","Immunizations"),b=s("seeAll","See all"),D=window.spaBase+i+"/immunizations",{data:x,error:j,isLoading:y,isValidating:z}=(0,h.v)(n),{results:T,goTo:g,currentPage:v}=(0,t.usePagination)(x??[],5),N=c().useCallback(()=>(0,t.launchWorkspace2)("immunization-form-workspace"),[]),f=[{key:"vaccineName",header:s("recentVaccination","Recent vaccination")},{key:"vaccinationDate",header:s("vaccinationDate","Vaccination date")}],A=(0,r.useMemo)(()=>T?.map((e,n)=>({...e,id:`${n}`,vaccineName:e.vaccineName,vaccinationDate:`${(0,t.formatDate)((0,t.parseDate)(e.existingDoses[0].occurrenceDateTime),{day:!1,time:!1})}`})),[T]);return y?(0,o.jsx)(u.DataTableSkeleton,{role:"progressbar"}):j?(0,o.jsx)(a.ErrorState,{error:j,headerTitle:p}):x?.length?(0,o.jsxs)("div",{className:_.widgetCard,children:[(0,o.jsxs)(a.CardHeader,{title:p,children:[(0,o.jsx)("span",{children:z?(0,o.jsx)(u.InlineLoading,{}):null}),(0,o.jsx)(u.Button,{kind:"ghost",renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),iconDescription:"Add immunizations",onClick:N,children:s("add","Add")})]}),(0,o.jsx)(u.DataTable,{headers:f,rows:A,isSortable:!0,size:"sm",useZebraStyles:!0,children:({rows:e,headers:n,getHeaderProps:i,getTableProps:t})=>(0,o.jsx)(u.TableContainer,{children:(0,o.jsxs)(u.Table,{...t(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsx)(u.TableRow,{children:n.map(e=>(0,o.jsx)(u.TableHeader,{className:l()(_.productiveHeading01,_.text02),...i({header:e}),children:e.header}))})}),(0,o.jsx)(u.TableBody,{children:e.map(e=>(0,o.jsx)(u.TableRow,{children:e.cells.map(e=>(0,o.jsx)(u.TableCell,{children:e.value?.content??e.value},e.id))},e.id))})]})})}),(0,o.jsx)("div",{className:_.paginationContainer,children:(0,o.jsx)(a.PatientChartPagination,{currentItems:T.length,onPageNumberChange:({page:e})=>g(e),pageNumber:v,pageSize:5,totalItems:x.length,dashboardLinkUrl:D,dashboardLinkLabel:b})})]}):(0,o.jsx)(a.EmptyState,{displayText:m,headerTitle:p,launchForm:N})},f),k=(0,t.getSyncLifecycle)(({patientUuid:e,launchStartVisitPrompt:n})=>{let{t:i}=(0,d.useTranslation)(),{immunizationsConfig:s}=(0,t.useConfig)(),m=i("immunizations__lower","immunizations"),l=i("immunizations","Immunizations"),{activeVisit:_}=(0,a.usePatientChartStore)(e),x="tablet"===(0,t.useLayoutType)(),j=s?.sequenceDefinitions,{data:y,isLoading:z,error:T,isValidating:g}=(0,h.v)(e),v=(0,r.useMemo)(()=>(0,b.xS)(y,j),[y,j]),N=(0,r.useCallback)(()=>{_?(0,t.launchWorkspace2)("immunization-form-workspace"):n()},[_,n]),f=(0,r.useMemo)(()=>(0,p.A)(v,[e=>{let n=e.existingDoses?.length?e.existingDoses.reduce((e,n)=>new Date(n.occurrenceDateTime)>new Date(e.occurrenceDateTime)?n:e,e.existingDoses[0]):null;return n?new Date(n.occurrenceDateTime).getTime():0}],["desc"]),[v]),A=(0,r.useMemo)(()=>[{key:"vaccine",header:i("vaccine","Vaccine")},{key:"recentVaccination",header:i("recentVaccination","Recent vaccination")},{key:"add",header:""}],[i]),C=(0,r.useMemo)(()=>f?.map(e=>{let n=e.existingDoses?[...e.existingDoses].sort(b.yM):[],a=n?.[0],s=!!a,r=e.sequences?.length>0?e.sequences.find(e=>e.sequenceNumber===a?.doseNumber)?.sequenceLabel:null,c=s?`${i("lastDoseOnDate","Last dose on {{date}}",{date:(0,t.formatDate)((0,t.parseDate)(a.occurrenceDateTime),{mode:"standard",noToday:!0,time:!1})})}, ${r??i("doseNumber","Dose {{number}}",{number:a.doseNumber})}`:"";return{id:e.vaccineUuid,vaccine:e.vaccineName,recentVaccination:c,add:(0,o.jsx)(u.Button,{hasIconOnly:!0,iconDescription:i("add","Add"),kind:"ghost",onClick:()=>{b.RA.next({vaccineUuid:e.vaccineUuid,immunizationId:null,vaccinationDate:null,doseNumber:0,nextDoseDate:null,note:"",expirationDate:null,lotNumber:null,manufacturer:null}),N()},renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),size:"sm"})}}),[N,f,i]),{results:w,currentPage:k,goTo:S}=(0,t.usePagination)(C,10),I=(0,r.useMemo)(()=>new Map(f?.map(e=>[e.vaccineUuid,e])??[]),[f]);return z||!f?(0,o.jsx)(u.DataTableSkeleton,{role:"progressbar"}):T?(0,o.jsx)(a.ErrorState,{error:T,headerTitle:l}):f?.length?(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunizations-detailed-summary__widgetCard___-l-g3",children:[(0,o.jsxs)(a.CardHeader,{title:l,children:[(0,o.jsx)("span",{children:g?(0,o.jsx)(u.InlineLoading,{}):null}),(0,o.jsx)(u.Button,{"data-testid":"add-immunizations-button",iconDescription:i("addImmunizations","Add immunizations"),kind:"ghost",renderIcon:e=>(0,o.jsx)(t.AddIcon,{size:16,...e}),onClick:N,children:i("add","Add")})]}),(0,o.jsx)(u.DataTable,{rows:w,headers:A,size:x?"lg":"sm",useZebraStyles:!0,children:({rows:n,headers:i,getExpandedRowProps:t,getHeaderProps:a,getRowProps:s,getTableProps:r,getExpandHeaderProps:m})=>(0,o.jsx)(u.TableContainer,{children:(0,o.jsxs)(u.Table,{"aria-label":"immunizations summary",size:x?"md":"sm",...r(),children:[(0,o.jsx)(u.TableHead,{children:(0,o.jsxs)(u.TableRow,{children:[(0,o.jsx)(u.TableExpandHeader,{enableToggle:!0,...m()}),i.map(e=>(0,o.jsx)(u.TableHeader,{...a({header:e}),children:e.header}))]})}),(0,o.jsx)(u.TableBody,{children:n.map(n=>{let a=I.get(n.id);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)(u.TableExpandRow,{...s({row:n}),children:n.cells.map(e=>(0,o.jsx)(u.TableCell,{children:e.value},e.id))}),n.isExpanded?(0,o.jsx)(u.TableExpandedRow,{...t({row:n}),colSpan:i.length+2,children:a&&(0,o.jsx)(D,{immunizationsByVaccine:a,launchPatientImmunizationForm:N,patientUuid:e})}):(0,o.jsx)(u.TableExpandedRow,{className:"-esm-patient-immunizations__immunizations-detailed-summary__hiddenRow___n9QIw",colSpan:i.length+2})]},n.id)})})]})})}),(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunizations-detailed-summary__paginationContainer___3J+SS",children:(0,o.jsx)(a.PatientChartPagination,{totalItems:C?.length,pageSize:10,onPageNumberChange:({page:e})=>S(e),pageNumber:k,currentItems:w?.length})})]}):(0,o.jsx)(a.EmptyState,{displayText:m,headerTitle:l,launchForm:N})},f),S=(0,t.getSyncLifecycle)(({patientUuid:e})=>{let{t:n}=(0,d.useTranslation)(),{sequenceDefinitions:i}=(0,t.useConfig)(),{data:s,error:c}=(0,h.v)(e),m=n("immunizationsHistory","Immunizations history"),l=(0,r.useMemo)(()=>(0,b.xS)(s,i),[s,i]);return s?.length?(0,o.jsxs)("div",{className:"-esm-patient-immunizations__immunization-history-card__widgetCard___ddB3F",children:[(0,o.jsx)(a.CardHeader,{title:m,children:null}),(0,o.jsx)("div",{className:"-esm-patient-immunizations__immunization-history-card__content___N6YsM",children:(0,o.jsx)(v,{error:c,immunizations:l})})]}):null},f),I=(0,t.getSyncLifecycle)((0,a.createDashboardLink)({slot:"patient-chart-immunizations-dashboard-slot",path:"immunizations",title:"Immunizations",icon:"omrs-icon-syringe"}),f),q=(0,t.getAsyncLifecycle)(()=>Promise.all([i.e("2304"),i.e("3840"),i.e("4377")]).then(i.bind(i,5056)),f),U=(0,t.getAsyncLifecycle)(()=>Promise.all([i.e("3840"),i.e("1388")]).then(i.bind(i,7431)),f)}}]);
|
package/dist/880.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"880.js","sources":["webpack://@openmrs/esm-patient-immunizations-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-patient-immunizations-app/./src/hooks/useImmunizations.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-mapper.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/utils.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/config-schema.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-overview.scss?c242","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/components/immunizations-sequence-table.scss?3e77","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/components/immunizations-sequence-table.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-card.scss?2192","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-card.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/index.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-overview.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-detailed-summary.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-detailed-summary.scss?4337","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-dashboard.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/dashboard.meta.ts"],"names":["Promise","Error","Object","useImmunizations","patientUuid","immunizationsUrl","fhirBaseUrl","data","error","isLoading","isValidating","mutate","useFhirFetchAll","mapFromFHIRImmunizationBundle","deletePatientImmunization","immunizationUuid","controller","AbortController","url","openmrsFetch","FHIR_NEXT_DOSE_DATE_EXTENSION_URL","mapToImmunizationDoseFromResource","immunizationResource","reference","immunizationObsUuid","manufacturer","lotNumber","protocolApplied","doseNumber","occurrenceDateTime","nextDoseDateExtension","ext","nextDoseDate","expirationDate","note","findCodeWithoutSystem","find","code","isUndefined","immunizationData","immunizations","Array","item","entry","groups","validGroups","groupBy","key","immunizationsForOneVaccine","existingDoses","dose","codeWithoutSystem","orderBy","g","toReferenceOfType","type","referenceValue","mapToFHIRImmunizationResource","immunizationFormData","visitUuid","locationUuid","providerUuid","resource","undefined","immunizationFormSub","BehaviorSubject","linkConfiguredSequences","existingImmunizations","configuredSequences","map","immunization","matchingSequenceDef","sequencesDef","latestFirst","a","b","Date","configSchema","Type","immunizationsByVaccine","launchPatientImmunizationForm","t","useTranslation","sequences","vaccineUuid","responsiveSize","isTablet","useLayoutType","tableHeaders","useMemo","tableRows","s","formatDate","IconButton","getCoreTranslation","EditIcon","handleDeleteImmunization","immunizationId","dispose","showModal","TrashCanIcon","DataTable","rows","headers","getHeaderProps","getTableProps","getRowProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","cell","TableCell","dayjs","isSameOrAfter","getNextDoseStatus","today","nextDate","headerTitle","sortedImmunizations","latestDose","sequence","parseDate","paginatedRows","currentPage","goTo","usePagination","showPagination","ErrorState","index","status","PatientChartPagination","page","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","immunizationsOverview","getSyncLifecycle","patient","basePath","displayText","urlLabel","pageUrl","window","paginatedImmunizations","launchImmunizationsForm","React","launchWorkspace2","DataTableSkeleton","styles","CardHeader","InlineLoading","Button","props","AddIcon","classNames","EmptyState","immunizationsDetailedSummary","launchStartVisitPrompt","immunizationsConfig","useConfig","activeVisit","usePatientChartStore","sequenceDefinitions","consolidatedImmunizations","useCallback","latest","current","tableHeader","sortedDoses","hasDoses","sequenceLabel","hasSequences","seq","occurrenceDate","immunizationsByVaccineUuid","Map","getExpandedRowProps","getExpandHeaderProps","TableExpandHeader","TableExpandRow","TableExpandedRow","SequenceTable","immunizationHistorySummary","ImmunizationHistoryCard","immunizationsDashboardLink","createDashboardLink","immunizationFormWorkspace","getAsyncLifecycle","i","deleteImmunizationConfirmationModal"],"mappings":"6JAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD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GACnCsH,EAAczC,EAAE,uBAAwB,yBAExCzC,EAAgBiD,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EAAQ,IAAMvB,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAwB3D,EAAMmK,GAAsB,CAACnK,EAAMmK,EAAoB,SAInH,AAAKnK,GAAM,OAKT,WAAC,OAAI,UN5Bub,4E,UM6B1b,UAACsJ,EAAAA,UAAUA,CAAAA,CAAC,MAAOnC,E,SAAc,I,GACjC,UAAC,OAAI,UN9Be,yE,SM+BlB,UAACqE,EAAuBA,CAAC,MAAOvL,EAAO,cAAegC,C,QAPnD,IAWX,EJXgGkG,GACnFsD,EAEXhD,AAAAA,GAAAA,EAAAA,gBAAAA,AAAAA,EACEiD,AAAAA,GAAAA,EAAAA,mBAAAA,AAAAA,EAAoB,CK1BtB,KAAM,6CACN,KAAM,gBACN,MAAO,gBACP,KAAM,mBLyBJ,GACAvD,GAISwD,EAA4BC,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EACvC,IAAM,aAAAC,EAAA,UAAAA,EAAA,UAAAA,EAAA,iBAAAA,EAAA,KAAAA,EAAA,OACN1D,GAGW2D,EAAsCF,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EACjD,IAAM,aAAAC,EAAA,UAAAA,EAAA,iBAAAA,EAAA,KAAAA,EAAA,OACN1D,E"}
|
|
1
|
+
{"version":3,"file":"880.js","sources":["webpack://@openmrs/esm-patient-immunizations-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-patient-immunizations-app/./src/hooks/useImmunizations.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-mapper.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/utils.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/config-schema.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-overview.scss?c242","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/components/immunizations-sequence-table.scss?3e77","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/components/immunizations-sequence-table.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-card.scss?2192","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-card.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/index.ts","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-overview.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-detailed-summary.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunizations-detailed-summary.scss?4337","webpack://@openmrs/esm-patient-immunizations-app/./src/immunizations/immunization-history-dashboard.component.tsx","webpack://@openmrs/esm-patient-immunizations-app/./src/dashboard.meta.ts"],"names":["Promise","Error","Object","useImmunizations","patientUuid","immunizationsUrl","fhirBaseUrl","data","error","isLoading","isValidating","mutate","useFhirFetchAll","mapFromFHIRImmunizationBundle","deletePatientImmunization","immunizationUuid","controller","AbortController","url","openmrsFetch","FHIR_NEXT_DOSE_DATE_EXTENSION_URL","mapToImmunizationDoseFromResource","immunizationResource","reference","immunizationObsUuid","manufacturer","lotNumber","protocolApplied","doseNumber","occurrenceDateTime","nextDoseDateExtension","ext","nextDoseDate","expirationDate","note","findCodeWithoutSystem","find","code","isUndefined","immunizationData","immunizations","Array","item","entry","groups","validGroups","groupBy","key","immunizationsForOneVaccine","existingDoses","dose","codeWithoutSystem","orderBy","g","toReferenceOfType","type","referenceValue","mapToFHIRImmunizationResource","immunizationFormData","visitUuid","locationUuid","providerUuid","resource","undefined","immunizationFormSub","BehaviorSubject","linkConfiguredSequences","existingImmunizations","configuredSequences","map","immunization","matchingSequenceDef","sequencesDef","latestFirst","a","b","Date","configSchema","Type","immunizationsByVaccine","launchPatientImmunizationForm","t","useTranslation","sequences","vaccineUuid","responsiveSize","isTablet","useLayoutType","tableHeaders","useMemo","tableRows","s","formatDate","IconButton","getCoreTranslation","EditIcon","handleDeleteImmunization","immunizationId","dispose","showModal","TrashCanIcon","DataTable","rows","headers","getHeaderProps","getTableProps","getRowProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","cell","TableCell","dayjs","isSameOrAfter","getNextDoseStatus","today","nextDate","headerTitle","sortedImmunizations","latestDose","sequence","parseDate","paginatedRows","currentPage","goTo","usePagination","showPagination","ErrorState","index","status","PatientChartPagination","page","moduleName","options","importTranslation","require","startupApp","defineConfigSchema","immunizationsOverview","getSyncLifecycle","patient","basePath","displayText","urlLabel","pageUrl","window","paginatedImmunizations","launchImmunizationsForm","React","launchWorkspace2","DataTableSkeleton","styles","CardHeader","InlineLoading","Button","props","AddIcon","classNames","EmptyState","immunizationsDetailedSummary","launchStartVisitPrompt","immunizationsConfig","useConfig","activeVisit","usePatientChartStore","sequenceDefinitions","consolidatedImmunizations","useCallback","latest","current","tableHeader","sortedDoses","hasDoses","sequenceLabel","hasSequences","seq","occurrenceDate","immunizationsByVaccineUuid","Map","getExpandedRowProps","getExpandHeaderProps","TableExpandHeader","TableExpandRow","TableExpandedRow","SequenceTable","immunizationHistorySummary","ImmunizationHistoryCard","immunizationsDashboardLink","createDashboardLink","immunizationFormWorkspace","getAsyncLifecycle","i","deleteImmunizationConfirmationModal"],"mappings":"6JAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,gBAAiB,CACf,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,iBAAkB,CAChB,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,AACH,EACA,SAAS,EAAuB,CAAG,EACjC,GAAG,CAAC,EAAoB,CAAC,CAAC,EAAK,GAC7B,OAAOA,QAAQ,OAAO,GAAG,IAAI,CAAC,WAC5B,IAAI,EAAI,AAAIC,MAAM,uBAAyB,EAAM,IAEjD,OADA,EAAE,IAAI,CAAG,mBACH,CACR,GAGF,IAAI,EAAM,CAAG,CAAC,EAAI,CAAE,EAAK,CAAG,CAAC,EAAE,CAC/B,OAAO,EAAoB,CAAC,CAAC,CAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WACxC,OAAO,EAAoB,EAC7B,EACF,CAEA,EAAuB,IAAI,CAAG,IAAOC,OAAO,IAAI,CAAC,GACjD,EAAuB,EAAE,CAAG,KAC5B,EAAO,OAAO,CAAG,C,4EC3LV,SAASC,EAAiBC,CAAmB,EAClD,IAAMC,EAAmB,CAAC,EAAEC,EAAAA,WAAWA,CA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AAA,EAAAA,cAAAA,AAAAA,IACR,CAAEwF,oBAAAA,CAAmB,CAAE,CAAGH,AAAAA,GAAAA,EAAAA,SAAAA,AAAAA,IAC1B,CAAEhK,KAAAA,CAAI,CAAEC,MAAAA,CAAK,CAAE,CAAGL,AAAAA,GAAAA,EAAAA,CAAAA,AAAAA,EAAiBC,GACnCsH,EAAczC,EAAE,uBAAwB,yBAExCzC,EAAgBiD,AAAAA,GAAAA,EAAAA,OAAAA,AAAAA,EAAQ,IAAMvB,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAwB3D,EAAMmK,GAAsB,CAACnK,EAAMmK,EAAoB,SAInH,AAAKnK,GAAM,OAKT,WAAC,OAAI,UN5Bub,4E,UM6B1b,UAACsJ,EAAAA,UAAUA,CAAAA,CAAC,MAAOnC,E,SAAc,I,GACjC,UAAC,OAAI,UN9Be,yE,SM+BlB,UAACqE,EAAuBA,CAAC,MAAOvL,EAAO,cAAegC,C,QAPnD,IAWX,EJXgGkG,GACnFsD,EAEXhD,AAAAA,GAAAA,EAAAA,gBAAAA,AAAAA,EACEiD,AAAAA,GAAAA,EAAAA,mBAAAA,AAAAA,EAAoB,CK1BtB,KAAM,6CACN,KAAM,gBACN,MAAO,gBACP,KAAM,mBLyBJ,GACAvD,GAISwD,EAA4BC,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EACvC,IAAM,aAAAC,EAAA,UAAAA,EAAA,UAAAA,EAAA,iBAAAA,EAAA,KAAAA,EAAA,OACN1D,GAGW2D,EAAsCF,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EACjD,IAAM,aAAAC,EAAA,UAAAA,EAAA,iBAAAA,EAAA,KAAAA,EAAA,OACN1D,E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _openmrs_esm_patient_immunizations_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-patient-immunizations-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-patient-immunizations-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,i,o={2793(e,t,r){"use strict";var n,i,o,a,s,l,u,c,p,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};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!=(i=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?i:{},M=null!=(o=null==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?o:{},_=null!=(a=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?a:{},v=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},O={},R=[],T={},w=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(v))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-patient-immunizations-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:i,factory:o,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:i,scope:[t],shareConfig:c,get:o};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),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=b[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:O,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,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:O,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3578(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,i=Object.getOwnPropertyDescriptor,o=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=o(t),u=0,c=l.length;u<c;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=i(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),i=r(3054),o={...i.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=i.helpers.share,s=i.helpers.utils;t.default={global:o,share:a,utils:s},t.global=o,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),i=r(3054),o=r(9170);function a(e){let t=new((0,i.getGlobalFederationConstructor)()||i.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,i.setGlobalFederationInstance)(t),t}let s=null;(0,i.setGlobalFederationConstructor)(i.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return i.Module}}),t.ModuleFederation=i.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?i.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return i.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return i.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,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return i.loadScriptNode}}),t.loadShare=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return i.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.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-patient-immunizations-app:13.0.2-pre.12952";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,i=Object.getOwnPropertyDescriptor,o=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=o(t),u=0,c=l.length;u<c;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=i(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),i=r(1092),o=r(2677),a=r(85),s=r(6781);t.consumes=function(e){i.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[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:i}=p[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let i=u.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=o.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[i.options.name]});let y=i.loadShare(c,{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:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let i=[`${[t[e]]} #${e}`];return r&&i.push(`args: ${JSON.stringify(r)}`),i.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&i.push(`Original Error Message:
|
|
1
|
+
var _openmrs_esm_patient_immunizations_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-patient-immunizations-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-patient-immunizations-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,i,o={2793(e,t,r){"use strict";var n,i,o,a,s,l,u,c,p,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};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!=(i=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?i:{},M=null!=(o=null==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?o:{},_=null!=(a=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?a:{},v=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},O={},R=[],T={},w=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(v))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-patient-immunizations-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:i,factory:o,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:i,scope:[t],shareConfig:c,get:o};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),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=b[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:O,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,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:O,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3578(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,i=Object.getOwnPropertyDescriptor,o=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=o(t),u=0,c=l.length;u<c;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=i(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),i=r(3054),o={...i.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=i.helpers.share,s=i.helpers.utils;t.default={global:o,share:a,utils:s},t.global=o,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),i=r(3054),o=r(9170);function a(e){let t=new((0,i.getGlobalFederationConstructor)()||i.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,i.setGlobalFederationInstance)(t),t}let s=null;(0,i.setGlobalFederationConstructor)(i.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return i.Module}}),t.ModuleFederation=i.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?i.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return i.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return i.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,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return i.loadScriptNode}}),t.loadShare=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return i.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,i.assert)(s,o.RUNTIME_009,o.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-patient-immunizations-app:13.0.2-pre.12955";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,i=Object.getOwnPropertyDescriptor,o=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=o(t),u=0,c=l.length;u<c;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=i(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),i=r(1092),o=r(2677),a=r(85),s=r(6781);t.consumes=function(e){i.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[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:i}=p[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let i=u.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=o.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[i.options.name]});let y=i.loadShare(c,{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:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let i=[`${[t[e]]} #${e}`];return r&&i.push(`args: ${JSON.stringify(r)}`),i.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&i.push(`Original Error Message:
|
|
2
2
|
${n}`),i.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:i="global"})=>{let{runtime:o,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let c=r?u.find(e=>e[1]===r):u[0];if(!c)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>o.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:c[2],entry:`${n.p}${c[0]}`,type:i,entryGlobalName:c[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),i=r(3545),o=r(3586),a=r(1864),s=r(2221),l=r(4307),u=r(1180),c=r(367),p=r(1315),d=r(3738);d=n.__toESM(d);let f={remotes:o.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:c.init,getSharedFallbackGetter:p.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:i.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,y=h.bundlerRuntimeOptions;t.attachShareScopeMap=i.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=y,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),i=r(3738),o=r(9837);o=n.__toESM(o),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:c}=t,p=n.version||c.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=o.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:p});return h&&"shared"in h&&(Object.keys(c.shared||{}).forEach(e=>{c.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:o}=t;if(!o)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:c}=n;o.status!==c&&(o.status=c,s&&l&&a&&(o.get=async()=>{let e=await (0,i.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:i,remoteEntryInitOptions:o}=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:[],...o});let s=o?.shareScopeKeys,l=o?.shareScopeMap;if(i&&"string"!=typeof i)i.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:o?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})});else{let e=i||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:o?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:o?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(i))?t.federation.initOptions.shared?t.I(i,n):Promise.all(i.map(e=>t.I(e,n))).then(()=>!0):t.I(i||"default",n)}},2221(e,t,r){let n=r(3545),i=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:o,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=o[s];if(u||(u=o[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let c=r[s];if(c)return c;var p=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var i=t(r);if(!i)return;var o=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(i.then)return d.push(i.then(o,n));var l=o(i);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)p(r);else if(1===t.length){let e=t[0];i.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||p(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),i=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:o,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:o}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=i.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),o)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]=i=>{o[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){}i.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),i=r(6917),o=r(1092),a=r(1853);t.remotes=function(e){o.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:c}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],o=c[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},p=(e,t,i,o,a,s)=>{try{let u=e(t,i);if(!u||!u.then)return a(u,o,s);{let e=u.then(e=>a(e,o),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,i)=>p(r.get,n[1],t,0,f,i),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===o.length&&i.FEDERATION_SUPPORTED_TYPES.includes(o[0].externalType)&&o[0].name?p(()=>{try{let e=(0,a.decodeName)(o[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):p(s,n[2],0,0,(e,t,r)=>e?p(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:i}=t,{sharedFallback:o,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:i={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(i).forEach(([e,n])=>{r[e]||(r[e]={getter:o?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:o?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:o?{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(i&&!i._updated){let{federation:e}=t;if(!e.instance||!i.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(i.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:i,factory:o,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,c={requiredVersion:`^${i}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:i,scope:[e],shareConfig:c,get:o};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),i._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:i={}}=e,{remotesLoadingData:o}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!o||o._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=o;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)})}i&&Object.entries(s).forEach(([e,t])=>{i[e]||(i[e]=[]),t.forEach(t=>{i[e].includes(t)||i[e].push(t)})}),o._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e].call(r.exports,r,r.exports,s),r.exports}s.m=o,s.c=a,s.x=()=>s(3578),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2(318|875|95)|3543|3840|5059|6961|7468|8167|8652)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},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),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var i,o,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@openmrs/esm-patient-immunizations-app:"+r){i=c;break}}i||(o=!0,(i=document.createElement("script")).timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack","@openmrs/esm-patient-immunizations-app:"+r),i.src=e),l[e]=[t];var p=function(t,r){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),o&&document.head.appendChild(i)},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:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("9073"),s.e("1180"),s.e("8652"),s.e("7468"),s.e("295"),s.e("8152")]).then(()=>()=>s(8007)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.1-pre.6006",factory:()=>Promise.all([s.e("9073"),s.e("7621"),s.e("848"),s.e("8652"),s.e("7468"),s.e("3840"),s.e("3543"),s.e("295"),s.e("8167"),s.e("5059"),s.e("2875")]).then(()=>()=>s(6451)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"13.0.2-pre.12952",factory:()=>Promise.all([s.e("7621"),s.e("8652"),s.e("3840"),s.e("3543"),s.e("295"),s.e("8167"),s.e("3617"),s.e("6961"),s.e("1772")]).then(()=>()=>s(4184)),eager:0,singleton:1,requiredVersion:"13.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom/client",version:"18.3.1",factory:()=>Promise.all([s.e("7468"),s.e("1610")]).then(()=>()=>s(5873)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react/jsx-runtime",version:"18.3.1",factory:()=>Promise.all([s.e("8652"),s.e("3390")]).then(()=>()=>s(1085)),eager:0,singleton:1,requiredVersion:"18.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:"rxjs",version:"6.6.7",factory:()=>s.e("9105").then(()=>()=>s(7864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("8652")]).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("8652"),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("8652"),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("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-immunizations-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,c=s.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var p=c.getElementsByTagName("script");if(p.length)for(var d=p.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=p[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{8652:["5399"],7468:["8439"],880:["6717","4354"],5059:["222"],2875:["6442","682","3432"],6961:["2664"],295:["3338"],3840:["1619"],3543:["5571","3660"],8167:["7807","324"]},moduleIdToConsumeDataMapping:{6717:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"13.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3840"),s.e("3543"),s.e("3617"),s.e("2318")]).then(()=>()=>s(4184))},3338:{shareScope:"default",shareKey:"react/jsx-runtime",import:"react/jsx-runtime",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1009").then(()=>()=>s(1085))},3660:{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))},682:{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))},222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9073"),s.e("1180"),s.e("7468")]).then(()=>()=>s(8007))},4354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9105").then(()=>()=>s(7864))},6442:{shareScope:"default",shareKey:"react-dom/client",import:"react-dom/client",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9229").then(()=>()=>s(5873))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},2664:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9073"),s.e("848"),s.e("7468"),s.e("3840"),s.e("3543"),s.e("5059"),s.e("2875")]).then(()=>()=>s(6451))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},1619:{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))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,i){var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.href=t,o.onerror=o.onload=function(r){if(o.onerror=o.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,o.parentNode&&o.parentNode.removeChild(o),i(l)}},r?r.parentNode.insertBefore(o,r.nextSibling):document.head.appendChild(o),o},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var i=r[n],o=i.getAttribute("data-href")||i.getAttribute("href");if(o&&(o=o.split("?")[0]),"stylesheet"===i.rel&&(o===e||o===t))return i}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var i=a[n],o=i.getAttribute("data-href");if(o===e||o===t)return i}},m={8364:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({1388:1,1772:1,2318:1,4377:1,848:1,880:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),i=s.p+n;if(h(n,i))return t();f(e,i,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("7621"),s.e("8732"),s.e("8652"),s.e("295"),s.e("8167"),s.e("5059"),s.e("6961"),s.e("880")]).then(()=>()=>s(8195))},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={8364: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(/^(2(318|875|95)|3543|3840|5059|6961|7468|8167|8652)$/.test(t))e[t]=0;else{var i=new Promise((r,i)=>n=e[t]=[r,i]);r.push(n[2]=i);var o=s.p+s.u(t),a=Error();s.l(o,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,i,[o,a,l]=r,u=0;if(o.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<o.length;u++)i=o[u],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(r=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_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,i=!1,s.x=function(){if(i||(i=!0,s(2793)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_immunizations_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},p=(e,t,i,o,a,s)=>{try{let u=e(t,i);if(!u||!u.then)return a(u,o,s);{let e=u.then(e=>a(e,o),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,i)=>p(r.get,n[1],t,0,f,i),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===o.length&&i.FEDERATION_SUPPORTED_TYPES.includes(o[0].externalType)&&o[0].name?p(()=>{try{let e=(0,a.decodeName)(o[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):p(s,n[2],0,0,(e,t,r)=>e?p(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:i}=t,{sharedFallback:o,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:i={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(i).forEach(([e,n])=>{r[e]||(r[e]={getter:o?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:o?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:o?{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(i&&!i._updated){let{federation:e}=t;if(!e.instance||!i.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(i.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:i,factory:o,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,c={requiredVersion:`^${i}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:i,scope:[e],shareConfig:c,get:o};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),i._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:i={}}=e,{remotesLoadingData:o}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!o||o._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=o;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)})}i&&Object.entries(s).forEach(([e,t])=>{i[e]||(i[e]=[]),t.forEach(t=>{i[e].includes(t)||i[e].push(t)})}),o._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e].call(r.exports,r,r.exports,s),r.exports}s.m=o,s.c=a,s.x=()=>s(3578),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2(318|875|95)|3543|3840|5059|6961|7468|8167|8652)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},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),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var i,o,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@openmrs/esm-patient-immunizations-app:"+r){i=c;break}}i||(o=!0,(i=document.createElement("script")).timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack","@openmrs/esm-patient-immunizations-app:"+r),i.src=e),l[e]=[t];var p=function(t,r){i.onerror=i.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),o&&document.head.appendChild(i)},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:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("9073"),s.e("1180"),s.e("8652"),s.e("7468"),s.e("295"),s.e("8152")]).then(()=>()=>s(8007)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.1-pre.6006",factory:()=>Promise.all([s.e("9073"),s.e("7621"),s.e("848"),s.e("8652"),s.e("7468"),s.e("3840"),s.e("3543"),s.e("295"),s.e("8167"),s.e("5059"),s.e("2875")]).then(()=>()=>s(6451)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"13.0.2-pre.12955",factory:()=>Promise.all([s.e("7621"),s.e("8652"),s.e("3840"),s.e("3543"),s.e("295"),s.e("8167"),s.e("3617"),s.e("6961"),s.e("1772")]).then(()=>()=>s(4184)),eager:0,singleton:1,requiredVersion:"13.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom/client",version:"18.3.1",factory:()=>Promise.all([s.e("7468"),s.e("1610")]).then(()=>()=>s(5873)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react/jsx-runtime",version:"18.3.1",factory:()=>Promise.all([s.e("8652"),s.e("3390")]).then(()=>()=>s(1085)),eager:0,singleton:1,requiredVersion:"18.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:"rxjs",version:"6.6.7",factory:()=>s.e("9105").then(()=>()=>s(7864)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("8652")]).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("8652"),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("8652"),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("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-immunizations-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,c=s.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var p=c.getElementsByTagName("script");if(p.length)for(var d=p.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=p[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{8652:["5399"],7468:["8439"],880:["6717","4354"],5059:["222"],2875:["6442","682","3432"],6961:["2664"],295:["3338"],3840:["1619"],3543:["5571","3660"],8167:["7807","324"]},moduleIdToConsumeDataMapping:{6717:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"13.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3840"),s.e("3543"),s.e("3617"),s.e("2318")]).then(()=>()=>s(4184))},3338:{shareScope:"default",shareKey:"react/jsx-runtime",import:"react/jsx-runtime",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1009").then(()=>()=>s(1085))},3660:{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))},682:{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))},222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9073"),s.e("1180"),s.e("7468")]).then(()=>()=>s(8007))},4354:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9105").then(()=>()=>s(7864))},6442:{shareScope:"default",shareKey:"react-dom/client",import:"react-dom/client",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9229").then(()=>()=>s(5873))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},2664:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9073"),s.e("848"),s.e("7468"),s.e("3840"),s.e("3543"),s.e("5059"),s.e("2875")]).then(()=>()=>s(6451))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},1619:{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))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,i){var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",s.nc&&(o.nonce=s.nc),o.href=t,o.onerror=o.onload=function(r){if(o.onerror=o.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,o.parentNode&&o.parentNode.removeChild(o),i(l)}},r?r.parentNode.insertBefore(o,r.nextSibling):document.head.appendChild(o),o},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var i=r[n],o=i.getAttribute("data-href")||i.getAttribute("href");if(o&&(o=o.split("?")[0]),"stylesheet"===i.rel&&(o===e||o===t))return i}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var i=a[n],o=i.getAttribute("data-href");if(o===e||o===t)return i}},m={8364:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({1388:1,1772:1,2318:1,4377:1,848:1,880:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),i=s.p+n;if(h(n,i))return t();f(e,i,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("7621"),s.e("8732"),s.e("8652"),s.e("295"),s.e("8167"),s.e("5059"),s.e("6961"),s.e("880")]).then(()=>()=>s(8195))},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={8364: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(/^(2(318|875|95)|3543|3840|5059|6961|7468|8167|8652)$/.test(t))e[t]=0;else{var i=new Promise((r,i)=>n=e[t]=[r,i]);r.push(n[2]=i);var o=s.p+s.u(t),a=Error();s.l(o,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,i,[o,a,l]=r,u=0;if(o.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<o.length;u++)i=o[u],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(r=globalThis.webpackChunk_openmrs_esm_patient_immunizations_app=globalThis.webpackChunk_openmrs_esm_patient_immunizations_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,i=!1,s.x=function(){if(i||(i=!0,s(2793)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_immunizations_app=s.x()})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=2.7.0","webservices.rest":">=2.37.0"},"extensions":[{"name":"immunization-overview-widget","component":"immunizationsOverview","order":8},{"name":"immunization-detailed-history-card","component":"immunizationHistorySummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-details-widget","component":"immunizationsDetailedSummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-summary-dashboard","component":"immunizationsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-immunizations-dashboard-slot","path":"immunizations"},"order":8}],"pages":[],"modals":[{"name":"immunization-delete-confirmation-modal","component":"deleteImmunizationConfirmationModal"}],"workspaces2":[{"name":"immunization-form-workspace","component":"immunizationFormWorkspace","window":"immunization-form-window"}],"workspaceWindows2":[{"name":"immunization-form-window","group":"patient-chart"}],"version":"13.0.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=2.7.0","webservices.rest":">=2.37.0"},"extensions":[{"name":"immunization-overview-widget","component":"immunizationsOverview","order":8},{"name":"immunization-detailed-history-card","component":"immunizationHistorySummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-details-widget","component":"immunizationsDetailedSummary","slot":"patient-chart-immunizations-dashboard-slot","meta":{"fullWidth":true}},{"name":"immunization-summary-dashboard","component":"immunizationsDashboardLink","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-immunizations-dashboard-slot","path":"immunizations"},"order":8}],"pages":[],"modals":[{"name":"immunization-delete-confirmation-modal","component":"deleteImmunizationConfirmationModal"}],"workspaces2":[{"name":"immunization-form-workspace","component":"immunizationFormWorkspace","window":"immunization-form-window"}],"workspaceWindows2":[{"name":"immunization-form-window","group":"patient-chart"}],"version":"13.0.2-pre.12955"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-immunizations-app",
|
|
3
|
-
"version": "13.0.2-pre.
|
|
3
|
+
"version": "13.0.2-pre.12955",
|
|
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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@carbon/react": "^1.92.1",
|
|
60
|
-
"@openmrs/esm-patient-common-lib": "13.0.2-pre.
|
|
60
|
+
"@openmrs/esm-patient-common-lib": "13.0.2-pre.12955",
|
|
61
61
|
"openmrs": "next",
|
|
62
62
|
"vitest": "^4.1.2"
|
|
63
63
|
},
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": "Actions",
|
|
3
|
+
"add": "Add",
|
|
4
|
+
"addImmunizations": "Add immunizations",
|
|
5
|
+
"deleteImmunization": "Delete immunization",
|
|
6
|
+
"deleting": "Deleting",
|
|
7
|
+
"doseNumber": "Dose {{number}}",
|
|
8
|
+
"doseNumberWithinSeries": "Dose number within series",
|
|
9
|
+
"doses": "Doses",
|
|
10
|
+
"due": "Due",
|
|
11
|
+
"duplicateDoseWarning": "Dose {{dose}} has already been recorded for this vaccine",
|
|
12
|
+
"editImmunization": "Edit immunization",
|
|
13
|
+
"error": "Error",
|
|
14
|
+
"errorSaving": "Error saving vaccination",
|
|
15
|
+
"expirationDate": "Expiration Date",
|
|
16
|
+
"immunization": "Immunization",
|
|
17
|
+
"immunizationDeleteConfirm": "Are you sure you want to delete dose {{doseNumber}} of {{vaccineName}}?",
|
|
18
|
+
"immunizationDeleted": "Immunization deleted",
|
|
19
|
+
"immunizationDeletedSuccess": "Immunization dose deleted successfully",
|
|
20
|
+
"immunizationDeleteError": "Failed to delete immunization: ",
|
|
21
|
+
"immunizationHistory": "Immunization history",
|
|
22
|
+
"immunizationNotePlaceholder": "For example: mild redness at injection site",
|
|
23
|
+
"immunizations": "Immunizations",
|
|
24
|
+
"Immunizations": "Immunizations",
|
|
25
|
+
"immunizations__lower": "immunizations",
|
|
26
|
+
"immunizationsHistory": "Immunizations history",
|
|
27
|
+
"immunizationWorkspaceTitle": "Immunization Form",
|
|
28
|
+
"lastDoseOnDate": "Last dose on {{date}}",
|
|
29
|
+
"lotNumber": "Lot number",
|
|
30
|
+
"manufacturer": "Manufacturer",
|
|
31
|
+
"nextDose": "Next dose",
|
|
32
|
+
"nextDoseDate": "Next dose date",
|
|
33
|
+
"notDue": "Not due",
|
|
34
|
+
"note": "Note",
|
|
35
|
+
"pleaseSelect": "Please select",
|
|
36
|
+
"recentVaccination": "Recent vaccination",
|
|
37
|
+
"saving": "Saving",
|
|
38
|
+
"seeAll": "See all",
|
|
39
|
+
"selectImmunization": "Select immunization",
|
|
40
|
+
"sequence": "Sequence",
|
|
41
|
+
"unknownVaccine": "Unknown vaccine",
|
|
42
|
+
"vaccinationDate": "Vaccination date",
|
|
43
|
+
"vaccinationDateCannotBeBeforeBirthDate": "Vaccination date cannot precede birth date",
|
|
44
|
+
"vaccinationDateCannotBeInTheFuture": "Vaccination date cannot be in the future",
|
|
45
|
+
"vaccinationSaved": "Vaccination saved successfully",
|
|
46
|
+
"vaccine": "Vaccine",
|
|
47
|
+
"vaccineBatchInformation": "Vaccine Batch Information",
|
|
48
|
+
"vaccineRequired": "Vaccine is required"
|
|
49
|
+
}
|