@ilo-org/react 0.27.0 → 0.28.0

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.
Files changed (105) hide show
  1. package/README.md +74 -119
  2. package/lib/cjs/_store/{AudioPlayer-chunk-BgWE3wR1.js → AudioPlayer-chunk-B7JUo7j6.js} +1 -1
  3. package/lib/cjs/_store/{AudioPlayer-entry-DUimYc-F.js → AudioPlayer-entry-UGBBs6Ne.js} +1 -1
  4. package/lib/cjs/_store/{Button-chunk-i7Mx1CWw.js → Button-chunk-DaJZujL8.js} +1 -1
  5. package/lib/cjs/_store/{Button-entry-B6i_56pN.js → Button-entry-D3W25SBk.js} +1 -1
  6. package/lib/cjs/_store/{Callout-chunk-D0qGb3NA.js → Callout-chunk-BdeAvp9z.js} +1 -1
  7. package/lib/cjs/_store/{Callout-entry-B9JKkfjT.js → Callout-entry-DfrEmZB7.js} +1 -1
  8. package/lib/cjs/_store/{CardGroup-chunk-CRgPaqdt.js → CardGroup-chunk-D_hGpZ5E.js} +1 -1
  9. package/lib/cjs/_store/{Cards-entry-C6nZgRnw.js → Cards-entry-DY2D-7_i.js} +1 -1
  10. package/lib/cjs/_store/{Footer-chunk-F6FWK20F.js → Footer-chunk-DvVEyN5x.js} +1 -1
  11. package/lib/cjs/_store/{Footer-entry-B0EMXAZe.js → Footer-entry-lrTkrnhr.js} +1 -1
  12. package/lib/cjs/_store/GlobalProvider-chunk-BInwj8Vo.js +1 -0
  13. package/lib/cjs/_store/{GlobalProvider-entry-D4VUJVT5.js → GlobalProvider-entry-9ibi3MG-.js} +1 -1
  14. package/lib/cjs/_store/Icon-chunk-DLR0d6ii.js +1 -0
  15. package/lib/cjs/_store/{Icon-entry-Cqw6gQ6f.js → Icon-entry-fSGSGCKG.js} +1 -1
  16. package/lib/cjs/_store/{MainNav-chunk-7kTe_YZl.js → MainNav-chunk-C9rtuWNB.js} +1 -1
  17. package/lib/cjs/_store/{Nav-entry-DExtgUq0.js → Nav-entry-QU2bhLkT.js} +1 -1
  18. package/lib/cjs/_store/Notification-chunk-CEm56fOA.js +1 -0
  19. package/lib/cjs/_store/{Notification-entry-AczbFeuC.js → Notification-entry-CHMbRdAy.js} +1 -1
  20. package/lib/cjs/_store/{PhotoGallery-entry-oG4Az7b5.js → PhotoGallery-entry-CtMRmNGc.js} +1 -1
  21. package/lib/cjs/_store/{Profile-chunk-DGzYI2Ij.js → Profile-chunk-Bnn1-Z78.js} +1 -1
  22. package/lib/cjs/_store/{Profile-entry-CyGRHY4H.js → Profile-entry-cAqvjXWr.js} +1 -1
  23. package/lib/cjs/_store/{SearchField-chunk-C8dCtv7o.js → SearchField-chunk-CJ99dGc4.js} +1 -1
  24. package/lib/cjs/_store/{SearchField-entry-iFWSYkgV.js → SearchField-entry-iEDyX5PR.js} +1 -1
  25. package/lib/cjs/_store/{Tabs-chunk-_l0V0Dy0.js → Tabs-chunk-DXWL7rh9.js} +1 -1
  26. package/lib/cjs/_store/{Tabs-entry-Cf1mUwmV.js → Tabs-entry-DDJB-pt5.js} +1 -1
  27. package/lib/cjs/_store/{Tag-chunk-DesRph1K.js → Tag-chunk-RApwQiSR.js} +1 -1
  28. package/lib/cjs/_store/{Tag-entry-ubHQAH--.js → Tag-entry-DmkUebqd.js} +1 -1
  29. package/lib/cjs/_store/{components-entry-ChGq9Mfa.js → components-entry-XHS0OOGY.js} +1 -1
  30. package/lib/cjs/index.js +1 -1
  31. package/lib/esm/_store/{AudioPlayer-chunk-C1ILnjha.js → AudioPlayer-chunk-bXI6JAZ7.js} +1 -1
  32. package/lib/esm/_store/AudioPlayer-entry-7-vdhoB-.js +4 -0
  33. package/lib/esm/_store/{Button-chunk-8dLLhQX7.js → Button-chunk-CQQX91Rg.js} +1 -1
  34. package/lib/esm/_store/Button-entry-BIEEKQv3.js +4 -0
  35. package/lib/esm/_store/{Callout-chunk-DwVsxKc9.js → Callout-chunk-Dgxxalpd.js} +1 -1
  36. package/lib/esm/_store/Callout-entry-Bzgq2szx.js +4 -0
  37. package/lib/esm/_store/{CardGroup-chunk-BtxfvFrZ.js → CardGroup-chunk-6cDXlMrq.js} +3 -3
  38. package/lib/esm/_store/{Cards-entry-B87QD-XE.js → Cards-entry-BC85b1gG.js} +1 -1
  39. package/lib/esm/_store/{Footer-chunk-DIcYIPfY.js → Footer-chunk-TA0qQlaw.js} +1 -1
  40. package/lib/esm/_store/Footer-entry-BoeUqJ4r.js +4 -0
  41. package/lib/esm/_store/{GlobalProvider-chunk-CkLnkRcW.js → GlobalProvider-chunk-dOxjd-fn.js} +3 -5
  42. package/lib/esm/_store/{GlobalProvider-entry-BbUN7-Ub.js → GlobalProvider-entry-Cu1ciXGp.js} +1 -1
  43. package/lib/esm/_store/{Icon-chunk-vcBEV-Wk.js → Icon-chunk-DEroxoA_.js} +1492 -1492
  44. package/lib/esm/_store/Icon-entry-C0HVgIvr.js +4 -0
  45. package/lib/esm/_store/{MainNav-chunk-Be68xvpH.js → MainNav-chunk-CmtN7aWA.js} +1 -1
  46. package/lib/esm/_store/Nav-entry-Dx2uLUdE.js +5 -0
  47. package/lib/esm/_store/{Notification-chunk-ChtPyASj.js → Notification-chunk-CYe5VThf.js} +27 -23
  48. package/lib/esm/_store/Notification-entry-0QG_RMHv.js +4 -0
  49. package/lib/esm/_store/{PhotoGallery-entry-DzssiE2H.js → PhotoGallery-entry-DSrDxazq.js} +1 -1
  50. package/lib/esm/_store/{Profile-chunk-S7Qd4zNr.js → Profile-chunk-CK4F2KXo.js} +1 -1
  51. package/lib/esm/_store/Profile-entry-B8RZZVHU.js +4 -0
  52. package/lib/esm/_store/{SearchField-chunk-662yU8Z7.js → SearchField-chunk-Ky0ihQH5.js} +5 -5
  53. package/lib/esm/_store/SearchField-entry-CH96-gn7.js +4 -0
  54. package/lib/esm/_store/{Tabs-chunk-rSUtyafl.js → Tabs-chunk-DrfQDZZS.js} +1 -1
  55. package/lib/esm/_store/Tabs-entry-DKd5wPgp.js +4 -0
  56. package/lib/esm/_store/{Tag-chunk-BgilM5Hj.js → Tag-chunk-DNiuZc2U.js} +1 -1
  57. package/lib/esm/_store/{Tag-entry-CzbjOVIK.js → Tag-entry-C77mHJN3.js} +2 -2
  58. package/lib/esm/_store/{components-entry-BtxPnvKg.js → components-entry-CBMbZZQP.js} +13 -13
  59. package/lib/esm/index.js +13 -13
  60. package/lib/styles/components/container.css +1 -1
  61. package/lib/styles/components/contextmenu.css +1 -1
  62. package/lib/styles/components/factlistcard.css +1 -1
  63. package/lib/styles/components/fieldset.css +1 -1
  64. package/lib/styles/components/file-upload.css +1 -1
  65. package/lib/styles/components/hero.css +1 -1
  66. package/lib/styles/components/herocard.css +1 -1
  67. package/lib/styles/components/input.css +1 -1
  68. package/lib/styles/components/linklist.css +1 -1
  69. package/lib/styles/components/logo.css +1 -1
  70. package/lib/styles/components/logogrid.css +1 -1
  71. package/lib/styles/components/modal.css +1 -1
  72. package/lib/styles/components/navigation.css +1 -1
  73. package/lib/styles/components/notification.css +1 -1
  74. package/lib/styles/components/radio.css +1 -1
  75. package/lib/styles/components/readmore.css +1 -1
  76. package/lib/styles/components/searchfield.css +1 -1
  77. package/lib/styles/components/statcard.css +1 -1
  78. package/lib/styles/components/table.css +1 -1
  79. package/lib/styles/components/tableofcontents.css +1 -1
  80. package/lib/styles/components/textarea.css +1 -1
  81. package/lib/styles/components/textinput.css +1 -1
  82. package/lib/styles/components/toggle.css +1 -1
  83. package/lib/styles/components/tooltip.css +1 -1
  84. package/lib/styles/components/video.css +1 -1
  85. package/lib/styles/global.css +1 -1
  86. package/lib/styles/global.css.map +1 -1
  87. package/lib/styles/index.css +7 -9
  88. package/lib/styles/index.css.map +1 -1
  89. package/lib/styles/monorepo.css +7 -9
  90. package/lib/styles/monorepo.css.map +1 -1
  91. package/lib/types/components/SearchField/SearchField.props.d.ts +1 -1
  92. package/package.json +22 -20
  93. package/lib/cjs/_store/GlobalProvider-chunk-BmUbDojc.js +0 -1
  94. package/lib/cjs/_store/Icon-chunk-BzII57By.js +0 -1
  95. package/lib/cjs/_store/Notification-chunk-CWlncrg0.js +0 -1
  96. package/lib/esm/_store/AudioPlayer-entry-DihoEAxT.js +0 -4
  97. package/lib/esm/_store/Button-entry--gNnIOMu.js +0 -4
  98. package/lib/esm/_store/Callout-entry-Be1qqjRK.js +0 -4
  99. package/lib/esm/_store/Footer-entry-7mEwDfWZ.js +0 -4
  100. package/lib/esm/_store/Icon-entry-DdsYgI2S.js +0 -4
  101. package/lib/esm/_store/Nav-entry-Cvh13_5P.js +0 -5
  102. package/lib/esm/_store/Notification-entry-BWJ8Jj_L.js +0 -4
  103. package/lib/esm/_store/Profile-entry-BaZd_1MC.js +0 -4
  104. package/lib/esm/_store/SearchField-entry-Dbp8Z4ak.js +0 -4
  105. package/lib/esm/_store/Tabs-entry-Dus4wyx1.js +0 -4
package/README.md CHANGED
@@ -2,187 +2,142 @@
2
2
 
3
3
  This package provides the implementation of the Design System using [React](https://reactjs.org). It also includes a [Storybook](https://storybook.js.org/) project for documentation and development of the components in the system. It has dependencies on the following other @ilo-org packages:
4
4
 
5
- - [@ilo-org/themes](./packages/themes)
6
- - [@ilo-org/fonts](./packages/fonts)
7
- - [@ilo-org/styles](./packages/styles)
8
- - [@ilo-org/icons](./packages/icons)
9
- - [@ilo-org/icons-react](./packages/icons-react)
5
+ - [@ilo-org/fonts](../fonts)
6
+ - [@ilo-org/styles](../styles)
7
+ - [@ilo-org/icons](../icons)
8
+ - [@ilo-org/icons-react](../icons-react)
10
9
 
11
- ## Installation
10
+ ## Installation and Usage
12
11
 
13
- To install
12
+ For detailed instructions on installing and using this package in your project, please visit the [Storybook documentation](https://react.ui.ilo.org). The Storybook includes:
14
13
 
15
- ```bash
16
- npm i @ilo-org/react
17
- ```
14
+ - Installation instructions
15
+ - Component documentation
16
+ - Usage examples
17
+ - API references
18
+ - Code samples
18
19
 
19
- To start storybook
20
+ ## Styles and Fonts
20
21
 
21
- ```bash
22
- pnpm storybook
23
- ```
22
+ The `@ilo-org/react` package includes styles and fonts, so you don't need to install `@ilo-org/styles` or `@ilo-org/fonts` separately.
24
23
 
25
- To build storybook
24
+ ### Importing Styles
26
25
 
27
- ```bash
28
- pnpm build:storybook
29
- ```
26
+ You can import styles directly from the React package:
30
27
 
31
- To test formatting
28
+ ```javascript
29
+ // Import all styles
30
+ import "@ilo-org/react/styles/index.css";
32
31
 
33
- ```bash
34
- pnpm format
32
+ // Or import individual component styles
33
+ import "@ilo-org/react/styles/components/button.css";
35
34
  ```
36
35
 
37
- To test formatting and fix errors
36
+ Alternatively, if you're using a bundler that supports CSS imports, you can reference the styles in your HTML:
38
37
 
39
- ```bash
40
- pnpm format:fix
38
+ ```html
39
+ <link
40
+ rel="stylesheet"
41
+ href="node_modules/@ilo-org/react/lib/styles/index.css"
42
+ />
41
43
  ```
42
44
 
43
- To lint
44
-
45
- ```bash
46
- pnpm lint
47
- ```
45
+ ### Importing Fonts
48
46
 
49
- To test formatting and fix errors
47
+ Fonts are included as dependencies and can be imported using your bundler:
50
48
 
51
- ```bash
52
- pnpm lint:fix
49
+ ```javascript
50
+ // JavaScript/TypeScript (with bundler support)
51
+ import "@ilo-org/fonts";
53
52
  ```
54
53
 
55
- ## Questions and Feedback
56
-
57
- (TBD)
58
-
59
- ## Accessibility Standards
60
-
61
- (TBD)
62
-
63
- ## Contributing
64
-
65
- ILO Design System is an open-source project and we welcome your contributions! Before submitting a pull request, please take a moment to review the following guidelines.
66
-
67
- ### Branches
68
-
69
- | Branch | Purpose |
70
- | --------- | ---------------------------------- |
71
- | `main` | The latest version of all packages |
72
- | `develop` | The next release of all packages |
73
-
74
- ### Contribution workflow
75
-
76
- 1. Fork and clone the repo
77
- 2. Create a new branch from the `develop` branch
78
- 3. Make your changes and [add a changeset](#versioning) identifying the changes and affected packages
79
- 4. Push your branch to the forked version of the repo
80
- 5. Open a pull request back to the `develop` branch of the main repo
81
-
82
- ### Versioning
83
-
84
- The project uses [changesets](https://github.com/changesets/changesets) to manage package versioning. All pull requests that will affect the project's semantic versioning must include a changest.
54
+ ```scss
55
+ // SCSS
56
+ @import "~@ilo-org/fonts";
57
+ ```
85
58
 
86
- See more information on [how to add a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
59
+ The fonts package is automatically installed as a dependency of `@ilo-org/react`, so you don't need to add it to your `package.json`.
87
60
 
88
- ### Conventions
61
+ ## Development
89
62
 
90
- Contributions should respect the following conventions for branch names, commit messages and pull request descriptions
63
+ This section covers commands for developing and working with the React package locally. The commands provided should be run from the root of the repository.
91
64
 
92
- #### Commits
65
+ ### Prerequisites
93
66
 
94
- Commits should follow [Angular Commit Message Guidelines](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#commit).
67
+ Use [nvm](https://github.com/nvm-sh/nvm) to make sure you have the correct version of node installed.
95
68
 
96
- ```
97
- <type>(<scope>): <subject>
69
+ ```bash
70
+ nvm use
98
71
  ```
99
72
 
100
- Examples:
73
+ Install [pnpm](https://pnpm.io/). Check the [package.json](../../package.json) to get the correct version.
101
74
 
75
+ ```bash
76
+ npm i -g pnpm@9.14.4
102
77
  ```
103
- fix(react): change button color on hover
104
- feat(twig): add button component
105
- ci(github): add release workflow
106
- perf(react): improve modal animations
107
- ```
108
-
109
- #### Types
110
-
111
- - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
112
- - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
113
- - docs: Documentation only changes
114
- - feat: A new feature
115
- - fix: A bug fix
116
- - perf: A code change that improves performance
117
- - refactor: A code change that neither fixes a bug nor adds a feature
118
- - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
119
- - test: Adding missing tests or correcting existing tests
120
-
121
- #### Scopes
122
-
123
- This should be a package name or an aspect of the project's configuration.
124
-
125
- ### Branches
126
78
 
127
- Branch names should broadly mirror the same convention as commits.
79
+ ### Storybook
128
80
 
129
- Examples:
81
+ Start Storybook in development mode:
130
82
 
131
- ```
132
- feat/react/modal-wrapper
133
- fix/twig/modal-wrapper
83
+ ```bash
84
+ pnpm react:dev:docs
134
85
  ```
135
86
 
136
- ### Pull requests
87
+ Build Storybook for production:
137
88
 
138
- Pull requests should include a descriptive name and detailed explanation of what merging the pull request will accomplish. Authors should make sure to reference Github issues that the the pull request will fix or affect.
89
+ ```bash
90
+ pnpm react:build:docs
91
+ ```
139
92
 
140
- ## Building the project
93
+ ### Building
141
94
 
142
- Use [nvm](https://github.com/nvm-sh/nvm) to make sure you have the correct version of node installed.
95
+ Build the library:
143
96
 
144
97
  ```bash
145
- nvm use
98
+ pnpm react:build:lib
146
99
  ```
147
100
 
148
- Install [pnpm](https://pnpm.io/).
101
+ Build the library in watch mode:
149
102
 
150
103
  ```bash
151
- npm i -g pnpm
104
+ pnpm --filter react dev:lib
152
105
  ```
153
106
 
154
- Install dependencies
107
+ ### Code Quality
108
+
109
+ Lint code:
155
110
 
156
111
  ```bash
157
- pnpm recursive install
112
+ pnpm --filter react lint
158
113
  ```
159
114
 
160
- Build all packages.
115
+ Lint code and fix errors:
161
116
 
162
117
  ```bash
163
- pnpm build:all
118
+ pnpm --filter react lint:fix
164
119
  ```
165
120
 
166
- Start React storybook
121
+ Check TypeScript types:
167
122
 
168
123
  ```bash
169
- pnpm start:react-storybook
124
+ pnpm --filter react check
170
125
  ```
171
126
 
172
- Start Twig storybook
127
+ ### Testing
128
+
129
+ Run tests:
173
130
 
174
131
  ```bash
175
- pnpm start:twig-storybook
132
+ pnpm --filter react test
176
133
  ```
177
134
 
178
- Check types
135
+ Run tests with UI:
179
136
 
180
137
  ```bash
181
- pnpm check:types
138
+ pnpm --filter react test:ui
182
139
  ```
183
140
 
184
- Run all tests
141
+ ## Contributing
185
142
 
186
- ```bash
187
- pnpm test:all
188
- ```
143
+ For contribution guidelines, please see the [Contributing Guide](../../contributing.md).
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),b=require("./index-chunk-Cxg31gtu.js"),m=require("react"),o=require("./Icon-chunk-BzII57By.js"),L=require("./useGlobalSettings-chunk-Cd48T6lS.js"),M={currentTime:0,totalTime:0,playing:!1,volume:1},_=(n,s)=>{switch(s.type){case"INITIALIZE":return{...n,totalTime:s.totalTime};case"SET_PLAYING":return{...n,playing:s.playing};case"UPDATE_TIME":return{...n,currentTime:s.time};case"SEEK_TO":return{...n,currentTime:s.time};case"SET_VOLUME":return{...n,volume:s.volume};default:return n}},p=n=>{const s=Math.floor(n/60).toString().padStart(2,"0"),u=Math.floor(n%60).toString().padStart(2,"0");return`${s}:${u}`},A=(n,s)=>s===0?0:n/s*100,C=({className:n,name:s,programme:u,creator:T,src:d,onEnded:g})=>{const{prefix:y}=L.useGlobalSettings(),a=`${y}--audio-player`,h=b.classNames(a,n),[t,l]=m.useReducer(_,M),e=m.useRef(null),v=()=>{e.current&&(t.playing?(e.current.pause(),l({type:"SET_PLAYING",playing:!1})):(e.current.play(),l({type:"SET_PLAYING",playing:!0})))},x=()=>{l({type:"SET_PLAYING",playing:!0})},N=()=>{l({type:"SET_PLAYING",playing:!1})},f=()=>{e.current&&l({type:"INITIALIZE",totalTime:e.current.duration})},j=()=>{e.current&&l({type:"UPDATE_TIME",time:e.current.currentTime})},E=()=>{e.current&&(e.current.currentTime=Math.min(e.current.currentTime+15,t.totalTime))},S=()=>{e.current&&(e.current.currentTime=Math.max(e.current.currentTime-15,0))},$=()=>{e.current&&(t.volume===0?(e.current.volume=1,l({type:"SET_VOLUME",volume:1})):(e.current.volume=0,l({type:"SET_VOLUME",volume:0})))},I=i=>{if(e.current){const c=i.currentTarget.getBoundingClientRect(),k=(i.clientX-c.left)/c.width*t.totalTime;e.current.currentTime=k}},P=i=>{const c=Number(i.target.value)/100;e.current&&(e.current.volume=c),l({type:"SET_VOLUME",volume:c})};return m.useEffect(()=>{e.current&&(e.current.currentTime=0,l({type:"UPDATE_TIME",time:0}),t.playing&&e.current.play(),l({type:"SET_PLAYING",playing:!e.current.paused}))},[d]),r.jsxs("div",{className:h,children:[r.jsx("div",{role:"progressbar",tabIndex:-1,"aria-valuenow":t.currentTime,"aria-valuemin":0,"aria-valuemax":t.totalTime,className:`${a}--progress-bar`,onClick:I,children:r.jsx("div",{className:`${a}--progress-complete`,style:{"--progress":`${A(t.currentTime,t.totalTime)}%`}})}),r.jsxs("div",{className:`${a}--body`,children:[r.jsxs("div",{className:`${a}--left`,children:[r.jsx("p",{className:`${a}--track-name`,children:s}),r.jsxs("div",{className:`${a}--track-details`,children:[r.jsx("span",{className:`${a}--track-programme`,children:u}),r.jsx("span",{className:`${a}--track-creator`,children:T})]})]}),r.jsxs("div",{className:`${a}--center`,children:[r.jsx("button",{className:`${a}--skip-button`,onClick:S,"aria-label":"Rewind 15 seconds",children:r.jsx(o.Icon,{name:"SkipBackward15"})}),r.jsx("button",{className:`${a}--play-button`,"aria-label":t.playing?"Pause":"Play",onClick:v,children:r.jsx(o.Icon,{className:`${a}--play-icon`,name:t.playing?"Pause":"TriangleRight",size:32})}),r.jsx("button",{className:`${a}--skip-button`,onClick:E,"aria-label":"Fast forward 15 seconds",children:r.jsx(o.Icon,{name:"SkipForward15"})})]}),r.jsxs("div",{className:`${a}--right`,children:[r.jsxs("div",{className:`${a}--duration`,children:[r.jsx("p",{className:`${a}--duration-played`,children:p(t.currentTime)}),r.jsx("p",{className:`${a}--duration-total`,children:p(t.totalTime)})]}),r.jsx("div",{className:`${a}--separator`}),r.jsx("button",{className:`${a}--volume-icon`,"aria-label":t.volume===0?"Unmute":"Mute",onClick:$,children:r.jsx(o.Icon,{name:t.volume===0?"SoundOff":"SoundOn"})}),r.jsx("input",{type:"range",className:`${a}--volume-slider`,style:{"--progress":`${t.volume*100}%`},value:t.volume*100,onChange:P,min:0,max:100,step:10})]})]}),r.jsx("audio",{ref:e,src:d,preload:"metadata",onLoadedMetadata:f,onTimeUpdate:j,onPlay:x,onPause:N,onEnded:g})]})};exports.AudioPlayer=C;
1
+ "use strict";const r=require("react/jsx-runtime"),b=require("./index-chunk-Cxg31gtu.js"),m=require("react"),o=require("./Icon-chunk-DLR0d6ii.js"),L=require("./useGlobalSettings-chunk-Cd48T6lS.js"),M={currentTime:0,totalTime:0,playing:!1,volume:1},_=(n,s)=>{switch(s.type){case"INITIALIZE":return{...n,totalTime:s.totalTime};case"SET_PLAYING":return{...n,playing:s.playing};case"UPDATE_TIME":return{...n,currentTime:s.time};case"SEEK_TO":return{...n,currentTime:s.time};case"SET_VOLUME":return{...n,volume:s.volume};default:return n}},p=n=>{const s=Math.floor(n/60).toString().padStart(2,"0"),u=Math.floor(n%60).toString().padStart(2,"0");return`${s}:${u}`},A=(n,s)=>s===0?0:n/s*100,C=({className:n,name:s,programme:u,creator:T,src:d,onEnded:g})=>{const{prefix:y}=L.useGlobalSettings(),a=`${y}--audio-player`,h=b.classNames(a,n),[t,l]=m.useReducer(_,M),e=m.useRef(null),v=()=>{e.current&&(t.playing?(e.current.pause(),l({type:"SET_PLAYING",playing:!1})):(e.current.play(),l({type:"SET_PLAYING",playing:!0})))},x=()=>{l({type:"SET_PLAYING",playing:!0})},N=()=>{l({type:"SET_PLAYING",playing:!1})},f=()=>{e.current&&l({type:"INITIALIZE",totalTime:e.current.duration})},j=()=>{e.current&&l({type:"UPDATE_TIME",time:e.current.currentTime})},E=()=>{e.current&&(e.current.currentTime=Math.min(e.current.currentTime+15,t.totalTime))},S=()=>{e.current&&(e.current.currentTime=Math.max(e.current.currentTime-15,0))},$=()=>{e.current&&(t.volume===0?(e.current.volume=1,l({type:"SET_VOLUME",volume:1})):(e.current.volume=0,l({type:"SET_VOLUME",volume:0})))},I=i=>{if(e.current){const c=i.currentTarget.getBoundingClientRect(),k=(i.clientX-c.left)/c.width*t.totalTime;e.current.currentTime=k}},P=i=>{const c=Number(i.target.value)/100;e.current&&(e.current.volume=c),l({type:"SET_VOLUME",volume:c})};return m.useEffect(()=>{e.current&&(e.current.currentTime=0,l({type:"UPDATE_TIME",time:0}),t.playing&&e.current.play(),l({type:"SET_PLAYING",playing:!e.current.paused}))},[d]),r.jsxs("div",{className:h,children:[r.jsx("div",{role:"progressbar",tabIndex:-1,"aria-valuenow":t.currentTime,"aria-valuemin":0,"aria-valuemax":t.totalTime,className:`${a}--progress-bar`,onClick:I,children:r.jsx("div",{className:`${a}--progress-complete`,style:{"--progress":`${A(t.currentTime,t.totalTime)}%`}})}),r.jsxs("div",{className:`${a}--body`,children:[r.jsxs("div",{className:`${a}--left`,children:[r.jsx("p",{className:`${a}--track-name`,children:s}),r.jsxs("div",{className:`${a}--track-details`,children:[r.jsx("span",{className:`${a}--track-programme`,children:u}),r.jsx("span",{className:`${a}--track-creator`,children:T})]})]}),r.jsxs("div",{className:`${a}--center`,children:[r.jsx("button",{className:`${a}--skip-button`,onClick:S,"aria-label":"Rewind 15 seconds",children:r.jsx(o.Icon,{name:"SkipBackward15"})}),r.jsx("button",{className:`${a}--play-button`,"aria-label":t.playing?"Pause":"Play",onClick:v,children:r.jsx(o.Icon,{className:`${a}--play-icon`,name:t.playing?"Pause":"TriangleRight",size:32})}),r.jsx("button",{className:`${a}--skip-button`,onClick:E,"aria-label":"Fast forward 15 seconds",children:r.jsx(o.Icon,{name:"SkipForward15"})})]}),r.jsxs("div",{className:`${a}--right`,children:[r.jsxs("div",{className:`${a}--duration`,children:[r.jsx("p",{className:`${a}--duration-played`,children:p(t.currentTime)}),r.jsx("p",{className:`${a}--duration-total`,children:p(t.totalTime)})]}),r.jsx("div",{className:`${a}--separator`}),r.jsx("button",{className:`${a}--volume-icon`,"aria-label":t.volume===0?"Unmute":"Mute",onClick:$,children:r.jsx(o.Icon,{name:t.volume===0?"SoundOff":"SoundOn"})}),r.jsx("input",{type:"range",className:`${a}--volume-slider`,style:{"--progress":`${t.volume*100}%`},value:t.volume*100,onChange:P,min:0,max:100,step:10})]})]}),r.jsx("audio",{ref:e,src:d,preload:"metadata",onLoadedMetadata:f,onTimeUpdate:j,onPlay:x,onPause:N,onEnded:g})]})};exports.AudioPlayer=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AudioPlayer-chunk-BgWE3wR1.js");exports.AudioPlayer=e.AudioPlayer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AudioPlayer-chunk-B7JUo7j6.js");exports.AudioPlayer=e.AudioPlayer;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),g=require("react"),p=require("./index-chunk-Cxg31gtu.js"),N=require("./useGlobalSettings-chunk-Cd48T6lS.js"),d=require("./Link-chunk-CP7cvvcX.js"),b=require("./Icon-chunk-BzII57By.js"),I=g.forwardRef(({children:a,className:$,disabled:x=!1,icon:t,size:n="large",type:o="primary",style:u,name:_,link:r,iconPosition:f="left",icononly:l=!1,submit:m=!1,...j},c)=>{const{prefix:q}=N.useGlobalSettings(),s=`${q}--button`,i=p.classNames($,{[s]:!0,[`${s}__${n}`]:n,[`${s}__${o}`]:o,[`${s}--icon ${s}--icon--position__${f}`]:t&&!l,[`${s}--icon ${s}--icon--only`]:t&&l});return r?e.jsxs(d.Link,{ref:c,className:i,target:r.target,url:r.url,label:r.label,style:u,children:[t&&e.jsx(b.Icon,{...t}),a]}):e.jsxs("button",{ref:c,className:i,disabled:x,style:u,name:_,...j,type:m?"submit":"button",children:[t&&e.jsx(b.Icon,{...t}),e.jsx("span",{className:"button__label",children:a})]})});exports.Button=I;
1
+ "use strict";const e=require("react/jsx-runtime"),g=require("react"),p=require("./index-chunk-Cxg31gtu.js"),N=require("./useGlobalSettings-chunk-Cd48T6lS.js"),d=require("./Link-chunk-CP7cvvcX.js"),b=require("./Icon-chunk-DLR0d6ii.js"),I=g.forwardRef(({children:a,className:$,disabled:x=!1,icon:t,size:n="large",type:o="primary",style:u,name:_,link:r,iconPosition:f="left",icononly:l=!1,submit:m=!1,...j},c)=>{const{prefix:q}=N.useGlobalSettings(),s=`${q}--button`,i=p.classNames($,{[s]:!0,[`${s}__${n}`]:n,[`${s}__${o}`]:o,[`${s}--icon ${s}--icon--position__${f}`]:t&&!l,[`${s}--icon ${s}--icon--only`]:t&&l});return r?e.jsxs(d.Link,{ref:c,className:i,target:r.target,url:r.url,label:r.label,style:u,children:[t&&e.jsx(b.Icon,{...t}),a]}):e.jsxs("button",{ref:c,className:i,disabled:x,style:u,name:_,...j,type:m?"submit":"button",children:[t&&e.jsx(b.Icon,{...t}),e.jsx("span",{className:"button__label",children:a})]})});exports.Button=I;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Button-chunk-i7Mx1CWw.js");exports.Button=t.Button;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Button-chunk-DaJZujL8.js");exports.Button=t.Button;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),_=require("./index-chunk-Cxg31gtu.js"),r=require("react"),p=require("./useGlobalSettings-chunk-Cd48T6lS.js"),g=require("./Button-chunk-i7Mx1CWw.js"),b=r.forwardRef(({className:i,copy:d,cta:l,isCollapsible:n,isOpen:u=!0,toggleOpenLabel:c="Less",toggleClosedLabel:o="More",headline:$,type:a},x)=>{const{prefix:m}=p.useGlobalSettings(),s=`${m}--callout`,[t,j]=r.useState(u),N=_.classNames(s,i,{[`${s}__${a}`]:a,[`${s}__open`]:t,[`${s}__collapse`]:n}),h=t?c:o;return e.jsxs("div",{className:N,ref:x,children:[e.jsx("div",{className:`${s}--sidebar`,children:e.jsx("span",{className:`${s}--icon ${s}--icon__alert__${a}`})}),e.jsxs("div",{className:`${s}--content`,children:[e.jsxs("div",{className:`${s}--header`,children:[e.jsx("h5",{className:`${s}--title`,children:$}),n&&e.jsxs("button",{className:`${s}--toggle`,onClick:()=>j(!t),"data-open":c,"data-closed":o,children:[e.jsx("span",{className:`${s}--button-text`,children:h}),e.jsx("span",{className:`${s}--toggle--icon`,role:"presentation"})]})]}),e.jsx("p",{className:`${s}--description`,children:d}),l&&e.jsx("div",{className:`${s}--footer`,children:e.jsx(g.Button,{type:"secondary",size:"small",link:{url:l.url,label:l.label}})})]})]})});exports.Callout=b;
1
+ "use strict";const e=require("react/jsx-runtime"),_=require("./index-chunk-Cxg31gtu.js"),r=require("react"),p=require("./useGlobalSettings-chunk-Cd48T6lS.js"),g=require("./Button-chunk-DaJZujL8.js"),b=r.forwardRef(({className:i,copy:d,cta:l,isCollapsible:n,isOpen:u=!0,toggleOpenLabel:c="Less",toggleClosedLabel:o="More",headline:$,type:a},x)=>{const{prefix:m}=p.useGlobalSettings(),s=`${m}--callout`,[t,j]=r.useState(u),N=_.classNames(s,i,{[`${s}__${a}`]:a,[`${s}__open`]:t,[`${s}__collapse`]:n}),h=t?c:o;return e.jsxs("div",{className:N,ref:x,children:[e.jsx("div",{className:`${s}--sidebar`,children:e.jsx("span",{className:`${s}--icon ${s}--icon__alert__${a}`})}),e.jsxs("div",{className:`${s}--content`,children:[e.jsxs("div",{className:`${s}--header`,children:[e.jsx("h5",{className:`${s}--title`,children:$}),n&&e.jsxs("button",{className:`${s}--toggle`,onClick:()=>j(!t),"data-open":c,"data-closed":o,children:[e.jsx("span",{className:`${s}--button-text`,children:h}),e.jsx("span",{className:`${s}--toggle--icon`,role:"presentation"})]})]}),e.jsx("p",{className:`${s}--description`,children:d}),l&&e.jsx("div",{className:`${s}--footer`,children:e.jsx(g.Button,{type:"secondary",size:"small",link:{url:l.url,label:l.label}})})]})]})});exports.Callout=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Callout-chunk-D0qGb3NA.js");exports.Callout=t.Callout;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Callout-chunk-BdeAvp9z.js");exports.Callout=t.Callout;
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),u=require("react"),j=require("./index-chunk-Cxg31gtu.js"),h=require("./useGlobalSettings-chunk-Cd48T6lS.js"),g=require("./Button-chunk-i7Mx1CWw.js"),O=require("./Link-chunk-CP7cvvcX.js"),C=require("./DynamicHeading-chunk-DJzlOgQG.js"),I=require("./LinkList-chunk-CmVHEiqZ.js"),B=require("./Profile-chunk-DGzYI2Ij.js"),P=require("./Icon-chunk-BzII57By.js"),k=require("./List-entry-31dXgvRv.js"),E=require("./Picture-chunk-CWRmIhTV.js"),V=require("./Status-chunk-CaABjeKb.js"),z=u.forwardRef(({className:d,title:a,theme:c="light",size:r="standard",color:e,intro:l,source:n,titleLevel:_="p"},o)=>{const{prefix:x}=h.useGlobalSettings(),i=`${x}--card`,$=j.classNames(`${i}--wrapper`,d),m=j.classNames(i,`${i}__type__stat`,{[`${i}__size__${String(r)}`]:r,[`${i}__theme__${c}`]:c,[`${i}__color__${e}`]:e});return s.jsx("div",{className:$,ref:o,children:s.jsx("div",{className:m,children:s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[s.jsx(C.DynamicHeading,{level:_,className:`${i}--title`,children:a}),l&&s.jsx("p",{className:`${i}--intro`,children:l}),n&&s.jsx(O.Link,{className:`${i}--source`,url:n.url,label:n.label})]})})})})}),A=({className:d,theme:a="light",size:c="standard"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d),n=j.classNames(e,`${e}__type__stat`,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a,[`${e}__loading`]:!0});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--source`})]})})})})},S=Object.assign(z,{Skeleton:A});S.displayName="StatCard";S.Skeleton.displayName="StatCard.Skeleton";const J=u.forwardRef(({className:d,title:a,size:c="standard",alignment:r,intro:e,link:l,linklist:n,image:_,titleLevel:o="p",eyebrow:x,isVideo:i,theme:$="light"},m)=>{const{prefix:N}=h.useGlobalSettings(),t=`${N}--card`,p=j.classNames(t,d,`${t}__type__multilink`,{[`${t}__align__${r}`]:r,[`${t}__size__${c}`]:c,[`${t}__isvideo`]:i,[`${t}--no-image`]:!_,[`${t}__theme__${$}`]:$});return s.jsxs("div",{className:p,ref:m,children:[l&&s.jsx("a",{className:`${t}--link`,href:l,title:a,children:s.jsx("span",{className:`${t}--link--text`,children:a})}),s.jsxs("div",{className:`${t}--wrap`,children:[_&&s.jsx("div",{className:`${t}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${t}--picture`})})}),s.jsxs("div",{className:`${t}--content`,children:[x&&s.jsx("p",{className:`${t}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${t}--title`,children:a}),_&&s.jsx("div",{className:`${t}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${t}--picture`})})}),e&&(u.isValidElement(e)?s.jsx("div",{className:`${t}--intro`,children:e}):s.jsx("p",{className:`${t}--intro`,children:e})),n&&s.jsx(I.LinkList,{...n})]})]})]})}),K=({className:d,size:a="standard",alignment:c,theme:r="light"})=>{const{prefix:e}=h.useGlobalSettings(),l=`${e}--card`,n=j.classNames(l,d,`${l}__type__multilink`,{[`${l}__align__${c}`]:c,[`${l}__size__${a}`]:a,[`${l}__theme__${r}`]:r});return s.jsx("div",{className:n,children:s.jsxs("div",{className:`${l}--wrap`,children:[s.jsx("div",{className:`${l}--skeleton--column-image`}),s.jsxs("div",{className:`${l}--content`,children:[s.jsx("div",{className:`${l}--skeleton--eyebrow`}),s.jsx("div",{className:`${l}--skeleton--title-1`}),s.jsx("div",{className:`${l}--skeleton--title-2`}),s.jsx("div",{className:`${l}--skeleton--row-image`}),s.jsx("div",{className:`${l}--skeleton--intro-1`}),s.jsx("div",{className:`${l}--skeleton--intro-2`}),s.jsx("div",{className:`${l}--skeleton--intro-3`}),s.jsx("div",{className:`${l}--skeleton--intro-4`})]})]})})},y=Object.assign(J,{Skeleton:K});y.displayName="MultiLinkCard";y.Skeleton.displayName="MultiLinkCard.Skeleton";const Q=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,profile:l,link:n,titleLevel:_="p",eyebrow:o},x)=>{const{prefix:i}=h.useGlobalSettings(),$=`${i}--card`,m=j.classNames(`${$}--wrapper`,d),N=j.classNames($,`${$}__type__text`,{[`${$}__size__${String(r)}`]:r,[`${$}__theme__${c}`]:c});return s.jsx("div",{className:m,ref:x,children:s.jsxs("div",{className:N,children:[s.jsx("a",{className:`${$}--link`,href:n,title:a,children:s.jsx("span",{className:`${$}--link--text`,children:a})}),s.jsx("div",{className:`${$}--wrap`,children:s.jsxs("div",{className:`${$}--content`,children:[o&&s.jsx("p",{className:`${$}--eyebrow`,children:o}),s.jsx(C.DynamicHeading,{level:_,className:`${$}--title`,children:a}),e&&s.jsx("time",{className:`${$}--date`,dateTime:e.unix,children:e.human}),l&&s.jsx(B.Profile,{avatar:l.avatar,description:l.description,link:l.link,name:l.name,role:l.role,theme:c})]})})]})})}),U=({className:d,size:a,theme:c})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d),n=j.classNames(e,`${e}__type__text`,{[`${e}__size__${String(a)}`]:a,[`${e}__theme__${c}`]:c});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`}),s.jsx("div",{className:`${e}--skeleton--profile`})]})})})})},w=Object.assign(Q,{Skeleton:U});w.displayName="TextCard";w.Skeleton.displayName="TextCard.Skeleton";const W=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",cornercut:e,intro:l,link:n,cta:_,titleLevel:o="p",eyebrow:x},i)=>{const{prefix:$}=h.useGlobalSettings(),m=`${$}--card`,N=j.classNames(`${m}--wrapper`,d,`${m}--wrapper__type__promo`,`${m}--wrapper__type__promo__size__${r}`),t=j.classNames(m,`${m}__type__promo`,{[`${m}__size__${String(r)}`]:r,[`${m}__theme__${c}`]:c,[`${m}__cornercut`]:e});return s.jsx("div",{className:N,ref:i,children:s.jsxs("div",{className:t,children:[s.jsx("a",{className:`${m}--link`,href:n,title:a,children:s.jsx("span",{className:`${m}--link--text`,children:a})}),s.jsx("div",{className:`${m}--wrap`,children:s.jsxs("div",{className:`${m}--content`,children:[x&&s.jsx("p",{className:`${m}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${m}--title`,children:a}),l&&s.jsx("p",{className:`${m}--intro`,children:l}),(_==null?void 0:_.label)&&s.jsx("div",{className:`${m}--cta`,children:s.jsx(g.Button,{link:{url:_.url,label:_.label},size:"medium",type:"primary"})})]})})]})})}),X=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d,`${e}--wrapper__type__promo`,`${e}--wrapper__type__promo__size__${c}`),n=j.classNames(e,`${e}__type__promo`,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title-1`}),s.jsx("div",{className:`${e}--skeleton--title-2`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--intro-3`})]})})})},f=Object.assign(W,{Skeleton:X});f.displayName="PromoCard";f.Skeleton.displayName="PromoCard.Skeleton";const Y=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,link:l,linklist:n,image:_,titleLevel:o="p",eyebrow:x,isVideo:i},$)=>{const{prefix:m}=h.useGlobalSettings(),N=`${m}--card`,t=j.classNames(N,d,`${N}__type__feature`,{[`${N}__size__${String(r)}`]:r,[`${N}__theme__${c}`]:c,[`${N}__isvideo`]:i,[`${N}__linklist`]:n});return s.jsxs("div",{className:t,ref:$,children:[l&&s.jsx("a",{className:`${N}--link`,href:l,title:a,children:s.jsx("span",{className:`${N}--link--text`,children:a})}),s.jsxs("div",{className:`${N}--wrap`,children:[_&&s.jsx("div",{className:`${N}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${N}--picture`})})}),s.jsxs("div",{className:`${N}--content`,children:[x&&s.jsx("p",{className:`${N}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${N}--title`,children:a}),e&&s.jsx("time",{className:`${N}--date`,dateTime:e.unix,children:e.human}),n&&r==="narrow"&&s.jsx(I.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:c})]})]}),n&&(r==="wide"||r==="fluid")&&s.jsx(I.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:c})]})}),Z=({className:d,size:a,theme:c})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,d,`${e}__type__feature`,{[`${e}__size__${String(a)}`]:a,[`${e}__theme__${c}`]:c});return s.jsx("div",{className:l,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--image`}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`})]})]})})},L=Object.assign(Y,{Skeleton:Z});L.displayName="FeatureCard";L.Skeleton.displayName="FeatureCard.Skeleton";const ss=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,details:l,link:n,titleLevel:_="p",eyebrow:o,intro:x,image:i,isVideo:$=!1,linkComponent:m},N)=>{const{prefix:t}=h.useGlobalSettings(),p=`${t}--card`,v=j.classNames(p,`${p}__type__detail`,d,{[`${p}__size__${String(r)}`]:r,[`${p}__theme__${c}`]:c,[`${p}__isvideo`]:$}),R=u.createElement(m||"a",{className:`${p}--link`,href:n,title:a},s.jsx("span",{className:`${p}--link--text`,children:a}));return s.jsxs("div",{className:v,ref:N,children:[n&&R,s.jsxs("div",{className:`${p}--wrap`,children:[i&&s.jsx("div",{className:`${p}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${p}--picture`,src:i,alt:a})})}),s.jsxs("div",{className:`${p}--content`,children:[o&&s.jsx("p",{className:`${p}--eyebrow`,children:o}),a&&s.jsx(C.DynamicHeading,{level:_,className:`${p}--title`,children:a}),x&&(u.isValidElement(x)?s.jsx("div",{className:`${p}--intro`,children:x}):s.jsx("p",{className:`${p}--intro`,children:x})),e&&!l&&s.jsx("time",{className:`${p}--date`,dateTime:e.unix,children:e.human}),l&&s.jsxs("p",{className:`${p}--date-extra`,children:[s.jsx(P.Icon,{name:"TriangleRight",size:20,className:`${p}--icon-right`}),s.jsx(P.Icon,{name:"TriangleLeft",size:20,className:`${p}--icon-left`}),l]})]})]})]})}),es=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__detail`,d,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("div",{className:`${e}--skeleton--image`})}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title-1`}),s.jsx("div",{className:`${e}--skeleton--title-2`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--intro-3`}),s.jsx("div",{className:`${e}--skeleton--intro-4`}),s.jsx("div",{className:`${e}--skeleton--intro-5`})]})]})})},G=Object.assign(ss,{Skeleton:es});G.displayName="DetailCard";G.Skeleton.displayName="DetailCard.Skeleton";const as=u.forwardRef(({title:d,theme:a="light",size:c="narrow",list:r,titleLevel:e="p",className:l},n)=>{const{prefix:_}=h.useGlobalSettings(),o=`${_}--card`,x=j.classNames(o,`${o}__type__factlist`,l,{[`${o}__size__${c}`]:c,[`${o}__theme__${a}`]:a});return s.jsx("div",{className:x,ref:n,children:s.jsx("div",{className:`${o}--wrap`,children:s.jsxs("div",{className:`${o}--content`,children:[d&&s.jsx(C.DynamicHeading,{level:e,className:`${_}--card--title`,children:d}),s.jsx(k.List,{alignment:"default",ordered:"unordered",theme:a,children:r.map(i=>s.jsx(k.List.Item,{children:s.jsx("p",{children:i})},i))})]})})})}),ls=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__factlist`,d,{[`${e}__size__${c}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--title`}),s.jsxs(k.List,{alignment:"default",ordered:"unordered",theme:a,children:[s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})})]})]})})})},D=Object.assign(as,{Skeleton:ls});D.displayName="FactListCard";D.Skeleton.displayName="FactListCard.Skeleton";const ns=u.forwardRef(({theme:d="light",eyebrow:a,size:c="narrow",image:r,dataset:e,columns:l="one",className:n},_)=>{var N;const{prefix:o}=h.useGlobalSettings(),x=c==="narrow"?"one":l,i=`${o}--card`,$=j.classNames(i,`${i}__type__data`,n,{[`${i}__size__${String(c)}`]:c,[`${i}__type__data__columns__${x}`]:x,[`${i}__theme__${d}`]:d}),m=j.classNames(`${i}--content`,{[`${i}--content__with-image`]:r,[`${i}--content__no-image-with-links`]:!r&&(e==null?void 0:e.links),[`${i}--content__default`]:!r&&!(e!=null&&e.links)});return s.jsx("div",{className:$,ref:_,children:s.jsxs("div",{className:`${i}--wrap`,children:[!r&&a&&s.jsx("div",{className:`${i}--eyebrow`,children:a}),s.jsxs("div",{className:m,children:[r&&s.jsxs("div",{className:`${i}--area--image`,children:[a&&s.jsx("div",{className:`${i}--eyebrow`,children:a}),s.jsx("div",{className:`${i}--image`,children:s.jsx("picture",{children:s.jsx("img",{className:`${i}--picture`,src:r,alt:a})})})]}),(N=e==null?void 0:e.content)==null?void 0:N.items.map((t,p)=>s.jsxs("div",{className:`${i}--area--content`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:t.label}),s.jsx("p",{className:`${i}__type__data--content-copy`,children:t.copy})]},p)),(e==null?void 0:e.files)&&s.jsx("div",{className:`${i}--area--files`,children:s.jsxs("div",{className:`${i}__type__data--content-files`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.files.headline}),e.files.items.map((t,p)=>s.jsx(g.Button,{link:{url:t.url,label:t.label,target:t.target||"_self"},size:"small"},p))]})}),(e==null?void 0:e.cta)&&s.jsx("div",{className:`${i}--area--cta`,children:s.jsxs("div",{className:`${i}__type__data--content-cta`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.cta.headline}),e.cta.items.map(t=>s.jsx(g.Button,{type:"secondary",size:"small",link:{url:t.url,label:t.label,target:t.target}},t.label))]})}),(e==null?void 0:e.links)&&s.jsx("div",{className:`${i}--area--links`,children:s.jsxs("div",{className:`${i}__type__data--content-links`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.links.headline}),s.jsx("div",{className:`${i}__type__data--content-links-list`,children:e.links.items.map(t=>s.jsx(u.Fragment,{children:s.jsx(O.Link,{url:t.url,label:t.label,className:`${i}__type__data--content-link`})},t.label+t.url))})]})})]})]})})}),cs=({className:d,theme:a="light",size:c="narrow",columns:r="one"})=>{const{prefix:e}=h.useGlobalSettings(),l=c==="narrow"?"one":r,n=`${e}--card`,_=j.classNames(n,`${n}__type__data`,d,{[`${n}__size__${String(c)}`]:c,[`${n}__type__data__columns__${l}`]:l,[`${n}__theme__${a}`]:a,[`${n}__loading`]:!0}),o=`${n}--content`;return s.jsx("div",{className:_,children:s.jsx("div",{className:`${n}--wrap`,children:s.jsxs("div",{className:o,children:[s.jsxs("div",{className:`${n}--area--image`,children:[s.jsx("div",{className:`${n}--skeleton--eyebrow`}),s.jsx("div",{className:`${n}--skeleton--image`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]})]})})})},q=Object.assign(ns,{Skeleton:cs});q.displayName="DataCard";q.Skeleton.displayName="DataCard.Skeleton";const is=u.forwardRef(({className:d,theme:a="light",titleLevel:c="p",size:r="narrow",link:e,linkComponent:l,title:n,isVideo:_=!1,image:o,status:x,eyebrow:i,content:$,cta:m},N)=>{var H;const{prefix:t}=h.useGlobalSettings(),p=a==="dark"?"var(--ilo-color-white)":"var(--ilo-color-gray-accessible)",v=`${t}--card`,R=j.classNames(v,`${v}__type__score`,{[`${v}__theme__${a}`]:a,[`${v}__size__${r}`]:r,[`${v}__isvideo`]:_}),M=u.createElement(l||"a",{href:e,title:n,className:`${v}--link`},s.jsx("span",{className:`${v}--link--text`,children:n}));return s.jsxs("div",{className:j.classNames(R,d),ref:N,children:[M,s.jsxs("div",{className:`${v}--wrap`,children:[o&&r!=="simple"&&s.jsx("div",{className:`${v}--image--wrapper`,children:s.jsx(E.Picture,{...o})}),s.jsxs("div",{className:`${v}--content`,children:[x&&s.jsx(V.Status,{content:x.content,statusType:x.statusType}),i&&r!=="simple"&&s.jsx("p",{className:`${v}--eyebrow`,children:i}),n&&s.jsx(C.DynamicHeading,{level:c,className:`${v}--title`,children:n}),$&&s.jsx("div",{className:`${v}--area--content`,children:(H=$.items)==null?void 0:H.map((b,T)=>s.jsxs("div",{className:`${v}--content--item`,children:[s.jsx(P.Icon,{name:b.icon,size:20,color:p}),s.jsx("span",{children:b.label})]},T))}),m&&s.jsx("div",{className:`${v}--area--cta`,children:m.items.map((b,T)=>s.jsx("div",{className:`${v}--cta`,children:b},T))})]})]})]})}),rs=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__score`,{[`${e}__theme__${a}`]:a,[`${e}__size__${c}`]:c});return s.jsx("div",{className:j.classNames(l,d),children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--image`}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`})]})]})})},F=Object.assign(is,{Skeleton:rs});F.displayName="ScoreCard";F.Skeleton.displayName="ScoreCard.Skeleton";const ts={stat:S,multilink:y,text:w,promo:f,feature:L,detail:G,factlist:D,data:q,score:F},ds=u.forwardRef(({type:d,group:a,cardCount:c="one",cta:r,collapsed:e=!1},l)=>{const n=ts[d],{prefix:_}=h.useGlobalSettings(),o=`${_}--cardgroup`,x=j.classNames(o,`${o}__count__${c}`,{[`${o}__collapsed`]:e});return s.jsxs("div",{className:x,ref:l,children:[s.jsx("div",{className:`${o}--inner`,children:a.map((i,$)=>s.jsx(n,{...i},$))}),r&&s.jsx("div",{className:`${o}--button-wrap`,children:s.jsx(g.Button,{link:{url:r.url,label:r.label},type:"secondary",size:"medium"})})]})});exports.CardGroup=ds;exports.DataCardCombined=q;exports.DetailCardCombined=G;exports.FactListCardCombined=D;exports.FeatureCardCombined=L;exports.MultiLinkCardCombined=y;exports.PromoCardCombined=f;exports.ScoreCardCombined=F;exports.StatCardCombined=S;exports.TextCardCombined=w;
1
+ "use strict";const s=require("react/jsx-runtime"),u=require("react"),j=require("./index-chunk-Cxg31gtu.js"),h=require("./useGlobalSettings-chunk-Cd48T6lS.js"),g=require("./Button-chunk-DaJZujL8.js"),O=require("./Link-chunk-CP7cvvcX.js"),C=require("./DynamicHeading-chunk-DJzlOgQG.js"),I=require("./LinkList-chunk-CmVHEiqZ.js"),B=require("./Profile-chunk-Bnn1-Z78.js"),P=require("./Icon-chunk-DLR0d6ii.js"),k=require("./List-entry-31dXgvRv.js"),E=require("./Picture-chunk-CWRmIhTV.js"),V=require("./Status-chunk-CaABjeKb.js"),z=u.forwardRef(({className:d,title:a,theme:c="light",size:r="standard",color:e,intro:l,source:n,titleLevel:_="p"},o)=>{const{prefix:x}=h.useGlobalSettings(),i=`${x}--card`,$=j.classNames(`${i}--wrapper`,d),m=j.classNames(i,`${i}__type__stat`,{[`${i}__size__${String(r)}`]:r,[`${i}__theme__${c}`]:c,[`${i}__color__${e}`]:e});return s.jsx("div",{className:$,ref:o,children:s.jsx("div",{className:m,children:s.jsx("div",{className:`${i}--wrap`,children:s.jsxs("div",{className:`${i}--content`,children:[s.jsx(C.DynamicHeading,{level:_,className:`${i}--title`,children:a}),l&&s.jsx("p",{className:`${i}--intro`,children:l}),n&&s.jsx(O.Link,{className:`${i}--source`,url:n.url,label:n.label})]})})})})}),A=({className:d,theme:a="light",size:c="standard"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d),n=j.classNames(e,`${e}__type__stat`,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a,[`${e}__loading`]:!0});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--source`})]})})})})},S=Object.assign(z,{Skeleton:A});S.displayName="StatCard";S.Skeleton.displayName="StatCard.Skeleton";const J=u.forwardRef(({className:d,title:a,size:c="standard",alignment:r,intro:e,link:l,linklist:n,image:_,titleLevel:o="p",eyebrow:x,isVideo:i,theme:$="light"},m)=>{const{prefix:N}=h.useGlobalSettings(),t=`${N}--card`,p=j.classNames(t,d,`${t}__type__multilink`,{[`${t}__align__${r}`]:r,[`${t}__size__${c}`]:c,[`${t}__isvideo`]:i,[`${t}--no-image`]:!_,[`${t}__theme__${$}`]:$});return s.jsxs("div",{className:p,ref:m,children:[l&&s.jsx("a",{className:`${t}--link`,href:l,title:a,children:s.jsx("span",{className:`${t}--link--text`,children:a})}),s.jsxs("div",{className:`${t}--wrap`,children:[_&&s.jsx("div",{className:`${t}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${t}--picture`})})}),s.jsxs("div",{className:`${t}--content`,children:[x&&s.jsx("p",{className:`${t}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${t}--title`,children:a}),_&&s.jsx("div",{className:`${t}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${t}--picture`})})}),e&&(u.isValidElement(e)?s.jsx("div",{className:`${t}--intro`,children:e}):s.jsx("p",{className:`${t}--intro`,children:e})),n&&s.jsx(I.LinkList,{...n})]})]})]})}),K=({className:d,size:a="standard",alignment:c,theme:r="light"})=>{const{prefix:e}=h.useGlobalSettings(),l=`${e}--card`,n=j.classNames(l,d,`${l}__type__multilink`,{[`${l}__align__${c}`]:c,[`${l}__size__${a}`]:a,[`${l}__theme__${r}`]:r});return s.jsx("div",{className:n,children:s.jsxs("div",{className:`${l}--wrap`,children:[s.jsx("div",{className:`${l}--skeleton--column-image`}),s.jsxs("div",{className:`${l}--content`,children:[s.jsx("div",{className:`${l}--skeleton--eyebrow`}),s.jsx("div",{className:`${l}--skeleton--title-1`}),s.jsx("div",{className:`${l}--skeleton--title-2`}),s.jsx("div",{className:`${l}--skeleton--row-image`}),s.jsx("div",{className:`${l}--skeleton--intro-1`}),s.jsx("div",{className:`${l}--skeleton--intro-2`}),s.jsx("div",{className:`${l}--skeleton--intro-3`}),s.jsx("div",{className:`${l}--skeleton--intro-4`})]})]})})},y=Object.assign(J,{Skeleton:K});y.displayName="MultiLinkCard";y.Skeleton.displayName="MultiLinkCard.Skeleton";const Q=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,profile:l,link:n,titleLevel:_="p",eyebrow:o},x)=>{const{prefix:i}=h.useGlobalSettings(),$=`${i}--card`,m=j.classNames(`${$}--wrapper`,d),N=j.classNames($,`${$}__type__text`,{[`${$}__size__${String(r)}`]:r,[`${$}__theme__${c}`]:c});return s.jsx("div",{className:m,ref:x,children:s.jsxs("div",{className:N,children:[s.jsx("a",{className:`${$}--link`,href:n,title:a,children:s.jsx("span",{className:`${$}--link--text`,children:a})}),s.jsx("div",{className:`${$}--wrap`,children:s.jsxs("div",{className:`${$}--content`,children:[o&&s.jsx("p",{className:`${$}--eyebrow`,children:o}),s.jsx(C.DynamicHeading,{level:_,className:`${$}--title`,children:a}),e&&s.jsx("time",{className:`${$}--date`,dateTime:e.unix,children:e.human}),l&&s.jsx(B.Profile,{avatar:l.avatar,description:l.description,link:l.link,name:l.name,role:l.role,theme:c})]})})]})})}),U=({className:d,size:a,theme:c})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d),n=j.classNames(e,`${e}__type__text`,{[`${e}__size__${String(a)}`]:a,[`${e}__theme__${c}`]:c});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`}),s.jsx("div",{className:`${e}--skeleton--profile`})]})})})})},w=Object.assign(Q,{Skeleton:U});w.displayName="TextCard";w.Skeleton.displayName="TextCard.Skeleton";const W=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",cornercut:e,intro:l,link:n,cta:_,titleLevel:o="p",eyebrow:x},i)=>{const{prefix:$}=h.useGlobalSettings(),m=`${$}--card`,N=j.classNames(`${m}--wrapper`,d,`${m}--wrapper__type__promo`,`${m}--wrapper__type__promo__size__${r}`),t=j.classNames(m,`${m}__type__promo`,{[`${m}__size__${String(r)}`]:r,[`${m}__theme__${c}`]:c,[`${m}__cornercut`]:e});return s.jsx("div",{className:N,ref:i,children:s.jsxs("div",{className:t,children:[s.jsx("a",{className:`${m}--link`,href:n,title:a,children:s.jsx("span",{className:`${m}--link--text`,children:a})}),s.jsx("div",{className:`${m}--wrap`,children:s.jsxs("div",{className:`${m}--content`,children:[x&&s.jsx("p",{className:`${m}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${m}--title`,children:a}),l&&s.jsx("p",{className:`${m}--intro`,children:l}),(_==null?void 0:_.label)&&s.jsx("div",{className:`${m}--cta`,children:s.jsx(g.Button,{link:{url:_.url,label:_.label},size:"medium",type:"primary"})})]})})]})})}),X=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(`${e}--wrapper`,d,`${e}--wrapper__type__promo`,`${e}--wrapper__type__promo__size__${c}`),n=j.classNames(e,`${e}__type__promo`,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsx("div",{className:n,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title-1`}),s.jsx("div",{className:`${e}--skeleton--title-2`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--intro-3`})]})})})},f=Object.assign(W,{Skeleton:X});f.displayName="PromoCard";f.Skeleton.displayName="PromoCard.Skeleton";const Y=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,link:l,linklist:n,image:_,titleLevel:o="p",eyebrow:x,isVideo:i},$)=>{const{prefix:m}=h.useGlobalSettings(),N=`${m}--card`,t=j.classNames(N,d,`${N}__type__feature`,{[`${N}__size__${String(r)}`]:r,[`${N}__theme__${c}`]:c,[`${N}__isvideo`]:i,[`${N}__linklist`]:n});return s.jsxs("div",{className:t,ref:$,children:[l&&s.jsx("a",{className:`${N}--link`,href:l,title:a,children:s.jsx("span",{className:`${N}--link--text`,children:a})}),s.jsxs("div",{className:`${N}--wrap`,children:[_&&s.jsx("div",{className:`${N}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{src:_,alt:a,className:`${N}--picture`})})}),s.jsxs("div",{className:`${N}--content`,children:[x&&s.jsx("p",{className:`${N}--eyebrow`,children:x}),s.jsx(C.DynamicHeading,{level:o,className:`${N}--title`,children:a}),e&&s.jsx("time",{className:`${N}--date`,dateTime:e.unix,children:e.human}),n&&r==="narrow"&&s.jsx(I.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:c})]})]}),n&&(r==="wide"||r==="fluid")&&s.jsx(I.LinkList,{headline:n.headline,linkgroup:n.linkgroup,theme:c})]})}),Z=({className:d,size:a,theme:c})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,d,`${e}__type__feature`,{[`${e}__size__${String(a)}`]:a,[`${e}__theme__${c}`]:c});return s.jsx("div",{className:l,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--image`}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`})]})]})})},L=Object.assign(Y,{Skeleton:Z});L.displayName="FeatureCard";L.Skeleton.displayName="FeatureCard.Skeleton";const ss=u.forwardRef(({className:d,title:a,theme:c="light",size:r="narrow",date:e,details:l,link:n,titleLevel:_="p",eyebrow:o,intro:x,image:i,isVideo:$=!1,linkComponent:m},N)=>{const{prefix:t}=h.useGlobalSettings(),p=`${t}--card`,v=j.classNames(p,`${p}__type__detail`,d,{[`${p}__size__${String(r)}`]:r,[`${p}__theme__${c}`]:c,[`${p}__isvideo`]:$}),R=u.createElement(m||"a",{className:`${p}--link`,href:n,title:a},s.jsx("span",{className:`${p}--link--text`,children:a}));return s.jsxs("div",{className:v,ref:N,children:[n&&R,s.jsxs("div",{className:`${p}--wrap`,children:[i&&s.jsx("div",{className:`${p}--image--wrapper`,children:s.jsx("picture",{children:s.jsx("img",{className:`${p}--picture`,src:i,alt:a})})}),s.jsxs("div",{className:`${p}--content`,children:[o&&s.jsx("p",{className:`${p}--eyebrow`,children:o}),a&&s.jsx(C.DynamicHeading,{level:_,className:`${p}--title`,children:a}),x&&(u.isValidElement(x)?s.jsx("div",{className:`${p}--intro`,children:x}):s.jsx("p",{className:`${p}--intro`,children:x})),e&&!l&&s.jsx("time",{className:`${p}--date`,dateTime:e.unix,children:e.human}),l&&s.jsxs("p",{className:`${p}--date-extra`,children:[s.jsx(P.Icon,{name:"TriangleRight",size:20,className:`${p}--icon-right`}),s.jsx(P.Icon,{name:"TriangleLeft",size:20,className:`${p}--icon-left`}),l]})]})]})]})}),es=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__detail`,d,{[`${e}__size__${String(c)}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--image--wrapper`,children:s.jsx("div",{className:`${e}--skeleton--image`})}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title-1`}),s.jsx("div",{className:`${e}--skeleton--title-2`}),s.jsx("div",{className:`${e}--skeleton--intro-1`}),s.jsx("div",{className:`${e}--skeleton--intro-2`}),s.jsx("div",{className:`${e}--skeleton--intro-3`}),s.jsx("div",{className:`${e}--skeleton--intro-4`}),s.jsx("div",{className:`${e}--skeleton--intro-5`})]})]})})},G=Object.assign(ss,{Skeleton:es});G.displayName="DetailCard";G.Skeleton.displayName="DetailCard.Skeleton";const as=u.forwardRef(({title:d,theme:a="light",size:c="narrow",list:r,titleLevel:e="p",className:l},n)=>{const{prefix:_}=h.useGlobalSettings(),o=`${_}--card`,x=j.classNames(o,`${o}__type__factlist`,l,{[`${o}__size__${c}`]:c,[`${o}__theme__${a}`]:a});return s.jsx("div",{className:x,ref:n,children:s.jsx("div",{className:`${o}--wrap`,children:s.jsxs("div",{className:`${o}--content`,children:[d&&s.jsx(C.DynamicHeading,{level:e,className:`${_}--card--title`,children:d}),s.jsx(k.List,{alignment:"default",ordered:"unordered",theme:a,children:r.map(i=>s.jsx(k.List.Item,{children:s.jsx("p",{children:i})},i))})]})})})}),ls=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__factlist`,d,{[`${e}__size__${c}`]:c,[`${e}__theme__${a}`]:a});return s.jsx("div",{className:l,children:s.jsx("div",{className:`${e}--wrap`,children:s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--title`}),s.jsxs(k.List,{alignment:"default",ordered:"unordered",theme:a,children:[s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})}),s.jsx(k.List.Item,{children:s.jsx("div",{className:`${e}--skeleton--list-item`})})]})]})})})},D=Object.assign(as,{Skeleton:ls});D.displayName="FactListCard";D.Skeleton.displayName="FactListCard.Skeleton";const ns=u.forwardRef(({theme:d="light",eyebrow:a,size:c="narrow",image:r,dataset:e,columns:l="one",className:n},_)=>{var N;const{prefix:o}=h.useGlobalSettings(),x=c==="narrow"?"one":l,i=`${o}--card`,$=j.classNames(i,`${i}__type__data`,n,{[`${i}__size__${String(c)}`]:c,[`${i}__type__data__columns__${x}`]:x,[`${i}__theme__${d}`]:d}),m=j.classNames(`${i}--content`,{[`${i}--content__with-image`]:r,[`${i}--content__no-image-with-links`]:!r&&(e==null?void 0:e.links),[`${i}--content__default`]:!r&&!(e!=null&&e.links)});return s.jsx("div",{className:$,ref:_,children:s.jsxs("div",{className:`${i}--wrap`,children:[!r&&a&&s.jsx("div",{className:`${i}--eyebrow`,children:a}),s.jsxs("div",{className:m,children:[r&&s.jsxs("div",{className:`${i}--area--image`,children:[a&&s.jsx("div",{className:`${i}--eyebrow`,children:a}),s.jsx("div",{className:`${i}--image`,children:s.jsx("picture",{children:s.jsx("img",{className:`${i}--picture`,src:r,alt:a})})})]}),(N=e==null?void 0:e.content)==null?void 0:N.items.map((t,p)=>s.jsxs("div",{className:`${i}--area--content`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:t.label}),s.jsx("p",{className:`${i}__type__data--content-copy`,children:t.copy})]},p)),(e==null?void 0:e.files)&&s.jsx("div",{className:`${i}--area--files`,children:s.jsxs("div",{className:`${i}__type__data--content-files`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.files.headline}),e.files.items.map((t,p)=>s.jsx(g.Button,{link:{url:t.url,label:t.label,target:t.target||"_self"},size:"small"},p))]})}),(e==null?void 0:e.cta)&&s.jsx("div",{className:`${i}--area--cta`,children:s.jsxs("div",{className:`${i}__type__data--content-cta`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.cta.headline}),e.cta.items.map(t=>s.jsx(g.Button,{type:"secondary",size:"small",link:{url:t.url,label:t.label,target:t.target}},t.label))]})}),(e==null?void 0:e.links)&&s.jsx("div",{className:`${i}--area--links`,children:s.jsxs("div",{className:`${i}__type__data--content-links`,children:[s.jsx("p",{className:`${i}__type__data--content-label`,children:e.links.headline}),s.jsx("div",{className:`${i}__type__data--content-links-list`,children:e.links.items.map(t=>s.jsx(u.Fragment,{children:s.jsx(O.Link,{url:t.url,label:t.label,className:`${i}__type__data--content-link`})},t.label+t.url))})]})})]})]})})}),cs=({className:d,theme:a="light",size:c="narrow",columns:r="one"})=>{const{prefix:e}=h.useGlobalSettings(),l=c==="narrow"?"one":r,n=`${e}--card`,_=j.classNames(n,`${n}__type__data`,d,{[`${n}__size__${String(c)}`]:c,[`${n}__type__data__columns__${l}`]:l,[`${n}__theme__${a}`]:a,[`${n}__loading`]:!0}),o=`${n}--content`;return s.jsx("div",{className:_,children:s.jsx("div",{className:`${n}--wrap`,children:s.jsxs("div",{className:o,children:[s.jsxs("div",{className:`${n}--area--image`,children:[s.jsx("div",{className:`${n}--skeleton--eyebrow`}),s.jsx("div",{className:`${n}--skeleton--image`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]}),s.jsxs("div",{className:`${n}--area--content`,children:[s.jsx("div",{className:`${n}--skeleton--label`}),s.jsx("div",{className:`${n}--skeleton--copy`})]})]})})})},q=Object.assign(ns,{Skeleton:cs});q.displayName="DataCard";q.Skeleton.displayName="DataCard.Skeleton";const is=u.forwardRef(({className:d,theme:a="light",titleLevel:c="p",size:r="narrow",link:e,linkComponent:l,title:n,isVideo:_=!1,image:o,status:x,eyebrow:i,content:$,cta:m},N)=>{var H;const{prefix:t}=h.useGlobalSettings(),p=a==="dark"?"var(--ilo-color-white)":"var(--ilo-color-gray-accessible)",v=`${t}--card`,R=j.classNames(v,`${v}__type__score`,{[`${v}__theme__${a}`]:a,[`${v}__size__${r}`]:r,[`${v}__isvideo`]:_}),M=u.createElement(l||"a",{href:e,title:n,className:`${v}--link`},s.jsx("span",{className:`${v}--link--text`,children:n}));return s.jsxs("div",{className:j.classNames(R,d),ref:N,children:[M,s.jsxs("div",{className:`${v}--wrap`,children:[o&&r!=="simple"&&s.jsx("div",{className:`${v}--image--wrapper`,children:s.jsx(E.Picture,{...o})}),s.jsxs("div",{className:`${v}--content`,children:[x&&s.jsx(V.Status,{content:x.content,statusType:x.statusType}),i&&r!=="simple"&&s.jsx("p",{className:`${v}--eyebrow`,children:i}),n&&s.jsx(C.DynamicHeading,{level:c,className:`${v}--title`,children:n}),$&&s.jsx("div",{className:`${v}--area--content`,children:(H=$.items)==null?void 0:H.map((b,T)=>s.jsxs("div",{className:`${v}--content--item`,children:[s.jsx(P.Icon,{name:b.icon,size:20,color:p}),s.jsx("span",{children:b.label})]},T))}),m&&s.jsx("div",{className:`${v}--area--cta`,children:m.items.map((b,T)=>s.jsx("div",{className:`${v}--cta`,children:b},T))})]})]})]})}),rs=({className:d,theme:a="light",size:c="narrow"})=>{const{prefix:r}=h.useGlobalSettings(),e=`${r}--card`,l=j.classNames(e,`${e}__type__score`,{[`${e}__theme__${a}`]:a,[`${e}__size__${c}`]:c});return s.jsx("div",{className:j.classNames(l,d),children:s.jsxs("div",{className:`${e}--wrap`,children:[s.jsx("div",{className:`${e}--skeleton--image`}),s.jsxs("div",{className:`${e}--content`,children:[s.jsx("div",{className:`${e}--skeleton--eyebrow`}),s.jsx("div",{className:`${e}--skeleton--title`}),s.jsx("div",{className:`${e}--skeleton--date`})]})]})})},F=Object.assign(is,{Skeleton:rs});F.displayName="ScoreCard";F.Skeleton.displayName="ScoreCard.Skeleton";const ts={stat:S,multilink:y,text:w,promo:f,feature:L,detail:G,factlist:D,data:q,score:F},ds=u.forwardRef(({type:d,group:a,cardCount:c="one",cta:r,collapsed:e=!1},l)=>{const n=ts[d],{prefix:_}=h.useGlobalSettings(),o=`${_}--cardgroup`,x=j.classNames(o,`${o}__count__${c}`,{[`${o}__collapsed`]:e});return s.jsxs("div",{className:x,ref:l,children:[s.jsx("div",{className:`${o}--inner`,children:a.map((i,$)=>s.jsx(n,{...i},$))}),r&&s.jsx("div",{className:`${o}--button-wrap`,children:s.jsx(g.Button,{link:{url:r.url,label:r.label},type:"secondary",size:"medium"})})]})});exports.CardGroup=ds;exports.DataCardCombined=q;exports.DetailCardCombined=G;exports.FactListCardCombined=D;exports.FeatureCardCombined=L;exports.MultiLinkCardCombined=y;exports.PromoCardCombined=f;exports.ScoreCardCombined=F;exports.StatCardCombined=S;exports.TextCardCombined=w;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CardGroup-chunk-CRgPaqdt.js");exports.CardGroup=r.CardGroup;exports.DataCard=r.DataCardCombined;exports.DetailCard=r.DetailCardCombined;exports.FactListCard=r.FactListCardCombined;exports.FeatureCard=r.FeatureCardCombined;exports.MultiLinkCard=r.MultiLinkCardCombined;exports.PromoCard=r.PromoCardCombined;exports.ScoreCard=r.ScoreCardCombined;exports.StatCard=r.StatCardCombined;exports.TextCard=r.TextCardCombined;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CardGroup-chunk-D_hGpZ5E.js");exports.CardGroup=r.CardGroup;exports.DataCard=r.DataCardCombined;exports.DetailCard=r.DetailCardCombined;exports.FactListCard=r.FactListCardCombined;exports.FeatureCard=r.FeatureCardCombined;exports.MultiLinkCard=r.MultiLinkCardCombined;exports.PromoCard=r.PromoCardCombined;exports.ScoreCard=r.ScoreCardCombined;exports.StatCard=r.StatCardCombined;exports.TextCard=r.TextCardCombined;
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),$=require("react"),k=require("./index-chunk-Cxg31gtu.js"),f=require("./LinkList-chunk-CmVHEiqZ.js"),y=require("./SocialMedia-chunk-BlRflaPL.js"),q=require("./useGlobalSettings-chunk-Cd48T6lS.js"),b=require("./Button-chunk-i7Mx1CWw.js"),L=$.forwardRef(({className:N,logo:n,tagline:d,subtagline:t,address:o,linkgroup:m,socialmedia:h,subscribe:l,legal:x,secondarylinks:j,anchorlink:i},u)=>{const{prefix:c}=q.useGlobalSettings(),e=`${c}--footer`,v=k.classNames(N,e);return s.jsxs("footer",{className:v,ref:u,children:[s.jsxs("div",{className:`${e}--main ${c}--container`,children:[s.jsxs("div",{className:"site--info",children:[n&&s.jsx("img",{className:`${e}--logo`,src:n,alt:"ILO Logo"}),d&&s.jsx("h3",{className:`${e}--headline`,children:d}),t&&s.jsx("h4",{className:`${e}--subhead`,children:t})]}),o&&s.jsx("div",{className:"address",children:o.map((a,r)=>s.jsx("p",{className:"address--line",children:a},`address-line-${r}`))}),m&&s.jsx("nav",{className:"links",children:s.jsx(f.LinkList,{linkgroup:m,theme:"dark"})}),h&&s.jsx("div",{className:"connect",children:s.jsx("div",{className:"social--links",children:s.jsx(y.SocialMedia,{...h,theme:"dark"})})}),l&&s.jsx("div",{className:"subscribe",children:s.jsx(b.Button,{link:{url:l.url,label:l.label,target:"_blank"},type:"primary",size:"large"})})]}),s.jsx("div",{className:`${e}--secondary`,children:s.jsxs("div",{className:`${c}--container`,children:[s.jsxs("div",{className:`${e}--secondary--details`,children:[x&&s.jsx("div",{className:"legal",children:x}),j&&s.jsx("nav",{className:"secondarylinks",children:s.jsx("ul",{className:"secondarylinks--list",children:j.map((a,r)=>s.jsx("li",{className:"secondarylinks--list--item",children:s.jsx("a",{href:a.url,className:"secondarylinks--list--link",children:a.label})},`secondary-link-${r}`))})})]}),i&&s.jsx("a",{href:i.url,className:"anchorlink",children:i.label})]})})]})});exports.Footer=L;
1
+ "use strict";const s=require("react/jsx-runtime"),$=require("react"),k=require("./index-chunk-Cxg31gtu.js"),f=require("./LinkList-chunk-CmVHEiqZ.js"),y=require("./SocialMedia-chunk-BlRflaPL.js"),q=require("./useGlobalSettings-chunk-Cd48T6lS.js"),b=require("./Button-chunk-DaJZujL8.js"),L=$.forwardRef(({className:N,logo:n,tagline:d,subtagline:t,address:o,linkgroup:m,socialmedia:h,subscribe:l,legal:x,secondarylinks:j,anchorlink:i},u)=>{const{prefix:c}=q.useGlobalSettings(),e=`${c}--footer`,v=k.classNames(N,e);return s.jsxs("footer",{className:v,ref:u,children:[s.jsxs("div",{className:`${e}--main ${c}--container`,children:[s.jsxs("div",{className:"site--info",children:[n&&s.jsx("img",{className:`${e}--logo`,src:n,alt:"ILO Logo"}),d&&s.jsx("h3",{className:`${e}--headline`,children:d}),t&&s.jsx("h4",{className:`${e}--subhead`,children:t})]}),o&&s.jsx("div",{className:"address",children:o.map((a,r)=>s.jsx("p",{className:"address--line",children:a},`address-line-${r}`))}),m&&s.jsx("nav",{className:"links",children:s.jsx(f.LinkList,{linkgroup:m,theme:"dark"})}),h&&s.jsx("div",{className:"connect",children:s.jsx("div",{className:"social--links",children:s.jsx(y.SocialMedia,{...h,theme:"dark"})})}),l&&s.jsx("div",{className:"subscribe",children:s.jsx(b.Button,{link:{url:l.url,label:l.label,target:"_blank"},type:"primary",size:"large"})})]}),s.jsx("div",{className:`${e}--secondary`,children:s.jsxs("div",{className:`${c}--container`,children:[s.jsxs("div",{className:`${e}--secondary--details`,children:[x&&s.jsx("div",{className:"legal",children:x}),j&&s.jsx("nav",{className:"secondarylinks",children:s.jsx("ul",{className:"secondarylinks--list",children:j.map((a,r)=>s.jsx("li",{className:"secondarylinks--list--item",children:s.jsx("a",{href:a.url,className:"secondarylinks--list--link",children:a.label})},`secondary-link-${r}`))})})]}),i&&s.jsx("a",{href:i.url,className:"anchorlink",children:i.label})]})})]})});exports.Footer=L;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Footer-chunk-F6FWK20F.js");exports.Footer=e.Footer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Footer-chunk-DvVEyN5x.js");exports.Footer=e.Footer;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react/jsx-runtime"),l=require("./GlobalCtx-chunk-D_GlGcgw.js"),t=({prefix:r="ilo",children:e})=>o.jsx(l.GlobalProviderContext.Provider,{value:{prefix:r},children:e});exports.GlobalProvider=t;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GlobalProvider-chunk-BmUbDojc.js"),e=require("./GlobalCtx-chunk-D_GlGcgw.js");exports.GlobalProvider=o.GlobalProvider;exports.GlobalProviderContext=e.GlobalProviderContext;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GlobalProvider-chunk-BInwj8Vo.js"),e=require("./GlobalCtx-chunk-D_GlGcgw.js");exports.GlobalProvider=o.GlobalProvider;exports.GlobalProviderContext=e.GlobalProviderContext;