@openmrs/esm-home-app 3.1.1 → 3.1.2-pre.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.turbo/turbo-build.log +29 -0
  2. package/__mocks__/react-i18next.mock.js +49 -0
  3. package/dist/183.js +1 -0
  4. package/dist/199.js +1 -0
  5. package/dist/{319.openmrs-esm-home-app.js → 319.js} +0 -0
  6. package/dist/354.js +1 -0
  7. package/dist/499.js +1 -0
  8. package/dist/520.js +1 -0
  9. package/dist/54.js +1 -0
  10. package/dist/574.js +1 -0
  11. package/dist/59.js +1 -0
  12. package/dist/709.js +1 -0
  13. package/dist/784.js +2 -0
  14. package/dist/784.js.LICENSE.txt +9 -0
  15. package/dist/858.js +2 -0
  16. package/dist/858.js.LICENSE.txt +3 -0
  17. package/dist/870.js +1 -0
  18. package/dist/97.js +2 -0
  19. package/dist/97.js.LICENSE.txt +21 -0
  20. package/dist/994.js +1 -0
  21. package/dist/main.js +1 -0
  22. package/dist/openmrs-esm-home-app.js +1 -2
  23. package/dist/openmrs-esm-home-app.js.buildmanifest.json +248 -67
  24. package/dist/openmrs-esm-home-app.old +1 -0
  25. package/jest.config.json +32 -0
  26. package/package.json +8 -10
  27. package/setupTests.ts +13 -0
  28. package/src/dashboard/home-dashboard.component.tsx +15 -27
  29. package/src/dashboard/{home-dashboard.component.css → home-dashboard.css} +0 -0
  30. package/src/dashboard/home-dashboard.test.tsx +19 -19
  31. package/src/dashboard-button/dashboard-button.component.tsx +1 -1
  32. package/src/dashboard-button/{dashboard-button.component.css → dashboard-button.css} +0 -0
  33. package/src/helpers/render-with-router.tsx +4 -7
  34. package/src/index.ts +0 -6
  35. package/src/openmrs-esm-home-schema.ts +0 -7
  36. package/src/refapp-links/active-visits.tsx +4 -1
  37. package/src/refapp-links/appointment-scheduling.tsx +6 -1
  38. package/src/refapp-links/capture-vitals.tsx +4 -1
  39. package/src/refapp-links/configure-metadata.tsx +6 -1
  40. package/src/refapp-links/data-management.tsx +6 -1
  41. package/src/refapp-links/reports.tsx +6 -1
  42. package/src/refapp-links/system-administration.tsx +4 -3
  43. package/src/root.component.tsx +5 -7
  44. package/src/root.scss +0 -1
  45. package/src/{root.component.test.tsx → root.test.tsx} +2 -5
  46. package/translations/en.json +7 -10
  47. package/babel.config.json +0 -10
  48. package/dist/212.openmrs-esm-home-app.js +0 -2
  49. package/dist/212.openmrs-esm-home-app.js.map +0 -1
  50. package/dist/314.openmrs-esm-home-app.js +0 -2
  51. package/dist/314.openmrs-esm-home-app.js.map +0 -1
  52. package/dist/347.openmrs-esm-home-app.js +0 -2
  53. package/dist/347.openmrs-esm-home-app.js.map +0 -1
  54. package/dist/410.openmrs-esm-home-app.js +0 -2
  55. package/dist/410.openmrs-esm-home-app.js.map +0 -1
  56. package/dist/574.openmrs-esm-home-app.js +0 -1
  57. package/dist/663.openmrs-esm-home-app.js +0 -2
  58. package/dist/663.openmrs-esm-home-app.js.map +0 -1
  59. package/dist/779.openmrs-esm-home-app.js +0 -2
  60. package/dist/779.openmrs-esm-home-app.js.map +0 -1
  61. package/dist/898.openmrs-esm-home-app.js +0 -2
  62. package/dist/898.openmrs-esm-home-app.js.map +0 -1
  63. package/dist/990.openmrs-esm-home-app.js +0 -2
  64. package/dist/990.openmrs-esm-home-app.js.map +0 -1
  65. package/dist/openmrs-esm-home-app.js.map +0 -1
  66. package/src/assets/placeholder.png +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"663.openmrs-esm-home-app.js","mappings":"4NAQa,IAAI,IALH,CAEd,OAAiB,OACjB,WAAoB,IAMpB,QAAe,YAAkB,GCFlB,SAASA,EAAgBC,GACtC,MAAMC,EAAa,iCAAgCC,EAAAA,OAC7CC,EAAQ,+BAAKF,UAAWC,EAAAA,eAAuBF,EAAMG,OACrDC,EACJ,wBAAC,EAAAC,iBAAD,CAAkBJ,UAAWA,EAAWK,GAAIN,EAAMO,MAC/CJ,GAIL,OAAOH,EAA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TA,EAAO2C,QAAQpH,QAAU6E,UAAYA,SAAS4D,MAAQzI,OAAO0I,OAGxDjE,IAgOT,IAAIkE,EAAkBpD,EADtB/F,EAAOA,GAAQ,GAC0BgG,GACzC,OAAO,SAAgBoD,GAGrB,GAFAA,EAAUA,GAAW,GAE2B,mBAA5C1F,OAAOC,UAAUtC,SAAS4B,KAAKmG,GAAnC,CAIA,IAAK,IAAIzH,EAAI,EAAGA,EAAIwH,EAAgBnH,OAAQL,IAAK,CAC/C,IACI0E,EAAQT,EADKuD,EAAgBxH,IAEjCgE,EAAYU,GAAOK,aAKrB,IAFA,IAAI2C,EAAqBtD,EAAaqD,EAASpD,GAEtC/D,EAAK,EAAGA,EAAKkH,EAAgBnH,OAAQC,IAAM,CAClD,IAEIqH,EAAS1D,EAFKuD,EAAgBlH,IAIK,IAAnC0D,EAAY2D,GAAQ5C,aACtBf,EAAY2D,GAAQ3C,UAEpBhB,EAAY4D,OAAOD,EAAQ,IAI/BH,EAAkBE","sources":["webpack://@openmrs/esm-home-app/./src/dashboard-button/dashboard-button.component.css?965b","webpack://@openmrs/esm-home-app/./src/dashboard-button/dashboard-button.component.tsx","webpack://@openmrs/esm-home-app/./src/dashboard/home-dashboard.component.css?e982","webpack://@openmrs/esm-home-app/./src/dashboard/home-dashboard.component.tsx","webpack://@openmrs/esm-home-app/./src/root.component.tsx","webpack://@openmrs/esm-home-app/./src/dashboard-button/dashboard-button.component.css","webpack://@openmrs/esm-home-app/./src/dashboard/home-dashboard.component.css","webpack://@openmrs/esm-home-app/../../node_modules/css-loader/dist/runtime/api.js","webpack://@openmrs/esm-home-app/../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@openmrs/esm-home-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"],"sourcesContent":["import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./dashboard-button.component.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { ConfigurableLink, UserHasAccess } from '@openmrs/esm-framework';\nimport styles from './dashboard-button.component.css';\n\nexport interface DashboardButtonProps {\n label: string;\n link: string;\n requiredPrivilege: string | void;\n}\n\nexport default function DashboardButton(props: DashboardButtonProps) {\n const className = `omrs-link omrs-filled-neutral ${styles.link}`;\n const label = <div className={styles.textContainer}>{props.label}</div>;\n const button = (\n <ConfigurableLink className={className} to={props.link}>\n {label}\n </ConfigurableLink>\n );\n\n return props.requiredPrivilege ? <UserHasAccess privilege={props.requiredPrivilege}>{button}</UserHasAccess> : button;\n}\n","import api from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import content from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./home-dashboard.component.css\";\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nexport default content.locals || {};","import React from 'react';\nimport { match } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport { useConfig, ExtensionSlot, Extension } from '@openmrs/esm-framework';\nimport DashboardButton from '../dashboard-button/dashboard-button.component';\nimport styles from './home-dashboard.component.css';\n\nexport interface HomeDashboardProps {\n match: match;\n canSearch: boolean;\n}\n\nexport default function HomeDashboard({ match, canSearch }: HomeDashboardProps) {\n const config = useConfig();\n const { t } = useTranslation();\n\n return (\n <>\n <div className={styles.homeDashboard}>\n <section className={styles.mainSection}>\n {config.buttons.enabled && (\n <div className={styles.buttonArea}>\n <ExtensionSlot extensionSlotName=\"homepage-dashboard-slot\">\n <div className={styles.homeButton}>\n <Extension />\n </div>\n </ExtensionSlot>\n {config.buttons.list.map((def) => (\n <DashboardButton {...def} key={def.label} />\n ))}\n </div>\n )}\n {config.widgets.enabled && (\n <div className={styles.widgetsArea}>\n <ExtensionSlot extensionSlotName=\"homepage-widgets-slot\" />\n </div>\n )}\n </section>\n </div>\n <section className={styles.logoSection}>\n <svg>\n <use xlinkHref=\"#omrs-logo-full-mono\" />\n </svg>\n </section>\n </>\n );\n}\n","import React from 'react';\nimport { BrowserRouter, Redirect, Route } from 'react-router-dom';\nimport HomeDashboard from './dashboard/home-dashboard.component';\n\ninterface RootProps {\n canSearch: boolean;\n}\n\nconst Root: React.FC<RootProps> = ({ canSearch = true }) => (\n <BrowserRouter basename={window.spaBase}>\n <main className=\"omrs-main-content\">\n <Route path=\"/home\" exact component={(props) => <HomeDashboard canSearch={canSearch} {...props} />} />\n </main>\n </BrowserRouter>\n);\n\nexport default Root;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/* Variables defined in home-dashboard.component.css */\\n\\n.-esm-home__dashboard-button-component__link___1b0_U {\\n height: 7rem;\\n width: var(--dashboard-button-width);\\n margin: var(--dashboard-button-margin);\\n justify-content: center;\\n}\\n\\n.-esm-home__dashboard-button-component__textContainer___Fp8J1 {\\n display: inline-flex;\\n min-width: 0;\\n white-space: normal;\\n line-height: 1.5;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/dashboard-button/dashboard-button.component.css\"],\"names\":[],\"mappings\":\"AAAA,sDAAsD;;AAEtD;EACE,YAAY;EACZ,oCAAoC;EACpC,sCAAsC;EACtC,uBAAuB;AACzB;;AAEA;EACE,oBAAoB;EACpB,YAAY;EACZ,mBAAmB;EACnB,gBAAgB;AAClB\",\"sourcesContent\":[\"/* Variables defined in home-dashboard.component.css */\\n\\n.link {\\n height: 7rem;\\n width: var(--dashboard-button-width);\\n margin: var(--dashboard-button-margin);\\n justify-content: center;\\n}\\n\\n.textContainer {\\n display: inline-flex;\\n min-width: 0;\\n white-space: normal;\\n line-height: 1.5;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"link\": \"-esm-home__dashboard-button-component__link___1b0_U\",\n\t\"textContainer\": \"-esm-home__dashboard-button-component__textContainer___Fp8J1\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":root {\\n --dashboard-button-width: 10rem;\\n --dashboard-button-margin: 0.25rem;\\n}\\n\\n.-esm-home__home-dashboard-component__homeDashboard___3mnwW {\\n display: flex;\\n justify-content: center;\\n margin: 0 auto;\\n}\\n\\n.omrs-breakpoint-gt-phone .-esm-home__home-dashboard-component__homeDashboard___3mnwW {\\n height: calc(100vh - var(--omrs-topnav-height) - 10rem);\\n}\\n\\n.-esm-home__home-dashboard-component__mainSection___rph1T {\\n min-height: 1vh;\\n display: flex;\\n flex-wrap: wrap;\\n justify-content: center;\\n align-content: flex-start;\\n flex-grow: 1;\\n}\\n\\n.-esm-home__home-dashboard-component__searchLinkArea___3dQ9C {\\n display: flex;\\n flex-basis: 100%;\\n justify-content: center;\\n margin: 2rem auto;\\n}\\n\\n.-esm-home__home-dashboard-component__buttonArea___1X1xb > div {\\n min-height: 1vh;\\n display: flex;\\n flex-wrap: wrap;\\n justify-content: left;\\n align-items: center;\\n flex-grow: 1;\\n}\\n\\n.-esm-home__home-dashboard-component__label___1aL1c {\\n color: var(--omrs-color-interaction);\\n margin-left: 0.25rem;\\n text-align: center;\\n}\\n\\n.-esm-home__home-dashboard-component__logoSection___3boSj {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100%;\\n}\\n\\n.-esm-home__home-dashboard-component__break___2J1JH {\\n height: 0;\\n flex-basis: 100%;\\n}\\n\\n.omrs-breakpoint-lt-tablet .-esm-home__home-dashboard-component__dashboardLink___3mwkQ {\\n width: 80%;\\n}\\n\\n.omrs-breakpoint-gt-phone .-esm-home__home-dashboard-component__dashboardLink___3mwkQ {\\n width: 22rem;\\n}\\n\\n.omrs-breakpoint-lt-tablet .-esm-home__home-dashboard-component__buttonArea___1X1xb {\\n max-width: calc(\\n var(--dashboard-button-width) * 2 + var(--dashboard-button-margin) * 4\\n );\\n}\\n\\n.omrs-breakpoint-gt-phone .-esm-home__home-dashboard-component__buttonArea___1X1xb {\\n max-width: calc(\\n var(--dashboard-button-width) * 3 + var(--dashboard-button-margin) * 6\\n );\\n}\\n\\n.omrs-breakpoint-gt-tablet .-esm-home__home-dashboard-component__buttonArea___1X1xb {\\n max-width: calc(\\n var(--dashboard-button-width) * 4 + var(--dashboard-button-margin) * 8\\n );\\n}\\n\\n.-esm-home__home-dashboard-component__homeButton___YfZfF a {\\n height: 7rem;\\n width: var(--dashboard-button-width);\\n margin: var(--dashboard-button-margin);\\n justify-content: center;\\n white-space: normal;\\n}\\n\\n.-esm-home__home-dashboard-component__widgetsArea___11xrt {\\n margin-top: 2rem;\\n padding: 0 1rem;\\n width: 100%;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/dashboard/home-dashboard.component.css\"],\"names\":[],\"mappings\":\"AAAA;EACE,+BAA+B;EAC/B,kCAAkC;AACpC;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,cAAc;AAChB;;AAEA;EACE,uDAAuD;AACzD;;AAEA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,uBAAuB;EACvB,yBAAyB;EACzB,YAAY;AACd;;AAEA;EACE,aAAa;EACb,gBAAgB;EAChB,uBAAuB;EACvB,iBAAiB;AACnB;;AAEA;EACE,eAAe;EACf,aAAa;EACb,eAAe;EACf,qBAAqB;EACrB,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,oCAAoC;EACpC,oBAAoB;EACpB,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;AACd;;AAEA;EACE,SAAS;EACT,gBAAgB;AAClB;;AAEA;EACE,UAAU;AACZ;;AAEA;EACE,YAAY;AACd;;AAEA;EACE;;GAEC;AACH;;AAEA;EACE;;GAEC;AACH;;AAEA;EACE;;GAEC;AACH;;AAEA;EACE,YAAY;EACZ,oCAAoC;EACpC,sCAAsC;EACtC,uBAAuB;EACvB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,WAAW;AACb\",\"sourcesContent\":[\":root {\\n --dashboard-button-width: 10rem;\\n --dashboard-button-margin: 0.25rem;\\n}\\n\\n.homeDashboard {\\n display: flex;\\n justify-content: center;\\n margin: 0 auto;\\n}\\n\\n:global(.omrs-breakpoint-gt-phone) .homeDashboard {\\n height: calc(100vh - var(--omrs-topnav-height) - 10rem);\\n}\\n\\n.mainSection {\\n min-height: 1vh;\\n display: flex;\\n flex-wrap: wrap;\\n justify-content: center;\\n align-content: flex-start;\\n flex-grow: 1;\\n}\\n\\n.searchLinkArea {\\n display: flex;\\n flex-basis: 100%;\\n justify-content: center;\\n margin: 2rem auto;\\n}\\n\\n.buttonArea > div {\\n min-height: 1vh;\\n display: flex;\\n flex-wrap: wrap;\\n justify-content: left;\\n align-items: center;\\n flex-grow: 1;\\n}\\n\\n.label {\\n color: var(--omrs-color-interaction);\\n margin-left: 0.25rem;\\n text-align: center;\\n}\\n\\n.logoSection {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100%;\\n}\\n\\n.break {\\n height: 0;\\n flex-basis: 100%;\\n}\\n\\n:global(.omrs-breakpoint-lt-tablet) .dashboardLink {\\n width: 80%;\\n}\\n\\n:global(.omrs-breakpoint-gt-phone) .dashboardLink {\\n width: 22rem;\\n}\\n\\n:global(.omrs-breakpoint-lt-tablet) .buttonArea {\\n max-width: calc(\\n var(--dashboard-button-width) * 2 + var(--dashboard-button-margin) * 4\\n );\\n}\\n\\n:global(.omrs-breakpoint-gt-phone) .buttonArea {\\n max-width: calc(\\n var(--dashboard-button-width) * 3 + var(--dashboard-button-margin) * 6\\n );\\n}\\n\\n:global(.omrs-breakpoint-gt-tablet) .buttonArea {\\n max-width: calc(\\n var(--dashboard-button-width) * 4 + var(--dashboard-button-margin) * 8\\n );\\n}\\n\\n.homeButton a {\\n height: 7rem;\\n width: var(--dashboard-button-width);\\n margin: var(--dashboard-button-margin);\\n justify-content: center;\\n white-space: normal;\\n}\\n\\n.widgetsArea {\\n margin-top: 2rem;\\n padding: 0 1rem;\\n width: 100%;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"homeDashboard\": \"-esm-home__home-dashboard-component__homeDashboard___3mnwW\",\n\t\"mainSection\": \"-esm-home__home-dashboard-component__mainSection___rph1T\",\n\t\"searchLinkArea\": \"-esm-home__home-dashboard-component__searchLinkArea___3dQ9C\",\n\t\"buttonArea\": \"-esm-home__home-dashboard-component__buttonArea___1X1xb\",\n\t\"label\": \"-esm-home__home-dashboard-component__label___1aL1c\",\n\t\"logoSection\": \"-esm-home__home-dashboard-component__logoSection___3boSj\",\n\t\"break\": \"-esm-home__home-dashboard-component__break___2J1JH\",\n\t\"dashboardLink\": \"-esm-home__home-dashboard-component__dashboardLink___3mwkQ\",\n\t\"homeButton\": \"-esm-home__home-dashboard-component__homeButton___YfZfF\",\n\t\"widgetsArea\": \"-esm-home__home-dashboard-component__widgetsArea___11xrt\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\n// eslint-disable-next-line func-names\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = cssWithMappingToString(item);\n\n if (item[2]) {\n return \"@media \".concat(item[2], \" {\").concat(content, \"}\");\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n // eslint-disable-next-line func-names\n\n\n list.i = function (modules, mediaQuery, dedupe) {\n if (typeof modules === \"string\") {\n // eslint-disable-next-line no-param-reassign\n modules = [[null, modules, \"\"]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var i = 0; i < this.length; i++) {\n // eslint-disable-next-line prefer-destructuring\n var id = this[i][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _i = 0; _i < modules.length; _i++) {\n var item = [].concat(modules[_i]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n if (mediaQuery) {\n if (!item[2]) {\n item[2] = mediaQuery;\n } else {\n item[2] = \"\".concat(mediaQuery, \" and \").concat(item[2]);\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function cssWithMappingToString(item) {\n var _item = _slicedToArray(item, 4),\n content = _item[1],\n cssMapping = _item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n // eslint-disable-next-line no-undef\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};","\"use strict\";\n\nvar isOldIE = function isOldIE() {\n var memo;\n return function memorize() {\n if (typeof memo === 'undefined') {\n // Test for IE <= 9 as proposed by Browserhacks\n // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n // Tests for existence of standard globals is to allow style-loader\n // to operate correctly into non-standard environments\n // @see https://github.com/webpack-contrib/style-loader/issues/177\n memo = Boolean(window && document && document.all && !window.atob);\n }\n\n return memo;\n };\n}();\n\nvar getTarget = function getTarget() {\n var memo = {};\n return function memorize(target) {\n if (typeof memo[target] === 'undefined') {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n };\n}();\n\nvar stylesInDom = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDom.length; i++) {\n if (stylesInDom[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var index = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3]\n };\n\n if (index !== -1) {\n stylesInDom[index].references++;\n stylesInDom[index].updater(obj);\n } else {\n stylesInDom.push({\n identifier: identifier,\n updater: addStyle(obj, options),\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction insertStyleElement(options) {\n var style = document.createElement('style');\n var attributes = options.attributes || {};\n\n if (typeof attributes.nonce === 'undefined') {\n var nonce = typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;\n\n if (nonce) {\n attributes.nonce = nonce;\n }\n }\n\n Object.keys(attributes).forEach(function (key) {\n style.setAttribute(key, attributes[key]);\n });\n\n if (typeof options.insert === 'function') {\n options.insert(style);\n } else {\n var target = getTarget(options.insert || 'head');\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n }\n\n return style;\n}\n\nfunction removeStyleElement(style) {\n // istanbul ignore if\n if (style.parentNode === null) {\n return false;\n }\n\n style.parentNode.removeChild(style);\n}\n/* istanbul ignore next */\n\n\nvar replaceText = function replaceText() {\n var textStore = [];\n return function replace(index, replacement) {\n textStore[index] = replacement;\n return textStore.filter(Boolean).join('\\n');\n };\n}();\n\nfunction applyToSingletonTag(style, index, remove, obj) {\n var css = remove ? '' : obj.media ? \"@media \".concat(obj.media, \" {\").concat(obj.css, \"}\") : obj.css; // For old IE\n\n /* istanbul ignore if */\n\n if (style.styleSheet) {\n style.styleSheet.cssText = replaceText(index, css);\n } else {\n var cssNode = document.createTextNode(css);\n var childNodes = style.childNodes;\n\n if (childNodes[index]) {\n style.removeChild(childNodes[index]);\n }\n\n if (childNodes.length) {\n style.insertBefore(cssNode, childNodes[index]);\n } else {\n style.appendChild(cssNode);\n }\n }\n}\n\nfunction applyToTag(style, options, obj) {\n var css = obj.css;\n var media = obj.media;\n var sourceMap = obj.sourceMap;\n\n if (media) {\n style.setAttribute('media', media);\n } else {\n style.removeAttribute('media');\n }\n\n if (sourceMap && typeof btoa !== 'undefined') {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n while (style.firstChild) {\n style.removeChild(style.firstChild);\n }\n\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar singleton = null;\nvar singletonCounter = 0;\n\nfunction addStyle(obj, options) {\n var style;\n var update;\n var remove;\n\n if (options.singleton) {\n var styleIndex = singletonCounter++;\n style = singleton || (singleton = insertStyleElement(options));\n update = applyToSingletonTag.bind(null, style, styleIndex, false);\n remove = applyToSingletonTag.bind(null, style, styleIndex, true);\n } else {\n style = insertStyleElement(options);\n update = applyToTag.bind(null, style, options);\n\n remove = function remove() {\n removeStyleElement(style);\n };\n }\n\n update(obj);\n return function updateStyle(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {\n return;\n }\n\n update(obj = newObj);\n } else {\n remove();\n }\n };\n}\n\nmodule.exports = function (list, options) {\n options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n // tags it will allow on a page\n\n if (!options.singleton && typeof options.singleton !== 'boolean') {\n options.singleton = isOldIE();\n }\n\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n if (Object.prototype.toString.call(newList) !== '[object Array]') {\n return;\n }\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDom[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDom[_index].references === 0) {\n stylesInDom[_index].updater();\n\n stylesInDom.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};"],"names":["DashboardButton","props","className","styles","label","button","ConfigurableLink","to","link","requiredPrivilege","UserHasAccess","privilege","HomeDashboard","match","canSearch","config","useConfig","t","useTranslation","buttons","enabled","ExtensionSlot","extensionSlotName","Extension","list","map","def","key","widgets","xlinkHref","BrowserRouter","basename","window","spaBase","Route","path","exact","component","___CSS_LOADER_EXPORT___","push","module","id","locals","exports","cssWithMappingToString","toString","this","item","content","concat","join","i","modules","mediaQuery","dedupe","alreadyImportedModules","length","_i","_arrayLikeToArray","arr","len","arr2","Array","_item","isArray","_arrayWithHoles","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","memo","getTarget","target","styleTarget","document","querySelector","HTMLIFrameElement","contentDocument","head","e","stylesInDom","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","index","obj","css","media","sourceMap","references","updater","addStyle","insertStyleElement","style","createElement","attributes","nonce","keys","forEach","setAttribute","insert","Error","appendChild","textStore","replaceText","replacement","filter","Boolean","applyToSingletonTag","remove","styleSheet","cssText","cssNode","createTextNode","childNodes","removeChild","insertBefore","applyToTag","removeAttribute","firstChild","singleton","singletonCounter","update","styleIndex","bind","parentNode","removeStyleElement","newObj","all","atob","lastIdentifiers","newList","newLastIdentifiers","_index","splice"],"sourceRoot":""}
@@ -1,2 +0,0 @@
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")}}}]);
2
- //# sourceMappingURL=779.openmrs-esm-home-app.js.map
@@ -1 +0,0 @@
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,2 +0,0 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[898],{898:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});var n=t(297),r=t(512);function u(){return n.default.createElement(r.ConfigurableLink,{to:"${openmrsBase}/adminui/metadata/configureMetadata.page"},"Configure Metadata")}}}]);
2
- //# sourceMappingURL=898.openmrs-esm-home-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"898.openmrs-esm-home-app.js","mappings":"gLAGe,SAASA,IACtB,OACE,wBAAC,EAAAC,iBAAD,CAAkBC,GAAG,0DAArB","sources":["webpack://@openmrs/esm-home-app/./src/refapp-links/configure-metadata.tsx"],"sourcesContent":["import React from 'react';\nimport { ConfigurableLink } from '@openmrs/esm-framework';\n\nexport default function ConfigureMetadata() {\n return (\n <ConfigurableLink to=\"${openmrsBase}/adminui/metadata/configureMetadata.page\">Configure Metadata</ConfigurableLink>\n );\n}\n"],"names":["ConfigureMetadata","ConfigurableLink","to"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_home_app=self.webpackChunk_openmrs_esm_home_app||[]).push([[990],{990:(e,n,p)=>{p.r(n),p.d(n,{default:()=>s});var t=p(297),a=p(512);function s(){return t.default.createElement(a.ConfigurableLink,{to:"${openmrsBase}/appointmentschedulingui/home.page"},"Appointment Scheduling")}}}]);
2
- //# sourceMappingURL=990.openmrs-esm-home-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"990.openmrs-esm-home-app.js","mappings":"gLAGe,SAASA,IACtB,OACE,wBAAC,EAAAC,iBAAD,CAAkBC,GAAG,oDAArB","sources":["webpack://@openmrs/esm-home-app/./src/refapp-links/appointment-scheduling.tsx"],"sourcesContent":["import React from 'react';\nimport { ConfigurableLink } from '@openmrs/esm-framework';\n\nexport default function AppointmentScheduling() {\n return (\n <ConfigurableLink to=\"${openmrsBase}/appointmentschedulingui/home.page\">Appointment Scheduling</ConfigurableLink>\n );\n}\n"],"names":["AppointmentScheduling","ConfigurableLink","to"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"openmrs-esm-home-app.js","mappings":"moBAAIA,EACAC,E,iBCDJ,MAAMC,EAAmB,SAEzBC,EAAQ,EAAiB,SAAwBC,G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EiB,UAAW,6BACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,sBACJqI,KAAM,gBACNP,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAyCV,GACvEiB,UAAW,mCACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,8BACJqI,KAAM,gBACNP,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,8BAAiDV,GAC/EiB,UAAW,oCACXL,QAAQ,EACRE,SAAS,GAEX,CACEnI,GAAI,eACJqI,KAAM,gBACNP,MAAMC,EAAAA,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":""}
Binary file