@openmrs/esm-primary-navigation-app 4.0.0-pre.1 → 4.0.1-pre.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +30 -33
- package/dist/146.js +1 -0
- package/dist/218.js +1 -1
- package/dist/246.js +2 -0
- package/dist/{135.js.LICENSE.txt → 246.js.LICENSE.txt} +0 -0
- package/dist/473.js +1 -1
- package/dist/656.js +1 -1
- package/dist/735.js +1 -1
- package/dist/788.js +1 -1
- package/dist/789.js +1 -1
- package/dist/857.js +2 -0
- package/dist/{24.js.LICENSE.txt → 857.js.LICENSE.txt} +0 -0
- package/dist/889.js +1 -1
- package/dist/889.js.LICENSE.txt +0 -2
- package/dist/98.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/openmrs-esm-primary-navigation-app.js.buildmanifest.json +71 -71
- package/dist/openmrs-esm-primary-navigation-app.old +1 -1
- 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/navbar/navbar.component.tsx +3 -3
- 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 +0 -16
- package/src/components/navbar-header-panels/user-menu-panel.component.tsx +1 -1
- package/src/index.ts +5 -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 -2
- package/dist/24.js +0 -2
- package/dist/979.js +0 -1
- package/yarn-error.log +0 -18822
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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[473],{1871:(e,r,n)=>{n.d(r,{Z:()=>t});var i=n(361),a=n.n(i)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk,.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB{height:max-content}.-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw{height:var(--omrs-topnav-height)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn{display:flex;flex-direction:column}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul{display:flex;flex-direction:row;width:20rem;justify-content:flex-start;color:#f4f4f4;align-items:center;height:3rem;cursor:pointer}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul>svg{margin:0rem .75rem;fill:#f4f4f4}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button{width:100%;background-color:var(--brand-02)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul button:hover{color:#f4f4f4;background-color:var(--brand-01)}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div{display:flex;flex-direction:row;align-items:center;justify-content:flex-start}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button{color:#78a9ff;margin-left:.5rem;width:5rem}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn ul div button:hover{background-color:var(--brand-01);color:#78a9ff}.-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn hr{background-color:#fff;width:16rem;margin:.5rem 0rem}",""]),a.locals={productiveHeading01:"-esm-primary-navigation__user-panel-switcher__productiveHeading01___fK-fI",switcherContainer:"-esm-primary-navigation__user-panel-switcher__switcherContainer___h0Ncn",productiveHeading02:"-esm-primary-navigation__user-panel-switcher__productiveHeading02___AwY-d",bodyLong01:"-esm-primary-navigation__user-panel-switcher__bodyLong01___Fcapk",headerPanel:"-esm-primary-navigation__user-panel-switcher__headerPanel___UamWB",primaryNavContainer:"-esm-primary-navigation__user-panel-switcher__primaryNavContainer___kSMMw"};const t=a},3473:(e,r,n)=>{n.r(r),n.d(r,{default:()=>C});var i=n(5776),a=n.n(i),t=n(
|
|
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/656.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[656],{2727:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,".-esm-primary-navigation__logo__logo___ohiCI{display:flex;align-items:center}",""]),r.locals={logo:"-esm-primary-navigation__logo__logo___ohiCI"};const o=r},8815:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1,.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0\\+Z{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp{height:max-content}.-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq{height:var(--omrs-topnav-height)}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{display:flex;padding:1rem;height:3rem;width:100%;text-decoration:none;color:#fff;background-color:transparent}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a:hover{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P{border-top:1px solid;border-top-color:#007d79;border-top-color:var(--brand-03)}.-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn{margin-left:.5rem}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1",menuLink:"-esm-primary-navigation__app-menu-panel__menuLink___a9Ems",productiveHeading02:"-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0+Z",bodyLong01:"-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX",headerPanel:"-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp",primaryNavContainer:"-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq",externalLinks:"-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P",launchIcon:"-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn"};const o=r},7726:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,"",""]),r.locals={};const o=r},3205:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM{display:flex;align-items:center}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM a{color:#fff;text-decoration:none;margin:0 .75rem}.-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV{background-color:#004144;background-color:var(--brand-02)}.-esm-primary-navigation__navbar__topNavHeader___HyHf4{top:var(--omrs-offline-banner-height)}.-esm-primary-navigation__navbar__activePanel___QUwvm{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__navbar__headerMenuButton___k6m5W{height:3rem;width:3rem;padding:.75rem;margin-right:.25rem}.-esm-primary-navigation__navbar__spacedLogo___P2WIw{margin-left:1rem}",""]),r.locals={topNavActionsSlot:"-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM",headerGlobalBarButton:"-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV",topNavHeader:"-esm-primary-navigation__navbar__topNavHeader___HyHf4",activePanel:"-esm-primary-navigation__navbar__activePanel___QUwvm",headerMenuButton:"-esm-primary-navigation__navbar__headerMenuButton___k6m5W",spacedLogo:"-esm-primary-navigation__navbar__spacedLogo___P2WIw"};const o=r},6654:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__offline-banner__offlineBanner___YHODP{position:fixed;top:0;left:0;right:0;height:var(--omrs-offline-banner-height);background-color:#022b30;color:#fff;font-size:.875rem;display:flex;align-items:center;z-index:3}.-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI{width:3rem;display:flex;justify-content:center}.-esm-primary-navigation__offline-banner__offlineNote___MlRaI{font-weight:bold}.-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6{flex:auto;display:flex;justify-content:flex-end;align-items:flex-end;padding-right:1rem}.-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L{color:#c6c6c6;font-size:.75rem}",""]),r.locals={offlineBanner:"-esm-primary-navigation__offline-banner__offlineBanner___YHODP",offlineIconContainer:"-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI",offlineNote:"-esm-primary-navigation__offline-banner__offlineNote___MlRaI",offlineLastUpdatedContainer:"-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6",lastUpdatedNote:"-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L"};const o=r},5547:(e,n,t)=>{t.d(n,{Z:()=>o});var a=t(361),r=t.n(a)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__root__productiveHeading01___tScBJ{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__productiveHeading02___2lV0H{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__root__bodyLong01___vRBQA{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__headerPanel___c17aL{height:max-content}.-esm-primary-navigation__root__primaryNavContainer___TLM40{height:var(--omrs-topnav-height)}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__root__productiveHeading01___tScBJ",productiveHeading02:"-esm-primary-navigation__root__productiveHeading02___2lV0H",bodyLong01:"-esm-primary-navigation__root__bodyLong01___vRBQA",headerPanel:"-esm-primary-navigation__root__headerPanel___c17aL",primaryNavContainer:"-esm-primary-navigation__root__primaryNavContainer___TLM40"};const o=r},3656:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ce});var a=t(5776),r=t.n(a),o=t(487),i=t.n(o),l=t(631),s=t.n(l),c=t(2052),u=t.n(c),_=t(4010),d=t.n(_),m=t(1469),p=t.n(m),f=t(9329),v=t.n(f),g=t(5547),h={};h.styleTagTransform=v(),h.setAttributes=d(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),i()(g.Z,h);const y=g.Z&&g.Z.locals?g.Z.locals:void 0;var b=t(6974),E=t(1793),w=t(1102),x=t(7414),S=t(8696),L=t(2680),A=t(4474),N=t(8815),k={};k.styleTagTransform=v(),k.setAttributes=d(),k.insert=u().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=p(),i()(N.Z,k);const P=N.Z&&N.Z.locals?N.Z.locals:void 0,C=function(e){var n,t,a=e.expanded,o=e.hidePanel,i=(0,b.useOnClickOutside)(o,a),l=(0,b.useConfig)(),s=(0,L.useTranslation)().t;return r().createElement(E.yh,{ref:i,className:P.headerPanel,"aria-label":"App Menu Panel",expanded:a},r().createElement(b.ExtensionSlot,{className:P.menuLink,extensionSlotName:"app-menu-slot"}),(null==l||null===(n=l.externalRefLinks)||void 0===n?void 0:n.length)>0&&r().createElement("div",{className:"".concat(P.menuLink," ").concat(P.externalLinks)},null==l||null===(t=l.externalRefLinks)||void 0===t?void 0:t.map((function(e){return r().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:null==e?void 0:e.redirect},s(null==e?void 0:e.title),r().createElement(A.GI,{size:16,className:P.launchIcon}))}))))},I=function(e){var n,t=e.expanded,a=e.user,o=e.allowedLocales,i=e.onLogout,l=e.session,s=e.hidePanel,c=(0,b.useOnClickOutside)(s,t);return r().createElement(E.yh,{ref:c,className:y.headerPanel,expanded:t,"aria-label":"Location","aria-labelledby":"Location Icon"},r().createElement(b.ExtensionSlot,{extensionSlotName:"user-panel-slot",state:{user:a,allowedLocales:o,onLogout:i,referer:window.location.pathname,currentLocation:null==l||null===(n=l.sessionLocation)||void 0===n?void 0:n.display}}))};var M=t(7726),Z={};Z.styleTagTransform=v(),Z.setAttributes=d(),Z.insert=u().bind(null,"head"),Z.domAPI=s(),Z.insertStyleElement=p(),i()(M.Z,Z);const B=M.Z&&M.Z.locals?M.Z.locals:void 0,H=function(e){var n=e.expanded,t=(0,L.useTranslation)().t,o=(0,a.useMemo)((function(){return{expanded:n}}),[n]);return r().createElement(E.yh,{"aria-label":"Notifications Panel",expanded:n},r().createElement("h1",{className:B.heading},t("notifications","Notifications")),r().createElement(b.ExtensionSlot,{extensionSlotName:"notifications-nav-menu-slot",state:o}))},O=function(e){var n=e.expanded,t=e.hidePanel,o=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e=function(e){(null==o?void 0:o.current)&&!o.current.contains(e.target)&&t()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[o,t]),r().useEffect((function(){return window.addEventListener("popstate",t),window.addEventListener("popstate",t)}),[t]),n&&r().createElement(b.LeftNavMenu,{ref:o,isChildOfHeader:!0})};var z=t(2727),T={};T.styleTagTransform=v(),T.setAttributes=d(),T.insert=u().bind(null,"head"),T.domAPI=s(),T.insertStyleElement=p(),i()(z.Z,T);const U=z.Z&&z.Z.locals?z.Z.locals:void 0,j=function(){var e=(0,b.useConfig)().logo;return r().createElement(r().Fragment,null,(null==e?void 0:e.src)?r().createElement("img",{className:U.logo,src:e.src,alt:e.alt,width:110,height:40}):(null==e?void 0:e.name)?e.name:r().createElement("svg",{role:"img",width:110,height:40},r().createElement("use",{xlinkHref:"#omrs-logo-white"})))};var R=t(9177),D=t(6654),G={};G.styleTagTransform=v(),G.setAttributes=d(),G.insert=u().bind(null,"head"),G.domAPI=s(),G.insertStyleElement=p(),i()(D.Z,G);const V=D.Z&&D.Z.locals?D.Z.locals:void 0;function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const q=function(){var e=function(){var e,n,t=(e=r().useState(new Date),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=t[0],o=t[1];return r().useEffect((function(){var e=null;return(0,b.subscribeConnectivity)((function(n){var t,a,r=n.online;!r&&e&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;localStorage.setItem("offline-last-updated",e.toISOString())}(),e=r,t=localStorage.getItem("offline-last-updated"),a=t?new Date(t):new Date,o(a)}))}),[]),a}();return r().createElement("aside",{className:V.offlineBanner},r().createElement("div",{className:V.offlineIconContainer},r().createElement(R.iY,{size:16})),r().createElement("span",{className:V.offlineNote},"Offline"),r().createElement("div",{className:V.offlineLastUpdatedContainer},r().createElement("span",{className:V.lastUpdatedNote},"Last updated: "),r().createElement("span",null,function(e){var n=e.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}),t=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});return"".concat(n," @ ").concat(t)}(e))))};var J=function(e){return"small-desktop"===e||"large-desktop"===e},Y=t(3205),$={};$.styleTagTransform=v(),$.setAttributes=d(),$.insert=u().bind(null,"head"),$.domAPI=s(),$.insertStyleElement=p(),i()(Y.Z,$);const F=Y.Z&&Y.Z.locals?Y.Z.locals:void 0;function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}const K=function(e){var n,t,o=e.user,i=e.onLogout,l=e.allowedLocales,s=e.session,c=(0,b.useLayoutType)(),u=(0,b.useAssignedExtensions)("patient-chart-dashboard-slot").map((function(e){return e.id})),_=(n=(0,a.useState)(null),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return W(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?W(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=_[0],m=_[1],p=(0,a.useCallback)((function(e){return d===e}),[d]),f=(0,a.useCallback)((function(e){return m((function(n){return n===e?null:e}))}),[]),v=(0,a.useCallback)((function(){m(null)}),[]),g=(0,a.useMemo)((function(){return!J(c)&&u.length>0}),[u.length,c]),h=(0,a.useCallback)((function(){return r().createElement(r().Fragment,null,r().createElement(q,null),r().createElement(E.h4i,{className:F.topNavHeader,"aria-label":"OpenMRS"},g&&r().createElement(E.wID,{"aria-label":"Open menu",isCollapsible:!0,className:F.headerMenuButton,onClick:function(e){f("sideMenu"),e.stopPropagation()},isActive:p("sideMenu")}),r().createElement(b.ConfigurableLink,{to:"${openmrsSpaBase}/home"},r().createElement("div",{className:g?"":F.spacedLogo},r().createElement(j,null))),r().createElement(b.ExtensionSlot,{className:F.dividerOverride,extensionSlotName:"top-nav-info-slot"}),r().createElement(E.sLE,{className:F.headerGlobalBar},r().createElement(b.ExtensionSlot,{extensionSlotName:"top-nav-actions-slot",className:F.topNavActionsSlot}),r().createElement(b.ExtensionSlot,{extensionSlotName:"notifications-menu-button-slot",state:{isActivePanel:p,togglePanel:f}}),r().createElement(E.JMr,{"aria-label":"Users","aria-labelledby":"Users Avatar Icon",className:"".concat(p("userMenu")?F.headerGlobalBarButton:F.activePanel),name:"Users",isActive:p("userMenu"),onClick:function(e){f("userMenu"),e.stopPropagation()}},p("userMenu")?r().createElement(w.x8,{size:20}):r().createElement(x.Yo,{size:20})),r().createElement(E.JMr,{"aria-label":"App Menu",tooltipAlignment:"end",isActive:p("appMenu"),className:"".concat(p("appMenu")?F.headerGlobalBarButton:F.activePanel),"aria-labelledby":"App Menu",onClick:function(e){f("appMenu"),e.stopPropagation()}},p("appMenu")?r().createElement(w.x8,{size:20}):r().createElement(S.SQ,{size:20}))),!J(c)&&r().createElement(O,{hidePanel:v,expanded:p("sideMenu")}),r().createElement(C,{expanded:p("appMenu"),hidePanel:v}),r().createElement(H,{expanded:p("notificationsMenu")}),r().createElement(I,{user:o,session:s,expanded:p("userMenu"),allowedLocales:l,onLogout:i,hidePanel:v})))}),[g,s,o,l,p,c,v,f,i]);return r().createElement("div",null,s&&r().createElement(E.gMZ,{render:h}))};var X=t(7743),ee=t(1602),ne=t.n(ee),te=t(8478),ae=t(1718),re=t(1217);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ie(e,n,t,a,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,r)}function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function se(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return le(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?le(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ce=function(){var e=se((0,a.useState)(null),2),n=e[0],t=e[1],o=se((0,a.useState)(null),2),i=o[0],l=o[1],s=se((0,a.useState)(),2),c=s[0],u=s[1],_=(0,a.useCallback)((function(){return t(!1)}),[]),d=window.getOpenmrsSpaBase();return(0,a.useEffect)((function(){var e,n,a=(0,te.getCurrentUser)({includeAuthStatus:!0}).pipe((0,ae.zg)((e=ne().mark((function e(n){var t,a,r;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=n.user)){e.next=7;break}return e.next=5,(0,te.getSynchronizationItemsFor)(t.uuid,re.O);case 5:r=e.sent,(a=Object).assign.apply(a,[t.userProperties].concat(function(e){if(Array.isArray(e))return oe(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}var o}),e)})),n=function(){var n=this,t=arguments;return new Promise((function(a,r){var o=e.apply(n,t);function i(e){ie(o,a,r,i,l,"next",e)}function l(e){ie(o,a,r,i,l,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)}))).subscribe((function(e){u(e.allowedLocales),e.authenticated?t(e.user):t(!1),(0,b.createErrorHandler)()})),r=(0,te.openmrsObservableFetch)("/ws/rest/v1/session").subscribe((function(e){var n=e.data;return l(n)}));return function(){a.unsubscribe(),r.unsubscribe()}}),[]),r().createElement(X.BrowserRouter,null,r().createElement("div",{className:y.primaryNavContainer},!1===n?r().createElement(X.Navigate,{to:"".concat(d,"login"),state:{referrer:window.location.pathname.slice(window.location.pathname.indexOf(d)+d.length-1)}}):n&&r().createElement(K,{allowedLocales:c,user:n,onLogout:_,session:i})))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[656],{2727:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,".-esm-primary-navigation__logo__logo___ohiCI{display:flex;align-items:center}",""]),r.locals={logo:"-esm-primary-navigation__logo__logo___ohiCI"};const o=r},8815:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1,.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0\\+Z{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp{height:max-content}.-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq{height:var(--omrs-topnav-height)}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a{display:flex;padding:1rem;height:3rem;width:100%;text-decoration:none;color:#fff;background-color:rgba(0,0,0,0)}.-esm-primary-navigation__app-menu-panel__menuLink___a9Ems a:hover{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P{border-top:1px solid;border-top-color:#007d79;border-top-color:var(--brand-03)}.-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn{margin-left:.5rem}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__app-menu-panel__productiveHeading01___tBqf1",menuLink:"-esm-primary-navigation__app-menu-panel__menuLink___a9Ems",productiveHeading02:"-esm-primary-navigation__app-menu-panel__productiveHeading02___dJ0+Z",bodyLong01:"-esm-primary-navigation__app-menu-panel__bodyLong01___BmbrX",headerPanel:"-esm-primary-navigation__app-menu-panel__headerPanel___MYCrp",primaryNavContainer:"-esm-primary-navigation__app-menu-panel__primaryNavContainer___NqUGq",externalLinks:"-esm-primary-navigation__app-menu-panel__externalLinks___nAD1P",launchIcon:"-esm-primary-navigation__app-menu-panel__launchIcon___wn5Qn"};const o=r},7726:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,"",""]),r.locals={};const o=r},3205:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM{display:flex;align-items:center}.-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM a{color:#fff;text-decoration:none;margin:0 .75rem}.-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV{background-color:#004144;background-color:var(--brand-02)}.-esm-primary-navigation__navbar__topNavHeader___HyHf4{top:var(--omrs-offline-banner-height)}.-esm-primary-navigation__navbar__activePanel___QUwvm{background-color:#005d5d;background-color:var(--brand-01)}.-esm-primary-navigation__navbar__headerMenuButton___k6m5W{height:3rem;width:3rem;padding:.75rem;margin-right:.25rem}.-esm-primary-navigation__navbar__spacedLogo___P2WIw{margin-left:1rem}",""]),r.locals={topNavActionsSlot:"-esm-primary-navigation__navbar__topNavActionsSlot___uRmEM",headerGlobalBarButton:"-esm-primary-navigation__navbar__headerGlobalBarButton___a1LgV",topNavHeader:"-esm-primary-navigation__navbar__topNavHeader___HyHf4",activePanel:"-esm-primary-navigation__navbar__activePanel___QUwvm",headerMenuButton:"-esm-primary-navigation__navbar__headerMenuButton___k6m5W",spacedLogo:"-esm-primary-navigation__navbar__spacedLogo___P2WIw"};const o=r},6654:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__offline-banner__offlineBanner___YHODP{position:fixed;top:0;left:0;right:0;height:var(--omrs-offline-banner-height);background-color:#022b30;color:#fff;font-size:.875rem;display:flex;align-items:center;z-index:3}.-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI{width:3rem;display:flex;justify-content:center}.-esm-primary-navigation__offline-banner__offlineNote___MlRaI{font-weight:bold}.-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6{flex:auto;display:flex;justify-content:flex-end;align-items:flex-end;padding-right:1rem}.-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L{color:#c6c6c6;font-size:.75rem}",""]),r.locals={offlineBanner:"-esm-primary-navigation__offline-banner__offlineBanner___YHODP",offlineIconContainer:"-esm-primary-navigation__offline-banner__offlineIconContainer___Ed5PI",offlineNote:"-esm-primary-navigation__offline-banner__offlineNote___MlRaI",offlineLastUpdatedContainer:"-esm-primary-navigation__offline-banner__offlineLastUpdatedContainer___sVRB6",lastUpdatedNote:"-esm-primary-navigation__offline-banner__lastUpdatedNote___3VK6L"};const o=r},5547:(e,n,a)=>{a.d(n,{Z:()=>o});var t=a(361),r=a.n(t)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-primary-navigation__root__productiveHeading01___tScBJ{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__productiveHeading02___2lV0H{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-primary-navigation__root__bodyLong01___vRBQA{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-primary-navigation__root__headerPanel___c17aL{height:max-content}.-esm-primary-navigation__root__primaryNavContainer___TLM40{height:var(--omrs-topnav-height)}",""]),r.locals={productiveHeading01:"-esm-primary-navigation__root__productiveHeading01___tScBJ",productiveHeading02:"-esm-primary-navigation__root__productiveHeading02___2lV0H",bodyLong01:"-esm-primary-navigation__root__bodyLong01___vRBQA",headerPanel:"-esm-primary-navigation__root__headerPanel___c17aL",primaryNavContainer:"-esm-primary-navigation__root__primaryNavContainer___TLM40"};const o=r},3656:(e,n,a)=>{a.r(n),a.d(n,{default:()=>ce});var t=a(5776),r=a.n(t),o=a(487),i=a.n(o),l=a(631),s=a.n(l),c=a(2052),u=a.n(c),_=a(4010),d=a.n(_),m=a(1469),p=a.n(m),f=a(9329),v=a.n(f),g=a(5547),h={};h.styleTagTransform=v(),h.setAttributes=d(),h.insert=u().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),i()(g.Z,h);const y=g.Z&&g.Z.locals?g.Z.locals:void 0;var b=a(6974),E=a(7914),w=a(1102),L=a(7414),A=a(8696),x=a(2680),S=a(4474),N=a(8815),k={};k.styleTagTransform=v(),k.setAttributes=d(),k.insert=u().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=p(),i()(N.Z,k);const P=N.Z&&N.Z.locals?N.Z.locals:void 0,C=function(e){var n,a,t=e.expanded,o=e.hidePanel,i=(0,b.useOnClickOutside)(o,t),l=(0,b.useConfig)(),s=(0,x.useTranslation)().t;return r().createElement(E.yh,{ref:i,className:P.headerPanel,"aria-label":"App Menu Panel",expanded:t},r().createElement(b.ExtensionSlot,{className:P.menuLink,name:"app-menu-slot"}),(null==l||null===(n=l.externalRefLinks)||void 0===n?void 0:n.length)>0&&r().createElement("div",{className:"".concat(P.menuLink," ").concat(P.externalLinks)},null==l||null===(a=l.externalRefLinks)||void 0===a?void 0:a.map((function(e){return r().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:null==e?void 0:e.redirect},s(null==e?void 0:e.title),r().createElement(S.GI,{size:16,className:P.launchIcon}))}))))},I=function(e){var n,a=e.expanded,t=e.user,o=e.allowedLocales,i=e.onLogout,l=e.session,s=e.hidePanel,c=(0,b.useOnClickOutside)(s,a);return r().createElement(E.yh,{ref:c,className:y.headerPanel,expanded:a,"aria-label":"Location","aria-labelledby":"Location Icon"},r().createElement(b.ExtensionSlot,{name:"user-panel-slot",state:{user:t,allowedLocales:o,onLogout:i,referer:window.location.pathname,currentLocation:null==l||null===(n=l.sessionLocation)||void 0===n?void 0:n.display}}))};var M=a(7726),Z={};Z.styleTagTransform=v(),Z.setAttributes=d(),Z.insert=u().bind(null,"head"),Z.domAPI=s(),Z.insertStyleElement=p(),i()(M.Z,Z);const B=M.Z&&M.Z.locals?M.Z.locals:void 0,H=function(e){var n=e.expanded,a=(0,x.useTranslation)().t,o=(0,t.useMemo)((function(){return{expanded:n}}),[n]);return r().createElement(E.yh,{"aria-label":"Notifications Panel",expanded:n},r().createElement("h1",{className:B.heading},a("notifications","Notifications")),r().createElement(b.ExtensionSlot,{name:"notifications-nav-menu-slot",state:o}))},O=function(e){var n=e.expanded,a=e.hidePanel,o=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e=function(e){(null==o?void 0:o.current)&&!o.current.contains(e.target)&&a()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[o,a]),r().useEffect((function(){return window.addEventListener("popstate",a),window.addEventListener("popstate",a)}),[a]),n&&r().createElement(b.LeftNavMenu,{ref:o,isChildOfHeader:!0})};var z=a(2727),T={};T.styleTagTransform=v(),T.setAttributes=d(),T.insert=u().bind(null,"head"),T.domAPI=s(),T.insertStyleElement=p(),i()(z.Z,T);const U=z.Z&&z.Z.locals?z.Z.locals:void 0,j=function(){var e=(0,b.useConfig)().logo;return r().createElement(r().Fragment,null,(null==e?void 0:e.src)?r().createElement("img",{className:U.logo,src:e.src,alt:e.alt,width:110,height:40}):(null==e?void 0:e.name)?e.name:r().createElement("svg",{role:"img",width:110,height:40},r().createElement("use",{xlinkHref:"#omrs-logo-white"})))};var R=a(9177),D=a(6654),G={};G.styleTagTransform=v(),G.setAttributes=d(),G.insert=u().bind(null,"head"),G.domAPI=s(),G.insertStyleElement=p(),i()(D.Z,G);const V=D.Z&&D.Z.locals?D.Z.locals:void 0;function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}const q=function(){var e=function(){var e,n,a=(e=r().useState(new Date),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),t=a[0],o=a[1];return r().useEffect((function(){var e=null;return(0,b.subscribeConnectivity)((function(n){var a,t,r=n.online;!r&&e&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;localStorage.setItem("offline-last-updated",e.toISOString())}(),e=r,a=localStorage.getItem("offline-last-updated"),t=a?new Date(a):new Date,o(t)}))}),[]),t}();return r().createElement("aside",{className:V.offlineBanner},r().createElement("div",{className:V.offlineIconContainer},r().createElement(R.iY,{size:16})),r().createElement("span",{className:V.offlineNote},"Offline"),r().createElement("div",{className:V.offlineLastUpdatedContainer},r().createElement("span",{className:V.lastUpdatedNote},"Last updated: "),r().createElement("span",null,function(e){var n=e.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"}),a=e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});return"".concat(n," @ ").concat(a)}(e))))};var J=function(e){return"small-desktop"===e||"large-desktop"===e},Y=a(3205),$={};$.styleTagTransform=v(),$.setAttributes=d(),$.insert=u().bind(null,"head"),$.domAPI=s(),$.insertStyleElement=p(),i()(Y.Z,$);const F=Y.Z&&Y.Z.locals?Y.Z.locals:void 0;function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}const K=function(e){var n,a,o=e.user,i=e.onLogout,l=e.allowedLocales,s=e.session,c=(0,b.useLayoutType)(),u=(0,b.useAssignedExtensions)("patient-chart-dashboard-slot").map((function(e){return e.id})),_=(n=(0,t.useState)(null),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(n,a)||function(e,n){if(e){if("string"==typeof e)return W(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?W(e,n):void 0}}(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=_[0],m=_[1],p=(0,t.useCallback)((function(e){return d===e}),[d]),f=(0,t.useCallback)((function(e){return m((function(n){return n===e?null:e}))}),[]),v=(0,t.useCallback)((function(){m(null)}),[]),g=(0,t.useMemo)((function(){return!J(c)&&u.length>0}),[u.length,c]),h=(0,t.useCallback)((function(){return r().createElement(r().Fragment,null,r().createElement(q,null),r().createElement(E.h4i,{className:F.topNavHeader,"aria-label":"OpenMRS"},g&&r().createElement(E.wID,{"aria-label":"Open menu",isCollapsible:!0,className:F.headerMenuButton,onClick:function(e){f("sideMenu"),e.stopPropagation()},isActive:p("sideMenu")}),r().createElement(b.ConfigurableLink,{to:"${openmrsSpaBase}/home"},r().createElement("div",{className:g?"":F.spacedLogo},r().createElement(j,null))),r().createElement(b.ExtensionSlot,{className:F.dividerOverride,name:"top-nav-info-slot"}),r().createElement(E.sLE,{className:F.headerGlobalBar},r().createElement(b.ExtensionSlot,{name:"top-nav-actions-slot",className:F.topNavActionsSlot}),r().createElement(b.ExtensionSlot,{name:"notifications-menu-button-slot",state:{isActivePanel:p,togglePanel:f}}),r().createElement(E.JMr,{"aria-label":"Users","aria-labelledby":"Users Avatar Icon",className:"".concat(p("userMenu")?F.headerGlobalBarButton:F.activePanel),name:"Users",isActive:p("userMenu"),onClick:function(e){f("userMenu"),e.stopPropagation()}},p("userMenu")?r().createElement(w.x8,{size:20}):r().createElement(L.Yo,{size:20})),r().createElement(E.JMr,{"aria-label":"App Menu",tooltipAlignment:"end",isActive:p("appMenu"),className:"".concat(p("appMenu")?F.headerGlobalBarButton:F.activePanel),"aria-labelledby":"App Menu",onClick:function(e){f("appMenu"),e.stopPropagation()}},p("appMenu")?r().createElement(w.x8,{size:20}):r().createElement(A.SQ,{size:20}))),!J(c)&&r().createElement(O,{hidePanel:v,expanded:p("sideMenu")}),r().createElement(C,{expanded:p("appMenu"),hidePanel:v}),r().createElement(H,{expanded:p("notificationsMenu")}),r().createElement(I,{user:o,session:s,expanded:p("userMenu"),allowedLocales:l,onLogout:i,hidePanel:v})))}),[g,s,o,l,p,c,v,f,i]);return r().createElement("div",null,s&&r().createElement(E.gMZ,{render:h}))};var X=a(7743),ee=a(1602),ne=a.n(ee),ae=a(8478),te=a(1718),re=a(1217);function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}function ie(e,n,a,t,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void a(e)}l.done?n(s):Promise.resolve(s).then(t,r)}function le(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}function se(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var t,r,o=[],i=!0,l=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(l)throw r}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return le(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?le(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ce=function(){var e=se((0,t.useState)(null),2),n=e[0],a=e[1],o=se((0,t.useState)(null),2),i=o[0],l=o[1],s=se((0,t.useState)(),2),c=s[0],u=s[1],_=(0,t.useCallback)((function(){return a(!1)}),[]),d=window.getOpenmrsSpaBase();return(0,t.useEffect)((function(){var e,n,t=(0,ae.getCurrentUser)({includeAuthStatus:!0}).pipe((0,te.zg)((e=ne().mark((function e(n){var a,t,r;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=n.user)){e.next=7;break}return e.next=5,(0,ae.getSynchronizationItemsFor)(a.uuid,re.O);case 5:r=e.sent,(t=Object).assign.apply(t,[a.userProperties].concat(function(e){if(Array.isArray(e))return oe(e)}(o=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,n){if(e){if("string"==typeof e)return oe(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?oe(e,n):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}var o}),e)})),n=function(){var n=this,a=arguments;return new Promise((function(t,r){var o=e.apply(n,a);function i(e){ie(o,t,r,i,l,"next",e)}function l(e){ie(o,t,r,i,l,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)}))).subscribe((function(e){u(e.allowedLocales),e.authenticated?a(e.user):a(!1),(0,b.createErrorHandler)()})),r=(0,ae.openmrsObservableFetch)("/ws/rest/v1/session").subscribe((function(e){var n=e.data;return l(n)}));return function(){t.unsubscribe(),r.unsubscribe()}}),[]),r().createElement(X.BrowserRouter,null,r().createElement("div",{className:y.primaryNavContainer},!1===n?r().createElement(X.Navigate,{to:"".concat(d,"login"),state:{referrer:window.location.pathname.slice(window.location.pathname.indexOf(d)+d.length-1)}}):n&&r().createElement(K,{allowedLocales:c,user:n,onLogout:_,session:i})))}}}]);
|
package/dist/735.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 735.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[735],{8447:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,k(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),O(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",k(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=O(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=O(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function x(e,t,r){if(null==e)return e;var n=[],o=0;return O(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.
|
|
2
|
+
"use strict";(self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[735],{8447:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,u,a){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var i=!1;if(null===e)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case r:case n:i=!0}}if(i)return a=a(i=e),e=""===u?"."+j(i,0):u,k(a)?(o="",null!=e&&(o=e.replace(g,"$&/")+"/"),O(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+e)),t.push(a)),1;if(i=0,u=""===u?".":u+":",k(e))for(var f=0;f<e.length;f++){var s=u+j(c=e[f],f);i+=O(c,t,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),f=0;!(c=e.next()).done;)i+=O(c=c.value,t,o,s=u+j(c,f++),a);else if("object"===c)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function x(e,t,r){if(null==e)return e;var n=[],o=0;return O(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},T={transition:null},V={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:T,ReactCurrentOwner:E};t.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},2735:(e,t,r)=>{e.exports=r(8447)}}]);
|