@openmrs/esm-primary-navigation-app 4.0.3 → 4.0.4-pre.477

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
- @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 3288224f8fed38f4
2
- @openmrs/esm-primary-navigation-app:build: assets by chunk 249 KiB (id hint: vendors)
3
- @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
- @openmrs/esm-primary-navigation-app:build:  asset 483.js 37.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
- @openmrs/esm-primary-navigation-app:build:  asset 787.js 27.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
- @openmrs/esm-primary-navigation-app:build:  asset 710.js 19.5 KiB [emitted] [minimized] (id hint: vendors)
7
- @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
8
- @openmrs/esm-primary-navigation-app:build:  asset 723.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
- @openmrs/esm-primary-navigation-app:build:  asset 414.js 737 bytes [emitted] [minimized] (id hint: vendors)
10
- @openmrs/esm-primary-navigation-app:build: + 11 assets
11
- @openmrs/esm-primary-navigation-app:build: orphan modules 3.7 MiB (javascript) 42 bytes (consume-shared) [orphan] 574 modules
12
- @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
13
- @openmrs/esm-primary-navigation-app:build: built modules 2.57 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
14
- @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.57 MiB
15
- @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.41 MiB 44 modules
16
- @openmrs/esm-primary-navigation-app:build:  modules by path ./ 164 KiB 18 modules
17
- @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
18
- @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.3 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
19
- @openmrs/esm-primary-navigation-app:build:  + 4 modules
20
- @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
21
- @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
22
- @openmrs/esm-primary-navigation-app:build:  + 3 modules
23
- @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
24
- @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
25
- @openmrs/esm-primary-navigation-app:build: 
26
- @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
27
- @openmrs/esm-primary-navigation-app:build: This can impact web performance.
28
- @openmrs/esm-primary-navigation-app:build: Assets:
29
- @openmrs/esm-primary-navigation-app:build:  889.js (405 KiB)
30
- @openmrs/esm-primary-navigation-app:build: 
31
- @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 94186 ms
1
+ @openmrs/esm-primary-navigation-app:build: cache hit, replaying output 777ff2446354c9b2
2
+ @openmrs/esm-primary-navigation-app:build: assets by chunk 249 KiB (id hint: vendors)
3
+ @openmrs/esm-primary-navigation-app:build:  asset 788.js 130 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
4
+ @openmrs/esm-primary-navigation-app:build:  asset 483.js 37.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-primary-navigation-app:build:  asset 787.js 27.8 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-primary-navigation-app:build:  asset 710.js 19.5 KiB [emitted] [minimized] (id hint: vendors)
7
+ @openmrs/esm-primary-navigation-app:build:  asset 146.js 19.1 KiB [emitted] [minimized] (id hint: vendors)
8
+ @openmrs/esm-primary-navigation-app:build:  asset 723.js 14.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
+ @openmrs/esm-primary-navigation-app:build:  asset 414.js 737 bytes [emitted] [minimized] (id hint: vendors)
10
+ @openmrs/esm-primary-navigation-app:build: + 11 assets
11
+ @openmrs/esm-primary-navigation-app:build: orphan modules 3.7 MiB (javascript) 42 bytes (consume-shared) [orphan] 574 modules
12
+ @openmrs/esm-primary-navigation-app:build: runtime modules 38.7 KiB 28 modules
13
+ @openmrs/esm-primary-navigation-app:build: built modules 2.58 MiB (javascript) 210 bytes (share-init) 210 bytes (consume-shared) [built]
14
+ @openmrs/esm-primary-navigation-app:build:  cacheable modules 2.58 MiB
15
+ @openmrs/esm-primary-navigation-app:build:  modules by path ../../ 2.42 MiB 44 modules
16
+ @openmrs/esm-primary-navigation-app:build:  modules by path ./ 164 KiB 18 modules
17
+ @openmrs/esm-primary-navigation-app:build:  provide-module modules 210 bytes
18
+ @openmrs/esm-primary-navigation-app:build:  provide shared module (default) @openmrs/esm-framework/src/internal@4.0.4-pre.477 = ../../framework/esm-framework/src/internal.ts 42 bytes [built] [code generated]
19
+ @openmrs/esm-primary-navigation-app:build:  + 4 modules
20
+ @openmrs/esm-primary-navigation-app:build:  consume-shared-module modules 210 bytes
21
+ @openmrs/esm-primary-navigation-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
22
+ @openmrs/esm-primary-navigation-app:build:  + 3 modules
23
+ @openmrs/esm-primary-navigation-app:build:  container entry 42 bytes [built] [code generated]
24
+ @openmrs/esm-primary-navigation-app:build:  ./translations/ lazy nonrecursive .json$ 160 bytes [built] [code generated]
25
+ @openmrs/esm-primary-navigation-app:build: 
26
+ @openmrs/esm-primary-navigation-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
27
+ @openmrs/esm-primary-navigation-app:build: This can impact web performance.
28
+ @openmrs/esm-primary-navigation-app:build: Assets:
29
+ @openmrs/esm-primary-navigation-app:build:  889.js (408 KiB)
30
+ @openmrs/esm-primary-navigation-app:build: 
31
+ @openmrs/esm-primary-navigation-app:build: webpack 5.74.0 compiled with 1 warning in 115688 ms
package/dist/34.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[34],{6639:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s,genericLinkConfigSchema:()=>a});var r=t(5776),o=t.n(r),i=t(4610),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function s(){var e=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:e.target},e.title)}},1217:(e,n,t)=>{"use strict";t.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},8034:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>x,importTranslation:()=>P,setupOpenMRS:()=>C,version:()=>O});var r=t(4610),o=t(8478),i=t(1217);function a(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))}}var l=function(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function u(e,n,t){return c.apply(this,arguments)}function c(){return(c=s((function(e,n,t){var r,i;return l(this,(function(a){switch(a.label){case 0:return[4,(0,o.getSessionLocation)()];case 1:return r=a.sent(),i=null==r?void 0:r.uuid,[4,(0,o.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:t.signal})];case 2:return a.sent(),i?[4,(0,o.setSessionLocation)(i,t)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))).apply(this,arguments)}function p(e,n){return f.apply(this,arguments)}function f(){return(f=s((function(e,n){return l(this,(function(t){switch(t.label){case 0:return[4,(0,o.openmrsFetch)("/ws/rest/v1/session",{method:"POST",body:{locale:e},headers:{"Content-Type":"application/json"},signal:n.signal})];case 1:return t.sent(),[2]}}))}))).apply(this,arguments)}function y(e,n){return(0,o.queueSynchronizationItemFor)(e,i.O,n,{displayName:"User Language Change"})}var d={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function h(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 m(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){m(i,r,o,a,s,"next",e)}function s(e){m(i,r,o,a,s,"throw",e)}a(void 0)}))}}function b(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,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw o}}return i}}(e,n)||w(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 g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||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.")}()}function w(e,n){if(e){if("string"==typeof e)return h(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)?h(e,n):void 0}}var S=function(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function _(e,n){return k.apply(this,arguments)}function k(){return k=v((function(e,n){var t,r,i,a;return S(this,(function(e){switch(e.label){case 0:return 0!==n.index?[3,3]:[4,(0,o.getLoggedInUser)()];case 1:return r=e.sent(),i=n.items.map((function(e){var n=b(e,2);return n[0],n[1]})),a=(t=Object).assign.apply(t,[{},r.userProperties].concat(g(i))),[4,u(r.uuid,a,n.abort)];case 2:e.sent(),(0,o.refetchCurrentUser)(),e.label=3;case 3:return[2]}}))})),k.apply(this,arguments)}var T=t(3710),L=t(6639),O="4.0.3",P=t(3979),x={"webservices.rest":"^2.2.0"},A={featureName:"primary navigation",moduleName:i.e};function C(){return(0,r.defineConfigSchema)(i.e,d),(0,r.defineExtensionConfigSchema)("link",L.genericLinkConfigSchema),(0,r.setupOfflineSync)(i.O,[],_),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(414),t.e(723),t.e(680),t.e(656)]).then(t.bind(t,3656))}),A),route:function(e){return!e.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve((0,T.UO)(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(e){return e.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(414),t.e(473)]).then(t.bind(t,3473))}),A),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(680),t.e(98)]).then(t.bind(t,5098))}),A),online:{postUserProperties:u,postSessionLocale:p},offline:{postUserProperties:y,postSessionLocale:function(){return Promise.resolve({})}}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(t.bind(t,6639))}),{featureName:"Link",moduleName:i.e})}]}}},3979:(e,n,t)=>{var r={"./en.json":[3574,574]};function o(e){if(!t.o(r,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],o=n[0];return t.e(n[1]).then((()=>t(o)))}o.keys=()=>Object.keys(r),o.id=3979,e.exports=o}}]);
1
+ (self.webpackChunk_openmrs_esm_primary_navigation_app=self.webpackChunk_openmrs_esm_primary_navigation_app||[]).push([[34],{6639:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s,genericLinkConfigSchema:()=>a});var r=t(5776),o=t.n(r),i=t(4610),a={title:{_default:"New Link",_type:i.Type.String},target:{_default:"#",_type:i.Type.String,_description:"The URL to link to.",_validators:[i.validators.isUrl]}};function s(){var e=(0,i.useConfig)();return o().createElement(i.ConfigurableLink,{to:e.target},e.title)}},1217:(e,n,t)=>{"use strict";t.d(n,{O:()=>r,e:()=>o});var r="user-property-change",o="@openmrs/esm-primary-navigation-app"},8034:(e,n,t)=>{"use strict";t.r(n),t.d(n,{backendDependencies:()=>x,importTranslation:()=>P,setupOpenMRS:()=>C,version:()=>O});var r=t(4610),o=t(8478),i=t(1217);function a(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))}}var l=function(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function u(e,n,t){return c.apply(this,arguments)}function c(){return(c=s((function(e,n,t){var r,i;return l(this,(function(a){switch(a.label){case 0:return[4,(0,o.getSessionLocation)()];case 1:return r=a.sent(),i=null==r?void 0:r.uuid,[4,(0,o.openmrsFetch)("/ws/rest/v1/user/".concat(e),{method:"POST",body:{userProperties:n},headers:{"Content-Type":"application/json"},signal:t.signal})];case 2:return a.sent(),i?[4,(0,o.setSessionLocation)(i,t)]:[3,4];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))).apply(this,arguments)}function p(e,n){return f.apply(this,arguments)}function f(){return(f=s((function(e,n){return l(this,(function(t){switch(t.label){case 0:return[4,(0,o.openmrsFetch)("/ws/rest/v1/session",{method:"POST",body:{locale:e},headers:{"Content-Type":"application/json"},signal:n.signal})];case 1:return t.sent(),[2]}}))}))).apply(this,arguments)}function y(e,n){return(0,o.queueSynchronizationItemFor)(e,i.O,n,{displayName:"User Language Change"})}var d={logo:{src:{_type:r.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:r.Type.String,_default:"Logo",_description:"Alt text, shown on hover"},name:{_type:r.Type.String,_default:null,_description:"The organization name displayed when image is absent"}},externalRefLinks:{_type:r.Type.Array,_elements:{title:{_type:r.Type.String,_description:"Title of the link"},redirect:{_type:r.Type.String,_description:"Link to redirect to (must be an external link)",_validators:[r.validators.isUrl]}},_default:[],_description:"The external links to be showcased in the app menu"}};function h(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 m(e,n,t,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(r,o)}function v(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){m(i,r,o,a,s,"next",e)}function s(e){m(i,r,o,a,s,"throw",e)}a(void 0)}))}}function b(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,s=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(s)throw o}}return i}}(e,n)||w(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 g(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||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.")}()}function w(e,n){if(e){if("string"==typeof e)return h(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)?h(e,n):void 0}}var S=function(e,n){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(e,a)}catch(e){i=[6,e],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function _(e,n){return k.apply(this,arguments)}function k(){return k=v((function(e,n){var t,r,i,a;return S(this,(function(e){switch(e.label){case 0:return 0!==n.index?[3,3]:[4,(0,o.getLoggedInUser)()];case 1:return r=e.sent(),i=n.items.map((function(e){var n=b(e,2);return n[0],n[1]})),a=(t=Object).assign.apply(t,[{},r.userProperties].concat(g(i))),[4,u(r.uuid,a,n.abort)];case 2:e.sent(),(0,o.refetchCurrentUser)(),e.label=3;case 3:return[2]}}))})),k.apply(this,arguments)}var T=t(3710),L=t(6639),O="4.0.4-pre.477",P=t(3979),x={"webservices.rest":"^2.2.0"},A={featureName:"primary navigation",moduleName:i.e};function C(){return(0,r.defineConfigSchema)(i.e,d),(0,r.defineExtensionConfigSchema)("link",L.genericLinkConfigSchema),(0,r.setupOfflineSync)(i.O,[],_),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(414),t.e(723),t.e(680),t.e(656)]).then(t.bind(t,3656))}),A),route:function(e){return!e.pathname.startsWith(window.getOpenmrsSpaBase()+"login")},online:!0,offline:!0,order:0},{load:{bootstrap:function(){return Promise.resolve((0,T.UO)(window.getOpenmrsSpaBase()+"home"))},mount:function(){return Promise.resolve()},unmount:function(){return Promise.resolve()}},route:function(e){return e.pathname===window.getOpenmrsSpaBase()},order:0}],extensions:[{name:"default-user-panel",slot:"user-panel-slot",order:0,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(414),t.e(473)]).then(t.bind(t,3473))}),A),online:!0,offline:!0},{name:"change-locale",slot:"user-panel-slot",order:1,load:(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(483),t.e(680),t.e(98)]).then(t.bind(t,5098))}),A),online:{postUserProperties:u,postSessionLocale:p},offline:{postUserProperties:y,postSessionLocale:function(){return Promise.resolve({})}}},{name:"link",load:(0,r.getAsyncLifecycle)((function(){return Promise.resolve().then(t.bind(t,6639))}),{featureName:"Link",moduleName:i.e})}]}}},3979:(e,n,t)=>{var r={"./en.json":[3574,574]};function o(e){if(!t.o(r,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],o=n[0];return t.e(n[1]).then((()=>t(o)))}o.keys=()=>Object.keys(r),o.id=3979,e.exports=o}}]);