@kenyaemr/esm-facility-dashboard-app 5.4.6-pre.1213 → 5.4.6-pre.1217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _kenyaemr_esm_facility_dashboard_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("@kenyaemr/esm-facility-dashboard-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 r=e._FEDERATION_RUNTIME_CORE_FROM;r&&r.version&&"2.8"!==String(r.version).split(".").slice(0,2).join(".")&&console.warn("@kenyaemr/esm-facility-dashboard-app was built against Module Federation 2.8.x but the app shell provides "+r.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,r,t,n,o,a={3828(e,r,t){"use strict";var n=t(40523),o=t.n(n);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function i(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),!r||a.length!==r);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(e,r)||l(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function l(e,r){if(e){if("string"==typeof e)return a(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,r)}}var u=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),c={};if((t.initializeSharingData||t.initializeExposesData)&&t.federation){var p,d,f,h,m,g,y,b,S,v,O,E,_=function(e,r,t){e&&e[r]&&(e[r]=t)},M=function(e,r,t){var n,o=t();Array.isArray(o)?(null!=e[r]||(e[r]=[]),(n=e[r]).push.apply(n,function(e){if(Array.isArray(e))return a(e)}(o)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||l(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):(void 0===o?"undefined":s(o))==="object"&&null!==o&&(null!=e[r]||(e[r]={}),Object.assign(e[r],o))},R=function(e,r,t){null!=e[r]||(e[r]=t())},w=null!=(p=null==(g=t.remotesLoadingData)?void 0:g.chunkMapping)?p:{},T=null!=(d=null==(y=t.remotesLoadingData)?void 0:y.moduleIdToRemoteDataMapping)?d:{},k=null!=(f=null==(b=t.initializeSharingData)?void 0:b.scopeToSharingDataMapping)?f:{},I=null!=(h=null==(S=t.consumesLoadingData)?void 0:S.chunkMapping)?h:{},P=null!=(m=null==(v=t.consumesLoadingData)?void 0:v.moduleIdToConsumeDataMapping)?m:{},j={},x=[],N={},C=null==(O=t.initializeExposesData)?void 0:O.shareScope;for(var V in o())t.federation[V]=o()[V];R(t.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(P)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=s[1];e[l]={getter:u.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:u.requiredVersion,strictVersion:u.strictVersion,singleton:u.singleton,eager:u.eager},scope:[u.shareScope]},shareKey:u.shareKey}}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),R(t.federation,"initOptions",function(){return{}}),R(t.federation.initOptions,"name",function(){return"@kenyaemr/esm-facility-dashboard-app"}),R(t.federation.initOptions,"shareStrategy",function(){return"version-first"}),R(t.federation.initOptions,"shared",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(k)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var l=i(o.value,2),u=l[0],c=l[1],p=!0,d=!1,f=void 0;try{for(var h,m=c[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var g=h.value;if((void 0===g?"undefined":s(g))==="object"&&null!==g){var y=g.name,b=g.version,S=g.factory,v=g.eager,O=g.singleton,E=g.requiredVersion,_=g.strictVersion,M={},R=function(e){return void 0!==e};R(O)&&(M.singleton=O),R(E)&&(M.requiredVersion=E),R(v)&&(M.eager=v),R(_)&&(M.strictVersion=_);var w={version:b,scope:[u],shareConfig:M,get:S};e[y]?e[y].push(w):e[y]=[w]}}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),M(t.federation.initOptions,"remotes",function(){return Object.values(c).flat().filter(function(e){return"script"===e.externalType})}),M(t.federation.initOptions,"plugins",function(){return u}),R(t.federation,"bundlerRuntimeOptions",function(){return{}}),R(t.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),R(t.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return w}),R(t.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return c}),R(t.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(T)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=s[1];e[l]=[u.shareScope,u.name,u.externalModuleId,u.remoteName]}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),R(t.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return t}),M(t.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(T)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=c[s[1].remoteName];u&&(e[l]=u)}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),_(t,"S",t.federation.bundlerRuntime.S),t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),_(t.f,"remotes",function(e,r){return t.federation.bundlerRuntime.remotes({chunkId:e,promises:r,chunkMapping:w,idToExternalAndNameMapping:t.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:t.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:t})}),_(t.f,"consumes",function(e,r){return t.federation.bundlerRuntime.consumes({chunkId:e,promises:r,chunkMapping:I,moduleToHandlerMapping:t.federation.consumesLoadingModuleToHandlerMapping,installedModules:j,webpackRequire:t})}),_(t,"I",function(e,r){return t.federation.bundlerRuntime.I({shareScopeName:e,initScope:r,initPromises:x,initTokens:N,webpackRequire:t})}),_(t,"initContainer",function(e,r,n){return t.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:r,remoteEntryInitOptions:n,shareScopeKey:C,webpackRequire:t})}),_(t,"getContainer",function(e,r){var n=t.initializeExposesData.moduleMap;return t.R=r,r=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){throw Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r}),t.federation.instance=t.federation.runtime.init(t.federation.initOptions),(null==(E=t.consumesLoadingData)?void 0:E.initialConsumes)&&t.federation.bundlerRuntime.installInitialConsumes({webpackRequire:t,installedModules:j,initialConsumes:t.consumesLoadingData.initialConsumes,moduleToHandlerMapping:t.federation.consumesLoadingModuleToHandlerMapping})}},29797(e,r,t){"use strict";t.d(r,{get:()=>t.getContainer,init:()=>t.initContainer})},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},31772(e,r){var t=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;r.__toESM=(e,r,l)=>(l=null!=e?t(i(e)):{},((e,r,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,l=a(r),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(t=o(r,i))||t.enumerable});return e})(!r&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},79837(e,r,t){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t(31772);let n=t(27789),o=t(53054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;r.default={global:a,share:i,utils:s},r.global=a,r.share=i,r.utils=s},83738(e,r,t){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),t(31772);let n=t(27789),o=t(53054),a=t(9170);function i(e){let r=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(r),r}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(r,"Module",{enumerable:!0,get:function(){return o.Module}}),r.ModuleFederation=o.ModuleFederation,r.createInstance=i,r.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(r,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(r,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),r.init=function(e){let r=n.getGlobalFederationInstance(e.name,e.version),t={...e,id:e.id||""};return r?(r.initOptions(t),s||(s=r),r):s=i(t)},r.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(r,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(r,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),r.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},r.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},r.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(r,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),r.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},r.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},r.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},27789(e,r,t){t(31772);let n=t(53054);r.getGlobalFederationInstance=function(e,r){let t="@kenyaemr/esm-facility-dashboard-app:5.4.6-pre.1213";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!t&&n.options.id===t||n.options.name===e&&!n.options.version&&!r||n.options.name===e&&!!r&&n.options.version===r)}},50223(e,r){var t=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;r.__toESM=(e,r,l)=>(l=null!=e?t(i(e)):{},((e,r,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,l=a(r),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(t=o(r,i))||t.enumerable});return e})(!r&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},33545(e,r){r.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)}},46917(e,r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),r.FEDERATION_SUPPORTED_TYPES=["script"]},91864(e,r,t){let n=t(33545),o=t(91092),a=t(12677),i=t(10085),s=t(76781);r.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:r,promises:t,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,r)&&c[r].forEach(e=>{if(u.o(l,e))return t.push(l[e]);let r=r=>{l[e]=0,u.m[e]=t=>{delete u.c[e];let n=r(),{shareInfo:o}=p[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}t.exports=n}},n=r=>{delete l[e],u.m[e]=t=>{throw delete u.c[e],r}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=a.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(c,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});y.then?t.push(l[e]=y.then(r).catch(n)):r(y)}catch(e){n(e)}})}},10085(e,r){r.RUNTIME_012="RUNTIME-012"},76781(e,r){r.getShortErrorMsg=(e,r,t,n)=>{let o=[`${[r[e]]} #${e}`];return t&&o.push(`args: ${JSON.stringify(t)}`),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 _kenyaemr_esm_facility_dashboard_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("@kenyaemr/esm-facility-dashboard-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 r=e._FEDERATION_RUNTIME_CORE_FROM;r&&r.version&&"2.8"!==String(r.version).split(".").slice(0,2).join(".")&&console.warn("@kenyaemr/esm-facility-dashboard-app was built against Module Federation 2.8.x but the app shell provides "+r.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,r,t,n,o,a={3828(e,r,t){"use strict";var n=t(40523),o=t.n(n);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function i(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),!r||a.length!==r);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw n}}return a}}(e,r)||l(e,r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function l(e,r){if(e){if("string"==typeof e)return a(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,r)}}var u=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),c={};if((t.initializeSharingData||t.initializeExposesData)&&t.federation){var p,d,f,h,m,g,y,b,S,v,O,E,_=function(e,r,t){e&&e[r]&&(e[r]=t)},M=function(e,r,t){var n,o=t();Array.isArray(o)?(null!=e[r]||(e[r]=[]),(n=e[r]).push.apply(n,function(e){if(Array.isArray(e))return a(e)}(o)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||l(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):(void 0===o?"undefined":s(o))==="object"&&null!==o&&(null!=e[r]||(e[r]={}),Object.assign(e[r],o))},R=function(e,r,t){null!=e[r]||(e[r]=t())},w=null!=(p=null==(g=t.remotesLoadingData)?void 0:g.chunkMapping)?p:{},T=null!=(d=null==(y=t.remotesLoadingData)?void 0:y.moduleIdToRemoteDataMapping)?d:{},k=null!=(f=null==(b=t.initializeSharingData)?void 0:b.scopeToSharingDataMapping)?f:{},I=null!=(h=null==(S=t.consumesLoadingData)?void 0:S.chunkMapping)?h:{},P=null!=(m=null==(v=t.consumesLoadingData)?void 0:v.moduleIdToConsumeDataMapping)?m:{},j={},x=[],N={},C=null==(O=t.initializeExposesData)?void 0:O.shareScope;for(var V in o())t.federation[V]=o()[V];R(t.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(P)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=s[1];e[l]={getter:u.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:u.requiredVersion,strictVersion:u.strictVersion,singleton:u.singleton,eager:u.eager},scope:[u.shareScope]},shareKey:u.shareKey}}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),R(t.federation,"initOptions",function(){return{}}),R(t.federation.initOptions,"name",function(){return"@kenyaemr/esm-facility-dashboard-app"}),R(t.federation.initOptions,"shareStrategy",function(){return"version-first"}),R(t.federation.initOptions,"shared",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(k)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var l=i(o.value,2),u=l[0],c=l[1],p=!0,d=!1,f=void 0;try{for(var h,m=c[Symbol.iterator]();!(p=(h=m.next()).done);p=!0){var g=h.value;if((void 0===g?"undefined":s(g))==="object"&&null!==g){var y=g.name,b=g.version,S=g.factory,v=g.eager,O=g.singleton,E=g.requiredVersion,_=g.strictVersion,M={},R=function(e){return void 0!==e};R(O)&&(M.singleton=O),R(E)&&(M.requiredVersion=E),R(v)&&(M.eager=v),R(_)&&(M.strictVersion=_);var w={version:b,scope:[u],shareConfig:M,get:S};e[y]?e[y].push(w):e[y]=[w]}}}catch(e){d=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw f}}}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),M(t.federation.initOptions,"remotes",function(){return Object.values(c).flat().filter(function(e){return"script"===e.externalType})}),M(t.federation.initOptions,"plugins",function(){return u}),R(t.federation,"bundlerRuntimeOptions",function(){return{}}),R(t.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),R(t.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return w}),R(t.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return c}),R(t.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(T)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=s[1];e[l]=[u.shareScope,u.name,u.externalModuleId,u.remoteName]}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),R(t.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return t}),M(t.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},r=!0,t=!1,n=void 0;try{for(var o,a=Object.entries(T)[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var s=i(o.value,2),l=s[0],u=c[s[1].remoteName];u&&(e[l]=u)}}catch(e){t=!0,n=e}finally{try{r||null==a.return||a.return()}finally{if(t)throw n}}return e}),_(t,"S",t.federation.bundlerRuntime.S),t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),_(t.f,"remotes",function(e,r){return t.federation.bundlerRuntime.remotes({chunkId:e,promises:r,chunkMapping:w,idToExternalAndNameMapping:t.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:t.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:t})}),_(t.f,"consumes",function(e,r){return t.federation.bundlerRuntime.consumes({chunkId:e,promises:r,chunkMapping:I,moduleToHandlerMapping:t.federation.consumesLoadingModuleToHandlerMapping,installedModules:j,webpackRequire:t})}),_(t,"I",function(e,r){return t.federation.bundlerRuntime.I({shareScopeName:e,initScope:r,initPromises:x,initTokens:N,webpackRequire:t})}),_(t,"initContainer",function(e,r,n){return t.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:r,remoteEntryInitOptions:n,shareScopeKey:C,webpackRequire:t})}),_(t,"getContainer",function(e,r){var n=t.initializeExposesData.moduleMap;return t.R=r,r=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){throw Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r}),t.federation.instance=t.federation.runtime.init(t.federation.initOptions),(null==(E=t.consumesLoadingData)?void 0:E.initialConsumes)&&t.federation.bundlerRuntime.installInitialConsumes({webpackRequire:t,installedModules:j,initialConsumes:t.consumesLoadingData.initialConsumes,moduleToHandlerMapping:t.federation.consumesLoadingModuleToHandlerMapping})}},29797(e,r,t){"use strict";t.d(r,{get:()=>t.getContainer,init:()=>t.initContainer})},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},31772(e,r){var t=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;r.__toESM=(e,r,l)=>(l=null!=e?t(i(e)):{},((e,r,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,l=a(r),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(t=o(r,i))||t.enumerable});return e})(!r&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},79837(e,r,t){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t(31772);let n=t(27789),o=t(53054),a={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},i=o.helpers.share,s=o.helpers.utils;r.default={global:a,share:i,utils:s},r.global=a,r.share=i,r.utils=s},83738(e,r,t){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),t(31772);let n=t(27789),o=t(53054),a=t(9170);function i(e){let r=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(r),r}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(r,"Module",{enumerable:!0,get:function(){return o.Module}}),r.ModuleFederation=o.ModuleFederation,r.createInstance=i,r.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(r,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(r,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),r.init=function(e){let r=n.getGlobalFederationInstance(e.name,e.version),t={...e,id:e.id||""};return r?(r.initOptions(t),s||(s=r),r):s=i(t)},r.loadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(r,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(r,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),r.loadShare=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},r.loadShareSync=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},r.preloadRemote=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(r,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),r.registerPlugins=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},r.registerRemotes=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},r.registerShared=function(...e){return(0,o.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},27789(e,r,t){t(31772);let n=t(53054);r.getGlobalFederationInstance=function(e,r){let t="@kenyaemr/esm-facility-dashboard-app:5.4.6-pre.1217";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!t&&n.options.id===t||n.options.name===e&&!n.options.version&&!r||n.options.name===e&&!!r&&n.options.version===r)}},50223(e,r){var t=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;r.__toESM=(e,r,l)=>(l=null!=e?t(i(e)):{},((e,r,t)=>{if(r&&"object"==typeof r||"function"==typeof r)for(var i,l=a(r),u=0,c=l.length;u<c;u++)i=l[u],s.call(e,i)||void 0===i||n(e,i,{get:(e=>r[e]).bind(null,i),enumerable:!(t=o(r,i))||t.enumerable});return e})(!r&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},33545(e,r){r.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)}},46917(e,r){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),r.FEDERATION_SUPPORTED_TYPES=["script"]},91864(e,r,t){let n=t(33545),o=t(91092),a=t(12677),i=t(10085),s=t(76781);r.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:r,promises:t,installedModules:l,webpackRequire:u,chunkMapping:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,r)&&c[r].forEach(e=>{if(u.o(l,e))return t.push(l[e]);let r=r=>{l[e]=0,u.m[e]=t=>{delete u.c[e];let n=r(),{shareInfo:o}=p[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}t.exports=n}},n=r=>{delete l[e],u.m[e]=t=>{throw delete u.c[e],r}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=a.getUsedExports(u,c),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let y=o.loadShare(c,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(i.RUNTIME_012,{[i.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});y.then?t.push(l[e]=y.then(r).catch(n)):r(y)}catch(e){n(e)}})}},10085(e,r){r.RUNTIME_012="RUNTIME-012"},76781(e,r){r.getShortErrorMsg=(e,r,t,n)=>{let o=[`${[r[e]]} #${e}`];return t&&o.push(`args: ${JSON.stringify(t)}`),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")}},41315(e,r){r.getSharedFallbackGetter=({shareKey:e,factory:r,version:t,webpackRequire:n,libraryType:o="global"})=>{let{runtime:a,instance:i,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return r;let u=l[e];if(!u)return r;let c=t?u.find(e=>e[1]===t):u[0];if(!c)throw Error(`No fallback item found for shareKey: ${e} and version: ${t}`);return()=>a.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:c[2],entry:`${n.p}${c[0]}`,type:o,entryGlobalName:c[2],shareScope:"default"}}).then(r=>{if(!r)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${t}`);return r.init(n.federation.instance,s).then(()=>r.get())})}},12677(e,r){r.getUsedExports=function(e,r){let t=e.federation.usedExports;if(t)return t[r]}},40523(e,r,t){Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=t(50223),o=t(33545),a=t(43586),i=t(91864),s=t(62221),l=t(34307),u=t(91180),c=t(10367),p=t(41315),d=t(83738);d=n.__toESM(d);let f={remotes:a.remotes,consumes:i.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:c.init,getSharedFallbackGetter:p.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,y=h.bundlerRuntimeOptions;r.attachShareScopeMap=o.attachShareScopeMap,r.bundlerRuntime=f,r.bundlerRuntimeOptions=y,r.default=h,r.initOptions=g,r.instance=m,Object.defineProperty(r,"runtime",{enumerable:!0,get:function(){return d}})},10367(e,r,t){let n=t(50223),o=t(83738),a=t(79837);a=n.__toESM(a),r.init=function({webpackRequire:e}){let{initOptions:r,runtime:n,sharedFallback:i,bundlerRuntime:s,libraryType:l}=e.federation;if(!r)throw Error("initOptions is required!");return r.plugins||=[],r.plugins.push({name:"tree-shake-plugin",beforeInit(r){let{userOptions:n,origin:u,options:c}=r,p=n.version||c.version;if(!i)return r;let d=n.shared||{},f=[];Object.keys(d).forEach(r=>{(Array.isArray(d[r])?d[r]:[d[r]]).forEach(t=>{f.push([r,t]),"get"in t&&(t.treeShaking||={},t.treeShaking.get=t.get,t.get=s.getSharedFallbackGetter({shareKey:r,factory:t.get,webpackRequire:e,libraryType:l,version:t.version}))})});let h=a.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:p});return h&&"shared"in h&&(Object.keys(c.shared||{}).forEach(e=>{c.shared[e].forEach(r=>{f.push([e,r])})}),f.forEach(([e,r])=>{((e,r)=>{let n=h.shared.find(r=>r.sharedName===e);if(!n)return;let{treeShaking:a}=r;if(!a)return;let{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:s,treeShakingStatus:c}=n;a.status!==c&&(a.status=c,s&&l&&i&&(a.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:i,entry:s,type:l,entryGlobalName:i,shareScope:"default"}});return await e.init(u,t.federation.bundlerRuntime),e.get()}))})(e,r)})),r}}),n.init(r)}},91180(e,r){r.initContainerEntry=function(e){let{webpackRequire:r,shareScope:t,initScope:n,shareScopeKey:o,remoteEntryInitOptions:a}=e;if(!r.S||!r.federation||!r.federation.instance||!r.federation.initOptions)return;let i=r.federation.instance;i.initOptions({name:r.federation.initOptions.name,remotes:[],...a});let s=a?.shareScopeKeys,l=a?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}});l[e]||(l[e]={});let r=l[e];i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let r=l[e];i.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}})}):i.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})}return(r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),Array.isArray(o))?r.federation.initOptions.shared?r.I(o,n):Promise.all(o.map(e=>r.I(e,n))).then(()=>!0):r.I(o||"default",n)}},62221(e,r,t){let n=t(33545),o=t(46917);r.initializeSharing=function({shareScopeName:e,webpackRequire:r,initPromises:t,initTokens:a,initScope:i}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){i||(i=[]);let l=r.federation.instance;var u=a[s];if(u||(u=a[s]={from:l.name}),i.indexOf(u)>=0)return;i.push(u);let c=t[s];if(c)return c;var p=t=>{var n=e=>{let r;return r="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(r)};try{var o=r(t);if(!o)return;var a=t=>t&&t.init&&t.init(r.S[s],i,{shareScopeMap:r.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(a,n));var l=a(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:i,from:"build"});n.attachShareScopeMap(r);let f=r.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let r=f.idToRemoteMap[e],t=f.idToExternalAndNameMapping[e][2];if(r.length>1)p(t);else if(1===r.length){let e=r[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||p(t)}}),d.length)?t[s]=Promise.all(d).then(()=>t[s]=!0):t[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},34307(e,r,t){let n=t(91092),o=t(12677);r.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:r,webpackRequire:t,installedModules:a,initialConsumes:i,asyncLoad:s}=e,l=[];i.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:r,moduleToHandlerMapping:t,webpackRequire:n,asyncLoad:a}=e,i=n.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=t[r];try{let e=o.getUsedExports(n,s),r={...l};if(e&&(r.treeShaking={usedExports:e,useIn:[i.options.name]}),a)return i.loadShare(s,{customShareInfo:r});return i.loadShareSync(s,{customShareInfo:r})}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:r,webpackRequire:t,asyncLoad:s})])});let u=(e,n)=>{t.m[e]=o=>{a[e]=0,delete t.c[e];let i=n();if("function"!=typeof i)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=i(),{shareInfo:l}=r[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,r])=>{let t=await r();u(e,()=>t)}));l.forEach(([e,r])=>{u(e,r)})}},43586(e,r,t){t(50223);let n=t(33545),o=t(46917),a=t(91092),i=t(31853);r.remotes=function(e){a.updateRemoteOptions(e);let{chunkId:r,promises:t,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:c}=e;n.attachShareScopeMap(s),s.o(l,r)&&l[r].forEach(e=>{let r=s.R;r||(r=[]);let n=u[e],a=c[e]||[];if(r.indexOf(n)>=0)return;if(r.push(n),n.p)return t.push(n.p);let l=r=>{r||(r=Error("Container missing")),"string"==typeof r.message&&(r.message+=`
|
|
3
3
|
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw r},n.p=0},p=(e,r,o,a,i,s)=>{try{let u=e(r,o);if(!u||!u.then)return i(u,a,s);{let e=u.then(e=>i(e,a),l);if(!s)return e;t.push(n.p=e)}}catch(e){l(e)}};var d=(e,t,o)=>p(t.get,n[1],r,0,f,o),f=r=>{n.p=1,s.m[e]=e=>{e.exports=r()}};1===a.length&&o.FEDERATION_SUPPORTED_TYPES.includes(a[0].externalType)&&a[0].name?p(()=>{try{let e=(0,i.decodeName)(a[0].name,i.ENCODE_NAME_PREFIX)+n[1].slice(1),r=s.federation.instance,t=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===r.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>r.sharedHandler.initializeSharing(e))).then(()=>t())}return t()}catch(e){l(e)}},n[2],0,0,f,1):p(s,n[2],0,0,(e,r,t)=>e?p(s.I,n[0],0,e,d,t):l(),1)})}},91092(e,r){r.updateConsumeOptions=function(e){let{webpackRequire:r,moduleToHandlerMapping:t}=e,{consumesLoadingData:n,initializeSharingData:o}=r,{sharedFallback:a,bundlerRuntime:i,libraryType:s}=r.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{t[e]||(t[e]={getter:a?i?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:r,libraryType:s}):n.fallback,treeShakingGetter:a?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:a?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:r=[]}=e;l.forEach(e=>{r.includes(e)||r.push(e)})}if("chunkMapping"in e){let{chunkMapping:r={}}=e;Object.entries(u).forEach(([e,t])=>{r[e]||(r[e]=[]),t.forEach(t=>{r[e].includes(t)||r[e].push(t)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=r;if(!e.instance||!o.scopeToSharingDataMapping)return;let t={};for(let[e,r]of Object.entries(o.scopeToSharingDataMapping))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:a,eager:i,singleton:s,requiredVersion:l,strictVersion:u}=n,c={requiredVersion:`^${o}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(i)&&(c.eager=i),p(u)&&(c.strictVersion=u);let d={version:o,scope:[e],shareConfig:c,get:a};t[r]?t[r].push(d):t[r]=[d]}e.instance.registerShared(t),o._updated=1}},r.updateRemoteOptions=function(e){let{webpackRequire:r,idToExternalAndNameMapping:t={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:a}=r,i=r.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!a||a._updated||!i)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=a;if(s&&l){for(let[e,r]of Object.entries(l))if(t[e]||(t[e]=[r.shareScope,r.name,r.externalModuleId]),!n[e]&&i[r.remoteName]){let t=i[r.remoteName];n[e]||=[],t.forEach(r=>{n[e].includes(r)||n[e].push(r)})}o&&Object.entries(s).forEach(([e,r])=>{o[e]||(o[e]=[]),r.forEach(r=>{o[e].includes(r)||o[e].push(r)})}),a._updated=1}}}},i={};function s(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={id:e,exports:{}};return a[e].call(t.exports,t,t.exports,s),t.exports}s.m=a,s.c=i,s.x=()=>s(29797),s.federation||(s.federation={chunkMatcher:function(e){return!/^(1155|257|5762|7553|8317|9195)$/.test(e)},rootOutputDir:""}),s.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return s.d(r,{a:r}),r},u=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var t=Object.create(null);s.r(t);var n={};l=l||[null,u({}),u([]),u(u)];for(var o=2&r&&e;("object"==typeof o||"function"==typeof o)&&!~l.indexOf(o);o=u(o))Object.getOwnPropertyNames(o).forEach(r=>{n[r]=()=>e[r]});return n.default=()=>e,s.d(t,n),t},s.d=(e,r)=>{for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((r,t)=>(s.f[t](e,r),r),[])),s.u=e=>""+e+".js",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,r)=>Object.prototype.hasOwnProperty.call(e,r),c={},s.l=function(e,r,t,n){if(c[e])return void c[e].push(r);if(void 0!==t)for(var o,a,i=document.getElementsByTagName("script"),l=0;l<i.length;l++){var u=i[l];if(u.getAttribute("src")==e||u.getAttribute("data-rspack")=="@kenyaemr/esm-facility-dashboard-app:"+t){o=u;break}}o||(a=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@kenyaemr/esm-facility-dashboard-app:"+t),o.src=e),c[e]=[r];var p=function(r,t){o.onerror=o.onload=null,clearTimeout(d);var n=c[e];if(delete c[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(t)}),r)return r(t)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),a&&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.nc=void 0,s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.112.0",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("3302"),s.e("1433"),s.e("1958"),s.e("7686"),s.e("26"),s.e("9148"),s.e("5362"),s.e("3796"),s.e("8743"),s.e("5567"),s.e("2840"),s.e("3580"),s.e("9549"),s.e("2468"),s.e("8183"),s.e("6698"),s.e("8521"),s.e("8812"),s.e("935"),s.e("9800"),s.e("7796"),s.e("257"),s.e("4283")]).then(()=>()=>s(49613)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@carbon/react",version:"1.112.0",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("5366"),s.e("7453"),s.e("6259"),s.e("5825"),s.e("3953"),s.e("8472"),s.e("7782"),s.e("624"),s.e("2795"),s.e("3569"),s.e("3285"),s.e("3723"),s.e("5941"),s.e("1844"),s.e("15"),s.e("2394"),s.e("9612"),s.e("6567"),s.e("5932"),s.e("2924"),s.e("2007"),s.e("257"),s.e("6664")]).then(()=>()=>s(58169)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9202"),s.e("5731"),s.e("992"),s.e("1946"),s.e("3745"),s.e("500"),s.e("6104"),s.e("8196"),s.e("5598"),s.e("7478"),s.e("9425"),s.e("7115"),s.e("257")]).then(()=>()=>s(28280)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5263",factory:()=>Promise.all([s.e("689"),s.e("3989"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("7209"),s.e("3518"),s.e("646"),s.e("9087"),s.e("1831"),s.e("2607"),s.e("1278"),s.e("2537"),s.e("9060"),s.e("7022"),s.e("1148"),s.e("8028"),s.e("820"),s.e("356"),s.e("2916"),s.e("3335"),s.e("2648"),s.e("6634"),s.e("2202"),s.e("2556"),s.e("6337"),s.e("1620"),s.e("9632"),s.e("647"),s.e("4588"),s.e("6478"),s.e("393"),s.e("8762"),s.e("6273"),s.e("8240"),s.e("5676"),s.e("4178"),s.e("9520"),s.e("6427"),s.e("2534"),s.e("5967"),s.e("7360"),s.e("9213"),s.e("257"),s.e("7553"),s.e("5762"),s.e("1155"),s.e("8317"),s.e("5697")]).then(()=>()=>s(45263)),eager:0,singleton:1,requiredVersion:"9.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("257")]).then(()=>()=>s(42348)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("689"),s.e("2842"),s.e("5086"),s.e("257")]).then(()=>()=>s(12689)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(14041)),eager:0,singleton:1,requiredVersion:"^18.1.0",strictVersion:0},{name:"swr/_internal",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("257")]).then(()=>()=>s(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("7209"),s.e("257"),s.e("9061")]).then(()=>()=>s(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("7209"),s.e("257"),s.e("9771")]).then(()=>()=>s(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@kenyaemr/esm-facility-dashboard-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(p=s.g.location+"");var l,u,c,p,d=s.g.document;if(!p&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(p=d.currentScript.src),!p)){var f=d.getElementsByTagName("script");if(f.length)for(var h=f.length-1;h>-1&&(!p||!/^http(s?):/.test(p));)p=f[h--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");s.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{2599:["10900"],5762:["75721"],257:["35400"],9195:["70438"],8317:["97744","36510","31888"],3378:["1487"],1155:["36142"],7553:["58088"]},moduleIdToConsumeDataMapping:{31888:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("5366"),s.e("7453"),s.e("6259"),s.e("5825"),s.e("3953"),s.e("8472"),s.e("7782"),s.e("624"),s.e("2795"),s.e("3569"),s.e("3285"),s.e("3723"),s.e("5941"),s.e("1844"),s.e("15"),s.e("2394"),s.e("9612"),s.e("6567"),s.e("5932"),s.e("2924"),s.e("2007")]).then(()=>()=>s(58169))},75721:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("2842"),s.e("5086")]).then(()=>()=>s(12689))},70438:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9202"),s.e("5731"),s.e("992"),s.e("1946"),s.e("3745"),s.e("500"),s.e("6104"),s.e("8196"),s.e("5598"),s.e("7478"),s.e("9425"),s.e("7115")]).then(()=>()=>s(28280))},35400:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"^18.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(14041))},36142:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1442").then(()=>()=>s(29876))},58088:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(42348))},10900:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("3302"),s.e("1433"),s.e("1958"),s.e("7686"),s.e("26"),s.e("9148"),s.e("5362"),s.e("3796"),s.e("8743"),s.e("5567"),s.e("2840"),s.e("3580"),s.e("9549"),s.e("2468"),s.e("8183"),s.e("6698"),s.e("8521"),s.e("8812"),s.e("935"),s.e("9800"),s.e("7796")]).then(()=>()=>s(49613))},97744:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("2152").then(()=>()=>s(52470))},36510:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>s(42372)},1487:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"9.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("3989"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("7209"),s.e("3518"),s.e("646"),s.e("9087"),s.e("1831"),s.e("2607"),s.e("1278"),s.e("2537"),s.e("9060"),s.e("7022"),s.e("1148"),s.e("8028"),s.e("820"),s.e("356"),s.e("2916"),s.e("3335"),s.e("2648"),s.e("6634"),s.e("2202"),s.e("2556"),s.e("6337"),s.e("1620"),s.e("9632"),s.e("647"),s.e("4588"),s.e("6478"),s.e("393"),s.e("8762"),s.e("6273"),s.e("8240"),s.e("5676"),s.e("4178"),s.e("9520"),s.e("6427"),s.e("2534"),s.e("5967"),s.e("7360"),s.e("9213"),s.e("257"),s.e("7553"),s.e("5762"),s.e("1155"),s.e("8317")]).then(()=>()=>s(45263))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},s.initializeExposesData={moduleMap:{"./start":()=>s.e("3378").then(()=>()=>s(47481))},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={8077:0},s.f.j=function(r,t){var n=s.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(1155|257|5762|7553|8317|9195)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=s.p+s.u(r),i=Error();s.l(a,function(t){if(s.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}},r=(r,t)=>{var n,o,[a,i,l]=t,u=0;if(a.some(r=>0!==e[r])){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);l&&l(s)}for(r&&r(t);u<a.length;u++)o=a[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(t=globalThis.webpackChunk_kenyaemr_esm_facility_dashboard_app=globalThis.webpackChunk_kenyaemr_esm_facility_dashboard_app||[]).forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(3828)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_kenyaemr_esm_facility_dashboard_app=s.x()})();
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"auxiliaryFiles": [
|
|
366
366
|
"main.js.map"
|
|
367
367
|
],
|
|
368
|
-
"hash": "
|
|
368
|
+
"hash": "49622988bc0e23e4",
|
|
369
369
|
"childrenByOrder": {}
|
|
370
370
|
},
|
|
371
371
|
{
|
|
@@ -2981,7 +2981,7 @@
|
|
|
2981
2981
|
"auxiliaryFiles": [
|
|
2982
2982
|
"kenyaemr-esm-facility-dashboard-app.js.map"
|
|
2983
2983
|
],
|
|
2984
|
-
"hash": "
|
|
2984
|
+
"hash": "54157cb02d987d59",
|
|
2985
2985
|
"childrenByOrder": {}
|
|
2986
2986
|
},
|
|
2987
2987
|
{
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!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("@kenyaemr/esm-facility-dashboard-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("@kenyaemr/esm-facility-dashboard-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,i,a={23464(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},p="en",h={};h[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",y=function(e){return e instanceof v||!(!e||!e[m])},g=function e(t,r,n){var i;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();h[a]&&(i=a),r&&(h[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;h[s]=t,i=s}return!n&&i&&(p=i),i||!n&&p},b=function(e,t){if(y(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new v(r)},S={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),o=r-i<0,s=t.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:a,y:s,w:i,d:"day",D:u,h:n,m:r,s:t,ms:e,Q:o})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};S.l=g,S.i=y,S.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var v=function(){function d(e){this.$L=g(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return S},p.isValid=function(){return this.$d.toString()!==l},p.isSame=function(e,t){var r=b(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,o){var l=this,c=!!S.u(o)||o,f=S.p(e),d=function(e,t){var r=S.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?r:r.endOf("day")},p=function(e,t){return S.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},h=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case s:return c?d(1,0):d(31,11);case a:return c?d(1,m):d(0,m+1);case i:var b=this.$locale().weekStart||0,v=(h<b?h+7:h)-b;return d(c?y-v:y+(6-v),m);case"day":case u:return p(g+"Hours",0);case n:return p(g+"Minutes",1);case r:return p(g+"Seconds",2);case t:return p(g+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,o){var l,c=S.p(i),f="set"+(this.$u?"UTC":""),d=((l={}).day=f+"Date",l[u]=f+"Date",l[a]=f+"Month",l[s]=f+"FullYear",l[n]=f+"Hours",l[r]=f+"Minutes",l[t]=f+"Seconds",l[e]=f+"Milliseconds",l)[c],p="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var h=this.clone().set(u,1);h.$d[d](p),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[S.p(e)]()},p.add=function(e,o){var u,l=this;e=Number(e);var c=S.p(o),f=function(t){var r=b(l);return S.w(r.date(r.date()+Math.round(t*e)),l)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return f(1);if(c===i)return f(7);var d=((u={})[r]=6e4,u[n]=36e5,u[t]=1e3,u)[c]||1,p=this.$d.getTime()+e*d;return S.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,o=this.$m,s=this.$M,u=r.weekdays,c=r.months,d=r.meridiem,p=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},h=function(e){return S.s(a%12||12,e,"0")},m=d||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,u,2);case"ddd":return p(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return S.s(o,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,u,l){var c,f=this,d=S.p(u),p=b(e),h=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,y=function(){return S.m(f,p)};switch(d){case s:c=y()/12;break;case a:c=y();break;case o:c=y()/3;break;case i:c=(m-h)/6048e5;break;case"day":c=(m-h)/864e5;break;case n:c=m/36e5;break;case r:c=m/6e4;break;case t:c=m/1e3;break;default:c=m}return l?c:S.a(c)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return h[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=g(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return S.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),M=v.prototype;return b.prototype=M,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",u]].forEach(function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,v,b),e.$i=!0),b},b.locale=g,b.isDayjs=y,b.unix=function(e){return b(1e3*e)},b.en=h[p],b.Ls=h,b.p={},b}()},84767(e,t,r){var n={"./en.json":["34300","5117"],"./sw.json":["89913","997"],"./am.json":["81197","9806"],"./fr.json":["94055","6508"]};function i(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],i=t[0];return r.e(t[1]).then(function(){return r(i)})}i.keys=()=>Object.keys(n),i.id=84767,e.exports=i},57003(e,t,r){"use strict";r.d(t,{AO:()=>a,Ec:()=>o,Mz:()=>u,YI:()=>l,cQ:()=>f,t7:()=>c,yD:()=>s});var n=r(23464),i=r.n(n),a="@kenyaemr/esm-facility-dashboard-app";window.spaBase;var o=function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())},s=function(){return i()().subtract(7,"day").toDate()},u="d/m/Y",l="YYYY-MM-DD",c=function(e){return e?i()(e).format(l):""},f=function(){return i()().subtract(30,"day").toDate()}},47481(e,t,r){"use strict";var n=r(1487);n.Type.String,n.Type.Boolean;var i={featureName:"esm-facility-dashboard-app",moduleName:r(57003).AO};r(84767),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("2618"),r.e("7209"),r.e("3518"),r.e("9049"),r.e("4039"),r.e("7078"),r.e("1375"),r.e("510"),r.e("7833"),r.e("257"),r.e("7553"),r.e("5762"),r.e("1155"),r.e("9195"),r.e("2599"),r.e("5541")]).then(r.bind(r,50740))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"Surveillance",name:""})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"Above site Dashboard",name:"above-site"})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"dataTransmission",name:"transmission"})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("9533")]).then(r.bind(r,59372))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("8761")]).then(r.bind(r,36720))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("2618"),r.e("7209"),r.e("3518"),r.e("9049"),r.e("4039"),r.e("7078"),r.e("257"),r.e("7553"),r.e("5762"),r.e("1155"),r.e("9195"),r.e("2599")]).then(r.bind(r,12139))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("7209"),r.e("257"),r.e("7553"),r.e("9195"),r.e("7818")]).then(r.bind(r,52721))},i)},3828(e,t,r){"use strict";var n=r(40523),i=r.n(n);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}var l=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),c={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){var f,d,p,h,m,y,g,b,S,v,M,O,E=function(e,t,r){e&&e[t]&&(e[t]=r)},_=function(e,t,r){var n,i=r();Array.isArray(i)?(null!=e[t]||(e[t]=[]),(n=e[t]).push.apply(n,function(e){if(Array.isArray(e))return a(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||u(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):(void 0===i?"undefined":s(i))==="object"&&null!==i&&(null!=e[t]||(e[t]={}),Object.assign(e[t],i))},w=function(e,t,r){null!=e[t]||(e[t]=r())},$=null!=(f=null==(y=r.remotesLoadingData)?void 0:y.chunkMapping)?f:{},T=null!=(d=null==(g=r.remotesLoadingData)?void 0:g.moduleIdToRemoteDataMapping)?d:{},D=null!=(p=null==(b=r.initializeSharingData)?void 0:b.scopeToSharingDataMapping)?p:{},k=null!=(h=null==(S=r.consumesLoadingData)?void 0:S.chunkMapping)?h:{},R=null!=(m=null==(v=r.consumesLoadingData)?void 0:v.moduleIdToConsumeDataMapping)?m:{},I={},P=[],j={},x=null==(M=r.initializeExposesData)?void 0:M.shareScope;for(var A in i())r.federation[A]=i()[A];w(r.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(R)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=s[1];e[u]={getter:l.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:l.requiredVersion,strictVersion:l.strictVersion,singleton:l.singleton,eager:l.eager},scope:[l.shareScope]},shareKey:l.shareKey}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),w(r.federation,"initOptions",function(){return{}}),w(r.federation.initOptions,"name",function(){return"@kenyaemr/esm-facility-dashboard-app"}),w(r.federation.initOptions,"shareStrategy",function(){return"version-first"}),w(r.federation.initOptions,"shared",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(D)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var u=o(i.value,2),l=u[0],c=u[1],f=!0,d=!1,p=void 0;try{for(var h,m=c[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;if((void 0===y?"undefined":s(y))==="object"&&null!==y){var g=y.name,b=y.version,S=y.factory,v=y.eager,M=y.singleton,O=y.requiredVersion,E=y.strictVersion,_={},w=function(e){return void 0!==e};w(M)&&(_.singleton=M),w(O)&&(_.requiredVersion=O),w(v)&&(_.eager=v),w(E)&&(_.strictVersion=E);var $={version:b,scope:[l],shareConfig:_,get:S};e[g]?e[g].push($):e[g]=[$]}}}catch(e){d=!0,p=e}finally{try{f||null==m.return||m.return()}finally{if(d)throw p}}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),_(r.federation.initOptions,"remotes",function(){return Object.values(c).flat().filter(function(e){return"script"===e.externalType})}),_(r.federation.initOptions,"plugins",function(){return l}),w(r.federation,"bundlerRuntimeOptions",function(){return{}}),w(r.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),w(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return $}),w(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return c}),w(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(T)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=s[1];e[u]=[l.shareScope,l.name,l.externalModuleId,l.remoteName]}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),w(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return r}),_(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(T)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=c[s[1].remoteName];l&&(e[u]=l)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),E(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),E(r.f,"remotes",function(e,t){return r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:$,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})}),E(r.f,"consumes",function(e,t){return r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:k,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:I,webpackRequire:r})}),E(r,"I",function(e,t){return r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:P,initTokens:j,webpackRequire:r})}),E(r,"initContainer",function(e,t,n){return r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:x,webpackRequire:r})}),E(r,"getContainer",function(e,t){var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){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==(O=r.consumesLoadingData)?void 0:O.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:I,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},31772(e,t){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,u)=>(u=null!=e?r(o(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var u,l=a(t),c=0,f=l.length;c<f;c++)u=l[c],s.call(e,u)||u===r||n(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(o=i(t,u))||o.enumerable});return e})(!t&&e&&e.__esModule?u:n(u,"default",{value:e,enumerable:!0}),e))},79837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(31772);let n=r(27789),i=r(53054),a={...i.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},o=i.helpers.share,s=i.helpers.utils;t.default={global:a,share:o,utils:s},t.global=a,t.share=o,t.utils=s},83738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(31772);let n=r(27789),i=r(53054),a=r(9170);function o(e){let t=new((0,i.getGlobalFederationConstructor)()||i.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,i.setGlobalFederationInstance)(t),t}let s=null;(0,i.setGlobalFederationConstructor)(i.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return i.Module}}),t.ModuleFederation=i.ModuleFederation,t.createInstance=o,t.getInstance=function(e){return e?i.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return i.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return i.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=o(r)},t.loadRemote=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return i.loadScriptNode}}),t.loadShare=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return i.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},27789(e,t,r){r(31772);let n=r(53054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-facility-dashboard-app:5.4.6-pre.1213";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)}},50223(e,t){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,u)=>(u=null!=e?r(o(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var u,l=a(t),c=0,f=l.length;c<f;c++)u=l[c],s.call(e,u)||u===r||n(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(o=i(t,u))||o.enumerable});return e})(!t&&e&&e.__esModule?u:n(u,"default",{value:e,enumerable:!0}),e))},33545(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)}},46917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},91864(e,t,r){let n=r(33545),i=r(91092),a=r(12677),o=r(10085),s=r(76781);t.consumes=function(e){i.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:u,webpackRequire:l,chunkMapping:c,moduleToHandlerMapping:f}=e;n.attachShareScopeMap(l),l.o(c,t)&&c[t].forEach(e=>{if(l.o(u,e))return r.push(u[e]);let t=t=>{u[e]=0,l.m[e]=r=>{delete l.c[e];let n=t(),{shareInfo:i}=f[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete u[e],l.m[e]=r=>{throw delete l.c[e],t}};try{let i=l.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:p,treeShakingGetter:h}=f[e],m=a.getUsedExports(l,c),y={...p};Array.isArray(y.scope)&&Array.isArray(y.scope[0])&&(y.scope=y.scope[0]),m&&(y.treeShaking={usedExports:m,useIn:[i.options.name]});let g=i.loadShare(c,{customShareInfo:y}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(o.RUNTIME_012,{[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});g.then?r.push(u[e]=g.then(t).catch(n)):t(g)}catch(e){n(e)}})}},10085(e,t){t.RUNTIME_012="RUNTIME-012"},76781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let i=[`${[t[e]]} #${e}`];return r&&i.push(`args: ${JSON.stringify(r)}`),i.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&i.push(`Original Error Message:
|
|
1
|
+
!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("@kenyaemr/esm-facility-dashboard-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("@kenyaemr/esm-facility-dashboard-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,i,a={23464(e){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",u="date",l="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},p="en",h={};h[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var m="$isDayjsObject",y=function(e){return e instanceof v||!(!e||!e[m])},g=function e(t,r,n){var i;if(!t)return p;if("string"==typeof t){var a=t.toLowerCase();h[a]&&(i=a),r&&(h[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;h[s]=t,i=s}return!n&&i&&(p=i),i||!n&&p},b=function(e,t){if(y(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new v(r)},S={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),o=r-i<0,s=t.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(l){return({M:a,y:s,w:i,d:"day",D:u,h:n,m:r,s:t,ms:e,Q:o})[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};S.l=g,S.i=y,S.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var v=function(){function d(e){this.$L=g(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return S},p.isValid=function(){return this.$d.toString()!==l},p.isSame=function(e,t){var r=b(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return b(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<b(e)},p.$g=function(e,t,r){return S.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,o){var l=this,c=!!S.u(o)||o,f=S.p(e),d=function(e,t){var r=S.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return c?r:r.endOf("day")},p=function(e,t){return S.w(l.toDate()[e].apply(l.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},h=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case s:return c?d(1,0):d(31,11);case a:return c?d(1,m):d(0,m+1);case i:var b=this.$locale().weekStart||0,v=(h<b?h+7:h)-b;return d(c?y-v:y+(6-v),m);case"day":case u:return p(g+"Hours",0);case n:return p(g+"Minutes",1);case r:return p(g+"Seconds",2);case t:return p(g+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(i,o){var l,c=S.p(i),f="set"+(this.$u?"UTC":""),d=((l={}).day=f+"Date",l[u]=f+"Date",l[a]=f+"Month",l[s]=f+"FullYear",l[n]=f+"Hours",l[r]=f+"Minutes",l[t]=f+"Seconds",l[e]=f+"Milliseconds",l)[c],p="day"===c?this.$D+(o-this.$W):o;if(c===a||c===s){var h=this.clone().set(u,1);h.$d[d](p),h.init(),this.$d=h.set(u,Math.min(this.$D,h.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[S.p(e)]()},p.add=function(e,o){var u,l=this;e=Number(e);var c=S.p(o),f=function(t){var r=b(l);return S.w(r.date(r.date()+Math.round(t*e)),l)};if(c===a)return this.set(a,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return f(1);if(c===i)return f(7);var d=((u={})[r]=6e4,u[n]=36e5,u[t]=1e3,u)[c]||1,p=this.$d.getTime()+e*d;return S.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),a=this.$H,o=this.$m,s=this.$M,u=r.weekdays,c=r.months,d=r.meridiem,p=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},h=function(e){return S.s(a%12||12,e,"0")},m=d||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(f,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(r.weekdaysMin,t.$W,u,2);case"ddd":return p(r.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(a);case"HH":return S.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return S.s(o,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,u,l){var c,f=this,d=S.p(u),p=b(e),h=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,y=function(){return S.m(f,p)};switch(d){case s:c=y()/12;break;case a:c=y();break;case o:c=y()/3;break;case i:c=(m-h)/6048e5;break;case"day":c=(m-h)/864e5;break;case n:c=m/36e5;break;case r:c=m/6e4;break;case t:c=m/1e3;break;default:c=m}return l?c:S.a(c)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return h[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=g(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return S.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),M=v.prototype;return b.prototype=M,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",u]].forEach(function(e){M[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,v,b),e.$i=!0),b},b.locale=g,b.isDayjs=y,b.unix=function(e){return b(1e3*e)},b.en=h[p],b.Ls=h,b.p={},b}()},84767(e,t,r){var n={"./en.json":["34300","5117"],"./sw.json":["89913","997"],"./am.json":["81197","9806"],"./fr.json":["94055","6508"]};function i(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],i=t[0];return r.e(t[1]).then(function(){return r(i)})}i.keys=()=>Object.keys(n),i.id=84767,e.exports=i},57003(e,t,r){"use strict";r.d(t,{AO:()=>a,Ec:()=>o,Mz:()=>u,YI:()=>l,cQ:()=>f,t7:()=>c,yD:()=>s});var n=r(23464),i=r.n(n),a="@kenyaemr/esm-facility-dashboard-app";window.spaBase;var o=function(){var e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())},s=function(){return i()().subtract(7,"day").toDate()},u="d/m/Y",l="YYYY-MM-DD",c=function(e){return e?i()(e).format(l):""},f=function(){return i()().subtract(30,"day").toDate()}},47481(e,t,r){"use strict";var n=r(1487);n.Type.String,n.Type.Boolean;var i={featureName:"esm-facility-dashboard-app",moduleName:r(57003).AO};r(84767),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("2618"),r.e("7209"),r.e("3518"),r.e("9049"),r.e("4039"),r.e("7078"),r.e("1375"),r.e("510"),r.e("7833"),r.e("257"),r.e("7553"),r.e("5762"),r.e("1155"),r.e("9195"),r.e("2599"),r.e("5541")]).then(r.bind(r,50740))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"Surveillance",name:""})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"Above site Dashboard",name:"above-site"})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("5762"),r.e("5365")]).then(r.bind(r,31156)).then(function(e){return{default:e.createLeftPanelLink({title:"dataTransmission",name:"transmission"})}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("9533")]).then(r.bind(r,59372))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("257"),r.e("7553"),r.e("8761")]).then(r.bind(r,36720))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("2618"),r.e("7209"),r.e("3518"),r.e("9049"),r.e("4039"),r.e("7078"),r.e("257"),r.e("7553"),r.e("5762"),r.e("1155"),r.e("9195"),r.e("2599")]).then(r.bind(r,12139))},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([r.e("3989"),r.e("7209"),r.e("257"),r.e("7553"),r.e("9195"),r.e("7818")]).then(r.bind(r,52721))},i)},3828(e,t,r){"use strict";var n=r(40523),i=r.n(n);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return a}}(e,t)||u(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}}var l=[].filter(function(e){return e.plugin}).map(function(e){return(0,e.plugin)(e.params)}),c={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){var f,d,p,h,m,y,g,b,S,v,M,O,E=function(e,t,r){e&&e[t]&&(e[t]=r)},_=function(e,t,r){var n,i=r();Array.isArray(i)?(null!=e[t]||(e[t]=[]),(n=e[t]).push.apply(n,function(e){if(Array.isArray(e))return a(e)}(i)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||u(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())):(void 0===i?"undefined":s(i))==="object"&&null!==i&&(null!=e[t]||(e[t]={}),Object.assign(e[t],i))},w=function(e,t,r){null!=e[t]||(e[t]=r())},$=null!=(f=null==(y=r.remotesLoadingData)?void 0:y.chunkMapping)?f:{},T=null!=(d=null==(g=r.remotesLoadingData)?void 0:g.moduleIdToRemoteDataMapping)?d:{},D=null!=(p=null==(b=r.initializeSharingData)?void 0:b.scopeToSharingDataMapping)?p:{},k=null!=(h=null==(S=r.consumesLoadingData)?void 0:S.chunkMapping)?h:{},R=null!=(m=null==(v=r.consumesLoadingData)?void 0:v.moduleIdToConsumeDataMapping)?m:{},I={},P=[],j={},x=null==(M=r.initializeExposesData)?void 0:M.shareScope;for(var A in i())r.federation[A]=i()[A];w(r.federation,"consumesLoadingModuleToHandlerMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(R)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=s[1];e[u]={getter:l.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:l.requiredVersion,strictVersion:l.strictVersion,singleton:l.singleton,eager:l.eager},scope:[l.shareScope]},shareKey:l.shareKey}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),w(r.federation,"initOptions",function(){return{}}),w(r.federation.initOptions,"name",function(){return"@kenyaemr/esm-facility-dashboard-app"}),w(r.federation.initOptions,"shareStrategy",function(){return"version-first"}),w(r.federation.initOptions,"shared",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(D)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var u=o(i.value,2),l=u[0],c=u[1],f=!0,d=!1,p=void 0;try{for(var h,m=c[Symbol.iterator]();!(f=(h=m.next()).done);f=!0){var y=h.value;if((void 0===y?"undefined":s(y))==="object"&&null!==y){var g=y.name,b=y.version,S=y.factory,v=y.eager,M=y.singleton,O=y.requiredVersion,E=y.strictVersion,_={},w=function(e){return void 0!==e};w(M)&&(_.singleton=M),w(O)&&(_.requiredVersion=O),w(v)&&(_.eager=v),w(E)&&(_.strictVersion=E);var $={version:b,scope:[l],shareConfig:_,get:S};e[g]?e[g].push($):e[g]=[$]}}}catch(e){d=!0,p=e}finally{try{f||null==m.return||m.return()}finally{if(d)throw p}}}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),_(r.federation.initOptions,"remotes",function(){return Object.values(c).flat().filter(function(e){return"script"===e.externalType})}),_(r.federation.initOptions,"plugins",function(){return l}),w(r.federation,"bundlerRuntimeOptions",function(){return{}}),w(r.federation.bundlerRuntimeOptions,"remotes",function(){return{}}),w(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",function(){return $}),w(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",function(){return c}),w(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(T)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=s[1];e[u]=[l.shareScope,l.name,l.externalModuleId,l.remoteName]}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),w(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",function(){return r}),_(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",function(){var e={},t=!0,r=!1,n=void 0;try{for(var i,a=Object.entries(T)[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=o(i.value,2),u=s[0],l=c[s[1].remoteName];l&&(e[u]=l)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}),E(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),E(r.f,"remotes",function(e,t){return r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:$,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})}),E(r.f,"consumes",function(e,t){return r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:k,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:I,webpackRequire:r})}),E(r,"I",function(e,t){return r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:P,initTokens:j,webpackRequire:r})}),E(r,"initContainer",function(e,t,n){return r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:x,webpackRequire:r})}),E(r,"getContainer",function(e,t){var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(function(){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==(O=r.consumesLoadingData)?void 0:O.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:I,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},31772(e,t){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,u)=>(u=null!=e?r(o(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var u,l=a(t),c=0,f=l.length;c<f;c++)u=l[c],s.call(e,u)||u===r||n(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(o=i(t,u))||o.enumerable});return e})(!t&&e&&e.__esModule?u:n(u,"default",{value:e,enumerable:!0}),e))},79837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(31772);let n=r(27789),i=r(53054),a={...i.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},o=i.helpers.share,s=i.helpers.utils;t.default={global:a,share:o,utils:s},t.global=a,t.share=o,t.utils=s},83738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(31772);let n=r(27789),i=r(53054),a=r(9170);function o(e){let t=new((0,i.getGlobalFederationConstructor)()||i.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,i.setGlobalFederationInstance)(t),t}let s=null;(0,i.setGlobalFederationConstructor)(i.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return i.Module}}),t.ModuleFederation=i.ModuleFederation,t.createInstance=o,t.getInstance=function(e){return e?i.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return i.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return i.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=o(r)},t.loadRemote=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return i.loadScriptNode}}),t.loadShare=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return i.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,i.assert)(s,a.RUNTIME_009,a.runtimeDescMap),s.registerShared.apply(s,e)}},27789(e,t,r){r(31772);let n=r(53054);t.getGlobalFederationInstance=function(e,t){let r="@kenyaemr/esm-facility-dashboard-app:5.4.6-pre.1217";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)}},50223(e,t){var r=Object.create,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,u)=>(u=null!=e?r(o(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var u,l=a(t),c=0,f=l.length;c<f;c++)u=l[c],s.call(e,u)||u===r||n(e,u,{get:(e=>t[e]).bind(null,u),enumerable:!(o=i(t,u))||o.enumerable});return e})(!t&&e&&e.__esModule?u:n(u,"default",{value:e,enumerable:!0}),e))},33545(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)}},46917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},91864(e,t,r){let n=r(33545),i=r(91092),a=r(12677),o=r(10085),s=r(76781);t.consumes=function(e){i.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:u,webpackRequire:l,chunkMapping:c,moduleToHandlerMapping:f}=e;n.attachShareScopeMap(l),l.o(c,t)&&c[t].forEach(e=>{if(l.o(u,e))return r.push(u[e]);let t=t=>{u[e]=0,l.m[e]=r=>{delete l.c[e];let n=t(),{shareInfo:i}=f[e];if(i?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=i.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete u[e],l.m[e]=r=>{throw delete l.c[e],t}};try{let i=l.federation.instance;if(!i)throw Error("Federation instance not found!");let{shareKey:c,getter:d,shareInfo:p,treeShakingGetter:h}=f[e],m=a.getUsedExports(l,c),y={...p};Array.isArray(y.scope)&&Array.isArray(y.scope[0])&&(y.scope=y.scope[0]),m&&(y.treeShaking={usedExports:m,useIn:[i.options.name]});let g=i.loadShare(c,{customShareInfo:y}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(o.RUNTIME_012,{[o.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:c}));return h?.()||d()}return e});g.then?r.push(u[e]=g.then(t).catch(n)):t(g)}catch(e){n(e)}})}},10085(e,t){t.RUNTIME_012="RUNTIME-012"},76781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let i=[`${[t[e]]} #${e}`];return r&&i.push(`args: ${JSON.stringify(r)}`),i.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&i.push(`Original Error Message:
|
|
2
2
|
${n}`),i.join("\n")}},41315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:i="global"})=>{let{runtime:a,instance:o,bundlerRuntime:s,sharedFallback:u}=n.federation;if(!u)return t;let l=u[e];if(!l)return t;let c=r?l.find(e=>e[1]===r):l[0];if(!c)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>a.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:c[2],entry:`${n.p}${c[0]}`,type:i,entryGlobalName:c[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},12677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},40523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(50223),i=r(33545),a=r(43586),o=r(91864),s=r(62221),u=r(34307),l=r(91180),c=r(10367),f=r(41315),d=r(83738);d=n.__toESM(d);let p={remotes:a.remotes,consumes:o.consumes,I:s.initializeSharing,S:{},installInitialConsumes:u.installInitialConsumes,initContainerEntry:l.initContainerEntry,init:c.init,getSharedFallbackGetter:f.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:p,attachShareScopeMap:i.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,y=h.initOptions,g=h.bundlerRuntimeOptions;t.attachShareScopeMap=i.attachShareScopeMap,t.bundlerRuntime=p,t.bundlerRuntimeOptions=g,t.default=h,t.initOptions=y,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},10367(e,t,r){let n=r(50223),i=r(83738),a=r(79837);a=n.__toESM(a),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:o,bundlerRuntime:s,libraryType:u}=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:l,options:c}=t,f=n.version||c.version;if(!o)return t;let d=n.shared||{},p=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{p.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:u,version:r.version}))})});let h=a.default.global.getGlobalSnapshotInfoByModuleInfo({name:l.name,version:f});return h&&"shared"in h&&(Object.keys(c.shared||{}).forEach(e=>{c.shared[e].forEach(t=>{p.push([e,t])})}),p.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:a}=t;if(!a)return;let{secondarySharedTreeShakingName:o,secondarySharedTreeShakingEntry:s,treeShakingStatus:c}=n;a.status!==c&&(a.status=c,s&&u&&o&&(a.get=async()=>{let e=await (0,i.getRemoteEntry)({origin:l,remoteInfo:{name:o,entry:s,type:u,entryGlobalName:o,shareScope:"default"}});return await e.init(l,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},91180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:i,remoteEntryInitOptions:a}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let o=t.federation.instance;o.initOptions({name:t.federation.initOptions.name,remotes:[],...a});let s=a?.shareScopeKeys,u=a?.shareScopeMap;if(i&&"string"!=typeof i)i.forEach(e=>{if(!s||!u)return void o.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}});u[e]||(u[e]={});let t=u[e];o.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})});else{let e=i||"default";Array.isArray(s)?s.forEach(e=>{u[e]||(u[e]={});let t=u[e];o.initShareScopeMap(e,t,{hostShareScopeMap:a?.shareScopeMap||{}})}):o.initShareScopeMap(e,r,{hostShareScopeMap:a?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(i))?t.federation.initOptions.shared?t.I(i,n):Promise.all(i.map(e=>t.I(e,n))).then(()=>!0):t.I(i||"default",n)}},62221(e,t,r){let n=r(33545),i=r(46917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:a,initScope:o}){let s=Array.isArray(e)?e:[e];var u=[],l=function(s){o||(o=[]);let u=t.federation.instance;var l=a[s];if(l||(l=a[s]={from:u.name}),o.indexOf(l)>=0)return;o.push(l);let c=r[s];if(c)return c;var f=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var i=t(r);if(!i)return;var a=r=>r&&r.init&&r.init(t.S[s],o,{shareScopeMap:t.S||{},shareScopeKeys:e});if(i.then)return d.push(i.then(a,n));var u=a(i);if(u&&"boolean"!=typeof u&&u.then)return d.push(u.catch(n))}catch(e){n(e)}};let d=u.initializeSharing(s,{strategy:u.options.shareStrategy,initScope:o,from:"build"});n.attachShareScopeMap(t);let p=t.federation.bundlerRuntimeOptions.remotes;return(p&&Object.keys(p.idToRemoteMap).forEach(e=>{let t=p.idToRemoteMap[e],r=p.idToExternalAndNameMapping[e][2];if(t.length>1)f(r);else if(1===t.length){let e=t[0];i.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||f(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{u.push(l(e))}),Promise.all(u).then(()=>!0)}},34307(e,t,r){let n=r(91092),i=r(12677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:a,initialConsumes:o,asyncLoad:s}=e,u=[];o.forEach(e=>{u.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:a}=e,o=n.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:u}=r[t];try{let e=i.getUsedExports(n,s),t={...u};if(e&&(t.treeShaking={usedExports:e,useIn:[o.options.name]}),a)return o.loadShare(s,{customShareInfo:t});return o.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 l=(e,n)=>{r.m[e]=i=>{a[e]=0,delete r.c[e];let o=n();if("function"!=typeof o)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=o(),{shareInfo:u}=t[e];if(u?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=u.shareConfig.layer)}catch(e){}i.exports=s}};if(s)return Promise.all(u.map(async([e,t])=>{let r=await t();l(e,()=>r)}));u.forEach(([e,t])=>{l(e,t)})}},43586(e,t,r){r(50223);let n=r(33545),i=r(46917),a=r(91092),o=r(31853);t.remotes=function(e){a.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:u,idToExternalAndNameMapping:l,idToRemoteMap:c}=e;n.attachShareScopeMap(s),s.o(u,t)&&u[t].forEach(e=>{let t=s.R;t||(t=[]);let n=l[e],a=c[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let u=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
3
|
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},f=(e,t,i,a,o,s)=>{try{let l=e(t,i);if(!l||!l.then)return o(l,a,s);{let e=l.then(e=>o(e,a),u);if(!s)return e;r.push(n.p=e)}}catch(e){u(e)}};var d=(e,r,i)=>f(r.get,n[1],t,0,p,i),p=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===a.length&&i.FEDERATION_SUPPORTED_TYPES.includes(a[0].externalType)&&a[0].name?f(()=>{try{let e=(0,o.decodeName)(a[0].name,o.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){u(e)}},n[2],0,0,p,1):f(s,n[2],0,0,(e,t,r)=>e?f(s.I,n[0],0,e,d,r):u(),1)})}},91092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:i}=t,{sharedFallback:a,bundlerRuntime:o,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:i={},initialConsumes:u=[],chunkMapping:l={}}=n;if(Object.entries(i).forEach(([e,n])=>{r[e]||(r[e]={getter:a?o?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:a?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:a?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;u.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(l).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(i&&!i._updated){let{federation:e}=t;if(!e.instance||!i.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(i.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:i,factory:a,eager:o,singleton:s,requiredVersion:u,strictVersion:l}=n,c={requiredVersion:`^${i}`},f=function(e){return void 0!==e};f(s)&&(c.singleton=s),f(u)&&(c.requiredVersion=u),f(o)&&(c.eager=o),f(l)&&(c.strictVersion=l);let d={version:i,scope:[e],shareConfig:c,get:a};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),i._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:i={}}=e,{remotesLoadingData:a}=t,o=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!a||a._updated||!o)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:u}=a;if(s&&u){for(let[e,t]of Object.entries(u))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&o[t.remoteName]){let r=o[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}i&&Object.entries(s).forEach(([e,t])=>{i[e]||(i[e]=[]),t.forEach(t=>{i[e].includes(t)||i[e].push(t)})}),a._updated=1}}}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return a[e].call(r.exports,r,r.exports,s),r.exports}s.m=a,s.c=o,s.x=()=>s(47481),s.federation||(s.federation={chunkMatcher:function(e){return!/^(1155|257|5762|7553|8317|9195)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},l=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);s.r(r);var n={};u=u||[null,l({}),l([]),l(l)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~u.indexOf(i);i=l(i))Object.getOwnPropertyNames(i).forEach(t=>{n[t]=()=>e[t]});return n.default=()=>e,s.d(r,n),r},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.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),c={},s.l=function(e,t,r,n){if(c[e])return void c[e].push(t);if(void 0!==r)for(var i,a,o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var l=o[u];if(l.getAttribute("src")==e||l.getAttribute("data-rspack")=="@kenyaemr/esm-facility-dashboard-app:"+r){i=l;break}}i||(a=!0,(i=document.createElement("script")).timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-rspack","@kenyaemr/esm-facility-dashboard-app:"+r),i.src=e),c[e]=[t];var f=function(t,r){i.onerror=i.onload=null,clearTimeout(d);var n=c[e];if(delete c[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),a&&document.head.appendChild(i)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0,s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.112.0",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("3302"),s.e("1433"),s.e("1958"),s.e("7686"),s.e("26"),s.e("9148"),s.e("5362"),s.e("3796"),s.e("8743"),s.e("5567"),s.e("2840"),s.e("3580"),s.e("9549"),s.e("2468"),s.e("8183"),s.e("6698"),s.e("8521"),s.e("8812"),s.e("935"),s.e("9800"),s.e("7796"),s.e("257"),s.e("4283")]).then(()=>()=>s(49613)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@carbon/react",version:"1.112.0",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("5366"),s.e("7453"),s.e("6259"),s.e("5825"),s.e("3953"),s.e("8472"),s.e("7782"),s.e("624"),s.e("2795"),s.e("3569"),s.e("3285"),s.e("3723"),s.e("5941"),s.e("1844"),s.e("15"),s.e("2394"),s.e("9612"),s.e("6567"),s.e("5932"),s.e("2924"),s.e("2007"),s.e("257"),s.e("6664")]).then(()=>()=>s(58169)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9202"),s.e("5731"),s.e("992"),s.e("1946"),s.e("3745"),s.e("500"),s.e("6104"),s.e("8196"),s.e("5598"),s.e("7478"),s.e("9425"),s.e("7115"),s.e("257")]).then(()=>()=>s(28280)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5263",factory:()=>Promise.all([s.e("689"),s.e("3989"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("7209"),s.e("3518"),s.e("646"),s.e("9087"),s.e("1831"),s.e("2607"),s.e("1278"),s.e("2537"),s.e("9060"),s.e("7022"),s.e("1148"),s.e("8028"),s.e("820"),s.e("356"),s.e("2916"),s.e("3335"),s.e("2648"),s.e("6634"),s.e("2202"),s.e("2556"),s.e("6337"),s.e("1620"),s.e("9632"),s.e("647"),s.e("4588"),s.e("6478"),s.e("393"),s.e("8762"),s.e("6273"),s.e("8240"),s.e("5676"),s.e("4178"),s.e("9520"),s.e("6427"),s.e("2534"),s.e("5967"),s.e("7360"),s.e("9213"),s.e("257"),s.e("7553"),s.e("5762"),s.e("1155"),s.e("8317"),s.e("5697")]).then(()=>()=>s(45263)),eager:0,singleton:1,requiredVersion:"9.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("257")]).then(()=>()=>s(42348)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("689"),s.e("2842"),s.e("5086"),s.e("257")]).then(()=>()=>s(12689)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(14041)),eager:0,singleton:1,requiredVersion:"^18.1.0",strictVersion:0},{name:"swr/_internal",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("257")]).then(()=>()=>s(42372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("7209"),s.e("257"),s.e("9061")]).then(()=>()=>s(29876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.4.2",factory:()=>Promise.all([s.e("3989"),s.e("7209"),s.e("257"),s.e("9771")]).then(()=>()=>s(52470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@kenyaemr/esm-facility-dashboard-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(f=s.g.location+"");var u,l,c,f,d=s.g.document;if(!f&&d&&(d.currentScript&&"SCRIPT"===d.currentScript.tagName.toUpperCase()&&(f=d.currentScript.src),!f)){var p=d.getElementsByTagName("script");if(p.length)for(var h=p.length-1;h>-1&&(!f||!/^http(s?):/.test(f));)f=p[h--].src}if(!f)throw Error("Automatic publicPath is not supported in this browser");s.p=f=f.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{2599:["10900"],5762:["75721"],257:["35400"],9195:["70438"],1889:["1487"],8317:["97744","36510","31888"],1155:["36142"],7553:["58088"]},moduleIdToConsumeDataMapping:{31888:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("5366"),s.e("7453"),s.e("6259"),s.e("5825"),s.e("3953"),s.e("8472"),s.e("7782"),s.e("624"),s.e("2795"),s.e("3569"),s.e("3285"),s.e("3723"),s.e("5941"),s.e("1844"),s.e("15"),s.e("2394"),s.e("9612"),s.e("6567"),s.e("5932"),s.e("2924"),s.e("2007")]).then(()=>()=>s(58169))},75721:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("2842"),s.e("5086")]).then(()=>()=>s(12689))},70438:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("2618"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9202"),s.e("5731"),s.e("992"),s.e("1946"),s.e("3745"),s.e("500"),s.e("6104"),s.e("8196"),s.e("5598"),s.e("7478"),s.e("9425"),s.e("7115")]).then(()=>()=>s(28280))},35400:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"^18.1.0",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(14041))},36142:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1442").then(()=>()=>s(29876))},58088:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(42348))},10900:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("6561"),s.e("8924"),s.e("2115"),s.e("6868"),s.e("4308"),s.e("1668"),s.e("682"),s.e("2971"),s.e("3284"),s.e("3813"),s.e("9774"),s.e("3504"),s.e("4817"),s.e("8607"),s.e("9547"),s.e("3302"),s.e("1433"),s.e("1958"),s.e("7686"),s.e("26"),s.e("9148"),s.e("5362"),s.e("3796"),s.e("8743"),s.e("5567"),s.e("2840"),s.e("3580"),s.e("9549"),s.e("2468"),s.e("8183"),s.e("6698"),s.e("8521"),s.e("8812"),s.e("935"),s.e("9800"),s.e("7796")]).then(()=>()=>s(49613))},97744:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("2152").then(()=>()=>s(52470))},36510:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>()=>s(42372)},1487:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"9.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("3989"),s.e("4818"),s.e("1072"),s.e("4156"),s.e("7209"),s.e("3518"),s.e("646"),s.e("9087"),s.e("1831"),s.e("2607"),s.e("1278"),s.e("2537"),s.e("9060"),s.e("7022"),s.e("1148"),s.e("8028"),s.e("820"),s.e("356"),s.e("2916"),s.e("3335"),s.e("2648"),s.e("6634"),s.e("2202"),s.e("2556"),s.e("6337"),s.e("1620"),s.e("9632"),s.e("647"),s.e("4588"),s.e("6478"),s.e("393"),s.e("8762"),s.e("6273"),s.e("8240"),s.e("5676"),s.e("4178"),s.e("9520"),s.e("6427"),s.e("2534"),s.e("5967"),s.e("7360"),s.e("9213"),s.e("257"),s.e("7553"),s.e("5762"),s.e("1155"),s.e("8317")]).then(()=>()=>s(45263))}},initialConsumes:["1487"]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},e={1889: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(/^(1155|257|5762|7553|8317|9195)$/.test(t))e[t]=0;else{var i=new Promise((r,i)=>n=e[t]=[r,i]);r.push(n[2]=i);var a=s.p+s.u(t),o=Error();s.l(a,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,n[1](o)}},"chunk-"+t,t)}},t=(t,r)=>{var n,i,[a,o,u]=r,l=0;if(a.some(t=>0!==e[t])){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);u&&u(s)}for(t&&t(r);l<a.length;l++)i=a[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},(r=globalThis.webpackChunk_kenyaemr_esm_facility_dashboard_app=globalThis.webpackChunk_kenyaemr_esm_facility_dashboard_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,i=!1,s.x=function(){if(i||(i=!0,s(3828)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},s.x()})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"surveillanceDashboardLink","name":"surveillance-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"aboveSiteDashboardLink","name":"above-site-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"airDashboardLink","name":"air-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"reportsboardLink","name":"reports-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"transmissionDashboardLink","name":"data-transmission-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"dataTransmissionDashboard","name":"data-transmission-dashboard"}],"modals":[{"component":"queuePayloadModal","name":"transmission-queue-payload-modal"}],"pages":[{"component":"root","route":"facility-dashboard"}],"version":"5.4.6-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"surveillanceDashboardLink","name":"surveillance-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"aboveSiteDashboardLink","name":"above-site-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"airDashboardLink","name":"air-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"reportsboardLink","name":"reports-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"transmissionDashboardLink","name":"data-transmission-dashboard-link","slot":"facility-dashboard-left-panel-slot"},{"component":"dataTransmissionDashboard","name":"data-transmission-dashboard"}],"modals":[{"component":"queuePayloadModal","name":"transmission-queue-payload-modal"}],"pages":[{"component":"root","route":"facility-dashboard"}],"version":"5.4.6-pre.1217"}
|