@openmrs/esm-app-shell 4.0.3-pre.441 → 4.0.3-pre.452

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,98 +1,98 @@
1
- @openmrs/esm-app-shell:build: cache hit, replaying output 83ff53765d63ae8e
2
- @openmrs/esm-app-shell:build: 
3
- @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.3-pre.441 build:production
4
- @openmrs/esm-app-shell:build: > cross-env OMRS_ESM_IMPORTMAP_URL="https://dev3.openmrs.org/openmrs/spa/importmap.json" OMRS_OFFLINE="enable" NODE_ENV="production" webpack --mode production
5
- @openmrs/esm-app-shell:build: 
6
- @openmrs/esm-app-shell:build: (node:2808) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
7
- @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
8
- @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
9
- @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
10
- @openmrs/esm-app-shell:build: (Use `node --trace-deprecation ...` to show where the warning was created)
11
- @openmrs/esm-app-shell:build: assets by info 2.4 MiB [immutable]
12
- @openmrs/esm-app-shell:build:  assets by path *.woff 1.35 MiB 90 assets
13
- @openmrs/esm-app-shell:build:  assets by path *.woff2 1.04 MiB 90 assets
14
- @openmrs/esm-app-shell:build:  + 1 asset
15
- @openmrs/esm-app-shell:build: assets by path *.png 64.8 KiB
16
- @openmrs/esm-app-shell:build:  asset logo-512.png 15.5 KiB [emitted] [from: src/assets/logo-512.png] [copied]
17
- @openmrs/esm-app-shell:build:  asset icon_512x512.7163efb26df832de513bc58d925ea22e.png 13.9 KiB [emitted]
18
- @openmrs/esm-app-shell:build:  + 6 assets
19
- @openmrs/esm-app-shell:build: assets by status 1.84 MiB [big]
20
- @openmrs/esm-app-shell:build:  asset openmrs.js 1.2 MiB [emitted] [minimized] [big] (name: main) 1 related asset
21
- @openmrs/esm-app-shell:build:  asset openmrs.css 659 KiB [emitted] [big] (name: main)
22
- @openmrs/esm-app-shell:build: + 5 assets
23
- @openmrs/esm-app-shell:build: Entrypoint main [big] 1.84 MiB = openmrs.css 659 KiB openmrs.js 1.2 MiB
24
- @openmrs/esm-app-shell:build: orphan modules 4.82 MiB (javascript) 2.4 MiB (asset) 8.23 KiB (runtime) [orphan] 1238 modules
25
- @openmrs/esm-app-shell:build: runtime modules 19.2 KiB 15 modules
26
- @openmrs/esm-app-shell:build: built modules 3.96 MiB (javascript) 665 KiB (css/mini-extract) 420 bytes (share-init) 420 bytes (consume-shared) [built]
27
- @openmrs/esm-app-shell:build:  modules by path ../../../node_modules/ 3.57 MiB 245 modules
28
- @openmrs/esm-app-shell:build:  modules by path ../../framework/ 289 KiB (javascript) 665 KiB (css/mini-extract) 101 modules
29
- @openmrs/esm-app-shell:build:  provide-module modules 420 bytes
30
- @openmrs/esm-app-shell:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
31
- @openmrs/esm-app-shell:build:  + 8 modules
32
- @openmrs/esm-app-shell:build:  consume-shared-module modules 420 bytes
33
- @openmrs/esm-app-shell:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
34
- @openmrs/esm-app-shell:build:  + 8 modules
35
- @openmrs/esm-app-shell:build:  modules by path ./ 110 KiB
36
- @openmrs/esm-app-shell:build:  modules by path ./src/*.ts 107 KiB 2 modules
37
- @openmrs/esm-app-shell:build:  + 2 modules
38
- @openmrs/esm-app-shell:build: 
39
- @openmrs/esm-app-shell:build: LOG from InjectManifest
40
- @openmrs/esm-app-shell:build: <i> The service worker at service-worker.js will precache
41
- @openmrs/esm-app-shell:build: <i>  189 URLs, totaling 4.47 MB.
42
- @openmrs/esm-app-shell:build: 
43
- @openmrs/esm-app-shell:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
44
- @openmrs/esm-app-shell:build: This can impact web performance.
45
- @openmrs/esm-app-shell:build: Assets:
46
- @openmrs/esm-app-shell:build:  openmrs.css (659 KiB)
47
- @openmrs/esm-app-shell:build:  openmrs.js (1.2 MiB)
48
- @openmrs/esm-app-shell:build: 
49
- @openmrs/esm-app-shell:build: WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
50
- @openmrs/esm-app-shell:build: Entrypoints:
51
- @openmrs/esm-app-shell:build:  main (1.84 MiB)
52
- @openmrs/esm-app-shell:build:  openmrs.css
53
- @openmrs/esm-app-shell:build:  openmrs.js
54
- @openmrs/esm-app-shell:build: 
55
- @openmrs/esm-app-shell:build: 
56
- @openmrs/esm-app-shell:build: webpack 5.74.0 compiled with 2 warnings in 122054 ms
57
- @openmrs/esm-app-shell:build: 
58
- @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.3-pre.441 build:development
59
- @openmrs/esm-app-shell:build: > cross-env OMRS_OFFLINE="enable" NODE_ENV="development" webpack --mode development
60
- @openmrs/esm-app-shell:build: 
61
- @openmrs/esm-app-shell:build: (node:3140) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
62
- @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
63
- @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
64
- @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
65
- @openmrs/esm-app-shell:build: (Use `node --trace-deprecation ...` to show where the warning was created)
66
- @openmrs/esm-app-shell:build: assets by chunk 2.4 MiB (auxiliary name: main)
67
- @openmrs/esm-app-shell:build:  assets by path *.woff 1.35 MiB 90 assets
68
- @openmrs/esm-app-shell:build:  assets by path *.woff2 1.04 MiB 90 assets
69
- @openmrs/esm-app-shell:build: assets by path *.png 64.8 KiB
70
- @openmrs/esm-app-shell:build:  asset logo-512.png 15.5 KiB [emitted] [from: src/assets/logo-512.png] [copied]
71
- @openmrs/esm-app-shell:build:  asset icon_512x512.7163efb26df832de513bc58d925ea22e.png 13.9 KiB [emitted]
72
- @openmrs/esm-app-shell:build:  + 6 assets
73
- @openmrs/esm-app-shell:build: assets by path *.js 24.1 MiB
74
- @openmrs/esm-app-shell:build:  asset openmrs.js 22.7 MiB [emitted] (name: main)
75
- @openmrs/esm-app-shell:build:  asset service-worker.js 1.38 MiB [emitted]
76
- @openmrs/esm-app-shell:build:  asset d3c6a54d292b7c23f8fb.js 11.5 KiB [emitted] [immutable]
77
- @openmrs/esm-app-shell:build: asset index.html 3.19 KiB [emitted]
78
- @openmrs/esm-app-shell:build: asset logo.svg 1.33 KiB [emitted] [from: src/assets/logo.svg] [copied]
79
- @openmrs/esm-app-shell:build: asset manifest.c61e464ba60302bdc2442acdd49954f1.json 1.2 KiB [emitted]
80
- @openmrs/esm-app-shell:build: asset favicon.ico 1.12 KiB [emitted] [from: src/assets/favicon.ico] [copied]
81
- @openmrs/esm-app-shell:build: orphan modules 1.03 MiB [orphan] 418 modules
82
- @openmrs/esm-app-shell:build: runtime modules 21.8 KiB 14 modules
83
- @openmrs/esm-app-shell:build: javascript modules 6.43 MiB 951 modules
84
- @openmrs/esm-app-shell:build: asset modules 40.1 KiB (javascript) 2.4 MiB (asset)
85
- @openmrs/esm-app-shell:build:  modules by path ../../framework/esm-styleguide/dist/ 7.38 KiB (javascript) 2.4 MiB (asset) 180 modules
86
- @openmrs/esm-app-shell:build:  modules by path ../../framework/esm-styleguide/src/ 32.7 KiB 27 modules
87
- @openmrs/esm-app-shell:build: provide-module modules 420 bytes
88
- @openmrs/esm-app-shell:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
89
- @openmrs/esm-app-shell:build:  + 8 modules
90
- @openmrs/esm-app-shell:build: consume-shared-module modules 420 bytes
91
- @openmrs/esm-app-shell:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
92
- @openmrs/esm-app-shell:build:  + 8 modules
93
- @openmrs/esm-app-shell:build: 
94
- @openmrs/esm-app-shell:build: LOG from InjectManifest
95
- @openmrs/esm-app-shell:build: <i> The service worker at service-worker.js will precache
96
- @openmrs/esm-app-shell:build: <i>  187 URLs, totaling 26.3 MB.
97
- @openmrs/esm-app-shell:build: 
98
- @openmrs/esm-app-shell:build: webpack 5.74.0 compiled successfully in 13680 ms
1
+ @openmrs/esm-app-shell:build: cache hit, replaying output 70d86e5b6e2143f3
2
+ @openmrs/esm-app-shell:build: 
3
+ @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.3-pre.452 build:production
4
+ @openmrs/esm-app-shell:build: > cross-env OMRS_ESM_IMPORTMAP_URL="https://dev3.openmrs.org/openmrs/spa/importmap.json" OMRS_OFFLINE="enable" NODE_ENV="production" webpack --mode production
5
+ @openmrs/esm-app-shell:build: 
6
+ @openmrs/esm-app-shell:build: (node:2961) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
7
+ @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
8
+ @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
9
+ @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
10
+ @openmrs/esm-app-shell:build: (Use `node --trace-deprecation ...` to show where the warning was created)
11
+ @openmrs/esm-app-shell:build: assets by info 2.4 MiB [immutable]
12
+ @openmrs/esm-app-shell:build:  assets by path *.woff 1.35 MiB 90 assets
13
+ @openmrs/esm-app-shell:build:  assets by path *.woff2 1.04 MiB 90 assets
14
+ @openmrs/esm-app-shell:build:  + 1 asset
15
+ @openmrs/esm-app-shell:build: assets by path *.png 64.8 KiB
16
+ @openmrs/esm-app-shell:build:  asset logo-512.png 15.5 KiB [emitted] [from: src/assets/logo-512.png] [copied]
17
+ @openmrs/esm-app-shell:build:  asset icon_512x512.7163efb26df832de513bc58d925ea22e.png 13.9 KiB [emitted]
18
+ @openmrs/esm-app-shell:build:  + 6 assets
19
+ @openmrs/esm-app-shell:build: assets by status 1.84 MiB [big]
20
+ @openmrs/esm-app-shell:build:  asset openmrs.js 1.2 MiB [emitted] [minimized] [big] (name: main) 1 related asset
21
+ @openmrs/esm-app-shell:build:  asset openmrs.css 659 KiB [emitted] [big] (name: main)
22
+ @openmrs/esm-app-shell:build: + 5 assets
23
+ @openmrs/esm-app-shell:build: Entrypoint main [big] 1.84 MiB = openmrs.css 659 KiB openmrs.js 1.2 MiB
24
+ @openmrs/esm-app-shell:build: orphan modules 4.82 MiB (javascript) 2.4 MiB (asset) 8.23 KiB (runtime) [orphan] 1238 modules
25
+ @openmrs/esm-app-shell:build: runtime modules 19.2 KiB 15 modules
26
+ @openmrs/esm-app-shell:build: built modules 3.96 MiB (javascript) 665 KiB (css/mini-extract) 420 bytes (share-init) 420 bytes (consume-shared) [built]
27
+ @openmrs/esm-app-shell:build:  modules by path ../../../node_modules/ 3.57 MiB 245 modules
28
+ @openmrs/esm-app-shell:build:  modules by path ../../framework/ 289 KiB (javascript) 665 KiB (css/mini-extract) 101 modules
29
+ @openmrs/esm-app-shell:build:  provide-module modules 420 bytes
30
+ @openmrs/esm-app-shell:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
31
+ @openmrs/esm-app-shell:build:  + 8 modules
32
+ @openmrs/esm-app-shell:build:  consume-shared-module modules 420 bytes
33
+ @openmrs/esm-app-shell:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
34
+ @openmrs/esm-app-shell:build:  + 8 modules
35
+ @openmrs/esm-app-shell:build:  modules by path ./ 110 KiB
36
+ @openmrs/esm-app-shell:build:  modules by path ./src/*.ts 107 KiB 2 modules
37
+ @openmrs/esm-app-shell:build:  + 2 modules
38
+ @openmrs/esm-app-shell:build: 
39
+ @openmrs/esm-app-shell:build: LOG from InjectManifest
40
+ @openmrs/esm-app-shell:build: <i> The service worker at service-worker.js will precache
41
+ @openmrs/esm-app-shell:build: <i>  189 URLs, totaling 4.47 MB.
42
+ @openmrs/esm-app-shell:build: 
43
+ @openmrs/esm-app-shell:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
44
+ @openmrs/esm-app-shell:build: This can impact web performance.
45
+ @openmrs/esm-app-shell:build: Assets:
46
+ @openmrs/esm-app-shell:build:  openmrs.css (659 KiB)
47
+ @openmrs/esm-app-shell:build:  openmrs.js (1.2 MiB)
48
+ @openmrs/esm-app-shell:build: 
49
+ @openmrs/esm-app-shell:build: WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
50
+ @openmrs/esm-app-shell:build: Entrypoints:
51
+ @openmrs/esm-app-shell:build:  main (1.84 MiB)
52
+ @openmrs/esm-app-shell:build:  openmrs.css
53
+ @openmrs/esm-app-shell:build:  openmrs.js
54
+ @openmrs/esm-app-shell:build: 
55
+ @openmrs/esm-app-shell:build: 
56
+ @openmrs/esm-app-shell:build: webpack 5.74.0 compiled with 2 warnings in 143472 ms
57
+ @openmrs/esm-app-shell:build: 
58
+ @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.3-pre.452 build:development
59
+ @openmrs/esm-app-shell:build: > cross-env OMRS_OFFLINE="enable" NODE_ENV="development" webpack --mode development
60
+ @openmrs/esm-app-shell:build: 
61
+ @openmrs/esm-app-shell:build: (node:3192) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
62
+ @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
63
+ @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
64
+ @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
65
+ @openmrs/esm-app-shell:build: (Use `node --trace-deprecation ...` to show where the warning was created)
66
+ @openmrs/esm-app-shell:build: assets by chunk 2.4 MiB (auxiliary name: main)
67
+ @openmrs/esm-app-shell:build:  assets by path *.woff 1.35 MiB 90 assets
68
+ @openmrs/esm-app-shell:build:  assets by path *.woff2 1.04 MiB 90 assets
69
+ @openmrs/esm-app-shell:build: assets by path *.png 64.8 KiB
70
+ @openmrs/esm-app-shell:build:  asset logo-512.png 15.5 KiB [emitted] [from: src/assets/logo-512.png] [copied]
71
+ @openmrs/esm-app-shell:build:  asset icon_512x512.7163efb26df832de513bc58d925ea22e.png 13.9 KiB [emitted]
72
+ @openmrs/esm-app-shell:build:  + 6 assets
73
+ @openmrs/esm-app-shell:build: assets by path *.js 24.1 MiB
74
+ @openmrs/esm-app-shell:build:  asset openmrs.js 22.7 MiB [emitted] (name: main)
75
+ @openmrs/esm-app-shell:build:  asset service-worker.js 1.38 MiB [emitted]
76
+ @openmrs/esm-app-shell:build:  asset d3c6a54d292b7c23f8fb.js 11.5 KiB [emitted] [immutable]
77
+ @openmrs/esm-app-shell:build: asset index.html 3.19 KiB [emitted]
78
+ @openmrs/esm-app-shell:build: asset logo.svg 1.33 KiB [emitted] [from: src/assets/logo.svg] [copied]
79
+ @openmrs/esm-app-shell:build: asset manifest.c61e464ba60302bdc2442acdd49954f1.json 1.2 KiB [emitted]
80
+ @openmrs/esm-app-shell:build: asset favicon.ico 1.12 KiB [emitted] [from: src/assets/favicon.ico] [copied]
81
+ @openmrs/esm-app-shell:build: orphan modules 1.03 MiB [orphan] 418 modules
82
+ @openmrs/esm-app-shell:build: runtime modules 21.8 KiB 14 modules
83
+ @openmrs/esm-app-shell:build: javascript modules 6.43 MiB 951 modules
84
+ @openmrs/esm-app-shell:build: asset modules 40.1 KiB (javascript) 2.4 MiB (asset)
85
+ @openmrs/esm-app-shell:build:  modules by path ../../framework/esm-styleguide/dist/ 7.38 KiB (javascript) 2.4 MiB (asset) 180 modules
86
+ @openmrs/esm-app-shell:build:  modules by path ../../framework/esm-styleguide/src/ 32.7 KiB 27 modules
87
+ @openmrs/esm-app-shell:build: provide-module modules 420 bytes
88
+ @openmrs/esm-app-shell:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
89
+ @openmrs/esm-app-shell:build:  + 8 modules
90
+ @openmrs/esm-app-shell:build: consume-shared-module modules 420 bytes
91
+ @openmrs/esm-app-shell:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
92
+ @openmrs/esm-app-shell:build:  + 8 modules
93
+ @openmrs/esm-app-shell:build: 
94
+ @openmrs/esm-app-shell:build: LOG from InjectManifest
95
+ @openmrs/esm-app-shell:build: <i> The service worker at service-worker.js will precache
96
+ @openmrs/esm-app-shell:build: <i>  187 URLs, totaling 26.3 MB.
97
+ @openmrs/esm-app-shell:build: 
98
+ @openmrs/esm-app-shell:build: webpack 5.74.0 compiled successfully in 16865 ms
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[]).push([[533],{8533:(e,t,r)=>{r.r(t),r.d(t,{Breadcrumbs:()=>y,CustomBreadcrumbItem:()=>v,default:()=>w});var n=r(7959),s=r.n(n),a=r(3866),o=r(7446),i=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&b(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&b(e,r,t[r]);return e},d=(e,t)=>c(e,l(t));function g(e,t){const r=[...t];return e.replace(/:([A-Za-z0-9_]+)/g,(e=>{var t;return null!=(t=r.shift())?t:e}))}function h(e,t){const r=null==t?void 0:t.exec(e);if(r){const[,...e]=r;return e}{const r=e.split("/");if(r.pop(),r.length>1)return h(r.join("/"),t)}return[]}const v=({breadcrumbRegistration:e,params:t})=>{const[r,i]=(0,n.useState)("");return(0,n.useEffect)((()=>{"function"==typeof e.settings.title?Promise.resolve(e.settings.title(t)).then((e=>i(e))):i(e.settings.title)}),[e,t]),s().createElement(a.BreadcrumbItem,{key:e.settings.path},s().createElement(o.ConfigurableLink,{to:g(e.settings.path,t)},r||s().createElement(a.InlineLoading,null)))},y=()=>{const[e,t]=(0,n.useState)(location.pathname),r=(0,o.getBreadcrumbsFor)(e),i=r[r.length-1],c=h(e,null==i?void 0:i.matcher);return(0,n.useEffect)((()=>{const e=()=>t(location.pathname);return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),r.length>4&&r.splice(1,r.length-3,d(f({},r[1]),{settings:d(f({},r[1].settings),{title:"..."})})),s().createElement(a.Breadcrumb,{className:"breadcrumbs-container"},r.map(((e,t)=>s().createElement(v,{key:`breadcrumb-item-${t}`,breadcrumbRegistration:e,params:c}))))},w=y}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[]).push([[533],{8533:(e,t,r)=>{r.r(t),r.d(t,{Breadcrumbs:()=>y,CustomBreadcrumbItem:()=>v,default:()=>w});var n=r(7959),s=r.n(n),a=r(3866),o=r(1880),i=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&b(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&b(e,r,t[r]);return e},d=(e,t)=>c(e,l(t));function g(e,t){const r=[...t];return e.replace(/:([A-Za-z0-9_]+)/g,(e=>{var t;return null!=(t=r.shift())?t:e}))}function h(e,t){const r=null==t?void 0:t.exec(e);if(r){const[,...e]=r;return e}{const r=e.split("/");if(r.pop(),r.length>1)return h(r.join("/"),t)}return[]}const v=({breadcrumbRegistration:e,params:t})=>{const[r,i]=(0,n.useState)("");return(0,n.useEffect)((()=>{"function"==typeof e.settings.title?Promise.resolve(e.settings.title(t)).then((e=>i(e))):i(e.settings.title)}),[e,t]),s().createElement(a.BreadcrumbItem,{key:e.settings.path},s().createElement(o.ConfigurableLink,{to:g(e.settings.path,t)},r||s().createElement(a.InlineLoading,null)))},y=()=>{const[e,t]=(0,n.useState)(location.pathname),r=(0,o.getBreadcrumbsFor)(e),i=r[r.length-1],c=h(e,null==i?void 0:i.matcher);return(0,n.useEffect)((()=>{const e=()=>t(location.pathname);return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),r.length>4&&r.splice(1,r.length-3,d(f({},r[1]),{settings:d(f({},r[1].settings),{title:"..."})})),s().createElement(a.Breadcrumb,{className:"breadcrumbs-container"},r.map(((e,t)=>s().createElement(v,{key:`breadcrumb-item-${t}`,breadcrumbRegistration:e,params:c}))))},w=y}}]);