@openmrs/esm-home-app 3.1.1-pre.71 → 3.1.1-pre.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[779],{779:(e,s,t)=>{t.r(s),t.d(s,{default:()=>m});var n=t(297),a=t(512);function m(){return n.default.createElement(a.ConfigurableLink,{to:"${openmrsBase}/coreapps/systemadministration/systemAdministration.page"},"System Administration")}}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[779],{779:(e,n,s)=>{s.r(n),s.d(n,{default:()=>m});var a=s(297),t=s(512);function m(){return a.default.createElement(t.ConfigurableLink,{to:"${openmrsBase}/admin"},"System Administration")}}}]);
2
2
  //# sourceMappingURL=779.openmrs-esm-home-app.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"779.openmrs-esm-home-app.js","mappings":"gLAGe,SAASA,IACtB,OACE,wBAAC,EAAAC,iBAAD,CAAkBC,GAAG,0EAArB","sources":["webpack://@openmrs/esm-home-app/./src/refapp-links/system-administration.tsx"],"sourcesContent":["import React from 'react';\nimport { ConfigurableLink } from '@openmrs/esm-framework';\n\nexport default function SystemAdministration() {\n return (\n <ConfigurableLink to=\"${openmrsBase}/coreapps/systemadministration/systemAdministration.page\">\n System Administration\n </ConfigurableLink>\n );\n}\n"],"names":["SystemAdministration","ConfigurableLink","to"],"sourceRoot":""}
1
+ {"version":3,"file":"779.openmrs-esm-home-app.js","mappings":"gLAGe,SAASA,IACtB,OAAO,wBAAC,EAAAC,iBAAD,CAAkBC,GAAG,wBAArB","sources":["webpack://@openmrs/esm-home-app/./src/refapp-links/system-administration.tsx"],"sourcesContent":["import React from 'react';\nimport { ConfigurableLink } from '@openmrs/esm-framework';\n\nexport default function SystemAdministration() {\n return <ConfigurableLink to=\"${openmrsBase}/admin\">System Administration</ConfigurableLink>;\n}\n"],"names":["SystemAdministration","ConfigurableLink","to"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- System.register(["@openmrs/esm-framework","react","react-router-dom","react-i18next"],(function(e,t){var n={},r={},o={},i={};return{setters:[function(e){n.ConfigurableLink=e.ConfigurableLink,n.Extension=e.Extension,n.ExtensionSlot=e.ExtensionSlot,n.Type=e.Type,n.UserHasAccess=e.UserHasAccess,n.defineConfigSchema=e.defineConfigSchema,n.getAsyncLifecycle=e.getAsyncLifecycle,n.registerBreadcrumbs=e.registerBreadcrumbs,n.useConfig=e.useConfig,n.validators=e.validators},function(e){r.default=e.default},function(e){o.BrowserRouter=e.BrowserRouter,o.Route=e.Route},function(e){i.useTranslation=e.useTranslation}],execute:function(){e((()=>{var e,a,s={907:(e,t,n)=>{const r=n(541).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},541:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,o=0,i=r.length;o!==t&&i>=0;)"/"===r[--i]&&o++;if(o!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+o+") in the URL path "+e);var a=r.slice(0,i+1);return n.protocol+"//"+n.host+a};Number.isInteger},979:(e,t,n)=>{var r={"./en.json":[574,574],"./es.json":[319,319]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(r),o.id=979,e.exports=o},512:e=>{"use strict";e.exports=n},297:e=>{"use strict";e.exports=r},789:e=>{"use strict";e.exports=i},146:e=>{"use strict";e.exports=o}},l={};function p(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,exports:{}};return s[e](n,n.exports,p),n.exports}p.m=s,p.y=t,p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce(((t,n)=>(p.f[n](e,t),t)),[])),p.u=e=>e+".openmrs-esm-home-app.js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a="@openmrs/esm-home-app:",p.l=(t,n,r,o)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==a+r){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,p.nc&&i.setAttribute("nonce",p.nc),i.setAttribute("data-webpack",a+r),i.src=t),e[t]=[n];var d=(n,r)=>{i.onerror=i.onload=null,clearTimeout(m);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(r))),n)return n(r)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.p="",(()=>{var e={179:0};p.f.j=(t,n)=>{var r=p.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=p.p+p.u(t),a=new Error;p.l(i,(n=>{if(p.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,l=0;if(i.some((t=>0!==e[t]))){for(r in a)p.o(a,r)&&(p.m[r]=a[r]);s&&s(p)}for(t&&t(n);l<i.length;l++)o=i[l],p.o(e,o)&&e[o]&&e[o][0](),e[i[l]]=0},n=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(0,p(907).s)(1),(()=>{"use strict";p.r(c),p.d(c,{backendDependencies:()=>n,importTranslation:()=>r,setupOpenMRS:()=>o});var e=p(512);const t={buttons:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:e.Type.Array,_elements:{label:{_type:e.Type.String},link:{_type:e.Type.String,_validators:[e.validators.isUrl]},requiredPrivilege:{_type:e.Type.String},spa:{_type:e.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[e.validators.isUrlWithTemplateParameters(["patientUuid"])]}},widgets:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show widgets on the home page (including extensions)"}}},n={"webservices.rest":"^2.24.0"},r=p(979);function o(){const n="@openmrs/esm-home-app",r="home",o={featureName:r,moduleName:n};return(0,e.defineConfigSchema)(n,t),(0,e.registerBreadcrumbs)([{path:`${window.spaBase}/home`,title:"Home"}]),{pages:[{load:(0,e.getAsyncLifecycle)((()=>p.e(663).then(p.bind(p,663))),o),route:r,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(314).then(p.bind(p,314))),o),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(347).then(p.bind(p,347))),o),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(990).then(p.bind(p,990))),o),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(410).then(p.bind(p,410))),o),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(212).then(p.bind(p,212))),o),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(898).then(p.bind(p,898))),o),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(779).then(p.bind(p,779))),o),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1}]}}})(),c})())}}}));
1
+ System.register(["@openmrs/esm-framework","react","react-router-dom","react-i18next"],(function(e,t){var n={},r={},i={},o={};return{setters:[function(e){n.ConfigurableLink=e.ConfigurableLink,n.Extension=e.Extension,n.ExtensionSlot=e.ExtensionSlot,n.Type=e.Type,n.UserHasAccess=e.UserHasAccess,n.defineConfigSchema=e.defineConfigSchema,n.getAsyncLifecycle=e.getAsyncLifecycle,n.registerBreadcrumbs=e.registerBreadcrumbs,n.useConfig=e.useConfig,n.validators=e.validators},function(e){r.default=e.default},function(e){i.BrowserRouter=e.BrowserRouter,i.Route=e.Route},function(e){o.useTranslation=e.useTranslation}],execute:function(){e((()=>{var e,a,s={907:(e,t,n)=>{const r=n(541).R;t.s=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},541:(e,t,n)=>{t.R=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,i=0,o=r.length;i!==t&&o>=0;)"/"===r[--o]&&i++;if(i!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+i+") in the URL path "+e);var a=r.slice(0,o+1);return n.protocol+"//"+n.host+a};Number.isInteger},979:(e,t,n)=>{var r={"./en.json":[574,574],"./es.json":[319,319]};function i(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(r),i.id=979,e.exports=i},512:e=>{"use strict";e.exports=n},297:e=>{"use strict";e.exports=r},789:e=>{"use strict";e.exports=o},146:e=>{"use strict";e.exports=i}},l={};function p(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={id:e,exports:{}};return s[e](n,n.exports,p),n.exports}p.m=s,p.y=t,p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.f={},p.e=e=>Promise.all(Object.keys(p.f).reduce(((t,n)=>(p.f[n](e,t),t)),[])),p.u=e=>e+".openmrs-esm-home-app.js",p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},a="@openmrs/esm-home-app:",p.l=(t,n,r,i)=>{if(e[t])e[t].push(n);else{var o,s;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==a+r){o=d;break}}o||(s=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.setAttribute("data-webpack",a+r),o.src=t),e[t]=[n];var u=(n,r)=>{o.onerror=o.onload=null,clearTimeout(f);var i=e[t];if(delete e[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(r))),n)return n(r)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=u.bind(null,o.onerror),o.onload=u.bind(null,o.onload),s&&document.head.appendChild(o)}},p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.p="",(()=>{var e={179:0};p.f.j=(t,n)=>{var r=p.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=p.p+p.u(t),a=new Error;p.l(o,(n=>{if(p.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,l=0;if(o.some((t=>0!==e[t]))){for(r in a)p.o(a,r)&&(p.m[r]=a[r]);s&&s(p)}for(t&&t(n);l<o.length;l++)i=o[l],p.o(e,i)&&e[i]&&e[i][0](),e[o[l]]=0},n=self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c={};return(0,p(907).s)(1),(()=>{"use strict";p.r(c),p.d(c,{backendDependencies:()=>n,importTranslation:()=>r,setupOpenMRS:()=>i});var e=p(512);const t={buttons:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show big buttons on the home page (including extensions)"},list:{_type:e.Type.Array,_elements:{label:{_type:e.Type.String},link:{_type:e.Type.String,_validators:[e.validators.isUrl]},requiredPrivilege:{_type:e.Type.String},spa:{_type:e.Type.Boolean,_default:!1}},_default:[],_description:"Custom buttons to add, which will come after the button extensions"}},search:{patientResultUrl:{_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[e.validators.isUrlWithTemplateParameters(["patientUuid"])]}},widgets:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show widgets on the home page (including extensions)"}}},n={"webservices.rest":"^2.24.0"},r=p(979);function i(){const n="@openmrs/esm-home-app",r="home",i={featureName:r,moduleName:n};return(0,e.defineConfigSchema)(n,t),(0,e.registerBreadcrumbs)([{path:`${window.spaBase}/home`,title:"Home"}]),{pages:[{load:(0,e.getAsyncLifecycle)((()=>p.e(663).then(p.bind(p,663))),i),route:r,online:{canSearch:!0},offline:{canSearch:!1}}],extensions:[{id:"active-visits-link",load:(0,e.getAsyncLifecycle)((()=>p.e(314).then(p.bind(p,314))),i),privilege:"App: coreapps.activeVisits",online:!0,offline:!0},{id:"capture-vitals-link",load:(0,e.getAsyncLifecycle)((()=>p.e(347).then(p.bind(p,347))),i),privilege:"App: referenceapplication.vitals",online:!0,offline:!1},{id:"appointment-scheduling-link",load:(0,e.getAsyncLifecycle)((()=>p.e(990).then(p.bind(p,990))),i),privilege:"App: appointmentschedulingui.home",online:!0,offline:!1},{id:"reports-link",load:(0,e.getAsyncLifecycle)((()=>p.e(410).then(p.bind(p,410))),i),privilege:"View Reports",online:!0,offline:!1},{id:"data-management-link",load:(0,e.getAsyncLifecycle)((()=>p.e(212).then(p.bind(p,212))),i),privilege:"App: coreapps.dataManagement",online:!0,offline:!1},{id:"configure-metadata-link",load:(0,e.getAsyncLifecycle)((()=>p.e(898).then(p.bind(p,898))),i),privilege:"App: coreapps.configuremetadata",online:!0,offline:!1},{id:"system-administration-link",slot:"app-menu-slot",load:(0,e.getAsyncLifecycle)((()=>p.e(779).then(p.bind(p,779))),i),privilege:"App: coreapps.systemAdministration",online:!0,offline:!1}]}}})(),c})())}}}));
2
2
  //# sourceMappingURL=openmrs-esm-home-app.js.map
@@ -5,9 +5,9 @@
5
5
  "initial": true,
6
6
  "entry": true,
7
7
  "recorded": false,
8
- "size": 13770,
8
+ "size": 13596,
9
9
  "sizes": {
10
- "javascript": 7612,
10
+ "javascript": 7438,
11
11
  "runtime": 6158
12
12
  },
13
13
  "names": [
@@ -23,7 +23,7 @@
23
23
  "auxiliaryFiles": [
24
24
  "openmrs-esm-home-app.js.map"
25
25
  ],
26
- "hash": "bf8229009fe9048e243b",
26
+ "hash": "cc9cdcbf2305d573b5f0",
27
27
  "childrenByOrder": {}
28
28
  },
29
29
  {
@@ -188,9 +188,9 @@
188
188
  "initial": false,
189
189
  "entry": false,
190
190
  "recorded": false,
191
- "size": 310,
191
+ "size": 260,
192
192
  "sizes": {
193
- "javascript": 310
193
+ "javascript": 260
194
194
  },
195
195
  "names": [],
196
196
  "idHints": [],
@@ -203,7 +203,7 @@
203
203
  "auxiliaryFiles": [
204
204
  "779.openmrs-esm-home-app.js.map"
205
205
  ],
206
- "hash": "d650bad6f42be3d1f325",
206
+ "hash": "54e846640a443a489981",
207
207
  "childrenByOrder": {}
208
208
  },
209
209
  {
@@ -1 +1 @@
1
- {"version":3,"file":"openmrs-esm-home-app.js","mappings":"moBAAIA,EACAC,E,iBCDJ,MAAMC,EAAmB,SAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9BC,MACJ,uHAIJ,IAA0BP,EACxB,IAAmBG,KAAKC,IACxBF,K,cCuDND,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cAAc,KAC/BF,EAAEG,KAAOL,EAKT,IAHA,IAAIM,EAA6B,MAAlBJ,EAAEI,SAAS,GAAaJ,EAAEI,SAAW,IAAMJ,EAAEI,SACx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AAA,EAAAA,oBAAkB,IAAM,8BAAkCV,GAChEiB,UAAW,eACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,uBACJqI,KAAM,gBACNP,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAA0CV,GACxEiB,UAAW,+BACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,0BACJqI,KAAM,gBACNP,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAA6CV,GAC3EiB,UAAW,kCACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,6BACJqI,KAAM,gBACNP,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAgDV,GAC9EiB,UAAW,qCACXL,QAAQ,EACRE,SAAS,O","sources":["webpack://@openmrs/esm-home-app/webpack/runtime/load script","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-home-app//home/runner/work/openmrs-esm-home/openmrs-esm-home/packages/esm-home-app/translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-home-app/external \"@openmrs/esm-framework\"","webpack://@openmrs/esm-home-app/external \"react\"","webpack://@openmrs/esm-home-app/external \"react-i18next\"","webpack://@openmrs/esm-home-app/external \"react-router-dom\"","webpack://@openmrs/esm-home-app/webpack/bootstrap","webpack://@openmrs/esm-home-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-home-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-home-app/webpack/runtime/define property getters","webpack://@openmrs/esm-home-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-home-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-home-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-home-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-home-app/webpack/runtime/publicPath","webpack://@openmrs/esm-home-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-home-app/./src/openmrs-esm-home-schema.ts","webpack://@openmrs/esm-home-app/./src/index.ts"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-home-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var map = {\n\t\"./en.json\": [\n\t\t574,\n\t\t574\n\t],\n\t\"./es.json\": [\n\t\t319,\n\t\t319\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 979;\nmodule.exports = webpackAsyncContext;","module.exports = __WEBPACK_EXTERNAL_MODULE__512__;","module.exports = __WEBPACK_EXTERNAL_MODULE__297__;","module.exports = __WEBPACK_EXTERNAL_MODULE__789__;","module.exports = __WEBPACK_EXTERNAL_MODULE__146__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".openmrs-esm-home-app.js\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_home_app\"] = self[\"webpackChunk_openmrs_esm_home_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","import { Type, validators } from '@openmrs/esm-framework';\n\nexport const esmHomeSchema = {\n buttons: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description: 'Whether to show big buttons on the home page (including extensions)',\n },\n list: {\n _type: Type.Array,\n _elements: {\n label: { _type: Type.String },\n link: {\n _type: Type.String,\n _validators: [validators.isUrl],\n },\n requiredPrivilege: {\n _type: Type.String,\n },\n spa: {\n _type: Type.Boolean,\n _default: false,\n },\n },\n _default: [],\n _description: 'Custom buttons to add, which will come after the button extensions',\n },\n },\n search: {\n patientResultUrl: {\n _default: '${openmrsSpaBase}/patient/${patientUuid}/chart',\n _description: 'Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}',\n _validators: [validators.isUrlWithTemplateParameters(['patientUuid'])],\n },\n },\n widgets: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description: 'Whether to show widgets on the home page (including extensions)',\n },\n },\n};\n","import { registerBreadcrumbs, defineConfigSchema, getAsyncLifecycle } from '@openmrs/esm-framework';\nimport { esmHomeSchema } from './openmrs-esm-home-schema';\n\nconst backendDependencies = {\n 'webservices.rest': '^2.24.0',\n};\n\nconst importTranslation = require.context('../translations', false, /.json$/, 'lazy');\n\nfunction setupOpenMRS() {\n const moduleName = '@openmrs/esm-home-app';\n const pageName = 'home';\n\n const options = {\n featureName: pageName,\n moduleName,\n };\n\n defineConfigSchema(moduleName, esmHomeSchema);\n\n registerBreadcrumbs([\n {\n path: `${window.spaBase}/${pageName}`,\n title: 'Home',\n },\n ]);\n\n return {\n pages: [\n {\n load: getAsyncLifecycle(() => import('./root.component'), options),\n route: pageName,\n online: {\n canSearch: true,\n },\n offline: {\n canSearch: false,\n },\n },\n ],\n extensions: [\n {\n id: 'active-visits-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/active-visits'), options),\n privilege: 'App: coreapps.activeVisits',\n online: true,\n offline: true,\n },\n {\n id: 'capture-vitals-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/capture-vitals'), options),\n privilege: 'App: referenceapplication.vitals',\n online: true,\n offline: false,\n },\n {\n id: 'appointment-scheduling-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/appointment-scheduling'), options),\n privilege: 'App: appointmentschedulingui.home',\n online: true,\n offline: false,\n },\n {\n id: 'reports-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/reports'), options),\n privilege: 'View Reports',\n online: true,\n offline: false,\n },\n {\n id: 'data-management-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/data-management'), options),\n privilege: 'App: coreapps.dataManagement',\n online: true,\n offline: false,\n },\n {\n id: 'configure-metadata-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/configure-metadata'), options),\n privilege: 'App: coreapps.configuremetadata',\n online: true,\n offline: false,\n },\n {\n id: 'system-administration-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/system-administration'), options),\n privilege: 'App: coreapps.systemAdministration',\n online: true,\n offline: false,\n },\n ],\n };\n}\n\nexport { backendDependencies, importTranslation, setupOpenMRS };\n"],"names":["inProgress","dataWebpackPrefix","resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","code","ids","id","keys","Object","module","__WEBPACK_EXTERNAL_MODULE__512__","__WEBPACK_EXTERNAL_MODULE__297__","__WEBPACK_EXTERNAL_MODULE__789__","__WEBPACK_EXTERNAL_MODULE__146__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","m","y","__system_context__","n","getter","__esModule","d","definition","key","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","obj","prop","prototype","hasOwnProperty","call","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","p","installedChunks","j","installedChunkData","promise","reject","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","autoPublicPath","esmHomeSchema","buttons","enabled","_type","Type","_default","_description","list","_elements","label","link","_validators","validators","requiredPrivilege","spa","search","patientResultUrl","widgets","backendDependencies","importTranslation","require","setupOpenMRS","moduleName","pageName","options","featureName","defineConfigSchema","registerBreadcrumbs","path","window","spaBase","title","pages","load","getAsyncLifecycle","route","online","canSearch","offline","extensions","slot","privilege"],"sourceRoot":""}
1
+ {"version":3,"file":"openmrs-esm-home-app.js","mappings":"moBAAIA,EACAC,E,iBCDJ,MAAMC,EAAmB,SAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9BC,MACJ,uHAIJ,IAA0BP,EACxB,IAAmBG,KAAKC,IACxBF,K,cCuDND,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cAAc,KAC/BF,EAAEG,KAAOL,EAKT,IAHA,IAAIM,EAA6B,MAAlBJ,EAAEI,SAAS,GAAaJ,EAAEI,SAAW,IAAMJ,EAAEI,SACxDC,EAAmB,EACrBC,EAAQF,EAASG,OACZF,IAAqBN,GAAsBO,GAAS,GAE5C,MADFF,IAAWE,IAEpBD,IAIJ,GAAIA,IAAqBN,EACvB,MAAMF,MACJ,iDACEE,EACA,gDACAM,EACA,qBACAP,GAIN,IAAIU,EAAYJ,EAASK,MAAM,EAAGH,EAAQ,GAE1C,OAAON,EAAEU,SAAW,KAAOV,EAAEW,KAAOH,GAOpCI,OAAOC,W,cClFT,IAAIC,EAAM,CACT,YAAa,CACZ,IACA,KAED,YAAa,CACZ,IACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIzB,MAAM,uBAAyBmB,EAAM,KAEjD,MADAM,EAAEC,KAAO,mBACHD,KAIR,IAAIE,EAAMV,EAAIE,GAAMS,EAAKD,EAAI,GAC7B,OAAOP,EAA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AA,qBAAoB,CAClB,CACEC,KAAO,GAAEC,OAAOC,eAChBC,MAAO,UAIJ,CACLC,MAAO,CACL,CACEC,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAA4BV,GAC1DW,MAAOZ,EACPa,OAAQ,CACNC,WAAW,GAEbC,QAAS,CACPD,WAAW,KAIjBE,WAAY,CACV,CACEpI,GAAI,qBACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAwCV,GACtEgB,UAAW,6BACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,sBACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAyCV,GACvEgB,UAAW,mCACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,8BACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAiDV,GAC/EgB,UAAW,oCACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,eACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAkCV,GAChEgB,UAAW,eACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,uBACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAA0CV,GACxEgB,UAAW,+BACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,0BACJ8H,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAA6CV,GAC3EgB,UAAW,kCACXJ,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,6BACJsI,KAAM,gBACNR,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAgDV,GAC9EgB,UAAW,qCACXJ,QAAQ,EACRE,SAAS,O","sources":["webpack://@openmrs/esm-home-app/webpack/runtime/load script","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-home-app//home/runner/work/openmrs-esm-home/openmrs-esm-home/packages/esm-home-app/translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-home-app/external \"@openmrs/esm-framework\"","webpack://@openmrs/esm-home-app/external \"react\"","webpack://@openmrs/esm-home-app/external \"react-i18next\"","webpack://@openmrs/esm-home-app/external \"react-router-dom\"","webpack://@openmrs/esm-home-app/webpack/bootstrap","webpack://@openmrs/esm-home-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-home-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-home-app/webpack/runtime/define property getters","webpack://@openmrs/esm-home-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-home-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-home-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-home-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-home-app/webpack/runtime/publicPath","webpack://@openmrs/esm-home-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-home-app/../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-home-app/./src/openmrs-esm-home-schema.ts","webpack://@openmrs/esm-home-app/./src/index.ts"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-home-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var map = {\n\t\"./en.json\": [\n\t\t574,\n\t\t574\n\t],\n\t\"./es.json\": [\n\t\t319,\n\t\t319\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 979;\nmodule.exports = webpackAsyncContext;","module.exports = __WEBPACK_EXTERNAL_MODULE__512__;","module.exports = __WEBPACK_EXTERNAL_MODULE__297__;","module.exports = __WEBPACK_EXTERNAL_MODULE__789__;","module.exports = __WEBPACK_EXTERNAL_MODULE__146__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".openmrs-esm-home-app.js\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_home_app\"] = self[\"webpackChunk_openmrs_esm_home_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","import { Type, validators } from '@openmrs/esm-framework';\n\nexport const esmHomeSchema = {\n buttons: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description: 'Whether to show big buttons on the home page (including extensions)',\n },\n list: {\n _type: Type.Array,\n _elements: {\n label: { _type: Type.String },\n link: {\n _type: Type.String,\n _validators: [validators.isUrl],\n },\n requiredPrivilege: {\n _type: Type.String,\n },\n spa: {\n _type: Type.Boolean,\n _default: false,\n },\n },\n _default: [],\n _description: 'Custom buttons to add, which will come after the button extensions',\n },\n },\n search: {\n patientResultUrl: {\n _default: '${openmrsSpaBase}/patient/${patientUuid}/chart',\n _description: 'Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}',\n _validators: [validators.isUrlWithTemplateParameters(['patientUuid'])],\n },\n },\n widgets: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description: 'Whether to show widgets on the home page (including extensions)',\n },\n },\n};\n","import { registerBreadcrumbs, defineConfigSchema, getAsyncLifecycle } from '@openmrs/esm-framework';\nimport { esmHomeSchema } from './openmrs-esm-home-schema';\n\nconst backendDependencies = {\n 'webservices.rest': '^2.24.0',\n};\n\nconst importTranslation = require.context('../translations', false, /.json$/, 'lazy');\n\nfunction setupOpenMRS() {\n const moduleName = '@openmrs/esm-home-app';\n const pageName = 'home';\n\n const options = {\n featureName: pageName,\n moduleName,\n };\n\n defineConfigSchema(moduleName, esmHomeSchema);\n\n registerBreadcrumbs([\n {\n path: `${window.spaBase}/${pageName}`,\n title: 'Home',\n },\n ]);\n\n return {\n pages: [\n {\n load: getAsyncLifecycle(() => import('./root.component'), options),\n route: pageName,\n online: {\n canSearch: true,\n },\n offline: {\n canSearch: false,\n },\n },\n ],\n extensions: [\n {\n id: 'active-visits-link',\n load: getAsyncLifecycle(() => import('./refapp-links/active-visits'), options),\n privilege: 'App: coreapps.activeVisits',\n online: true,\n offline: true,\n },\n {\n id: 'capture-vitals-link',\n load: getAsyncLifecycle(() => import('./refapp-links/capture-vitals'), options),\n privilege: 'App: referenceapplication.vitals',\n online: true,\n offline: false,\n },\n {\n id: 'appointment-scheduling-link',\n load: getAsyncLifecycle(() => import('./refapp-links/appointment-scheduling'), options),\n privilege: 'App: appointmentschedulingui.home',\n online: true,\n offline: false,\n },\n {\n id: 'reports-link',\n load: getAsyncLifecycle(() => import('./refapp-links/reports'), options),\n privilege: 'View Reports',\n online: true,\n offline: false,\n },\n {\n id: 'data-management-link',\n load: getAsyncLifecycle(() => import('./refapp-links/data-management'), options),\n privilege: 'App: coreapps.dataManagement',\n online: true,\n offline: false,\n },\n {\n id: 'configure-metadata-link',\n load: getAsyncLifecycle(() => import('./refapp-links/configure-metadata'), options),\n privilege: 'App: coreapps.configuremetadata',\n online: true,\n offline: false,\n },\n {\n id: 'system-administration-link',\n slot: 'app-menu-slot',\n load: getAsyncLifecycle(() => import('./refapp-links/system-administration'), options),\n privilege: 'App: coreapps.systemAdministration',\n online: true,\n offline: false,\n },\n ],\n };\n}\n\nexport { backendDependencies, importTranslation, setupOpenMRS };\n"],"names":["inProgress","dataWebpackPrefix","resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","code","ids","id","keys","Object","module","__WEBPACK_EXTERNAL_MODULE__512__","__WEBPACK_EXTERNAL_MODULE__297__","__WEBPACK_EXTERNAL_MODULE__789__","__WEBPACK_EXTERNAL_MODULE__146__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","m","y","__system_context__","n","getter","__esModule","d","definition","key","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","obj","prop","prototype","hasOwnProperty","call","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","p","installedChunks","j","installedChunkData","promise","reject","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","autoPublicPath","esmHomeSchema","buttons","enabled","_type","Type","_default","_description","list","_elements","label","link","_validators","validators","requiredPrivilege","spa","search","patientResultUrl","widgets","backendDependencies","importTranslation","require","setupOpenMRS","moduleName","pageName","options","featureName","defineConfigSchema","registerBreadcrumbs","path","window","spaBase","title","pages","load","getAsyncLifecycle","route","online","canSearch","offline","extensions","privilege","slot"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-home-app",
3
- "version": "3.1.1-pre.71",
3
+ "version": "3.1.1-pre.88",
4
4
  "description": "Homepage microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-home-app.js",
6
6
  "main": "src/index.ts",
@@ -52,5 +52,5 @@
52
52
  "react-router-dom": "5.x",
53
53
  "rxjs": "6.x"
54
54
  },
55
- "gitHead": "8a9989c26b0bbf7d9b4177e8d815455ef1ca7f03"
55
+ "gitHead": "ddd0f930440a9d419e0ad646e386ecde9a83fcbe"
56
56
  }
package/src/index.ts CHANGED
@@ -41,7 +41,6 @@ function setupOpenMRS() {
41
41
  extensions: [
42
42
  {
43
43
  id: 'active-visits-link',
44
- slot: 'app-menu-slot',
45
44
  load: getAsyncLifecycle(() => import('./refapp-links/active-visits'), options),
46
45
  privilege: 'App: coreapps.activeVisits',
47
46
  online: true,
@@ -49,7 +48,6 @@ function setupOpenMRS() {
49
48
  },
50
49
  {
51
50
  id: 'capture-vitals-link',
52
- slot: 'app-menu-slot',
53
51
  load: getAsyncLifecycle(() => import('./refapp-links/capture-vitals'), options),
54
52
  privilege: 'App: referenceapplication.vitals',
55
53
  online: true,
@@ -57,7 +55,6 @@ function setupOpenMRS() {
57
55
  },
58
56
  {
59
57
  id: 'appointment-scheduling-link',
60
- slot: 'app-menu-slot',
61
58
  load: getAsyncLifecycle(() => import('./refapp-links/appointment-scheduling'), options),
62
59
  privilege: 'App: appointmentschedulingui.home',
63
60
  online: true,
@@ -65,7 +62,6 @@ function setupOpenMRS() {
65
62
  },
66
63
  {
67
64
  id: 'reports-link',
68
- slot: 'app-menu-slot',
69
65
  load: getAsyncLifecycle(() => import('./refapp-links/reports'), options),
70
66
  privilege: 'View Reports',
71
67
  online: true,
@@ -73,7 +69,6 @@ function setupOpenMRS() {
73
69
  },
74
70
  {
75
71
  id: 'data-management-link',
76
- slot: 'app-menu-slot',
77
72
  load: getAsyncLifecycle(() => import('./refapp-links/data-management'), options),
78
73
  privilege: 'App: coreapps.dataManagement',
79
74
  online: true,
@@ -81,7 +76,6 @@ function setupOpenMRS() {
81
76
  },
82
77
  {
83
78
  id: 'configure-metadata-link',
84
- slot: 'app-menu-slot',
85
79
  load: getAsyncLifecycle(() => import('./refapp-links/configure-metadata'), options),
86
80
  privilege: 'App: coreapps.configuremetadata',
87
81
  online: true,
@@ -2,9 +2,5 @@ import React from 'react';
2
2
  import { ConfigurableLink } from '@openmrs/esm-framework';
3
3
 
4
4
  export default function SystemAdministration() {
5
- return (
6
- <ConfigurableLink to="${openmrsBase}/coreapps/systemadministration/systemAdministration.page">
7
- System Administration
8
- </ConfigurableLink>
9
- );
5
+ return <ConfigurableLink to="${openmrsBase}/admin">System Administration</ConfigurableLink>;
10
6
  }