@openmrs/esm-home-app 4.0.2 → 4.0.3-pre.196

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.
Files changed (42) hide show
  1. package/.turbo/turbo-build.log +7 -6
  2. package/dist/122.js +2 -0
  3. package/dist/122.js.LICENSE.txt +5 -0
  4. package/dist/184.js +1 -0
  5. package/dist/193.js +1 -1
  6. package/dist/319.js +1 -1
  7. package/dist/361.js +1 -0
  8. package/dist/423.js +1 -1
  9. package/dist/444.js +1 -1
  10. package/dist/572.js +1 -1
  11. package/dist/574.js +1 -1
  12. package/dist/631.js +1 -1
  13. package/dist/709.js +1 -1
  14. package/dist/757.js +1 -1
  15. package/dist/784.js +1 -1
  16. package/dist/787.js +1 -1
  17. package/dist/81.js +1 -1
  18. package/dist/858.js +1 -1
  19. package/dist/904.js +1 -0
  20. package/dist/91.js +1 -0
  21. package/dist/main.js +1 -1
  22. package/dist/openmrs-esm-home-app.js +1 -1
  23. package/dist/openmrs-esm-home-app.js.buildmanifest.json +111 -43
  24. package/dist/openmrs-esm-home-app.old +1 -1
  25. package/package.json +2 -2
  26. package/src/createDashboardLink.tsx +30 -0
  27. package/src/dashboard/dashboard-view.component.tsx +15 -0
  28. package/src/dashboard/dashboard-view.scss +5 -0
  29. package/src/dashboard/home-dashboard.component.tsx +25 -27
  30. package/src/dashboard/home-dashboard.scss +24 -0
  31. package/src/dashboard/home-dashboard.test.tsx +0 -51
  32. package/src/dashboard.meta.ts +5 -0
  33. package/src/home-page-widgets/home-page-widgets.component.tsx +11 -0
  34. package/src/home-page-widgets/home-page-widgets.scss +5 -0
  35. package/src/index.ts +25 -1
  36. package/src/root.component.tsx +22 -10
  37. package/src/side-menu/side-menu.component.tsx +7 -0
  38. package/src/side-menu/side-menu.scss +7 -0
  39. package/src/types/index.ts +5 -0
  40. package/dist/347.js +0 -1
  41. package/dist/928.js +0 -1
  42. package/src/dashboard/home-dashboard.css +0 -97
package/dist/904.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[904],{7779:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(9601),o=n.n(r),a=n(2609),s=n.n(a)()(o());s.push([e.id,".-esm-home__home-page-widgets__homePageWidget___v8GyA{padding:1rem}",""]),s.locals={homePageWidget:"-esm-home__home-page-widgets__homePageWidget___v8GyA"};const i=s},2609:e=>{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 s={};if(r)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var p=[].concat(e[u]);r&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},9601:e=>{e.exports=function(e){return e[1]}},1354:e=>{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={},s=[],i=0;i<e.length;i++){var c=e[i],u=r.base?c[0]+r.base:c[0],p=a[u]||0,l="".concat(u," ").concat(p);a[u]=p+1;var d=n(l),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var m=o(f,r);r.byIndex=i,t.splice(i,0,{identifier:l,updater:m,references:1})}s.push(l)}return s}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 s=0;s<a.length;s++){var i=n(a[s]);t[i].references--}for(var c=r(e,o),u=0;u<a.length;u++){var p=n(a[u]);0===t[p].references&&(t[p].updater(),t.splice(p,1))}a=c}}},7378:e=>{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)}},4154:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5993:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1583:e=>{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)}}}},8141:e=>{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))}}},8904:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x});var r=n(906),o=n(268),a=n.n(o),s=n(1354),i=n.n(s),c=n(1583),u=n.n(c),p=n(7378),l=n.n(p),d=n(5993),f=n.n(d),m=n(4154),h=n.n(m),v=n(8141),g=n.n(v),y=n(7779),_={};_.styleTagTransform=g(),_.setAttributes=f(),_.insert=l().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=h(),i()(y.Z,_);const b=y.Z&&y.Z.locals?y.Z.locals:void 0,x=function(){return a().createElement(r.ExtensionSlot,{className:b.homePageWidget,extensionSlotName:"homepage-widgets-slot"})}}}]);
package/dist/91.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[91,268],{8091:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>d,importTranslation:()=>f,setupOpenMRS:()=>m,version:()=>p});var i=t(906),o=t(268),a=t.n(o),r=t(9122),l="".concat(window.spaBase,"/home"),s={name:"Home",slot:"home-dashboard-slot",title:""},c={buttons:{enabled:{_type:i.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:i.Type.Array,_elements:{label:{_type:i.Type.String},link:{_type:i.Type.String,_validators:[i.validators.isUrl]},requiredPrivilege:{_type:i.Type.String},spa:{_type:i.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]}},showOpenMRSLogo:{_type:i.Type.Boolean,_description:"Whether to display OpenMRS logo on home dashboard",_default:!0}},p="4.0.2",d={"webservices.rest":"^2.24.0"},f=t(3979);function m(){var e,n="@openmrs/esm-home-app",o="home",p={featureName:o,moduleName:n};return(0,i.defineConfigSchema)(n,c),(0,i.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(o),title:"Home"}]),{pages:[{load:(0,i.getAsyncLifecycle)((function(){return t.e(361).then(t.bind(t,4361))}),p),route:o,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(631)]).then(t.bind(t,2631))}),p),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(444)]).then(t.bind(t,2444))}),p),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(572)]).then(t.bind(t,9572))}),p),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(423)]).then(t.bind(t,9423))}),p),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(787)]).then(t.bind(t,8787))}),p),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(193)]).then(t.bind(t,8193))}),p),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(924),t.e(81)]).then(t.bind(t,5081))}),p),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1},{id:"home-sidebar-slot-ext",slot:"home-sidebar-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(184).then(t.bind(t,7184))}),p),online:!0,offline:!0},{id:"home-widget-db-link",slot:"homepage-dashboard-slot",load:(0,i.getSyncLifecycle)((e=s,function(){return a().createElement(r.yTF,{key:e.name,renderIcon:e.renderIcon,href:"".concat(l,"/").concat(e.name),onClick:function(n){n.preventDefault(),(0,i.navigate)({to:"".concat(l,"/").concat(e.title)})}},e.name)}),p),meta:s,online:!0,offline:!0},{id:"home-widget-dashboard",slot:"home-dashboard-slot",load:(0,i.getAsyncLifecycle)((function(){return t.e(904).then(t.bind(t,8904))}),p),online:!0,offline:!0}]}}},3979:(e,n,t)=>{var i={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function o(e){if(!t.o(i,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=i[e],o=n[0];return t.e(n[1]).then((()=>t(o)))}o.keys=()=>Object.keys(i),o.id=3979,e.exports=o}}]);
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,r,t={928:(e,r,t)=>{"use strict";var n=t(906);n.Type.Boolean,n.Type.Array,n.Type.String,n.Type.String,n.validators.isUrl,n.Type.String,n.Type.Boolean,n.Type.String,n.validators.isUrlWithTemplateParameters(["patientUuid"]),n.Type.Boolean,t(979)},979:(e,r,t)=>{var n={"./en.json":[574,574],"./es.json":[319,319],"./fr.json":[757,757]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),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,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-home-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var f=s[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var d=(r,n)=>{l.onerror=l.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}},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={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-home-app",u=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},s=[];return"default"===t&&(u("@openmrs/esm-framework","4.0.3-pre.434",(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(858))))),u("react-i18next","12.0.0",(()=>Promise.all([o.e(709),o.e(268)]).then((()=>()=>o(709))))),u("react-router-dom","6.4.3",(()=>Promise.all([o.e(372),o.e(268)]).then((()=>()=>o(372))))),u("react","18.2.0",(()=>o.e(784).then((()=>()=>o(784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].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 r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return n}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():r(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,u=!0;;l++,i++){var s,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=n.length||"o"==(p=(typeof(s=n[i]))[0]))return!u||("u"==f?l>o&&!a:""==f!=a);if("u"==p){if(!u||"u"!=f)return!1}else if(u)if(f==p)if(l<=o){if(s!=r[l])return!1}else{if(a?s>r[l]:s<r[l])return!1;s!=r[l]&&(u=!1)}else if("s"!=f&&"n"!=f){if(a||l<=o)return!1;u=!1,l--}else{if(l<=o||p<f!=a)return!1;u=!1}else"s"!=f&&"n"!=f&&(u=!1,l--)}}var d=[],c=d.pop.bind(d);for(i=1;i<r.length;i++){var h=r[i];d.push(1==h?c()|c():2==h?c()&c():h?t(h,n):!c())}return!!c()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,l)=>{var u=n(e,a);return t(l,u)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,u,l)),i(e[a][u])},i=e=>(e.loaded=1,e.get()),l=(e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)})(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),u={},s={268:()=>l("default","react",[1,18],(()=>o.e(784).then((()=>()=>o(784))))),744:()=>l("default","react-router-dom",[1,6],(()=>o.e(372).then((()=>()=>o(372))))),924:()=>l("default","react-i18next",[1,11],(()=>o.e(709).then((()=>()=>o(709))))),906:()=>l("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(858)))))};[906].forEach((e=>{o.m[e]=r=>{u[e]=0,delete o.c[e];var t=s[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var p={268:[268],347:[744],924:[924]};o.f.consumes=(e,r)=>{o.o(p,e)&&p[e].forEach((e=>{if(o.o(u,e))return r.push(u[e]);var t=r=>{u[e]=0,o.m[e]=t=>{delete o.c[e],t.exports=r()}},n=r=>{delete u[e],o.m[e]=t=>{throw delete o.c[e],r}};try{var a=s[e]();a.then?r.push(u[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,928:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|924)$/.test(r))e[r]=0;else{var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,a,[i,l,u]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);u&&u(o)}for(r&&r(t);s<i.length;s++)a=i[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.nc=void 0,o(928)})();
1
+ (()=>{var e,r,t={9122:()=>{"use strict";var e={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?e.enableCssCustomProperties=!0:e.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?e.enableUseControlledStateWithValue=!0:e.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?e.enableCssGrid=!0:e.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?e.enableV11Release=!0:e.enableV11Release=!1}catch(r){e.enableCssCustomProperties=!1,e.enableUseControlledStateWithValue=!1,e.enableCssGrid=!1,e.enableV11Release=!1}var r=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:e.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:e.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:e.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:e.enableV11Release}];function t(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o=[],l=!0,i=!1;try{for(t=t.call(e);!(l=(n=t.next()).done)&&(o.push(n.value),!r||o.length!==r);l=!0);}catch(e){i=!0,a=e}finally{try{l||null==t.return||t.return()}finally{if(i)throw a}}return o}}(e,r)||a(e,r)||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 a(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}for(var l=function(){function e(r){var t=this;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,r&&Object.keys(r).forEach((function(e){t.flags.set(e,r[e])}))}var r,o;return r=e,o=[{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,r){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,r)}},{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 r=this;Object.keys(e).forEach((function(t){r.flags.set(t,e[t])}))}},{key:"mergeWithScope",value:function(e){var r,t=function(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=a(e))){t&&(e=t);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 l,i=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){s=!0,l=e},f:function(){try{i||null==t.return||t.return()}finally{if(s)throw l}}}}(e.flags);try{for(t.s();!(r=t.n()).done;){var o=n(r.value,2),l=o[0],i=o[1];this.flags.has(l)||this.flags.set(l,i)}}catch(e){t.e(e)}finally{t.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],o&&t(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),e}(),i=new l(undefined),s=0;s<r.length;s++){var u=r[s];i.add(u.name,u.enabled)}!function(){i.merge.apply(i,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0})},8091:(e,r,t)=>{"use strict";var n=t(906);t(268),t(9122),"".concat(window.spaBase,"/home"),n.Type.Boolean,n.Type.Array,n.Type.String,n.Type.String,n.validators.isUrl,n.Type.String,n.Type.Boolean,n.Type.String,n.validators.isUrlWithTemplateParameters(["patientUuid"]),n.Type.Boolean,t(3979)},3979:(e,r,t)=>{var n={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function a(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],a=r[0];return t.e(r[1]).then((()=>t(a)))}a.keys=()=>Object.keys(n),a.id=3979,e.exports=a}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,a),o.loaded=!0,o.exports}a.m=t,a.c=n,a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((r,t)=>(a.f[t](e,r),r)),[])),a.u=e=>e+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-home-app:",a.l=(t,n,o,l)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var a=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(n))),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{a.S={};var e={},r={};a.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];a.o(a.S,t)||(a.S[t]={});var l=a.S[t],i="@openmrs/esm-home-app",s=(e,r,t,n)=>{var a=l[e]=l[e]||{},o=a[r];(!o||!o.loaded&&(!n!=!o.eager?n:i>o.from))&&(a[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","4.0.3-pre.434",(()=>Promise.all([a.e(858),a.e(268)]).then((()=>()=>a(6858))))),s("react-i18next","12.0.0",(()=>Promise.all([a.e(709),a.e(268)]).then((()=>()=>a(709))))),s("react-router-dom","6.4.3",(()=>Promise.all([a.e(372),a.e(268)]).then((()=>()=>a(372))))),s("react","18.2.0",(()=>a.e(784).then((()=>()=>a(2784)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var r=a.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var a=1,o=1;o<e.length;o++)a--,n+="u"==(typeof(i=e[o]))[0]?"-":(a>0?".":"")+(a=2,i);return n}var l=[];for(o=1;o<e.length;o++){var i=e[o];l.push(0===i?"not("+s()+")":1===i?"("+s()+" || "+s()+")":2===i?l.pop()+" "+l.pop():r(i))}return s();function s(){return l.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var a=r[0],o=a<0;o&&(a=-a-1);for(var l=0,i=1,s=!0;;i++,l++){var u,c,f=i<r.length?(typeof r[i])[0]:"";if(l>=n.length||"o"==(c=(typeof(u=n[l]))[0]))return!s||("u"==f?i>a&&!o:""==f!=o);if("u"==c){if(!s||"u"!=f)return!1}else if(s)if(f==c)if(i<=a){if(u!=r[i])return!1}else{if(o?u>r[i]:u<r[i])return!1;u!=r[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||i<=a)return!1;s=!1,i--}else{if(i<=a||c<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}var p=[],d=p.pop.bind(p);for(l=1;l<r.length;l++){var h=r[l];p.push(1==h?d()|d():2==h?d()&d():h?t(h,n):!d())}return!!d()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var a=r[n],o=(typeof a)[0];if(n>=t.length)return"u"==o;var l=t[n],i=(typeof l)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&a!=l)return a<l;n++}})(r,t)?t:r),0)},o=(e,a,o,i)=>{var s=n(e,o);return t(i,s)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,a)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(a)+")")(e,o,s,i)),l(e[o][s])},l=e=>(e.loaded=1,e.get()),i=(e=>function(r,t,n,o){var l=a.I(r);return l&&l.then?l.then(e.bind(e,r,a.S[r],t,n,o)):e(r,a.S[r],t,n,o)})(((e,r,t,n,l)=>r&&a.o(r,t)?o(r,0,t,n):l())),s={},u={8744:()=>i("default","react-router-dom",[1,6],(()=>a.e(372).then((()=>()=>a(372))))),4924:()=>i("default","react-i18next",[1,11],(()=>a.e(709).then((()=>()=>a(709))))),268:()=>i("default","react",[1,18],(()=>a.e(784).then((()=>()=>a(2784))))),906:()=>i("default","@openmrs/esm-framework",[1,4],(()=>a.e(858).then((()=>()=>a(6858)))))};[906,268].forEach((e=>{a.m[e]=r=>{s[e]=0,delete a.c[e];var t=u[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var c={268:[268],361:[8744],924:[4924]};a.f.consumes=(e,r)=>{a.o(c,e)&&c[e].forEach((e=>{if(a.o(s,e))return r.push(s[e]);var t=r=>{s[e]=0,a.m[e]=t=>{delete a.c[e],t.exports=r()}},n=r=>{delete s[e],a.m[e]=t=>{throw delete a.c[e],r}};try{var o=u[e]();o.then?r.push(s[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,268:0,91:0};a.f.j=(r,t)=>{var n=a.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,a)=>n=e[r]=[t,a]));t.push(n[2]=o);var l=a.p+a.u(r),i=new Error;a.l(l,(t=>{if(a.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),l=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+l+")",i.name="ChunkLoadError",i.type=o,i.request=l,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[l,i,s]=t,u=0;if(l.some((r=>0!==e[r]))){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);s&&s(a)}for(r&&r(t);u<l.length;u++)o=l[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),a.nc=void 0,a(8091)})();
@@ -1 +1 @@
1
- var _openmrs_esm_home_app;(()=>{function b(a){var d=c[a];if(void 0!==d)return d.exports;var e=c[a]={id:a,loaded:!1,exports:{}};return G[a](e,e.exports,b),e.loaded=!0,e.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={961:(b,c,d)=>{var f={"./start":()=>d.e(928).then(()=>()=>d(928))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},c={};b.m=G,b.c=c,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-home-app:",b.l=(a,c,e)=>{if(j[a])j[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[c];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-home-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-home-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.3-pre.434",()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(858))),a("react-i18next","12.0.0",()=>Promise.all([b.e(709),b.e(268)]).then(()=>()=>b(709))),a("react-router-dom","6.4.3",()=>Promise.all([b.e(372),b.e(268)]).then(()=>()=>b(372))),a("react","18.2.0",()=>b.e(784).then(()=>()=>b(784)))),c[e]=i.length?Promise.all(i).then(()=>c[e]=1):1}}})(),(()=>{var a;b.g.importScripts&&(a=b.g.location+"");var c=b.g.document;if(!a&&c&&(c.currentScript&&(a=c.currentScript.src),!a)){var d=c.getElementsByTagName("script");d.length&&(a=d[d.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=a})(),q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},v=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},w=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():w(i))}return c()},x=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var f=[],d=f.pop.bind(f);for(j=1;j<a.length;j++){var h=a[j];f.push(1==h?d()|d():2==h?d()&d():h?x(h,b):!d())}return!!d()},y=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!v(a,b))?a:b,0)},z=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+w(d)+")",A=(a,b,c,d)=>{var e=y(a,c);return x(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(z(a,c,e,d)),B(a[c][e])},B=a=>(a.loaded=1,a.get()),C=(c=>function(d,e,f,g){var h=b.I(d);return h&&h.then?h.then(c.bind(c,d,b.S[d],e,f,g)):c(0,b.S[d],e,f,g)})((a,c,d,e,f)=>c&&b.o(c,d)?A(c,0,d,e):f()),D={},E={268:()=>C("default","react",[1,18],()=>b.e(784).then(()=>()=>b(784))),906:()=>C("default","@openmrs/esm-framework",[1,4],()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(858))),744:()=>C("default","react-router-dom",[1,6],()=>b.e(372).then(()=>()=>b(372))),924:()=>C("default","react-i18next",[1,11],()=>b.e(709).then(()=>()=>b(709)))},F={268:[268],347:[744],924:[924],928:[906]},b.f.consumes=(a,c)=>{b.o(F,a)&&F[a].forEach(a=>{if(b.o(D,a))return c.push(D[a]);var d=c=>{D[a]=0,b.m[a]=d=>{delete b.c[a],d.exports=c()}},f=c=>{delete D[a],b.m[a]=()=>{throw delete b.c[a],c}};try{var e=E[a]();e.then?c.push(D[a]=e.then(d).catch(f)):d(e)}catch(a){f(a)}})},(()=>{var c={177:0};b.f.j=(d,e)=>{var f=b.o(c,d)?c[d]:void 0;if(0!==f)if(f)e.push(f[2]);else if(/^(268|924)$/.test(d))c[d]=0;else{var g=new Promise((a,b)=>f=c[d]=[a,b]);e.push(f[2]=g);var h=b.p+b.u(d),j=new Error;b.l(h,e=>{if(b.o(c,d)&&(0!==(f=c[d])&&(c[d]=void 0),f)){var g=e&&("load"===e.type?"missing":e.type),h=e&&e.target&&e.target.src;j.message="Loading chunk "+d+" failed.\n("+g+": "+h+")",j.name="ChunkLoadError",j.type=g,j.request=h,f[1](j)}},"chunk-"+d,d)}};var a=(d,e)=>{var f,g,[h,a,i]=e,j=0;if(h.some(a=>0!==c[a])){for(f in a)b.o(a,f)&&(b.m[f]=a[f]);i&&i(b)}for(d&&d(e);j<h.length;j++)g=h[j],b.o(c,g)&&c[g]&&c[g][0](),c[g]=0},d=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),b.nc=void 0;var m=b(961);_openmrs_esm_home_app=m})();
1
+ var _openmrs_esm_home_app;(()=>{function b(a){var d=c[a];if(void 0!==d)return d.exports;var e=c[a]={id:a,loaded:!1,exports:{}};return G[a](e,e.exports,b),e.loaded=!0,e.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={1961:(b,c,d)=>{var f={"./start":()=>Promise.all([d.e(122),d.e(91)]).then(()=>()=>d(8091))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},c={};b.m=G,b.c=c,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-home-app:",b.l=(a,c,e)=>{if(j[a])j[a].push(c);else{var g,h;if(void 0!==e)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[c];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-home-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-home-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.3-pre.434",()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(6858))),a("react-i18next","12.0.0",()=>Promise.all([b.e(709),b.e(268)]).then(()=>()=>b(709))),a("react-router-dom","6.4.3",()=>Promise.all([b.e(372),b.e(268)]).then(()=>()=>b(372))),a("react","18.2.0",()=>b.e(784).then(()=>()=>b(2784)))),c[e]=i.length?Promise.all(i).then(()=>c[e]=1):1}}})(),(()=>{var a;b.g.importScripts&&(a=b.g.location+"");var c=b.g.document;if(!a&&c&&(c.currentScript&&(a=c.currentScript.src),!a)){var d=c.getElementsByTagName("script");d.length&&(a=d[d.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=a})(),q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},v=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},w=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():w(i))}return c()},x=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var f=[],d=f.pop.bind(f);for(j=1;j<a.length;j++){var h=a[j];f.push(1==h?d()|d():2==h?d()&d():h?x(h,b):!d())}return!!d()},y=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!v(a,b))?a:b,0)},z=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+w(d)+")",A=(a,b,c,d)=>{var e=y(a,c);return x(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(z(a,c,e,d)),B(a[c][e])},B=a=>(a.loaded=1,a.get()),C=(c=>function(d,e,f,g){var h=b.I(d);return h&&h.then?h.then(c.bind(c,d,b.S[d],e,f,g)):c(0,b.S[d],e,f,g)})((a,c,d,e,f)=>c&&b.o(c,d)?A(c,0,d,e):f()),D={},E={268:()=>C("default","react",[1,18],()=>b.e(784).then(()=>()=>b(2784))),906:()=>C("default","@openmrs/esm-framework",[1,4],()=>b.e(858).then(()=>()=>b(6858))),8744:()=>C("default","react-router-dom",[1,6],()=>b.e(372).then(()=>()=>b(372))),4924:()=>C("default","react-i18next",[1,11],()=>b.e(709).then(()=>()=>b(709)))},F={91:[268,906],268:[268],361:[8744],924:[4924]},b.f.consumes=(a,c)=>{b.o(F,a)&&F[a].forEach(a=>{if(b.o(D,a))return c.push(D[a]);var d=c=>{D[a]=0,b.m[a]=d=>{delete b.c[a],d.exports=c()}},f=c=>{delete D[a],b.m[a]=()=>{throw delete b.c[a],c}};try{var e=E[a]();e.then?c.push(D[a]=e.then(d).catch(f)):d(e)}catch(a){f(a)}})},(()=>{var c={177:0};b.f.j=(d,e)=>{var f=b.o(c,d)?c[d]:void 0;if(0!==f)if(f)e.push(f[2]);else if(/^(268|924)$/.test(d))c[d]=0;else{var g=new Promise((a,b)=>f=c[d]=[a,b]);e.push(f[2]=g);var h=b.p+b.u(d),j=new Error;b.l(h,e=>{if(b.o(c,d)&&(0!==(f=c[d])&&(c[d]=void 0),f)){var g=e&&("load"===e.type?"missing":e.type),h=e&&e.target&&e.target.src;j.message="Loading chunk "+d+" failed.\n("+g+": "+h+")",j.name="ChunkLoadError",j.type=g,j.request=h,f[1](j)}},"chunk-"+d,d)}};var a=(d,e)=>{var f,g,[h,a,i]=e,j=0;if(h.some(a=>0!==c[a])){for(f in a)b.o(a,f)&&(b.m[f]=a[f]);i&&i(b)}for(d&&d(e);j<h.length;j++)g=h[j],b.o(c,g)&&c[g]&&c[g][0](),c[g]=0},d=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),b.nc=void 0;var m=b(1961);_openmrs_esm_home_app=m})();
@@ -19,7 +19,53 @@
19
19
  "81.js"
20
20
  ],
21
21
  "auxiliaryFiles": [],
22
- "hash": "4a9cab147b7aa7449839",
22
+ "hash": "4ab5daed18048e9b076e",
23
+ "childrenByOrder": {}
24
+ },
25
+ {
26
+ "rendered": true,
27
+ "initial": false,
28
+ "entry": false,
29
+ "recorded": false,
30
+ "size": 7566,
31
+ "sizes": {
32
+ "consume-shared": 84,
33
+ "javascript": 7482
34
+ },
35
+ "names": [],
36
+ "idHints": [],
37
+ "runtime": [
38
+ "@openmrs/esm-home-app"
39
+ ],
40
+ "files": [
41
+ "91.js"
42
+ ],
43
+ "auxiliaryFiles": [],
44
+ "hash": "0dcbcfa1c9f92528b592",
45
+ "childrenByOrder": {}
46
+ },
47
+ {
48
+ "rendered": true,
49
+ "initial": false,
50
+ "entry": false,
51
+ "recorded": false,
52
+ "reason": "split chunk (cache group: defaultVendors)",
53
+ "size": 51429,
54
+ "sizes": {
55
+ "javascript": 51429
56
+ },
57
+ "names": [],
58
+ "idHints": [
59
+ "vendors"
60
+ ],
61
+ "runtime": [
62
+ "@openmrs/esm-home-app"
63
+ ],
64
+ "files": [
65
+ "122.js"
66
+ ],
67
+ "auxiliaryFiles": [],
68
+ "hash": "f5c86d06bc9d363b7b68",
23
69
  "childrenByOrder": {}
24
70
  },
25
71
  {
@@ -27,11 +73,11 @@
27
73
  "initial": true,
28
74
  "entry": true,
29
75
  "recorded": false,
30
- "size": 19439,
76
+ "size": 19410,
31
77
  "sizes": {
32
78
  "javascript": 42,
33
79
  "share-init": 168,
34
- "runtime": 19229
80
+ "runtime": 19200
35
81
  },
36
82
  "names": [
37
83
  "@openmrs/esm-home-app"
@@ -44,7 +90,7 @@
44
90
  "openmrs-esm-home-app.js"
45
91
  ],
46
92
  "auxiliaryFiles": [],
47
- "hash": "b4e07d7daedbf3e6809d",
93
+ "hash": "632f85c8126779281883",
48
94
  "childrenByOrder": {}
49
95
  },
50
96
  {
@@ -52,12 +98,12 @@
52
98
  "initial": true,
53
99
  "entry": true,
54
100
  "recorded": false,
55
- "size": 25324,
101
+ "size": 55281,
56
102
  "sizes": {
57
- "consume-shared": 42,
58
- "javascript": 5518,
103
+ "consume-shared": 84,
104
+ "javascript": 35456,
59
105
  "share-init": 168,
60
- "runtime": 19596
106
+ "runtime": 19573
61
107
  },
62
108
  "names": [
63
109
  "main"
@@ -70,7 +116,29 @@
70
116
  "main.js"
71
117
  ],
72
118
  "auxiliaryFiles": [],
73
- "hash": "7787c7195712ea926c0c",
119
+ "hash": "0e65ad8bde83591e3d7a",
120
+ "childrenByOrder": {}
121
+ },
122
+ {
123
+ "rendered": true,
124
+ "initial": false,
125
+ "entry": false,
126
+ "recorded": false,
127
+ "size": 10836,
128
+ "sizes": {
129
+ "javascript": 10836
130
+ },
131
+ "names": [],
132
+ "idHints": [],
133
+ "runtime": [
134
+ "@openmrs/esm-home-app",
135
+ "main"
136
+ ],
137
+ "files": [
138
+ "184.js"
139
+ ],
140
+ "auxiliaryFiles": [],
141
+ "hash": "928b21a6d50e40992b70",
74
142
  "childrenByOrder": {}
75
143
  },
76
144
  {
@@ -92,7 +160,7 @@
92
160
  "193.js"
93
161
  ],
94
162
  "auxiliaryFiles": [],
95
- "hash": "0da71d9340dcc4ef8d63",
163
+ "hash": "38d069301b37d783286f",
96
164
  "childrenByOrder": {}
97
165
  },
98
166
  {
@@ -113,7 +181,7 @@
113
181
  ],
114
182
  "files": [],
115
183
  "auxiliaryFiles": [],
116
- "hash": "8adaaf9671fcb016f74a",
184
+ "hash": "92db86b1fe2d646ac896",
117
185
  "childrenByOrder": {}
118
186
  },
119
187
  {
@@ -135,7 +203,7 @@
135
203
  "319.js"
136
204
  ],
137
205
  "auxiliaryFiles": [],
138
- "hash": "8153e0089eb79cd65198",
206
+ "hash": "9273a1ce364541987a42",
139
207
  "childrenByOrder": {}
140
208
  },
141
209
  {
@@ -143,9 +211,9 @@
143
211
  "initial": false,
144
212
  "entry": false,
145
213
  "recorded": false,
146
- "size": 18802,
214
+ "size": 16637,
147
215
  "sizes": {
148
- "javascript": 18760,
216
+ "javascript": 16595,
149
217
  "consume-shared": 42
150
218
  },
151
219
  "names": [],
@@ -155,10 +223,10 @@
155
223
  "main"
156
224
  ],
157
225
  "files": [
158
- "347.js"
226
+ "361.js"
159
227
  ],
160
228
  "auxiliaryFiles": [],
161
- "hash": "977da0f9f4525585ab1e",
229
+ "hash": "cdd0b678ba6bf8f256dc",
162
230
  "childrenByOrder": {}
163
231
  },
164
232
  {
@@ -183,7 +251,7 @@
183
251
  "372.js"
184
252
  ],
185
253
  "auxiliaryFiles": [],
186
- "hash": "76624eb23ffec0f55b50",
254
+ "hash": "add943e6f3a0ccc14846",
187
255
  "childrenByOrder": {}
188
256
  },
189
257
  {
@@ -205,7 +273,7 @@
205
273
  "423.js"
206
274
  ],
207
275
  "auxiliaryFiles": [],
208
- "hash": "0e96d766ddccc298ce0a",
276
+ "hash": "bd54ab8045f56f3ed6ec",
209
277
  "childrenByOrder": {}
210
278
  },
211
279
  {
@@ -227,7 +295,7 @@
227
295
  "444.js"
228
296
  ],
229
297
  "auxiliaryFiles": [],
230
- "hash": "ff98c3cd69084ac45935",
298
+ "hash": "f8fadf9ee3cfa4862cd3",
231
299
  "childrenByOrder": {}
232
300
  },
233
301
  {
@@ -249,7 +317,7 @@
249
317
  "572.js"
250
318
  ],
251
319
  "auxiliaryFiles": [],
252
- "hash": "ceae945634c56500dcf5",
320
+ "hash": "04e8f3cf027b567648f9",
253
321
  "childrenByOrder": {}
254
322
  },
255
323
  {
@@ -271,7 +339,7 @@
271
339
  "574.js"
272
340
  ],
273
341
  "auxiliaryFiles": [],
274
- "hash": "07cceefbaf9fdcd90d44",
342
+ "hash": "b428c3aab0bfc300de71",
275
343
  "childrenByOrder": {}
276
344
  },
277
345
  {
@@ -293,7 +361,7 @@
293
361
  "631.js"
294
362
  ],
295
363
  "auxiliaryFiles": [],
296
- "hash": "5e71ec5dc1d932a03bb6",
364
+ "hash": "e7e8303ad339f9630933",
297
365
  "childrenByOrder": {}
298
366
  },
299
367
  {
@@ -318,7 +386,7 @@
318
386
  "709.js"
319
387
  ],
320
388
  "auxiliaryFiles": [],
321
- "hash": "c6a99cd1dd31d14a3578",
389
+ "hash": "ed0b6e98ccf74f5d70d9",
322
390
  "childrenByOrder": {}
323
391
  },
324
392
  {
@@ -340,7 +408,7 @@
340
408
  "757.js"
341
409
  ],
342
410
  "auxiliaryFiles": [],
343
- "hash": "bd9b6af733ac302b0062",
411
+ "hash": "6688bd79cc829998aa25",
344
412
  "childrenByOrder": {}
345
413
  },
346
414
  {
@@ -362,7 +430,7 @@
362
430
  "784.js"
363
431
  ],
364
432
  "auxiliaryFiles": [],
365
- "hash": "c90998d1f8befe3ff4c8",
433
+ "hash": "77cb69a9d8ad6f287db6",
366
434
  "childrenByOrder": {}
367
435
  },
368
436
  {
@@ -384,7 +452,7 @@
384
452
  "787.js"
385
453
  ],
386
454
  "auxiliaryFiles": [],
387
- "hash": "b2401cd89c5bfeec0717",
455
+ "hash": "260fedf2dad3d63f34a3",
388
456
  "childrenByOrder": {}
389
457
  },
390
458
  {
@@ -392,7 +460,7 @@
392
460
  "initial": false,
393
461
  "entry": false,
394
462
  "recorded": false,
395
- "reason": "split chunk (cache group: defaultVendors)",
463
+ "reason": "reused as split chunk (cache group: defaultVendors)",
396
464
  "size": 407371,
397
465
  "sizes": {
398
466
  "javascript": 407371
@@ -409,18 +477,17 @@
409
477
  "858.js"
410
478
  ],
411
479
  "auxiliaryFiles": [],
412
- "hash": "3998107d44462b24182b",
480
+ "hash": "3aaf540915ea2ad65ea3",
413
481
  "childrenByOrder": {}
414
482
  },
415
483
  {
416
- "rendered": false,
484
+ "rendered": true,
417
485
  "initial": false,
418
486
  "entry": false,
419
487
  "recorded": false,
420
- "reason": "split chunk (cache group: default)",
421
- "size": 42,
488
+ "size": 10854,
422
489
  "sizes": {
423
- "consume-shared": 42
490
+ "javascript": 10854
424
491
  },
425
492
  "names": [],
426
493
  "idHints": [],
@@ -428,31 +495,32 @@
428
495
  "@openmrs/esm-home-app",
429
496
  "main"
430
497
  ],
431
- "files": [],
498
+ "files": [
499
+ "904.js"
500
+ ],
432
501
  "auxiliaryFiles": [],
433
- "hash": "5486ac12b4f93ad1cbc1",
502
+ "hash": "4b19cb799c8173fb0406",
434
503
  "childrenByOrder": {}
435
504
  },
436
505
  {
437
- "rendered": true,
506
+ "rendered": false,
438
507
  "initial": false,
439
508
  "entry": false,
440
509
  "recorded": false,
441
- "size": 5560,
510
+ "reason": "split chunk (cache group: default)",
511
+ "size": 42,
442
512
  "sizes": {
443
- "consume-shared": 42,
444
- "javascript": 5518
513
+ "consume-shared": 42
445
514
  },
446
515
  "names": [],
447
516
  "idHints": [],
448
517
  "runtime": [
449
- "@openmrs/esm-home-app"
450
- ],
451
- "files": [
452
- "928.js"
518
+ "@openmrs/esm-home-app",
519
+ "main"
453
520
  ],
521
+ "files": [],
454
522
  "auxiliaryFiles": [],
455
- "hash": "f68571da4923f1994796",
523
+ "hash": "d6994866cf557e8bc553",
456
524
  "childrenByOrder": {}
457
525
  }
458
526
  ]
@@ -1 +1 @@
1
- var _openmrs_esm_home_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,h,c={961:(e,r,t)=>{var n={"./start":()=>t.e(928).then((()=>()=>t(928)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return c[e](t,t.exports,v),t.loaded=!0,t.exports}v.m=c,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-home-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-home-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.3-pre.434",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(858))))),l("react-i18next","12.0.0",(()=>Promise.all([v.e(709),v.e(268)]).then((()=>()=>v(709))))),l("react-router-dom","6.4.3",(()=>Promise.all([v.e(372),v.e(268)]).then((()=>()=>v(372))))),l("react","18.2.0",(()=>v.e(784).then((()=>()=>v(784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],h=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?h()|h():2==c?h()&h():c?a(c,r):!h())}return!!h()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),u(e[t][o])},u=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},d={268:()=>p("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(784))))),906:()=>p("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(858))))),744:()=>p("default","react-router-dom",[1,6],(()=>v.e(372).then((()=>()=>v(372))))),924:()=>p("default","react-i18next",[1,11],(()=>v.e(709).then((()=>()=>v(709)))))},h={268:[268],347:[744],924:[924],928:[906]},v.f.consumes=(e,r)=>{v.o(h,e)&&h[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=d[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={177:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<a.length;s++)o=a[s],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(961);_openmrs_esm_home_app=g})();
1
+ var _openmrs_esm_home_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,h,c={1961:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(122),t.e(91)]).then((()=>()=>t(8091)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return c[e](t,t.exports,v),t.loaded=!0,t.exports}v.m=c,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-home-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-home-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.3-pre.434",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),l("react-i18next","12.0.0",(()=>Promise.all([v.e(709),v.e(268)]).then((()=>()=>v(709))))),l("react-router-dom","6.4.3",(()=>Promise.all([v.e(372),v.e(268)]).then((()=>()=>v(372))))),l("react","18.2.0",(()=>v.e(784).then((()=>()=>v(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],h=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?h()|h():2==c?h()&h():c?a(c,r):!h())}return!!h()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),u(e[t][o])},u=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},d={268:()=>p("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(2784))))),906:()=>p("default","@openmrs/esm-framework",[1,4],(()=>v.e(858).then((()=>()=>v(6858))))),8744:()=>p("default","react-router-dom",[1,6],(()=>v.e(372).then((()=>()=>v(372))))),4924:()=>p("default","react-i18next",[1,11],(()=>v.e(709).then((()=>()=>v(709)))))},h={91:[268,906],268:[268],361:[8744],924:[4924]},v.f.consumes=(e,r)=>{v.o(h,e)&&h[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=d[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={177:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|924)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<a.length;s++)o=a[s],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(1961);_openmrs_esm_home_app=g})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-home-app",
3
- "version": "4.0.2",
3
+ "version": "4.0.3-pre.196",
4
4
  "description": "Homepage microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-home-app.js",
6
6
  "main": "src/index.ts",
@@ -45,5 +45,5 @@
45
45
  "react-i18next": "11.x",
46
46
  "react-router-dom": "6.x"
47
47
  },
48
- "gitHead": "011fefac31800486a659de0062315bf8d45223bc"
48
+ "gitHead": "0ad4f11958407b7968c48b52653d737068b50d57"
49
49
  }
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { navigate } from '@openmrs/esm-framework';
3
+ import { SideNavLink } from '@carbon/react';
4
+
5
+ export const spaBasePath = `${window.spaBase}/home`;
6
+
7
+ export interface DashboardLinkConfig {
8
+ name: string;
9
+ title: string;
10
+ renderIcon?: React.ComponentType<any>;
11
+ }
12
+
13
+ export const createDashboardLink = (db: DashboardLinkConfig) => {
14
+ const DashboardLink: React.FC = () => {
15
+ return (
16
+ <SideNavLink
17
+ key={db.name}
18
+ renderIcon={db.renderIcon}
19
+ href={`${spaBasePath}/${db.name}`}
20
+ onClick={(e) => {
21
+ e.preventDefault();
22
+ navigate({ to: `${spaBasePath}/${db.title}` });
23
+ }}
24
+ >
25
+ {db.name}
26
+ </SideNavLink>
27
+ );
28
+ };
29
+ return DashboardLink;
30
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ExtensionSlot } from '@openmrs/esm-framework';
3
+ import styles from './dashboard-view.scss';
4
+
5
+ const DashboardView: React.FC<{ dashboardSlot: string; title: string }> = ({ dashboardSlot, title }) => {
6
+ return (
7
+ <ExtensionSlot
8
+ className={styles.dashboardView}
9
+ extensionSlotName={dashboardSlot}
10
+ state={{ dashboardTitle: title }}
11
+ />
12
+ );
13
+ };
14
+
15
+ export default DashboardView;
@@ -0,0 +1,5 @@
1
+ @use '@carbon/colors';
2
+
3
+ .dashboardView {
4
+ background-color: colors.$white-0;
5
+ }
@@ -1,37 +1,35 @@
1
1
  import React from 'react';
2
- import { useConfig, ExtensionSlot, Extension } from '@openmrs/esm-framework';
3
- import DashboardButton from '../dashboard-button/dashboard-button.component';
4
- import styles from './home-dashboard.css';
2
+ import { useLayoutType, isDesktop, useExtensionStore, ExtensionSlot, useConfig } from '@openmrs/esm-framework';
3
+ import styles from './home-dashboard.scss';
4
+ import { useParams } from 'react-router-dom';
5
+ import { DashboardConfig } from '../types/index';
6
+ import DashboardView from './dashboard-view.component';
5
7
 
6
8
  export default function HomeDashboard() {
7
9
  const config = useConfig();
10
+ const params = useParams();
11
+ const extensionStore = useExtensionStore();
12
+ const layout = useLayoutType();
13
+ const ungroupedDashboards =
14
+ extensionStore.slots['homepage-dashboard-slot']?.assignedExtensions
15
+ .map((e) => e.meta)
16
+ .filter((e) => Object.keys(e).length) || [];
17
+ const dashboards = ungroupedDashboards as Array<DashboardConfig>;
18
+ const currentDashboard = dashboards.find((dashboard) => dashboard.name === params?.view) || dashboards[0];
8
19
 
9
20
  return (
10
21
  <>
11
- <div className={styles.homeDashboard}>
12
- <section className={styles.mainSection}>
13
- <div className={styles.buttonArea}>
14
- <ExtensionSlot extensionSlotName="homepage-dashboard-slot">
15
- <div className={styles.homeButton}>
16
- <Extension />
17
- </div>
18
- </ExtensionSlot>
19
- {config.buttons.list.map((def) => (
20
- <DashboardButton {...def} key={def.label} />
21
- ))}
22
- </div>
23
- <div className={styles.widgetsArea}>
24
- <ExtensionSlot extensionSlotName="homepage-widgets-slot" />
25
- </div>
26
- </section>
27
- </div>
28
- {config.showOpenMRSLogo && (
29
- <section className={styles.logoSection}>
30
- <svg>
31
- <use xlinkHref="#omrs-logo-full-mono" />
32
- </svg>
33
- </section>
34
- )}
22
+ <section className={isDesktop(layout) && styles.dashboardContainer}>
23
+ {isDesktop(layout) && <ExtensionSlot extensionSlotName="home-sidebar-slot" key={layout} />}
24
+ <DashboardView title={currentDashboard?.name} dashboardSlot={currentDashboard?.slot} />
25
+ {config.showOpenMRSLogo && (
26
+ <section className={styles.logoSection}>
27
+ <svg>
28
+ <use xlinkHref="#omrs-logo-full-mono" />
29
+ </svg>
30
+ </section>
31
+ )}
32
+ </section>
35
33
  </>
36
34
  );
37
35
  }
@@ -0,0 +1,24 @@
1
+ @use '@carbon/colors';
2
+ @use '@carbon/styles/scss/spacing';
3
+
4
+ .dashboardContainer {
5
+ margin-left: 16rem;
6
+ background-color: colors.$white-0;
7
+
8
+ & li {
9
+ display: flex;
10
+ }
11
+
12
+ & a {
13
+ width: 100%;
14
+ }
15
+ }
16
+
17
+ li::marker{
18
+ font-size: 0px;
19
+ }
20
+
21
+ .logoSection {
22
+ display: flex;
23
+ justify-content: center;
24
+ }