@x4b/banner 28.4.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.
@@ -0,0 +1 @@
1
+ export * from './library/index'
@@ -0,0 +1,6 @@
1
+ import { ApplicationDescriptions } from '../utils/applications';
2
+ declare function AppSelector({ applicationDescriptions, refreshToken, }: {
3
+ applicationDescriptions: ApplicationDescriptions;
4
+ refreshToken?: string;
5
+ }): JSX.Element;
6
+ export default AppSelector;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare function AppTitle({ children, className, ...props }: {
3
+ children: React.ReactNode;
4
+ } & React.HTMLAttributes<HTMLHeadingElement>): JSX.Element;
5
+ export default AppTitle;
@@ -0,0 +1,3 @@
1
+ import { BannerContentProps } from '../components/BannerContent';
2
+ declare function Banner(props: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & BannerContentProps): JSX.Element;
3
+ export default Banner;
@@ -0,0 +1,20 @@
1
+ import { Locale } from '../locales/localeConfiguration';
2
+ import { ApplicationDescriptions } from '../utils/applications';
3
+ export declare type BannerContentProps = {
4
+ language?: Locale;
5
+ languages?: Array<Locale>;
6
+ onLanguageChange?: (value: Locale) => void;
7
+ application: string;
8
+ notificationCount?: number;
9
+ onNotificationClick?: () => void;
10
+ onToggleMenuClick?: (isMenuOpen: boolean) => void;
11
+ applications?: ApplicationDescriptions;
12
+ username?: string;
13
+ version: string;
14
+ logout?: () => void;
15
+ refreshToken?: string;
16
+ loginUrl?: string;
17
+ withMaxWith?: boolean;
18
+ };
19
+ declare function BannerContent({ application, applications, notificationCount, onNotificationClick, onToggleMenuClick, language, languages, onLanguageChange, username, version, logout, refreshToken, loginUrl, withMaxWith, className, ...props }: BannerContentProps & React.HTMLAttributes<HTMLElement>): JSX.Element;
20
+ export default BannerContent;
@@ -0,0 +1,6 @@
1
+ import { SystemInfo } from '../utils/mail';
2
+ declare function HelpMenu({ systemInfo, documentationUrl }: {
3
+ systemInfo: SystemInfo;
4
+ documentationUrl?: string;
5
+ }): JSX.Element;
6
+ export default HelpMenu;
@@ -0,0 +1,8 @@
1
+ import { Locale } from '../locales/localeConfiguration';
2
+ declare type LanguageSelectorProps = {
3
+ language: Locale;
4
+ languages: Locale[];
5
+ onLanguageSelected?: (language: Locale) => void;
6
+ };
7
+ declare function LanguageSelector({ language, languages, onLanguageSelected }: LanguageSelectorProps): JSX.Element;
8
+ export default LanguageSelector;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ declare function MenuContent({ children, withMinWidth, className, ...props }: React.HTMLAttributes<HTMLElement> & {
3
+ children: React.ReactNode;
4
+ withMinWidth?: boolean;
5
+ }): JSX.Element;
6
+ export default MenuContent;
@@ -0,0 +1,5 @@
1
+ declare function NotificationButton({ count, onClick }: {
2
+ count?: number;
3
+ onClick?: () => void;
4
+ }): JSX.Element;
5
+ export default NotificationButton;
@@ -0,0 +1,7 @@
1
+ declare type UserProfileMenuProps = {
2
+ username: string;
3
+ version: string;
4
+ onLogout: () => void;
5
+ };
6
+ declare function UserProfileMenu({ username, version, onLogout }: UserProfileMenuProps): JSX.Element;
7
+ export default UserProfileMenu;
@@ -0,0 +1 @@
1
+ export declare const defaultAppIcon = "<svg width=\"34\" height=\"35\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.63 16.635.574 6.579c-.725-.725-.725-1.952 0-2.718L2.946 1.49c.725-.725 1.952-.725 2.717 0L15.72 11.546c.725.725.725 1.951 0 2.717l-2.371 2.372a1.894 1.894 0 0 1-2.718 0ZM.574 29.333 10.63 19.277c.725-.725 1.952-.725 2.718 0l2.371 2.372c.725.725.725 1.952 0 2.717L5.663 34.422c-.725.726-1.951.726-2.717 0L.574 32.051c-.765-.766-.765-1.993 0-2.718ZM23.37 19.237l10.056 10.056c.725.725.725 1.951 0 2.717l-2.372 2.372c-.725.725-1.952.725-2.717 0L18.28 24.326c-.725-.725-.725-1.952 0-2.718l2.371-2.371a1.97 1.97 0 0 1 2.718 0Z\" fill=\"#44506A\"/><path d=\"M33.426 6.579 23.37 16.635c-.726.725-1.952.725-2.718 0l-2.371-2.372c-.725-.725-.725-1.952 0-2.717L28.337 1.49c.725-.725 1.951-.725 2.717 0l2.372 2.371c.765.766.765 1.993 0 2.718Z\" fill=\"url(#a)\"/><defs><linearGradient id=\"a\" x1=\"17.736\" y1=\"9.065\" x2=\"33.999\" y2=\"9.065\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#2E5BFF\"/><stop offset=\"1\" stop-color=\"#7994F6\"/></linearGradient></defs></svg>";
@@ -0,0 +1,14 @@
1
+ declare global {
2
+ interface Window {
3
+ accessToken?: string;
4
+ }
5
+ }
6
+ export { default as Banner } from './components/Banner';
7
+ export { defaultAppIcon } from './constants';
8
+ export type { Locale } from './locales/localeConfiguration';
9
+ export * from './providers/AuthProvider';
10
+ export type { ApplicationDescription, ApplicationDescriptions } from './utils/applications';
11
+ export type { RefreshAccessTokenResult } from './utils/auth';
12
+ export { getDefaultLanguage } from './utils/language';
13
+ export { isMenuOpen } from './utils/toggleMenu';
14
+ export { getToken } from './utils/token';
@@ -0,0 +1,36 @@
1
+ export declare type Locale = 'en' | 'fr';
2
+ export declare const getLocalizedResources: (defaultLanguage: Locale) => {
3
+ mainMenu: string;
4
+ settings: string;
5
+ help: string;
6
+ contactDevelopers: string;
7
+ contactus: string;
8
+ contactUsMailBody: string;
9
+ contactSales: string;
10
+ contactSalesMailBody: string;
11
+ documentation: string;
12
+ notifications: string;
13
+ appSelector: string;
14
+ userAccountTooltip: string;
15
+ logout: string;
16
+ version: string;
17
+ login: string;
18
+ getStartedFree: string;
19
+ } | {
20
+ mainMenu: string;
21
+ settings: string;
22
+ help: string;
23
+ contactDevelopers: string;
24
+ contactus: string;
25
+ contactUsMailBody: string;
26
+ contactSales: string;
27
+ contactSalesMailBody: string;
28
+ documentation: string;
29
+ notifications: string;
30
+ appSelector: string;
31
+ userAccountTooltip: string;
32
+ logout: string;
33
+ version: string;
34
+ login: string;
35
+ getStartedFree: string;
36
+ };
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { BannerContentProps } from '../components/BannerContent';
3
+ import { ApplicationDescriptions } from '../utils/applications';
4
+ import { RefreshAccessTokenResult } from '../utils/auth';
5
+ declare type AuthContextType = {
6
+ appsServiceUrl: string;
7
+ authResult?: {
8
+ token: RefreshAccessTokenResult;
9
+ logout: () => void;
10
+ };
11
+ applications?: ApplicationDescriptions;
12
+ getBannerProps: (props: Partial<BannerContentProps>) => BannerContentProps;
13
+ };
14
+ declare function AuthProvider({ appsServiceUrl, children }: {
15
+ appsServiceUrl: string;
16
+ children: React.ReactNode;
17
+ }): JSX.Element;
18
+ declare function useAuth(): AuthContextType;
19
+ export { AuthProvider, useAuth };
@@ -0,0 +1,12 @@
1
+ export declare type ApplicationDescriptions = {
2
+ [id: string]: ApplicationDescription;
3
+ };
4
+ export declare type ApplicationDescription = {
5
+ name: string;
6
+ url: string;
7
+ logo: string;
8
+ documentationUrl?: string;
9
+ hidden?: boolean;
10
+ shortname?: string;
11
+ };
12
+ export declare function getApplicationDescriptions(appsServiceUrl: string): Promise<ApplicationDescriptions>;
@@ -0,0 +1,9 @@
1
+ export declare type TokenChangeCallback = (token: RefreshAccessTokenResult) => void;
2
+ export declare type RefreshAccessTokenResult = {
3
+ refreshToken: string;
4
+ accessToken?: string;
5
+ };
6
+ export declare function login(appsServiceUrl: string, onTokenChange?: TokenChangeCallback): Promise<{
7
+ token: RefreshAccessTokenResult;
8
+ logout: () => void;
9
+ } | undefined>;
@@ -0,0 +1,4 @@
1
+ import { Locale } from '../locales/localeConfiguration';
2
+ export declare const LANGUAGE_KEY = "x4b.language";
3
+ export declare const setCurrentLanguageInLocalStorage: (newLanguage: string) => void;
4
+ export declare function getDefaultLanguage(): Locale;
@@ -0,0 +1,7 @@
1
+ export declare type SystemInfo = {
2
+ applicationName: string;
3
+ version: string;
4
+ url: string;
5
+ username?: string;
6
+ };
7
+ export declare function buildMailtoHref(to: string, subject: string, body: string, systemInfo: SystemInfo): string;
@@ -0,0 +1,3 @@
1
+ export declare const FULLSIZE_MENU_KEY = "x4b.menu.fullsize";
2
+ export declare function isMenuOpen(): boolean;
3
+ export declare function setMenuStateInLocalStorage(isOpen: boolean): void;
@@ -0,0 +1,11 @@
1
+ import { RefreshAccessTokenResult } from './auth';
2
+ export declare type JwtTokenContent = {
3
+ user: string;
4
+ exp?: number;
5
+ };
6
+ export declare const getUsernameFromToken: (token?: string) => string | undefined;
7
+ export declare const getTokenFromCurrentLocation: () => RefreshAccessTokenResult;
8
+ export declare const getToken: () => string | undefined;
9
+ export declare const isTokenStillValid: (token: string) => boolean;
10
+ export declare const getTokenRefreshTimeout: (token: string) => number;
11
+ export declare function createToken(payload: JwtTokenContent): string;
@@ -0,0 +1,302 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+
4
+ /**
5
+ * Mock Service Worker (0.45.0).
6
+ * @see https://github.com/mswjs/msw
7
+ * - Please do NOT modify this file.
8
+ * - Please do NOT serve this file on production.
9
+ */
10
+
11
+ const INTEGRITY_CHECKSUM = 'b3066ef78c2f9090b4ce87e874965995';
12
+ const activeClientIds = new Set();
13
+
14
+ self.addEventListener('install', function () {
15
+ self.skipWaiting();
16
+ });
17
+
18
+ self.addEventListener('activate', function (event) {
19
+ event.waitUntil(self.clients.claim());
20
+ });
21
+
22
+ self.addEventListener('message', async function (event) {
23
+ const clientId = event.source.id;
24
+
25
+ if (!clientId || !self.clients) {
26
+ return;
27
+ }
28
+
29
+ const client = await self.clients.get(clientId);
30
+
31
+ if (!client) {
32
+ return;
33
+ }
34
+
35
+ const allClients = await self.clients.matchAll({
36
+ type: 'window',
37
+ });
38
+
39
+ switch (event.data) {
40
+ case 'KEEPALIVE_REQUEST': {
41
+ sendToClient(client, {
42
+ type: 'KEEPALIVE_RESPONSE',
43
+ });
44
+ break;
45
+ }
46
+
47
+ case 'INTEGRITY_CHECK_REQUEST': {
48
+ sendToClient(client, {
49
+ type: 'INTEGRITY_CHECK_RESPONSE',
50
+ payload: INTEGRITY_CHECKSUM,
51
+ });
52
+ break;
53
+ }
54
+
55
+ case 'MOCK_ACTIVATE': {
56
+ activeClientIds.add(clientId);
57
+
58
+ sendToClient(client, {
59
+ type: 'MOCKING_ENABLED',
60
+ payload: true,
61
+ });
62
+ break;
63
+ }
64
+
65
+ case 'MOCK_DEACTIVATE': {
66
+ activeClientIds.delete(clientId);
67
+ break;
68
+ }
69
+
70
+ case 'CLIENT_CLOSED': {
71
+ activeClientIds.delete(clientId);
72
+
73
+ const remainingClients = allClients.filter(client => {
74
+ return client.id !== clientId;
75
+ });
76
+
77
+ // Unregister itself when there are no more clients
78
+ if (remainingClients.length === 0) {
79
+ self.registration.unregister();
80
+ }
81
+
82
+ break;
83
+ }
84
+ }
85
+ });
86
+
87
+ self.addEventListener('fetch', function (event) {
88
+ const { request } = event;
89
+ const accept = request.headers.get('accept') || '';
90
+
91
+ // Bypass server-sent events.
92
+ if (accept.includes('text/event-stream')) {
93
+ return;
94
+ }
95
+
96
+ // Bypass navigation requests.
97
+ if (request.mode === 'navigate') {
98
+ return;
99
+ }
100
+
101
+ // Opening the DevTools triggers the "only-if-cached" request
102
+ // that cannot be handled by the worker. Bypass such requests.
103
+ if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
104
+ return;
105
+ }
106
+
107
+ // Bypass all requests when there are no active clients.
108
+ // Prevents the self-unregistered worked from handling requests
109
+ // after it's been deleted (still remains active until the next reload).
110
+ if (activeClientIds.size === 0) {
111
+ return;
112
+ }
113
+
114
+ // Generate unique request ID.
115
+ const requestId = Math.random().toString(16).slice(2);
116
+
117
+ event.respondWith(
118
+ handleRequest(event, requestId).catch(error => {
119
+ if (error.name === 'NetworkError') {
120
+ console.warn(
121
+ '[MSW] Successfully emulated a network error for the "%s %s" request.',
122
+ request.method,
123
+ request.url
124
+ );
125
+ return;
126
+ }
127
+
128
+ // At this point, any exception indicates an issue with the original request/response.
129
+ console.error(
130
+ `\
131
+ [MSW] Caught an exception from the "%s %s" request (%s). This is probably not a problem with Mock Service Worker. There is likely an additional logging output above.`,
132
+ request.method,
133
+ request.url,
134
+ `${error.name}: ${error.message}`
135
+ );
136
+ })
137
+ );
138
+ });
139
+
140
+ async function handleRequest(event, requestId) {
141
+ const client = await resolveMainClient(event);
142
+ const response = await getResponse(event, client, requestId);
143
+
144
+ // Send back the response clone for the "response:*" life-cycle events.
145
+ // Ensure MSW is active and ready to handle the message, otherwise
146
+ // this message will pend indefinitely.
147
+ if (client && activeClientIds.has(client.id)) {
148
+ (async function () {
149
+ const clonedResponse = response.clone();
150
+ sendToClient(client, {
151
+ type: 'RESPONSE',
152
+ payload: {
153
+ requestId,
154
+ type: clonedResponse.type,
155
+ ok: clonedResponse.ok,
156
+ status: clonedResponse.status,
157
+ statusText: clonedResponse.statusText,
158
+ body: clonedResponse.body === null ? null : await clonedResponse.text(),
159
+ headers: Object.fromEntries(clonedResponse.headers.entries()),
160
+ redirected: clonedResponse.redirected,
161
+ },
162
+ });
163
+ })();
164
+ }
165
+
166
+ return response;
167
+ }
168
+
169
+ // Resolve the main client for the given event.
170
+ // Client that issues a request doesn't necessarily equal the client
171
+ // that registered the worker. It's with the latter the worker should
172
+ // communicate with during the response resolving phase.
173
+ async function resolveMainClient(event) {
174
+ const client = await self.clients.get(event.clientId);
175
+
176
+ if (client.frameType === 'top-level') {
177
+ return client;
178
+ }
179
+
180
+ const allClients = await self.clients.matchAll({
181
+ type: 'window',
182
+ });
183
+
184
+ return allClients
185
+ .filter(client => {
186
+ // Get only those clients that are currently visible.
187
+ return client.visibilityState === 'visible';
188
+ })
189
+ .find(client => {
190
+ // Find the client ID that's recorded in the
191
+ // set of clients that have registered the worker.
192
+ return activeClientIds.has(client.id);
193
+ });
194
+ }
195
+
196
+ async function getResponse(event, client, requestId) {
197
+ const { request } = event;
198
+ const clonedRequest = request.clone();
199
+
200
+ function passthrough() {
201
+ // Clone the request because it might've been already used
202
+ // (i.e. its body has been read and sent to the cilent).
203
+ const headers = Object.fromEntries(clonedRequest.headers.entries());
204
+
205
+ // Remove MSW-specific request headers so the bypassed requests
206
+ // comply with the server's CORS preflight check.
207
+ // Operate with the headers as an object because request "Headers"
208
+ // are immutable.
209
+ delete headers['x-msw-bypass'];
210
+
211
+ return fetch(clonedRequest, { headers });
212
+ }
213
+
214
+ // Bypass mocking when the client is not active.
215
+ if (!client) {
216
+ return passthrough();
217
+ }
218
+
219
+ // Bypass initial page load requests (i.e. static assets).
220
+ // The absence of the immediate/parent client in the map of the active clients
221
+ // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
222
+ // and is not ready to handle requests.
223
+ if (!activeClientIds.has(client.id)) {
224
+ return passthrough();
225
+ }
226
+
227
+ // Bypass requests with the explicit bypass header.
228
+ // Such requests can be issued by "ctx.fetch()".
229
+ if (request.headers.get('x-msw-bypass') === 'true') {
230
+ return passthrough();
231
+ }
232
+
233
+ // Notify the client that a request has been intercepted.
234
+ const clientMessage = await sendToClient(client, {
235
+ type: 'REQUEST',
236
+ payload: {
237
+ id: requestId,
238
+ url: request.url,
239
+ method: request.method,
240
+ headers: Object.fromEntries(request.headers.entries()),
241
+ cache: request.cache,
242
+ mode: request.mode,
243
+ credentials: request.credentials,
244
+ destination: request.destination,
245
+ integrity: request.integrity,
246
+ redirect: request.redirect,
247
+ referrer: request.referrer,
248
+ referrerPolicy: request.referrerPolicy,
249
+ body: await request.text(),
250
+ bodyUsed: request.bodyUsed,
251
+ keepalive: request.keepalive,
252
+ },
253
+ });
254
+
255
+ switch (clientMessage.type) {
256
+ case 'MOCK_RESPONSE': {
257
+ return respondWithMock(clientMessage.data);
258
+ }
259
+
260
+ case 'MOCK_NOT_FOUND': {
261
+ return passthrough();
262
+ }
263
+
264
+ case 'NETWORK_ERROR': {
265
+ const { name, message } = clientMessage.data;
266
+ const networkError = new Error(message);
267
+ networkError.name = name;
268
+
269
+ // Rejecting a "respondWith" promise emulates a network error.
270
+ throw networkError;
271
+ }
272
+ }
273
+
274
+ return passthrough();
275
+ }
276
+
277
+ function sendToClient(client, message) {
278
+ return new Promise((resolve, reject) => {
279
+ const channel = new MessageChannel();
280
+
281
+ channel.port1.onmessage = event => {
282
+ if (event.data && event.data.error) {
283
+ return reject(event.data.error);
284
+ }
285
+
286
+ resolve(event.data);
287
+ };
288
+
289
+ client.postMessage(message, [channel.port2]);
290
+ });
291
+ }
292
+
293
+ function sleep(timeMs) {
294
+ return new Promise(resolve => {
295
+ setTimeout(resolve, timeMs);
296
+ });
297
+ }
298
+
299
+ async function respondWithMock(response) {
300
+ await sleep(response.delay);
301
+ return new Response(response.body, response);
302
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="vite/client" />
2
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
3
+ import * as CSS from 'csstype';
4
+
5
+ declare module 'csstype' {
6
+ interface Properties {
7
+ [index: string]: string | number;
8
+ }
9
+ }
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@x4b/banner",
3
+ "version": "28.4.0",
4
+ "description": "React Banner Component for X4B",
5
+ "private": false,
6
+ "author": "XComponent <dev@xcomponent.com> (http://www.xcomponent.com)",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://bitbucket.org/xcomponent/x4b-services.git",
10
+ "directory": "modules/banner"
11
+ },
12
+ "license": "UNLICENSED",
13
+ "peerDependencies": {
14
+ "@x4b/design-system": ">=0.1",
15
+ "react": "^16.8.0 || 17.x",
16
+ "react-dom": "^16.8.0 || 17.x"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "styles.css"
22
+ ],
23
+ "main": "./dist/banner.umd.js",
24
+ "module": "./dist/banner.es.js",
25
+ "types": "./dist/index.d.ts",
26
+ "eslintIgnore": [
27
+ "node_modules",
28
+ "dist",
29
+ "mockServiceWorker.js"
30
+ ],
31
+ "msw": {
32
+ "workerDirectory": "public"
33
+ },
34
+ "scripts": {
35
+ "dev": "run-p \"dev:*\"",
36
+ "dev:css": "pnpm run generate:css --watch",
37
+ "dev:vite": "vite",
38
+ "build": "run-s \"build:css\" \"build:lib\"",
39
+ "build:lib": "tsc && vite build",
40
+ "build:css": "pnpm run generate:css --minify",
41
+ "generate:css": "pnpm exec tailwindcss -i ./styles/tailwind.css -o ./styles.css",
42
+ "test": "vitest --passWithNoTests run",
43
+ "test:watch": "vitest --passWithNoTests watch",
44
+ "test:ci": "pnpm run test --reporter=default --reporter=junit --outputFile=./test-results.xml",
45
+ "lint": "eslint '**/*.{js,jsx,ts,tsx}' --cache --max-warnings 0",
46
+ "typecheck": "./node_modules/.bin/tsc --noEmit",
47
+ "clean": "rimraf .turbo && rimraf node_modules && rimraf dist && rimraf styles.css"
48
+ }
49
+ }
package/styles.css ADDED
@@ -0,0 +1 @@
1
+ *,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.tw-aspect-w-7{position:relative;padding-bottom:calc(var(--tw-aspect-h)/var(--tw-aspect-w)*100%);--tw-aspect-w:7}.tw-aspect-w-7>*{position:absolute;height:100%;width:100%;top:0;right:0;bottom:0;left:0}.tw-aspect-h-4{--tw-aspect-h:4}.tw-sr-only{width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.tw-absolute,.tw-sr-only{position:absolute}.tw-relative{position:relative}.tw-top-0{top:0}.tw-right-0{right:0}.tw-bottom-0{bottom:0}.tw-left-0{left:0}.tw-top-\[0\.3em\]{top:.3em}.tw-left-\[22px\]{left:22px}.tw-isolate{isolation:isolate}.tw-z-\[1\]{z-index:1}.tw-m-auto{margin:auto}.tw-m-0{margin:0}.tw-my-0{margin-top:0;margin-bottom:0}.tw-mx-2{margin-left:.5rem;margin-right:.5rem}.tw-mx-auto{margin-left:auto}.tw-mr-auto,.tw-mx-auto{margin-right:auto}.tw-ml-2{margin-left:.5rem}.tw-mr-0{margin-right:0}.tw-ml-3{margin-left:.75rem}.tw-ml-1{margin-left:.25rem}.tw-mt-2{margin-top:.5rem}.tw-box-border{box-sizing:border-box}.tw-block{display:block}.tw-inline-block{display:inline-block}.\!tw-inline-block{display:inline-block!important}.tw-flex{display:flex}.tw-grid{display:grid}.tw-hidden{display:none}.tw-h-\[0\.8em\]{height:.8em}.tw-h-\[1em\]{height:1em}.tw-h-full{height:100%}.tw-h-\[1\.5rem\]{height:1.5rem}.tw-w-96{width:24rem}.tw-w-full{width:100%}.tw-w-\[1em\]{width:1em}.tw-w-\[1\.5rem\]{width:1.5rem}.tw-w-\[310px\]{width:310px}.tw-min-w-\[36px\]{min-width:36px}.tw-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.tw-min-w-\[13\.125rem\]{min-width:13.125rem}.tw-min-w-\[1em\]{min-width:1em}.tw-max-w-\[250px\]{max-width:250px}.tw-max-w-7xl{max-width:80rem}.tw-translate-y-px{--tw-translate-y:1px}.tw-scale-\[1\.08\],.tw-translate-y-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tw-scale-\[1\.08\]{--tw-scale-x:1.08;--tw-scale-y:1.08}@keyframes tw-spin{to{transform:rotate(1turn)}}.tw-animate-spin{animation:tw-spin 1s linear infinite}.tw-cursor-default{cursor:default}.tw-cursor-pointer{cursor:pointer}.tw-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tw-flex-row{flex-direction:row}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-items-center{align-items:center}.tw-justify-start{justify-content:flex-start}.tw-justify-center{justify-content:center}.tw-gap-2{gap:.5rem}.tw-gap-3{gap:.75rem}.tw-gap-0{gap:0}.tw-gap-4{gap:1rem}.tw-self-end{align-self:flex-end}.tw-overflow-hidden{overflow:hidden}.tw-overflow-ellipsis{text-overflow:ellipsis}.tw-whitespace-nowrap{white-space:nowrap}.tw-rounded-lg{border-radius:.5rem}.tw-rounded-full{border-radius:9999px}.tw-rounded-\[1em\]{border-radius:1em}.tw-border{border-width:1px}.tw-border-2{border-width:2px}.tw-border-solid{border-style:solid}.tw-border-primary-600{border-color:var(--x4b-primary-600,#2e5bff)}.tw-border-accent-800{border-color:var(--x4b-secondary-800,#0b69a3)}.tw-border-gray-100{border-color:var(--x4b-gray-100,#e1e5ea)}.tw-border-red-700{border-color:var(--x4b-red-700,#d01124)}.tw-border-green-700{border-color:var(--x4b-green-700,#0f8513)}.tw-border-gray-700{border-color:var(--x4b-gray-700,#44506a)}.tw-border-red-800{border-color:var(--x4b-red-800,#aa091e)}.tw-border-green-800{border-color:var(--x4b-green-800,#0e7717)}.tw-border-transparent{border-color:#0000}.tw-border-current{border-color:currentColor}.tw-border-l-transparent{border-left-color:#0000}.tw-bg-primary-600{background-color:var(--x4b-primary-600,#2e5bff)}.tw-bg-accent-800{background-color:var(--x4b-secondary-800,#0b69a3)}.tw-bg-gray-100{background-color:var(--x4b-gray-100,#e1e5ea)}.tw-bg-red-700{background-color:var(--x4b-red-700,#d01124)}.tw-bg-green-700{background-color:var(--x4b-green-700,#0f8513)}.tw-bg-transparent{background-color:initial}.tw-bg-\[hsl\(0deg\,0\%\,95\%\)\]{--tw-bg-opacity:1;background-color:hsl(0deg 0% 95%/var(--tw-bg-opacity))}.tw-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.tw-bg-red-600{background-color:var(--x4b-red-600,#e12d39)}.tw-bg-gray-50{background-color:var(--x4b-gray-50,#f3f5f7)}.tw-object-cover{-o-object-fit:cover;object-fit:cover}.tw-object-center{-o-object-position:center;object-position:center}.tw-px-3{padding-left:.75rem;padding-right:.75rem}.tw-px-2{padding-left:.5rem;padding-right:.5rem}.tw-px-4{padding-left:1rem;padding-right:1rem}.tw-py-3{padding-top:.75rem;padding-bottom:.75rem}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.\!tw-px-0{padding-left:0!important;padding-right:0!important}.\!tw-py-0{padding-top:0!important;padding-bottom:0!important}.tw-py-4{padding-top:1rem;padding-bottom:1rem}.tw-py-\[0\.1em\]{padding-top:.1em;padding-bottom:.1em}.tw-px-\[0\.3em\]{padding-left:.3em;padding-right:.3em}.tw-px-5{padding-left:1.25rem;padding-right:1.25rem}.tw-px-0{padding-left:0;padding-right:0}.tw-text-center{text-align:center}.tw-font-sans{font-family:Open Sans,sans-serif}.tw-text-sm{font-size:.875rem}.tw-text-base{font-size:1rem}.tw-text-lg{font-size:1.125rem}.tw-text-\[0\.8em\]{font-size:.8em}.tw-font-semibold{font-weight:600}.tw-font-medium{font-weight:500}.tw-font-light{font-weight:300}.tw-font-normal{font-weight:400}.tw-leading-normal{line-height:1.5}.tw-leading-none{line-height:1}.tw-leading-\[1em\]{line-height:1em}.tw-leading-tight{line-height:1.25}.tw-tracking-wide{letter-spacing:.025em}.tw-tracking-normal{letter-spacing:0}.tw-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.tw-text-gray-700{color:var(--x4b-gray-700,#44506a)}.tw-text-primary-600{color:var(--x4b-primary-600,#2e5bff)}.tw-text-accent-800{color:var(--x4b-secondary-800,#0b69a3)}.tw-text-red-800{color:var(--x4b-red-800,#aa091e)}.tw-text-green-800{color:var(--x4b-green-800,#0e7717)}.tw-text-primary-700{color:var(--x4b-primary-700,#153fd5)}.tw-text-black{color:var(--x4b-gray-900,#2e384d)}.tw-no-underline{-webkit-text-decoration-line:none;text-decoration-line:none}.tw-antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.tw-opacity-0{opacity:0}.tw-opacity-40{opacity:.4}.tw-opacity-100{opacity:1}.tw-shadow-\[0_0_10px_0_rgba\(72\,40\,83\,0\.1\)\]{--tw-shadow:0 0 10px 0 #4828531a;--tw-shadow-colored:0 0 10px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-shadow-\[0_1px_2px_0_rgb\(60\,64\,67\,0\.3\)\,0_2px_6px_2px_rgb\(60\,64\,67\,0\.15\)\]{--tw-shadow:0 1px 2px 0 #3c40434d,0 2px 6px 2px #3c404326;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color),0 2px 6px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-outline-none{outline:2px solid #0000;outline-offset:2px}.tw-backdrop-blur-xl{--tw-backdrop-blur:blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.tw-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tw-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tw-transition-colors{transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tw-duration-500{transition-duration:.5s}.tw-will-change-transform{will-change:transform}.svg-block svg{display:block}:root{--reach-menu-button:1}.hover\:tw-cursor-pointer:hover{cursor:pointer}.hover\:tw-border-primary-700:hover{border-color:var(--x4b-primary-700,#153fd5)}.hover\:tw-border-accent-900:hover{border-color:var(--x4b-secondary-900,#035388)}.hover\:tw-border-gray-200:hover{border-color:var(--x4b-gray-200,#c3cad5)}.hover\:tw-border-red-800:hover{border-color:var(--x4b-red-800,#aa091e)}.hover\:tw-border-green-800:hover{border-color:var(--x4b-green-800,#0e7717)}.hover\:tw-border-accent-800:hover{border-color:var(--x4b-secondary-800,#0b69a3)}.hover\:tw-border-gray-700:hover{border-color:var(--x4b-gray-700,#44506a)}.hover\:tw-border-primary-100:hover{border-color:var(--x4b-primary-100,#e0e7ff)}.hover\:tw-border-accent-50:hover{border-color:var(--x4b-secondary-50,#e3f8ff)}.hover\:tw-border-gray-100:hover{border-color:var(--x4b-gray-100,#e1e5ea)}.hover\:tw-border-red-100:hover{border-color:var(--x4b-red-100,#ffe6e6)}.hover\:tw-border-green-100:hover{border-color:var(--x4b-green-100,#e2f9e3)}.hover\:tw-bg-primary-700:hover{background-color:var(--x4b-primary-700,#153fd5)}.hover\:tw-bg-accent-900:hover{background-color:var(--x4b-secondary-900,#035388)}.hover\:tw-bg-gray-200:hover{background-color:var(--x4b-gray-200,#c3cad5)}.hover\:tw-bg-red-800:hover{background-color:var(--x4b-red-800,#aa091e)}.hover\:tw-bg-green-800:hover{background-color:var(--x4b-green-800,#0e7717)}.hover\:tw-bg-primary-50:hover{background-color:var(--x4b-primary-50,#f3f5fc)}.hover\:tw-bg-accent-50:hover{background-color:var(--x4b-secondary-50,#e3f8ff)}.hover\:tw-bg-gray-100:hover{background-color:var(--x4b-gray-100,#e1e5ea)}.hover\:tw-bg-red-100:hover{background-color:var(--x4b-red-100,#ffe6e6)}.hover\:tw-bg-green-100:hover{background-color:var(--x4b-green-100,#e2f9e3)}.hover\:tw-bg-primary-100:hover{background-color:var(--x4b-primary-100,#e0e7ff)}.hover\:tw-bg-gray-50:hover{background-color:var(--x4b-gray-50,#f3f5f7)}.hover\:tw-text-gray-900:hover{color:var(--x4b-gray-900,#2e384d)}.hover\:tw-text-primary-700:hover{color:var(--x4b-primary-700,#153fd5)}.hover\:tw-text-accent-800:hover{color:var(--x4b-secondary-800,#0b69a3)}.hover\:tw-text-gray-700:hover{color:var(--x4b-gray-700,#44506a)}.hover\:tw-text-red-800:hover{color:var(--x4b-red-800,#aa091e)}.hover\:tw-text-green-800:hover{color:var(--x4b-green-800,#0e7717)}.hover\:tw-text-red-900:hover{color:var(--x4b-red-900,#8b041b)}.hover\:tw-underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.hover\:tw-opacity-80:hover{opacity:.8}.hover\:tw-duration-150:hover{transition-duration:.15s}.focus\:tw-outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus-visible\:tw-ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:tw-ring-primary-300:focus-visible{--tw-ring-color:var(--x4b-primary-300,#9fb2f9)}.focus-visible\:tw-ring-accent-300:focus-visible{--tw-ring-color:var(--x4b-secondary-300,#5ed0fa)}.focus-visible\:tw-ring-gray-300:focus-visible{--tw-ring-color:var(--x4b-gray-300,#a3aec2)}.focus-visible\:tw-ring-red-300:focus-visible{--tw-ring-color:var(--x4b-red-300,#f99)}.focus-visible\:tw-ring-green-300:focus-visible{--tw-ring-color:var(--x4b-green-300,#93e697)}.focus-visible\:tw-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.tw-group:hover .group-hover\:tw-duration-150{transition-duration:.15s}.aria-expanded\:tw-border-primary-100[aria-expanded=true]{border-color:var(--x4b-primary-100,#e0e7ff)}.aria-expanded\:tw-border-gray-100[aria-expanded=true]{border-color:var(--x4b-gray-100,#e1e5ea)}.aria-expanded\:tw-bg-primary-100[aria-expanded=true]{background-color:var(--x4b-primary-100,#e0e7ff)}.aria-expanded\:tw-bg-gray-100[aria-expanded=true]{background-color:var(--x4b-gray-100,#e1e5ea)}.aria-expanded\:tw-text-primary-700[aria-expanded=true]{color:var(--x4b-primary-700,#153fd5)}.aria-expanded\:tw-text-gray-700[aria-expanded=true]{color:var(--x4b-gray-700,#44506a)}.aria-expanded\:tw-opacity-80[aria-expanded=true]{opacity:.8}.aria-expanded\:tw-duration-150[aria-expanded=true]{transition-duration:.15s}.data-\[selected\]\:tw-cursor-pointer[data-selected]{cursor:pointer}.data-\[selected\]\:tw-bg-gray-50[data-selected]{background-color:var(--x4b-gray-50,#f3f5f7)}@media (prefers-reduced-motion:no-preference){.tw-group:hover .motion-safe\:group-hover\:tw-scale-125{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.motion-safe\:data-\[reach-menu-list\]\:tw-animate-slideDown[data-reach-menu-list]{animation:tw-slideDown .5s ease-out}@keyframes tw-slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.motion-safe\:data-\[reach-menu-items\]\:tw-animate-slideDown[data-reach-menu-items]{animation:tw-slideDown .5s ease-out}}@media (min-width:640px){.sm\:tw-inline-block{display:inline-block}.sm\:tw-gap-1{gap:.25rem}.md\:tw-ml-3{margin-left:.75rem}.md\:tw-block{display:block}.md\:tw-hidden{display:none}.md\:tw-text-xl{font-size:1.25rem}}@media (min-width:1024px){.lg\:tw-mr-3{margin-right:.75rem}.lg\:tw-inline-block{display:inline-block}.lg\:tw-gap-2{gap:.5rem}.lg\:tw-px-5{padding-left:1.25rem;padding-right:1.25rem}.lg\:tw-text-lg{font-size:1.125rem}.lg\:tw-text-2xl{font-size:1.5rem}}@media (min-width:1300px){.xl\:tw-px-3{padding-left:.75rem;padding-right:.75rem}.xl\:tw-text-xl{font-size:1.25rem}}.data-\[selected\]\:\[\&\:not\(\:hover\)\]\:tw-ring:not(:hover)[data-selected]{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.data-\[selected\]\:\[\&\:not\(\:hover\)\]\:tw-ring-gray-300:not(:hover)[data-selected]{--tw-ring-color:var(--x4b-gray-300,#a3aec2)}