@openmrs/esm-primary-navigation-app 4.0.0-pre.0 → 4.0.1-pre.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +20 -23
- package/dist/146.js +1 -0
- package/dist/216.js +1 -2
- package/dist/218.js +2 -0
- package/dist/{328.js.LICENSE.txt → 218.js.LICENSE.txt} +0 -0
- package/dist/246.js +2 -0
- package/dist/{135.js.LICENSE.txt → 246.js.LICENSE.txt} +0 -0
- package/dist/473.js +1 -2
- package/dist/574.js +0 -0
- package/dist/656.js +1 -2
- package/dist/735.js +1 -2
- package/dist/735.js.LICENSE.txt +0 -0
- package/dist/788.js +1 -2
- package/dist/788.js.LICENSE.txt +0 -0
- package/dist/789.js +1 -2
- package/dist/857.js +2 -0
- package/dist/{161.js.LICENSE.txt → 857.js.LICENSE.txt} +0 -0
- package/dist/889.js +1 -2
- package/dist/889.js.LICENSE.txt +0 -0
- package/dist/98.js +1 -2
- package/dist/main.js +1 -2
- package/dist/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js.buildmanifest.json +87 -114
- package/dist/openmrs-esm-primary-navigation-app.old +1 -2
- package/package.json +5 -5
- package/src/components/choose-locale/change-locale.component.tsx +1 -1
- package/src/components/choose-locale/change-locale.scss +30 -29
- package/src/components/generic-link/generic-link.component.tsx +30 -0
- package/src/components/navbar/navbar.component.tsx +3 -3
- package/src/components/navbar/navbar.scss +7 -0
- package/src/components/navbar-header-panels/app-menu-panel.component.tsx +1 -4
- package/src/components/navbar-header-panels/notifications-menu-panel.component.tsx +1 -4
- package/src/components/navbar-header-panels/notifications-menu.component.panel.scss +13 -0
- package/src/components/navbar-header-panels/user-menu-panel.component.tsx +1 -1
- package/src/index.ts +18 -1
- package/.turbo/turbo-lint.log +0 -2
- package/.turbo/turbo-test.log +0 -13
- package/.turbo/turbo-typescript.log +0 -2
- package/dist/135.js +0 -3
- package/dist/135.js.map +0 -1
- package/dist/161.js +0 -3
- package/dist/161.js.map +0 -1
- package/dist/216.js.map +0 -1
- package/dist/328.js +0 -3
- package/dist/328.js.map +0 -1
- package/dist/473.js.map +0 -1
- package/dist/656.js.map +0 -1
- package/dist/735.js.map +0 -1
- package/dist/788.js.map +0 -1
- package/dist/789.js.map +0 -1
- package/dist/889.js.map +0 -1
- package/dist/979.js +0 -2
- package/dist/979.js.map +0 -1
- package/dist/98.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/openmrs-esm-primary-navigation-app.js.map +0 -1
- package/yarn-error.log +0 -18822
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
[36m@openmrs/esm-primary-navigation-app:build
|
|
1
|
+
[36m@openmrs/esm-primary-navigation-app:build[0m: cache hit, replaying output [2m57de2f6a7e0bf5fd[0m
|
|
2
2
|
[36m@openmrs/esm-primary-navigation-app:build: [0m$ webpack --mode=production
|
|
3
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0massets by chunk
|
|
4
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
5
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
6
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
7
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m asset
|
|
8
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m asset
|
|
9
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m asset 979.js 18.7 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
|
|
3
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0massets by chunk 229 KiB (id hint: vendors)
|
|
4
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m788.js[39m[22m 130 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m857.js[39m[22m 38.3 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m246.js[39m[22m 27.6 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m146.js[39m[22m 19.1 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
8
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m asset [1m[32m218.js[39m[22m 14.1 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
10
9
|
[36m@openmrs/esm-primary-navigation-app:build: [0m+ 11 assets
|
|
11
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0morphan modules 3.
|
|
12
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0mruntime modules 38.8 KiB
|
|
13
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0mbuilt modules 2.
|
|
14
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m cacheable modules 2.
|
|
15
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path
|
|
16
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path
|
|
10
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0morphan modules 3.8 MiB (javascript) 42 bytes (consume-shared) [1m[33m[orphan][39m[22m 577 modules
|
|
11
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0mruntime modules 38.8 KiB 28 modules
|
|
12
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0mbuilt modules 2.38 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
13
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m cacheable modules 2.38 MiB
|
|
14
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path [1m../../[39m[22m 2.21 MiB 43 modules
|
|
15
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path [1m./[39m[22m 174 KiB 18 modules
|
|
17
16
|
[36m@openmrs/esm-primary-navigation-app:build: [0m provide-module modules 210 bytes
|
|
18
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
17
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m [1mprovide shared module (default) @openmrs/esm-framework/src/internal@4.0.1-pre.206 = ../../framework/esm-framework/src/internal.ts[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
19
18
|
[36m@openmrs/esm-primary-navigation-app:build: [0m + 4 modules
|
|
20
19
|
[36m@openmrs/esm-primary-navigation-app:build: [0m consume-shared-module modules 210 bytes
|
|
21
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path
|
|
20
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
22
21
|
[36m@openmrs/esm-primary-navigation-app:build: [0m + 3 modules
|
|
23
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
24
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m ./translations/ lazy nonrecursive .json
|
|
22
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
23
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m [1m./translations/ lazy nonrecursive .json$[39m[22m 160 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
24
|
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
26
|
-
[36m@openmrs/esm-primary-navigation-app:build: [
|
|
25
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
27
26
|
[36m@openmrs/esm-primary-navigation-app:build: [0mThis can impact web performance.
|
|
28
27
|
[36m@openmrs/esm-primary-navigation-app:build: [0mAssets:
|
|
29
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m 889.js (
|
|
30
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m 161.js (315 KiB)
|
|
31
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0m 328.js (273 KiB)
|
|
28
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0m 889.js (384 KiB)[39m[22m
|
|
32
29
|
[36m@openmrs/esm-primary-navigation-app:build: [0m
|
|
33
|
-
[36m@openmrs/esm-primary-navigation-app:build: [0mwebpack 5.
|
|
30
|
+
[36m@openmrs/esm-primary-navigation-app:build: [0mwebpack 5.74.0 compiled with [1m[33m1 warning[39m[22m in 86433 ms
|
package/dist/146.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[146],{7146:(e,n,t)=>{"use strict";t.r(n),t.d(n,{I18nContext:()=>S,I18nextProvider:()=>ue,Trans:()=>J,Translation:()=>se,composeInitialProps:()=>T,date:()=>ge,getDefaults:()=>N,getI18n:()=>D,getInitialProps:()=>A,initReactI18next:()=>R,number:()=>me,plural:()=>ve,select:()=>he,selectOrdinal:()=>be,setDefaults:()=>k,setI18n:()=>C,time:()=>ye,useSSR:()=>le,useTranslation:()=>te,withSSR:()=>de,withTranslation:()=>ae});var r=t(6017);function o(e,n){if(null==e)return{};var t,o,i=(0,r.Z)(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=t(5776),s=t(1432),u=t.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(u()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),n.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(y,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var m={parse:function(e,n){n||(n={}),n.components||(n.components=g);var t,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(f,(function(c,s){if(a){if(c!=="</"+t.name+">")return;a=!1}var u,l="/"!==c.charAt(1),f=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(f){var m=p(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(t=p(c)).type&&n.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!y||"<"===y||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===i&&r.push(t),(u=o[i-1])&&u.children.push(t),o[i]=t),(!l||t.voidElement)&&(i>-1&&(t.voidElement||t.name===c.slice(2,-1))&&(i--,t=-1===i?r:o[i]),!a&&"<"!==y&&y)){u=-1===i?r:o[i].children;var h=e.indexOf("<",g),v=e.slice(g,-1===h?void 0:h);d.test(v)&&(v=" "),(h>-1&&i+u.length>=0||" "!==v)&&u.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,n){return e+y("",n)}),"")}};const h=m;function v(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…"},j=function(e){return O[e]};function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E,x={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(b,j)}},S=(0,c.createContext)();function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x=P(P({},x),e)}function N(){return x}var I=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var n,t;return n=e,(t=[{key:"addUsedNamespaces",value:function(e){var n=this;e.forEach((function(e){n.usedNamespaces[e]||(n.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&v(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}();function C(e){E=e}function D(){return E}var R={type:"3rdParty",init:function(e){k(e.options.react),C(e)}};function T(e){return function(n){return new Promise((function(t){var r=A();e.getInitialProps?e.getInitialProps(n).then((function(e){t(P(P({},e),r))})):t(r)}))}}function A(){var e=D(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},r={};return e.languages.forEach((function(t){r[t]={},n.forEach((function(n){r[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=r,t.initialLanguage=e.language,t}function L(){if(console&&console.warn){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),(e=console).warn.apply(e,t)}}var z={};function B(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&z[n[0]]||("string"==typeof n[0]&&(z[n[0]]=new Date),L.apply(void 0,n))}function _(e,n,t){e.loadNamespaces(n,(function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}))}function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.languages[0],o=!!n.options&&n.options.fallbackLng,i=n.languages[n.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e)||!n.hasResourceBundle(r,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function H(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!n.languages||!n.languages.length)return B("i18n.languages were undefined or empty",n.languages),!0;var r=void 0!==n.options.ignoreJSONStructure;return r?n.hasLoadedNamespace(e,{precheck:function(n,r){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):U(e,n,t)}function K(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var V=["format"],F=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function W(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function $(e,n){if(!e)return!1;var t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function Z(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function q(e){return Array.isArray(e)?e:[e]}function Y(e,n){if(!e)return"";var t="",r=q(e),a=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return r.forEach((function(e,r){if("string"==typeof e)t+="".concat(e);else if((0,c.isValidElement)(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)t+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)t+="<".concat(r,"></").concat(r,">");else if(u&&1===s&&"string"==typeof l)t+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=Y(l,n);t+="<".concat(r,">").concat(p,"</").concat(r,">")}else t+="<".concat(r,"></").concat(r,">")}else if(null===e)L("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===i(e)){var f=e.format,d=o(e,V),g=Object.keys(d);if(1===g.length){var y=f?"".concat(g[0],", ").concat(f):g[0];t+="{{".concat(y,"}}")}else L("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else L("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function J(e){var n=e.children,t=e.count,r=e.parent,a=e.i18nKey,s=e.context,u=e.tOptions,l=void 0===u?{}:u,p=e.values,f=e.defaults,d=e.components,g=e.ns,y=e.i18n,m=e.t,v=e.shouldUnescape,b=o(e,F),O=(0,c.useContext)(S)||{},j=O.i18n,w=O.defaultNS,P=y||j||D();if(!P)return B("You will need to pass in an i18next instance by using i18nextReactModule"),n;var E=m||P.t.bind(P)||function(e){return e};s&&(l.context=s);var x=M(M({},N()),P.options&&P.options.react),k=g||E.ns||w||P.options&&P.options.defaultNS;k="string"==typeof k?[k]:k||["translation"];var I=f||Y(n,x)||x.transEmptyNodeValue||a,C=x.hashTransKey,R=a||(C?C(I):I),T=p?l.interpolation:{interpolation:M(M({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},A=M(M(M(M({},l),{},{count:t},p),T),{},{defaultValue:I,ns:k}),L=function(e,n,t,r,o,a){if(""===n)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var l={};!function e(n){q(n).forEach((function(n){"string"!=typeof n&&($(n)?e(Z(n)):"object"!==i(n)||(0,c.isValidElement)(n)||Object.assign(l,n))}))}(e);var p=h.parse("<0>".concat(n,"</0>")),f=M(M({},l),o);function d(e,n,t){var r=Z(e),o=y(r,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return(0,c.isValidElement)(e)}))}(r)&&0===o.length?r:o}function g(e,n,t,r,o){e.dummy&&(e.children=n),t.push((0,c.cloneElement)(e,M(M({},e.props),{},{key:r}),o?void 0:n))}function y(n,o,l){var p=q(n);return q(o).reduce((function(n,o,m){var h,v,b,O=o.children&&o.children[0]&&o.children[0].content&&t.services.interpolator.interpolate(o.children[0].content,f,t.language);if("tag"===o.type){var j=p[parseInt(o.name,10)];!j&&1===l.length&&l[0][o.name]&&(j=l[0][o.name]),j||(j={});var w=0!==Object.keys(o.attrs).length?(h={props:o.attrs},(b=M({},v=j)).props=Object.assign(h.props,v.props),b):j,P=(0,c.isValidElement)(w),E=P&&$(o,!0)&&!o.voidElement,x=u&&"object"===i(w)&&w.dummy&&!P,S="object"===i(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof w){var k=t.services.interpolator.interpolate(w,f,t.language);n.push(k)}else if($(w)||E)g(w,d(w,o,l),n,m);else if(x){var N=y(p,o.children,l);n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m}),N))}else if(Number.isNaN(parseFloat(o.name)))if(S)g(w,d(w,o,l),n,m,o.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(o.name)>-1)if(o.voidElement)n.push((0,c.createElement)(o.name,{key:"".concat(o.name,"-").concat(m)}));else{var I=y(p,o.children,l);n.push((0,c.createElement)(o.name,{key:"".concat(o.name,"-").concat(m)},I))}else if(o.voidElement)n.push("<".concat(o.name," />"));else{var C=y(p,o.children,l);n.push("<".concat(o.name,">").concat(C,"</").concat(o.name,">"))}else if("object"!==i(w)||P)1===o.children.length&&O?n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m}),O)):n.push((0,c.cloneElement)(w,M(M({},w.props),{},{key:m})));else{var D=o.children[0]?O:null;D&&n.push(D)}}else if("text"===o.type){var R=r.transWrapTextNodes,T=a?r.unescape(t.services.interpolator.interpolate(o.content,f,t.language)):t.services.interpolator.interpolate(o.content,f,t.language);R?n.push((0,c.createElement)(R,{key:"".concat(o.name,"-").concat(m)},T)):n.push(T)}return n}),[])}return Z(y([{dummy:!0,children:e||[]}],p,q(e||[]))[0])}(d||n,R?E(R,A):I,P,x,A,v),z=void 0!==r?r:x.defaultTransParent;return z?(0,c.createElement)(z,b,L):L}function G(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return G(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?G(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=function(e,n){var t=(0,c.useRef)();return(0,c.useEffect)((function(){t.current=n?t.current:e}),[e,n]),t.current};function te(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.i18n,r=(0,c.useContext)(S)||{},o=r.i18n,i=r.defaultNS,a=t||o||D();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new I),!a){B("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}a.options.react&&void 0!==a.options.react.wait&&B("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=ee(ee(ee({},N()),a.options.react),n),p=l.useSuspense,f=l.keyPrefix,d=e||i||a.options&&a.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(d);var g=(a.isInitialized||a.initializedStoreOnce)&&d.every((function(e){return H(e,a,l)}));function y(){return a.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=(0,c.useState)(y),h=Q(m,2),v=h[0],b=h[1],O=d.join(),j=ne(O),w=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=l.bindI18n,n=l.bindI18nStore;function t(){w.current&&b(y)}return w.current=!0,g||p||_(a,d,(function(){w.current&&b(y)})),g&&j&&j!==O&&w.current&&b(y),e&&a&&a.on(e,t),n&&a&&a.store.on(n,t),function(){w.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,t)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,t)}))}}),[a,O]);var P=(0,c.useRef)(!0);(0,c.useEffect)((function(){w.current&&!P.current&&b(y),P.current=!1}),[a]);var E=[v,a,g];if(E.t=v,E.i18n=a,E.ready=g,g)return E;if(!g&&!p)return E;throw new Promise((function(e){_(a,d,(function(){e()}))}))}var re=["forwardedRef"];function oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?oe(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ae(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function r(r){var i=r.forwardedRef,a=o(r,re),s=Q(te(e,ie(ie({},a),{},{keyPrefix:n.keyPrefix})),3),u=s[0],l=s[1],p=s[2],f=ie(ie({},a),{},{t:u,i18n:l,tReady:p});return n.withRef&&i?f.ref=i:!n.withRef&&i&&(f.forwardedRef=i),(0,c.createElement)(t,f)}return r.displayName="withI18nextTranslation(".concat(K(t),")"),r.WrappedComponent=t,n.withRef?(0,c.forwardRef)((function(e,n){return(0,c.createElement)(r,Object.assign({},e,{forwardedRef:n}))})):r}}var ce=["ns","children"];function se(e){var n=e.ns,t=e.children,r=Q(te(n,o(e,ce)),3),i=r[0],a=r[1],c=r[2];return t(i,{i18n:a,lng:a.language},c)}function ue(e){var n=e.i18n,t=e.defaultNS,r=e.children,o=(0,c.useMemo)((function(){return{i18n:n,defaultNS:t}}),[n,t]);return(0,c.createElement)(S.Provider,{value:o},r)}function le(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.i18n,o=(0,c.useContext)(S)||{},i=o.i18n,a=r||i||D();a.options&&a.options.isClone||(e&&!a.initializedStoreOnce&&(a.services.resourceStore.data=e,a.options.ns=Object.values(e).reduce((function(e,n){return Object.keys(n).forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}),a.options.ns),a.initializedStoreOnce=!0,a.isInitialized=!0),n&&!a.initializedLanguageOnce&&(a.changeLanguage(n),a.initializedLanguageOnce=!0))}var pe=["initialI18nStore","initialLanguage"];function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function de(){return function(e){function n(n){var t=n.initialI18nStore,r=n.initialLanguage,i=o(n,pe);return le(t,r),(0,c.createElement)(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},i))}return n.getInitialProps=T(e),n.displayName="withI18nextSSR(".concat(K(e),")"),n.WrappedComponent=e,n}}var ge=function(){return""},ye=function(){return""},me=function(){return""},he=function(){return""},ve=function(){return""},be=function(){return""}},1432:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},6017:(e,n,t)=>{"use strict";function r(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}t.d(n,{Z:()=>r})}}]);
|
package/dist/216.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[216],{459:(e,r,n)=>{"use strict";var t=n(5704);function a(){}function p(){}p.resetWarningCache=a,e.exports=function(){function e(e,r,n,a,p,o){if(o!==t){var s=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 s.name="Invariant Violation",s}}function r(){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:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:p,resetWarningCache:a};return n.PropTypes=n,n}},216:(e,r,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
|
2
|
-
//# sourceMappingURL=216.js.map
|
|
1
|
+
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[216],{459:(e,r,n)=>{"use strict";var t=n(5704);function a(){}function p(){}p.resetWarningCache=a,e.exports=function(){function e(e,r,n,a,p,o){if(o!==t){var s=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 s.name="Invariant Violation",s}}function r(){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:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:p,resetWarningCache:a};return n.PropTypes=n,n}},216:(e,r,n)=>{e.exports=n(459)()},5704:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
|
package/dist/218.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 218.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[218],{8696:(r,t,n)=>{n.d(t,{SQ:()=>u});var e,o=n(8908),i=n(5776),s=n.n(i),c=["children","size"],u=s().forwardRef((function(r,t){var n=r.children,i=r.size,u=void 0===i?16:i,a=(0,o._)(r,c);return s().createElement(o.I,(0,o.a)({width:u,height:u,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),e||(e=s().createElement("path",{d:"M14 4H18V8H14zM4 4H8V8H4zM24 4H28V8H24zM14 14H18V18H14zM4 14H8V18H4zM24 14H28V18H24zM14 24H18V28H14zM4 24H8V28H4zM24 24H28V28H24z"})),n)}))},9177:(r,t,n)=>{n.d(t,{iY:()=>a});var e,o,i=n(8908),s=n(5776),c=n.n(s),u=["children","size"],a=c().forwardRef((function(r,t){var n=r.children,s=r.size,a=void 0===s?16:s,h=(0,i._)(r,u);return c().createElement(i.I,(0,i.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},h),e||(e=c().createElement("path",{d:"M26,13a8.9089,8.9089,0,0,1-2.5249,6.2339l1.4133,1.4131A10.9795,10.9795,0,0,0,23.6006,4.2l-1.2012,1.6A8.932,8.932,0,0,1,26,13Z"})),o||(o=c().createElement("path",{d:"M21 13a5.0022 5.0022 0 01-.9023 2.8564l1.4277 1.4278a6.9831 6.9831 0 00-.8584-9.5015l-1.334 1.49A5.0077 5.0077 0 0121 13zM30 28.5859L3.4143 2 2 3.4141l3.71 3.71A10.9824 10.9824 0 008.3994 21.8008l1.2012-1.6A8.9678 8.9678 0 017.1714 8.5854l2.1963 2.1963a6.9664 6.9664 0 001.9648 7.4351l1.334-1.49A5.0072 5.0072 0 0111 13a4.8854 4.8854 0 01.0393-.5464L15 16.4141V30h2V18.4141L28.5857 30z"})),n)}))},4474:(r,t,n)=>{n.d(t,{GI:()=>f});var e,o,i,s,c=n(8908),u=n(5776),a=n.n(u),h=["children","size"],f=a().forwardRef((function(r,t){var n=r.children,u=r.size,f=void 0===u?16:u,p=(0,c._)(r,h);return 16===f||"16"===f||"16px"===f?a().createElement(c.I,(0,c.a)({width:f,height:f,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},p),e||(e=a().createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),o||(o=a().createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n):a().createElement(c.I,(0,c.a)({width:f,height:f,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},p),i||(i=a().createElement("path",{d:"M26,28H6a2.0027,2.0027,0,0,1-2-2V6A2.0027,2.0027,0,0,1,6,4H16V6H6V26H26V16h2V26A2.0027,2.0027,0,0,1,26,28Z"})),s||(s=a().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.586 19.414 14 28 5.414 28 12 30 12 30 2 20 2z"})),n)}))},1718:(r,t,n)=>{n.d(t,{zg:()=>M});var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n])},e(r,t)};function o(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function i(r){return"function"==typeof r}var s=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){r&&(new Error).stack,s=r},get useDeprecatedSynchronousErrorHandling(){return s}};function u(r){setTimeout((function(){throw r}),0)}var a={closed:!0,next:function(r){},error:function(r){if(c.useDeprecatedSynchronousErrorHandling)throw r;u(r)},complete:function(){}},h=function(){return Array.isArray||function(r){return r&&"number"==typeof r.length}}();function f(r){return null!==r&&"object"==typeof r}var p=function(){function r(r){return Error.call(this),this.message=r?r.length+" errors occurred during unsubscription:\n"+r.map((function(r,t){return t+1+") "+r.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=r,this}return r.prototype=Object.create(Error.prototype),r}(),l=function(){function r(r){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,r&&(this._ctorUnsubscribe=!0,this._unsubscribe=r)}return r.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,e=n._parentOrParents,o=n._ctorUnsubscribe,s=n._unsubscribe,c=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof r)e.remove(this);else if(null!==e)for(var u=0;u<e.length;++u)e[u].remove(this);if(i(s)){o&&(this._unsubscribe=void 0);try{s.call(this)}catch(r){t=r instanceof p?b(r.errors):[r]}}if(h(c)){u=-1;for(var a=c.length;++u<a;){var l=c[u];if(f(l))try{l.unsubscribe()}catch(r){t=t||[],r instanceof p?t=t.concat(b(r.errors)):t.push(r)}}}if(t)throw new p(t)}},r.prototype.add=function(t){var n=t;if(!t)return r.EMPTY;switch(typeof t){case"function":n=new r(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof r)){var e=n;(n=new r)._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof r){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},r.prototype.remove=function(r){var t=this._subscriptions;if(t){var n=t.indexOf(r);-1!==n&&t.splice(n,1)}},r.EMPTY=function(r){return r.closed=!0,r}(new r),r}();function b(r){return r.reduce((function(r,t){return r.concat(t instanceof p?t.errors:t)}),[])}var d=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),y=function(r){function t(n,e,o){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=a;break;case 1:if(!n){i.destination=a;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new _(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new _(i,n,e,o)}return i}return o(t,r),t.prototype[d]=function(){return this},t.create=function(r,n,e){var o=new t(r,n,e);return o.syncErrorThrowable=!1,o},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var r=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=r,this},t}(l),_=function(r){function t(t,n,e,o){var s,c=r.call(this)||this;c._parentSubscriber=t;var u=c;return i(n)?s=n:n&&(s=n.next,e=n.error,o=n.complete,n!==a&&(i((u=Object.create(n)).unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=e,c._complete=o,c}return o(t,r),t.prototype.next=function(r){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,r)&&this.unsubscribe():this.__tryOrUnsub(this._next,r)}},t.prototype.error=function(r){if(!this.isStopped){var t=this._parentSubscriber,n=c.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,r),this.unsubscribe()):(this.__tryOrUnsub(this._error,r),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=r,t.syncErrorThrown=!0):u(r),this.unsubscribe();else{if(this.unsubscribe(),n)throw r;u(r)}}},t.prototype.complete=function(){var r=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return r._complete.call(r._context)};c.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(r,t){try{r.call(this._context,t)}catch(r){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw r;u(r)}},t.prototype.__tryOrSetError=function(r,t,n){if(!c.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return c.useDeprecatedSynchronousErrorHandling?(r.syncErrorValue=t,r.syncErrorThrown=!0,!0):(u(t),!0)}return!1},t.prototype._unsubscribe=function(){var r=this._parentSubscriber;this._context=null,this._parentSubscriber=null,r.unsubscribe()},t}(y),v=function(){function r(r,t){this.project=r,this.thisArg=t}return r.prototype.call=function(r,t){return t.subscribe(new w(r,this.project,this.thisArg))},r}(),w=function(r){function t(t,n,e){var o=r.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=e||o,o}return o(t,r),t.prototype._next=function(r){var t;try{t=this.project.call(this.thisArg,r,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)},t}(y),m=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function E(r){return r}function S(r){return 0===r.length?E:1===r.length?r[0]:function(t){return r.reduce((function(r,t){return t(r)}),t)}}var g=function(){function r(r){this._isScalar=!1,r&&(this._subscribe=r)}return r.prototype.lift=function(t){var n=new r;return n.source=this,n.operator=t,n},r.prototype.subscribe=function(r,t,n){var e=this.operator,o=function(r,t,n){if(r){if(r instanceof y)return r;if(r[d])return r[d]()}return r||t||n?new y(r,t,n):new y(a)}(r,t,n);if(e?o.add(e.call(o,this.source)):o.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),c.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},r.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){c.useDeprecatedSynchronousErrorHandling&&(r.syncErrorThrown=!0,r.syncErrorValue=t),function(r){for(;r;){var t=r,n=t.closed,e=t.destination,o=t.isStopped;if(n||o)return!1;r=e&&e instanceof y?e:null}return!0}(r)?r.error(t):console.warn(t)}},r.prototype.forEach=function(r,t){var n=this;return new(t=x(t))((function(t,e){var o;o=n.subscribe((function(t){try{r(t)}catch(r){e(r),o&&o.unsubscribe()}}),e,t)}))},r.prototype._subscribe=function(r){var t=this.source;return t&&t.subscribe(r)},r.prototype[m]=function(){return this},r.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return 0===r.length?this:S(r)(this)},r.prototype.toPromise=function(r){var t=this;return new(r=x(r))((function(r,n){var e;t.subscribe((function(r){return e=r}),(function(r){return n(r)}),(function(){return r(e)}))}))},r.create=function(t){return new r(t)},r}();function x(r){if(r||(r=c.Promise||Promise),!r)throw new Error("no Promise impl found");return r}function H(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var O=H(),T=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function V(r){return!!r&&"function"!=typeof r.subscribe&&"function"==typeof r.then}var P=function(r){if(r&&"function"==typeof r[m])return o=r,function(r){var t=o[m]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(r)};if(T(r))return e=r,function(r){for(var t=0,n=e.length;t<n&&!r.closed;t++)r.next(e[t]);r.complete()};if(V(r))return n=r,function(r){return n.then((function(t){r.closed||(r.next(t),r.complete())}),(function(t){return r.error(t)})).then(null,u),r};if(r&&"function"==typeof r[O])return t=r,function(r){for(var n=t[O]();;){var e=void 0;try{e=n.next()}catch(t){return r.error(t),r}if(e.done){r.complete();break}if(r.next(e.value),r.closed)break}return"function"==typeof n.return&&r.add((function(){n.return&&n.return()})),r};var t,n,e,o,i=f(r)?"an invalid object":"'"+r+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};var z=function(r){function t(t){var n=r.call(this)||this;return n.parent=t,n}return o(t,r),t.prototype._next=function(r){this.parent.notifyNext(r)},t.prototype._error=function(r){this.parent.notifyError(r),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(y),I=function(r){function t(){return null!==r&&r.apply(this,arguments)||this}return o(t,r),t.prototype.notifyNext=function(r){this.destination.next(r)},t.prototype.notifyError=function(r){this.destination.error(r)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(y);function M(r,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(e){return e.pipe(M((function(n,e){return(o=r(n,e),o instanceof g?o:new g(P(o))).pipe(function(r,t){return function(t){return t.lift(new v(r,undefined))}}((function(r,o){return t(n,r,e,o)})));var o}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new j(r,n))})}var j=function(){function r(r,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=r,this.concurrent=t}return r.prototype.call=function(r,t){return t.subscribe(new A(r,this.project,this.concurrent))},r}(),A=function(r){function t(t,n,e){void 0===e&&(e=Number.POSITIVE_INFINITY);var o=r.call(this,t)||this;return o.project=n,o.concurrent=e,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(t,r),t.prototype._next=function(r){this.active<this.concurrent?this._tryNext(r):this.buffer.push(r)},t.prototype._tryNext=function(r){var t,n=this.index++;try{t=this.project(r,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)},t.prototype._innerSub=function(r){var t=new z(this),n=this.destination;n.add(t);var e=function(r,t){if(!t.closed){if(r instanceof g)return r.subscribe(t);var n;try{n=P(r)(t)}catch(r){t.error(r)}return n}}(r,t);e!==t&&n.add(e)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(r){this.destination.next(r)},t.prototype.notifyComplete=function(){var r=this.buffer;this.active--,r.length>0?this._next(r.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(I)}}]);
|
|
File without changes
|
package/dist/246.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 246.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[246],{6058:(t,n,e)=>{"use strict";var r=e(2594),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(n,e,r){if("string"!=typeof e){if(d){var o=h(e);o&&o!==d&&t(n,o,r)}var a=f(e);l&&(a=a.concat(l(e)));for(var c=u(n),v=u(e),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||v&&v[y]||c&&c[y])){var g=p(e,y);try{s(n,y,g)}catch(t){}}}}return n}},6697:(t,n)=>{"use strict";var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case v:case u:return t;default:return n}}case o:return n}}}function P(t){return b(t)===l}n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=m,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isAsyncMode=function(t){return P(t)||b(t)===f},n.isConcurrentMode=P,n.isContextConsumer=function(t){return b(t)===s},n.isContextProvider=function(t){return b(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return b(t)===p},n.isFragment=function(t){return b(t)===i},n.isLazy=function(t){return b(t)===m},n.isMemo=function(t){return b(t)===v},n.isPortal=function(t){return b(t)===o},n.isProfiler=function(t){return b(t)===c},n.isStrictMode=function(t){return b(t)===a},n.isSuspense=function(t){return b(t)===h},n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===x||t.$$typeof===y)},n.typeOf=b},2594:(t,n,e)=>{"use strict";t.exports=e(6697)},5826:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},4779:(t,n,e)=>{var r=e(5826);t.exports=function t(n,e,o){return r(e)||(o=e||o,e=[]),o=o||{},n instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,n)}(n,e):r(n)?function(n,e,r){for(var o=[],i=0;i<n.length;i++)o.push(t(n[i],e,r).source);return f(new RegExp("(?:"+o.join("|")+")",l(r)),e)}(n,e,o):function(t,n,e){return p(i(t,e),n,e)}(n,e,o)},t.exports.parse=i,t.exports.compile=function(t,n){return c(i(t,n),n)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,n){for(var e,r=[],i=0,a=0,c="",f=n&&n.delimiter||"/";null!=(e=o.exec(t));){var l=e[0],p=e[1],h=e.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=e[2],m=e[3],y=e[4],g=e[5],w=e[6],x=e[7];c&&(r.push(c),c="");var b=null!=v&&null!=d&&d!==v,P="+"===w||"*"===w,C="?"===w||"*"===w,E=e[2]||f,O=y||g;r.push({name:m||i++,prefix:v||"",delimiter:E,optional:C,repeat:P,partial:b,asterisk:!!x,pattern:O?s(O):x?".*":"[^"+u(E)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,n){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$",l(n)));return function(n,o){for(var i="",c=n||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!e[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!e[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,n){return t.keys=n,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,n,e){r(n)||(e=n||e,n=[]);for(var o=(e=e||{}).strict,i=!1!==e.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";n.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(e.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(e)),n)}},2246:(t,n,e)=>{"use strict";function r(t,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},r(t,n)}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n)}e.r(n),e.d(n,{BrowserRouter:()=>wt,HashRouter:()=>xt,Link:()=>kt,MemoryRouter:()=>J,NavLink:()=>At,Prompt:()=>Q,Redirect:()=>nt,Route:()=>it,Router:()=>z,StaticRouter:()=>lt,Switch:()=>pt,generatePath:()=>tt,matchPath:()=>ot,useHistory:()=>vt,useLocation:()=>mt,useParams:()=>yt,useRouteMatch:()=>gt,withRouter:()=>ht});var i=e(5776),a=e.n(i);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},c.apply(this,arguments)}function u(t){return"/"===t.charAt(0)}function s(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}function f(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const l=function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));if("object"==typeof n||"object"==typeof e){var r=f(n),o=f(e);return r!==n||o!==e?t(r,o):Object.keys(Object.assign({},n,e)).every((function(r){return t(n[r],e[r])}))}return!1};function p(t,n){if(!t)throw new Error("Invariant failed")}function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,n){return function(t,n){return 0===t.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(n.length))}(t,n)?t.substr(n.length):t}function m(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function y(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t),o.state=n):(void 0===(o=c({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,n){void 0===n&&(n="");var e,r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&u(t),a=n&&u(n),c=i||a;if(t&&u(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var f=o[o.length-1];e="."===f||".."===f||""===f}else e=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?s(o,p):".."===h?(s(o,p),l++):l&&(s(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&u(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function w(){var t=null,n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"==typeof t?t(n,e):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var x=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(t,n){n(window.confirm(t))}var P="popstate",C="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function O(t){void 0===t&&(t={}),x||p(!1);var n,e=window.history,r=(-1===(n=window.navigator.userAgent).indexOf("Android 2.")&&-1===n.indexOf("Android 4.0")||-1===n.indexOf("Mobile Safari")||-1!==n.indexOf("Chrome")||-1!==n.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,u=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?b:s,l=i.keyLength,d=void 0===l?6:l,O=t.basename?m(h(t.basename)):"";function k(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=v(i,O)),g(i,r,e)}function R(){return Math.random().toString(36).substr(2,d)}var S=w();function A(t){c(I,t),I.length=e.length,S.notifyListeners(I.location,I.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(k(t.state))}function $(){L(k(E()))}var _=!1;function L(t){_?(_=!1,A()):S.confirmTransitionTo(t,"POP",f,(function(n){n?A({action:"POP",location:t}):function(t){var n=I.location,e=j.indexOf(n.key);-1===e&&(e=0);var r=j.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(_=!0,N(o))}(t)}))}var M=k(E()),j=[M.key];function U(t){return O+y(t)}function N(t){e.go(t)}var F=0;function B(t){1===(F+=t)&&1===t?(window.addEventListener(P,T),o&&window.addEventListener(C,$)):0===F&&(window.removeEventListener(P,T),o&&window.removeEventListener(C,$))}var H=!1,I={length:e.length,action:"POP",location:M,createHref:U,push:function(t,n){var o="PUSH",i=g(t,n,R(),I.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.pushState({key:a,state:c},null,n),u)window.location.href=n;else{var s=j.indexOf(I.location.key),f=j.slice(0,s+1);f.push(i.key),j=f,A({action:o,location:i})}else window.location.href=n}}))},replace:function(t,n){var o="REPLACE",i=g(t,n,R(),I.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var n=U(i),a=i.key,c=i.state;if(r)if(e.replaceState({key:a,state:c},null,n),u)window.location.replace(n);else{var s=j.indexOf(I.location.key);-1!==s&&(j[s]=i.key),A({action:o,location:i})}else window.location.replace(n)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var n=S.setPrompt(t);return H||(B(1),H=!0),function(){return H&&(H=!1,B(-1)),n()}},listen:function(t){var n=S.appendListener(t);return B(1),function(){B(-1),n()}}};return I}var k="hashchange",R={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function A(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function T(t){window.location.replace(S(window.location.href)+"#"+t)}function $(t){void 0===t&&(t={}),x||p(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?b:r,i=e.hashType,a=void 0===i?"slash":i,u=t.basename?m(h(t.basename)):"",s=R[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(A());return u&&(t=v(t,u)),g(t)}var P=w();function C(t){c(H,t),H.length=n.length,P.notifyListeners(H.location,H.action)}var E=!1,O=null;function $(){var t,n,e=A(),r=f(e);if(e!==r)T(r);else{var i=d(),a=H.location;if(!E&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(O===y(i))return;O=null,function(t){if(E)E=!1,C();else{P.confirmTransitionTo(t,"POP",o,(function(n){n?C({action:"POP",location:t}):function(t){var n=H.location,e=j.lastIndexOf(y(n));-1===e&&(e=0);var r=j.lastIndexOf(y(t));-1===r&&(r=0);var o=e-r;o&&(E=!0,U(o))}(t)}))}}(i)}}var _=A(),L=f(_);_!==L&&T(L);var M=d(),j=[y(M)];function U(t){n.go(t)}var N=0;function F(t){1===(N+=t)&&1===t?window.addEventListener(k,$):0===N&&window.removeEventListener(k,$)}var B=!1,H={length:n.length,action:"POP",location:M,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=S(window.location.href)),e+"#"+f(u+y(t))},push:function(t,n){var e="PUSH",r=g(t,void 0,void 0,H.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=y(r),o=f(u+n);if(A()!==o){O=n,function(t){window.location.hash=t}(o);var i=j.lastIndexOf(y(H.location)),a=j.slice(0,i+1);a.push(n),j=a,C({action:e,location:r})}else C()}}))},replace:function(t,n){var e="REPLACE",r=g(t,void 0,void 0,H.location);P.confirmTransitionTo(r,e,o,(function(t){if(t){var n=y(r),o=f(u+n);A()!==o&&(O=n,T(o));var i=j.indexOf(y(H.location));-1!==i&&(j[i]=n),C({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=P.setPrompt(t);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),n()}},listen:function(t){var n=P.appendListener(t);return F(1),function(){F(-1),n()}}};return H}function _(t,n,e){return Math.min(Math.max(t,n),e)}function L(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,a=void 0===i?0:i,u=n.keyLength,s=void 0===u?6:u,f=w();function l(t){c(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=_(a,0,o.length-1),d=o.map((function(t){return g(t,void 0,"string"==typeof t?p():t.key||p())})),v=y;function m(t){var n=_(x.index+t,0,x.entries.length-1),r=x.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var x={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=g(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=x.index+1,e=x.entries.slice(0);e.length>n?e.splice(n,e.length-n,o):e.push(o),l({action:r,location:o,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=g(t,n,p(),x.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(x.entries[x.index]=o,l({action:r,location:o}))}))},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var n=x.index+t;return n>=0&&n<x.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}var M=e(216),j=e.n(M),U=1073741823,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:{};function F(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}const B=a().createContext||function(t,n){var e,r,a,c="__create-react-context-"+((N[a="__global_unique_id__"]=(N[a]||0)+1)+"__"),u=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).emitter=F(n.props.value),n}o(e,t);var r=e.prototype;return r.getChildContext=function(){var t;return(t={})[c]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?e=0:(e="function"==typeof n?n(r,o):U,0!=(e|=0)&&this.emitter.set(t.value,e))}var i,a},r.render=function(){return this.props.children},e}(i.Component);u.childContextTypes=((e={})[c]=j().object.isRequired,e);var s=function(n){function e(){var t;return(t=n.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(n,e){0!=((0|t.observedBits)&e)&&t.setState({value:t.getValue()})},t}o(e,n);var r=e.prototype;return r.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?U:n},r.componentDidMount=function(){this.context[c]&&this.context[c].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?U:t},r.componentWillUnmount=function(){this.context[c]&&this.context[c].off(this.onUpdate)},r.getValue=function(){return this.context[c]?this.context[c].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},e}(i.Component);return s.contextTypes=((r={})[c]=j().object,r),{Provider:u,Consumer:s}};var H=e(4779),I=e.n(H),D=(e(2594),e(6017)),W=e(6058),Z=e.n(W),V=function(t){var n=B();return n.displayName=t,n},K=V("Router-History"),q=V("Router"),z=function(t){function n(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._pendingLocation=t}))),e}o(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=n.prototype;return e.componentDidMount=function(){var t=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(n){t._isMounted&&t.setState({location:n})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return a().createElement(q.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(K.Provider,{children:this.props.children||null,value:this.props.history}))},n}(a().Component),J=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=L(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),G=function(t){function n(){return t.apply(this,arguments)||this}o(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(a().Component);function Q(t){var n=t.message,e=t.when,r=void 0===e||e;return a().createElement(q.Consumer,null,(function(t){if(t||p(!1),!r||t.staticContext)return null;var e=t.history.block;return a().createElement(G,{onMount:function(t){t.release=e(n)},onUpdate:function(t,r){r.message!==n&&(t.release(),t.release=e(n))},onUnmount:function(t){t.release()},message:n})}))}var X={},Y=0;function tt(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(X[t])return X[t];var n=I().compile(t);return Y<1e4&&(X[t]=n,Y++),n}(t)(n,{pretty:!0})}function nt(t){var n=t.computedMatch,e=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(q.Consumer,null,(function(t){t||p(!1);var r=t.history,i=t.staticContext,u=o?r.push:r.replace,s=g(n?"string"==typeof e?tt(e,n.params):c({},e,{pathname:tt(e.pathname,n.params)}):e);return i?(u(s),null):a().createElement(G,{onMount:function(){u(s)},onUpdate:function(t,n){var e,r,o=g(n.to);e=o,r=c({},s,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&l(e.state,r.state)||u(s)},to:e})}))}var et={},rt=0;function ot(t,n){void 0===n&&(n={}),("string"==typeof n||Array.isArray(n))&&(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=et[e]||(et[e]={});if(r[t])return r[t];var o=[],i={regexp:I()(t,o,n),keys:o};return rt<1e4&&(r[t]=i,rt++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var it=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(q.Consumer,null,(function(n){n||p(!1);var e=t.props.location||n.location,r=c({},n,{location:e,match:t.props.computedMatch?t.props.computedMatch:t.props.path?ot(e.pathname,t.props):n.match}),o=t.props,i=o.children,u=o.component,s=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(q.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:u?a().createElement(u,r):s?s(r):null:"function"==typeof i?i(r):null)}))},n}(a().Component);function at(t){return"/"===t.charAt(0)?t:"/"+t}function ct(t,n){if(!t)return n;var e=at(t);return 0!==n.pathname.indexOf(e)?n:c({},n,{pathname:n.pathname.substr(e.length)})}function ut(t){return"string"==typeof t?t:y(t)}function st(t){return function(){p(!1)}}function ft(){}var lt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return ft},n.handleBlock=function(){return ft},n}o(n,t);var e=n.prototype;return e.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,a=void 0===i?{}:i;a.action=n,a.location=function(t,n){return t?c({},n,{pathname:at(t)+n.pathname}):n}(o,g(t)),a.url=ut(a.location)},e.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,i=t.location,u=void 0===i?"/":i,s=(0,D.Z)(t,["basename","context","location"]),f={createHref:function(t){return at(e+ut(t))},action:"POP",location:ct(e,g(u)),push:this.handlePush,replace:this.handleReplace,go:st(),goBack:st(),goForward:st(),listen:this.handleListen,block:this.handleBlock};return a().createElement(z,c({},s,{history:f,staticContext:o}))},n}(a().Component),pt=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(q.Consumer,null,(function(n){n||p(!1);var e,r,o=t.props.location||n.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){e=t;var i=t.props.path||t.props.from;r=i?ot(o.pathname,c({},t.props,{path:i})):n.match}})),r?a().cloneElement(e,{location:o,computedMatch:r}):null}))},n}(a().Component);function ht(t){var n="withRouter("+(t.displayName||t.name)+")",e=function(n){var e=n.wrappedComponentRef,r=(0,D.Z)(n,["wrappedComponentRef"]);return a().createElement(q.Consumer,null,(function(n){return n||p(!1),a().createElement(t,c({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,Z()(e,t)}var dt=a().useContext;function vt(){return dt(K)}function mt(){return dt(q).location}function yt(){var t=dt(q).match;return t?t.params:{}}function gt(t){var n=mt(),e=dt(q).match;return t?ot(n.pathname,t):e}var wt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=O(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),xt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=$(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(z,{history:this.history,children:this.props.children})},n}(a().Component),bt=function(t,n){return"function"==typeof t?t(n):t},Pt=function(t,n){return"string"==typeof t?g(t,null,null,n):t},Ct=function(t){return t},Et=a().forwardRef;void 0===Et&&(Et=Ct);var Ot=Et((function(t,n){var e=t.innerRef,r=t.navigate,o=t.onClick,i=(0,D.Z)(t,["innerRef","navigate","onClick"]),u=i.target,s=c({},i,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||u&&"_self"!==u||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=Ct!==Et&&n||e,a().createElement("a",s)})),kt=Et((function(t,n){var e=t.component,r=void 0===e?Ot:e,o=t.replace,i=t.to,u=t.innerRef,s=(0,D.Z)(t,["component","replace","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||p(!1);var e=t.history,f=Pt(bt(i,t.location),t.location),l=f?e.createHref(f):"",h=c({},s,{href:l,navigate:function(){var n=bt(i,t.location),r=y(t.location)===y(Pt(n));(o||r?e.replace:e.push)(n)}});return Ct!==Et?h.ref=n||u:h.innerRef=u,a().createElement(r,h)}))})),Rt=function(t){return t},St=a().forwardRef;void 0===St&&(St=Rt);var At=St((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,i=void 0===o?"active":o,u=t.activeStyle,s=t.className,f=t.exact,l=t.isActive,h=t.location,d=t.sensitive,v=t.strict,m=t.style,y=t.to,g=t.innerRef,w=(0,D.Z)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(q.Consumer,null,(function(t){t||p(!1);var e=h||t.location,o=Pt(bt(y,e),e),x=o.pathname,b=x&&x.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),P=b?ot(e.pathname,{path:b,exact:f,sensitive:d,strict:v}):null,C=!!(l?l(P,e):P),E="function"==typeof s?s(C):s,O="function"==typeof m?m(C):m;C&&(E=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(E,i),O=c({},O,u));var k=c({"aria-current":C&&r||null,className:E,style:O,to:o},w);return Rt!==St?k.ref=n||g:k.innerRef=g,a().createElement(kt,k)}))}))},6017:(t,n,e)=>{"use strict";function r(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}e.d(n,{Z:()=>r})}}]);
|
|
File without changes
|
package/dist/473.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[473],{1871:(n,e,t)=>{t.d(e,{Z:()=>r});var i=t(9233),a=t.n(i),s=t(361),o=t.n(s)()(a());o.push([n.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}","",{version:3,sources:["webpack://./../../framework/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/components/user-panel-switcher-item/user-panel-switcher.scss"],names:[],mappings:"AAyCA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCzCF,0OC8yBI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD1yBJ,2EC0yBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDtyBJ,kJCsyBI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDlyBJ,mEACE,kBAAA,CAGF,2EACE,gCAAA,CElBF,yEACE,YAAA,CACA,qBAAA,CAGF,4EACE,YAAA,CACA,kBAAA,CACA,WAAA,CACA,0BAAA,CACA,aHUS,CGTT,kBAAA,CAEA,WAAA,CACA,cAAA,CAGF,gFACE,kBAAA,CACA,YHCS,CGEX,mFAEE,UAAA,CACA,gCAAA,CAGF,yFACE,aHTS,CGUT,gCAAA,CAGF,gFACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,0BAAA,CAIF,uFACE,aH7Ba,CG8Bb,iBAAA,CACA,UAAA,CAGF,6FACE,gCAAA,CACA,aHpCa,CGuCf,4EACE,qBHhDc,CGiDd,WAAA,CACA,iBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n",'@use "@carbon/styles/scss/type";\n@import "~@openmrs/esm-styleguide/src/vars";\n\n.productiveHeading01 {\n @include type.type-style("heading-compact-01");\n}\n\n.productiveHeading02 {\n @include type.type-style("heading-compact-02");\n}\n\n.bodyLong01 {\n @include type.type-style("body-01");\n}\n\n.headerPanel {\n height: max-content;\n}\n\n.primaryNavContainer {\n height: var(--omrs-topnav-height);\n}\n',"//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: scale.type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n label-01: $label-01,\n helper-text-01: $helper-text-01,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n);\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n",'@import "../../root.scss";\n\n.switcherContainer {\n display: flex;\n flex-direction: column;\n}\n\n.switcherContainer ul {\n display: flex;\n flex-direction: row;\n width: 20rem;\n justify-content: flex-start;\n color: $field-01;\n align-items: center;\n @extend .productiveHeading01;\n height: 3rem;\n cursor: pointer;\n}\n\n.switcherContainer ul > svg {\n margin: 0rem 0.75rem;\n fill: $field-01;\n}\n\n.switcherContainer ul button {\n @extend .productiveHeading01;\n width: 100%;\n background-color: var(--brand-02);\n}\n\n.switcherContainer ul button:hover {\n color: $field-01;\n background-color: var(--brand-01);\n}\n\n.switcherContainer ul div {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n @extend .bodyLong01;\n}\n\n.switcherContainer ul div button {\n color: $inverse-link;\n margin-left: 0.5rem;\n width: 5rem;\n}\n\n.switcherContainer ul div button:hover {\n background-color: var(--brand-01);\n color: $inverse-link;\n}\n\n.switcherContainer hr {\n background-color: $ui-background;\n width: 16rem;\n margin: 0.5rem 0rem;\n}\n'],sourceRoot:""}]),o.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 r=o},3473:(n,e,t)=>{t.r(e),t.d(e,{default:()=>w});var i=t(5776),a=t.n(i),s=t(5036),o=t(1632),r=t(487),p=t.n(r),l=t(631),c=t.n(l),d=t(2052),g=t.n(d),h=t(4010),f=t.n(h),u=t(1469),y=t.n(u),m=t(9329),b=t.n(m),$=t(1871),A={};A.styleTagTransform=b(),A.setAttributes=f(),A.insert=g().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),p()($.Z,A);const v=$.Z&&$.Z.locals?$.Z.locals:void 0,w=function(n){var e=n.user;return a().createElement("div",{className:v.switcherContainer},a().createElement(s.T5f,{"aria-label":"Switcher Container"},a().createElement(o.Yo,{size:20}),a().createElement("p",null,e.person.display)))}}}]);
|
|
2
|
-
//# sourceMappingURL=473.js.map
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[473],{1871:(e,r,n)=>{n.d(r,{Z:()=>t});var i=n(361),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB{height:max-content}.-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw{height:var(--omrs-topnav-height)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn{display:flex;flex-direction:column}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{display:flex;flex-direction:row;width:20rem;justify-content:flex-start;color:#f4f4f4;align-items:center;height:3rem;cursor:pointer}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul>svg{margin:0rem .75rem;fill:#f4f4f4}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button{width:100%;background-color:var(--brand-02)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button:hover{color:#f4f4f4;background-color:var(--brand-01)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button{color:#78a9ff;margin-left:.5rem;width:5rem}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button:hover{background-color:var(--brand-01);color:#78a9ff}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn hr{background-color:#fff;width:16rem;margin:.5rem 0rem}",""]),a.locals={productiveHeading01:"-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI",switcherContainer:"-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn",productiveHeading02:"-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d",bodyLong01:"-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk",headerPanel:"-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB",primaryNavContainer:"-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw"};const t=a},3473:(e,r,n)=>{n.r(r),n.d(r,{default:()=>C});var i=n(5776),a=n.n(i),t=n(7914),_=n(7414),s=n(487),o=n.n(s),c=n(631),h=n.n(c),l=n(2052),m=n.n(l),p=n(4010),d=n.n(p),g=n(1469),u=n.n(g),v=n(9329),w=n.n(v),f=n(1871),y={};y.styleTagTransform=w(),y.setAttributes=d(),y.insert=m().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=u(),o()(f.Z,y);const b=f.Z&&f.Z.locals?f.Z.locals:void 0,C=function(e){var r=e.user;return a().createElement("div",{className:b.switcherContainer},a().createElement(t.T5f,{"aria-label":"Switcher Container"},a().createElement(_.Yo,{size:20}),a().createElement("p",null,r.person.display)))}}}]);
|
package/dist/574.js
CHANGED
|
File without changes
|