@openmrs/esm-primary-navigation-app 4.0.3-pre.365 → 4.0.3-pre.371

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,29 +1,30 @@
1
- @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 7721f0c165fee470
2
- @openmrs/esm-primary-navigation-app:build: assets by chunk 229 KiB (id hint: vendors)
3
- @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
- @openmrs/esm-primary-navigation-app:build:  asset 857.js 38.3 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
- @openmrs/esm-primary-navigation-app:build:  asset 41.js 27.6 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
- @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
7
- @openmrs/esm-primary-navigation-app:build:  asset 218.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
- @openmrs/esm-primary-navigation-app:build: + 11 assets
9
- @openmrs/esm-primary-navigation-app:build: orphan modules 3.64 MiB (javascript) 42 bytes (consume-shared) [orphan] 580 modules
10
- @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
11
- @openmrs/esm-primary-navigation-app:build: built modules 2.5 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
12
- @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.5 MiB
13
- @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.33 MiB 44 modules
14
- @openmrs/esm-primary-navigation-app:build:  modules by path ./ 174 KiB 18 modules
15
- @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
16
- @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.3-pre.365 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
17
- @openmrs/esm-primary-navigation-app:build:  + 4 modules
18
- @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
19
- @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
20
- @openmrs/esm-primary-navigation-app:build:  + 3 modules
21
- @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
22
- @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
23
- @openmrs/esm-primary-navigation-app:build: 
24
- @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
25
- @openmrs/esm-primary-navigation-app:build: This can impact web performance.
26
- @openmrs/esm-primary-navigation-app:build: Assets:
27
- @openmrs/esm-primary-navigation-app:build:  889.js (431 KiB)
28
- @openmrs/esm-primary-navigation-app:build: 
29
- @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 87699 ms
1
+ @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 9353a1c0882d500e
2
+ @openmrs/esm-primary-navigation-app:build: assets by chunk 230 KiB (id hint: vendors)
3
+ @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
+ @openmrs/esm-primary-navigation-app:build:  asset 483.js 37.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-primary-navigation-app:build:  asset 787.js 27.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
7
+ @openmrs/esm-primary-navigation-app:build:  asset 723.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ @openmrs/esm-primary-navigation-app:build:  asset 414.js 737 bytes [emitted] [minimized] (id hint: vendors)
9
+ @openmrs/esm-primary-navigation-app:build: + 11 assets
10
+ @openmrs/esm-primary-navigation-app:build: orphan modules 3.72 MiB (javascript) 42 bytes (consume-shared) [orphan] 575 modules
11
+ @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
12
+ @openmrs/esm-primary-navigation-app:build: built modules 2.6 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
13
+ @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.6 MiB
14
+ @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.42 MiB 43 modules
15
+ @openmrs/esm-primary-navigation-app:build:  modules by path ./ 183 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.3-pre.371 = ../../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 (419 KiB)
29
+ @openmrs/esm-primary-navigation-app:build: 
30
+ @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 93773 ms
package/dist/146.js CHANGED
@@ -1 +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})}}]);
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|#x2F|#47);/g,O={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},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 x,E={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]:{};E=P(P({},E),e)}function N(){return E}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){x=e}function D(){return x}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 F(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 H(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var K=["format"],V=["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.props?e.props.children:e.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,K),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,V),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 x=m||P.t.bind(P)||function(e){return e};s&&(l.context=s);var E=M(M({},N()),P.options&&P.options.react),k=g||x.ns||w||P.options&&P.options.defaultNS;k="string"==typeof k?[k]:k||["translation"];var I=f||Y(n,E)||E.transEmptyNodeValue||a,C=E.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),x=P&&$(o,!0)&&!o.voidElement,E=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)||x)g(w,d(w,o,l),n,m);else if(E){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?x(R,A):I,P,E,A,v),z=void 0!==r?r:E.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 F(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,f]);var x=[v,a,g];if(x.t=v,x.i18n=a,x.ready=g,g)return x;if(!g&&!p)return x;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(H(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(H(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/414.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[414],{7414:(e,r,a)=>{a.d(r,{Yo:()=>h});var n,t,i=a(8908),p=a(5776),s=a.n(p),o=["children","size"],h=s().forwardRef((function(e,r){var a=e.children,p=e.size,h=void 0===p?16:p,l=(0,i._)(e,o);return s().createElement(i.I,(0,i.a)({width:h,height:h,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},l),n||(n=s().createElement("path",{d:"M16,8a5,5,0,1,0,5,5A5,5,0,0,0,16,8Z"})),t||(t=s().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm7.9925,22.9258A5.0016,5.0016,0,0,0,19,20H13a5.0016,5.0016,0,0,0-4.9925,4.9258,12,12,0,1,1,15.985,0Z"})),a)}))}}]);
package/dist/473.js CHANGED
@@ -1 +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)))}}}]);
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(5045),_=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/483.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 483.js.LICENSE.txt */
2
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[483,216],{1102:(e,t,n)=>{"use strict";n.d(t,{_M:()=>f,x8:()=>p});var r,a,o,i,l=n(8908),c=n(5776),s=n.n(c),u=["children","size"],d=["children","size"],f=s().forwardRef((function(e,t){var n=e.children,i=e.size,c=void 0===i?16:i,d=(0,l._)(e,u);return"glyph"===c||"glyph"===c||"glyphpx"===c?s().createElement(l.I,(0,l.a)({width:c,height:c,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor"},d),r||(r=s().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),n):16===c||"16"===c||"16px"===c?s().createElement(l.I,(0,l.a)({width:c,height:c,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},d),a||(a=s().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n):s().createElement(l.I,(0,l.a)({width:c,height:c,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},d),o||(o=s().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),n)})),p=s().forwardRef((function(e,t){var n=e.children,r=e.size,a=void 0===r?16:r,o=(0,l._)(e,d);return s().createElement(l.I,(0,l.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),i||(i=s().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}))},8908:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}n.d(t,{I:()=>w,_:()=>v,a:()=>m});var l=["width","height","viewBox"],c=["tabindex"],s={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var u=n(216),d=n.n(u),f=n(5776),p=n.n(f);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var y=["className","children","tabIndex"],g=["tabindex"],w=p().forwardRef((function(e,t){var n=e.className,r=e.children,o=e.tabIndex,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(t," ").concat(n):r,u=i(e,l),d=u.tabindex,f=i(u,c),p=a(a(a({},s),f),{},{width:t,height:n,viewBox:o});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}(m(m({},v(e,y)),{},{tabindex:o})),d=u.tabindex,f=v(u,g);return n&&(f.className=n),null!=d&&(f.tabIndex=d),t&&(f.ref=t),p().createElement("svg",f,r)}));w.displayName="Icon",w.propTypes={"aria-hidden":d().string,"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().string,viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string},w.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"},d().oneOfType([d().number,d().string])},5045:(e,t,n)=>{"use strict";n.d(t,{h4i:()=>me,gMZ:()=>ve,JMr:()=>Fe,sLE:()=>We,wID:()=>fe,yh:()=>Ze,PhF:()=>K,QlF:()=>le,T5f:()=>Je});var r={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?r.enableCssCustomProperties=!0:r.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?r.enableUseControlledStateWithValue=!0:r.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?r.enableCssGrid=!0:r.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE&&"true"===process.env.CARBON_ENABLE_V11_RELEASE?r.enableV11Release=!0:r.enableV11Release=!1}catch(e){r.enableCssCustomProperties=!1,r.enableUseControlledStateWithValue=!1,r.enableCssGrid=!1,r.enableV11Release=!1}var a=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:r.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:r.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:r.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:r.enableV11Release}];function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||l(e,t)||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 l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}for(var s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,t&&Object.keys(t).forEach((function(e){n.flags.set(e,t[e])}))}var t,n;return t=e,n=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,t){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,t)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.flags.set(n,e[n])}))}},{key:"mergeWithScope",value:function(e){var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}(e.flags);try{for(n.s();!(t=n.n()).done;){var r=i(t.value,2),a=r[0],o=r[1];this.flags.has(a)||this.flags.set(a,o)}}catch(e){n.e(e)}finally{n.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],n&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),u=new s(void 0),d=0;d<a.length;d++){var f=a[d];u.add(f.name,f.enabled)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||g(e,t)||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 g(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){u.merge.apply(u,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0});var E,O,x,N,C,S,_,M,T,A,j,I=n(216),P=n.n(I),k=n(5776),R=n.n(k),z=n(841),L=n.n(z),H=n(1102),D=n(8908),B=["children","size"],V=["children","size"],F=R().forwardRef((function(e,t){var n=e.children,r=e.size,a=void 0===r?16:r,o=(0,D._)(e,B);return R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),E||(E=R().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),O||(O=R().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),x||(x=R().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)})),U=R().forwardRef((function(e,t){var n=e.children,r=e.size,a=void 0===r?16:r,o=(0,D._)(e,V);return 16===a||"16"===a||"16px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},o),N||(N=R().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),C||(C=R().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n):20===a||"20"===a||"20px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},o),S||(S=R().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),_||(_=R().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),n):24===a||"24"===a||"24px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},o),M||(M=R().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),T||(T=R().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),n):R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),A||(A=R().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),j||(j=R().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),n)})),W={},q=(0,k.createContext)(u);P().node,P().objectOf(P().bool);var G=R().createContext("cds");function Z(){return R().useContext(G)}var Y,J=["className","id","inline","labelText","disabled","children","noLabel","hideLabel","invalid","invalidText","helperText","light","size","warn","warnText"],$=R().forwardRef((function(e,t){var n,r,a,o=e.className,i=e.id,l=e.inline,c=void 0!==l&&l,s=e.labelText,u=e.disabled,d=void 0!==u&&u,f=e.children,p=e.noLabel,h=void 0!==p&&p,y=e.hideLabel,g=void 0!==y&&y,w=e.invalid,E=void 0!==w&&w,O=e.invalidText,x=e.helperText,N=e.light,C=void 0!==N&&N,S=e.size,_=e.warn,M=void 0!==_&&_,T=e.warnText,A=v(e,J),j=Z(),I=("enable-v11-release",(0,k.useContext)(q).enabled("enable-v11-release")),P=L()((m(n={},"".concat(j,"--select"),!0),m(n,"".concat(j,"--select--inline"),c),m(n,"".concat(j,"--select--light"),C),m(n,"".concat(j,"--select--invalid"),E),m(n,"".concat(j,"--select--disabled"),d),m(n,"".concat(j,"--select--warning"),M),n),[I?null:o]),z=L()("".concat(j,"--label"),(m(r={},"".concat(j,"--visually-hidden"),g),m(r,"".concat(j,"--label--disabled"),d),r)),D=L()((m(a={},"".concat(j,"--select-input"),!0),m(a,"".concat(j,"--select-input--").concat(S),S),a)),B="".concat(i,"-error-msg"),V=E?O:M?T:void 0,W=E||M?R().createElement("div",{className:"".concat(j,"--form-requirement"),id:B},V):null,G=L()("".concat(j,"--form__helper-text"),m({},"".concat(j,"--form__helper-text--disabled"),d)),Y=x?R().createElement("div",{className:G},x):null,$={};E&&($["aria-describedby"]=B);var K=R().createElement(R().Fragment,null,R().createElement("select",b({},A,$,{id:i,className:D,disabled:d||void 0,"aria-invalid":E||void 0,ref:t}),f),R().createElement(H._M,{className:"".concat(j,"--select__arrow")}),E&&R().createElement(U,{className:"".concat(j,"--select__invalid-icon")}),!E&&M&&R().createElement(F,{className:"".concat(j,"--select__invalid-icon ").concat(j,"--select__invalid-icon--warning")}));return R().createElement("div",{className:I?L()("".concat(j,"--form-item"),o):"".concat(j,"--form-item")},R().createElement("div",{className:P},!h&&R().createElement("label",{htmlFor:i,className:z},s),c&&R().createElement("div",{className:"".concat(j,"--select-input--inline__wrapper")},R().createElement("div",{className:"".concat(j,"--select-input__wrapper"),"data-invalid":E||null},K),W),!c&&R().createElement("div",{className:"".concat(j,"--select-input__wrapper"),"data-invalid":E||null},K),!c&&W?W:Y))}));$.displayName="Select",$.propTypes={children:P().node,className:P().string,defaultValue:P().any,disabled:P().bool,helperText:P().node,hideLabel:P().bool,id:P().string.isRequired,inline:P().bool,invalid:P().bool,invalidText:P().node,labelText:P().node,light:(Y=P().bool,function(e,t,n){if(void 0!==e[t]){W[n]&&W[n][t]||(W[n]=h(h({},W[n]),{},m({},t,!0)));for(var r=arguments.length,a=new Array(r>3?r-3:0),o=3;o<r;o++)a[o-3]=arguments[o];return Y.apply(void 0,[e,t,n].concat(a))}}),noLabel:P().bool,onChange:P().func,size:P().oneOf(["sm","md","lg"]),warn:P().bool,warnText:P().node},$.defaultProps={disabled:!1,labelText:"Select",inline:!1,invalid:!1,invalidText:"",helperText:""};var K=$,Q=["className","value","disabled","hidden","text"],X=function(e){var t,n=e.className,r=e.value,a=e.disabled,o=e.hidden,i=e.text,l=v(e,Q),c=Z(),s=L()((m(t={},"".concat(c,"--select-option"),!0),m(t,n,n),t));return R().createElement("option",b({},l,{className:s,value:r,disabled:a,hidden:o}),i)};X.propTypes={className:P().string,disabled:P().bool,hidden:P().bool,text:P().string.isRequired,value:P().any.isRequired},X.defaultProps={disabled:!1,hidden:!1,value:"",text:""};var ee,te,ne,re,ae,oe,ie,le=X,ce=["children","size"],se=R().forwardRef((function(e,t){var n=e.children,r=e.size,a=void 0===r?16:r,o=(0,D._)(e,ce);return 16===a||"16"===a||"16px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},o),ee||(ee=R().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),n):20===a||"20"===a||"20px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},o),te||(te=R().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),n):24===a||"24"===a||"24px"===a?R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},o),ne||(ne=R().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),n):R().createElement(D.I,(0,D.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),re||(re=R().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),n)})),ue=(ae={"aria-label":P().string,"aria-labelledby":P().string},Object.keys(ae).reduce((function(e,t){return h(h({},e),{},m({},t,function(e){return function(t,n,r){for(var a=arguments.length,o=new Array(a>3?a-3:0),i=3;i<a;i++)o[i-3]=arguments[i];return e.apply(void 0,[t,n,r].concat(o))}}(ae[t])))}),{})),de=["aria-label","aria-labelledby","className","renderMenuIcon","renderCloseIcon","onClick","isActive","isCollapsible"];function fe(e){var t,n=e["aria-label"],r=e["aria-labelledby"],a=e.className,o=e.renderMenuIcon,i=e.renderCloseIcon,l=e.onClick,c=e.isActive,s=e.isCollapsible,u=v(e,de),d=Z(),f=L()((m(t={},a,!!a),m(t,"".concat(d,"--header__action"),!0),m(t,"".concat(d,"--header__menu-trigger"),!0),m(t,"".concat(d,"--header__action--active"),c),m(t,"".concat(d,"--header__menu-toggle"),!0),m(t,"".concat(d,"--header__menu-toggle__hidden"),!s),t)),p={"aria-label":n,"aria-labelledby":r},h=o||oe||(oe=R().createElement(se,{size:20})),y=i||ie||(ie=R().createElement(H.x8,{size:20}));return R().createElement("button",b({},u,p,{className:f,title:n,type:"button",onClick:l}),c?y:h)}fe.propTypes=h(h({},ue),{},{className:P().string,isActive:P().bool,onClick:P().func});var pe=["className","children"],he=function(e){var t=e.className,n=e.children,r=v(e,pe),a=Z(),o=L()("".concat(a,"--header"),t);return R().createElement("header",b({},r,{className:o}),n)};he.propTypes=h(h({},ue),{},{className:P().string});var me=he,be=function(e){var t=e.isSideNavExpanded,n=e.render,r=y((0,k.useState)(t),2),a=r[0],o=r[1],i=(0,k.useCallback)((function(){o((function(e){return!e}))}),[o]);return R().createElement(n,{isSideNavExpanded:a,onClickSideNavExpand:i})};be.propTypes={isSideNavExpanded:P().bool},be.defaultProps={isSideNavExpanded:!1};var ve=be,ye="undefined"!=typeof window?k.useLayoutEffect:k.useEffect;function ge(e){return(0,k.useCallback)((function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}var we=["align","as","autoAlign","caret","className","children","dropShadow","highContrast","open"],Ee=["className","children"],Oe=R().createContext({floating:{current:null}}),xe=R().forwardRef((function(e,t){var n,r=e.align,a=void 0===r?"bottom":r,o=e.as,i=void 0===o?"span":o,l=e.autoAlign,c=void 0!==l&&l,s=e.caret,u=void 0===s||s,d=e.className,f=e.children,p=e.dropShadow,h=void 0===p||p,g=e.highContrast,w=void 0!==g&&g,E=e.open,O=v(e,we),x=Z(),N=(0,k.useRef)(),C=(0,k.useRef)(),S=(0,k.useMemo)((function(){return{floating:N}}),[]),_=ge([t,C]),M=y((0,k.useState)(!1),2),T=M[0],A=M[1],j=y((0,k.useState)(a),2),I=j[0],P=j[1],z=L()((m(n={},"".concat(x,"--popover-container"),!0),m(n,"".concat(x,"--popover--caret"),u),m(n,"".concat(x,"--popover--drop-shadow"),h),m(n,"".concat(x,"--popover--high-contrast"),w),m(n,"".concat(x,"--popover--open"),E),m(n,"".concat(x,"--popover--").concat(I),T),m(n,"".concat(x,"--popover--").concat(a),!T),m(n,d,!!d),n));return ye((function(){if(c){if(N.current&&!0!==T){var e=N.current.getBoundingClientRect(),t=e.x<-16,n=e.y<-16,r=e.x+(e.width-16)>document.documentElement.clientWidth,o=e.y+(e.height-16)>document.documentElement.clientHeight;if(t||n||r||o){for(var i=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],l=[a],s=i[(i.indexOf(a)+1)%i.length];s&&!l.includes(s);)l.push(s),s=i[(i.indexOf(s)+1)%i.length];for(var u=null,d=0;d<l.length;d++){var f=l[d];if(p(f)){u=f;break}}u&&(A(!0),P(u))}else A(!1)}}else A(!1);function p(e){C.current.classList.add("".concat(x,"--popover--").concat(e));var t=N.current.getBoundingClientRect();return t.x<-16||t.y<-16||t.x+(t.width-16)>document.documentElement.clientWidth||t.y+(t.height-16)>document.documentElement.clientHeight?(C.current.classList.remove("".concat(x,"--popover--").concat(e)),!1):(C.current.classList.remove("".concat(x,"--popover--").concat(e)),!0)}}),[T,a,c,x]),R().createElement(Oe.Provider,{value:S},R().createElement(i,b({},O,{className:z,ref:_}),f))}));xe.propTypes={align:P().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:P().oneOfType([P().string,P().elementType]),autoAlign:P().bool,caret:P().bool,children:P().node,className:P().string,dropShadow:P().bool,highContrast:P().bool,open:P().bool.isRequired};var Ne=R().forwardRef((function(e,t){var n=e.className,r=e.children,a=v(e,Ee),o=Z(),i=ge([R().useContext(Oe).floating,t]);return R().createElement("span",b({},a,{className:"".concat(o,"--popover")}),R().createElement("span",{className:L()("".concat(o,"--popover-content"),n),ref:i},r),R().createElement("span",{className:"".concat(o,"--popover-caret")}))}));Ne.propTypes={children:P().node,className:P().string};var Ce,Se=!("undefined"==typeof window||!window.document||!window.document.createElement),_e=(Ce=0,function(){return++Ce}),Me=Se?k.useLayoutEffect:k.useEffect,Te=!1;function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,k.useState)((function(){return Te?"".concat(e,"-").concat(_e()):null})),n=y(t,2),r=n[0],a=n[1];return Me((function(){null===r&&a("".concat(e,"-").concat(_e()))}),[_e]),(0,k.useEffect)((function(){!1===Te&&(Te=!0)}),[]),r}function je(e){if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}(e.childNodes);try{for(n.s();!(t=n.n()).done;){var r=je(t.value);if(r)return r}}catch(e){n.e(e)}finally{n.f()}return null}var Ie={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Pe=["align","className","children","label","description","enterDelayMs","leaveDelayMs","defaultOpen"];function ke(e){var t,n,r,a,o,i,l=e.align,c=void 0===l?"top":l,s=e.className,u=e.children,d=e.label,f=e.description,p=e.enterDelayMs,h=void 0===p?100:p,m=e.leaveDelayMs,g=void 0===m?300:m,w=e.defaultOpen,E=void 0!==w&&w,O=v(e,Pe),x=(0,k.useRef)(null),N=(0,k.useRef)(null),C=(t=E,r=(n=y((0,k.useState)(t),2))[0],a=n[1],o=(0,k.useRef)(null),i=(0,k.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;clearTimeout(o.current),o.current=null,0!==t?o.current=setTimeout((function(){a(e),o.current=null}),t):a(e)}),[]),(0,k.useEffect)((function(){return function(){clearTimeout(o.current)}}),[]),[r,i]),S=y(C,2),_=S[0],M=S[1],T=Ae("tooltip"),A=Z(),j=R().Children.only(u),I={onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},onMouseEnter:function(){M(!0,h)}};return d?I["aria-labelledby"]=T:I["aria-describedby"]=T,(0,k.useEffect)((function(){je(x.current)||M(!1)})),R().createElement(xe,b({},O,{align:c,className:L()("".concat(A,"--tooltip"),s),dropShadow:!1,highContrast:!0,onKeyDown:function(e){_&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key,r=t.which,a=t.keyCode,o=t.code;return"string"==typeof e?e===n:"number"==typeof e?e===r||e===a:e.key&&Array.isArray(n)?-1!==n.indexOf(e.key):e.key===n||e.which===r||e.keyCode===a||e.code===o}(e,Ie)&&(e.stopPropagation(),M(!1))},onMouseLeave:function(){M(!1,g)},open:_,ref:x}),R().cloneElement(j,I),R().createElement(Ne,{"aria-hidden":"true",className:"".concat(A,"--tooltip-content"),id:T,ref:N,role:"tooltip"},d||f))}ke.propTypes={align:P().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:P().node,className:P().string,defaultOpen:P().bool,description:P().node,enterDelayMs:P().number,label:P().node,leaveDelayMs:P().number};var Re=["align","children","className","defaultOpen","enterDelayMs","kind","label","leaveDelayMs","size"],ze=R().forwardRef((function(e,t){var n=e.align,r=e.children,a=e.className,o=e.defaultOpen,i=void 0!==o&&o,l=e.enterDelayMs,c=e.kind,s=e.label,u=e.leaveDelayMs,d=e.size,f=void 0===d?"md":d,p=v(e,Re),h=Z();return R().createElement(ke,{align:n,className:"".concat(h,"--icon-tooltip"),defaultOpen:i,enterDelayMs:l,label:s,leaveDelayMs:u},R().createElement(De,b({},p,{kind:c,ref:t,size:f,className:L()("".concat(h,"--btn--icon-only"),a)}),r))}));ze.propTypes={align:P().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:P().node,className:P().string,defaultOpen:P().bool,enterDelayMs:P().number,kind:P().oneOf(["primary","secondary","ghost","tertiary"]),label:P().node.isRequired,leaveDelayMs:P().number,size:P().oneOf(["sm","md","lg"])};var Le=["as","children","className","dangerDescription","disabled","hasIconOnly","href","iconDescription","isExpressive","isSelected","kind","onBlur","onClick","onFocus","onMouseEnter","onMouseLeave","renderIcon","size","tabIndex","tooltipAlignment","tooltipPosition","type"],He=R().forwardRef((function(e,t){var n,r,a=e.as,o=e.children,i=e.className,l=e.dangerDescription,c=void 0===l?"danger":l,s=e.disabled,u=void 0!==s&&s,d=e.hasIconOnly,f=void 0!==d&&d,p=e.href,y=e.iconDescription,g=e.isExpressive,w=void 0!==g&&g,E=e.isSelected,O=e.kind,x=void 0===O?"primary":O,N=e.onBlur,C=e.onClick,S=e.onFocus,_=e.onMouseEnter,M=e.onMouseLeave,T=e.renderIcon,A=e.size,j=void 0===A?"lg":A,I=e.tabIndex,P=void 0===I?0:I,z=e.tooltipAlignment,H=void 0===z?"center":z,D=e.tooltipPosition,B=void 0===D?"top":D,V=e.type,F=void 0===V?"button":V,U=v(e,Le),W=(0,k.useRef)(null),q=Z(),G={tabIndex:P,className:L()(i,(m(n={},"".concat(q,"--btn"),!0),m(n,"".concat(q,"--btn--sm"),"sm"===j&&!w),m(n,"".concat(q,"--btn--md"),"md"===j&&!w),m(n,"".concat(q,"--btn--xl"),"xl"===j),m(n,"".concat(q,"--btn--2xl"),"2xl"===j),m(n,"".concat(q,"--btn--").concat(x),x),m(n,"".concat(q,"--btn--disabled"),u),m(n,"".concat(q,"--btn--expressive"),w),m(n,"".concat(q,"--btn--icon-only"),f),m(n,"".concat(q,"--btn--selected"),f&&E&&"ghost"===x),n)),ref:t},Y=T?R().createElement(T,{"aria-label":y,className:"".concat(q,"--btn__icon"),"aria-hidden":"true"}):null,J=T?R().createElement(T,null):null,$=["danger","danger--tertiary","danger--ghost"],K="button",Q=Ae("danger-description"),X={disabled:u,type:F,"aria-describedby":$.includes(x)?Q:null,"aria-pressed":f&&"ghost"===x?E:null},ee={href:p};r=$.includes(x)?R().createElement("span",{id:Q,className:"".concat(q,"--visually-hidden")},c):null,a?(K=a,X=h(h({},X),ee)):p&&!u&&(K="a",X=ee);var te,ne,re=R().createElement(K,h(h(h({onMouseEnter:_,onMouseLeave:M,onFocus:S,onBlur:N,onClick:C},U),G),X),r,o,Y);return f?("top"!==B&&"bottom"!==B||("center"===H&&(te=B),"end"===H&&(te="".concat(B,"-right")),"start"===H&&(te="".concat(B,"-left"))),"right"!==B&&"left"!==B||(te=B),R().createElement(ze,b({align:te,label:y,kind:x,size:j,onMouseEnter:_,onMouseLeave:M,onFocus:S,onBlur:N,onClick:(ne=[C,function(e){e.target!==W.current||e.preventDefault()}],function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0;a<ne.length&&!e.defaultPrevented;a++)"function"==typeof ne[a]&&ne[a].apply(ne,[e].concat(n))})},U,G,X),J||o)):re}));He.displayName="Button",He.propTypes={as:P().oneOfType([P().func,P().string,P().elementType]),children:P().node,className:P().string,dangerDescription:P().string,disabled:P().bool,hasIconOnly:P().bool,href:P().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isExpressive:P().bool,isSelected:P().bool,kind:P().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:P().func,onClick:P().func,onFocus:P().func,onMouseEnter:P().func,onMouseLeave:P().func,renderIcon:P().oneOfType([P().func,P().object]),role:P().string,size:P().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:P().number,tooltipAlignment:P().oneOf(["start","center","end"]),tooltipPosition:P().oneOf(["top","right","bottom","left"]),type:P().oneOf(["button","reset","submit"])};var De=He,Be=["aria-label","aria-labelledby","children","className","onClick","isActive","tooltipAlignment"],Ve=R().forwardRef((function(e,t){var n,r=e["aria-label"],a=e["aria-labelledby"],o=e.children,i=e.className,l=e.onClick,c=e.isActive,s=e.tooltipAlignment,u=v(e,Be),d=Z(),f=L()((m(n={},i,!!i),m(n,"".concat(d,"--header__action"),!0),m(n,"".concat(d,"--header__action--active"),c),n)),p={"aria-label":r,"aria-labelledby":a};return R().createElement(De,b({},u,p,{className:f,onClick:l,type:"button",hasIconOnly:!0,iconDescription:r,tooltipPosition:"bottom",tooltipAlignment:s,ref:t}),o)}));Ve.propTypes=h(h({},ue),{},{children:P().node.isRequired,className:P().string,isActive:P().bool,onClick:P().func,tooltipAlignment:P().oneOf(["start","center","end"])}),Ve.displayName="HeaderGlobalAction";var Fe=Ve,Ue=["className"],We=function(e){var t=e.name,n=e.className,r=e.type;function a(e){var t=e.className,a=v(e,Ue),o=Z(),i=L()("function"==typeof n?n(o):n,t);return R().createElement(r,h(h({},a),{},{className:i||void 0}))}return a.displayName=t,a.propTypes={className:P().string},a}({name:"HeaderGlobalBar",className:function(e){return"".concat(e,"--header__global")},type:"div"}),qe=["aria-label","aria-labelledby","children","className","expanded"],Ge=R().forwardRef((function(e,t){var n,r=e["aria-label"],a=e["aria-labelledby"],o=e.children,i=e.className,l=e.expanded,c=v(e,qe),s=Z(),u={"aria-label":r,"aria-labelledby":a},d=L()("".concat(s,"--header-panel"),(m(n={},"".concat(s,"--header-panel--expanded"),l),m(n,i,!!i),n));return R().createElement("div",b({},c,{className:d},u,{ref:t}),o)}));Ge.propTypes=h(h({},ue),{},{className:P().string,expanded:P().bool}),Ge.displayName="HeaderPanel";var Ze=Ge,Ye=R().forwardRef((function(e,t){var n=Z(),r=e["aria-label"],a=e["aria-labelledby"],o=e.className,i=e.children,l={"aria-label":r,"aria-labelledby":a},c=L()("".concat(n,"--switcher"),m({},o,!!o));return R().createElement("ul",b({ref:t,className:c},l),i)}));Ye.displayName="Switcher",Ye.propTypes=h(h({},ue),{},{children:P().node.isRequired,className:P().string});var Je=Ye},841:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},361:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},459:(e,t,n)=>{"use strict";var r=n(5704);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},216:(e,t,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},487:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},i=[],l=0;l<e.length;l++){var c=e[l],s=r.base?c[0]+r.base:c[0],u=o[s]||0,d="".concat(s," ").concat(u);o[s]=u+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=a(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:h,references:1})}i.push(d)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var l=n(o[i]);t[l].references--}for(var c=r(e,a),s=0;s<o.length;s++){var u=n(o[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=c}}},2052:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1469:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},4010:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},631:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},9329:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);
@@ -0,0 +1,5 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
package/dist/656.js CHANGED
@@ -1 +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(4610),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})))}}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[656],{2727:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((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,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((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,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,"",""]),r.locals={};const o=r},3205:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((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,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((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,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((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,t)=>{t.r(n),t.d(n,{default:()=>se});var a=t(5776),r=t.n(a),o=t(487),i=t.n(o),l=t(631),s=t.n(l),c=t(2052),u=t.n(c),d=t(4010),_=t.n(d),m=t(1469),p=t.n(m),f=t(9329),v=t.n(f),g=t(5547),h={};h.styleTagTransform=v(),h.setAttributes=_(),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=t(4610),E=t(5045),w=t(1102),L=t(7414),S=t(3240),A=t(2680),x=t(4474),N=t(8815),k={};k.styleTagTransform=v(),k.setAttributes=_(),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,t,a=e.expanded,o=e.hidePanel,i=(0,b.useOnClickOutside)(o,a),l=(0,b.useConfig)(),s=(0,A.useTranslation)().t;return r().createElement(E.yh,{ref:i,className:P.headerPanel,"aria-label":"App Menu Panel",expanded:a},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===(t=l.externalRefLinks)||void 0===t?void 0:t.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(x.GI,{size:16,className:P.launchIcon}))}))))},I=function(e){var n,t=e.expanded,a=e.user,o=e.allowedLocales,i=e.onLogout,l=e.session,s=e.hidePanel,c=(0,b.useOnClickOutside)(s,t);return r().createElement(E.yh,{ref:c,className:y.headerPanel,expanded:t,"aria-label":"Location","aria-labelledby":"Location Icon"},r().createElement(b.ExtensionSlot,{name:"user-panel-slot",state:{user:a,allowedLocales:o,onLogout:i,referer:window.location.pathname,currentLocation:null==l||null===(n=l.sessionLocation)||void 0===n?void 0:n.display}}))};var M=t(7726),Z={};Z.styleTagTransform=v(),Z.setAttributes=_(),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,t=(0,A.useTranslation)().t,o=(0,a.useMemo)((function(){return{expanded:n}}),[n]);return r().createElement(E.yh,{"aria-label":"Notifications Panel",expanded:n},r().createElement("h1",{className:B.heading},t("notifications","Notifications")),r().createElement(b.ExtensionSlot,{name:"notifications-nav-menu-slot",state:o}))},O=function(e){var n=e.expanded,t=e.hidePanel,o=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e=function(e){(null==o?void 0:o.current)&&!o.current.contains(e.target)&&t()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[o,t]),r().useEffect((function(){return window.addEventListener("popstate",t),window.addEventListener("popstate",t)}),[t]),n&&r().createElement(b.LeftNavMenu,{ref:o,isChildOfHeader:!0})};var z=t(2727),T={};T.styleTagTransform=v(),T.setAttributes=_(),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=t(9177),D=t(6654),G={};G.styleTagTransform=v(),G.setAttributes=_(),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 t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const q=function(){var e=function(){var e,n,t=(e=r().useState(new Date),n=2,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 a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?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.")}()),a=t[0],o=t[1];return r().useEffect((function(){var e=null;return(0,b.subscribeConnectivity)((function(n){var t,a,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,t=localStorage.getItem("offline-last-updated"),a=t?new Date(t):new Date,o(a)}))}),[]),a}();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"}),t=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});return"".concat(n," @ ").concat(t)}(e))))};var J=function(e){return"small-desktop"===e||"large-desktop"===e},Y=t(3205),$={};$.styleTagTransform=v(),$.setAttributes=_(),$.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 t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const K=function(e){var n,t,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})),d=(n=(0,a.useState)(null),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return W(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?W(e,n):void 0}}(n,t)||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=d[1],p=(0,a.useCallback)((function(e){return _===e}),[_]),f=(0,a.useCallback)((function(e){return m((function(n){return n===e?null:e}))}),[]),v=(0,a.useCallback)((function(){m(null)}),[]),g=(0,a.useMemo)((function(){return!J(c)&&u.length>0}),[u.length,c]),h=(0,a.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(S.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=t(7743),ee=t(8478),ne=t(1718),te=t(1217);function ae(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function re(e,n,t,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,r)}function oe(){return(0,ee.getCurrentUser)({includeAuthStatus:!0}).pipe((0,ne.zg)((e=function(e){var n,t,a;return function(e,n){var t,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;i;)try{if(t=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,a=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(6===o[0]&&i.label<r[1]){i.label=r[1],r=o;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(o);break}r[2]&&i.ops.pop(),i.trys.pop();continue}o=n.call(e,i)}catch(e){o=[6,e],a=0}finally{t=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}(this,(function(r){switch(r.label){case 0:return(n=e.user)?[4,(0,ee.getSynchronizationItemsFor)(n.uuid,te.O)]:[3,2];case 1:a=r.sent(),(t=Object).assign.apply(t,[n.userProperties].concat(function(e){if(Array.isArray(e))return ae(e)}(o=a)||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 ae(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ae(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.")}())),r.label=2;case 2:return[2,e]}var o}))},n=function(){var n=this,t=arguments;return new Promise((function(a,r){var o=e.apply(n,t);function i(e){re(o,a,r,i,l,"next",e)}function l(e){re(o,a,r,i,l,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)})));var e,n}function ie(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function le(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 a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return ie(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ie(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 se=function(){var e=le((0,a.useState)(null),2),n=e[0],t=e[1],o=le((0,a.useState)(null),2),i=o[0],l=o[1],s=le((0,a.useState)(),2),c=s[0],u=s[1],d=(0,a.useCallback)((function(){return t(!1)}),[]),_=window.getOpenmrsSpaBase();return(0,a.useEffect)((function(){var e=oe().subscribe((function(e){u(e.allowedLocales),e.authenticated?t(e.user):t(!1),(0,b.createErrorHandler)()})),n=(0,ee.openmrsObservableFetch)("/ws/rest/v1/session").subscribe((function(e){var n=e.data;return l(n)}));return function(){e.unsubscribe(),n.unsubscribe()}}),[]),r().createElement(X.BrowserRouter,null,r().createElement("div",{className:y.primaryNavContainer},!1===n?r().createElement(X.Navigate,{to:"".concat(_,"login"),state:{referrer:window.location.pathname.slice(window.location.pathname.indexOf(_)+_.length-1)}}):n&&r().createElement(K,{allowedLocales:c,user:n,onLogout:d,session:i})))}}}]);
@@ -1,2 +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)}}]);
1
+ /*! For license information please see 723.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[723],{3240:(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/787.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 787.js.LICENSE.txt */
2
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[787],{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)}},9787:(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:()=>St,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),c=e(216),u=e.n(c);function s(){return s=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},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(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 p(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const h=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=p(n),o=p(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 d(t,n){if(!t)throw new Error("Invariant failed")}function v(t){return"/"===t.charAt(0)?t:"/"+t}function m(t){return"/"===t.charAt(0)?t.substr(1):t}function y(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 g(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function w(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 x(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=s({},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&&f(t),a=n&&f(n),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];e="."===u||".."===u||""===u}else e=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(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 b(){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 P=!("undefined"==typeof window||!window.document||!window.document.createElement);function C(t,n){n(window.confirm(t))}var E="popstate",O="hashchange";function k(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),P||d(!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,c=void 0!==a&&a,u=i.getUserConfirmation,f=void 0===u?C:u,l=i.keyLength,p=void 0===l?6:l,h=t.basename?g(v(t.basename)):"";function m(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return h&&(i=y(i,h)),x(i,r,e)}function A(){return Math.random().toString(36).substr(2,p)}var R=b();function S(t){s(I,t),I.length=e.length,R.notifyListeners(I.location,I.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(m(t.state))}function $(){L(m(k()))}var _=!1;function L(t){_?(_=!1,S()):R.confirmTransitionTo(t,"POP",f,(function(n){n?S({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=m(k()),j=[M.key];function U(t){return h+w(t)}function N(t){e.go(t)}var B=0;function F(t){1===(B+=t)&&1===t?(window.addEventListener(E,T),o&&window.addEventListener(O,$)):0===B&&(window.removeEventListener(E,T),o&&window.removeEventListener(O,$))}var H=!1,I={length:e.length,action:"POP",location:M,createHref:U,push:function(t,n){var o="PUSH",i=x(t,n,A(),I.location);R.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,u=i.state;if(r)if(e.pushState({key:a,state:u},null,n),c)window.location.href=n;else{var s=j.indexOf(I.location.key),f=j.slice(0,s+1);f.push(i.key),j=f,S({action:o,location:i})}else window.location.href=n}}))},replace:function(t,n){var o="REPLACE",i=x(t,n,A(),I.location);R.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,u=i.state;if(r)if(e.replaceState({key:a,state:u},null,n),c)window.location.replace(n);else{var s=j.indexOf(I.location.key);-1!==s&&(j[s]=i.key),S({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=R.setPrompt(t);return H||(F(1),H=!0),function(){return H&&(H=!1,F(-1)),n()}},listen:function(t){var n=R.appendListener(t);return F(1),function(){F(-1),n()}}};return I}var R="hashchange",S={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+m(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:m,decodePath:v},slash:{encodePath:v,decodePath:v}};function T(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function $(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function _(t){window.location.replace(T(window.location.href)+"#"+t)}function L(t){void 0===t&&(t={}),P||d(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?C:r,i=e.hashType,a=void 0===i?"slash":i,c=t.basename?g(v(t.basename)):"",u=S[a],f=u.encodePath,l=u.decodePath;function p(){var t=l($());return c&&(t=y(t,c)),x(t)}var h=b();function m(t){s(H,t),H.length=n.length,h.notifyListeners(H.location,H.action)}var E=!1,O=null;function k(){var t,n,e=$(),r=f(e);if(e!==r)_(r);else{var i=p(),a=H.location;if(!E&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(O===w(i))return;O=null,function(t){if(E)E=!1,m();else{h.confirmTransitionTo(t,"POP",o,(function(n){n?m({action:"POP",location:t}):function(t){var n=H.location,e=j.lastIndexOf(w(n));-1===e&&(e=0);var r=j.lastIndexOf(w(t));-1===r&&(r=0);var o=e-r;o&&(E=!0,U(o))}(t)}))}}(i)}}var A=$(),L=f(A);A!==L&&_(L);var M=p(),j=[w(M)];function U(t){n.go(t)}var N=0;function B(t){1===(N+=t)&&1===t?window.addEventListener(R,k):0===N&&window.removeEventListener(R,k)}var F=!1,H={length:n.length,action:"POP",location:M,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=T(window.location.href)),e+"#"+f(c+w(t))},push:function(t,n){var e="PUSH",r=x(t,void 0,void 0,H.location);h.confirmTransitionTo(r,e,o,(function(t){if(t){var n=w(r),o=f(c+n);if($()!==o){O=n,function(t){window.location.hash=t}(o);var i=j.lastIndexOf(w(H.location)),a=j.slice(0,i+1);a.push(n),j=a,m({action:e,location:r})}else m()}}))},replace:function(t,n){var e="REPLACE",r=x(t,void 0,void 0,H.location);h.confirmTransitionTo(r,e,o,(function(t){if(t){var n=w(r),o=f(c+n);$()!==o&&(O=n,_(o));var i=j.indexOf(w(H.location));-1!==i&&(j[i]=n),m({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=h.setPrompt(t);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),n()}},listen:function(t){var n=h.appendListener(t);return B(1),function(){B(-1),n()}}};return H}function M(t,n,e){return Math.min(Math.max(t,n),e)}function j(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,c=n.keyLength,u=void 0===c?6:c,f=b();function l(t){s(y,t),y.length=y.entries.length,f.notifyListeners(y.location,y.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=M(a,0,o.length-1),d=o.map((function(t){return x(t,void 0,"string"==typeof t?p():t.key||p())})),v=w;function m(t){var n=M(y.index+t,0,y.entries.length-1),r=y.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var y={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=x(t,n,p(),y.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=y.index+1,e=y.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=x(t,n,p(),y.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(y.entries[y.index]=o,l({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var n=y.index+t;return n>=0&&n<y.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return y}var U=e(4779),N=e.n(U),B=(e(2594),e(6017)),F=e(6058),H=e.n(F),I=1073741823,D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:{};function W(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)}))}}}var Z=a().createContext||function(t,n){var e,r,i,c="__create-react-context-"+((D[i="__global_unique_id__"]=(D[i]||0)+1)+"__"),s=function(t){function e(){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).emitter=W(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):I,0!=(e|=0)&&this.emitter.set(t.value,e))}var i,a},r.render=function(){return this.props.children},e}(a().Component);s.childContextTypes=((e={})[c]=u().object.isRequired,e);var f=function(n){function e(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).observedBits=void 0,t.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?I:n},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?I: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}(a().Component);return f.contextTypes=((r={})[c]=u().object,r),{Provider:s,Consumer:f}},V=function(t){var n=Z();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=j(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||d(!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=N().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||d(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=x(n?"string"==typeof e?tt(e,n.params):s({},e,{pathname:tt(e.pathname,n.params)}):e);return i?(c(u),null):a().createElement(G,{onMount:function(){c(u)},onUpdate:function(t,n){var e,r,o=x(n.to);e=o,r=s({},u,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&h(e.state,r.state)||c(u)},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:N()(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||d(!1);var e=t.props.location||n.location,r=s({},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,c=o.component,u=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:c?a().createElement(c,r):u?u(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:s({},n,{pathname:n.pathname.substr(e.length)})}function ut(t){return"string"==typeof t?t:w(t)}function st(t){return function(){d(!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?s({},n,{pathname:at(t)+n.pathname}):n}(o,x(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,c=void 0===i?"/":i,u=(0,B.Z)(t,["basename","context","location"]),f={createHref:function(t){return at(e+ut(t))},action:"POP",location:ct(e,x(c)),push:this.handlePush,replace:this.handleReplace,go:st(),goBack:st(),goForward:st(),listen:this.handleListen,block:this.handleBlock};return a().createElement(z,s({},u,{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||d(!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,s({},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,B.Z)(n,["wrappedComponentRef"]);return a().createElement(q.Consumer,null,(function(n){return n||d(!1),a().createElement(t,s({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,H()(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=A(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=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),bt=function(t,n){return"function"==typeof t?t(n):t},Pt=function(t,n){return"string"==typeof t?x(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,B.Z)(t,["innerRef","navigate","onClick"]),c=i.target,u=s({},i,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||c&&"_self"!==c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return u.ref=Ct!==Et&&n||e,a().createElement("a",u)})),kt=Et((function(t,n){var e=t.component,r=void 0===e?Ot:e,o=t.replace,i=t.to,c=t.innerRef,u=(0,B.Z)(t,["component","replace","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||d(!1);var e=t.history,f=Pt(bt(i,t.location),t.location),l=f?e.createHref(f):"",p=s({},u,{href:l,navigate:function(){var n=bt(i,t.location),r=w(t.location)===w(Pt(n));(o||r?e.replace:e.push)(n)}});return Ct!==Et?p.ref=n||c:p.innerRef=c,a().createElement(r,p)}))})),At=function(t){return t},Rt=a().forwardRef;void 0===Rt&&(Rt=At);var St=Rt((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,i=void 0===o?"active":o,c=t.activeStyle,u=t.className,f=t.exact,l=t.isActive,p=t.location,h=t.sensitive,v=t.strict,m=t.style,y=t.to,g=t.innerRef,w=(0,B.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||d(!1);var e=p||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:h,strict:v}):null,C=!!(l?l(P,e):P),E="function"==typeof u?u(C):u,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=s({},O,c));var k=s({"aria-current":C&&r||null,className:E,style:O,to:o},w);return At!==Rt?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