@openmrs/esm-primary-navigation-app 3.4.1-pre.98 → 4.0.1-pre.204

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 (65) hide show
  1. package/.turbo/turbo-build.log +30 -33
  2. package/dist/146.js +1 -0
  3. package/dist/218.js +2 -0
  4. package/dist/{596.js.LICENSE.txt → 218.js.LICENSE.txt} +0 -0
  5. package/dist/246.js +2 -0
  6. package/dist/{393.js.LICENSE.txt → 246.js.LICENSE.txt} +0 -0
  7. package/dist/473.js +1 -0
  8. package/dist/574.js +1 -1
  9. package/dist/656.js +1 -0
  10. package/dist/735.js +1 -1
  11. package/dist/735.js.LICENSE.txt +2 -7
  12. package/dist/788.js +1 -1
  13. package/dist/788.js.LICENSE.txt +6 -10
  14. package/dist/789.js +1 -1
  15. package/dist/857.js +2 -0
  16. package/dist/857.js.LICENSE.txt +5 -0
  17. package/dist/889.js +1 -1
  18. package/dist/98.js +1 -0
  19. package/dist/main.js +1 -0
  20. package/dist/openmrs-esm-primary-navigation-app.js +1 -1
  21. package/dist/openmrs-esm-primary-navigation-app.js.buildmanifest.json +114 -186
  22. package/dist/openmrs-esm-primary-navigation-app.old +1 -1
  23. package/jest.config.js +4 -2
  24. package/package.json +14 -17
  25. package/src/components/choose-locale/change-locale.component.tsx +7 -5
  26. package/src/components/choose-locale/change-locale.scss +42 -0
  27. package/src/components/choose-locale/{change-locale.component.test.tsx → change-locale.test.tsx} +0 -0
  28. package/src/components/generic-link/generic-link.component.tsx +30 -0
  29. package/src/components/logo/logo.component.tsx +1 -1
  30. package/src/components/logo/{logo.component.scss → logo.scss} +0 -0
  31. package/src/components/logo/{logo.component.test.tsx → logo.test.tsx} +1 -1
  32. package/src/components/navbar/navbar.component.tsx +15 -13
  33. package/src/components/navbar/{navbar.component.scss → navbar.scss} +13 -5
  34. package/src/components/navbar-header-panels/app-menu-panel.component.tsx +6 -9
  35. package/src/components/navbar-header-panels/{app-menu-panel.component.scss → app-menu-panel.scss} +2 -1
  36. package/src/components/navbar-header-panels/notifications-menu-panel.component.tsx +4 -11
  37. package/src/components/navbar-header-panels/notifications-menu.component.panel.scss +3 -17
  38. package/src/components/navbar-header-panels/notifications-menu.panel.scss +0 -0
  39. package/src/components/navbar-header-panels/side-menu-panel.component.tsx +2 -2
  40. package/src/components/navbar-header-panels/{side-menu-panel.component.scss → side-menu-panel.scss} +0 -0
  41. package/src/components/navbar-header-panels/user-menu-panel.component.tsx +4 -3
  42. package/src/components/offline-banner/offline-banner.component.tsx +3 -3
  43. package/src/components/offline-banner/{offline-banner.component.scss → offline-banner.scss} +0 -0
  44. package/src/components/user-panel-switcher-item/user-panel-switcher.component.tsx +4 -4
  45. package/src/components/user-panel-switcher-item/{user-panel-switcher.component.scss → user-panel-switcher.scss} +3 -3
  46. package/src/components/user-panel-switcher-item/{user-panel-switcher.component.test.tsx → user-panel-switcher.test.tsx} +0 -0
  47. package/src/index.ts +18 -1
  48. package/src/root.component.tsx +9 -11
  49. package/src/root.scss +4 -5
  50. package/src/utils.ts +2 -1
  51. package/translations/en.json +2 -1
  52. package/dist/1.js +0 -1
  53. package/dist/212.js +0 -1
  54. package/dist/25.js +0 -2
  55. package/dist/25.js.LICENSE.txt +0 -16
  56. package/dist/322.js +0 -2
  57. package/dist/322.js.LICENSE.txt +0 -38
  58. package/dist/393.js +0 -2
  59. package/dist/510.js +0 -1
  60. package/dist/513.js +0 -1
  61. package/dist/540.js +0 -1
  62. package/dist/596.js +0 -2
  63. package/dist/743.js +0 -1
  64. package/dist/860.js +0 -1
  65. package/src/components/choose-locale/change-locale.component.scss +0 -39
@@ -1,33 +1,30 @@
1
- @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 8093b4fd59f38cbf
2
- @openmrs/esm-primary-navigation-app:build: $ webpack --mode=production
3
- @openmrs/esm-primary-navigation-app:build: assets by chunk 1.18 MiB (id hint: vendors)
4
- @openmrs/esm-primary-navigation-app:build:  asset 322.js 705 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
- @openmrs/esm-primary-navigation-app:build:  asset 25.js 226 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
- @openmrs/esm-primary-navigation-app:build:  asset 788.js 120 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
- @openmrs/esm-primary-navigation-app:build:  asset 860.js 85.5 KiB [emitted] [minimized] (id hint: vendors)
8
- @openmrs/esm-primary-navigation-app:build:  asset 393.js 27.7 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
- @openmrs/esm-primary-navigation-app:build:  asset 743.js 18.3 KiB [emitted] [minimized] (id hint: vendors)
10
- @openmrs/esm-primary-navigation-app:build:  asset 596.js 14 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
11
- @openmrs/esm-primary-navigation-app:build:  asset 513.js 7.85 KiB [emitted] [minimized] (id hint: vendors)
12
- @openmrs/esm-primary-navigation-app:build: + 11 assets
13
- @openmrs/esm-primary-navigation-app:build: orphan modules 10 MiB [orphan] 647 modules
14
- @openmrs/esm-primary-navigation-app:build: runtime modules 19.7 KiB 14 modules
15
- @openmrs/esm-primary-navigation-app:build: built modules 7.71 MiB (javascript) 378 bytes (consume-shared) 336 bytes (share-init) [built]
16
- @openmrs/esm-primary-navigation-app:build:  cacheable modules 7.71 MiB 84 modules
17
- @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 378 bytes
18
- @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
19
- @openmrs/esm-primary-navigation-app:build:  + 7 modules
20
- @openmrs/esm-primary-navigation-app:build:  provide-module modules 336 bytes
21
- @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@3.4.1-pre.98 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
22
- @openmrs/esm-primary-navigation-app:build:  provide shared module (default) carbon-components-react@7.31.0 = ../../../node_modules/carbon-components-react/es/index.js 42 bytes [built] [code generated]
23
- @openmrs/esm-primary-navigation-app:build:  + 6 modules
24
- @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
25
- @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
26
- @openmrs/esm-primary-navigation-app:build: 
27
- @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
28
- @openmrs/esm-primary-navigation-app:build: This can impact web performance.
29
- @openmrs/esm-primary-navigation-app:build: Assets:
30
- @openmrs/esm-primary-navigation-app:build:  889.js (440 KiB)
31
- @openmrs/esm-primary-navigation-app:build:  322.js (705 KiB)
32
- @openmrs/esm-primary-navigation-app:build: 
33
- @openmrs/esm-primary-navigation-app:build: webpack 5.70.0 compiled with 1 warning in 143054 ms
1
+ @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 5160090018ef6d9d
2
+ @openmrs/esm-primary-navigation-app:build: $ webpack --mode=production
3
+ @openmrs/esm-primary-navigation-app:build: assets by chunk 229 KiB (id hint: vendors)
4
+ @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-primary-navigation-app:build:  asset 857.js 38.3 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-primary-navigation-app:build:  asset 246.js 27.6 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
+ @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
8
+ @openmrs/esm-primary-navigation-app:build:  asset 218.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
+ @openmrs/esm-primary-navigation-app:build: + 11 assets
10
+ @openmrs/esm-primary-navigation-app:build: orphan modules 3.8 MiB (javascript) 42 bytes (consume-shared) [orphan] 577 modules
11
+ @openmrs/esm-primary-navigation-app:build: runtime modules 38.8 KiB 28 modules
12
+ @openmrs/esm-primary-navigation-app:build: built modules 2.38 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
13
+ @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.38 MiB
14
+ @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.21 MiB 43 modules
15
+ @openmrs/esm-primary-navigation-app:build:  modules by path ./ 174 KiB 18 modules
16
+ @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
17
+ @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.1-pre.204 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
18
+ @openmrs/esm-primary-navigation-app:build:  + 4 modules
19
+ @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
20
+ @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
21
+ @openmrs/esm-primary-navigation-app:build:  + 3 modules
22
+ @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
23
+ @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
24
+ @openmrs/esm-primary-navigation-app:build: 
25
+ @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
26
+ @openmrs/esm-primary-navigation-app:build: This can impact web performance.
27
+ @openmrs/esm-primary-navigation-app:build: Assets:
28
+ @openmrs/esm-primary-navigation-app:build:  889.js (384 KiB)
29
+ @openmrs/esm-primary-navigation-app:build: 
30
+ @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 91683 ms
package/dist/146.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[146],{7146:(e,n,t)=>{"use strict";t.r(n),t.d(n,{I18nContext:()=>S,I18nextProvider:()=>ue,Trans:()=>J,Translation:()=>se,composeInitialProps:()=>T,date:()=>ge,getDefaults:()=>N,getI18n:()=>D,getInitialProps:()=>A,initReactI18next:()=>R,number:()=>me,plural:()=>ve,select:()=>he,selectOrdinal:()=>be,setDefaults:()=>k,setI18n:()=>C,time:()=>ye,useSSR:()=>le,useTranslation:()=>te,withSSR:()=>de,withTranslation:()=>ae});var r=t(6017);function o(e,n){if(null==e)return{};var t,o,i=(0,r.Z)(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=t(5776),s=t(1432),u=t.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(u()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),n.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(y,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var m={parse:function(e,n){n||(n={}),n.components||(n.components=g);var t,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(f,(function(c,s){if(a){if(c!=="</"+t.name+">")return;a=!1}var u,l="/"!==c.charAt(1),f=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(f){var m=p(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(t=p(c)).type&&n.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!y||"<"===y||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===i&&r.push(t),(u=o[i-1])&&u.children.push(t),o[i]=t),(!l||t.voidElement)&&(i>-1&&(t.voidElement||t.name===c.slice(2,-1))&&(i--,t=-1===i?r:o[i]),!a&&"<"!==y&&y)){u=-1===i?r:o[i].children;var h=e.indexOf("<",g),v=e.slice(g,-1===h?void 0:h);d.test(v)&&(v=" "),(h>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,n){return e+y("",n)}),"")}};const h=m;function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,O={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…"},j=function(e){return O[e]};function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E,x={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(b,j)}},S=(0,c.createContext)();function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x=P(P({},x),e)}function N(){return x}var I=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var n,t;return n=e,(t=[{key:"addUsedNamespaces",value:function(e){var n=this;e.forEach((function(e){n.usedNamespaces[e]||(n.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&v(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}();function C(e){E=e}function D(){return E}var R={type:"3rdParty",init:function(e){k(e.options.react),C(e)}};function T(e){return function(n){return new Promise((function(t){var r=A();e.getInitialProps?e.getInitialProps(n).then((function(e){t(P(P({},e),r))})):t(r)}))}}function A(){var e=D(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},r={};return e.languages.forEach((function(t){r[t]={},n.forEach((function(n){r[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=r,t.initialLanguage=e.language,t}function L(){if(console&&console.warn){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),(e=console).warn.apply(e,t)}}var z={};function B(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&z[n[0]]||("string"==typeof n[0]&&(z[n[0]]=new Date),L.apply(void 0,n))}function _(e,n,t){e.loadNamespaces(n,(function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}))}function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.languages[0],o=!!n.options&&n.options.fallbackLng,i=n.languages[n.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e)||!n.hasResourceBundle(r,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function H(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!n.languages||!n.languages.length)return B("i18n.languages were undefined or empty",n.languages),!0;var r=void 0!==n.options.ignoreJSONStructure;return r?n.hasLoadedNamespace(e,{precheck:function(n,r){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):U(e,n,t)}function K(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var V=["format"],F=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function $(e,n){if(!e)return!1;var t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function Z(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function q(e){return Array.isArray(e)?e:[e]}function Y(e,n){if(!e)return"";var t="",r=q(e),a=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return r.forEach((function(e,r){if("string"==typeof e)t+="".concat(e);else if((0,c.isValidElement)(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)t+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)t+="<".concat(r,"></").concat(r,">");else if(u&&1===s&&"string"==typeof l)t+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=Y(l,n);t+="<".concat(r,">").concat(p,"</").concat(r,">")}else t+="<".concat(r,"></").concat(r,">")}else if(null===e)L("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===i(e)){var f=e.format,d=o(e,V),g=Object.keys(d);if(1===g.length){var y=f?"".concat(g[0],", ").concat(f):g[0];t+="{{".concat(y,"}}")}else L("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else L("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function J(e){var n=e.children,t=e.count,r=e.parent,a=e.i18nKey,s=e.context,u=e.tOptions,l=void 0===u?{}:u,p=e.values,f=e.defaults,d=e.components,g=e.ns,y=e.i18n,m=e.t,v=e.shouldUnescape,b=o(e,F),O=(0,c.useContext)(S)||{},j=O.i18n,w=O.defaultNS,P=y||j||D();if(!P)return B("You will need to pass in an i18next instance by using i18nextReactModule"),n;var E=m||P.t.bind(P)||function(e){return e};s&&(l.context=s);var x=M(M({},N()),P.options&&P.options.react),k=g||E.ns||w||P.options&&P.options.defaultNS;k="string"==typeof k?[k]:k||["translation"];var I=f||Y(n,x)||x.transEmptyNodeValue||a,C=x.hashTransKey,R=a||(C?C(I):I),T=p?l.interpolation:{interpolation:M(M({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},A=M(M(M(M({},l),{},{count:t},p),T),{},{defaultValue:I,ns:k}),L=function(e,n,t,r,o,a){if(""===n)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var l={};!function e(n){q(n).forEach((function(n){"string"!=typeof n&&($(n)?e(Z(n)):"object"!==i(n)||(0,c.isValidElement)(n)||Object.assign(l,n))}))}(e);var p=h.parse("<0>".concat(n,"</0>")),f=M(M({},l),o);function d(e,n,t){var r=Z(e),o=y(r,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return(0,c.isValidElement)(e)}))}(r)&&0===o.length?r:o}function g(e,n,t,r,o){e.dummy&&(e.children=n),t.push((0,c.cloneElement)(e,M(M({},e.props),{},{key:r}),o?void 0:n))}function y(n,o,l){var p=q(n);return q(o).reduce((function(n,o,m){var h,v,b,O=o.children&&o.children[0]&&o.children[0].content&&t.services.interpolator.interpolate(o.children[0].content,f,t.language);if("tag"===o.type){var j=p[parseInt(o.name,10)];!j&&1===l.length&&l[0][o.name]&&(j=l[0][o.name]),j||(j={});var w=0!==Object.keys(o.attrs).length?(h={props:o.attrs},(b=M({},v=j)).props=Object.assign(h.props,v.props),b):j,P=(0,c.isValidElement)(w),E=P&&$(o,!0)&&!o.voidElement,x=u&&"object"===i(w)&&w.dummy&&!P,S="object"===i(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof w){var k=t.services.interpolator.interpolate(w,f,t.language);n.push(k)}else if($(w)||E)g(w,d(w,o,l),n,m);else if(x){var N=y(p,o.children,l);n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m}),N))}else if(Number.isNaN(parseFloat(o.name)))if(S)g(w,d(w,o,l),n,m,o.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(o.name)>-1)if(o.voidElement)n.push((0,c.createElement)(o.name,{key:"".concat(o.name,"-").concat(m)}));else{var I=y(p,o.children,l);n.push((0,c.createElement)(o.name,{key:"".concat(o.name,"-").concat(m)},I))}else if(o.voidElement)n.push("<".concat(o.name," />"));else{var C=y(p,o.children,l);n.push("<".concat(o.name,">").concat(C,"</").concat(o.name,">"))}else if("object"!==i(w)||P)1===o.children.length&&O?n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m}),O)):n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m})));else{var D=o.children[0]?O:null;D&&n.push(D)}}else if("text"===o.type){var R=r.transWrapTextNodes,T=a?r.unescape(t.services.interpolator.interpolate(o.content,f,t.language)):t.services.interpolator.interpolate(o.content,f,t.language);R?n.push((0,c.createElement)(R,{key:"".concat(o.name,"-").concat(m)},T)):n.push(T)}return n}),[])}return Z(y([{dummy:!0,children:e||[]}],p,q(e||[]))[0])}(d||n,R?E(R,A):I,P,x,A,v),z=void 0!==r?r:x.defaultTransParent;return z?(0,c.createElement)(z,b,L):L}function G(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return G(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?G(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=function(e,n){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=n?t.current:e}),[e,n]),t.current};function te(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.i18n,r=(0,c.useContext)(S)||{},o=r.i18n,i=r.defaultNS,a=t||o||D();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new I),!a){B("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&void 0!==a.options.react.wait&&B("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=ee(ee(ee({},N()),a.options.react),n),p=l.useSuspense,f=l.keyPrefix,d=e||i||a.options&&a.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var g=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return H(e,a,l)}));function y(){return a.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=(0,c.useState)(y),h=Q(m,2),v=h[0],b=h[1],O=d.join(),j=ne(O),w=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=l.bindI18n,n=l.bindI18nStore;function t(){w.current&&b(y)}return w.current=!0,g||p||_(a,d,(function(){w.current&&b(y)})),g&&j&&j!==O&&w.current&&b(y),e&&a&&a.on(e,t),n&&a&&a.store.on(n,t),function(){w.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,t)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,t)}))}}),[a,O]);var P=(0,c.useRef)(!0);(0,c.useEffect)((function(){w.current&&!P.current&&b(y),P.current=!1}),[a]);var E=[v,a,g];if(E.t=v,E.i18n=a,E.ready=g,g)return E;if(!g&&!p)return E;throw new Promise((function(e){_(a,d,(function(){e()}))}))}var re=["forwardedRef"];function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ae(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function r(r){var i=r.forwardedRef,a=o(r,re),s=Q(te(e,ie(ie({},a),{},{keyPrefix:n.keyPrefix})),3),u=s[0],l=s[1],p=s[2],f=ie(ie({},a),{},{t:u,i18n:l,tReady:p});return n.withRef&&i?f.ref=i:!n.withRef&&i&&(f.forwardedRef=i),(0,c.createElement)(t,f)}return r.displayName="withI18nextTranslation(".concat(K(t),")"),r.WrappedComponent=t,n.withRef?(0,c.forwardRef)((function(e,n){return(0,c.createElement)(r,Object.assign({},e,{forwardedRef:n}))})):r}}var ce=["ns","children"];function se(e){var n=e.ns,t=e.children,r=Q(te(n,o(e,ce)),3),i=r[0],a=r[1],c=r[2];return t(i,{i18n:a,lng:a.language},c)}function ue(e){var n=e.i18n,t=e.defaultNS,r=e.children,o=(0,c.useMemo)((function(){return{i18n:n,defaultNS:t}}),[n,t]);return(0,c.createElement)(S.Provider,{value:o},r)}function le(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.i18n,o=(0,c.useContext)(S)||{},i=o.i18n,a=r||i||D();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,n){return Object.keys(n).forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),n&&!a.initializedLanguageOnce&&(a.changeLanguage(n),a.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function de(){return function(e){function n(n){var t=n.initialI18nStore,r=n.initialLanguage,i=o(n,pe);return le(t,r),(0,c.createElement)(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},i))}return n.getInitialProps=T(e),n.displayName="withI18nextSSR(".concat(K(e),")"),n.WrappedComponent=e,n}}var ge=function(){return""},ye=function(){return""},me=function(){return""},he=function(){return""},ve=function(){return""},be=function(){return""}},1432:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},6017:(e,n,t)=>{"use strict";function r(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}t.d(n,{Z:()=>r})}}]);
package/dist/218.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 218.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[218],{8696:(r,t,n)=>{n.d(t,{SQ:()=>u});var e,o=n(8908),i=n(5776),s=n.n(i),c=["children","size"],u=s().forwardRef((function(r,t){var n=r.children,i=r.size,u=void 0===i?16:i,a=(0,o._)(r,c);return s().createElement(o.I,(0,o.a)({width:u,height:u,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),e||(e=s().createElement("path",{d:"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z"})),n)}))},9177:(r,t,n)=>{n.d(t,{iY:()=>a});var e,o,i=n(8908),s=n(5776),c=n.n(s),u=["children","size"],a=c().forwardRef((function(r,t){var n=r.children,s=r.size,a=void 0===s?16:s,h=(0,i._)(r,u);return c().createElement(i.I,(0,i.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},h),e||(e=c().createElement("path",{d:"M26,13a8.9089,8.9089,0,0,1-2.5249,6.2339l1.4133,1.4131A10.9795,10.9795,0,0,0,23.6006,4.2l-1.2012,1.6A8.932,8.932,0,0,1,26,13Z"})),o||(o=c().createElement("path",{d:"M21 13a5.0022 5.0022 0 01-.9023 2.8564l1.4277 1.4278a6.9831 6.9831 0 00-.8584-9.5015l-1.334 1.49A5.0077 5.0077 0 0121 13zM30 28.5859L3.4143 2 2 3.4141l3.71 3.71A10.9824 10.9824 0 008.3994 21.8008l1.2012-1.6A8.9678 8.9678 0 017.1714 8.5854l2.1963 2.1963a6.9664 6.9664 0 001.9648 7.4351l1.334-1.49A5.0072 5.0072 0 0111 13a4.8854 4.8854 0 01.0393-.5464L15 16.4141V30h2V18.4141L28.5857 30z"})),n)}))},4474:(r,t,n)=>{n.d(t,{GI:()=>f});var e,o,i,s,c=n(8908),u=n(5776),a=n.n(u),h=["children","size"],f=a().forwardRef((function(r,t){var n=r.children,u=r.size,f=void 0===u?16:u,p=(0,c._)(r,h);return 16===f||"16"===f||"16px"===f?a().createElement(c.I,(0,c.a)({width:f,height:f,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},p),e||(e=a().createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),o||(o=a().createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n):a().createElement(c.I,(0,c.a)({width:f,height:f,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},p),i||(i=a().createElement("path",{d:"M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"})),s||(s=a().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),n)}))},1718:(r,t,n)=>{n.d(t,{zg:()=>M});var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},e(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(r){return"function"==typeof r}var s=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){r&&(new Error).stack,s=r},get useDeprecatedSynchronousErrorHandling(){return s}};function u(r){setTimeout((function(){throw r}),0)}var a={closed:!0,next:function(r){},error:function(r){if(c.useDeprecatedSynchronousErrorHandling)throw r;u(r)},complete:function(){}},h=function(){return Array.isArray||function(r){return r&&"number"==typeof r.length}}();function f(r){return null!==r&&"object"==typeof r}var p=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map((function(r,t){return t+1+") "+r.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}(),l=function(){function r(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}return r.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,e=n._parentOrParents,o=n._ctorUnsubscribe,s=n._unsubscribe,c=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof r)e.remove(this);else if(null!==e)for(var u=0;u<e.length;++u)e[u].remove(this);if(i(s)){o&&(this._unsubscribe=void 0);try{s.call(this)}catch(r){t=r instanceof p?b(r.errors):[r]}}if(h(c)){u=-1;for(var a=c.length;++u<a;){var l=c[u];if(f(l))try{l.unsubscribe()}catch(r){t=t||[],r instanceof p?t=t.concat(b(r.errors)):t.push(r)}}}if(t)throw new p(t)}},r.prototype.add=function(t){var n=t;if(!t)return r.EMPTY;switch(typeof t){case"function":n=new r(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof r)){var e=n;(n=new r)._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof r){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},r.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},r.EMPTY=function(r){return r.closed=!0,r}(new r),r}();function b(r){return r.reduce((function(r,t){return r.concat(t instanceof p?t.errors:t)}),[])}var d=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),y=function(r){function t(n,e,o){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=a;break;case 1:if(!n){i.destination=a;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new _(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new _(i,n,e,o)}return i}return o(t,r),t.prototype[d]=function(){return this},t.create=function(r,n,e){var o=new t(r,n,e);return o.syncErrorThrowable=!1,o},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(l),_=function(r){function t(t,n,e,o){var s,c=r.call(this)||this;c._parentSubscriber=t;var u=c;return i(n)?s=n:n&&(s=n.next,e=n.error,o=n.complete,n!==a&&(i((u=Object.create(n)).unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=e,c._complete=o,c}return o(t,r),t.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},t.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=c.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,r),this.unsubscribe()):(this.__tryOrUnsub(this._error,r),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):u(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;u(r)}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};c.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw r;u(r)}},t.prototype.__tryOrSetError=function(r,t,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=t,r.syncErrorThrown=!0,!0):(u(t),!0)}return!1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},t}(y),v=function(){function r(r,t){this.project=r,this.thisArg=t}return r.prototype.call=function(r,t){return t.subscribe(new w(r,this.project,this.thisArg))},r}(),w=function(r){function t(t,n,e){var o=r.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=e||o,o}return o(t,r),t.prototype._next=function(r){var t;try{t=this.project.call(this.thisArg,r,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)},t}(y),m=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function E(r){return r}function S(r){return 0===r.length?E:1===r.length?r[0]:function(t){return r.reduce((function(r,t){return t(r)}),t)}}var g=function(){function r(r){this._isScalar=!1,r&&(this._subscribe=r)}return r.prototype.lift=function(t){var n=new r;return n.source=this,n.operator=t,n},r.prototype.subscribe=function(r,t,n){var e=this.operator,o=function(r,t,n){if(r){if(r instanceof y)return r;if(r[d])return r[d]()}return r||t||n?new y(r,t,n):new y(a)}(r,t,n);if(e?o.add(e.call(o,this.source)):o.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),c.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},r.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){c.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=t),function(r){for(;r;){var t=r,n=t.closed,e=t.destination,o=t.isStopped;if(n||o)return!1;r=e&&e instanceof y?e:null}return!0}(r)?r.error(t):console.warn(t)}},r.prototype.forEach=function(r,t){var n=this;return new(t=x(t))((function(t,e){var o;o=n.subscribe((function(t){try{r(t)}catch(r){e(r),o&&o.unsubscribe()}}),e,t)}))},r.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},r.prototype[m]=function(){return this},r.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:S(r)(this)},r.prototype.toPromise=function(r){var t=this;return new(r=x(r))((function(r,n){var e;t.subscribe((function(r){return e=r}),(function(r){return n(r)}),(function(){return r(e)}))}))},r.create=function(t){return new r(t)},r}();function x(r){if(r||(r=c.Promise||Promise),!r)throw new Error("no Promise impl found");return r}function H(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var O=H(),T=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function V(r){return!!r&&"function"!=typeof r.subscribe&&"function"==typeof r.then}var P=function(r){if(r&&"function"==typeof r[m])return o=r,function(r){var t=o[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(r)};if(T(r))return e=r,function(r){for(var t=0,n=e.length;t<n&&!r.closed;t++)r.next(e[t]);r.complete()};if(V(r))return n=r,function(r){return n.then((function(t){r.closed||(r.next(t),r.complete())}),(function(t){return r.error(t)})).then(null,u),r};if(r&&"function"==typeof r[O])return t=r,function(r){for(var n=t[O]();;){var e=void 0;try{e=n.next()}catch(t){return r.error(t),r}if(e.done){r.complete();break}if(r.next(e.value),r.closed)break}return"function"==typeof n.return&&r.add((function(){n.return&&n.return()})),r};var t,n,e,o,i=f(r)?"an invalid object":"'"+r+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};var z=function(r){function t(t){var n=r.call(this)||this;return n.parent=t,n}return o(t,r),t.prototype._next=function(r){this.parent.notifyNext(r)},t.prototype._error=function(r){this.parent.notifyError(r),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(y),I=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return o(t,r),t.prototype.notifyNext=function(r){this.destination.next(r)},t.prototype.notifyError=function(r){this.destination.error(r)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(y);function M(r,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(e){return e.pipe(M((function(n,e){return(o=r(n,e),o instanceof g?o:new g(P(o))).pipe(function(r,t){return function(t){return t.lift(new v(r,undefined))}}((function(r,o){return t(n,r,e,o)})));var o}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new j(r,n))})}var j=function(){function r(r,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=r,this.concurrent=t}return r.prototype.call=function(r,t){return t.subscribe(new A(r,this.project,this.concurrent))},r}(),A=function(r){function t(t,n,e){void 0===e&&(e=Number.POSITIVE_INFINITY);var o=r.call(this,t)||this;return o.project=n,o.concurrent=e,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(t,r),t.prototype._next=function(r){this.active<this.concurrent?this._tryNext(r):this.buffer.push(r)},t.prototype._tryNext=function(r){var t,n=this.index++;try{t=this.project(r,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)},t.prototype._innerSub=function(r){var t=new z(this),n=this.destination;n.add(t);var e=function(r,t){if(!t.closed){if(r instanceof g)return r.subscribe(t);var n;try{n=P(r)(t)}catch(r){t.error(r)}return n}}(r,t);e!==t&&n.add(e)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(r){this.destination.next(r)},t.prototype.notifyComplete=function(){var r=this.buffer;this.active--,r.length>0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(I)}}]);
File without changes
package/dist/246.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 246.js.LICENSE.txt */
2
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[246],{6058:(t,n,e)=>{"use strict";var r=e(2594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(n,e,r){if("string"!=typeof e){if(d){var o=h(e);o&&o!==d&&t(n,o,r)}var a=f(e);l&&(a=a.concat(l(e)));for(var c=u(n),v=u(e),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=p(e,y);try{s(n,y,g)}catch(t){}}}}return n}},6697:(t,n)=>{"use strict";var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return n}}case o:return n}}}function P(t){return b(t)===l}n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=m,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isAsyncMode=function(t){return P(t)||b(t)===f},n.isConcurrentMode=P,n.isContextConsumer=function(t){return b(t)===s},n.isContextProvider=function(t){return b(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return b(t)===p},n.isFragment=function(t){return b(t)===i},n.isLazy=function(t){return b(t)===m},n.isMemo=function(t){return b(t)===v},n.isPortal=function(t){return b(t)===o},n.isProfiler=function(t){return b(t)===c},n.isStrictMode=function(t){return b(t)===a},n.isSuspense=function(t){return b(t)===h},n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===x||t.$$typeof===y)},n.typeOf=b},2594:(t,n,e)=>{"use strict";t.exports=e(6697)},5826:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},4779:(t,n,e)=>{var r=e(5826);t.exports=function t(n,e,o){return r(e)||(o=e||o,e=[]),o=o||{},n instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,n)}(n,e):r(n)?function(n,e,r){for(var o=[],i=0;i<n.length;i++)o.push(t(n[i],e,r).source);return f(new RegExp("(?:"+o.join("|")+")",l(r)),e)}(n,e,o):function(t,n,e){return p(i(t,e),n,e)}(n,e,o)},t.exports.parse=i,t.exports.compile=function(t,n){return c(i(t,n),n)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,n){for(var e,r=[],i=0,a=0,c="",f=n&&n.delimiter||"/";null!=(e=o.exec(t));){var l=e[0],p=e[1],h=e.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=e[2],m=e[3],y=e[4],g=e[5],w=e[6],x=e[7];c&&(r.push(c),c="");var b=null!=v&&null!=d&&d!==v,P="+"===w||"*"===w,C="?"===w||"*"===w,E=e[2]||f,O=y||g;r.push({name:m||i++,prefix:v||"",delimiter:E,optional:C,repeat:P,partial:b,asterisk:!!x,pattern:O?s(O):x?".*":"[^"+u(E)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,n){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$",l(n)));return function(n,o){for(var i="",c=n||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!e[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!e[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,n){return t.keys=n,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,n,e){r(n)||(e=n||e,n=[]);for(var o=(e=e||{}).strict,i=!1!==e.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";n.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(e.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(e)),n)}},2246:(t,n,e)=>{"use strict";function r(t,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},r(t,n)}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n)}e.r(n),e.d(n,{BrowserRouter:()=>wt,HashRouter:()=>xt,Link:()=>kt,MemoryRouter:()=>J,NavLink:()=>At,Prompt:()=>Q,Redirect:()=>nt,Route:()=>it,Router:()=>z,StaticRouter:()=>lt,Switch:()=>pt,generatePath:()=>tt,matchPath:()=>ot,useHistory:()=>vt,useLocation:()=>mt,useParams:()=>yt,useRouteMatch:()=>gt,withRouter:()=>ht});var i=e(5776),a=e.n(i);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},c.apply(this,arguments)}function u(t){return"/"===t.charAt(0)}function s(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}function f(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const l=function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));if("object"==typeof n||"object"==typeof e){var r=f(n),o=f(e);return r!==n||o!==e?t(r,o):Object.keys(Object.assign({},n,e)).every((function(r){return t(n[r],e[r])}))}return!1};function p(t,n){if(!t)throw new Error("Invariant failed")}function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,n){return function(t,n){return 0===t.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(n.length))}(t,n)?t.substr(n.length):t}function m(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function y(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t),o.state=n):(void 0===(o=c({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,n){void 0===n&&(n="");var e,r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&u(t),a=n&&u(n),c=i||a;if(t&&u(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var f=o[o.length-1];e="."===f||".."===f||""===f}else e=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?s(o,p):".."===h?(s(o,p),l++):l&&(s(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&u(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function w(){var t=null,n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var x=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(t,n){n(window.confirm(t))}var P="popstate",C="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function O(t){void 0===t&&(t={}),x||p(!1);var n,e=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,u=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?b:s,l=i.keyLength,d=void 0===l?6:l,O=t.basename?m(h(t.basename)):"";function k(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=v(i,O)),g(i,r,e)}function R(){return Math.random().toString(36).substr(2,d)}var S=w();function A(t){c(I,t),I.length=e.length,S.notifyListeners(I.location,I.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(k(t.state))}function $(){L(k(E()))}var _=!1;function L(t){_?(_=!1,A()):S.confirmTransitionTo(t,"POP",f,(function(n){n?A({action:"POP",location:t}):function(t){var n=I.location,e=j.indexOf(n.key);-1===e&&(e=0);var r=j.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(_=!0,N(o))}(t)}))}var M=k(E()),j=[M.key];function U(t){return O+y(t)}function N(t){e.go(t)}var F=0;function B(t){1===(F+=t)&&1===t?(window.addEventListener(P,T),o&&window.addEventListener(C,$)):0===F&&(window.removeEventListener(P,T),o&&window.removeEventListener(C,$))}var H=!1,I={length:e.length,action:"POP",location:M,createHref:U,push:function(t,n){var o="PUSH",i=g(t,n,R(),I.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.pushState({key:a,state:c},null,n),u)window.location.href=n;else{var s=j.indexOf(I.location.key),f=j.slice(0,s+1);f.push(i.key),j=f,A({action:o,location:i})}else window.location.href=n}}))},replace:function(t,n){var o="REPLACE",i=g(t,n,R(),I.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.replaceState({key:a,state:c},null,n),u)window.location.replace(n);else{var s=j.indexOf(I.location.key);-1!==s&&(j[s]=i.key),A({action:o,location:i})}else window.location.replace(n)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var n=S.setPrompt(t);return H||(B(1),H=!0),function(){return H&&(H=!1,B(-1)),n()}},listen:function(t){var n=S.appendListener(t);return B(1),function(){B(-1),n()}}};return I}var k="hashchange",R={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function A(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function T(t){window.location.replace(S(window.location.href)+"#"+t)}function $(t){void 0===t&&(t={}),x||p(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?b:r,i=e.hashType,a=void 0===i?"slash":i,u=t.basename?m(h(t.basename)):"",s=R[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(A());return u&&(t=v(t,u)),g(t)}var P=w();function C(t){c(H,t),H.length=n.length,P.notifyListeners(H.location,H.action)}var E=!1,O=null;function $(){var t,n,e=A(),r=f(e);if(e!==r)T(r);else{var i=d(),a=H.location;if(!E&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(O===y(i))return;O=null,function(t){if(E)E=!1,C();else{P.confirmTransitionTo(t,"POP",o,(function(n){n?C({action:"POP",location:t}):function(t){var n=H.location,e=j.lastIndexOf(y(n));-1===e&&(e=0);var r=j.lastIndexOf(y(t));-1===r&&(r=0);var o=e-r;o&&(E=!0,U(o))}(t)}))}}(i)}}var _=A(),L=f(_);_!==L&&T(L);var M=d(),j=[y(M)];function U(t){n.go(t)}var N=0;function F(t){1===(N+=t)&&1===t?window.addEventListener(k,$):0===N&&window.removeEventListener(k,$)}var B=!1,H={length:n.length,action:"POP",location:M,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=S(window.location.href)),e+"#"+f(u+y(t))},push:function(t,n){var e="PUSH",r=g(t,void 0,void 0,H.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=y(r),o=f(u+n);if(A()!==o){O=n,function(t){window.location.hash=t}(o);var i=j.lastIndexOf(y(H.location)),a=j.slice(0,i+1);a.push(n),j=a,C({action:e,location:r})}else C()}}))},replace:function(t,n){var e="REPLACE",r=g(t,void 0,void 0,H.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=y(r),o=f(u+n);A()!==o&&(O=n,T(o));var i=j.indexOf(y(H.location));-1!==i&&(j[i]=n),C({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=P.setPrompt(t);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),n()}},listen:function(t){var n=P.appendListener(t);return F(1),function(){F(-1),n()}}};return H}function _(t,n,e){return Math.min(Math.max(t,n),e)}function L(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,a=void 0===i?0:i,u=n.keyLength,s=void 0===u?6:u,f=w();function l(t){c(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=_(a,0,o.length-1),d=o.map((function(t){return g(t,void 0,"string"==typeof t?p():t.key||p())})),v=y;function m(t){var n=_(x.index+t,0,x.entries.length-1),r=x.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var x={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=g(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=x.index+1,e=x.entries.slice(0);e.length>n?e.splice(n,e.length-n,o):e.push(o),l({action:r,location:o,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=g(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(x.entries[x.index]=o,l({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var n=x.index+t;return n>=0&&n<x.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}var M=e(216),j=e.n(M),U=1073741823,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:{};function F(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}const B=a().createContext||function(t,n){var e,r,a,c="__create-react-context-"+((N[a="__global_unique_id__"]=(N[a]||0)+1)+"__"),u=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).emitter=F(n.props.value),n}o(e,t);var r=e.prototype;return r.getChildContext=function(){var t;return(t={})[c]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?e=0:(e="function"==typeof n?n(r,o):U,0!=(e|=0)&&this.emitter.set(t.value,e))}var i,a},r.render=function(){return this.props.children},e}(i.Component);u.childContextTypes=((e={})[c]=j().object.isRequired,e);var s=function(n){function e(){var t;return(t=n.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(n,e){0!=((0|t.observedBits)&e)&&t.setState({value:t.getValue()})},t}o(e,n);var r=e.prototype;return r.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?U:n},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?U:t},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},e}(i.Component);return s.contextTypes=((r={})[c]=j().object,r),{Provider:u,Consumer:s}};var H=e(4779),I=e.n(H),D=(e(2594),e(6017)),W=e(6058),Z=e.n(W),V=function(t){var n=B();return n.displayName=t,n},K=V("Router-History"),q=V("Router"),z=function(t){function n(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._pendingLocation=t}))),e}o(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=n.prototype;return e.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(n){t._isMounted&&t.setState({location:n})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return a().createElement(q.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(K.Provider,{children:this.props.children||null,value:this.props.history}))},n}(a().Component),J=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=L(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),G=function(t){function n(){return t.apply(this,arguments)||this}o(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(a().Component);function Q(t){var n=t.message,e=t.when,r=void 0===e||e;return a().createElement(q.Consumer,null,(function(t){if(t||p(!1),!r||t.staticContext)return null;var e=t.history.block;return a().createElement(G,{onMount:function(t){t.release=e(n)},onUpdate:function(t,r){r.message!==n&&(t.release(),t.release=e(n))},onUnmount:function(t){t.release()},message:n})}))}var X={},Y=0;function tt(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(X[t])return X[t];var n=I().compile(t);return Y<1e4&&(X[t]=n,Y++),n}(t)(n,{pretty:!0})}function nt(t){var n=t.computedMatch,e=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(q.Consumer,null,(function(t){t||p(!1);var r=t.history,i=t.staticContext,u=o?r.push:r.replace,s=g(n?"string"==typeof e?tt(e,n.params):c({},e,{pathname:tt(e.pathname,n.params)}):e);return i?(u(s),null):a().createElement(G,{onMount:function(){u(s)},onUpdate:function(t,n){var e,r,o=g(n.to);e=o,r=c({},s,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&l(e.state,r.state)||u(s)},to:e})}))}var et={},rt=0;function ot(t,n){void 0===n&&(n={}),("string"==typeof n||Array.isArray(n))&&(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=et[e]||(et[e]={});if(r[t])return r[t];var o=[],i={regexp:I()(t,o,n),keys:o};return rt<1e4&&(r[t]=i,rt++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var it=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(q.Consumer,null,(function(n){n||p(!1);var e=t.props.location||n.location,r=c({},n,{location:e,match:t.props.computedMatch?t.props.computedMatch:t.props.path?ot(e.pathname,t.props):n.match}),o=t.props,i=o.children,u=o.component,s=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(q.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:u?a().createElement(u,r):s?s(r):null:"function"==typeof i?i(r):null)}))},n}(a().Component);function at(t){return"/"===t.charAt(0)?t:"/"+t}function ct(t,n){if(!t)return n;var e=at(t);return 0!==n.pathname.indexOf(e)?n:c({},n,{pathname:n.pathname.substr(e.length)})}function ut(t){return"string"==typeof t?t:y(t)}function st(t){return function(){p(!1)}}function ft(){}var lt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return ft},n.handleBlock=function(){return ft},n}o(n,t);var e=n.prototype;return e.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,a=void 0===i?{}:i;a.action=n,a.location=function(t,n){return t?c({},n,{pathname:at(t)+n.pathname}):n}(o,g(t)),a.url=ut(a.location)},e.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,i=t.location,u=void 0===i?"/":i,s=(0,D.Z)(t,["basename","context","location"]),f={createHref:function(t){return at(e+ut(t))},action:"POP",location:ct(e,g(u)),push:this.handlePush,replace:this.handleReplace,go:st(),goBack:st(),goForward:st(),listen:this.handleListen,block:this.handleBlock};return a().createElement(z,c({},s,{history:f,staticContext:o}))},n}(a().Component),pt=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(q.Consumer,null,(function(n){n||p(!1);var e,r,o=t.props.location||n.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){e=t;var i=t.props.path||t.props.from;r=i?ot(o.pathname,c({},t.props,{path:i})):n.match}})),r?a().cloneElement(e,{location:o,computedMatch:r}):null}))},n}(a().Component);function ht(t){var n="withRouter("+(t.displayName||t.name)+")",e=function(n){var e=n.wrappedComponentRef,r=(0,D.Z)(n,["wrappedComponentRef"]);return a().createElement(q.Consumer,null,(function(n){return n||p(!1),a().createElement(t,c({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,Z()(e,t)}var dt=a().useContext;function vt(){return dt(K)}function mt(){return dt(q).location}function yt(){var t=dt(q).match;return t?t.params:{}}function gt(t){var n=mt(),e=dt(q).match;return t?ot(n.pathname,t):e}var wt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=O(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),xt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=$(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),bt=function(t,n){return"function"==typeof t?t(n):t},Pt=function(t,n){return"string"==typeof t?g(t,null,null,n):t},Ct=function(t){return t},Et=a().forwardRef;void 0===Et&&(Et=Ct);var Ot=Et((function(t,n){var e=t.innerRef,r=t.navigate,o=t.onClick,i=(0,D.Z)(t,["innerRef","navigate","onClick"]),u=i.target,s=c({},i,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||u&&"_self"!==u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=Ct!==Et&&n||e,a().createElement("a",s)})),kt=Et((function(t,n){var e=t.component,r=void 0===e?Ot:e,o=t.replace,i=t.to,u=t.innerRef,s=(0,D.Z)(t,["component","replace","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||p(!1);var e=t.history,f=Pt(bt(i,t.location),t.location),l=f?e.createHref(f):"",h=c({},s,{href:l,navigate:function(){var n=bt(i,t.location),r=y(t.location)===y(Pt(n));(o||r?e.replace:e.push)(n)}});return Ct!==Et?h.ref=n||u:h.innerRef=u,a().createElement(r,h)}))})),Rt=function(t){return t},St=a().forwardRef;void 0===St&&(St=Rt);var At=St((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,i=void 0===o?"active":o,u=t.activeStyle,s=t.className,f=t.exact,l=t.isActive,h=t.location,d=t.sensitive,v=t.strict,m=t.style,y=t.to,g=t.innerRef,w=(0,D.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||p(!1);var e=h||t.location,o=Pt(bt(y,e),e),x=o.pathname,b=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=b?ot(e.pathname,{path:b,exact:f,sensitive:d,strict:v}):null,C=!!(l?l(P,e):P),E="function"==typeof s?s(C):s,O="function"==typeof m?m(C):m;C&&(E=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(E,i),O=c({},O,u));var k=c({"aria-current":C&&r||null,className:E,style:O,to:o},w);return Rt!==St?k.ref=n||g:k.innerRef=g,a().createElement(kt,k)}))}))},6017:(t,n,e)=>{"use strict";function r(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}e.d(n,{Z:()=>r})}}]);
File without changes
package/dist/473.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[473],{1871:(e,r,n)=>{n.d(r,{Z:()=>t});var i=n(361),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB{height:max-content}.-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw{height:var(--omrs-topnav-height)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn{display:flex;flex-direction:column}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{display:flex;flex-direction:row;width:20rem;justify-content:flex-start;color:#f4f4f4;align-items:center;height:3rem;cursor:pointer}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul>svg{margin:0rem .75rem;fill:#f4f4f4}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button{width:100%;background-color:var(--brand-02)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button:hover{color:#f4f4f4;background-color:var(--brand-01)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button{color:#78a9ff;margin-left:.5rem;width:5rem}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button:hover{background-color:var(--brand-01);color:#78a9ff}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn hr{background-color:#fff;width:16rem;margin:.5rem 0rem}",""]),a.locals={productiveHeading01:"-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI",switcherContainer:"-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn",productiveHeading02:"-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d",bodyLong01:"-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk",headerPanel:"-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB",primaryNavContainer:"-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw"};const t=a},3473:(e,r,n)=>{n.r(r),n.d(r,{default:()=>C});var i=n(5776),a=n.n(i),t=n(7914),_=n(7414),s=n(487),o=n.n(s),c=n(631),h=n.n(c),l=n(2052),m=n.n(l),p=n(4010),d=n.n(p),g=n(1469),u=n.n(g),v=n(9329),w=n.n(v),f=n(1871),y={};y.styleTagTransform=w(),y.setAttributes=d(),y.insert=m().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=u(),o()(f.Z,y);const b=f.Z&&f.Z.locals?f.Z.locals:void 0,C=function(e){var r=e.user;return a().createElement("div",{className:b.switcherContainer},a().createElement(t.T5f,{"aria-label":"Switcher Container"},a().createElement(_.Yo,{size:20}),a().createElement("p",null,r.person.display)))}}}]);
package/dist/574.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[574],{3574:a=>{a.exports=JSON.parse('{"notifications":"Notifications"}')}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"notifications":"Notifications","selectLocale":"Select locale"}')}}]);
package/dist/656.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[656],{2727:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,".-esm-primary-navigation__logo__logo___ohiCI{display:flex;align-items:center}",""]),r.locals={logo:"-esm-primary-navigation__logo__logo___ohiCI"};const o=r},8815:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1,.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0\\+Z{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp{height:max-content}.-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq{height:var(--omrs-topnav-height)}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{display:flex;padding:1rem;height:3rem;width:100%;text-decoration:none;color:#fff;background-color:rgba(0,0,0,0)}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a:hover{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P{border-top:1px solid;border-top-color:#007d79;border-top-color:var(--brand-03)}.-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn{margin-left:.5rem}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1",menuLink:"-esm-primary-navigation__app-menu-panel__menuLink___a9Ems",productiveHeading02:"-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0+Z",bodyLong01:"-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX",headerPanel:"-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp",primaryNavContainer:"-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq",externalLinks:"-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P",launchIcon:"-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn"};const o=r},7726:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,"",""]),r.locals={};const o=r},3205:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM{display:flex;align-items:center}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM a{color:#fff;text-decoration:none;margin:0 .75rem}.-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV{background-color:#004144;background-color:var(--brand-02)}.-esm-primary-navigation__navbar__topNavHeader___HyHf4{top:var(--omrs-offline-banner-height)}.-esm-primary-navigation__navbar__activePanel___QUwvm{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__navbar__headerMenuButton___k6m5W{height:3rem;width:3rem;padding:.75rem;margin-right:.25rem}.-esm-primary-navigation__navbar__spacedLogo___P2WIw{margin-left:1rem}",""]),r.locals={topNavActionsSlot:"-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM",headerGlobalBarButton:"-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV",topNavHeader:"-esm-primary-navigation__navbar__topNavHeader___HyHf4",activePanel:"-esm-primary-navigation__navbar__activePanel___QUwvm",headerMenuButton:"-esm-primary-navigation__navbar__headerMenuButton___k6m5W",spacedLogo:"-esm-primary-navigation__navbar__spacedLogo___P2WIw"};const o=r},6654:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__offline-banner__offlineBanner___YHODP{position:fixed;top:0;left:0;right:0;height:var(--omrs-offline-banner-height);background-color:#022b30;color:#fff;font-size:.875rem;display:flex;align-items:center;z-index:3}.-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI{width:3rem;display:flex;justify-content:center}.-esm-primary-navigation__offline-banner__offlineNote___MlRaI{font-weight:bold}.-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6{flex:auto;display:flex;justify-content:flex-end;align-items:flex-end;padding-right:1rem}.-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L{color:#c6c6c6;font-size:.75rem}",""]),r.locals={offlineBanner:"-esm-primary-navigation__offline-banner__offlineBanner___YHODP",offlineIconContainer:"-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI",offlineNote:"-esm-primary-navigation__offline-banner__offlineNote___MlRaI",offlineLastUpdatedContainer:"-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6",lastUpdatedNote:"-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L"};const o=r},5547:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__root__productiveHeading01___tScBJ{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__productiveHeading02___2lV0H{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__root__bodyLong01___vRBQA{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__headerPanel___c17aL{height:max-content}.-esm-primary-navigation__root__primaryNavContainer___TLM40{height:var(--omrs-topnav-height)}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__root__productiveHeading01___tScBJ",productiveHeading02:"-esm-primary-navigation__root__productiveHeading02___2lV0H",bodyLong01:"-esm-primary-navigation__root__bodyLong01___vRBQA",headerPanel:"-esm-primary-navigation__root__headerPanel___c17aL",primaryNavContainer:"-esm-primary-navigation__root__primaryNavContainer___TLM40"};const o=r},3656:(e,n,a)=>{a.r(n),a.d(n,{default:()=>ce});var t=a(5776),r=a.n(t),o=a(487),i=a.n(o),l=a(631),s=a.n(l),c=a(2052),u=a.n(c),_=a(4010),d=a.n(_),m=a(1469),p=a.n(m),f=a(9329),v=a.n(f),g=a(5547),h={};h.styleTagTransform=v(),h.setAttributes=d(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),i()(g.Z,h);const y=g.Z&&g.Z.locals?g.Z.locals:void 0;var b=a(6974),E=a(7914),w=a(1102),L=a(7414),A=a(8696),x=a(2680),S=a(4474),N=a(8815),k={};k.styleTagTransform=v(),k.setAttributes=d(),k.insert=u().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=p(),i()(N.Z,k);const P=N.Z&&N.Z.locals?N.Z.locals:void 0,C=function(e){var n,a,t=e.expanded,o=e.hidePanel,i=(0,b.useOnClickOutside)(o,t),l=(0,b.useConfig)(),s=(0,x.useTranslation)().t;return r().createElement(E.yh,{ref:i,className:P.headerPanel,"aria-label":"App Menu Panel",expanded:t},r().createElement(b.ExtensionSlot,{className:P.menuLink,name:"app-menu-slot"}),(null==l||null===(n=l.externalRefLinks)||void 0===n?void 0:n.length)>0&&r().createElement("div",{className:"".concat(P.menuLink," ").concat(P.externalLinks)},null==l||null===(a=l.externalRefLinks)||void 0===a?void 0:a.map((function(e){return r().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:null==e?void 0:e.redirect},s(null==e?void 0:e.title),r().createElement(S.GI,{size:16,className:P.launchIcon}))}))))},I=function(e){var n,a=e.expanded,t=e.user,o=e.allowedLocales,i=e.onLogout,l=e.session,s=e.hidePanel,c=(0,b.useOnClickOutside)(s,a);return r().createElement(E.yh,{ref:c,className:y.headerPanel,expanded:a,"aria-label":"Location","aria-labelledby":"Location Icon"},r().createElement(b.ExtensionSlot,{name:"user-panel-slot",state:{user:t,allowedLocales:o,onLogout:i,referer:window.location.pathname,currentLocation:null==l||null===(n=l.sessionLocation)||void 0===n?void 0:n.display}}))};var M=a(7726),Z={};Z.styleTagTransform=v(),Z.setAttributes=d(),Z.insert=u().bind(null,"head"),Z.domAPI=s(),Z.insertStyleElement=p(),i()(M.Z,Z);const B=M.Z&&M.Z.locals?M.Z.locals:void 0,H=function(e){var n=e.expanded,a=(0,x.useTranslation)().t,o=(0,t.useMemo)((function(){return{expanded:n}}),[n]);return r().createElement(E.yh,{"aria-label":"Notifications Panel",expanded:n},r().createElement("h1",{className:B.heading},a("notifications","Notifications")),r().createElement(b.ExtensionSlot,{name:"notifications-nav-menu-slot",state:o}))},O=function(e){var n=e.expanded,a=e.hidePanel,o=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=function(e){(null==o?void 0:o.current)&&!o.current.contains(e.target)&&a()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[o,a]),r().useEffect((function(){return window.addEventListener("popstate",a),window.addEventListener("popstate",a)}),[a]),n&&r().createElement(b.LeftNavMenu,{ref:o,isChildOfHeader:!0})};var z=a(2727),T={};T.styleTagTransform=v(),T.setAttributes=d(),T.insert=u().bind(null,"head"),T.domAPI=s(),T.insertStyleElement=p(),i()(z.Z,T);const U=z.Z&&z.Z.locals?z.Z.locals:void 0,j=function(){var e=(0,b.useConfig)().logo;return r().createElement(r().Fragment,null,(null==e?void 0:e.src)?r().createElement("img",{className:U.logo,src:e.src,alt:e.alt,width:110,height:40}):(null==e?void 0:e.name)?e.name:r().createElement("svg",{role:"img",width:110,height:40},r().createElement("use",{xlinkHref:"#omrs-logo-white"})))};var R=a(9177),D=a(6654),G={};G.styleTagTransform=v(),G.setAttributes=d(),G.insert=u().bind(null,"head"),G.domAPI=s(),G.insertStyleElement=p(),i()(D.Z,G);const V=D.Z&&D.Z.locals?D.Z.locals:void 0;function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}const q=function(){var e=function(){var e,n,a=(e=r().useState(new Date),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),t=a[0],o=a[1];return r().useEffect((function(){var e=null;return(0,b.subscribeConnectivity)((function(n){var a,t,r=n.online;!r&&e&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;localStorage.setItem("offline-last-updated",e.toISOString())}(),e=r,a=localStorage.getItem("offline-last-updated"),t=a?new Date(a):new Date,o(t)}))}),[]),t}();return r().createElement("aside",{className:V.offlineBanner},r().createElement("div",{className:V.offlineIconContainer},r().createElement(R.iY,{size:16})),r().createElement("span",{className:V.offlineNote},"Offline"),r().createElement("div",{className:V.offlineLastUpdatedContainer},r().createElement("span",{className:V.lastUpdatedNote},"Last updated: "),r().createElement("span",null,function(e){var n=e.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}),a=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});return"".concat(n," @ ").concat(a)}(e))))};var J=function(e){return"small-desktop"===e||"large-desktop"===e},Y=a(3205),$={};$.styleTagTransform=v(),$.setAttributes=d(),$.insert=u().bind(null,"head"),$.domAPI=s(),$.insertStyleElement=p(),i()(Y.Z,$);const F=Y.Z&&Y.Z.locals?Y.Z.locals:void 0;function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}const K=function(e){var n,a,o=e.user,i=e.onLogout,l=e.allowedLocales,s=e.session,c=(0,b.useLayoutType)(),u=(0,b.useAssignedExtensions)("patient-chart-dashboard-slot").map((function(e){return e.id})),_=(n=(0,t.useState)(null),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(n,a)||function(e,n){if(e){if("string"==typeof e)return W(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?W(e,n):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=_[0],m=_[1],p=(0,t.useCallback)((function(e){return d===e}),[d]),f=(0,t.useCallback)((function(e){return m((function(n){return n===e?null:e}))}),[]),v=(0,t.useCallback)((function(){m(null)}),[]),g=(0,t.useMemo)((function(){return!J(c)&&u.length>0}),[u.length,c]),h=(0,t.useCallback)((function(){return r().createElement(r().Fragment,null,r().createElement(q,null),r().createElement(E.h4i,{className:F.topNavHeader,"aria-label":"OpenMRS"},g&&r().createElement(E.wID,{"aria-label":"Open menu",isCollapsible:!0,className:F.headerMenuButton,onClick:function(e){f("sideMenu"),e.stopPropagation()},isActive:p("sideMenu")}),r().createElement(b.ConfigurableLink,{to:"${openmrsSpaBase}/home"},r().createElement("div",{className:g?"":F.spacedLogo},r().createElement(j,null))),r().createElement(b.ExtensionSlot,{className:F.dividerOverride,name:"top-nav-info-slot"}),r().createElement(E.sLE,{className:F.headerGlobalBar},r().createElement(b.ExtensionSlot,{name:"top-nav-actions-slot",className:F.topNavActionsSlot}),r().createElement(b.ExtensionSlot,{name:"notifications-menu-button-slot",state:{isActivePanel:p,togglePanel:f}}),r().createElement(E.JMr,{"aria-label":"Users","aria-labelledby":"Users Avatar Icon",className:"".concat(p("userMenu")?F.headerGlobalBarButton:F.activePanel),name:"Users",isActive:p("userMenu"),onClick:function(e){f("userMenu"),e.stopPropagation()}},p("userMenu")?r().createElement(w.x8,{size:20}):r().createElement(L.Yo,{size:20})),r().createElement(E.JMr,{"aria-label":"App Menu",tooltipAlignment:"end",isActive:p("appMenu"),className:"".concat(p("appMenu")?F.headerGlobalBarButton:F.activePanel),"aria-labelledby":"App Menu",onClick:function(e){f("appMenu"),e.stopPropagation()}},p("appMenu")?r().createElement(w.x8,{size:20}):r().createElement(A.SQ,{size:20}))),!J(c)&&r().createElement(O,{hidePanel:v,expanded:p("sideMenu")}),r().createElement(C,{expanded:p("appMenu"),hidePanel:v}),r().createElement(H,{expanded:p("notificationsMenu")}),r().createElement(I,{user:o,session:s,expanded:p("userMenu"),allowedLocales:l,onLogout:i,hidePanel:v})))}),[g,s,o,l,p,c,v,f,i]);return r().createElement("div",null,s&&r().createElement(E.gMZ,{render:h}))};var X=a(7743),ee=a(1602),ne=a.n(ee),ae=a(8478),te=a(1718),re=a(1217);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}function ie(e,n,a,t,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void a(e)}l.done?n(s):Promise.resolve(s).then(t,r)}function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}function se(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return le(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?le(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ce=function(){var e=se((0,t.useState)(null),2),n=e[0],a=e[1],o=se((0,t.useState)(null),2),i=o[0],l=o[1],s=se((0,t.useState)(),2),c=s[0],u=s[1],_=(0,t.useCallback)((function(){return a(!1)}),[]),d=window.getOpenmrsSpaBase();return(0,t.useEffect)((function(){var e,n,t=(0,ae.getCurrentUser)({includeAuthStatus:!0}).pipe((0,te.zg)((e=ne().mark((function e(n){var a,t,r;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=n.user)){e.next=7;break}return e.next=5,(0,ae.getSynchronizationItemsFor)(a.uuid,re.O);case 5:r=e.sent,(t=Object).assign.apply(t,[a.userProperties].concat(function(e){if(Array.isArray(e))return oe(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return oe(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?oe(e,n):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}var o}),e)})),n=function(){var n=this,a=arguments;return new Promise((function(t,r){var o=e.apply(n,a);function i(e){ie(o,t,r,i,l,"next",e)}function l(e){ie(o,t,r,i,l,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)}))).subscribe((function(e){u(e.allowedLocales),e.authenticated?a(e.user):a(!1),(0,b.createErrorHandler)()})),r=(0,ae.openmrsObservableFetch)("/ws/rest/v1/session").subscribe((function(e){var n=e.data;return l(n)}));return function(){t.unsubscribe(),r.unsubscribe()}}),[]),r().createElement(X.BrowserRouter,null,r().createElement("div",{className:y.primaryNavContainer},!1===n?r().createElement(X.Navigate,{to:"".concat(d,"login"),state:{referrer:window.location.pathname.slice(window.location.pathname.indexOf(d)+d.length-1)}}):n&&r().createElement(K,{allowedLocales:c,user:n,onLogout:_,session:i})))}}}]);
package/dist/735.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 735.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[735],{4516:e=>{var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,u){for(var c,f,l=o(e),i=1;i<arguments.length;i++){for(var a in c=Object(arguments[i]))t.call(c,a)&&(l[a]=c[a]);if(r){f=r(c);for(var s=0;s<f.length;s++)n.call(c,f[s])&&(l[f[s]]=c[f[s]])}}return l}},8447:(e,r,t)=>{var n=t(4516),o="function"==typeof Symbol&&Symbol.for,u=o?Symbol.for("react.element"):60103,c=o?Symbol.for("react.portal"):60106,f=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,s=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,d=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function g(e,r,t){this.props=e,this.context=r,this.refs=_,this.updater=t||b}function S(){}function k(e,r,t){this.props=e,this.context=r,this.refs=_,this.updater=t||b}g.prototype.isReactComponent={},g.prototype.setState=function(e,r){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,r,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=g.prototype;var w=k.prototype=new S;w.constructor=k,n(w,g.prototype),w.isPureReactComponent=!0;var j={current:null},O=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,r,t){var n,o={},c=null,f=null;if(null!=r)for(n in void 0!==r.ref&&(f=r.ref),void 0!==r.key&&(c=""+r.key),r)O.call(r,n)&&!C.hasOwnProperty(n)&&(o[n]=r[n]);var l=arguments.length-2;if(1===l)o.children=t;else if(1<l){for(var i=Array(l),a=0;a<l;a++)i[a]=arguments[a+2];o.children=i}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:u,type:e,key:c,ref:f,props:o,_owner:j.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var P=/\/+/g,x=[];function R(e,r,t,n){if(x.length){var o=x.pop();return o.result=e,o.keyPrefix=r,o.func=t,o.context=n,o.count=0,o}return{result:e,keyPrefix:r,func:t,context:n,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function I(e,r,t,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var f=!1;if(null===e)f=!0;else switch(o){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case u:case c:f=!0}}if(f)return t(n,e,""===r?"."+U(e,0):r),1;if(f=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var i=r+U(o=e[l],l);f+=I(o,i,t,n)}else if("function"==typeof(i=null===e||"object"!=typeof e?null:"function"==typeof(i=m&&e[m]||e["@@iterator"])?i:null))for(e=i.call(e),l=0;!(o=e.next()).done;)f+=I(o=o.value,i=r+U(o,l++),t,n);else if("object"===o)throw t=""+e,Error(v(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t,""));return f}function q(e,r,t){return null==e?0:I(e,"",r,t)}function U(e,r){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var r={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return r[e]}))}(e.key):r.toString(36)}function F(e,r){e.func.call(e.context,r,e.count++)}function L(e,r,t){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,r,e.count++),Array.isArray(e)?M(e,n,t,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,r){return{$$typeof:u,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||r&&r.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+t)),n.push(e))}function M(e,r,t,n,o){var u="";null!=t&&(u=(""+t).replace(P,"$&/")+"/"),q(e,L,r=R(r,u,n,o)),A(r)}var N={current:null};function D(){var e=N.current;if(null===e)throw Error(v(321));return e}var T={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:n};r.Children={map:function(e,r,t){if(null==e)return e;var n=[];return M(e,n,null,r,t),n},forEach:function(e,r,t){if(null==e)return e;q(e,F,r=R(null,null,r,t)),A(r)},count:function(e){return q(e,(function(){return null}),null)},toArray:function(e){var r=[];return M(e,r,null,(function(e){return e})),r},only:function(e){if(!E(e))throw Error(v(143));return e}},r.Component=g,r.Fragment=f,r.Profiler=i,r.PureComponent=k,r.StrictMode=l,r.Suspense=y,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,r.cloneElement=function(e,r,t){if(null==e)throw Error(v(267,e));var o=n({},e.props),c=e.key,f=e.ref,l=e._owner;if(null!=r){if(void 0!==r.ref&&(f=r.ref,l=j.current),void 0!==r.key&&(c=""+r.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in r)O.call(r,a)&&!C.hasOwnProperty(a)&&(o[a]=void 0===r[a]&&void 0!==i?i[a]:r[a])}var a=arguments.length-2;if(1===a)o.children=t;else if(1<a){i=Array(a);for(var s=0;s<a;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:u,type:e.type,key:c,ref:f,props:o,_owner:l}},r.createContext=function(e,r){return void 0===r&&(r=null),(e={$$typeof:s,_calculateChangedBits:r,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},r.createElement=$,r.createFactory=function(e){var r=$.bind(null,e);return r.type=e,r},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:p,render:e}},r.isValidElement=E,r.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},r.memo=function(e,r){return{$$typeof:d,type:e,compare:void 0===r?null:r}},r.useCallback=function(e,r){return D().useCallback(e,r)},r.useContext=function(e,r){return D().useContext(e,r)},r.useDebugValue=function(){},r.useEffect=function(e,r){return D().useEffect(e,r)},r.useImperativeHandle=function(e,r,t){return D().useImperativeHandle(e,r,t)},r.useLayoutEffect=function(e,r){return D().useLayoutEffect(e,r)},r.useMemo=function(e,r){return D().useMemo(e,r)},r.useReducer=function(e,r,t){return D().useReducer(e,r,t)},r.useRef=function(e){return D().useRef(e)},r.useState=function(e){return D().useState(e)},r.version="16.14.0"},2735:(e,r,t)=>{e.exports=t(8447)}}]);
2
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[735],{8447:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,k(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),O(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",k(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=O(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=O(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function x(e,t,r){if(null==e)return e;var n=[],o=0;return O(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},2735:(e,t,r)=>{e.exports=r(8447)}}]);
@@ -1,10 +1,5 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- /** @license React v16.14.0
1
+ /**
2
+ * @license React
8
3
  * react.production.min.js
9
4
  *
10
5
  * Copyright (c) Facebook, Inc. and its affiliates.