@openmrs/esm-home-app 3.1.2-pre.103 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +27 -29
- package/dist/{499.js → 193.js} +1 -1
- package/dist/347.js +1 -0
- package/dist/372.js +2 -0
- package/dist/{97.js.LICENSE.txt → 372.js.LICENSE.txt} +13 -2
- package/dist/{994.js → 423.js} +1 -1
- package/dist/{520.js → 444.js} +1 -1
- package/dist/{199.js → 572.js} +1 -1
- package/dist/{183.js → 631.js} +1 -1
- package/dist/709.js +1 -1
- package/dist/787.js +1 -0
- package/dist/81.js +1 -0
- package/dist/858.js +1 -1
- package/dist/858.js.LICENSE.txt +2 -2
- package/dist/928.js +1 -0
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-home-app.js +1 -1
- package/dist/openmrs-esm-home-app.js.buildmanifest.json +111 -111
- package/dist/openmrs-esm-home-app.old +1 -1
- package/jest.config.js +23 -0
- package/package.json +7 -12
- package/setupTests.ts +2 -1
- package/src/dashboard/home-dashboard.component.tsx +7 -5
- package/src/dashboard/home-dashboard.test.tsx +55 -42
- package/src/helpers/render-with-router.tsx +1 -1
- package/src/index.ts +5 -1
- package/src/openmrs-esm-home-schema.ts +6 -0
- package/dist/354.js +0 -1
- package/dist/54.js +0 -1
- package/dist/59.js +0 -1
- package/dist/870.js +0 -1
- package/dist/97.js +0 -2
- package/jest.config.json +0 -32
- package/src/set-public-path.ts +0 -3
package/dist/858.js.LICENSE.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see openmrs-esm-
|
|
1
|
+
/*! For license information please see openmrs-esm-api.js.LICENSE.txt */
|
|
2
2
|
|
|
3
|
-
/*! For license information please see openmrs-esm-
|
|
3
|
+
/*! For license information please see openmrs-esm-react-utils.js.LICENSE.txt */
|
package/dist/928.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[928],{928:(e,n,i)=>{"use strict";i.r(n),i.d(n,{backendDependencies:()=>r,importTranslation:()=>l,setupOpenMRS:()=>s,version:()=>a});var t=i(906),o={buttons:{enabled:{_type:t.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:t.Type.Array,_elements:{label:{_type:t.Type.String},link:{_type:t.Type.String,_validators:[t.validators.isUrl]},requiredPrivilege:{_type:t.Type.String},spa:{_type:t.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_type:t.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[t.validators.isUrlWithTemplateParameters(["patientUuid"])]}},showOpenMRSLogo:{_type:t.Type.Boolean,_description:"Whether to display OpenMRS logo on home dashboard",_default:!0}},a="4.0.0",r={"webservices.rest":"^2.24.0"},l=i(979);function s(){var e="@openmrs/esm-home-app",n="home",a={featureName:n,moduleName:e};return(0,t.defineConfigSchema)(e,o),(0,t.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(n),title:"Home"}]),{pages:[{load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(347)]).then(i.bind(i,347))}),a),route:n,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(631)]).then(i.bind(i,631))}),a),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(444)]).then(i.bind(i,106))}),a),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(572)]).then(i.bind(i,572))}),a),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(423)]).then(i.bind(i,423))}),a),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(787)]).then(i.bind(i,787))}),a),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(193)]).then(i.bind(i,193))}),a),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(268),i.e(924),i.e(81)]).then(i.bind(i,81))}),a),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1}]}}},979:(e,n,i)=>{var t={"./en.json":[574,574],"./es.json":[319,319]};function o(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=t[e],o=n[0];return i.e(n[1]).then((()=>i(o)))}o.keys=()=>Object.keys(t),o.id=979,e.exports=o}}]);
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,r,t={
|
|
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]};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 +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(
|
|
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})();
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
"initial": false,
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 378,
|
|
9
9
|
"sizes": {
|
|
10
|
-
"javascript":
|
|
11
|
-
"consume-shared": 42
|
|
10
|
+
"javascript": 378
|
|
12
11
|
},
|
|
13
12
|
"names": [],
|
|
14
13
|
"idHints": [],
|
|
@@ -17,108 +16,104 @@
|
|
|
17
16
|
"main"
|
|
18
17
|
],
|
|
19
18
|
"files": [
|
|
20
|
-
"
|
|
19
|
+
"81.js"
|
|
21
20
|
],
|
|
22
21
|
"auxiliaryFiles": [],
|
|
23
|
-
"hash": "
|
|
22
|
+
"hash": "71c24c561b44d2193d3b",
|
|
24
23
|
"childrenByOrder": {}
|
|
25
24
|
},
|
|
26
25
|
{
|
|
27
26
|
"rendered": true,
|
|
28
|
-
"initial":
|
|
29
|
-
"entry":
|
|
27
|
+
"initial": true,
|
|
28
|
+
"entry": true,
|
|
30
29
|
"recorded": false,
|
|
31
|
-
"size":
|
|
30
|
+
"size": 19439,
|
|
32
31
|
"sizes": {
|
|
33
|
-
"javascript":
|
|
32
|
+
"javascript": 42,
|
|
33
|
+
"share-init": 168,
|
|
34
|
+
"runtime": 19229
|
|
34
35
|
},
|
|
35
|
-
"names": [
|
|
36
|
+
"names": [
|
|
37
|
+
"@openmrs/esm-home-app"
|
|
38
|
+
],
|
|
36
39
|
"idHints": [],
|
|
37
40
|
"runtime": [
|
|
38
|
-
"@openmrs/esm-home-app"
|
|
39
|
-
"main"
|
|
41
|
+
"@openmrs/esm-home-app"
|
|
40
42
|
],
|
|
41
43
|
"files": [
|
|
42
|
-
"
|
|
44
|
+
"openmrs-esm-home-app.js"
|
|
43
45
|
],
|
|
44
46
|
"auxiliaryFiles": [],
|
|
45
|
-
"hash": "
|
|
47
|
+
"hash": "b4e07d7daedbf3e6809d",
|
|
46
48
|
"childrenByOrder": {}
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
"rendered": true,
|
|
50
|
-
"initial":
|
|
51
|
-
"entry":
|
|
52
|
+
"initial": true,
|
|
53
|
+
"entry": true,
|
|
52
54
|
"recorded": false,
|
|
53
|
-
"
|
|
54
|
-
"size": 68158,
|
|
55
|
+
"size": 25324,
|
|
55
56
|
"sizes": {
|
|
56
|
-
"
|
|
57
|
+
"consume-shared": 42,
|
|
58
|
+
"javascript": 5518,
|
|
59
|
+
"share-init": 168,
|
|
60
|
+
"runtime": 19596
|
|
57
61
|
},
|
|
58
|
-
"names": [
|
|
59
|
-
|
|
60
|
-
"vendors"
|
|
62
|
+
"names": [
|
|
63
|
+
"main"
|
|
61
64
|
],
|
|
65
|
+
"idHints": [],
|
|
62
66
|
"runtime": [
|
|
63
|
-
"@openmrs/esm-home-app",
|
|
64
67
|
"main"
|
|
65
68
|
],
|
|
66
69
|
"files": [
|
|
67
|
-
"
|
|
70
|
+
"main.js"
|
|
68
71
|
],
|
|
69
72
|
"auxiliaryFiles": [],
|
|
70
|
-
"hash": "
|
|
73
|
+
"hash": "61b3c54595a6d86d0c90",
|
|
71
74
|
"childrenByOrder": {}
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
77
|
"rendered": true,
|
|
75
|
-
"initial":
|
|
76
|
-
"entry":
|
|
78
|
+
"initial": false,
|
|
79
|
+
"entry": false,
|
|
77
80
|
"recorded": false,
|
|
78
|
-
"size":
|
|
81
|
+
"size": 403,
|
|
79
82
|
"sizes": {
|
|
80
|
-
"javascript":
|
|
81
|
-
"share-init": 168,
|
|
82
|
-
"runtime": 19236
|
|
83
|
+
"javascript": 403
|
|
83
84
|
},
|
|
84
|
-
"names": [
|
|
85
|
-
"@openmrs/esm-home-app"
|
|
86
|
-
],
|
|
85
|
+
"names": [],
|
|
87
86
|
"idHints": [],
|
|
88
87
|
"runtime": [
|
|
89
|
-
"@openmrs/esm-home-app"
|
|
88
|
+
"@openmrs/esm-home-app",
|
|
89
|
+
"main"
|
|
90
90
|
],
|
|
91
91
|
"files": [
|
|
92
|
-
"
|
|
92
|
+
"193.js"
|
|
93
93
|
],
|
|
94
94
|
"auxiliaryFiles": [],
|
|
95
|
-
"hash": "
|
|
95
|
+
"hash": "0da71d9340dcc4ef8d63",
|
|
96
96
|
"childrenByOrder": {}
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"rendered":
|
|
100
|
-
"initial":
|
|
101
|
-
"entry":
|
|
99
|
+
"rendered": false,
|
|
100
|
+
"initial": false,
|
|
101
|
+
"entry": false,
|
|
102
102
|
"recorded": false,
|
|
103
|
-
"
|
|
103
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
104
|
+
"size": 42,
|
|
104
105
|
"sizes": {
|
|
105
|
-
"consume-shared": 42
|
|
106
|
-
"javascript": 5220,
|
|
107
|
-
"share-init": 168,
|
|
108
|
-
"runtime": 19603
|
|
106
|
+
"consume-shared": 42
|
|
109
107
|
},
|
|
110
|
-
"names": [
|
|
111
|
-
"main"
|
|
112
|
-
],
|
|
108
|
+
"names": [],
|
|
113
109
|
"idHints": [],
|
|
114
110
|
"runtime": [
|
|
111
|
+
"@openmrs/esm-home-app",
|
|
115
112
|
"main"
|
|
116
113
|
],
|
|
117
|
-
"files": [
|
|
118
|
-
"main.js"
|
|
119
|
-
],
|
|
114
|
+
"files": [],
|
|
120
115
|
"auxiliaryFiles": [],
|
|
121
|
-
"hash": "
|
|
116
|
+
"hash": "8adaaf9671fcb016f74a",
|
|
122
117
|
"childrenByOrder": {}
|
|
123
118
|
},
|
|
124
119
|
{
|
|
@@ -126,9 +121,9 @@
|
|
|
126
121
|
"initial": false,
|
|
127
122
|
"entry": false,
|
|
128
123
|
"recorded": false,
|
|
129
|
-
"size":
|
|
124
|
+
"size": 148,
|
|
130
125
|
"sizes": {
|
|
131
|
-
"javascript":
|
|
126
|
+
"javascript": 148
|
|
132
127
|
},
|
|
133
128
|
"names": [],
|
|
134
129
|
"idHints": [],
|
|
@@ -137,10 +132,10 @@
|
|
|
137
132
|
"main"
|
|
138
133
|
],
|
|
139
134
|
"files": [
|
|
140
|
-
"
|
|
135
|
+
"319.js"
|
|
141
136
|
],
|
|
142
137
|
"auxiliaryFiles": [],
|
|
143
|
-
"hash": "
|
|
138
|
+
"hash": "8153e0089eb79cd65198",
|
|
144
139
|
"childrenByOrder": {}
|
|
145
140
|
},
|
|
146
141
|
{
|
|
@@ -148,9 +143,10 @@
|
|
|
148
143
|
"initial": false,
|
|
149
144
|
"entry": false,
|
|
150
145
|
"recorded": false,
|
|
151
|
-
"size":
|
|
146
|
+
"size": 18802,
|
|
152
147
|
"sizes": {
|
|
153
|
-
"javascript":
|
|
148
|
+
"javascript": 18760,
|
|
149
|
+
"consume-shared": 42
|
|
154
150
|
},
|
|
155
151
|
"names": [],
|
|
156
152
|
"idHints": [],
|
|
@@ -159,31 +155,35 @@
|
|
|
159
155
|
"main"
|
|
160
156
|
],
|
|
161
157
|
"files": [
|
|
162
|
-
"
|
|
158
|
+
"347.js"
|
|
163
159
|
],
|
|
164
160
|
"auxiliaryFiles": [],
|
|
165
|
-
"hash": "
|
|
161
|
+
"hash": "977da0f9f4525585ab1e",
|
|
166
162
|
"childrenByOrder": {}
|
|
167
163
|
},
|
|
168
164
|
{
|
|
169
|
-
"rendered":
|
|
165
|
+
"rendered": true,
|
|
170
166
|
"initial": false,
|
|
171
167
|
"entry": false,
|
|
172
168
|
"recorded": false,
|
|
173
|
-
"reason": "reused as split chunk (cache group:
|
|
174
|
-
"size":
|
|
169
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
170
|
+
"size": 190348,
|
|
175
171
|
"sizes": {
|
|
176
|
-
"
|
|
172
|
+
"javascript": 190348
|
|
177
173
|
},
|
|
178
174
|
"names": [],
|
|
179
|
-
"idHints": [
|
|
175
|
+
"idHints": [
|
|
176
|
+
"vendors"
|
|
177
|
+
],
|
|
180
178
|
"runtime": [
|
|
181
179
|
"@openmrs/esm-home-app",
|
|
182
180
|
"main"
|
|
183
181
|
],
|
|
184
|
-
"files": [
|
|
182
|
+
"files": [
|
|
183
|
+
"372.js"
|
|
184
|
+
],
|
|
185
185
|
"auxiliaryFiles": [],
|
|
186
|
-
"hash": "
|
|
186
|
+
"hash": "76624eb23ffec0f55b50",
|
|
187
187
|
"childrenByOrder": {}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
@@ -191,9 +191,9 @@
|
|
|
191
191
|
"initial": false,
|
|
192
192
|
"entry": false,
|
|
193
193
|
"recorded": false,
|
|
194
|
-
"size":
|
|
194
|
+
"size": 365,
|
|
195
195
|
"sizes": {
|
|
196
|
-
"javascript":
|
|
196
|
+
"javascript": 365
|
|
197
197
|
},
|
|
198
198
|
"names": [],
|
|
199
199
|
"idHints": [],
|
|
@@ -202,10 +202,10 @@
|
|
|
202
202
|
"main"
|
|
203
203
|
],
|
|
204
204
|
"files": [
|
|
205
|
-
"
|
|
205
|
+
"423.js"
|
|
206
206
|
],
|
|
207
207
|
"auxiliaryFiles": [],
|
|
208
|
-
"hash": "
|
|
208
|
+
"hash": "0e96d766ddccc298ce0a",
|
|
209
209
|
"childrenByOrder": {}
|
|
210
210
|
},
|
|
211
211
|
{
|
|
@@ -213,21 +213,21 @@
|
|
|
213
213
|
"initial": false,
|
|
214
214
|
"entry": false,
|
|
215
215
|
"recorded": false,
|
|
216
|
-
"size":
|
|
216
|
+
"size": 421,
|
|
217
217
|
"sizes": {
|
|
218
|
-
"
|
|
219
|
-
"javascript": 5220
|
|
218
|
+
"javascript": 421
|
|
220
219
|
},
|
|
221
220
|
"names": [],
|
|
222
221
|
"idHints": [],
|
|
223
222
|
"runtime": [
|
|
224
|
-
"@openmrs/esm-home-app"
|
|
223
|
+
"@openmrs/esm-home-app",
|
|
224
|
+
"main"
|
|
225
225
|
],
|
|
226
226
|
"files": [
|
|
227
|
-
"
|
|
227
|
+
"444.js"
|
|
228
228
|
],
|
|
229
229
|
"auxiliaryFiles": [],
|
|
230
|
-
"hash": "
|
|
230
|
+
"hash": "ff98c3cd69084ac45935",
|
|
231
231
|
"childrenByOrder": {}
|
|
232
232
|
},
|
|
233
233
|
{
|
|
@@ -235,9 +235,9 @@
|
|
|
235
235
|
"initial": false,
|
|
236
236
|
"entry": false,
|
|
237
237
|
"recorded": false,
|
|
238
|
-
"size":
|
|
238
|
+
"size": 409,
|
|
239
239
|
"sizes": {
|
|
240
|
-
"javascript":
|
|
240
|
+
"javascript": 409
|
|
241
241
|
},
|
|
242
242
|
"names": [],
|
|
243
243
|
"idHints": [],
|
|
@@ -246,10 +246,10 @@
|
|
|
246
246
|
"main"
|
|
247
247
|
],
|
|
248
248
|
"files": [
|
|
249
|
-
"
|
|
249
|
+
"572.js"
|
|
250
250
|
],
|
|
251
251
|
"auxiliaryFiles": [],
|
|
252
|
-
"hash": "
|
|
252
|
+
"hash": "ceae945634c56500dcf5",
|
|
253
253
|
"childrenByOrder": {}
|
|
254
254
|
},
|
|
255
255
|
{
|
|
@@ -257,9 +257,9 @@
|
|
|
257
257
|
"initial": false,
|
|
258
258
|
"entry": false,
|
|
259
259
|
"recorded": false,
|
|
260
|
-
"size":
|
|
260
|
+
"size": 267,
|
|
261
261
|
"sizes": {
|
|
262
|
-
"javascript":
|
|
262
|
+
"javascript": 267
|
|
263
263
|
},
|
|
264
264
|
"names": [],
|
|
265
265
|
"idHints": [],
|
|
@@ -268,10 +268,10 @@
|
|
|
268
268
|
"main"
|
|
269
269
|
],
|
|
270
270
|
"files": [
|
|
271
|
-
"
|
|
271
|
+
"574.js"
|
|
272
272
|
],
|
|
273
273
|
"auxiliaryFiles": [],
|
|
274
|
-
"hash": "
|
|
274
|
+
"hash": "07cceefbaf9fdcd90d44",
|
|
275
275
|
"childrenByOrder": {}
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -279,9 +279,9 @@
|
|
|
279
279
|
"initial": false,
|
|
280
280
|
"entry": false,
|
|
281
281
|
"recorded": false,
|
|
282
|
-
"size":
|
|
282
|
+
"size": 401,
|
|
283
283
|
"sizes": {
|
|
284
|
-
"javascript":
|
|
284
|
+
"javascript": 401
|
|
285
285
|
},
|
|
286
286
|
"names": [],
|
|
287
287
|
"idHints": [],
|
|
@@ -290,10 +290,10 @@
|
|
|
290
290
|
"main"
|
|
291
291
|
],
|
|
292
292
|
"files": [
|
|
293
|
-
"
|
|
293
|
+
"631.js"
|
|
294
294
|
],
|
|
295
295
|
"auxiliaryFiles": [],
|
|
296
|
-
"hash": "
|
|
296
|
+
"hash": "5e71ec5dc1d932a03bb6",
|
|
297
297
|
"childrenByOrder": {}
|
|
298
298
|
},
|
|
299
299
|
{
|
|
@@ -302,9 +302,9 @@
|
|
|
302
302
|
"entry": false,
|
|
303
303
|
"recorded": false,
|
|
304
304
|
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
305
|
-
"size":
|
|
305
|
+
"size": 39290,
|
|
306
306
|
"sizes": {
|
|
307
|
-
"javascript":
|
|
307
|
+
"javascript": 39290
|
|
308
308
|
},
|
|
309
309
|
"names": [],
|
|
310
310
|
"idHints": [
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"709.js"
|
|
319
319
|
],
|
|
320
320
|
"auxiliaryFiles": [],
|
|
321
|
-
"hash": "
|
|
321
|
+
"hash": "c6a99cd1dd31d14a3578",
|
|
322
322
|
"childrenByOrder": {}
|
|
323
323
|
},
|
|
324
324
|
{
|
|
@@ -348,24 +348,21 @@
|
|
|
348
348
|
"initial": false,
|
|
349
349
|
"entry": false,
|
|
350
350
|
"recorded": false,
|
|
351
|
-
"
|
|
352
|
-
"size": 1393327,
|
|
351
|
+
"size": 398,
|
|
353
352
|
"sizes": {
|
|
354
|
-
"javascript":
|
|
353
|
+
"javascript": 398
|
|
355
354
|
},
|
|
356
355
|
"names": [],
|
|
357
|
-
"idHints": [
|
|
358
|
-
"vendors"
|
|
359
|
-
],
|
|
356
|
+
"idHints": [],
|
|
360
357
|
"runtime": [
|
|
361
358
|
"@openmrs/esm-home-app",
|
|
362
359
|
"main"
|
|
363
360
|
],
|
|
364
361
|
"files": [
|
|
365
|
-
"
|
|
362
|
+
"787.js"
|
|
366
363
|
],
|
|
367
364
|
"auxiliaryFiles": [],
|
|
368
|
-
"hash": "
|
|
365
|
+
"hash": "b2401cd89c5bfeec0717",
|
|
369
366
|
"childrenByOrder": {}
|
|
370
367
|
},
|
|
371
368
|
{
|
|
@@ -373,21 +370,24 @@
|
|
|
373
370
|
"initial": false,
|
|
374
371
|
"entry": false,
|
|
375
372
|
"recorded": false,
|
|
376
|
-
"
|
|
373
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
374
|
+
"size": 407371,
|
|
377
375
|
"sizes": {
|
|
378
|
-
"javascript":
|
|
376
|
+
"javascript": 407371
|
|
379
377
|
},
|
|
380
378
|
"names": [],
|
|
381
|
-
"idHints": [
|
|
379
|
+
"idHints": [
|
|
380
|
+
"vendors"
|
|
381
|
+
],
|
|
382
382
|
"runtime": [
|
|
383
383
|
"@openmrs/esm-home-app",
|
|
384
384
|
"main"
|
|
385
385
|
],
|
|
386
386
|
"files": [
|
|
387
|
-
"
|
|
387
|
+
"858.js"
|
|
388
388
|
],
|
|
389
389
|
"auxiliaryFiles": [],
|
|
390
|
-
"hash": "
|
|
390
|
+
"hash": "3998107d44462b24182b",
|
|
391
391
|
"childrenByOrder": {}
|
|
392
392
|
},
|
|
393
393
|
{
|
|
@@ -416,21 +416,21 @@
|
|
|
416
416
|
"initial": false,
|
|
417
417
|
"entry": false,
|
|
418
418
|
"recorded": false,
|
|
419
|
-
"size":
|
|
419
|
+
"size": 5560,
|
|
420
420
|
"sizes": {
|
|
421
|
-
"
|
|
421
|
+
"consume-shared": 42,
|
|
422
|
+
"javascript": 5518
|
|
422
423
|
},
|
|
423
424
|
"names": [],
|
|
424
425
|
"idHints": [],
|
|
425
426
|
"runtime": [
|
|
426
|
-
"@openmrs/esm-home-app"
|
|
427
|
-
"main"
|
|
427
|
+
"@openmrs/esm-home-app"
|
|
428
428
|
],
|
|
429
429
|
"files": [
|
|
430
|
-
"
|
|
430
|
+
"928.js"
|
|
431
431
|
],
|
|
432
432
|
"auxiliaryFiles": [],
|
|
433
|
-
"hash": "
|
|
433
|
+
"hash": "eaf83968a02d99ef6f86",
|
|
434
434
|
"childrenByOrder": {}
|
|
435
435
|
}
|
|
436
436
|
]
|
|
@@ -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(
|
|
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})();
|
package/jest.config.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
transform: {
|
|
3
|
+
'^.+\\.tsx?$': '@swc/jest',
|
|
4
|
+
},
|
|
5
|
+
transformIgnorePatterns: ['/node_modules/(?!@openmrs)'],
|
|
6
|
+
moduleNameMapper: {
|
|
7
|
+
'\\.(s?css)$': 'identity-obj-proxy',
|
|
8
|
+
'@openmrs/esm-framework': '@openmrs/esm-framework/mock',
|
|
9
|
+
'lodash-es': 'lodash',
|
|
10
|
+
},
|
|
11
|
+
collectCoverageFrom: [
|
|
12
|
+
'**/src/**/*.tsx',
|
|
13
|
+
'!**/node_modules/**',
|
|
14
|
+
'!**/vendor/**',
|
|
15
|
+
'!**/src/**/*.test.*',
|
|
16
|
+
'!**/src/declarations.d.tsx',
|
|
17
|
+
],
|
|
18
|
+
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
|
|
19
|
+
testEnvironment: 'jsdom',
|
|
20
|
+
testEnvironmentOptions: {
|
|
21
|
+
url: 'http://localhost/',
|
|
22
|
+
},
|
|
23
|
+
};
|