@openmrs/esm-appointments-app 11.1.1-pre.9708 → 11.1.1-pre.9712

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/dist/9061.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9061"],{3296(e,t,r){var n=r(7125),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,s=n.useLayoutEffect,d=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var o="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return s(function(){i.value=r,i.getSnapshot=t,l(i)&&o({inst:i})},[e,r,t]),u(function(){return l(i)&&o({inst:i}),e(function(){l(i)&&o({inst:i})})},[e]),d(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:o},8139(e,t,r){e.exports=r(3296)},9876(e,t,r){r.r(t),r.d(t,{default:()=>c,immutable:()=>o});var n=r(7125),i=r.n(n),a=r(8139),u=r(9106);let s=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),d={dedupe:!0};u.OBJECT.defineProperty(u.SWRConfig,"defaultValue",{value:u.defaultConfig});let l=(0,u.withArgs)((e,t,r)=>{let{cache:i,compare:l,suspense:o,fallbackData:c,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:p,keepPreviousData:R}=r,[S,h,m,U]=u.SWRGlobalState.get(i),[T,V]=(0,u.serialize)(e),_=(0,n.useRef)(!1),b=(0,n.useRef)(!1),w=(0,n.useRef)(T),C=(0,n.useRef)(t),L=(0,n.useRef)(r),y=()=>L.current.isVisible()&&L.current.isOnline(),[O,I,k,A]=(0,u.createCacheHelper)(i,T),D=(0,n.useRef)({}).current,N=(0,u.isUndefined)(c)?r.fallback[T]:c,F=(e,t)=>{for(let r in D)if("data"===r){if(!l(e[r],t[r])&&(!(0,u.isUndefined)(e[r])||!l(z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},j=(0,n.useMemo)(()=>{let e=!!T&&!!t&&((0,u.isUndefined)(f)?!L.current.isPaused()&&!o&&(!!(0,u.isUndefined)(E)||E):f),r=t=>{let r=(0,u.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=O(),i=A(),a=r(n),s=n===i?a:r(i),d=a;return[()=>{let e=r(O());return F(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>s]},[i,T]),x=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>k(T,(t,r)=>{F(r,t)||e()}),[i,T]),j[0],j[1]),P=!_.current,M=S[T]&&S[T].length>0,G=x.data,W=(0,u.isUndefined)(G)?N:G,Y=x.error,q=(0,n.useRef)(W),z=R?(0,u.isUndefined)(G)?q.current:G:W,B=(!M||!!(0,u.isUndefined)(Y))&&(P&&!(0,u.isUndefined)(f)?f:!L.current.isPaused()&&(o?!(0,u.isUndefined)(W)&&E:(0,u.isUndefined)(W)||E)),H=!!(T&&t&&P&&B),J=(0,u.isUndefined)(x.isValidating)?H:x.isValidating,K=(0,u.isUndefined)(x.isLoading)?H:x.isLoading,Q=(0,n.useCallback)(async e=>{let t,n,i=C.current;if(!T||!i||b.current||L.current.isPaused())return!1;let a=!0,s=e||{},d=!m[T]||!s.dedupe,o=()=>u.IS_REACT_LEGACY?!b.current&&T===w.current&&_.current:T===w.current,c={isValidating:!1,isLoading:!1},f=()=>{I(c)},E=()=>{let e=m[T];e&&e[1]===n&&delete m[T]},g={isValidating:!0};(0,u.isUndefined)(O().data)&&(g.isLoading=!0);try{if(d&&(I(g),r.loadingTimeout&&(0,u.isUndefined)(O().data)&&setTimeout(()=>{a&&o()&&L.current.onLoadingSlow(T,r)},r.loadingTimeout),m[T]=[i(V),(0,u.getTimestamp)()]),[t,n]=m[T],t=await t,d&&setTimeout(E,r.dedupingInterval),!m[T]||m[T][1]!==n)return d&&o()&&L.current.onDiscarded(T),!1;c.error=u.UNDEFINED;let e=h[T];if(!(0,u.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),d&&o()&&L.current.onDiscarded(T),!1;let s=O().data;c.data=l(s,t)?s:t,d&&o()&&L.current.onSuccess(t,T,r)}catch(r){E();let e=L.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,d&&o()&&(e.onError(r,T,e),(!0===t||(0,u.isFunction)(t)&&t(r))&&(!L.current.revalidateOnFocus||!L.current.revalidateOnReconnect||y())&&e.onErrorRetry(r,T,e,e=>{let t=S[T];t&&t[0]&&t[0](u.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[T,i]),X=(0,n.useCallback)((...e)=>(0,u.internalMutate)(i,w.current,...e),[]);if((0,u.useIsomorphicLayoutEffect)(()=>{C.current=t,L.current=r,(0,u.isUndefined)(G)||(q.current=G)}),(0,u.useIsomorphicLayoutEffect)(()=>{if(!T)return;let e=Q.bind(u.UNDEFINED,d),t=0,r=(0,u.subscribeCallback)(T,S,(r,n={})=>{if(r==u.revalidateEvents.FOCUS_EVENT){let r=Date.now();L.current.revalidateOnFocus&&r>t&&y()&&(t=r+L.current.focusThrottleInterval,e())}else if(r==u.revalidateEvents.RECONNECT_EVENT)L.current.revalidateOnReconnect&&y()&&e();else if(r==u.revalidateEvents.MUTATE_EVENT)return Q();else if(r==u.revalidateEvents.ERROR_REVALIDATE_EVENT)return Q(n)});return b.current=!1,w.current=T,_.current=!0,I({_k:V}),B&&((0,u.isUndefined)(W)||u.IS_SERVER?e():(0,u.rAF)(e)),()=>{b.current=!0,r()}},[T]),(0,u.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,u.isFunction)(g)?g(O().data):g;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!O().error&&(v||L.current.isVisible())&&(p||L.current.isOnline())?Q(d).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,p,T]),(0,n.useDebugValue)(z),o&&(0,u.isUndefined)(W)&&T){if(!u.IS_REACT_LEGACY&&u.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");C.current=t,L.current=r,b.current=!1;let e=U[T];if((0,u.isUndefined)(e)||s(X(e)),(0,u.isUndefined)(Y)){let e=Q(d);(0,u.isUndefined)(z)||(e.status="fulfilled",e.value=!0),s(e)}else throw Y}return{mutate:X,get data(){return D.data=!0,z},get error(){return D.error=!0,Y},get isValidating(){return D.isValidating=!0,J},get isLoading(){return D.isLoading=!0,K}}}),o=e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)),c=(0,u.withMiddleware)(l,o)}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9061"],{9876(e,a,t){t.r(a),t.d(a,{default:()=>s,immutable:()=>p});var l=t(4675),n=t(2372);let p=e=>(a,t,l)=>(l.revalidateOnFocus=!1,l.revalidateIfStale=!1,l.revalidateOnReconnect=!1,l.refreshInterval=0,e(a,t,l)),s=(0,n.withMiddleware)(l.u,p)}}]);
package/dist/9061.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"9061.js","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-appointments-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["r","Object","u","e","window","i","s","f","setTimeout","Date","clearTimeout","Error"],"mappings":"yJAWA,IAAI,EAAQA,EAAQ,MAIhB,EAAW,YAAe,OAAOC,OAAO,EAAE,CAAGA,OAAO,EAAE,CAH1D,SAAY,CAAC,CAAE,CAAC,EACd,OAAO,AAAC,IAAM,GAAM,KAAM,GAAK,EAAI,GAAM,EAAI,IAAQ,GAAM,GAAK,GAAM,CACxE,EAEE,EAAW,EAAM,QAAQ,CACzBC,EAAY,EAAM,SAAS,CAC3B,EAAkB,EAAM,eAAe,CACvC,EAAgB,EAAM,aAAa,CA0BrC,SAAS,EAAuB,CAAI,EAClC,IAAI,EAAoB,EAAK,WAAW,CACxC,EAAO,EAAK,KAAK,CACjB,GAAI,CACF,IAAI,EAAY,IAChB,MAAO,CAAC,EAAS,EAAM,EACzB,CAAE,MAAOC,EAAO,CACd,MAAO,CAAC,CACV,CACF,CAIA,IAAI,EACF,IAAgB,OAAOC,QACvB,SAAuBA,OAAO,QAAQ,EACtC,SAAuBA,OAAO,QAAQ,CAAC,aAAa,CANtD,SAAgC,CAAS,CAAE,CAAW,EACpD,OAAO,GACT,EArCA,SAAgC,CAAS,CAAE,CAAW,EACpD,IAAI,EAAQ,IACV,EAAY,EAAS,CAAE,KAAM,CAAE,MAAO,EAAO,YAAa,CAAY,CAAE,GACxEC,EAAO,CAAS,CAAC,EAAE,CAAC,IAAI,CACxB,EAAc,CAAS,CAAC,EAAE,CAmB5B,OAlBA,EACE,WACEA,EAAK,KAAK,CAAG,EACbA,EAAK,WAAW,CAAG,EACnB,EAAuBA,IAAS,EAAY,CAAE,KAAMA,CAAK,EAC3D,EACA,CAAC,EAAW,EAAO,EAAY,EAEjCH,EACE,WAEE,OADA,EAAuBG,IAAS,EAAY,CAAE,KAAMA,CAAK,GAClD,EAAU,WACf,EAAuBA,IAAS,EAAY,CAAE,KAAMA,CAAK,EAC3D,EACF,EACA,CAAC,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ADA,EAAkB,SAAS,CAAG,GACvB,CACX,CACJ,CACJ,GAoBM,EAAY,AAAC,GAAa,CAAC,EAAK,EAAS,KAEvC,EAAO,iBAAiB,CAAG,GAC3B,EAAO,iBAAiB,CAAG,GAC3B,EAAO,qBAAqB,CAAG,GACxB,EAAW,EAAK,EAAS,IAElC,EAAkB,qBAAe,EAAQ,E"}
1
+ {"version":3,"file":"9061.js","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":[],"mappings":"+NAGA,IAAM,EAAY,AAAC,GAAa,CAAC,EAAK,EAAS,KAEvC,EAAO,iBAAiB,CAAG,GAC3B,EAAO,iBAAiB,CAAG,GAC3B,EAAO,qBAAqB,CAAG,GAC/B,EAAO,eAAe,CAAG,EAClB,EAAW,EAAK,EAAS,IAElC,EAAkB,qBAAe,GAAM,CAAE,E"}
package/dist/9399.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9399"],{2452(e,t,a){a.d(t,{A:()=>I});var n=a(7125),i=a.n(n),s=a(5921),l=a(411),r=a(8466),o=a(8622),m=a(2895),p=a(8755),c=a(5084),d=a(9224),u=a(2845),_=a(5370);let h=({appointment:e,patientUuid:t,hasActiveVisit:a,mutateVisits:n})=>{let{checkInButton:r}=(0,m.useConfig)(),{t:o}=(0,s.useTranslation)(),{mutateAppointments:p}=(0,_.q)(),c=t=>(0,u.yI)("CheckedIn",e.uuid).then(()=>{(0,m.showSnackbar)({title:o("checkedIn","Checked in"),subtitle:t,kind:"success",isLowContrast:!0}),p?.()}).catch(e=>{console.error("Check-in failed:",e),(0,m.showSnackbar)({title:o("checkInFailed","Check-in failed"),subtitle:e?.message??o("appointmentCheckInFailed","An error occurred while checking in the appointment"),kind:"error",isLowContrast:!1})});return i().createElement(l.$nd,{size:"sm",kind:"tertiary",onClick:()=>{r.customUrl?(0,m.navigate)({to:r.customUrl,templateParams:{patientUuid:e.patient.uuid,appointmentUuid:e.uuid}}):a?c(o("appointmentCheckedInWithExistingVisit","Appointment checked in using existing active visit")):(0,m.launchWorkspace2)("appointments-start-visit-workspace",{patientUuid:t,showPatientHeader:!0,openedFrom:"appointments-check-in",onVisitStarted:async()=>{n();try{if(await (0,u.oo)(e.uuid)==="CheckedIn")return void p?.()}catch(e){console.error("Could not verify appointment status before auto check-in:",e)}c(o("appointmentCheckedInAfterVisitStarted","The visit was started and the appointment was checked in"))}})}},o("checkIn","Check in"))},f=({appointment:e,hasActiveVisit:t,mutateVisits:a})=>{let{t:n}=(0,s.useTranslation)(),{checkInButton:r,checkOutButton:o}=(0,m.useConfig)(),p=e.patient.uuid,d=e.status===c.y2.CHECKEDIN,u=e.status===c.y2.COMPLETED,_=e.status===c.y2.CANCELLED,f=e.status===c.y2.SCHEDULED;return i().createElement("div",{className:"-esm-appointments__appointments-actions__container___zHYgC"},_||u?null:o.enabled&&d?i().createElement(l.$nd,{onClick:()=>{if(o.customUrl)(0,m.navigate)({to:o.customUrl,templateParams:{patientUuid:p,appointmentUuid:e.uuid}});else{let t=(0,m.showModal)("end-appointment-modal",{closeModal:()=>{a(),t()},patientUuid:p,appointmentUuid:e.uuid})}},kind:"danger--tertiary",size:"sm"},n("checkOut","Check out")):f&&r.enabled?i().createElement(h,{patientUuid:p,appointment:e,hasActiveVisit:t,mutateVisits:a}):null)};var E=a(3464),g=a.n(E),b=a(7364),C=a.n(b),y=a(1947),w=a(9391);let D="-esm-appointments__appointment-details__gridTitle___0TN+t",S="-esm-appointments__appointment-details__label___YZswU",v="-esm-appointments__appointment-details__historyGridLabel___eBVjN",k="-esm-appointments__appointment-details__historyGridCount___Jzg26",N="-esm-appointments__appointment-details__labelBold___sHQrZ",T="-esm-appointments__appointment-details__labelContainer___aK+Ki",A=({appointment:e})=>{let{t}=(0,s.useTranslation)(),[a,l]=(0,n.useState)(!1),{appointmentsCount:r,isLoading:o}=function(e){let t=new AbortController,a=`${m.restBaseUrl}/appointments/search`,n=(0,y.h)(),{data:i,error:s,isLoading:l,isValidating:r}=C()(e?[a,e,n]:null,()=>(0,m.openmrsFetch)(a,{method:"POST",signal:t.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:e,startDate:n}})),o=i?.data?.length?i.data.filter(e=>"Missed"===e.status).length:0,p=i?.data?.length?i.data.filter(e=>"Completed"===e.status).length:0;return{appointmentsCount:{missedAppointments:o,completedAppointments:p,cancelledAppointments:i?.data?.length?i.data.filter(e=>"Cancelled"===e.status).length:0,upcomingAppointments:i?.data?.length?i.data?.filter(e=>g()(Number(e.startDateTime)).isAfter(g()())).length:0},error:s,isLoading:l,isValidating:r}}(e.patient.uuid),{patient:p}=(0,m.usePatient)(e.patient.uuid);return(0,n.useEffect)(()=>{o||l(!0)},[r,o]),i().createElement("div",{className:"-esm-appointments__appointment-details__appointmentDetailsContainer___M9gEQ"},i().createElement("p",{className:"-esm-appointments__appointment-details__title___1BFru"},e.service.name),i().createElement("p",{className:"-esm-appointments__appointment-details__subTitle___06SeW"},(0,m.formatDatetime)(new Date(e.startDateTime))),i().createElement("div",{className:"-esm-appointments__appointment-details__patientInfoGrid___XeNNF"},i().createElement("div",null,i().createElement("p",{className:D},t("patientDetails","Patient details")),i().createElement("div",{className:T},i().createElement("p",{className:N},t("patientName","Patient name"),": "),i().createElement("p",{className:S},e.patient.name)),i().createElement("div",{className:T},i().createElement("p",{className:N},t("age","Age"),": "),i().createElement("p",{className:S},e.patient.age)),i().createElement("div",{className:T},i().createElement("p",{className:N},t("gender","Gender"),": "),i().createElement("p",{className:S},(0,w.o_)(e.patient.gender,t))),p&&p?.birthDate?i().createElement("div",{className:T},i().createElement("p",{className:N},t("dateOfBirth","Date of birth"),": "),i().createElement("p",{className:S},(0,m.formatDate)(new Date(p.birthDate)))):"",p&&p?.telecom?p.telecom.map((e,a)=>i().createElement("div",{key:a,className:T},i().createElement("p",{className:N},t("Contact","Contact {{index}}",{index:a+1}),": "),i().createElement("p",{className:S},e.value))):""),i().createElement("div",null,i().createElement("p",{className:D},t("appointmentNotes","Appointment Notes")),i().createElement("p",{className:S},e.comments)),i().createElement("div",null,i().createElement("p",{className:D},t("appointmentHistory","Appointment History")),i().createElement("div",{className:"-esm-appointments__appointment-details__historyGrid___vKJn3"},i().createElement("div",null,i().createElement("p",{className:v},t("completed","Completed")),i().createElement("span",{className:k},r.completedAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("missed","Missed")),i().createElement("span",{className:"-esm-appointments__appointment-details__historyGridCountRed___ZGybQ"},r.missedAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("cancelled","Cancelled")),i().createElement("span",{className:k},r.cancelledAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("upcoming","Upcoming")),i().createElement("span",{className:k},r.upcomingAppointments))))))};var M=a(3639);let U={expandedRow:"-esm-appointments__appointments-table__expandedRow___NmScC",hiddenRow:"-esm-appointments__appointments-table__hiddenRow___hlW96",container:"-esm-appointments__appointments-table__container___uMiWL",toolbarContent:"-esm-appointments__appointments-table__toolbarContent___Tlob+",headerContainer:"-esm-appointments__appointments-table__headerContainer___24pWO",tabletHeading:"-esm-appointments__appointments-table__tabletHeading___67j+D",desktopHeading:"-esm-appointments__appointments-table__desktopHeading___kG1y1",emptyStateContent:"-esm-appointments__appointments-table__emptyStateContent___Nzyi1",searchbar:"-esm-appointments__appointments-table__searchbar___5HFn8",link:"-esm-appointments__appointments-table__link___8L7Lk",toolbar:"-esm-appointments__appointments-table__toolbar___MfsAm",menuItem:"-esm-appointments__appointments-table__menuItem___QdfqZ",actionsCell:"-esm-appointments__appointments-table__actionsCell___qgGK8",content:"-esm-appointments__appointments-table__content___VdevS",tileContainer:"-esm-appointments__appointments-table__tileContainer___f-3Ln",tile:"-esm-appointments__appointments-table__tile___hn4wi",tileContent:"-esm-appointments__appointments-table__tileContent___qkbOe",layer:"-esm-appointments__appointments-table__layer___f4eXM",filterEmptyState:"-esm-appointments__appointments-table__filterEmptyState___a7D-d",filterEmptyStateTile:"-esm-appointments__appointments-table__filterEmptyStateTile___yU4-C",filterEmptyStateContent:"-esm-appointments__appointments-table__filterEmptyStateContent___Xfzsj",filterEmptyStateHelper:"-esm-appointments__appointments-table__filterEmptyStateHelper___OvkG+"},I=({appointments:e,isLoading:t,tableHeading:a})=>{let{t:u}=(0,s.useTranslation)(),[_,h]=(0,n.useState)(25),[E,g]=(0,n.useState)(""),{selectedAppointmentStatuses:b,setSelectedAppointmentStatuses:y}=(0,M.nS)(),{appointmentsTableColumns:w}=(0,m.useConfig)(),D=(0,d.LZ)(e,E,b),{results:S,goTo:v,currentPage:k}=(0,m.usePagination)(D,_),{customPatientChartUrl:N,patientIdentifierType:T}=(0,m.useConfig)(),[I,F]=(0,n.useState)(new Set),P=(0,m.useLayoutType)(),H=(0,m.isDesktop)(P)?"sm":"lg",{visits:L,mutateVisits:O}=(()=>{let e=`${m.restBaseUrl}/visit?includeInactive=false&v=custom:(uuid,patient:(uuid),startDatetime,stopDatetime)`,{data:t,error:a,isLoading:n,mutate:i}=C()(e,m.openmrsFetch);return{isLoading:n,visits:t?.data?.results??[],error:a,mutateVisits:i}})(),$=(0,n.useMemo)(()=>new Map(L?.filter(e=>e?.startDatetime&&!e?.stopDatetime).map(e=>[e.patient.uuid,e])),[L]);(0,n.useEffect)(()=>{F(new Set)},[e]);let x=["actions","overflowMenu"],Y=w.map(e=>({header:u(e,e),key:e}));Y.push({header:"",key:"overflowMenu"});let z=(0,n.useMemo)(()=>S?.map(e=>({id:e.uuid,patientName:i().createElement(m.ConfigurableLink,{className:U.link,to:N,templateParams:{patientUuid:e.patient.uuid}},e.patient.name),nextAppointmentDate:"--",identifier:T?e.patient[T.replaceAll(" ","")]??e.patient.identifier:e.patient.identifier,dateTime:(0,m.formatDatetime)(new Date(e.startDateTime)),visitStartTime:$.has(e.patient.uuid)?(0,m.formatDatetime)(new Date($.get(e.patient.uuid).startDatetime)):"--",serviceType:e.service.name,location:e.location?.name,provider:e.providers?.[0]?.name??"--",status:u(e.status),actions:i().createElement("div",{className:U.actionsCell},i().createElement(f,{appointment:e,hasActiveVisit:$.has(e.patient.uuid),mutateVisits:O})),overflowMenu:i().createElement(l.obU,{align:"left","aria-label":u("actions","Actions"),flipped:!0,size:H},i().createElement(l.XSD,{className:U.menuItem,itemText:u("editAppointment","Edit appointment"),onClick:()=>(0,m.launchWorkspace2)("appointments-form-workspace",{patientUuid:e.patient.uuid,appointment:e})})),appointment:e})),[S,N,T,H,u,$,O]);return t?i().createElement(l.OOb,{role:"progressbar",rowCount:5}):i().createElement(l.Wdr,{className:U.container},i().createElement("div",{className:U.headerContainer},i().createElement("div",{className:(0,m.isDesktop)(P)?U.desktopHeading:U.tabletHeading},i().createElement("h2",null,a))),i().createElement(l.bQt,{"aria-label":u("appointmentsTable","Appointments table"),"data-floating-menu-container":!0,rows:z,headers:Y,isSortable:!0,size:H,useZebraStyles:!0},({rows:t,headers:n,getExpandHeaderProps:s,getHeaderProps:f,getRowProps:E,getSelectionProps:C,getTableProps:w,getTableContainerProps:D,getToolbarProps:S})=>i().createElement(i().Fragment,null,i().createElement(l.K3K,D(),i().createElement(l.e1U,{...S(),size:H},i().createElement(m.TableBatchActions,{shouldShowBatchActions:I.size>0,totalSelected:I.size,onCancel:()=>F(new Set)},i().createElement(l.HCI,{renderIcon:r.Vv,onClick:()=>{let t=e.filter(e=>I.has(e.uuid)),a=(0,m.showModal)("batch-change-appointments-statuses-modal",{appointments:t,closeModal:()=>a()})}},u("changeStatus","Change status"))),i().createElement(l.VbH,{className:U.toolbarContent},i().createElement(l.w6V,{className:U.searchbar,labelText:u("filterAppointments","Filter appointments"),placeholder:u("filterTable","Filter table"),onChange:e=>g(e.target.value),persistent:!0,size:H}),i().createElement(l.KFt,{id:"statusMultiSelect",size:H,items:Object.values(c.y2).map(e=>({id:e,label:u(e)})),itemToString:e=>e?e.label:"",label:u("filterAppointmentsByStatus","Filter appointments by status"),onChange:({selectedItems:e})=>y([...new Set(e.map(e=>e.id))]),type:"inline",selectedItems:b.map(e=>({id:e,label:u(e)}))}),i().createElement(l.$nd,{size:H,kind:"tertiary",renderIcon:o.f5,onClick:()=>{let t=e[0]?.startDateTime?(0,m.formatDate)(new Date(e[0].startDateTime),{time:!1,noToday:!0}):null;(0,p.u)(e,z,`${a}_appointments_${t}`)}},u("download","Download")))),i().createElement(l.XIK,w(),i().createElement(l.ndF,null,i().createElement(l.Hjg,null,i().createElement(l.Uwq,{enableToggle:!0,...s()}),i().createElement(l.iHm,{...C(),checked:I.size===t.length&&I.size>0,onSelect:()=>{I.size<t.length?F(new Set(t.map(e=>e.id))):F(new Set)}}),n.map(e=>i().createElement(l.A0N,f({header:e,isSortable:!x.includes(e.key)}),e.header)))),i().createElement(l.BFY,null,t.map(t=>{let a=e.find(e=>e.uuid===t.id);return a?i().createElement(i().Fragment,{key:t.id},i().createElement(l.fZD,E({row:t}),i().createElement(l.bXy,{...C({row:t}),checked:I.has(t.id),onSelect:()=>{I.has(t.id)?F(new Set([...I].filter(e=>e!==t.id))):F(new Set([...I,t.id]))}}),t.cells.map(e=>i().createElement(l.nA6,{key:e.id},e.value?.content??e.value))),t.isExpanded?i().createElement(l.cwJ,{className:U.expandedRow,colSpan:n.length+2},i().createElement(A,{appointment:a})):i().createElement(l.cwJ,{className:U.hiddenRow,colSpan:n.length+2})):null})))),0===t.length?i().createElement("div",{className:U.tileContainer},i().createElement(l.Wdr,null,i().createElement(l.FAs,{className:U.tile},i().createElement("div",{className:U.tileContent},i().createElement("p",{className:U.content},u("noAppointmentsToDisplay","No appointments to display")),i().createElement("p",{className:U.helper},u("checkFilters","Check the filters above")))))):i().createElement(l.dKS,{backwardText:u("previousPage","Previous page"),forwardText:u("nextPage","Next page"),itemsPerPageText:u("itemsPerPage","Items per page")+":",page:k,pageNumberText:u("pageNumber","Page number"),pageSize:_,pageSizes:(0,d.uB)(e,_)??[],onChange:({page:e,pageSize:t})=>{v(e),h(t)},totalItems:e.length??0}))))}},9224(e,t,a){a.d(t,{Bm:()=>r,LZ:()=>l,WB:()=>s,uB:()=>i});var n=a(7125);function i(e,t=10){return e?Array.from({length:Math.ceil(e.length/t)},(e,a)=>(a+1)*t):[]}function s(e,t){return(0,n.useMemo)(()=>{if(t&&""!==t.trim()){let a=t.toLowerCase();return e.filter(e=>Object.entries(e).some(([e,t])=>"patientUuid"!==e&&`${t}`.toLowerCase().includes(a)))}return e},[t,e])}function l(e,t,a){return(0,n.useMemo)(()=>e.filter(e=>{if(a.length>0&&!a.includes(e.status))return!1;if(!t||""===t.trim())return!0;{let a=t.toLowerCase();return!!(e.patient.name?.toLowerCase()?.includes(a)||e.patient.identifier?.toLowerCase()?.includes(a))}}),[t,e,a])}function r(e,t){return t?.length>0?e.filter(({service:e})=>t.includes(e.uuid)):e}},8755(e,t,a){a.d(t,{K:()=>r,u:()=>l});var n=a(2164),i=a(2895),s=a(7003);async function l(e,t,a="Appointments"){let r=(await (0,i.getConfig)(s.AO)).includePhoneNumberInExcelSpreadsheet??!1,p=m(o(await Promise.all(e.map(async e=>{let a=t.find(t=>t.id===e.uuid),n=a?.identifier??e.patient.identifier,s=await (0,i.fetchCurrentPatient)(e.patient.uuid),l=r&&s?.telecom?s.telecom.map(e=>e?.value).join(", "):"";return{"Patient name":e.patient.name,Gender:"F"===e.patient.gender?"Female":"Male",Age:e.patient.age,Identifier:n,"Appointment type":e.service?.name,Date:(0,i.formatDate)(new Date(e.startDateTime),{mode:"wide"}),...r?{"Telephone number":l}:{}}}))),"Appointment list");(0,n._h)(p,`${a}.xlsx`,{compression:!0})}function r(e,t=`Unscheduled appointments ${(0,i.formatDate)(new Date,{year:!0,time:!0})}`){let a=m(o(e?.map(e=>({"Patient name":e.name,Gender:"F"===e.gender?"Female":"Male",Age:e.age,"Phone Number":e.phoneNumber??"--",Identifier:e.identifier??"--"}))),"Appointment list");(0,n._h)(a,`${t}.xlsx`,{compression:!0})}function o(e){let t=e.reduce((e,t)=>Math.max(e,t["Patient name"].length),30),a=n.Wp.json_to_sheet(e);return a["!cols"]=[{wch:t}],a}function m(e,t){let a=n.Wp.book_new();return n.Wp.book_append_sheet(a,e,t),a}},2373(e,t,a){a.d(t,{Ee:()=>o,Xz:()=>u,_h:()=>c,o_:()=>d,tF:()=>p,w:()=>_,xh:()=>m});var n=a(3464),i=a.n(n),s=a(2895),l=a(5084),r=a(7003);let o=e=>{let t=i()(e).startOf("day").format(r.BC);return`${s.restBaseUrl}/appointments?forDate=${encodeURIComponent(t)}`},m=e=>{let t=e.getHours(),a=e.getMinutes(),n=a<10?`0${a}`:a.toString();return`${t%12||12}:${n} ${t>=12?"PM":"AM"}`},p=(e,t)=>e.isSame(t,"month"),c=e=>{let t=i()(e).startOf("month"),a=i()(e).endOf("month"),n=i()(e).daysInMonth(),s=i()(e).subtract(1,"month"),l=i()(e).add(1,"month"),r=[];for(let e=s.daysInMonth()-t.day()+1;e<=s.daysInMonth();e++)r.push(s.date(e));for(let t=1;t<=n;t++)r.push(e.date(t));let o=r.length>30?7:14;for(let e=1;e<o-a.day();e++)r.push(l.date(e));return r},d=(e,t)=>{switch(e){case"M":return t("male","Male");case"F":return t("female","Female");case"O":return t("other","Other");case"U":return t("unknown","Unknown");default:return e}},u=e=>{(0,s.launchWorkspace2)("appointments-patient-search-workspace",{initialQuery:"",workspaceTitle:e("createNewAppointment","Create new appointment"),onPatientSelected(e,t,a,n){a(r.gC,{patientUuid:t.id})}},{startVisitWorkspaceName:"appointments-start-visit-workspace"})},_=(e,t)=>{let a={[l.y2.REQUESTED]:0,[l.y2.SCHEDULED]:1,[l.y2.CHECKEDIN]:3,[l.y2.COMPLETED]:4,[l.y2.CANCELLED]:4,[l.y2.MISSED]:4};return a[e]<a[t]||t===l.y2.SCHEDULED}},9391(e,t,a){a.d(t,{Ee:()=>n.Ee,Xz:()=>n.Xz,_h:()=>n._h,o_:()=>n.o_,tF:()=>n.tF,w:()=>n.w});var n=a(2373)},5845(e,t,a){a.d(t,{H:()=>o,M:()=>m});var n=a(7364),i=a.n(n),s=a(2895),l=a(1947),r=a(9391);let o=e=>{let t=(0,r.Ee)(e),{data:a,...n}=i()(t,s.openmrsFetch);return{appointmentList:a?.data??[],...n}},m=e=>{let t=(0,l.h)(),a=`${s.restBaseUrl}/appointment/earlyAppointment?forDate=${e||t}`,{data:n,error:r,isLoading:o}=i()(a,s.openmrsFetch,{errorRetryCount:2});return{earlyAppointmentList:n?.data??[],isLoading:o,error:r}}},5370(e,t,a){a.d(t,{q:()=>r});var n=a(7125),i=a(7364),s=a(2895);let l=`${s.restBaseUrl}/appointment`;function r(){let{mutate:e}=(0,i.useSWRConfig)();return{mutateAppointments:(0,n.useCallback)(()=>e(e=>"string"==typeof e&&e.startsWith(l)||Array.isArray(e)&&e[0].startsWith(l)),[e])}}},1947(e,t,a){a.d(t,{h:()=>r});var n=a(3464),i=a.n(n),s=a(7125),l=a(2745);function r(){let e=(0,l.useParams)();return(0,s.useMemo)(()=>{if(e.date){let t=i()(e.date,"YYYY-MM-DD").startOf("day");if(t.isValid())return t.format("YYYY-MM-DD");console.warn(`Invalid date format in URL parameter: ${e.date}. Format should be YYYY-MM-DD. Falling back to current date.`)}return i()().startOf("day").format("YYYY-MM-DD")},[e.date])}},2845(e,t,a){a.d(t,{DM:()=>c,oo:()=>u,yI:()=>d});var n=a(3464),i=a.n(n),s=a(7364),l=a.n(s),r=a(2895),o=a(5602),m=a.n(o);i().extend(m());let p=`${r.restBaseUrl}/appointments/search`;function c(e,t,a){let{data:n,error:s,isLoading:o,isValidating:m,mutate:c}=l()(e?[p,e,t]:null,()=>(0,r.openmrsFetch)(p,{method:"POST",signal:a.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:e,startDate:t}})),d=n?.data?.length?n.data:null,u=d?.sort((e,t)=>t.startDateTime>e.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isBefore(new Date().setHours(0,0,0,0))),_=d?.sort((e,t)=>e.startDateTime>t.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isAfter(i()().endOf("day"))),h=d?.sort((e,t)=>e.startDateTime>t.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isToday());return{data:n?{pastAppointments:u,upcomingAppointments:_,todaysAppointments:h}:null,error:s,isLoading:o,isValidating:m,mutate:c}}let d=async(e,t)=>{let a=Intl.DateTimeFormat().resolvedOptions().timeZone,n=i()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),s=`${r.restBaseUrl}/appointments/${t}/status-change`;return await (0,r.openmrsFetch)(s,{body:{toStatus:e,onDate:n,timeZone:a},method:"POST",headers:{"Content-Type":"application/json"}})},u=async e=>{let t=`${r.restBaseUrl}/appointment?uuid=${e}`,{data:a}=await (0,r.openmrsFetch)(t);return a?.status}},3639(e,t,a){a.d(t,{nS:()=>l});var n=a(2895);let i=(0,n.createGlobalStore)("appointments-app",{appointmentServiceTypes:[],selectedAppointmentStatuses:[]},"sessionStorage"),s={setAppointmentServiceTypes:(e,t)=>({appointmentServiceTypes:t}),setSelectedAppointmentStatuses:(e,t)=>({selectedAppointmentStatuses:t})};function l(){return(0,n.useStoreWithActions)(i,s)}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9399"],{2452(e,t,a){a.d(t,{A:()=>I});var n=a(7125),i=a.n(n),s=a(5921),l=a(411),r=a(8466),o=a(8622),m=a(2895),p=a(8755),c=a(5084),d=a(9224),u=a(2845),_=a(5370);let h=({appointment:e,patientUuid:t,hasActiveVisit:a,mutateVisits:n})=>{let{checkInButton:r}=(0,m.useConfig)(),{t:o}=(0,s.useTranslation)(),{mutateAppointments:p}=(0,_.q)(),c=t=>(0,u.yI)("CheckedIn",e.uuid).then(()=>{(0,m.showSnackbar)({title:o("checkedIn","Checked in"),subtitle:t,kind:"success",isLowContrast:!0}),p?.()}).catch(e=>{console.error("Check-in failed:",e),(0,m.showSnackbar)({title:o("checkInFailed","Check-in failed"),subtitle:e?.message??o("appointmentCheckInFailed","An error occurred while checking in the appointment"),kind:"error",isLowContrast:!1})});return i().createElement(l.$nd,{size:"sm",kind:"tertiary",onClick:()=>{r.customUrl?(0,m.navigate)({to:r.customUrl,templateParams:{patientUuid:e.patient.uuid,appointmentUuid:e.uuid}}):a?c(o("appointmentCheckedInWithExistingVisit","Appointment checked in using existing active visit")):(0,m.launchWorkspace2)("appointments-start-visit-workspace",{patientUuid:t,showPatientHeader:!0,openedFrom:"appointments-check-in",onVisitStarted:async()=>{n();try{if(await (0,u.oo)(e.uuid)==="CheckedIn")return void p?.()}catch(e){console.error("Could not verify appointment status before auto check-in:",e)}c(o("appointmentCheckedInAfterVisitStarted","The visit was started and the appointment was checked in"))}})}},o("checkIn","Check in"))},f=({appointment:e,hasActiveVisit:t,mutateVisits:a})=>{let{t:n}=(0,s.useTranslation)(),{checkInButton:r,checkOutButton:o}=(0,m.useConfig)(),p=e.patient.uuid,d=e.status===c.y2.CHECKEDIN,u=e.status===c.y2.COMPLETED,_=e.status===c.y2.CANCELLED,f=e.status===c.y2.SCHEDULED;return i().createElement("div",{className:"-esm-appointments__appointments-actions__container___zHYgC"},_||u?null:o.enabled&&d?i().createElement(l.$nd,{onClick:()=>{if(o.customUrl)(0,m.navigate)({to:o.customUrl,templateParams:{patientUuid:p,appointmentUuid:e.uuid}});else{let t=(0,m.showModal)("end-appointment-modal",{closeModal:()=>{a(),t()},patientUuid:p,appointmentUuid:e.uuid})}},kind:"danger--tertiary",size:"sm"},n("checkOut","Check out")):f&&r.enabled?i().createElement(h,{patientUuid:p,appointment:e,hasActiveVisit:t,mutateVisits:a}):null)};var E=a(3464),g=a.n(E),b=a(8909),C=a.n(b),y=a(1947),w=a(9391);let D="-esm-appointments__appointment-details__gridTitle___0TN+t",S="-esm-appointments__appointment-details__label___YZswU",v="-esm-appointments__appointment-details__historyGridLabel___eBVjN",k="-esm-appointments__appointment-details__historyGridCount___Jzg26",N="-esm-appointments__appointment-details__labelBold___sHQrZ",T="-esm-appointments__appointment-details__labelContainer___aK+Ki",A=({appointment:e})=>{let{t}=(0,s.useTranslation)(),[a,l]=(0,n.useState)(!1),{appointmentsCount:r,isLoading:o}=function(e){let t=new AbortController,a=`${m.restBaseUrl}/appointments/search`,n=(0,y.h)(),{data:i,error:s,isLoading:l,isValidating:r}=C()(e?[a,e,n]:null,()=>(0,m.openmrsFetch)(a,{method:"POST",signal:t.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:e,startDate:n}})),o=i?.data?.length?i.data.filter(e=>"Missed"===e.status).length:0,p=i?.data?.length?i.data.filter(e=>"Completed"===e.status).length:0;return{appointmentsCount:{missedAppointments:o,completedAppointments:p,cancelledAppointments:i?.data?.length?i.data.filter(e=>"Cancelled"===e.status).length:0,upcomingAppointments:i?.data?.length?i.data?.filter(e=>g()(Number(e.startDateTime)).isAfter(g()())).length:0},error:s,isLoading:l,isValidating:r}}(e.patient.uuid),{patient:p}=(0,m.usePatient)(e.patient.uuid);return(0,n.useEffect)(()=>{o||l(!0)},[r,o]),i().createElement("div",{className:"-esm-appointments__appointment-details__appointmentDetailsContainer___M9gEQ"},i().createElement("p",{className:"-esm-appointments__appointment-details__title___1BFru"},e.service.name),i().createElement("p",{className:"-esm-appointments__appointment-details__subTitle___06SeW"},(0,m.formatDatetime)(new Date(e.startDateTime))),i().createElement("div",{className:"-esm-appointments__appointment-details__patientInfoGrid___XeNNF"},i().createElement("div",null,i().createElement("p",{className:D},t("patientDetails","Patient details")),i().createElement("div",{className:T},i().createElement("p",{className:N},t("patientName","Patient name"),": "),i().createElement("p",{className:S},e.patient.name)),i().createElement("div",{className:T},i().createElement("p",{className:N},t("age","Age"),": "),i().createElement("p",{className:S},e.patient.age)),i().createElement("div",{className:T},i().createElement("p",{className:N},t("gender","Gender"),": "),i().createElement("p",{className:S},(0,w.o_)(e.patient.gender,t))),p&&p?.birthDate?i().createElement("div",{className:T},i().createElement("p",{className:N},t("dateOfBirth","Date of birth"),": "),i().createElement("p",{className:S},(0,m.formatDate)(new Date(p.birthDate)))):"",p&&p?.telecom?p.telecom.map((e,a)=>i().createElement("div",{key:a,className:T},i().createElement("p",{className:N},t("Contact","Contact {{index}}",{index:a+1}),": "),i().createElement("p",{className:S},e.value))):""),i().createElement("div",null,i().createElement("p",{className:D},t("appointmentNotes","Appointment Notes")),i().createElement("p",{className:S},e.comments)),i().createElement("div",null,i().createElement("p",{className:D},t("appointmentHistory","Appointment History")),i().createElement("div",{className:"-esm-appointments__appointment-details__historyGrid___vKJn3"},i().createElement("div",null,i().createElement("p",{className:v},t("completed","Completed")),i().createElement("span",{className:k},r.completedAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("missed","Missed")),i().createElement("span",{className:"-esm-appointments__appointment-details__historyGridCountRed___ZGybQ"},r.missedAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("cancelled","Cancelled")),i().createElement("span",{className:k},r.cancelledAppointments)),i().createElement("div",null,i().createElement("p",{className:v},t("upcoming","Upcoming")),i().createElement("span",{className:k},r.upcomingAppointments))))))};var M=a(3639);let U={expandedRow:"-esm-appointments__appointments-table__expandedRow___NmScC",hiddenRow:"-esm-appointments__appointments-table__hiddenRow___hlW96",container:"-esm-appointments__appointments-table__container___uMiWL",toolbarContent:"-esm-appointments__appointments-table__toolbarContent___Tlob+",headerContainer:"-esm-appointments__appointments-table__headerContainer___24pWO",tabletHeading:"-esm-appointments__appointments-table__tabletHeading___67j+D",desktopHeading:"-esm-appointments__appointments-table__desktopHeading___kG1y1",emptyStateContent:"-esm-appointments__appointments-table__emptyStateContent___Nzyi1",searchbar:"-esm-appointments__appointments-table__searchbar___5HFn8",link:"-esm-appointments__appointments-table__link___8L7Lk",toolbar:"-esm-appointments__appointments-table__toolbar___MfsAm",menuItem:"-esm-appointments__appointments-table__menuItem___QdfqZ",actionsCell:"-esm-appointments__appointments-table__actionsCell___qgGK8",content:"-esm-appointments__appointments-table__content___VdevS",tileContainer:"-esm-appointments__appointments-table__tileContainer___f-3Ln",tile:"-esm-appointments__appointments-table__tile___hn4wi",tileContent:"-esm-appointments__appointments-table__tileContent___qkbOe",layer:"-esm-appointments__appointments-table__layer___f4eXM",filterEmptyState:"-esm-appointments__appointments-table__filterEmptyState___a7D-d",filterEmptyStateTile:"-esm-appointments__appointments-table__filterEmptyStateTile___yU4-C",filterEmptyStateContent:"-esm-appointments__appointments-table__filterEmptyStateContent___Xfzsj",filterEmptyStateHelper:"-esm-appointments__appointments-table__filterEmptyStateHelper___OvkG+"},I=({appointments:e,isLoading:t,tableHeading:a})=>{let{t:u}=(0,s.useTranslation)(),[_,h]=(0,n.useState)(25),[E,g]=(0,n.useState)(""),{selectedAppointmentStatuses:b,setSelectedAppointmentStatuses:y}=(0,M.nS)(),{appointmentsTableColumns:w}=(0,m.useConfig)(),D=(0,d.LZ)(e,E,b),{results:S,goTo:v,currentPage:k}=(0,m.usePagination)(D,_),{customPatientChartUrl:N,patientIdentifierType:T}=(0,m.useConfig)(),[I,F]=(0,n.useState)(new Set),P=(0,m.useLayoutType)(),H=(0,m.isDesktop)(P)?"sm":"lg",{visits:L,mutateVisits:O}=(()=>{let e=`${m.restBaseUrl}/visit?includeInactive=false&v=custom:(uuid,patient:(uuid),startDatetime,stopDatetime)`,{data:t,error:a,isLoading:n,mutate:i}=C()(e,m.openmrsFetch);return{isLoading:n,visits:t?.data?.results??[],error:a,mutateVisits:i}})(),$=(0,n.useMemo)(()=>new Map(L?.filter(e=>e?.startDatetime&&!e?.stopDatetime).map(e=>[e.patient.uuid,e])),[L]);(0,n.useEffect)(()=>{F(new Set)},[e]);let x=["actions","overflowMenu"],Y=w.map(e=>({header:u(e,e),key:e}));Y.push({header:"",key:"overflowMenu"});let z=(0,n.useMemo)(()=>S?.map(e=>({id:e.uuid,patientName:i().createElement(m.ConfigurableLink,{className:U.link,to:N,templateParams:{patientUuid:e.patient.uuid}},e.patient.name),nextAppointmentDate:"--",identifier:T?e.patient[T.replaceAll(" ","")]??e.patient.identifier:e.patient.identifier,dateTime:(0,m.formatDatetime)(new Date(e.startDateTime)),visitStartTime:$.has(e.patient.uuid)?(0,m.formatDatetime)(new Date($.get(e.patient.uuid).startDatetime)):"--",serviceType:e.service.name,location:e.location?.name,provider:e.providers?.[0]?.name??"--",status:u(e.status),actions:i().createElement("div",{className:U.actionsCell},i().createElement(f,{appointment:e,hasActiveVisit:$.has(e.patient.uuid),mutateVisits:O})),overflowMenu:i().createElement(l.obU,{align:"left","aria-label":u("actions","Actions"),flipped:!0,size:H},i().createElement(l.XSD,{className:U.menuItem,itemText:u("editAppointment","Edit appointment"),onClick:()=>(0,m.launchWorkspace2)("appointments-form-workspace",{patientUuid:e.patient.uuid,appointment:e})})),appointment:e})),[S,N,T,H,u,$,O]);return t?i().createElement(l.OOb,{role:"progressbar",rowCount:5}):i().createElement(l.Wdr,{className:U.container},i().createElement("div",{className:U.headerContainer},i().createElement("div",{className:(0,m.isDesktop)(P)?U.desktopHeading:U.tabletHeading},i().createElement("h2",null,a))),i().createElement(l.bQt,{"aria-label":u("appointmentsTable","Appointments table"),"data-floating-menu-container":!0,rows:z,headers:Y,isSortable:!0,size:H,useZebraStyles:!0},({rows:t,headers:n,getExpandHeaderProps:s,getHeaderProps:f,getRowProps:E,getSelectionProps:C,getTableProps:w,getTableContainerProps:D,getToolbarProps:S})=>i().createElement(i().Fragment,null,i().createElement(l.K3K,D(),i().createElement(l.e1U,{...S(),size:H},i().createElement(m.TableBatchActions,{shouldShowBatchActions:I.size>0,totalSelected:I.size,onCancel:()=>F(new Set)},i().createElement(l.HCI,{renderIcon:r.Vv,onClick:()=>{let t=e.filter(e=>I.has(e.uuid)),a=(0,m.showModal)("batch-change-appointments-statuses-modal",{appointments:t,closeModal:()=>a()})}},u("changeStatus","Change status"))),i().createElement(l.VbH,{className:U.toolbarContent},i().createElement(l.w6V,{className:U.searchbar,labelText:u("filterAppointments","Filter appointments"),placeholder:u("filterTable","Filter table"),onChange:e=>g(e.target.value),persistent:!0,size:H}),i().createElement(l.KFt,{id:"statusMultiSelect",size:H,items:Object.values(c.y2).map(e=>({id:e,label:u(e)})),itemToString:e=>e?e.label:"",label:u("filterAppointmentsByStatus","Filter appointments by status"),onChange:({selectedItems:e})=>y([...new Set(e.map(e=>e.id))]),type:"inline",selectedItems:b.map(e=>({id:e,label:u(e)}))}),i().createElement(l.$nd,{size:H,kind:"tertiary",renderIcon:o.f5,onClick:()=>{let t=e[0]?.startDateTime?(0,m.formatDate)(new Date(e[0].startDateTime),{time:!1,noToday:!0}):null;(0,p.u)(e,z,`${a}_appointments_${t}`)}},u("download","Download")))),i().createElement(l.XIK,w(),i().createElement(l.ndF,null,i().createElement(l.Hjg,null,i().createElement(l.Uwq,{enableToggle:!0,...s()}),i().createElement(l.iHm,{...C(),checked:I.size===t.length&&I.size>0,onSelect:()=>{I.size<t.length?F(new Set(t.map(e=>e.id))):F(new Set)}}),n.map(e=>i().createElement(l.A0N,f({header:e,isSortable:!x.includes(e.key)}),e.header)))),i().createElement(l.BFY,null,t.map(t=>{let a=e.find(e=>e.uuid===t.id);return a?i().createElement(i().Fragment,{key:t.id},i().createElement(l.fZD,E({row:t}),i().createElement(l.bXy,{...C({row:t}),checked:I.has(t.id),onSelect:()=>{I.has(t.id)?F(new Set([...I].filter(e=>e!==t.id))):F(new Set([...I,t.id]))}}),t.cells.map(e=>i().createElement(l.nA6,{key:e.id},e.value?.content??e.value))),t.isExpanded?i().createElement(l.cwJ,{className:U.expandedRow,colSpan:n.length+2},i().createElement(A,{appointment:a})):i().createElement(l.cwJ,{className:U.hiddenRow,colSpan:n.length+2})):null})))),0===t.length?i().createElement("div",{className:U.tileContainer},i().createElement(l.Wdr,null,i().createElement(l.FAs,{className:U.tile},i().createElement("div",{className:U.tileContent},i().createElement("p",{className:U.content},u("noAppointmentsToDisplay","No appointments to display")),i().createElement("p",{className:U.helper},u("checkFilters","Check the filters above")))))):i().createElement(l.dKS,{backwardText:u("previousPage","Previous page"),forwardText:u("nextPage","Next page"),itemsPerPageText:u("itemsPerPage","Items per page")+":",page:k,pageNumberText:u("pageNumber","Page number"),pageSize:_,pageSizes:(0,d.uB)(e,_)??[],onChange:({page:e,pageSize:t})=>{v(e),h(t)},totalItems:e.length??0}))))}},9224(e,t,a){a.d(t,{Bm:()=>r,LZ:()=>l,WB:()=>s,uB:()=>i});var n=a(7125);function i(e,t=10){return e?Array.from({length:Math.ceil(e.length/t)},(e,a)=>(a+1)*t):[]}function s(e,t){return(0,n.useMemo)(()=>{if(t&&""!==t.trim()){let a=t.toLowerCase();return e.filter(e=>Object.entries(e).some(([e,t])=>"patientUuid"!==e&&`${t}`.toLowerCase().includes(a)))}return e},[t,e])}function l(e,t,a){return(0,n.useMemo)(()=>e.filter(e=>{if(a.length>0&&!a.includes(e.status))return!1;if(!t||""===t.trim())return!0;{let a=t.toLowerCase();return!!(e.patient.name?.toLowerCase()?.includes(a)||e.patient.identifier?.toLowerCase()?.includes(a))}}),[t,e,a])}function r(e,t){return t?.length>0?e.filter(({service:e})=>t.includes(e.uuid)):e}},8755(e,t,a){a.d(t,{K:()=>r,u:()=>l});var n=a(2164),i=a(2895),s=a(7003);async function l(e,t,a="Appointments"){let r=(await (0,i.getConfig)(s.AO)).includePhoneNumberInExcelSpreadsheet??!1,p=m(o(await Promise.all(e.map(async e=>{let a=t.find(t=>t.id===e.uuid),n=a?.identifier??e.patient.identifier,s=await (0,i.fetchCurrentPatient)(e.patient.uuid),l=r&&s?.telecom?s.telecom.map(e=>e?.value).join(", "):"";return{"Patient name":e.patient.name,Gender:"F"===e.patient.gender?"Female":"Male",Age:e.patient.age,Identifier:n,"Appointment type":e.service?.name,Date:(0,i.formatDate)(new Date(e.startDateTime),{mode:"wide"}),...r?{"Telephone number":l}:{}}}))),"Appointment list");(0,n._h)(p,`${a}.xlsx`,{compression:!0})}function r(e,t=`Unscheduled appointments ${(0,i.formatDate)(new Date,{year:!0,time:!0})}`){let a=m(o(e?.map(e=>({"Patient name":e.name,Gender:"F"===e.gender?"Female":"Male",Age:e.age,"Phone Number":e.phoneNumber??"--",Identifier:e.identifier??"--"}))),"Appointment list");(0,n._h)(a,`${t}.xlsx`,{compression:!0})}function o(e){let t=e.reduce((e,t)=>Math.max(e,t["Patient name"].length),30),a=n.Wp.json_to_sheet(e);return a["!cols"]=[{wch:t}],a}function m(e,t){let a=n.Wp.book_new();return n.Wp.book_append_sheet(a,e,t),a}},2373(e,t,a){a.d(t,{Ee:()=>o,Xz:()=>u,_h:()=>c,o_:()=>d,tF:()=>p,w:()=>_,xh:()=>m});var n=a(3464),i=a.n(n),s=a(2895),l=a(5084),r=a(7003);let o=e=>{let t=i()(e).startOf("day").format(r.BC);return`${s.restBaseUrl}/appointments?forDate=${encodeURIComponent(t)}`},m=e=>{let t=e.getHours(),a=e.getMinutes(),n=a<10?`0${a}`:a.toString();return`${t%12||12}:${n} ${t>=12?"PM":"AM"}`},p=(e,t)=>e.isSame(t,"month"),c=e=>{let t=i()(e).startOf("month"),a=i()(e).endOf("month"),n=i()(e).daysInMonth(),s=i()(e).subtract(1,"month"),l=i()(e).add(1,"month"),r=[];for(let e=s.daysInMonth()-t.day()+1;e<=s.daysInMonth();e++)r.push(s.date(e));for(let t=1;t<=n;t++)r.push(e.date(t));let o=r.length>30?7:14;for(let e=1;e<o-a.day();e++)r.push(l.date(e));return r},d=(e,t)=>{switch(e){case"M":return t("male","Male");case"F":return t("female","Female");case"O":return t("other","Other");case"U":return t("unknown","Unknown");default:return e}},u=e=>{(0,s.launchWorkspace2)("appointments-patient-search-workspace",{initialQuery:"",workspaceTitle:e("createNewAppointment","Create new appointment"),onPatientSelected(e,t,a,n){a(r.gC,{patientUuid:t.id})}},{startVisitWorkspaceName:"appointments-start-visit-workspace"})},_=(e,t)=>{let a={[l.y2.REQUESTED]:0,[l.y2.SCHEDULED]:1,[l.y2.CHECKEDIN]:3,[l.y2.COMPLETED]:4,[l.y2.CANCELLED]:4,[l.y2.MISSED]:4};return a[e]<a[t]||t===l.y2.SCHEDULED}},9391(e,t,a){a.d(t,{Ee:()=>n.Ee,Xz:()=>n.Xz,_h:()=>n._h,o_:()=>n.o_,tF:()=>n.tF,w:()=>n.w});var n=a(2373)},5845(e,t,a){a.d(t,{H:()=>o,M:()=>m});var n=a(8909),i=a.n(n),s=a(2895),l=a(1947),r=a(9391);let o=e=>{let t=(0,r.Ee)(e),{data:a,...n}=i()(t,s.openmrsFetch);return{appointmentList:a?.data??[],...n}},m=e=>{let t=(0,l.h)(),a=`${s.restBaseUrl}/appointment/earlyAppointment?forDate=${e||t}`,{data:n,error:r,isLoading:o}=i()(a,s.openmrsFetch,{errorRetryCount:2});return{earlyAppointmentList:n?.data??[],isLoading:o,error:r}}},5370(e,t,a){a.d(t,{q:()=>r});var n=a(7125),i=a(8909),s=a(2895);let l=`${s.restBaseUrl}/appointment`;function r(){let{mutate:e}=(0,i.useSWRConfig)();return{mutateAppointments:(0,n.useCallback)(()=>e(e=>"string"==typeof e&&e.startsWith(l)||Array.isArray(e)&&e[0].startsWith(l)),[e])}}},1947(e,t,a){a.d(t,{h:()=>r});var n=a(3464),i=a.n(n),s=a(7125),l=a(2745);function r(){let e=(0,l.useParams)();return(0,s.useMemo)(()=>{if(e.date){let t=i()(e.date,"YYYY-MM-DD").startOf("day");if(t.isValid())return t.format("YYYY-MM-DD");console.warn(`Invalid date format in URL parameter: ${e.date}. Format should be YYYY-MM-DD. Falling back to current date.`)}return i()().startOf("day").format("YYYY-MM-DD")},[e.date])}},2845(e,t,a){a.d(t,{DM:()=>c,oo:()=>u,yI:()=>d});var n=a(3464),i=a.n(n),s=a(8909),l=a.n(s),r=a(2895),o=a(5602),m=a.n(o);i().extend(m());let p=`${r.restBaseUrl}/appointments/search`;function c(e,t,a){let{data:n,error:s,isLoading:o,isValidating:m,mutate:c}=l()(e?[p,e,t]:null,()=>(0,r.openmrsFetch)(p,{method:"POST",signal:a.signal,headers:{"Content-Type":"application/json"},body:{patientUuid:e,startDate:t}})),d=n?.data?.length?n.data:null,u=d?.sort((e,t)=>t.startDateTime>e.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isBefore(new Date().setHours(0,0,0,0))),_=d?.sort((e,t)=>e.startDateTime>t.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isAfter(i()().endOf("day"))),h=d?.sort((e,t)=>e.startDateTime>t.startDateTime?1:-1)?.filter(({status:e})=>"Cancelled"!==e)?.filter(({startDateTime:e})=>i()(new Date(e).toISOString()).isToday());return{data:n?{pastAppointments:u,upcomingAppointments:_,todaysAppointments:h}:null,error:s,isLoading:o,isValidating:m,mutate:c}}let d=async(e,t)=>{let a=Intl.DateTimeFormat().resolvedOptions().timeZone,n=i()(new Date).format("YYYY-MM-DDTHH:mm:ss.SSSZZ"),s=`${r.restBaseUrl}/appointments/${t}/status-change`;return await (0,r.openmrsFetch)(s,{body:{toStatus:e,onDate:n,timeZone:a},method:"POST",headers:{"Content-Type":"application/json"}})},u=async e=>{let t=`${r.restBaseUrl}/appointment?uuid=${e}`,{data:a}=await (0,r.openmrsFetch)(t);return a?.status}},3639(e,t,a){a.d(t,{nS:()=>l});var n=a(2895);let i=(0,n.createGlobalStore)("appointments-app",{appointmentServiceTypes:[],selectedAppointmentStatuses:[]},"sessionStorage"),s={setAppointmentServiceTypes:(e,t)=>({appointmentServiceTypes:t}),setSelectedAppointmentStatuses:(e,t)=>({selectedAppointmentStatuses:t})};function l(){return(0,n.useStoreWithActions)(i,s)}}}]);
package/dist/9443.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9443"],{110(e,t,a){a.r(t),a.d(t,{default:()=>c});var n=a(7125),s=a.n(n),_=a(411),p=a(5921),l=a(2895),i=a(7364),m=a.n(i),o=a(3464),r=a.n(o);let c=()=>{let{data:e}=(()=>{let e=r()(new Date().setHours(0,0,0,0)).toISOString(),t=`${l.restBaseUrl}/appointment/all?forDate=${e}`,{data:a,error:n,isLoading:s}=m()(t,l.openmrsFetch);return{data:a?.data,error:n,isLoading:s}})(),{t}=(0,p.useTranslation)();return s().createElement(_.FAs,{className:"-esm-appointments__appointments-tile__tileContainer___OoTRH"},s().createElement("h2",{className:"-esm-appointments__appointments-tile__tileHeader___Df6O+"},t("scheduledForToday","Scheduled For Today")),s().createElement("div",{className:"-esm-appointments__appointments-tile__displayDetails___HrBnn"},s().createElement("div",{className:"-esm-appointments__appointments-tile__countLabel___8P-NV"},t("patients","Patients")),s().createElement("div",{className:"-esm-appointments__appointments-tile__displayData___+LejN"},e?.length??0)))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9443"],{110(e,t,a){a.r(t),a.d(t,{default:()=>c});var n=a(7125),s=a.n(n),_=a(411),p=a(5921),l=a(2895),i=a(8909),m=a.n(i),o=a(3464),r=a.n(o);let c=()=>{let{data:e}=(()=>{let e=r()(new Date().setHours(0,0,0,0)).toISOString(),t=`${l.restBaseUrl}/appointment/all?forDate=${e}`,{data:a,error:n,isLoading:s}=m()(t,l.openmrsFetch);return{data:a?.data,error:n,isLoading:s}})(),{t}=(0,p.useTranslation)();return s().createElement(_.FAs,{className:"-esm-appointments__appointments-tile__tileContainer___OoTRH"},s().createElement("h2",{className:"-esm-appointments__appointments-tile__tileHeader___Df6O+"},t("scheduledForToday","Scheduled For Today")),s().createElement("div",{className:"-esm-appointments__appointments-tile__displayDetails___HrBnn"},s().createElement("div",{className:"-esm-appointments__appointments-tile__countLabel___8P-NV"},t("patients","Patients")),s().createElement("div",{className:"-esm-appointments__appointments-tile__displayData___+LejN"},e?.length??0)))}}}]);
package/dist/9590.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9590"],{5216(e,a,s){s.r(a),s.d(a,{SWRConfig:()=>p.S,default:()=>p.u,mutate:()=>n.k,preload:()=>l.preload,unload:()=>n.l,unstable_serialize:()=>o,useSWRConfig:()=>l.useSWRConfig});var p=s(4675),n=s(4079),l=s(2372);let o=e=>(0,n.s)(e)[0]}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"9590.js","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/swr/dist/index/index.mjs"],"names":[],"mappings":"0VAMA,IAAM,EAAqB,AAAC,GAAM,QAAU,EAAI,CAAC,EAAE,A"}
package/dist/9771.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9771"],{3296(e,t,r){var n=r(7125),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,d(i)&&c({inst:i})},[e,r,t]),u(function(){return d(i)&&c({inst:i}),e(function(){d(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},8139(e,t,r){e.exports=r(3296)},2470(e,t,r){r.r(t),r.d(t,{default:()=>g,infinite:()=>E,unstable_serialize:()=>o});var n=r(7125),i=r.n(n),a=r(8139),u=r(9106);let s=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),l={dedupe:!0};u.OBJECT.defineProperty(u.SWRConfig,"defaultValue",{value:u.defaultConfig});let d=(0,u.withArgs)((e,t,r)=>{let{cache:i,compare:d,suspense:c,fallbackData:o,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:p,refreshWhenOffline:_,keepPreviousData:h}=r,[v,U,R,b]=u.SWRGlobalState.get(i),[m,C]=(0,u.serialize)(e),S=(0,n.useRef)(!1),y=(0,n.useRef)(!1),I=(0,n.useRef)(m),T=(0,n.useRef)(t),V=(0,n.useRef)(r),w=()=>V.current.isVisible()&&V.current.isOnline(),[L,N,k,D]=(0,u.createCacheHelper)(i,m),F=(0,n.useRef)({}).current,O=(0,u.isUndefined)(o)?r.fallback[m]:o,A=(e,t)=>{for(let r in F)if("data"===r){if(!d(e[r],t[r])&&(!(0,u.isUndefined)(e[r])||!d(X,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},P=(0,n.useMemo)(()=>{let e=!!m&&!!t&&((0,u.isUndefined)(f)?!V.current.isPaused()&&!c&&(!!(0,u.isUndefined)(E)||E):f),r=t=>{let r=(0,u.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=L(),i=D(),a=r(n),s=n===i?a:r(i),l=a;return[()=>{let e=r(L());return A(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]},[i,m]),H=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>k(m,(t,r)=>{A(r,t)||e()}),[i,m]),P[0],P[1]),x=!S.current,z=v[m]&&v[m].length>0,j=H.data,G=(0,u.isUndefined)(j)?O:j,M=H.error,W=(0,n.useRef)(G),X=h?(0,u.isUndefined)(j)?W.current:j:G,Y=(!z||!!(0,u.isUndefined)(M))&&(x&&!(0,u.isUndefined)(f)?f:!V.current.isPaused()&&(c?!(0,u.isUndefined)(G)&&E:(0,u.isUndefined)(G)||E)),q=!!(m&&t&&x&&Y),B=(0,u.isUndefined)(H.isValidating)?q:H.isValidating,J=(0,u.isUndefined)(H.isLoading)?q:H.isLoading,K=(0,n.useCallback)(async e=>{let t,n,i=T.current;if(!m||!i||y.current||V.current.isPaused())return!1;let a=!0,s=e||{},l=!R[m]||!s.dedupe,c=()=>u.IS_REACT_LEGACY?!y.current&&m===I.current&&S.current:m===I.current,o={isValidating:!1,isLoading:!1},f=()=>{N(o)},E=()=>{let e=R[m];e&&e[1]===n&&delete R[m]},g={isValidating:!0};(0,u.isUndefined)(L().data)&&(g.isLoading=!0);try{if(l&&(N(g),r.loadingTimeout&&(0,u.isUndefined)(L().data)&&setTimeout(()=>{a&&c()&&V.current.onLoadingSlow(m,r)},r.loadingTimeout),R[m]=[i(C),(0,u.getTimestamp)()]),[t,n]=R[m],t=await t,l&&setTimeout(E,r.dedupingInterval),!R[m]||R[m][1]!==n)return l&&c()&&V.current.onDiscarded(m),!1;o.error=u.UNDEFINED;let e=U[m];if(!(0,u.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),l&&c()&&V.current.onDiscarded(m),!1;let s=L().data;o.data=d(s,t)?s:t,l&&c()&&V.current.onSuccess(t,m,r)}catch(r){E();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(o.error=r,l&&c()&&(e.onError(r,m,e),(!0===t||(0,u.isFunction)(t)&&t(r))&&(!V.current.revalidateOnFocus||!V.current.revalidateOnReconnect||w())&&e.onErrorRetry(r,m,e,e=>{let t=v[m];t&&t[0]&&t[0](u.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[m,i]),Q=(0,n.useCallback)((...e)=>(0,u.internalMutate)(i,I.current,...e),[]);if((0,u.useIsomorphicLayoutEffect)(()=>{T.current=t,V.current=r,(0,u.isUndefined)(j)||(W.current=j)}),(0,u.useIsomorphicLayoutEffect)(()=>{if(!m)return;let e=K.bind(u.UNDEFINED,l),t=0,r=(0,u.subscribeCallback)(m,v,(r,n={})=>{if(r==u.revalidateEvents.FOCUS_EVENT){let r=Date.now();V.current.revalidateOnFocus&&r>t&&w()&&(t=r+V.current.focusThrottleInterval,e())}else if(r==u.revalidateEvents.RECONNECT_EVENT)V.current.revalidateOnReconnect&&w()&&e();else if(r==u.revalidateEvents.MUTATE_EVENT)return K();else if(r==u.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)});return y.current=!1,I.current=m,S.current=!0,N({_k:C}),Y&&((0,u.isUndefined)(G)||u.IS_SERVER?e():(0,u.rAF)(e)),()=>{y.current=!0,r()}},[m]),(0,u.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,u.isFunction)(g)?g(L().data):g;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!L().error&&(p||V.current.isVisible())&&(_||V.current.isOnline())?K(l).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,p,_,m]),(0,n.useDebugValue)(X),c&&(0,u.isUndefined)(G)&&m){if(!u.IS_REACT_LEGACY&&u.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");T.current=t,V.current=r,y.current=!1;let e=b[m];if((0,u.isUndefined)(e)||s(Q(e)),(0,u.isUndefined)(M)){let e=K(l);(0,u.isUndefined)(X)||(e.status="fulfilled",e.value=!0),s(e)}else throw M}return{mutate:Q,get data(){return F.data=!0,X},get error(){return F.error=!0,M},get isValidating(){return F.isValidating=!0,B},get isLoading(){return F.isLoading=!0,J}}}),c=e=>(0,u.serialize)(e?e(0,null):null)[0],o=e=>u.INFINITE_PREFIX+c(e),f=Promise.resolve(),E=e=>(t,r,i)=>{let s,l=(0,n.useRef)(!1),{cache:d,initialSize:o=1,revalidateAll:E=!1,persistSize:g=!1,revalidateFirstPage:p=!0,revalidateOnMount:_=!1,parallel:h=!1}=i,[,,,v]=u.SWRGlobalState.get(u.cache);try{(s=c(t))&&(s=u.INFINITE_PREFIX+s)}catch(e){}let[U,R,b]=(0,u.createCacheHelper)(d,s),m=(0,n.useCallback)(()=>(0,u.isUndefined)(U()._l)?o:U()._l,[d,s,o]);(0,a.useSyncExternalStore)((0,n.useCallback)(e=>s?b(s,()=>{e()}):()=>{},[d,s]),m,m);let C=(0,n.useCallback)(()=>{let e=U()._l;return(0,u.isUndefined)(e)?o:e},[s,o]),S=(0,n.useRef)(C());(0,u.useIsomorphicLayoutEffect)(()=>{if(!l.current){l.current=!0;return}s&&R({_l:g?S.current:C()})},[s,d]);let y=_&&!l.current,I=e(s,async e=>{let n=U()._i,a=U()._r;R({_r:u.UNDEFINED});let s=[],l=C(),[c]=(0,u.createCacheHelper)(d,e),o=c().data,f=[],g=null;for(let e=0;e<l;++e){let[l,c]=(0,u.serialize)(t(e,h?null:g));if(!l)break;let[_,U]=(0,u.createCacheHelper)(d,l),R=_().data,b=E||n||(0,u.isUndefined)(R)||p&&!e&&!(0,u.isUndefined)(o)||y||o&&!(0,u.isUndefined)(o[e])&&!i.compare(o[e],R);if(r&&("function"==typeof a?a(R,c):b)){let t=async()=>{if(l in v){let e=v[l];delete v[l],R=await e}else R=await r(c);U({data:R,_k:c}),s[e]=R};h?f.push(t):await t()}else s[e]=R;h||(g=R)}return h&&await Promise.all(f.map(e=>e())),R({_i:u.UNDEFINED}),s},i),T=(0,n.useCallback)(function(e,t){let r="boolean"==typeof t?{revalidate:t}:t||{},n=!1!==r.revalidate;return s?(n&&((0,u.isUndefined)(e)?R({_i:!0,_r:r.revalidate}):R({_i:!1,_r:r.revalidate})),arguments.length?I.mutate(e,{...r,revalidate:n}):I.mutate()):f},[s,d]),V=(0,n.useCallback)(e=>{let r;if(!s)return f;let[,n]=(0,u.createCacheHelper)(d,s);if((0,u.isFunction)(e)?r=e(C()):"number"==typeof e&&(r=e),"number"!=typeof r)return f;n({_l:r}),S.current=r;let i=[],[a]=(0,u.createCacheHelper)(d,s),l=null;for(let e=0;e<r;++e){let[r]=(0,u.serialize)(t(e,l)),[n]=(0,u.createCacheHelper)(d,r),s=r?n().data:u.UNDEFINED;if((0,u.isUndefined)(s))return T(a().data);i.push(s),l=s}return T(i)},[s,d,T,C]);return{size:C(),setSize:V,mutate:T,get data(){return I.data},get error(){return I.error},get isValidating(){return I.isValidating},get isLoading(){return I.isLoading}}},g=(0,u.withMiddleware)(d,E)}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([["9771"],{2470(e,t,a){a.r(t),a.d(t,{default:()=>d,infinite:()=>_,unstable_serialize:()=>c});var r=a(7125),l=a(4675),i=a(4079),n=a(2372),u=a(8139);let s=e=>(0,i.s)(e?e(0,null):null)[0],c=e=>"$inf$"+s(e),o=Promise.resolve(),_=e=>(t,a,l)=>{let n,c=(0,r.useRef)(!1),{cache:_,initialSize:d=1,revalidateAll:f=!1,persistSize:p=!1,revalidateFirstPage:b=!0,revalidateOnMount:m=!1,parallel:g=!1}=l,[,,,h]=i.a.get(i.o);try{(n=s(t))&&(n="$inf$"+n)}catch(e){}let[k,w,y]=(0,i.c)(_,n),v=(0,r.useCallback)(()=>(0,i.i)(k()._l)?d:k()._l,[_,n,d]);(0,u.useSyncExternalStore)((0,r.useCallback)(e=>n?y(n,()=>{e()}):()=>{},[_,n]),v,v);let C=(0,r.useCallback)(()=>{let e=k()._l;return(0,i.i)(e)?d:e},[n,d]),$=(0,r.useRef)(C());(0,i.u)(()=>{if(!c.current){c.current=!0;return}n&&w({_l:p?$.current:C()})},[n,_]);let U=m&&!c.current,z=e(n,async e=>{let r=k()._i,n=k()._r,u=i.a.get(_),s=u[8],c=()=>u[8]!==s;w({_r:i.U});let o=[],d=C(),[p]=(0,i.c)(_,e),m=p().data,y=[],v=null;for(let e=0;e<d;++e){let[u,s]=(0,i.s)(t(e,g?null:v));if(!u)break;let[d,p]=(0,i.c)(_,u),k=d().data,w=f||r||(0,i.i)(k)||b&&!e&&!(0,i.i)(m)||U||m&&!(0,i.i)(m[e])&&!l.compare(m[e],k);if(a&&("function"==typeof n?n(k,s):w)){let t=async()=>{if(u in h){let e=h[u];delete h[u],k=await e}else k=await a(s);c()||p({data:k,_k:s}),o[e]=k};g?y.push(t):await t()}else o[e]=k;g||(v=k)}return g&&await Promise.all(y.map(e=>e())),c()||w({_i:i.U}),o},l),L=(0,r.useCallback)(function(e,t){let a="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==a.revalidate;return n?(r&&((0,i.i)(e)?w({_i:!0,_r:a.revalidate}):w({_i:!1,_r:a.revalidate})),arguments.length?z.mutate(e,{...a,revalidate:r}):z.mutate()):o},[n,_]),P=(0,r.useCallback)(e=>{let a;if(!n)return o;let[,r]=(0,i.c)(_,n);if((0,i.e)(e)?a=e(C()):"number"==typeof e&&(a=e),"number"!=typeof a)return o;r({_l:a}),$.current=a;let l=[],[u]=(0,i.c)(_,n),s=null;for(let e=0;e<a;++e){let[a]=(0,i.s)(t(e,s)),[r]=(0,i.c)(_,a),n=a?r().data:i.U;if((0,i.i)(n))return L(u().data);l.push(n),s=n}return L(l)},[n,_,L,C]);return{size:C(),setSize:P,mutate:L,get data(){return z.data},get error(){return z.error},get isValidating(){return z.isValidating},get isLoading(){return z.isLoading}}},d=(0,n.withMiddleware)(l.u,_)}}]);
package/dist/9771.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"9771.js","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","webpack://@openmrs/esm-appointments-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-appointments-app/../../node_modules/swr/dist/infinite/index.mjs"],"names":["r","Object","u","e","window","i","s","c","f","setTimeout","Date","clearTimeout","Error","Promise","arguments"],"mappings":"yJAWA,IAAI,EAAQA,EAAQ,MAIhB,EAAW,YAAe,OAAOC,OAAO,EAAE,CAAGA,OAAO,EAAE,CAH1D,SAAY,CAAC,CAAE,CAAC,EACd,OAAO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I,GACJ,GAAI,EAAQ,UAAU,AAC1B,IASDC,UAAU,MAAM,CAAG,EAAI,MAAM,CAAC,EAAM,CACvC,GAAG,CAAO,CACV,WAAY,CAChB,GAAK,EAAI,MAAM,IAnBU,CAoB7B,EAEA,CACI,EACA,EACH,EAEK,EAAU,kBAAY,AAAC,QAIrB,EAFJ,GAAI,CAAC,EAAa,OAAO,EACzB,GAAM,EAAG,EAAW,CAAG,wBAAkB,EAAS,GAOlD,GALI,iBAAW,GACX,EAAO,EAAI,KACJ,AAAc,UAAd,OAAO,GACd,GAAO,CAAE,EAET,AAAe,UAAf,OAAO,EAAkB,OAAO,EACpC,EAAW,CACP,GAAI,CACR,GACA,EAAgB,OAAO,CAAG,EAE1B,IAAM,EAAO,EAAE,CACT,CAAC,EAAiB,CAAG,wBAAkB,EAAS,GAClD,EAAmB,KACvB,IAAI,IAAI,EAAI,EAAG,EAAI,EAAM,EAAE,EAAE,CACzB,GAAM,CAAC,EAAQ,CAAG,gBAAU,EAAO,EAAG,IAChC,CAAC,EAAS,CAAG,wBAAkB,EAAS,GAExC,EAAW,EAAU,IAAW,IAAI,CAAG,WAAS,CAEtD,GAAI,kBAAY,GACZ,OAAO,EAAO,IAAmB,IAAI,EAEzC,EAAK,IAAI,CAAC,GACV,EAAmB,CACvB,CACA,OAAO,EAAO,EAClB,EAEA,CACI,EACA,EACA,EACA,EACH,EAGD,MAAO,CACH,KAAM,IACN,UACA,SACA,IAAI,MAAQ,CACR,OAAO,EAAI,IAAI,AACnB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,qBAAe,EAAQ,E"}
1
+ {"version":3,"file":"9771.js","sources":["webpack://@openmrs/esm-appointments-app/../../node_modules/swr/dist/infinite/index.mjs"],"names":["Promise","p","e","i","u","arguments"],"mappings":"q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ACA,EACA,EACH,EAGD,MAAO,CACH,KAAM,IACN,UACA,SACA,IAAI,MAAQ,CACR,OAAO,EAAI,IAAI,AACnB,EACA,IAAI,OAAS,CACT,OAAO,EAAI,KAAK,AACpB,EACA,IAAI,cAAgB,CAChB,OAAO,EAAI,YAAY,AAC3B,EACA,IAAI,WAAa,CACb,OAAO,EAAI,SAAS,AACxB,CACJ,CACJ,EACE,EAAiB,qBAAe,GAAM,CAAE,E"}
@@ -1,3 +1,3 @@
1
- var _openmrs_esm_appointments_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-appointments-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-appointments-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={7368(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},_=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},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(_))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-appointments-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:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,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:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},2243(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-appointments-app:11.1.1-pre.9708";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
1
+ var _openmrs_esm_appointments_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-appointments-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-appointments-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={7368(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},_=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},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(_))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-appointments-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:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,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:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},2243(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-appointments-app:11.1.1-pre.9712";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
2
2
  ${n}`),o.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},2677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(223),o=r(3545),i=r(3586),a=r(1864),s=r(2221),l=r(4307),u=r(1180),p=r(367),c=r(1315),d=r(3738);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},367(e,t,r){let n=r(223),o=r(3738),i=r(9837);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},1180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2221(e,t,r){let n=r(3545),o=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},4307(e,t,r){let n=r(1092),o=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},3586(e,t,r){r(223);let n=r(3545),o=r(6917),i=r(1092),a=r(1853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
3
- while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(2243),s.federation||(s.federation={chunkMatcher:function(e){return!/^(9(181|270|794)|1154|2997|6111|7226|7735|8678)$/.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 o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-appointments-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-appointments-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5452",factory:()=>Promise.all([s.e("1407"),s.e("7103"),s.e("6557"),s.e("8662"),s.e("7226"),s.e("8678"),s.e("2997"),s.e("9270"),s.e("6111"),s.e("1154"),s.e("9794")]).then(()=>()=>s(1317)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("9270")]).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("9270")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.1",factory:()=>Promise.all([s.e("9712"),s.e("8678"),s.e("9270")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.2.5",factory:()=>Promise.all([s.e("3989"),s.e("9270")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.2.5",factory:()=>Promise.all([s.e("9061"),s.e("9270"),s.e("6111")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.2.5",factory:()=>Promise.all([s.e("9771"),s.e("9270"),s.e("6111")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.2.5",factory:()=>Promise.all([s.e("1744"),s.e("9270"),s.e("6111")]).then(()=>()=>s(1123)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-appointments-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[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:{9270:["7125"],1154:["4498","5292"],2997:["7364"],7226:["5921"],7654:["2895"],8678:["6693"],6111:["9106"],9794:["2745"]},moduleIdToConsumeDataMapping:{4498:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9061").then(()=>()=>s(9876))},7364:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1744"),s.e("6111")]).then(()=>()=>s(1123))},7125:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},5292:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9771").then(()=>()=>s(2470))},6693:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},2895:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1407"),s.e("7103"),s.e("6557"),s.e("8662"),s.e("7226"),s.e("8678"),s.e("2997"),s.e("6111"),s.e("1154")]).then(()=>()=>s(1317))},2745:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("8678")]).then(()=>()=>s(7059))},9106:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},5921:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={1293:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({1884:1,2495:1,2620:1,4307:1,5556:1,5640:1,6382:1,6789:1,7735:1,8324:1,8662:1,8937:1,8981:1,9181:1,9443:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("9270"),s.e("9794"),s.e("7654")]).then(()=>()=>s(3189))},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={1293: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(/^(9(181|270|794)|1154|2997|6111|7226|7735|8678)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(7368)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_appointments_app=s.x()})();
3
+ while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(2243),s.federation||(s.federation={chunkMatcher:function(e){return!/^(9(181|270|794)|(21|72)26|5943|7735|8678)$/.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 o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-appointments-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-appointments-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5452",factory:()=>Promise.all([s.e("1407"),s.e("7103"),s.e("6557"),s.e("8662"),s.e("7226"),s.e("8678"),s.e("2126"),s.e("9270"),s.e("5943"),s.e("9794")]).then(()=>()=>s(1317)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("9270")]).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("9270")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.1",factory:()=>Promise.all([s.e("9712"),s.e("8678"),s.e("9270")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("9270")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9270"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-appointments-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[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:{9270:["7125"],2126:["8909"],7654:["2895"],8678:["6693"],5943:["9106","4498","5292"],9794:["2745"],7226:["5921"]},moduleIdToConsumeDataMapping:{4498:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},7125:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},8909:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))},6693:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},2895:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("1407"),s.e("7103"),s.e("6557"),s.e("8662"),s.e("7226"),s.e("8678"),s.e("2126"),s.e("5943")]).then(()=>()=>s(1317))},5292:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},2745:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("8678")]).then(()=>()=>s(7059))},9106:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},5921:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={1293:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({1884:1,2495:1,2620:1,4307:1,5556:1,5640:1,6382:1,6789:1,7735:1,8324:1,8662:1,8937:1,8981:1,9181:1,9443:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>Promise.all([s.e("9270"),s.e("9794"),s.e("7654")]).then(()=>()=>s(3189))},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={1293: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(/^(9(181|270|794)|(21|72)26|5943|7735|8678)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(7368)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_appointments_app=s.x()})();