@kenyaemr/esm-version-app 5.2.1-pre.661 → 5.2.1-pre.671

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- Wrote version info c8aa8e6 to release-version.js
1
+ Wrote version info c1e8f28 to release-version.js
2
2
  assets by path *.js 763 KiB
3
3
  assets by chunk 705 KiB (id hint: vendors)
4
4
  asset 130.js 629 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
@@ -33,4 +33,4 @@ This can impact web performance.
33
33
  Assets:
34
34
  130.js (629 KiB)
35
35
 
36
- webpack 5.88.0 compiled with 1 warning in 111553 ms
36
+ webpack 5.88.0 compiled with 1 warning in 107787 ms
package/dist/122.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[]).push([[122],{435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var a=n(272),o=n.n(a),r=n(609),i=n.n(r)()(o());i.push([e.id,".-esm-version__about__main___YwLUO{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___x85fc{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___qDDlX{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___Sp8dP{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___Sp8dP h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___Sp8dP h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___Sp8dP img{margin-left:.25rem}.-esm-version__about__aboutBody___UxweS{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___UxweS p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourceRoot:""}]),i.locals={main:"-esm-version__about__main___YwLUO",aboutPage:"-esm-version__about__aboutPage___x85fc",container:"-esm-version__about__container___qDDlX",title:"-esm-version__about__title___Sp8dP",aboutBody:"-esm-version__about__aboutBody___UxweS"};const l=i},122:(e,t,n)=>{"use strict";n.r(t),n.d(t,{about:()=>O,importTranslations:()=>P,startupApp:()=>z});var a=n(870),o={},r=n(206),i=n.n(r),l=n(744),s=n(62),A=n.n(s),c=n(36),u=n.n(c),m=n(793),d=n.n(m),_=n(892),v=n.n(_),C=n(173),p=n.n(C),f=n(464),g=n.n(f),b=n(435),y={};y.styleTagTransform=g(),y.setAttributes=v(),y.insert=d().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p(),A()(b.Z,y);const h=b.Z&&b.Z.locals?b.Z.locals:void 0;var E=n(303),w=n(255),B=n(908);const D=function(){var e,t=(0,r.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}}))}),[window.installedModules]);return i().createElement(B.x4x,{ariaLabel:"Structured list"},i().createElement(B.SmK,null,i().createElement(B.s1N,{head:!0,tabIndex:0},i().createElement(B.agF,{head:!0},"Module name"),i().createElement(B.agF,{head:!0},"Version"))),i().createElement(B.FxI,null,t.map((function(t){return i().createElement(B.s1N,{tabIndex:0},i().createElement(B.agF,null,t.name),i().createElement(B.agF,null,null!==(e=t.version)&&void 0!==e?e:"No version found"," "))}))))};var x=n(288);const k=function(){var e,t,n,o,r,l=function(){var e,t,n,o=(0,E.Z)("ws/rest/v1/module?v=custom:(uuid,name,version)",a.openmrsFetch),r=o.data,i=o.isLoading;return{modules:null!==(n=null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results)&&void 0!==n?n:[],isLoading:i}}(),s=l.modules,A=(l.isLoading,s.find((function(e){return"kenyaemr"===e.uuid}))),c=function(e){var t,n,o,r=(0,E.Z)("/ws/rest/v1/systemsetting?q=".concat("facility.mflcode","&v=full"),a.openmrsFetch,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),i=r.data,l=r.isLoading;return{mflCodeResource:null===(o=i)||void 0===o||null===(n=o.data)||void 0===n||null===(t=n.results)||void 0===t?void 0:t.find((function(e){return"facility.mflcode"===e.property})),isLoading:l}}().mflCodeResource,u=c?"(".concat(null!==(n=null===(e=c)||void 0===e?void 0:e.value)&&void 0!==n?n:"",")"):"",m=(r=(0,a.useSession)().authenticated,null===(o=(0,w.ZP)(r?"/ws/rest/v1/kenyaemr/default-facility":null,a.openmrsFetch,{}).data)||void 0===o?void 0:o.data,h.title),d=h.container,_=h.aboutBody,v=h.aboutPage,C=x.VERSION;return i().createElement("div",{className:h.main},i().createElement("div",{className:v},i().createElement("div",{className:d},i().createElement("div",{className:m},i().createElement("div",null,i().createElement("h3",null,"Government of Kenya"),i().createElement("h4",null,"Ministry of Health")),i().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),i().createElement("div",{className:_},i().createElement("p",null,"KenyaEMR Version"),i().createElement("p",null,"v".concat(null===(t=A)||void 0===t?void 0:t.version)),i().createElement("p",null,"SPA Version"),i().createElement("p",null,"v".concat(C.version)),i().createElement("p",null,"Build date time"),i().createElement("p",null,(0,a.formatDatetime)(new Date(C.buildDate),{mode:"standard"})),i().createElement("p",null,"Facility code"),i().createElement("p",null,null!=u?u:"--")))),i().createElement(D,null))};var S=window.getOpenmrsSpaBase();var F="@kenyaemr/esm-version-app",N={featureName:"esm-version-app",moduleName:F},P=n(979),O=(0,a.getSyncLifecycle)((function(){return i().createElement(l.BrowserRouter,{basename:S},i().createElement(k,null))}),N);function z(){(0,a.defineConfigSchema)(F,o)}},288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>a});var a={dirty:!1,raw:"c8aa8e6",hash:"c8aa8e6",distance:null,tag:null,semver:null,suffix:"c8aa8e6",semverString:null,version:"5.2.0",buildDate:"2024-06-24T13:27:00.761Z"}},979:(e,t,n)=>{var a={"./en.json":[574,574]};function o(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(a),o.id=979,e.exports=o}}]);
1
+ (globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[]).push([[122],{435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var a=n(272),o=n.n(a),r=n(609),i=n.n(r)()(o());i.push([e.id,".-esm-version__about__main___YwLUO{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___x85fc{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___qDDlX{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___Sp8dP{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___Sp8dP h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___Sp8dP h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___Sp8dP img{margin-left:.25rem}.-esm-version__about__aboutBody___UxweS{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___UxweS p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourceRoot:""}]),i.locals={main:"-esm-version__about__main___YwLUO",aboutPage:"-esm-version__about__aboutPage___x85fc",container:"-esm-version__about__container___qDDlX",title:"-esm-version__about__title___Sp8dP",aboutBody:"-esm-version__about__aboutBody___UxweS"};const l=i},122:(e,t,n)=>{"use strict";n.r(t),n.d(t,{about:()=>O,importTranslations:()=>P,startupApp:()=>z});var a=n(870),o={},r=n(206),i=n.n(r),l=n(744),s=n(62),A=n.n(s),c=n(36),u=n.n(c),m=n(793),d=n.n(m),_=n(892),v=n.n(_),C=n(173),p=n.n(C),f=n(464),g=n.n(f),b=n(435),y={};y.styleTagTransform=g(),y.setAttributes=v(),y.insert=d().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=p(),A()(b.Z,y);const h=b.Z&&b.Z.locals?b.Z.locals:void 0;var E=n(303),w=n(255),B=n(908);const D=function(){var e,t=(0,r.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}}))}),[window.installedModules]);return i().createElement(B.x4x,{ariaLabel:"Structured list"},i().createElement(B.SmK,null,i().createElement(B.s1N,{head:!0,tabIndex:0},i().createElement(B.agF,{head:!0},"Module name"),i().createElement(B.agF,{head:!0},"Version"))),i().createElement(B.FxI,null,t.map((function(t){return i().createElement(B.s1N,{tabIndex:0},i().createElement(B.agF,null,t.name),i().createElement(B.agF,null,null!==(e=t.version)&&void 0!==e?e:"No version found"," "))}))))};var x=n(288);const k=function(){var e,t,n,o,r,l=function(){var e,t,n,o=(0,E.Z)("ws/rest/v1/module?v=custom:(uuid,name,version)",a.openmrsFetch),r=o.data,i=o.isLoading;return{modules:null!==(n=null===(t=r)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results)&&void 0!==n?n:[],isLoading:i}}(),s=l.modules,A=(l.isLoading,s.find((function(e){return"kenyaemr"===e.uuid}))),c=function(e){var t,n,o,r=(0,E.Z)("/ws/rest/v1/systemsetting?q=".concat("facility.mflcode","&v=full"),a.openmrsFetch,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),i=r.data,l=r.isLoading;return{mflCodeResource:null===(o=i)||void 0===o||null===(n=o.data)||void 0===n||null===(t=n.results)||void 0===t?void 0:t.find((function(e){return"facility.mflcode"===e.property})),isLoading:l}}().mflCodeResource,u=c?"(".concat(null!==(n=null===(e=c)||void 0===e?void 0:e.value)&&void 0!==n?n:"",")"):"",m=(r=(0,a.useSession)().authenticated,null===(o=(0,w.ZP)(r?"/ws/rest/v1/kenyaemr/default-facility":null,a.openmrsFetch,{}).data)||void 0===o?void 0:o.data,h.title),d=h.container,_=h.aboutBody,v=h.aboutPage,C=x.VERSION;return i().createElement("div",{className:h.main},i().createElement("div",{className:v},i().createElement("div",{className:d},i().createElement("div",{className:m},i().createElement("div",null,i().createElement("h3",null,"Government of Kenya"),i().createElement("h4",null,"Ministry of Health")),i().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),i().createElement("div",{className:_},i().createElement("p",null,"KenyaEMR Version"),i().createElement("p",null,"v".concat(null===(t=A)||void 0===t?void 0:t.version)),i().createElement("p",null,"SPA Version"),i().createElement("p",null,"v".concat(C.version)),i().createElement("p",null,"Build date time"),i().createElement("p",null,(0,a.formatDatetime)(new Date(C.buildDate),{mode:"standard"})),i().createElement("p",null,"Facility code"),i().createElement("p",null,null!=u?u:"--")))),i().createElement(D,null))};var S=window.getOpenmrsSpaBase();var F="@kenyaemr/esm-version-app",N={featureName:"esm-version-app",moduleName:F},P=n(979),O=(0,a.getSyncLifecycle)((function(){return i().createElement(l.BrowserRouter,{basename:S},i().createElement(k,null))}),N);function z(){(0,a.defineConfigSchema)(F,o)}},288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>a});var a={dirty:!1,raw:"c1e8f28",hash:"c1e8f28",distance:null,tag:null,semver:null,suffix:"c1e8f28",semverString:null,version:"5.2.0",buildDate:"2024-06-27T15:58:53.551Z"}},979:(e,t,n)=>{var a={"./en.json":[574,574]};function o(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(a),o.id=979,e.exports=o}}]);
package/dist/main.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see main.js.LICENSE.txt */
2
- (()=>{var e,t,n={908:(e,t,n)=>{"use strict";n.d(t,{FxI:()=>I,agF:()=>j,SmK:()=>D,s1N:()=>V,x4x:()=>B});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12Overflowmenu=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu}];function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o)),r)}var o}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}for(var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new c(undefined),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.enabled)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1});var m=n(206),v=n.n(m),h=n(980),A=n.n(h),g=n(779),b=n.n(g);const y=!("undefined"==typeof window||!window.document||!window.document.createElement),E=v().createContext(null),_=function(){let e=0;return function(){return++e}}(),C=y?m.useLayoutEffect:m.useEffect;let w=!1;const S={};function O(e,t){return function(t,n,r){if(void 0!==t[n]){S[r]&&S[r][n]||(S[r]={...S[r],[n]:!0});for(var o=arguments.length,a=new Array(o>3?o-3:0),i=3;i<o;i++)a[i-3]=arguments[i];return e(t,n,r,...a)}}}const T=v().createContext("cds");function N(){return v().useContext(T)}const R=(0,m.createContext)(null);function x(e){let{as:t,children:n,dir:r="auto",...o}=e;const a=(0,m.useContext)(R),i={},s=t??"span",l={...a};if(a){const{direction:e,getTextDirection:t}=a;if(t&&t.current){const r=function(e){if("string"==typeof e)return e;const t=v().Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t}(n),o=t.current(r);e!==o?(i.dir=o,l.direction=o):"auto"===e&&(i.dir=o)}else e!==r?(i.dir=r,l.direction=r):"auto"===e&&(i.dir=r)}else i.dir=r,l.direction=r;return v().createElement(R.Provider,{value:l},v().createElement(s,p({},o,i),n))}x.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node.isRequired,dir:A().oneOf(["ltr","rtl","auto"])};const L=v().createContext(null),k=v().createContext(null);function B(e){const{children:t,selection:n,className:r,"aria-label":o="Structured list section",ariaLabel:a,isCondensed:i,isFlush:s,...l}=e,c=N(),u=b()(`${c}--structured-list`,{[`${c}--structured-list--selection`]:n,[`${c}--structured-list--condensed`]:i,[`${c}--structured-list--flush`]:s&&!n},r),[d,f]=v().useState(null);return v().createElement(L.Provider,{value:d},v().createElement(k.Provider,{value:f},v().createElement("div",p({role:"table",className:u},l,{"aria-label":a||o}),t)))}function D(e){const{children:t,className:n,...r}=e,o=N(),a=b()(`${o}--structured-list-thead`,n);return v().createElement("div",p({role:"rowgroup",className:a},r),t)}function I(e){const{children:t,className:n,...r}=e,o=N(),a=b()(`${o}--structured-list-tbody`,n);return v().createElement("div",p({className:a,role:"rowgroup"},r),t)}B.propTypes={"aria-label":A().string,ariaLabel:O(A().string),children:A().node,className:A().string,isCondensed:A().bool,isFlush:A().bool,selection:A().bool},D.propTypes={children:A().node,className:A().string},I.propTypes={children:A().node,className:A().string,head:A().bool,onKeyDown:A().func};const P=v().createContext(null);function V(e){const{onKeyDown:t,children:n,className:r,head:o,onClick:a,...i}=e,[s,l]=(0,m.useState)(!1),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=v().useContext(E),[n,r]=(0,m.useState)((()=>w?`${t?`${t}-`:""}${e}-${_()}`:null));if(C((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${_()}`)}),[_]),(0,m.useEffect)((()=>{!1===w&&(w=!0)}),[]),"function"==typeof v().useId){const n=function(e,t){return`${e?`${e}-`:""}${t}-${v().useId()}`}(t,e);return n}return n}("grid-input"),u=v().useContext(L),d=v().useContext(k),f=N(),h={id:c},A=b()(`${f}--structured-list-row`,{[`${f}--structured-list-row--header-row`]:o,[`${f}--structured-list-row--focused-within`]:s,[`${f}--structured-list-row--selected`]:u===c},r);return o?v().createElement("div",p({role:"row"},i,{className:A,"aria-busy":"true"}),n):v().createElement("div",p({"aria-busy":"true"},i,{role:"row",className:A,onClick:e=>{d?.(c),a&&a(e)},onFocus:()=>{l(!0)},onBlur:()=>{l(!1)},onKeyDown:t}),v().createElement(P.Provider,{value:h},n))}function j(e){const{children:t,className:n,head:r,noWrap:o,...a}=e,i=N(),s=b()({[`${i}--structured-list-th`]:r,[`${i}--structured-list-td`]:!r,[`${i}--structured-list-content--nowrap`]:o},n);return r?v().createElement(x,p({className:s,role:"columnheader"},a),t):v().createElement(x,p({as:"div",className:s,role:"cell"},a),t)}V.propTypes={children:A().node,className:A().string,head:A().bool,label:O(A().bool),onClick:A().func,onKeyDown:A().func},A().string,O(A().bool),A().string,A().string,A().func,A().string,O(A().oneOfType([A().string,A().number]).isRequired),j.propTypes={children:A().node,className:A().string,head:A().bool,noWrap:A().bool}},779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),a=n(609),i=n.n(a)()(o());i.push([e.id,".-esm-version__about__main___YwLUO{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___x85fc{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___qDDlX{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___Sp8dP{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___Sp8dP h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___Sp8dP h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___Sp8dP img{margin-left:.25rem}.-esm-version__about__aboutBody___UxweS{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___UxweS p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourceRoot:""}]),i.locals={main:"-esm-version__about__main___YwLUO",aboutPage:"-esm-version__about__aboutPage___x85fc",container:"-esm-version__about__container___qDDlX",title:"-esm-version__about__title___Sp8dP",aboutBody:"-esm-version__about__aboutBody___UxweS"};const s=i},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},272:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([a]).join("\n")}return[t].join("\n")}},262:(e,t,n)=>{"use strict";var r=n(586);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},980:(e,t,n)=>{e.exports=n(262)()},586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},62:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=l}}},793:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},36:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},464:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},122:(e,t,n)=>{"use strict";var r=n(870),o=n(206),a=n.n(o),i=n(744),s=n(62),l=n.n(s),c=n(36),u=n.n(c),d=n(793),f=n.n(d),p=n(892),m=n.n(p),v=n(173),h=n.n(v),A=n(464),g=n.n(A),b=n(435),y={};y.styleTagTransform=g(),y.setAttributes=m(),y.insert=f().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=h(),l()(b.Z,y);const E=b.Z&&b.Z.locals?b.Z.locals:void 0;var _=n(303),C=n(255),w=n(908);const S=function(){var e,t=(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}}))}),[window.installedModules]);return a().createElement(w.x4x,{ariaLabel:"Structured list"},a().createElement(w.SmK,null,a().createElement(w.s1N,{head:!0,tabIndex:0},a().createElement(w.agF,{head:!0},"Module name"),a().createElement(w.agF,{head:!0},"Version"))),a().createElement(w.FxI,null,t.map((function(t){return a().createElement(w.s1N,{tabIndex:0},a().createElement(w.agF,null,t.name),a().createElement(w.agF,null,null!==(e=t.version)&&void 0!==e?e:"No version found"," "))}))))};var O=n(288);const T=function(){var e,t,n,o,i,s=function(){var e,t,n,o=(0,_.Z)("ws/rest/v1/module?v=custom:(uuid,name,version)",r.openmrsFetch),a=o.data,i=o.isLoading;return{modules:null!==(n=null===(t=a)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results)&&void 0!==n?n:[],isLoading:i}}(),l=s.modules,c=(s.isLoading,l.find((function(e){return"kenyaemr"===e.uuid}))),u=function(e){var t,n,o,a=(0,_.Z)("/ws/rest/v1/systemsetting?q=".concat("facility.mflcode","&v=full"),r.openmrsFetch,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),i=a.data,s=a.isLoading;return{mflCodeResource:null===(o=i)||void 0===o||null===(n=o.data)||void 0===n||null===(t=n.results)||void 0===t?void 0:t.find((function(e){return"facility.mflcode"===e.property})),isLoading:s}}().mflCodeResource,d=u?"(".concat(null!==(n=null===(e=u)||void 0===e?void 0:e.value)&&void 0!==n?n:"",")"):"",f=(i=(0,r.useSession)().authenticated,null===(o=(0,C.ZP)(i?"/ws/rest/v1/kenyaemr/default-facility":null,r.openmrsFetch,{}).data)||void 0===o?void 0:o.data,E.title),p=E.container,m=E.aboutBody,v=E.aboutPage,h=O.VERSION;return a().createElement("div",{className:E.main},a().createElement("div",{className:v},a().createElement("div",{className:p},a().createElement("div",{className:f},a().createElement("div",null,a().createElement("h3",null,"Government of Kenya"),a().createElement("h4",null,"Ministry of Health")),a().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),a().createElement("div",{className:m},a().createElement("p",null,"KenyaEMR Version"),a().createElement("p",null,"v".concat(null===(t=c)||void 0===t?void 0:t.version)),a().createElement("p",null,"SPA Version"),a().createElement("p",null,"v".concat(h.version)),a().createElement("p",null,"Build date time"),a().createElement("p",null,(0,r.formatDatetime)(new Date(h.buildDate),{mode:"standard"})),a().createElement("p",null,"Facility code"),a().createElement("p",null,null!=d?d:"--")))),a().createElement(S,null))};var N=window.getOpenmrsSpaBase();var R={featureName:"esm-version-app",moduleName:"@kenyaemr/esm-version-app"};n(979),(0,r.getSyncLifecycle)((function(){return a().createElement(i.BrowserRouter,{basename:N},a().createElement(T,null))}),R)},288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>r});var r={dirty:!1,raw:"c8aa8e6",hash:"c8aa8e6",distance:null,tag:null,semver:null,suffix:"c8aa8e6",semverString:null,version:"5.2.0",buildDate:"2024-06-24T13:27:00.761Z"}},452:(e,t,n)=>{"use strict";var r=n(206),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},100:(e,t,n)=>{"use strict";e.exports=n(452)},979:(e,t,n)=>{var r={"./en.json":[574,574]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=979,e.exports=o},729:(e,t,n)=>{"use strict";n.d(t,{$l:()=>i,BN:()=>V,DY:()=>m,J$:()=>G,JN:()=>y,LI:()=>R,PM:()=>c,W6:()=>T,i_:()=>a,ko:()=>H,kw:()=>N,mf:()=>l,o8:()=>s,qC:()=>k,s6:()=>K,sj:()=>P,u3:()=>D,u_:()=>U,w6:()=>O,xD:()=>X});var r=n(206);const o=()=>{},a=o(),i=Object,s=e=>e===a,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>l(e.then),d=new WeakMap;let f=0;const p=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=d.get(e),o)return o;if(o=++f+"~",d.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=p(e[a])+",";d.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!s(a=t.pop());)s(e[a])||(o+=a+":"+p(e[a])+",");d.set(e,o)}}return o},m=new WeakMap,v={},h={},A="undefined",g=typeof window!=A,b=typeof document!=A,y=(e,t)=>{const n=m.get(e);return[()=>!s(t)&&e.get(t)||v,r=>{if(!s(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,c(o,r),o||v)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||v]};let E=!0;const[_,C]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],w={isOnline:()=>E,isVisible:()=>{const e=b&&document.visibilityState;return s(e)||"hidden"!==e}},S={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),_("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return _("online",t),_("offline",n),()=>{C("online",t),C("offline",n)}}},O=!r.useId,T=!g||"Deno"in window,N=e=>g&&typeof window.requestAnimationFrame!=A?window.requestAnimationFrame(e):setTimeout(e,1),R=T?r.useEffect:r.useLayoutEffect,x="undefined"!=typeof navigator&&navigator.connection,L=!T&&x&&(["slow-2g","2g"].includes(x.effectiveType)||x.saveData),k=e=>{if(l(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let B=0;const D=()=>++B,I=2;var P={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:I,RECONNECT_EVENT:1};async function V(...e){const[t,n,r,o]=e,i=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=i.populateCache;const f=i.rollbackOnError;let p=i.optimisticData;const v=!1!==i.revalidate,h=i.throwOnError;if(l(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(A))}return A(n);async function A(n){const[o]=k(n);if(!o)return;const[i,c]=y(t,o),[A,g,b,E]=m.get(t),_=()=>{const e=A[o];return v&&(delete b[o],delete E[o],e&&e[0])?e[0](I).then((()=>i().data)):i().data};if(e.length<3)return _();let C,w=r;const S=D();g[o]=[S,0];const O=!s(p),T=i(),N=T.data,R=T._c,x=s(R)?N:R;if(O&&(p=l(p)?p(x,N):p,c({data:p,_c:x})),l(w))try{w=w(x)}catch(e){C=e}if(w&&u(w)){if(w=await w.catch((e=>{C=e})),S!==g[o][0]){if(C)throw C;return w}C&&O&&(e=>"function"==typeof f?f(e):!1!==f)(C)&&(d=!0,c({data:x,_c:a}))}if(d&&!C)if(l(d)){const e=d(w,x);c({data:e,error:a,_c:a})}else c({data:w,error:a,_c:a});if(g[o][1]=D(),Promise.resolve(_()).then((()=>{c({_c:a})})),!C)return w;if(h)throw C}}const j=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!m.has(e)){const n=c(S,t),r={},i=V.bind(a,e);let s=o;const l={},u=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=l[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!m.has(e)&&(m.set(e,[r,{},{},{},i,d,u]),!T)){const t=n.initFocus(setTimeout.bind(a,j.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,j.bind(a,r,1)));s=()=>{t&&t(),o&&o(),m.delete(e)}}};return f(),[e,i,f,s]}return[e,m.get(e)[4]]},[M,$]=F(new Map),U=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!s(a)&&i>a||setTimeout(r,l,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>p(e)==p(t),isPaused:()=>!1,cache:M,mutate:$,fallback:{}},w),W=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=c(o,i))}return n},q=(0,r.createContext)({}),G=e=>{const{value:t}=e,n=(0,r.useContext)(q),o=l(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?i:W(n,i)),[o,n,i]),u=i&&i.provider,d=(0,r.useRef)(a);u&&!d.current&&(d.current=F(u(s.cache||M),i));const f=d.current;return f&&(s.cache=f[0],s.mutate=f[1]),R((()=>{if(f)return f[2]&&f[2](),f[3]}),[]),(0,r.createElement)(q.Provider,c(e,{value:s}))},Z=g&&window.__SWR_DEVTOOLS_USE__,z=Z?window.__SWR_DEVTOOLS_USE__:[],Y=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=k(t),[,,,o]=m.get(M);if(r.startsWith("$inf$"))return n(...e);const a=o[r];return s(a)?n(...e):(delete o[r],a)}),r))),K=e=>function(...t){const n=c(U,(0,r.useContext)(q)),[o,a,i]=Y(t),s=W(n,i);let l=e;const{use:u}=s,d=(u||[]).concat(J);for(let e=d.length;e--;)l=d[e](l);return l(o,a||s.fetcher||null,s)},H=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},X=(e,t)=>(...n)=>{const[r,o,a]=Y(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};Z&&(window.__SWR_DEVTOOLS_REACT__=r)},255:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(206),o=n(100),a=n(729);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},l=(a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_}),(0,a.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:v,refreshWhenOffline:h,keepPreviousData:A}=n,[g,b,y,E]=a.DY.get(l),[_,C]=(0,a.qC)(e),w=(0,r.useRef)(!1),S=(0,r.useRef)(!1),O=(0,r.useRef)(_),T=(0,r.useRef)(t),N=(0,r.useRef)(n),R=()=>N.current,x=()=>R().isVisible()&&R().isOnline(),[L,k,B,D]=(0,a.JN)(l,_),I=(0,r.useRef)({}).current,P=(0,a.o8)(d)?n.fallback[_]:d,V=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.o8)(e[r]))return!1;if(!c(Z,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)((()=>{const e=!!_&&!!t&&((0,a.o8)(f)?!R().isPaused()&&!u&&(!!(0,a.o8)(p)||p):f),n=t=>{const n=(0,a.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=L(),o=D(),i=n(r),s=r===o?i:n(o);let l=i;return[()=>{const e=n(L());return V(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,_]),F=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>B(_,((t,n)=>{V(n,t)||e()}))),[l,_]),j[0],j[1]),M=!w.current,$=g[_]&&g[_].length>0,U=F.data,W=(0,a.o8)(U)?P:U,q=F.error,G=(0,r.useRef)(W),Z=A?(0,a.o8)(U)?G.current:U:W,z=!($&&!(0,a.o8)(q))&&(M&&!(0,a.o8)(f)?f:!R().isPaused()&&(u?!(0,a.o8)(W)&&p:(0,a.o8)(W)||p)),Y=!!(_&&t&&M&&z),J=(0,a.o8)(F.isValidating)?Y:F.isValidating,K=(0,a.o8)(F.isLoading)?Y:F.isLoading,H=(0,r.useCallback)((async e=>{const t=T.current;if(!_||!t||S.current||R().isPaused())return!1;let r,o,i=!0;const s=e||{},l=!y[_]||!s.dedupe,u=()=>a.w6?!S.current&&_===O.current&&w.current:_===O.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{const e=y[_];e&&e[1]===o&&delete y[_]},m={isValidating:!0};(0,a.o8)(L().data)&&(m.isLoading=!0);try{if(l&&(k(m),n.loadingTimeout&&(0,a.o8)(L().data)&&setTimeout((()=>{i&&u()&&R().onLoadingSlow(_,n)}),n.loadingTimeout),y[_]=[t(C),(0,a.u3)()]),[r,o]=y[_],r=await r,l&&setTimeout(p,n.dedupingInterval),!y[_]||y[_][1]!==o)return l&&u()&&R().onDiscarded(_),!1;d.error=a.i_;const e=b[_];if(!(0,a.o8)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),l&&u()&&R().onDiscarded(_),!1;const s=L().data;d.data=c(s,r)?s:r,l&&u()&&R().onSuccess(r,_,n)}catch(e){p();const t=R(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&u()&&(t.onError(e,_,t),(!0===n||(0,a.mf)(n)&&n(e))&&x()&&t.onErrorRetry(e,_,t,(e=>{const t=g[_];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return i=!1,f(),!0}),[_,l]),X=(0,r.useCallback)(((...e)=>(0,a.BN)(l,O.current,...e)),[]);if((0,a.LI)((()=>{T.current=t,N.current=n,(0,a.o8)(U)||(G.current=U)})),(0,a.LI)((()=>{if(!_)return;const e=H.bind(a.i_,s);let t=0;const n=(0,a.ko)(_,g,((n,r={})=>{if(n==a.sj.FOCUS_EVENT){const n=Date.now();R().revalidateOnFocus&&n>t&&x()&&(t=n+R().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)R().revalidateOnReconnect&&x()&&e();else{if(n==a.sj.MUTATE_EVENT)return H();if(n==a.sj.ERROR_REVALIDATE_EVENT)return H(r)}}));return S.current=!1,O.current=_,w.current=!0,k({_k:C}),z&&((0,a.o8)(W)||a.W6?e():(0,a.kw)(e)),()=>{S.current=!0,n()}}),[_]),(0,a.LI)((()=>{let e;function t(){const t=(0,a.mf)(m)?m(L().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L().error||!v&&!R().isVisible()||!h&&!R().isOnline()?t():H(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,v,h,_]),(0,r.useDebugValue)(Z),u&&(0,a.o8)(W)&&_){if(!a.w6&&a.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,N.current=n,S.current=!1;const e=E[_];if(!(0,a.o8)(e)){const t=X(e);i(t)}if(!(0,a.o8)(q))throw q;{const e=H(s);(0,a.o8)(Z)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:X,get data(){return I.data=!0,Z},get error(){return I.error=!0,q},get isValidating(){return I.isValidating=!0,J},get isLoading(){return I.isLoading=!0,K}}})))},303:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(255);const o=(0,n(729).xD)(r.ZP,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))))}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=n,o.c=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@kenyaemr/esm-version-app:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[r];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},t={};o.I=(n,r)=>{r||(r=[]);var a=t[n];if(a||(a=t[n]={}),!(r.indexOf(a)>=0)){if(r.push(a),e[n])return e[n];o.o(o.S,n)||(o.S[n]={});var i=o.S[n],s="@kenyaemr/esm-version-app",l=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},c=[];return"default"===n&&(l("@openmrs/esm-framework","5.6.1-pre.1895",(()=>Promise.all([o.e(130),o.e(206)]).then((()=>()=>o(130))))),l("react-router-dom","6.4.3",(()=>Promise.all([o.e(591),o.e(206)]).then((()=>()=>o(591))))),l("react","18.2.0",(()=>o.e(784).then((()=>()=>o(784)))))),e[n]=c.length?Promise.all(c).then((()=>e[n]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,r+="u"==(typeof(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():t(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],a=o<0;a&&(o=-o-1);for(var i=0,s=1,l=!0;;s++,i++){var c,u,d=s<t.length?(typeof t[s])[0]:"";if(i>=r.length||"o"==(u=(typeof(c=r[i]))[0]))return!l||("u"==d?s>o&&!a:""==d!=a);if("u"==u){if(!l||"u"!=d)return!1}else if(l)if(d==u)if(s<=o){if(c!=t[s])return!1}else{if(a?c>t[s]:c<t[s])return!1;c!=t[s]&&(l=!1)}else if("s"!=d&&"n"!=d){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||u<d!=a)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,s--)}}var f=[],p=f.pop.bind(f);for(i=1;i<t.length;i++){var m=t[i];f.push(1==m?p()|p():2==m?p()&p():m?n(m,r):!p())}return!!p()},r=(t,n)=>{var r=t[n];return Object.keys(r).reduce(((t,n)=>!t||!r[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],a=(typeof o)[0];if(r>=n.length)return"u"==a;var i=n[r],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;r++}})(t,n)?n:t),0)},a=(e,o,a,l)=>{var c=r(e,a);return n(l,c)||i(((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(e,a,c,l)),s(e[a][c])},i=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},s=e=>(e.loaded=1,e.get()),l=(e=>function(t,n,r,a){var i=o.I(t);return i&&i.then?i.then(e.bind(e,t,o.S[t],n,r,a)):e(t,o.S[t],n,r,a)})(((e,t,n,r,i)=>t&&o.o(t,n)?a(t,0,n,r):i())),c={},u={206:()=>l("default","react",[1,18,1,0],(()=>o.e(784).then((()=>()=>o(784))))),870:()=>l("default","@openmrs/esm-framework",[1,5],(()=>o.e(130).then((()=>()=>o(130))))),744:()=>l("default","react-router-dom",[1,6],(()=>o.e(591).then((()=>()=>o(591)))))};[870,206,744].forEach((e=>{o.m[e]=t=>{c[e]=0,delete o.c[e];var n=u[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var d={206:[206]};o.f.consumes=(e,t)=>{o.o(d,e)&&d[e].forEach((e=>{if(o.o(c,e))return t.push(c[e]);var n=t=>{c[e]=0,o.m[e]=n=>{delete o.c[e],n.exports=t()}},r=t=>{delete c[e],o.m[e]=n=>{throw delete o.c[e],t}};try{var a=u[e]();a.then?t.push(c[e]=a.then(n).catch(r)):n(a)}catch(e){r(e)}}))}})(),(()=>{var e={179:0,206:0,122:0,931:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(206!=t){var a=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,n)=>{var r,a,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);c<i.length;c++)a=i[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=void 0,o(122)})();
2
+ (()=>{var e,t,n={908:(e,t,n)=>{"use strict";n.d(t,{FxI:()=>I,agF:()=>j,SmK:()=>D,s1N:()=>V,x4x:()=>B});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1:r.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?r.enableExperimentalTileContrast=!0:r.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?r.enableV12TileDefaultIcons=!0:r.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?r.enableV12Overflowmenu=!0:r.enableV12Overflowmenu=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!0,r.enableExperimentalTileContrast=!1,r.enableV12TileDefaultIcons=!1,r.enableV12Overflowmenu=!1}var o=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:r.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:r.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:r.enableV12Overflowmenu}];function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o)),r)}var o}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}for(var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),o=r[0],a=r[1];this.flags.has(o)||this.flags.set(o,a)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new c(undefined),d=0;d<o.length;d++){var f=o[d];u.add(f.name,f.enabled)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1});var m=n(206),v=n.n(m),h=n(980),A=n.n(h),g=n(779),b=n.n(g);const y=!("undefined"==typeof window||!window.document||!window.document.createElement),E=v().createContext(null),_=function(){let e=0;return function(){return++e}}(),C=y?m.useLayoutEffect:m.useEffect;let w=!1;const S={};function O(e,t){return function(t,n,r){if(void 0!==t[n]){S[r]&&S[r][n]||(S[r]={...S[r],[n]:!0});for(var o=arguments.length,a=new Array(o>3?o-3:0),i=3;i<o;i++)a[i-3]=arguments[i];return e(t,n,r,...a)}}}const T=v().createContext("cds");function N(){return v().useContext(T)}const R=(0,m.createContext)(null);function x(e){let{as:t,children:n,dir:r="auto",...o}=e;const a=(0,m.useContext)(R),i={},s=t??"span",l={...a};if(a){const{direction:e,getTextDirection:t}=a;if(t&&t.current){const r=function(e){if("string"==typeof e)return e;const t=v().Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===t?.length?t[0]:t}(n),o=t.current(r);e!==o?(i.dir=o,l.direction=o):"auto"===e&&(i.dir=o)}else e!==r?(i.dir=r,l.direction=r):"auto"===e&&(i.dir=r)}else i.dir=r,l.direction=r;return v().createElement(R.Provider,{value:l},v().createElement(s,p({},o,i),n))}x.propTypes={as:A().oneOfType([A().func,A().string,A().elementType]),children:A().node.isRequired,dir:A().oneOf(["ltr","rtl","auto"])};const L=v().createContext(null),k=v().createContext(null);function B(e){const{children:t,selection:n,className:r,"aria-label":o="Structured list section",ariaLabel:a,isCondensed:i,isFlush:s,...l}=e,c=N(),u=b()(`${c}--structured-list`,{[`${c}--structured-list--selection`]:n,[`${c}--structured-list--condensed`]:i,[`${c}--structured-list--flush`]:s&&!n},r),[d,f]=v().useState(null);return v().createElement(L.Provider,{value:d},v().createElement(k.Provider,{value:f},v().createElement("div",p({role:"table",className:u},l,{"aria-label":a||o}),t)))}function D(e){const{children:t,className:n,...r}=e,o=N(),a=b()(`${o}--structured-list-thead`,n);return v().createElement("div",p({role:"rowgroup",className:a},r),t)}function I(e){const{children:t,className:n,...r}=e,o=N(),a=b()(`${o}--structured-list-tbody`,n);return v().createElement("div",p({className:a,role:"rowgroup"},r),t)}B.propTypes={"aria-label":A().string,ariaLabel:O(A().string),children:A().node,className:A().string,isCondensed:A().bool,isFlush:A().bool,selection:A().bool},D.propTypes={children:A().node,className:A().string},I.propTypes={children:A().node,className:A().string,head:A().bool,onKeyDown:A().func};const P=v().createContext(null);function V(e){const{onKeyDown:t,children:n,className:r,head:o,onClick:a,...i}=e,[s,l]=(0,m.useState)(!1),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const t=v().useContext(E),[n,r]=(0,m.useState)((()=>w?`${t?`${t}-`:""}${e}-${_()}`:null));if(C((()=>{null===n&&r(`${t?`${t}-`:""}${e}-${_()}`)}),[_]),(0,m.useEffect)((()=>{!1===w&&(w=!0)}),[]),"function"==typeof v().useId){const n=function(e,t){return`${e?`${e}-`:""}${t}-${v().useId()}`}(t,e);return n}return n}("grid-input"),u=v().useContext(L),d=v().useContext(k),f=N(),h={id:c},A=b()(`${f}--structured-list-row`,{[`${f}--structured-list-row--header-row`]:o,[`${f}--structured-list-row--focused-within`]:s,[`${f}--structured-list-row--selected`]:u===c},r);return o?v().createElement("div",p({role:"row"},i,{className:A,"aria-busy":"true"}),n):v().createElement("div",p({"aria-busy":"true"},i,{role:"row",className:A,onClick:e=>{d?.(c),a&&a(e)},onFocus:()=>{l(!0)},onBlur:()=>{l(!1)},onKeyDown:t}),v().createElement(P.Provider,{value:h},n))}function j(e){const{children:t,className:n,head:r,noWrap:o,...a}=e,i=N(),s=b()({[`${i}--structured-list-th`]:r,[`${i}--structured-list-td`]:!r,[`${i}--structured-list-content--nowrap`]:o},n);return r?v().createElement(x,p({className:s,role:"columnheader"},a),t):v().createElement(x,p({as:"div",className:s,role:"cell"},a),t)}V.propTypes={children:A().node,className:A().string,head:A().bool,label:O(A().bool),onClick:A().func,onKeyDown:A().func},A().string,O(A().bool),A().string,A().string,A().func,A().string,O(A().oneOfType([A().string,A().number]).isRequired),j.propTypes={children:A().node,className:A().string,head:A().bool,noWrap:A().bool}},779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},435:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(272),o=n.n(r),a=n(609),i=n.n(a)()(o());i.push([e.id,".-esm-version__about__main___YwLUO{display:flex;justify-items:center;flex-direction:column}.-esm-version__about__aboutPage___x85fc{display:flex;justify-content:center;align-items:center}.-esm-version__about__container___qDDlX{display:flex;justify-content:center;margin:1rem;flex-direction:column;align-items:center;border:.5px solid #c6c6c6;width:23rem}.-esm-version__about__title___Sp8dP{display:flex;align-items:center;padding-bottom:.25rem;margin-bottom:.25rem;border-bottom:.5px solid #c6c6c6;width:100%;justify-content:center}.-esm-version__about__title___Sp8dP h3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-version__about__title___Sp8dP h4{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-version__about__title___Sp8dP img{margin-left:.25rem}.-esm-version__about__aboutBody___UxweS{display:grid;grid-template-columns:1fr 1fr;column-gap:.25rem}.-esm-version__about__aboutBody___UxweS p{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);margin-bottom:.25rem}","",{version:3,sources:["webpack://./src/about/about.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAIA,mCACE,YAAA,CACA,oBAAA,CACA,qBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CACA,kBAAA,CACA,yBAAA,CACA,WAAA,CAGF,oCACE,YAAA,CACA,kBAAA,CACA,qBAAA,CACA,oBAAA,CACA,gCAAA,CACA,UAAA,CACA,sBAAA,CAEA,uCC+zBE,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD3zBF,uCC2zBE,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDvzBF,wCACE,kBAAA,CAIJ,wCACE,YAAA,CACA,6BAAA,CACA,iBAAA,CAEA,0CC6yBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3yBA,oBAAA",sourceRoot:""}]),i.locals={main:"-esm-version__about__main___YwLUO",aboutPage:"-esm-version__about__aboutPage___x85fc",container:"-esm-version__about__container___qDDlX",title:"-esm-version__about__title___Sp8dP",aboutBody:"-esm-version__about__aboutBody___UxweS"};const s=i},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&i[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},272:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(o," */"),i=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(i).concat([a]).join("\n")}return[t].join("\n")}},262:(e,t,n)=>{"use strict";var r=n(586);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},980:(e,t,n)=>{e.exports=n(262)()},586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},62:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=a[c]||0,d="".concat(c," ").concat(u);a[c]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var m=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var l=r(e,o),c=0;c<a.length;c++){var u=n(a[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=l}}},793:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},36:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},464:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},122:(e,t,n)=>{"use strict";var r=n(870),o=n(206),a=n.n(o),i=n(744),s=n(62),l=n.n(s),c=n(36),u=n.n(c),d=n(793),f=n.n(d),p=n(892),m=n.n(p),v=n(173),h=n.n(v),A=n(464),g=n.n(A),b=n(435),y={};y.styleTagTransform=g(),y.setAttributes=m(),y.insert=f().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=h(),l()(b.Z,y);const E=b.Z&&b.Z.locals?b.Z.locals:void 0;var _=n(303),C=n(255),w=n(908);const S=function(){var e,t=(0,o.useMemo)((function(){var e;return(null!==(e=window.installedModules)&&void 0!==e?e:[]).filter((function(e){return Boolean(e)&&Boolean(e[1])})).map((function(e){return{version:e[1].version,name:e[0].substring(e[0].indexOf("/")+1)}}))}),[window.installedModules]);return a().createElement(w.x4x,{ariaLabel:"Structured list"},a().createElement(w.SmK,null,a().createElement(w.s1N,{head:!0,tabIndex:0},a().createElement(w.agF,{head:!0},"Module name"),a().createElement(w.agF,{head:!0},"Version"))),a().createElement(w.FxI,null,t.map((function(t){return a().createElement(w.s1N,{tabIndex:0},a().createElement(w.agF,null,t.name),a().createElement(w.agF,null,null!==(e=t.version)&&void 0!==e?e:"No version found"," "))}))))};var O=n(288);const T=function(){var e,t,n,o,i,s=function(){var e,t,n,o=(0,_.Z)("ws/rest/v1/module?v=custom:(uuid,name,version)",r.openmrsFetch),a=o.data,i=o.isLoading;return{modules:null!==(n=null===(t=a)||void 0===t||null===(e=t.data)||void 0===e?void 0:e.results)&&void 0!==n?n:[],isLoading:i}}(),l=s.modules,c=(s.isLoading,l.find((function(e){return"kenyaemr"===e.uuid}))),u=function(e){var t,n,o,a=(0,_.Z)("/ws/rest/v1/systemsetting?q=".concat("facility.mflcode","&v=full"),r.openmrsFetch,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),i=a.data,s=a.isLoading;return{mflCodeResource:null===(o=i)||void 0===o||null===(n=o.data)||void 0===n||null===(t=n.results)||void 0===t?void 0:t.find((function(e){return"facility.mflcode"===e.property})),isLoading:s}}().mflCodeResource,d=u?"(".concat(null!==(n=null===(e=u)||void 0===e?void 0:e.value)&&void 0!==n?n:"",")"):"",f=(i=(0,r.useSession)().authenticated,null===(o=(0,C.ZP)(i?"/ws/rest/v1/kenyaemr/default-facility":null,r.openmrsFetch,{}).data)||void 0===o?void 0:o.data,E.title),p=E.container,m=E.aboutBody,v=E.aboutPage,h=O.VERSION;return a().createElement("div",{className:E.main},a().createElement("div",{className:v},a().createElement("div",{className:p},a().createElement("div",{className:f},a().createElement("div",null,a().createElement("h3",null,"Government of Kenya"),a().createElement("h4",null,"Ministry of Health")),a().createElement("img",{src:"/openmrs/ms/uiframework/resource/kenyaemr/images/logos/moh.png",alt:"court_of_arms",width:"50",height:"50"})),a().createElement("div",{className:m},a().createElement("p",null,"KenyaEMR Version"),a().createElement("p",null,"v".concat(null===(t=c)||void 0===t?void 0:t.version)),a().createElement("p",null,"SPA Version"),a().createElement("p",null,"v".concat(h.version)),a().createElement("p",null,"Build date time"),a().createElement("p",null,(0,r.formatDatetime)(new Date(h.buildDate),{mode:"standard"})),a().createElement("p",null,"Facility code"),a().createElement("p",null,null!=d?d:"--")))),a().createElement(S,null))};var N=window.getOpenmrsSpaBase();var R={featureName:"esm-version-app",moduleName:"@kenyaemr/esm-version-app"};n(979),(0,r.getSyncLifecycle)((function(){return a().createElement(i.BrowserRouter,{basename:N},a().createElement(T,null))}),R)},288:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>r});var r={dirty:!1,raw:"c1e8f28",hash:"c1e8f28",distance:null,tag:null,semver:null,suffix:"c1e8f28",semverString:null,version:"5.2.0",buildDate:"2024-06-27T15:58:53.551Z"}},452:(e,t,n)=>{"use strict";var r=n(206),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),i((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},100:(e,t,n)=>{"use strict";e.exports=n(452)},979:(e,t,n)=>{var r={"./en.json":[574,574]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=979,e.exports=o},729:(e,t,n)=>{"use strict";n.d(t,{$l:()=>i,BN:()=>V,DY:()=>m,J$:()=>G,JN:()=>y,LI:()=>R,PM:()=>c,W6:()=>T,i_:()=>a,ko:()=>H,kw:()=>N,mf:()=>l,o8:()=>s,qC:()=>k,s6:()=>K,sj:()=>P,u3:()=>D,u_:()=>U,w6:()=>O,xD:()=>X});var r=n(206);const o=()=>{},a=o(),i=Object,s=e=>e===a,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),u=e=>l(e.then),d=new WeakMap;let f=0;const p=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=d.get(e),o)return o;if(o=++f+"~",d.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=p(e[a])+",";d.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!s(a=t.pop());)s(e[a])||(o+=a+":"+p(e[a])+",");d.set(e,o)}}return o},m=new WeakMap,v={},h={},A="undefined",g=typeof window!=A,b=typeof document!=A,y=(e,t)=>{const n=m.get(e);return[()=>!s(t)&&e.get(t)||v,r=>{if(!s(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,c(o,r),o||v)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||v]};let E=!0;const[_,C]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],w={isOnline:()=>E,isVisible:()=>{const e=b&&document.visibilityState;return s(e)||"hidden"!==e}},S={initFocus:e=>(b&&document.addEventListener("visibilitychange",e),_("focus",e),()=>{b&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return _("online",t),_("offline",n),()=>{C("online",t),C("offline",n)}}},O=!r.useId,T=!g||"Deno"in window,N=e=>g&&typeof window.requestAnimationFrame!=A?window.requestAnimationFrame(e):setTimeout(e,1),R=T?r.useEffect:r.useLayoutEffect,x="undefined"!=typeof navigator&&navigator.connection,L=!T&&x&&(["slow-2g","2g"].includes(x.effectiveType)||x.saveData),k=e=>{if(l(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let B=0;const D=()=>++B,I=2;var P={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:I,RECONNECT_EVENT:1};async function V(...e){const[t,n,r,o]=e,i=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let d=i.populateCache;const f=i.rollbackOnError;let p=i.optimisticData;const v=!1!==i.revalidate,h=i.throwOnError;if(l(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(A))}return A(n);async function A(n){const[o]=k(n);if(!o)return;const[i,c]=y(t,o),[A,g,b,E]=m.get(t),_=()=>{const e=A[o];return v&&(delete b[o],delete E[o],e&&e[0])?e[0](I).then((()=>i().data)):i().data};if(e.length<3)return _();let C,w=r;const S=D();g[o]=[S,0];const O=!s(p),T=i(),N=T.data,R=T._c,x=s(R)?N:R;if(O&&(p=l(p)?p(x,N):p,c({data:p,_c:x})),l(w))try{w=w(x)}catch(e){C=e}if(w&&u(w)){if(w=await w.catch((e=>{C=e})),S!==g[o][0]){if(C)throw C;return w}C&&O&&(e=>"function"==typeof f?f(e):!1!==f)(C)&&(d=!0,c({data:x,_c:a}))}if(d&&!C)if(l(d)){const e=d(w,x);c({data:e,error:a,_c:a})}else c({data:w,error:a,_c:a});if(g[o][1]=D(),Promise.resolve(_()).then((()=>{c({_c:a})})),!C)return w;if(h)throw C}}const j=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!m.has(e)){const n=c(S,t),r={},i=V.bind(a,e);let s=o;const l={},u=(e,t)=>{const n=l[e]||[];return l[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=l[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!m.has(e)&&(m.set(e,[r,{},{},{},i,d,u]),!T)){const t=n.initFocus(setTimeout.bind(a,j.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,j.bind(a,r,1)));s=()=>{t&&t(),o&&o(),m.delete(e)}}};return f(),[e,i,f,s]}return[e,m.get(e)[4]]},[M,$]=F(new Map),U=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!s(a)&&i>a||setTimeout(r,l,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:(e,t)=>p(e)==p(t),isPaused:()=>!1,cache:M,mutate:$,fallback:{}},w),W=(e,t)=>{const n=c(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=c(o,i))}return n},q=(0,r.createContext)({}),G=e=>{const{value:t}=e,n=(0,r.useContext)(q),o=l(t),i=(0,r.useMemo)((()=>o?t(n):t),[o,n,t]),s=(0,r.useMemo)((()=>o?i:W(n,i)),[o,n,i]),u=i&&i.provider,d=(0,r.useRef)(a);u&&!d.current&&(d.current=F(u(s.cache||M),i));const f=d.current;return f&&(s.cache=f[0],s.mutate=f[1]),R((()=>{if(f)return f[2]&&f[2](),f[3]}),[]),(0,r.createElement)(q.Provider,c(e,{value:s}))},Z=g&&window.__SWR_DEVTOOLS_USE__,z=Z?window.__SWR_DEVTOOLS_USE__:[],Y=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=k(t),[,,,o]=m.get(M);if(r.startsWith("$inf$"))return n(...e);const a=o[r];return s(a)?n(...e):(delete o[r],a)}),r))),K=e=>function(...t){const n=c(U,(0,r.useContext)(q)),[o,a,i]=Y(t),s=W(n,i);let l=e;const{use:u}=s,d=(u||[]).concat(J);for(let e=d.length;e--;)l=d[e](l);return l(o,a||s.fetcher||null,s)},H=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},X=(e,t)=>(...n)=>{const[r,o,a]=Y(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};Z&&(window.__SWR_DEVTOOLS_REACT__=r)},255:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l});var r=n(206),o=n(100),a=n(729);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},l=(a.$l.defineProperty(a.J$,"defaultValue",{value:a.u_}),(0,a.s6)(((e,t,n)=>{const{cache:l,compare:c,suspense:u,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:m,refreshWhenHidden:v,refreshWhenOffline:h,keepPreviousData:A}=n,[g,b,y,E]=a.DY.get(l),[_,C]=(0,a.qC)(e),w=(0,r.useRef)(!1),S=(0,r.useRef)(!1),O=(0,r.useRef)(_),T=(0,r.useRef)(t),N=(0,r.useRef)(n),R=()=>N.current,x=()=>R().isVisible()&&R().isOnline(),[L,k,B,D]=(0,a.JN)(l,_),I=(0,r.useRef)({}).current,P=(0,a.o8)(d)?n.fallback[_]:d,V=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.o8)(e[r]))return!1;if(!c(Z,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)((()=>{const e=!!_&&!!t&&((0,a.o8)(f)?!R().isPaused()&&!u&&(!!(0,a.o8)(p)||p):f),n=t=>{const n=(0,a.PM)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=L(),o=D(),i=n(r),s=r===o?i:n(o);let l=i;return[()=>{const e=n(L());return V(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,_]),F=(0,o.useSyncExternalStore)((0,r.useCallback)((e=>B(_,((t,n)=>{V(n,t)||e()}))),[l,_]),j[0],j[1]),M=!w.current,$=g[_]&&g[_].length>0,U=F.data,W=(0,a.o8)(U)?P:U,q=F.error,G=(0,r.useRef)(W),Z=A?(0,a.o8)(U)?G.current:U:W,z=!($&&!(0,a.o8)(q))&&(M&&!(0,a.o8)(f)?f:!R().isPaused()&&(u?!(0,a.o8)(W)&&p:(0,a.o8)(W)||p)),Y=!!(_&&t&&M&&z),J=(0,a.o8)(F.isValidating)?Y:F.isValidating,K=(0,a.o8)(F.isLoading)?Y:F.isLoading,H=(0,r.useCallback)((async e=>{const t=T.current;if(!_||!t||S.current||R().isPaused())return!1;let r,o,i=!0;const s=e||{},l=!y[_]||!s.dedupe,u=()=>a.w6?!S.current&&_===O.current&&w.current:_===O.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{const e=y[_];e&&e[1]===o&&delete y[_]},m={isValidating:!0};(0,a.o8)(L().data)&&(m.isLoading=!0);try{if(l&&(k(m),n.loadingTimeout&&(0,a.o8)(L().data)&&setTimeout((()=>{i&&u()&&R().onLoadingSlow(_,n)}),n.loadingTimeout),y[_]=[t(C),(0,a.u3)()]),[r,o]=y[_],r=await r,l&&setTimeout(p,n.dedupingInterval),!y[_]||y[_][1]!==o)return l&&u()&&R().onDiscarded(_),!1;d.error=a.i_;const e=b[_];if(!(0,a.o8)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),l&&u()&&R().onDiscarded(_),!1;const s=L().data;d.data=c(s,r)?s:r,l&&u()&&R().onSuccess(r,_,n)}catch(e){p();const t=R(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&u()&&(t.onError(e,_,t),(!0===n||(0,a.mf)(n)&&n(e))&&x()&&t.onErrorRetry(e,_,t,(e=>{const t=g[_];t&&t[0]&&t[0](a.sj.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return i=!1,f(),!0}),[_,l]),X=(0,r.useCallback)(((...e)=>(0,a.BN)(l,O.current,...e)),[]);if((0,a.LI)((()=>{T.current=t,N.current=n,(0,a.o8)(U)||(G.current=U)})),(0,a.LI)((()=>{if(!_)return;const e=H.bind(a.i_,s);let t=0;const n=(0,a.ko)(_,g,((n,r={})=>{if(n==a.sj.FOCUS_EVENT){const n=Date.now();R().revalidateOnFocus&&n>t&&x()&&(t=n+R().focusThrottleInterval,e())}else if(n==a.sj.RECONNECT_EVENT)R().revalidateOnReconnect&&x()&&e();else{if(n==a.sj.MUTATE_EVENT)return H();if(n==a.sj.ERROR_REVALIDATE_EVENT)return H(r)}}));return S.current=!1,O.current=_,w.current=!0,k({_k:C}),z&&((0,a.o8)(W)||a.W6?e():(0,a.kw)(e)),()=>{S.current=!0,n()}}),[_]),(0,a.LI)((()=>{let e;function t(){const t=(0,a.mf)(m)?m(L().data):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){L().error||!v&&!R().isVisible()||!h&&!R().isOnline()?t():H(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[m,v,h,_]),(0,r.useDebugValue)(Z),u&&(0,a.o8)(W)&&_){if(!a.w6&&a.W6)throw new Error("Fallback data is required when using suspense in SSR.");T.current=t,N.current=n,S.current=!1;const e=E[_];if(!(0,a.o8)(e)){const t=X(e);i(t)}if(!(0,a.o8)(q))throw q;{const e=H(s);(0,a.o8)(Z)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:X,get data(){return I.data=!0,Z},get error(){return I.error=!0,q},get isValidating(){return I.isValidating=!0,J},get isLoading(){return I.isLoading=!0,K}}})))},303:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(255);const o=(0,n(729).xD)(r.ZP,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r))))}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=n,o.c=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@kenyaemr/esm-version-app:",o.l=(n,r,a,i)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=n),e[n]=[r];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},t={};o.I=(n,r)=>{r||(r=[]);var a=t[n];if(a||(a=t[n]={}),!(r.indexOf(a)>=0)){if(r.push(a),e[n])return e[n];o.o(o.S,n)||(o.S[n]={});var i=o.S[n],s="@kenyaemr/esm-version-app",l=(e,t,n,r)=>{var o=i[e]=i[e]||{},a=o[t];(!a||!a.loaded&&(!r!=!a.eager?r:s>a.from))&&(o[t]={get:n,from:s,eager:!!r})},c=[];return"default"===n&&(l("@openmrs/esm-framework","5.6.1-pre.1895",(()=>Promise.all([o.e(130),o.e(206)]).then((()=>()=>o(130))))),l("react-router-dom","6.4.3",(()=>Promise.all([o.e(591),o.e(206)]).then((()=>()=>o(591))))),l("react","18.2.0",(()=>o.e(784).then((()=>()=>o(784)))))),e[n]=c.length?Promise.all(c).then((()=>e[n]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),n=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),r=n[1]?t(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,t(n[2]))),n[3]&&(r.push([]),r.push.apply(r,t(n[3]))),r},t=e=>{var n=e[0],r="";if(1===e.length)return"*";if(n+.5){r+=0==n?">=":-1==n?"<":1==n?"^":2==n?"~":n>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,r+="u"==(typeof(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return r}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():t(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},n=(t,r)=>{if(0 in t){r=e(r);var o=t[0],a=o<0;a&&(o=-o-1);for(var i=0,s=1,l=!0;;s++,i++){var c,u,d=s<t.length?(typeof t[s])[0]:"";if(i>=r.length||"o"==(u=(typeof(c=r[i]))[0]))return!l||("u"==d?s>o&&!a:""==d!=a);if("u"==u){if(!l||"u"!=d)return!1}else if(l)if(d==u)if(s<=o){if(c!=t[s])return!1}else{if(a?c>t[s]:c<t[s])return!1;c!=t[s]&&(l=!1)}else if("s"!=d&&"n"!=d){if(a||s<=o)return!1;l=!1,s--}else{if(s<=o||u<d!=a)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,s--)}}var f=[],p=f.pop.bind(f);for(i=1;i<t.length;i++){var m=t[i];f.push(1==m?p()|p():2==m?p()&p():m?n(m,r):!p())}return!!p()},r=(t,n)=>{var r=t[n];return Object.keys(r).reduce(((t,n)=>!t||!r[t].loaded&&((t,n)=>{t=e(t),n=e(n);for(var r=0;;){if(r>=t.length)return r<n.length&&"u"!=(typeof n[r])[0];var o=t[r],a=(typeof o)[0];if(r>=n.length)return"u"==a;var i=n[r],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;r++}})(t,n)?n:t),0)},a=(e,o,a,l)=>{var c=r(e,a);return n(l,c)||i(((e,n,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[n][r].from)+" of shared singleton module "+n+" (required "+t(o)+")")(e,a,c,l)),s(e[a][c])},i=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},s=e=>(e.loaded=1,e.get()),l=(e=>function(t,n,r,a){var i=o.I(t);return i&&i.then?i.then(e.bind(e,t,o.S[t],n,r,a)):e(t,o.S[t],n,r,a)})(((e,t,n,r,i)=>t&&o.o(t,n)?a(t,0,n,r):i())),c={},u={206:()=>l("default","react",[1,18,1,0],(()=>o.e(784).then((()=>()=>o(784))))),870:()=>l("default","@openmrs/esm-framework",[1,5],(()=>o.e(130).then((()=>()=>o(130))))),744:()=>l("default","react-router-dom",[1,6],(()=>o.e(591).then((()=>()=>o(591)))))};[870,206,744].forEach((e=>{o.m[e]=t=>{c[e]=0,delete o.c[e];var n=u[e]();if("function"!=typeof n)throw new Error("Shared module is not available for eager consumption: "+e);t.exports=n()}}));var d={206:[206]};o.f.consumes=(e,t)=>{o.o(d,e)&&d[e].forEach((e=>{if(o.o(c,e))return t.push(c[e]);var n=t=>{c[e]=0,o.m[e]=n=>{delete o.c[e],n.exports=t()}},r=t=>{delete c[e],o.m[e]=n=>{throw delete o.c[e],t}};try{var a=u[e]();a.then?t.push(c[e]=a.then(n).catch(r)):n(a)}catch(e){r(e)}}))}})(),(()=>{var e={179:0,206:0,122:0,931:0};o.f.j=(t,n)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(206!=t){var a=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(n=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,r[1](s)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,n)=>{var r,a,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);l&&l(o)}for(t&&t(n);c<i.length;c++)a=i[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=globalThis.webpackChunk_kenyaemr_esm_version_app=globalThis.webpackChunk_kenyaemr_esm_version_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),o.nc=void 0,o(122)})();
@@ -21,7 +21,7 @@
21
21
  "auxiliaryFiles": [
22
22
  "122.js.map"
23
23
  ],
24
- "hash": "9d3310fac8ac7715",
24
+ "hash": "341f698843aba51f",
25
25
  "childrenByOrder": {}
26
26
  },
27
27
  {
@@ -76,7 +76,7 @@
76
76
  "auxiliaryFiles": [
77
77
  "main.js.map"
78
78
  ],
79
- "hash": "493c64c81d89f6f0",
79
+ "hash": "8a9b96b2dc4c6a10",
80
80
  "childrenByOrder": {}
81
81
  },
82
82
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenyaemr/esm-version-app",
3
- "version": "5.2.1-pre.661",
3
+ "version": "5.2.1-pre.671",
4
4
  "description": "Patient flags microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-patient-verification-app.js",
6
6
  "main": "src/index.ts",
@@ -50,5 +50,5 @@
50
50
  "git-describe": "^4.1.1",
51
51
  "webpack": "^5.74.0"
52
52
  },
53
- "gitHead": "a3827bc139c384d06391c6791c47a00966cd2761"
53
+ "gitHead": "41361c934eb0c81198e7e6afd3d196f0b3d6a819"
54
54
  }
@@ -3,14 +3,14 @@
3
3
  /* tslint:disable */
4
4
  export const VERSION = {
5
5
  "dirty": false,
6
- "raw": "c8aa8e6",
7
- "hash": "c8aa8e6",
6
+ "raw": "c1e8f28",
7
+ "hash": "c1e8f28",
8
8
  "distance": null,
9
9
  "tag": null,
10
10
  "semver": null,
11
- "suffix": "c8aa8e6",
11
+ "suffix": "c1e8f28",
12
12
  "semverString": null,
13
13
  "version": "5.2.0",
14
- "buildDate": "2024-06-24T13:27:00.761Z"
14
+ "buildDate": "2024-06-27T15:58:53.551Z"
15
15
  };
16
16
  /* tslint:enable */