@asgardeo/react 0.5.23 → 0.5.25

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 (23) hide show
  1. package/dist/AsgardeoReactClient.d.ts +1 -0
  2. package/dist/cjs/index.js +959 -877
  3. package/dist/cjs/index.js.map +4 -4
  4. package/dist/components/presentation/SignIn/options/SignInOptionFactory.d.ts +3 -3
  5. package/dist/components/presentation/SignUp/options/SignUpOptionFactory.d.ts +1 -1
  6. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +3 -0
  7. package/dist/components/presentation/UserProfile/UserProfile.d.ts +10 -0
  8. package/dist/components/presentation/{SignIn/options → options}/FacebookButton.d.ts +3 -3
  9. package/dist/components/presentation/{SignIn/options → options}/GitHubButton.d.ts +3 -3
  10. package/dist/components/presentation/{SignIn/options → options}/GoogleButton.d.ts +3 -3
  11. package/dist/components/presentation/{SignIn/options → options}/LinkedInButton.d.ts +3 -3
  12. package/dist/components/presentation/{SignIn/options → options}/MicrosoftButton.d.ts +3 -3
  13. package/dist/components/presentation/{SignIn/options → options}/SignInWithEthereumButton.d.ts +3 -3
  14. package/dist/components/presentation/{SignIn/options → options}/SocialButton.d.ts +3 -3
  15. package/dist/components/primitives/Avatar/Avatar.d.ts +4 -0
  16. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +1 -0
  17. package/dist/contexts/Asgardeo/AsgardeoContext.d.ts +10 -0
  18. package/dist/index.d.ts +8 -8
  19. package/dist/index.js +704 -618
  20. package/dist/index.js.map +4 -4
  21. package/package.json +2 -2
  22. package/dist/components/presentation/SignUp/options/GoogleButton.d.ts +0 -25
  23. package/dist/components/presentation/SignUp/options/index.d.ts +0 -26
package/dist/index.js CHANGED
@@ -6,7 +6,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6
6
  import {
7
7
  AsgardeoRuntimeError as AsgardeoRuntimeError3,
8
8
  generateFlattenedUserProfile as generateFlattenedUserProfile2,
9
- getBrandingPreference
9
+ getBrandingPreference,
10
+ getActiveTheme
10
11
  } from "@asgardeo/browser";
11
12
  import { useEffect as useEffect5, useMemo as useMemo6, useRef, useState as useState7, useCallback as useCallback7 } from "react";
12
13
 
@@ -36,7 +37,8 @@ var AsgardeoContext = createContext({
36
37
  getDecodedIdToken: null,
37
38
  getAccessToken: null,
38
39
  exchangeToken: null,
39
- storage: "sessionStorage"
40
+ storage: "sessionStorage",
41
+ reInitialize: null
40
42
  });
41
43
  AsgardeoContext.displayName = "AsgardeoContext";
42
44
  var AsgardeoContext_default = AsgardeoContext;
@@ -51,7 +53,9 @@ import {
51
53
  executeEmbeddedSignUpFlow,
52
54
  executeEmbeddedSignInFlow,
53
55
  deriveOrganizationHandleFromBaseUrl,
54
- extractUserClaimsFromIdToken
56
+ extractUserClaimsFromIdToken,
57
+ navigate,
58
+ getRedirectBasedSignUpUrl
55
59
  } from "@asgardeo/browser";
56
60
 
57
61
  // src/__temp__/api.ts
@@ -541,6 +545,23 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
541
545
  return this.asgardeo.init({ ...config, organizationHandle: resolvedOrganizationHandle });
542
546
  });
543
547
  }
548
+ reInitialize(config) {
549
+ return this.withLoading(async () => {
550
+ let isInitialized;
551
+ try {
552
+ await this.asgardeo.reInitialize(config);
553
+ isInitialized = true;
554
+ } catch (error) {
555
+ throw new AsgardeoRuntimeError(
556
+ `Failed to check if the client is initialized: ${error instanceof Error ? error.message : String(error)}`,
557
+ "AsgardeoReactClient-reInitialize-RuntimeError-001",
558
+ "react",
559
+ "An error occurred while checking the initialization status of the client."
560
+ );
561
+ }
562
+ return isInitialized;
563
+ });
564
+ }
544
565
  async updateUserProfile(payload, userId) {
545
566
  throw new Error("Not implemented");
546
567
  }
@@ -714,29 +735,16 @@ var AsgardeoReactClient = class extends AsgardeoBrowserClient {
714
735
  return Promise.resolve(String(response));
715
736
  }
716
737
  async signUp(...args) {
717
- if (args.length === 0) {
718
- throw new AsgardeoRuntimeError(
719
- "No arguments provided for signUp method.",
720
- "react-AsgardeoReactClient-ValidationError-001",
721
- "react",
722
- "The signUp method requires at least one argument, either a SignUpOptions object or an EmbeddedFlowExecuteRequestPayload."
723
- );
724
- }
738
+ const configData = await this.asgardeo.getConfigData();
725
739
  const firstArg = args[0];
726
740
  if (typeof firstArg === "object" && "flowType" in firstArg) {
727
- const configData = await this.asgardeo.getConfigData();
728
741
  const baseUrl = configData?.baseUrl;
729
742
  return executeEmbeddedSignUpFlow({
730
743
  baseUrl,
731
744
  payload: firstArg
732
745
  });
733
746
  }
734
- throw new AsgardeoRuntimeError(
735
- "Not implemented",
736
- "react-AsgardeoReactClient-ValidationError-002",
737
- "react",
738
- "The signUp method with SignUpOptions is not implemented in the React client."
739
- );
747
+ navigate(getRedirectBasedSignUpUrl(configData));
740
748
  }
741
749
  async request(requestConfig) {
742
750
  return this.asgardeo.httpRequest(requestConfig);
@@ -1109,7 +1117,8 @@ import {
1109
1117
  createTheme,
1110
1118
  detectThemeMode,
1111
1119
  createClassObserver,
1112
- createMediaQueryListener
1120
+ createMediaQueryListener,
1121
+ DEFAULT_THEME
1113
1122
  } from "@asgardeo/browser";
1114
1123
 
1115
1124
  // src/contexts/Theme/ThemeContext.ts
@@ -1147,7 +1156,7 @@ var applyThemeToDOM = (theme) => {
1147
1156
  var ThemeProvider = ({
1148
1157
  children,
1149
1158
  theme: themeConfig,
1150
- mode = "system",
1159
+ mode = DEFAULT_THEME,
1151
1160
  detection = {},
1152
1161
  inheritFromBranding = true
1153
1162
  }) => {
@@ -1642,12 +1651,6 @@ var AsgardeoProvider = ({
1642
1651
  setIsLoadingSync(asgardeo.isLoading());
1643
1652
  }
1644
1653
  };
1645
- const isDarkMode = useMemo6(() => {
1646
- if (!preferences?.theme?.mode || preferences.theme.mode === "system") {
1647
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
1648
- }
1649
- return preferences.theme.mode === "dark";
1650
- }, [preferences?.theme?.mode]);
1651
1654
  const handleProfileUpdate = (payload) => {
1652
1655
  setUser(payload);
1653
1656
  setUserProfile((prev) => ({
@@ -1678,6 +1681,7 @@ var AsgardeoProvider = ({
1678
1681
  request: asgardeo.request.bind(asgardeo),
1679
1682
  requestAll: asgardeo.requestAll.bind(asgardeo)
1680
1683
  },
1684
+ reInitialize: asgardeo.reInitialize.bind(asgardeo),
1681
1685
  signInOptions,
1682
1686
  getDecodedIdToken: asgardeo.getDecodedIdToken.bind(asgardeo),
1683
1687
  exchangeToken: asgardeo.exchangeToken.bind(asgardeo),
@@ -1715,7 +1719,7 @@ var AsgardeoProvider = ({
1715
1719
  {
1716
1720
  inheritFromBranding: preferences?.theme?.inheritFromBranding,
1717
1721
  theme: preferences?.theme?.overrides,
1718
- mode: isDarkMode ? "dark" : "light",
1722
+ mode: getActiveTheme(preferences.theme.mode),
1719
1723
  children: /* @__PURE__ */ jsx7(FlowProvider_default, { children: /* @__PURE__ */ jsx7(UserProvider_default, { profile: userProfile, onUpdateProfile: handleProfileUpdate, children: /* @__PURE__ */ jsx7(
1720
1724
  OrganizationProvider_default,
1721
1725
  {
@@ -2230,6 +2234,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2230
2234
  background-color: ${theme.vars.colors.primary.main};
2231
2235
  opacity: 0.8;
2232
2236
  }
2237
+ &:focus:not(:disabled) {
2238
+ background-color: ${theme.vars.colors.primary.main};
2239
+ opacity: 0.8;
2240
+ }
2233
2241
  `,
2234
2242
  "primary-outline": css2`
2235
2243
  background-color: transparent;
@@ -2244,30 +2252,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2244
2252
  color: ${theme.vars.colors.primary.contrastText};
2245
2253
  opacity: 0.9;
2246
2254
  }
2255
+ &:focus:not(:disabled) {
2256
+ background-color: ${theme.vars.colors.primary.main};
2257
+ color: ${theme.vars.colors.primary.contrastText};
2258
+ opacity: 0.9;
2259
+ }
2247
2260
  `,
2248
2261
  "primary-text": css2`
2249
2262
  background-color: transparent;
2250
2263
  color: ${theme.vars.colors.primary.main};
2251
2264
  border-color: transparent;
2252
2265
  &:hover:not(:disabled) {
2266
+ border-color: transparent;
2253
2267
  background-color: ${theme.vars.colors.action.hover};
2254
2268
  }
2255
2269
  &:active:not(:disabled) {
2270
+ border-color: transparent;
2256
2271
  background-color: ${theme.vars.colors.action.selected};
2257
2272
  }
2273
+ &:focus:not(:disabled) {
2274
+ border-color: transparent;
2275
+ background-color: ${theme.vars.colors.action.focus};
2276
+ outline: none;
2277
+ }
2258
2278
  `,
2259
2279
  "primary-icon": css2`
2260
2280
  background-color: transparent;
2261
2281
  color: ${theme.vars.colors.primary.main};
2262
2282
  border-color: transparent;
2263
2283
  &:hover:not(:disabled) {
2284
+ border-color: transparent;
2264
2285
  background-color: ${theme.vars.colors.action.hover};
2265
2286
  color: ${theme.vars.colors.primary.dark};
2266
2287
  }
2267
2288
  &:active:not(:disabled) {
2289
+ border-color: transparent;
2268
2290
  background-color: ${theme.vars.colors.action.selected};
2269
2291
  color: ${theme.vars.colors.primary.dark};
2270
2292
  }
2293
+ &:focus:not(:disabled) {
2294
+ border-color: transparent;
2295
+ background-color: ${theme.vars.colors.action.focus};
2296
+ color: ${theme.vars.colors.primary.dark};
2297
+ outline: none;
2298
+ }
2271
2299
  `,
2272
2300
  "secondary-solid": css2`
2273
2301
  background-color: ${theme.vars.colors.secondary.main};
@@ -2281,6 +2309,10 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2281
2309
  background-color: ${theme.vars.colors.secondary.main};
2282
2310
  opacity: 0.8;
2283
2311
  }
2312
+ &:focus:not(:disabled) {
2313
+ background-color: ${theme.vars.colors.secondary.main};
2314
+ opacity: 0.8;
2315
+ }
2284
2316
  `,
2285
2317
  "secondary-outline": css2`
2286
2318
  background-color: transparent;
@@ -2295,30 +2327,50 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2295
2327
  color: ${theme.vars.colors.secondary.contrastText};
2296
2328
  opacity: 0.9;
2297
2329
  }
2330
+ &:focus:not(:disabled) {
2331
+ background-color: ${theme.vars.colors.secondary.main};
2332
+ color: ${theme.vars.colors.secondary.contrastText};
2333
+ opacity: 0.9;
2334
+ }
2298
2335
  `,
2299
2336
  "secondary-text": css2`
2300
2337
  background-color: transparent;
2301
2338
  color: ${theme.vars.colors.secondary.main};
2302
2339
  border-color: transparent;
2303
2340
  &:hover:not(:disabled) {
2341
+ border-color: transparent;
2304
2342
  background-color: ${theme.vars.colors.action.hover};
2305
2343
  }
2306
2344
  &:active:not(:disabled) {
2345
+ border-color: transparent;
2307
2346
  background-color: ${theme.vars.colors.action.selected};
2308
2347
  }
2348
+ &:focus:not(:disabled) {
2349
+ border-color: transparent;
2350
+ background-color: ${theme.vars.colors.action.focus};
2351
+ outline: none;
2352
+ }
2309
2353
  `,
2310
2354
  "secondary-icon": css2`
2311
2355
  background-color: transparent;
2312
2356
  color: ${theme.vars.colors.secondary.main};
2313
2357
  border-color: transparent;
2314
2358
  &:hover:not(:disabled) {
2359
+ border-color: transparent;
2315
2360
  background-color: ${theme.vars.colors.action.hover};
2316
2361
  color: ${theme.vars.colors.secondary.dark};
2317
2362
  }
2318
2363
  &:active:not(:disabled) {
2364
+ border-color: transparent;
2319
2365
  background-color: ${theme.vars.colors.action.selected};
2320
2366
  color: ${theme.vars.colors.secondary.dark};
2321
2367
  }
2368
+ &:focus:not(:disabled) {
2369
+ border-color: transparent;
2370
+ background-color: ${theme.vars.colors.action.focus};
2371
+ color: ${theme.vars.colors.secondary.dark};
2372
+ outline: none;
2373
+ }
2322
2374
  `,
2323
2375
  "tertiary-solid": css2`
2324
2376
  background-color: ${theme.vars.colors.text.secondary};
@@ -2333,6 +2385,11 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2333
2385
  color: ${theme.vars.colors.background.surface};
2334
2386
  opacity: 0.9;
2335
2387
  }
2388
+ &:focus:not(:disabled) {
2389
+ background-color: ${theme.vars.colors.text.primary};
2390
+ color: ${theme.vars.colors.background.surface};
2391
+ opacity: 0.9;
2392
+ }
2336
2393
  `,
2337
2394
  "tertiary-outline": css2`
2338
2395
  background-color: transparent;
@@ -2346,32 +2403,52 @@ var useStyles2 = (theme, colorScheme, color, variant, size, fullWidth, disabled,
2346
2403
  background-color: ${theme.vars.colors.action.selected};
2347
2404
  border-color: ${theme.vars.colors.text.primary};
2348
2405
  }
2406
+ &:focus:not(:disabled) {
2407
+ background-color: ${theme.vars.colors.action.focus};
2408
+ border-color: ${theme.vars.colors.text.primary};
2409
+ }
2349
2410
  `,
2350
2411
  "tertiary-text": css2`
2351
2412
  background-color: transparent;
2352
2413
  color: ${theme.vars.colors.text.secondary};
2353
2414
  border-color: transparent;
2354
2415
  &:hover:not(:disabled) {
2416
+ border-color: transparent;
2355
2417
  background-color: ${theme.vars.colors.action.hover};
2356
2418
  color: ${theme.vars.colors.text.primary};
2357
2419
  }
2358
2420
  &:active:not(:disabled) {
2421
+ border-color: transparent;
2359
2422
  background-color: ${theme.vars.colors.action.selected};
2360
2423
  color: ${theme.vars.colors.text.primary};
2361
2424
  }
2425
+ &:focus:not(:disabled) {
2426
+ border-color: transparent;
2427
+ background-color: ${theme.vars.colors.action.focus};
2428
+ color: ${theme.vars.colors.text.primary};
2429
+ outline: none;
2430
+ }
2362
2431
  `,
2363
2432
  "tertiary-icon": css2`
2364
2433
  background-color: transparent;
2365
2434
  color: ${theme.vars.colors.text.secondary};
2366
2435
  border-color: transparent;
2367
2436
  &:hover:not(:disabled) {
2437
+ border-color: transparent;
2368
2438
  background-color: ${theme.vars.colors.action.hover};
2369
2439
  color: ${theme.vars.colors.text.primary};
2370
2440
  }
2371
2441
  &:active:not(:disabled) {
2442
+ border-color: transparent;
2372
2443
  background-color: ${theme.vars.colors.action.selected};
2373
2444
  color: ${theme.vars.colors.text.primary};
2374
2445
  }
2446
+ &:focus:not(:disabled) {
2447
+ border-color: transparent;
2448
+ background-color: ${theme.vars.colors.action.focus};
2449
+ color: ${theme.vars.colors.text.primary};
2450
+ outline: none;
2451
+ }
2375
2452
  `
2376
2453
  };
2377
2454
  const spinnerStyles = css2`
@@ -2507,7 +2584,7 @@ BaseSignInButton.displayName = "BaseSignInButton";
2507
2584
  var BaseSignInButton_default = BaseSignInButton;
2508
2585
 
2509
2586
  // src/components/actions/SignInButton/SignInButton.tsx
2510
- import { AsgardeoRuntimeError as AsgardeoRuntimeError4 } from "@asgardeo/browser";
2587
+ import { AsgardeoRuntimeError as AsgardeoRuntimeError4, navigate as navigate2 } from "@asgardeo/browser";
2511
2588
  import { forwardRef as forwardRef3, useState as useState9 } from "react";
2512
2589
  import { jsx as jsx11 } from "react/jsx-runtime";
2513
2590
  var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions: overriddenSignInOptions = {}, ...rest }, ref) => {
@@ -2518,8 +2595,7 @@ var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions:
2518
2595
  try {
2519
2596
  setIsLoading(true);
2520
2597
  if (signInUrl) {
2521
- window.history.pushState(null, "", signInUrl);
2522
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2598
+ navigate2(signInUrl);
2523
2599
  } else {
2524
2600
  await signIn(overriddenSignInOptions ?? signInOptions);
2525
2601
  }
@@ -2528,7 +2604,7 @@ var SignInButton = forwardRef3(({ children, onClick, preferences, signInOptions:
2528
2604
  }
2529
2605
  } catch (error) {
2530
2606
  throw new AsgardeoRuntimeError4(
2531
- `Sign in failed: ${error instanceof Error ? error.message : String(error)}`,
2607
+ `Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`,
2532
2608
  "SignInButton-handleSignIn-RuntimeError-001",
2533
2609
  "react",
2534
2610
  "Something went wrong while trying to sign in. Please try again later."
@@ -2646,6 +2722,8 @@ var BaseSignUpButton = forwardRef6(
2646
2722
  disabled: isLoading,
2647
2723
  loading: isLoading,
2648
2724
  type: "button",
2725
+ color: "primary",
2726
+ variant: "solid",
2649
2727
  ...rest,
2650
2728
  children
2651
2729
  }
@@ -2657,6 +2735,7 @@ var BaseSignUpButton_default = BaseSignUpButton;
2657
2735
 
2658
2736
  // src/components/actions/SignUpButton/SignUpButton.tsx
2659
2737
  import { AsgardeoRuntimeError as AsgardeoRuntimeError6 } from "@asgardeo/browser";
2738
+ import { navigate as navigate3 } from "@asgardeo/browser";
2660
2739
  import { forwardRef as forwardRef7, useState as useState11 } from "react";
2661
2740
  import { jsx as jsx15 } from "react/jsx-runtime";
2662
2741
  var SignUpButton = forwardRef7(({ children, onClick, preferences, ...rest }, ref) => {
@@ -2667,8 +2746,7 @@ var SignUpButton = forwardRef7(({ children, onClick, preferences, ...rest }, ref
2667
2746
  try {
2668
2747
  setIsLoading(true);
2669
2748
  if (signUpUrl) {
2670
- window.history.pushState(null, "", signUpUrl);
2671
- window.dispatchEvent(new PopStateEvent("popstate", { state: null }));
2749
+ navigate3(signUpUrl);
2672
2750
  } else {
2673
2751
  await signUp();
2674
2752
  }
@@ -4321,13 +4399,13 @@ var UsernamePassword = ({
4321
4399
  /* @__PURE__ */ jsx31(
4322
4400
  Button_default,
4323
4401
  {
4402
+ fullWidth: true,
4324
4403
  type: "submit",
4404
+ color: "primary",
4405
+ variant: "solid",
4325
4406
  disabled: isLoading,
4326
4407
  loading: isLoading,
4327
4408
  className: buttonClassName,
4328
- color: "primary",
4329
- variant: "solid",
4330
- fullWidth: true,
4331
4409
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4332
4410
  children: t("username.password.submit.button")
4333
4411
  }
@@ -4377,13 +4455,13 @@ var IdentifierFirst = ({
4377
4455
  /* @__PURE__ */ jsx32(
4378
4456
  Button_default,
4379
4457
  {
4458
+ fullWidth: true,
4380
4459
  type: "submit",
4460
+ color: "primary",
4461
+ variant: "solid",
4381
4462
  disabled: isLoading,
4382
4463
  loading: isLoading,
4383
4464
  className: buttonClassName,
4384
- color: "primary",
4385
- variant: "solid",
4386
- fullWidth: true,
4387
4465
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4388
4466
  children: t("identifier.first.submit.button")
4389
4467
  }
@@ -4392,29 +4470,24 @@ var IdentifierFirst = ({
4392
4470
  };
4393
4471
  var IdentifierFirst_default = IdentifierFirst;
4394
4472
 
4395
- // src/components/presentation/SignIn/options/GoogleButton.tsx
4473
+ // src/components/presentation/options/GoogleButton.tsx
4396
4474
  import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
4397
4475
  var GoogleButton = ({
4398
- authenticator,
4399
4476
  isLoading,
4400
- onSubmit,
4401
- buttonClassName = "",
4402
- preferences
4477
+ preferences,
4478
+ children,
4479
+ ...rest
4403
4480
  }) => {
4404
4481
  const { t } = useTranslation_default(preferences?.i18n);
4405
- const handleClick = () => {
4406
- onSubmit(authenticator);
4407
- };
4408
4482
  return /* @__PURE__ */ jsx33(
4409
4483
  Button_default,
4410
4484
  {
4485
+ ...rest,
4486
+ fullWidth: true,
4411
4487
  type: "button",
4412
- variant: "solid",
4413
4488
  color: "secondary",
4414
- fullWidth: true,
4489
+ variant: "solid",
4415
4490
  disabled: isLoading,
4416
- onClick: handleClick,
4417
- className: buttonClassName,
4418
4491
  startIcon: /* @__PURE__ */ jsx33("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxs13("g", { transform: "translate(-0.001 -0.001)", children: [
4419
4492
  /* @__PURE__ */ jsx33(
4420
4493
  "path",
@@ -4449,35 +4522,30 @@ var GoogleButton = ({
4449
4522
  }
4450
4523
  )
4451
4524
  ] }) }),
4452
- children: t("elements.buttons.google")
4525
+ children: children ?? t("elements.buttons.google")
4453
4526
  }
4454
4527
  );
4455
4528
  };
4456
4529
  var GoogleButton_default = GoogleButton;
4457
4530
 
4458
- // src/components/presentation/SignIn/options/GitHubButton.tsx
4531
+ // src/components/presentation/options/GitHubButton.tsx
4459
4532
  import { jsx as jsx34 } from "react/jsx-runtime";
4460
4533
  var GitHubButton = ({
4461
- authenticator,
4462
4534
  isLoading,
4463
- onSubmit,
4464
- buttonClassName = "",
4465
- preferences
4535
+ preferences,
4536
+ children,
4537
+ ...rest
4466
4538
  }) => {
4467
4539
  const { t } = useTranslation_default(preferences?.i18n);
4468
- const handleClick = () => {
4469
- onSubmit(authenticator);
4470
- };
4471
4540
  return /* @__PURE__ */ jsx34(
4472
4541
  Button_default,
4473
4542
  {
4543
+ ...rest,
4544
+ fullWidth: true,
4474
4545
  type: "button",
4475
- variant: "solid",
4476
4546
  color: "secondary",
4477
- fullWidth: true,
4547
+ variant: "solid",
4478
4548
  disabled: isLoading,
4479
- onClick: handleClick,
4480
- className: buttonClassName,
4481
4549
  startIcon: /* @__PURE__ */ jsx34("svg", { width: "18", height: "18", viewBox: "0 0 67.91 66.233", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx34("g", { transform: "translate(-386.96 658.072)", children: /* @__PURE__ */ jsx34(
4482
4550
  "path",
4483
4551
  {
@@ -4485,35 +4553,30 @@ var GitHubButton = ({
4485
4553
  fill: "#ffffff"
4486
4554
  }
4487
4555
  ) }) }),
4488
- children: t("elements.buttons.github")
4556
+ children: children ?? t("elements.buttons.github")
4489
4557
  }
4490
4558
  );
4491
4559
  };
4492
4560
  var GitHubButton_default = GitHubButton;
4493
4561
 
4494
- // src/components/presentation/SignIn/options/MicrosoftButton.tsx
4562
+ // src/components/presentation/options/MicrosoftButton.tsx
4495
4563
  import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
4496
4564
  var MicrosoftButton = ({
4497
- authenticator,
4498
4565
  isLoading,
4499
- onSubmit,
4500
- buttonClassName = "",
4501
- preferences
4566
+ preferences,
4567
+ children,
4568
+ ...rest
4502
4569
  }) => {
4503
4570
  const { t } = useTranslation_default(preferences?.i18n);
4504
- const handleClick = () => {
4505
- onSubmit(authenticator);
4506
- };
4507
4571
  return /* @__PURE__ */ jsx35(
4508
4572
  Button_default,
4509
4573
  {
4510
- type: "button",
4511
- variant: "outline",
4512
- color: "primary",
4574
+ ...rest,
4513
4575
  fullWidth: true,
4576
+ type: "button",
4577
+ color: "secondary",
4578
+ variant: "solid",
4514
4579
  disabled: isLoading,
4515
- onClick: handleClick,
4516
- className: buttonClassName,
4517
4580
  startIcon: /* @__PURE__ */ jsxs14("svg", { width: "14", height: "14", viewBox: "0 0 23 23", xmlns: "http://www.w3.org/2000/svg", children: [
4518
4581
  /* @__PURE__ */ jsx35("path", { fill: "#f3f3f3", d: "M0 0h23v23H0z" }),
4519
4582
  /* @__PURE__ */ jsx35("path", { fill: "#f35325", d: "M1 1h10v10H1z" }),
@@ -4521,36 +4584,30 @@ var MicrosoftButton = ({
4521
4584
  /* @__PURE__ */ jsx35("path", { fill: "#05a6f0", d: "M1 12h10v10H1z" }),
4522
4585
  /* @__PURE__ */ jsx35("path", { fill: "#ffba08", d: "M12 12h10v10H12z" })
4523
4586
  ] }),
4524
- children: t("elements.buttons.microsoft")
4587
+ children: children ?? t("elements.buttons.microsoft")
4525
4588
  }
4526
4589
  );
4527
4590
  };
4528
4591
  var MicrosoftButton_default = MicrosoftButton;
4529
4592
 
4530
- // src/components/presentation/SignIn/options/FacebookButton.tsx
4593
+ // src/components/presentation/options/FacebookButton.tsx
4531
4594
  import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
4532
4595
  var FacebookButton = ({
4533
- authenticator,
4534
4596
  isLoading,
4535
- onSubmit,
4536
- buttonClassName = "",
4537
- submitButtonText,
4538
- preferences
4597
+ preferences,
4598
+ children,
4599
+ ...rest
4539
4600
  }) => {
4540
4601
  const { t } = useTranslation_default(preferences?.i18n);
4541
- const handleClick = () => {
4542
- onSubmit(authenticator);
4543
- };
4544
4602
  return /* @__PURE__ */ jsx36(
4545
4603
  Button_default,
4546
4604
  {
4605
+ ...rest,
4606
+ fullWidth: true,
4547
4607
  type: "button",
4548
- variant: "solid",
4549
4608
  color: "primary",
4550
- fullWidth: true,
4609
+ variant: "solid",
4551
4610
  disabled: isLoading,
4552
- onClick: handleClick,
4553
- className: buttonClassName,
4554
4611
  startIcon: /* @__PURE__ */ jsxs15("svg", { width: "18", height: "18", viewBox: "0 0 512 512", xmlns: "http://www.w3.org/2000/svg", children: [
4555
4612
  /* @__PURE__ */ jsx36(
4556
4613
  "path",
@@ -4567,35 +4624,30 @@ var FacebookButton = ({
4567
4624
  }
4568
4625
  )
4569
4626
  ] }),
4570
- children: t("elements.buttons.facebook")
4627
+ children: children ?? t("elements.buttons.facebook")
4571
4628
  }
4572
4629
  );
4573
4630
  };
4574
4631
  var FacebookButton_default = FacebookButton;
4575
4632
 
4576
- // src/components/presentation/SignIn/options/LinkedInButton.tsx
4633
+ // src/components/presentation/options/LinkedInButton.tsx
4577
4634
  import { jsx as jsx37 } from "react/jsx-runtime";
4578
4635
  var LinkedInButton = ({
4579
- authenticator,
4580
4636
  isLoading,
4581
- onSubmit,
4582
- buttonClassName = "",
4583
- preferences
4637
+ preferences,
4638
+ children,
4639
+ ...rest
4584
4640
  }) => {
4585
4641
  const { t } = useTranslation_default(preferences?.i18n);
4586
- const handleClick = () => {
4587
- onSubmit(authenticator);
4588
- };
4589
4642
  return /* @__PURE__ */ jsx37(
4590
4643
  Button_default,
4591
4644
  {
4592
- type: "button",
4593
- variant: "outline",
4594
- color: "primary",
4645
+ ...rest,
4595
4646
  fullWidth: true,
4647
+ type: "button",
4648
+ color: "secondary",
4649
+ variant: "solid",
4596
4650
  disabled: isLoading,
4597
- onClick: handleClick,
4598
- className: buttonClassName,
4599
4651
  startIcon: /* @__PURE__ */ jsx37("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx37(
4600
4652
  "path",
4601
4653
  {
@@ -4603,35 +4655,30 @@ var LinkedInButton = ({
4603
4655
  d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
4604
4656
  }
4605
4657
  ) }),
4606
- children: t("elements.buttons.linkedin")
4658
+ children: children ?? t("elements.buttons.linkedin")
4607
4659
  }
4608
4660
  );
4609
4661
  };
4610
4662
  var LinkedInButton_default = LinkedInButton;
4611
4663
 
4612
- // src/components/presentation/SignIn/options/SignInWithEthereumButton.tsx
4664
+ // src/components/presentation/options/SignInWithEthereumButton.tsx
4613
4665
  import { jsx as jsx38 } from "react/jsx-runtime";
4614
4666
  var SignInWithEthereumButton = ({
4615
- authenticator,
4616
4667
  isLoading,
4617
- onSubmit,
4618
- buttonClassName = "",
4619
- preferences
4668
+ preferences,
4669
+ children,
4670
+ ...rest
4620
4671
  }) => {
4621
4672
  const { t } = useTranslation_default(preferences?.i18n);
4622
- const handleClick = () => {
4623
- onSubmit(authenticator);
4624
- };
4625
4673
  return /* @__PURE__ */ jsx38(
4626
4674
  Button_default,
4627
4675
  {
4676
+ ...rest,
4677
+ fullWidth: true,
4628
4678
  type: "button",
4629
- variant: "outline",
4630
4679
  color: "secondary",
4631
- fullWidth: true,
4680
+ variant: "solid",
4632
4681
  disabled: isLoading,
4633
- onClick: handleClick,
4634
- className: buttonClassName,
4635
4682
  startIcon: /* @__PURE__ */ jsx38("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx38(
4636
4683
  "path",
4637
4684
  {
@@ -4639,7 +4686,7 @@ var SignInWithEthereumButton = ({
4639
4686
  d: "M11.944 17.97L4.58 13.62 11.943 24l7.37-10.38-7.372 4.35h.003zM12.056 0L4.69 12.223l7.365 4.354 7.365-4.35L12.056 0z"
4640
4687
  }
4641
4688
  ) }),
4642
- children: t("elements.buttons.ethereum")
4689
+ children: children ?? t("elements.buttons.ethereum")
4643
4690
  }
4644
4691
  );
4645
4692
  };
@@ -4698,13 +4745,13 @@ var EmailOtp = ({
4698
4745
  /* @__PURE__ */ jsx39(
4699
4746
  Button_default,
4700
4747
  {
4748
+ fullWidth: true,
4701
4749
  type: "submit",
4750
+ color: "primary",
4751
+ variant: "solid",
4702
4752
  disabled: isLoading,
4703
4753
  loading: isLoading,
4704
4754
  className: buttonClassName,
4705
- color: "primary",
4706
- variant: "solid",
4707
- fullWidth: true,
4708
4755
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4709
4756
  children: t("email.otp.submit.button")
4710
4757
  }
@@ -4766,13 +4813,13 @@ var Totp = ({
4766
4813
  /* @__PURE__ */ jsx40(
4767
4814
  Button_default,
4768
4815
  {
4816
+ fullWidth: true,
4769
4817
  type: "submit",
4818
+ color: "primary",
4819
+ variant: "solid",
4770
4820
  disabled: isLoading,
4771
4821
  loading: isLoading,
4772
4822
  className: buttonClassName,
4773
- color: "primary",
4774
- variant: "solid",
4775
- fullWidth: true,
4776
4823
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4777
4824
  children: t("totp.submit.button")
4778
4825
  }
@@ -4834,13 +4881,13 @@ var SmsOtp = ({
4834
4881
  /* @__PURE__ */ jsx41(
4835
4882
  Button_default,
4836
4883
  {
4884
+ fullWidth: true,
4837
4885
  type: "submit",
4886
+ color: "primary",
4887
+ variant: "solid",
4838
4888
  disabled: isLoading,
4839
4889
  loading: isLoading,
4840
4890
  className: buttonClassName,
4841
- color: "primary",
4842
- variant: "solid",
4843
- fullWidth: true,
4844
4891
  style: { marginBottom: `calc(${theme.vars.spacing.unit} * 2)` },
4845
4892
  children: t("sms.otp.submit.button")
4846
4893
  }
@@ -4849,33 +4896,24 @@ var SmsOtp = ({
4849
4896
  };
4850
4897
  var SmsOtp_default = SmsOtp;
4851
4898
 
4852
- // src/components/presentation/SignIn/options/SocialButton.tsx
4899
+ // src/components/presentation/options/SocialButton.tsx
4853
4900
  import { jsx as jsx42 } from "react/jsx-runtime";
4854
4901
  var SocialLogin = ({
4855
- authenticator,
4856
4902
  isLoading,
4857
- onSubmit,
4858
- buttonClassName = "",
4859
- preferences
4903
+ preferences,
4904
+ children,
4905
+ ...rest
4860
4906
  }) => {
4861
4907
  const { t } = useTranslation_default(preferences?.i18n);
4862
- const getDisplayName = () => {
4863
- const providerName = authenticator.idp;
4864
- return t("elements.buttons.social", { connection: providerName });
4865
- };
4866
- const handleClick = () => {
4867
- onSubmit(authenticator);
4868
- };
4869
4908
  return /* @__PURE__ */ jsx42(
4870
4909
  Button_default,
4871
4910
  {
4911
+ ...rest,
4912
+ fullWidth: true,
4872
4913
  type: "button",
4873
- variant: "outline",
4874
4914
  color: "secondary",
4875
- fullWidth: true,
4915
+ variant: "outline",
4876
4916
  disabled: isLoading,
4877
- onClick: handleClick,
4878
- className: buttonClassName,
4879
4917
  startIcon: /* @__PURE__ */ jsx42("svg", { width: "18", height: "18", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx42(
4880
4918
  "path",
4881
4919
  {
@@ -4883,7 +4921,7 @@ var SocialLogin = ({
4883
4921
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
4884
4922
  }
4885
4923
  ) }),
4886
- children: getDisplayName()
4924
+ children: t("elements.buttons.social", { connection: children })
4887
4925
  }
4888
4926
  );
4889
4927
  };
@@ -4972,10 +5010,10 @@ var MultiOptionButton = ({
4972
5010
  return /* @__PURE__ */ jsx43(
4973
5011
  Button_default,
4974
5012
  {
4975
- type: "button",
4976
- variant: "outline",
4977
- color: "primary",
4978
5013
  fullWidth: true,
5014
+ type: "button",
5015
+ color: "secondary",
5016
+ variant: "solid",
4979
5017
  disabled: isLoading,
4980
5018
  onClick: handleClick,
4981
5019
  className: buttonClassName,
@@ -4988,40 +5026,109 @@ var MultiOptionButton_default = MultiOptionButton;
4988
5026
 
4989
5027
  // src/components/presentation/SignIn/options/SignInOptionFactory.tsx
4990
5028
  import { jsx as jsx44 } from "react/jsx-runtime";
4991
- var createSignInOption = (props) => {
4992
- const { authenticator, ...optionProps } = props;
5029
+ var createSignInOption = ({
5030
+ authenticator,
5031
+ onSubmit,
5032
+ buttonClassName,
5033
+ preferences,
5034
+ ...rest
5035
+ }) => {
4993
5036
  const hasParams = authenticator.metadata?.params && authenticator.metadata.params.length > 0;
4994
5037
  switch (authenticator.authenticatorId) {
4995
5038
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.UsernamePassword:
4996
- return /* @__PURE__ */ jsx44(UsernamePassword_default, { ...props });
5039
+ return /* @__PURE__ */ jsx44(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
4997
5040
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.IdentifierFirst:
4998
- return /* @__PURE__ */ jsx44(IdentifierFirst_default, { ...props });
5041
+ return /* @__PURE__ */ jsx44(IdentifierFirst_default, { authenticator, preferences, onSubmit, ...rest });
4999
5042
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Google:
5000
- return /* @__PURE__ */ jsx44(GoogleButton_default, { ...props });
5043
+ return /* @__PURE__ */ jsx44(
5044
+ GoogleButton_default,
5045
+ {
5046
+ className: buttonClassName,
5047
+ onClick: () => onSubmit(authenticator),
5048
+ authenticator,
5049
+ preferences,
5050
+ ...rest
5051
+ }
5052
+ );
5001
5053
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.GitHub:
5002
- return /* @__PURE__ */ jsx44(GitHubButton_default, { ...props });
5054
+ return /* @__PURE__ */ jsx44(
5055
+ GitHubButton_default,
5056
+ {
5057
+ authenticator,
5058
+ preferences,
5059
+ className: buttonClassName,
5060
+ onClick: () => onSubmit(authenticator),
5061
+ ...rest
5062
+ }
5063
+ );
5003
5064
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Microsoft:
5004
- return /* @__PURE__ */ jsx44(MicrosoftButton_default, { ...props });
5065
+ return /* @__PURE__ */ jsx44(
5066
+ MicrosoftButton_default,
5067
+ {
5068
+ authenticator,
5069
+ preferences,
5070
+ className: buttonClassName,
5071
+ onClick: () => onSubmit(authenticator),
5072
+ ...rest
5073
+ }
5074
+ );
5005
5075
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Facebook:
5006
- return /* @__PURE__ */ jsx44(FacebookButton_default, { ...props });
5076
+ return /* @__PURE__ */ jsx44(
5077
+ FacebookButton_default,
5078
+ {
5079
+ authenticator,
5080
+ preferences,
5081
+ className: buttonClassName,
5082
+ onClick: () => onSubmit(authenticator),
5083
+ ...rest
5084
+ }
5085
+ );
5007
5086
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.LinkedIn:
5008
- return /* @__PURE__ */ jsx44(LinkedInButton_default, { ...props });
5087
+ return /* @__PURE__ */ jsx44(
5088
+ LinkedInButton_default,
5089
+ {
5090
+ authenticator,
5091
+ preferences,
5092
+ className: buttonClassName,
5093
+ onClick: () => onSubmit(authenticator),
5094
+ ...rest
5095
+ }
5096
+ );
5009
5097
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SignInWithEthereum:
5010
- return /* @__PURE__ */ jsx44(SignInWithEthereumButton_default, { ...props });
5098
+ return /* @__PURE__ */ jsx44(
5099
+ SignInWithEthereumButton_default,
5100
+ {
5101
+ authenticator,
5102
+ preferences,
5103
+ className: buttonClassName,
5104
+ onClick: () => onSubmit(authenticator),
5105
+ ...rest
5106
+ }
5107
+ );
5011
5108
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.EmailOtp:
5012
- return hasParams ? /* @__PURE__ */ jsx44(EmailOtp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5109
+ return hasParams ? /* @__PURE__ */ jsx44(EmailOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5013
5110
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.Totp:
5014
- return hasParams ? /* @__PURE__ */ jsx44(Totp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5111
+ return hasParams ? /* @__PURE__ */ jsx44(Totp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5015
5112
  case ApplicationNativeAuthenticationConstants2.SupportedAuthenticators.SmsOtp:
5016
- return hasParams ? /* @__PURE__ */ jsx44(SmsOtp_default, { ...props }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5113
+ return hasParams ? /* @__PURE__ */ jsx44(SmsOtp_default, { authenticator, preferences, onSubmit, ...rest }) : /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5017
5114
  default:
5018
5115
  if (authenticator.idp !== EmbeddedSignInFlowAuthenticatorKnownIdPType2.Local) {
5019
- return /* @__PURE__ */ jsx44(SocialButton_default, { ...props });
5116
+ return /* @__PURE__ */ jsx44(
5117
+ SocialButton_default,
5118
+ {
5119
+ authenticator,
5120
+ preferences,
5121
+ className: buttonClassName,
5122
+ onClick: () => onSubmit(authenticator),
5123
+ ...rest,
5124
+ children: authenticator.idp
5125
+ }
5126
+ );
5020
5127
  }
5021
5128
  if (hasParams) {
5022
- return /* @__PURE__ */ jsx44(UsernamePassword_default, { ...props });
5129
+ return /* @__PURE__ */ jsx44(UsernamePassword_default, { authenticator, preferences, onSubmit, ...rest });
5023
5130
  } else {
5024
- return /* @__PURE__ */ jsx44(MultiOptionButton_default, { ...props });
5131
+ return /* @__PURE__ */ jsx44(MultiOptionButton_default, { authenticator, preferences, onSubmit, ...rest });
5025
5132
  }
5026
5133
  }
5027
5134
  };
@@ -6909,75 +7016,8 @@ var FormContainer = (props) => {
6909
7016
  };
6910
7017
  var FormContainer_default = FormContainer;
6911
7018
 
6912
- // src/components/presentation/SignUp/options/GoogleButton.tsx
6913
- import { jsx as jsx57, jsxs as jsxs27 } from "react/jsx-runtime";
6914
- var GoogleButton2 = ({
6915
- component,
6916
- isLoading,
6917
- buttonClassName = "",
6918
- size = "medium",
6919
- onSubmit
6920
- }) => {
6921
- const config = component.config || {};
6922
- const buttonText = config["text"] || config["label"] || "Continue with Google";
6923
- const handleClick = () => {
6924
- if (onSubmit) {
6925
- onSubmit(component, {});
6926
- }
6927
- };
6928
- return /* @__PURE__ */ jsx57(
6929
- Button_default,
6930
- {
6931
- type: "button",
6932
- variant: "solid",
6933
- color: "secondary",
6934
- size,
6935
- disabled: isLoading,
6936
- onClick: handleClick,
6937
- className: buttonClassName,
6938
- style: { width: "100%" },
6939
- startIcon: /* @__PURE__ */ jsx57("svg", { width: "18", height: "18", viewBox: "0 0 67.91 67.901", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxs27("g", { transform: "translate(-0.001 -0.001)", children: [
6940
- /* @__PURE__ */ jsx57(
6941
- "path",
6942
- {
6943
- d: "M15.049,160.965l-2.364,8.824-8.639.183a34.011,34.011,0,0,1-.25-31.7h0l7.691,1.41,3.369,7.645a20.262,20.262,0,0,0,.19,13.642Z",
6944
- transform: "translate(0 -119.93)",
6945
- fill: "#fbbb00"
6946
- }
6947
- ),
6948
- /* @__PURE__ */ jsx57(
6949
- "path",
6950
- {
6951
- d: "M294.24,208.176A33.939,33.939,0,0,1,282.137,241h0l-9.687-.494-1.371-8.559a20.235,20.235,0,0,0,8.706-10.333H261.628V208.176Z",
6952
- transform: "translate(-226.93 -180.567)",
6953
- fill: "#518ef8"
6954
- }
6955
- ),
6956
- /* @__PURE__ */ jsx57(
6957
- "path",
6958
- {
6959
- d: "M81.668,328.8h0a33.962,33.962,0,0,1-51.161-10.387l11-9.006a20.192,20.192,0,0,0,29.1,10.338Z",
6960
- transform: "translate(-26.463 -268.374)",
6961
- fill: "#28b446"
6962
- }
6963
- ),
6964
- /* @__PURE__ */ jsx57(
6965
- "path",
6966
- {
6967
- d: "M80.451,7.816l-11,9A20.19,20.19,0,0,0,39.686,27.393l-11.06-9.055h0A33.959,33.959,0,0,1,80.451,7.816Z",
6968
- transform: "translate(-24.828)",
6969
- fill: "#f14336"
6970
- }
6971
- )
6972
- ] }) }),
6973
- children: buttonText
6974
- }
6975
- );
6976
- };
6977
- var GoogleButton_default2 = GoogleButton2;
6978
-
6979
7019
  // src/components/presentation/SignUp/options/ImageComponent.tsx
6980
- import { jsx as jsx58 } from "react/jsx-runtime";
7020
+ import { jsx as jsx57 } from "react/jsx-runtime";
6981
7021
  var ImageComponent = ({ component }) => {
6982
7022
  const { theme } = useTheme_default();
6983
7023
  const config = component.config || {};
@@ -6994,7 +7034,7 @@ var ImageComponent = ({ component }) => {
6994
7034
  if (!src) {
6995
7035
  return null;
6996
7036
  }
6997
- return /* @__PURE__ */ jsx58("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx58(
7037
+ return /* @__PURE__ */ jsx57("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ jsx57(
6998
7038
  "img",
6999
7039
  {
7000
7040
  src,
@@ -7097,7 +7137,7 @@ var PasswordInput = ({
7097
7137
  var PasswordInput_default = PasswordInput;
7098
7138
 
7099
7139
  // src/components/presentation/SignUp/options/SubmitButton.tsx
7100
- import { jsx as jsx59 } from "react/jsx-runtime";
7140
+ import { jsx as jsx58 } from "react/jsx-runtime";
7101
7141
  var ButtonComponent = ({
7102
7142
  component,
7103
7143
  isLoading,
@@ -7130,7 +7170,7 @@ var ButtonComponent = ({
7130
7170
  onSubmit(component);
7131
7171
  }
7132
7172
  };
7133
- return /* @__PURE__ */ jsx59(
7173
+ return /* @__PURE__ */ jsx58(
7134
7174
  Button_default,
7135
7175
  {
7136
7176
  type: buttonType === "submit" ? "submit" : "button",
@@ -7141,7 +7181,7 @@ var ButtonComponent = ({
7141
7181
  onClick: buttonType !== "submit" ? handleClick : void 0,
7142
7182
  className: buttonClassName,
7143
7183
  style: { width: "100%" },
7144
- children: isLoading ? /* @__PURE__ */ jsx59(Spinner_default, { size: "small" }) : buttonText
7184
+ children: isLoading ? /* @__PURE__ */ jsx58(Spinner_default, { size: "small" }) : buttonText
7145
7185
  },
7146
7186
  component.id
7147
7187
  );
@@ -7149,7 +7189,7 @@ var ButtonComponent = ({
7149
7189
  var SubmitButton_default = ButtonComponent;
7150
7190
 
7151
7191
  // src/components/presentation/SignUp/options/TelephoneInput.tsx
7152
- import { jsx as jsx60 } from "react/jsx-runtime";
7192
+ import { jsx as jsx59 } from "react/jsx-runtime";
7153
7193
  var TelephoneInput = ({
7154
7194
  component,
7155
7195
  formValues,
@@ -7162,7 +7202,7 @@ var TelephoneInput = ({
7162
7202
  const fieldName = config["identifier"] || config["name"] || component.id;
7163
7203
  const value = formValues[fieldName] || "";
7164
7204
  const error = touchedFields[fieldName] ? formErrors[fieldName] : void 0;
7165
- return /* @__PURE__ */ jsx60(
7205
+ return /* @__PURE__ */ jsx59(
7166
7206
  TextField_default,
7167
7207
  {
7168
7208
  name: fieldName,
@@ -7210,7 +7250,7 @@ var TextInput = ({
7210
7250
  var TextInput_default = TextInput;
7211
7251
 
7212
7252
  // src/components/presentation/SignUp/options/Typography.tsx
7213
- import { jsx as jsx61 } from "react/jsx-runtime";
7253
+ import { jsx as jsx60 } from "react/jsx-runtime";
7214
7254
  var TypographyComponent = ({ component }) => {
7215
7255
  const { theme } = useTheme_default();
7216
7256
  const config = component.config || {};
@@ -7251,7 +7291,7 @@ var TypographyComponent = ({ component }) => {
7251
7291
  default:
7252
7292
  typographyVariant = "body1";
7253
7293
  }
7254
- return /* @__PURE__ */ jsx61(
7294
+ return /* @__PURE__ */ jsx60(
7255
7295
  Typography_default,
7256
7296
  {
7257
7297
  variant: typographyVariant,
@@ -7264,50 +7304,66 @@ var TypographyComponent = ({ component }) => {
7264
7304
  var Typography_default2 = TypographyComponent;
7265
7305
 
7266
7306
  // src/components/presentation/SignUp/options/SignUpOptionFactory.tsx
7267
- import { jsx as jsx62 } from "react/jsx-runtime";
7268
- var createSignUpComponent = (props) => {
7269
- const { component } = props;
7307
+ import { jsx as jsx61 } from "react/jsx-runtime";
7308
+ var createSignUpComponent = ({ component, onSubmit, ...rest }) => {
7270
7309
  switch (component.type) {
7271
7310
  case EmbeddedFlowComponentType.Typography:
7272
- return /* @__PURE__ */ jsx62(Typography_default2, { ...props });
7311
+ return /* @__PURE__ */ jsx61(Typography_default2, { component, onSubmit, ...rest });
7273
7312
  case EmbeddedFlowComponentType.Input:
7274
7313
  const inputVariant = component.variant?.toUpperCase();
7275
7314
  const inputType = component.config["type"]?.toLowerCase();
7276
7315
  if (inputVariant === "EMAIL" || inputType === "email") {
7277
- return /* @__PURE__ */ jsx62(EmailInput_default, { ...props });
7316
+ return /* @__PURE__ */ jsx61(EmailInput_default, { component, onSubmit, ...rest });
7278
7317
  }
7279
7318
  if (inputVariant === "PASSWORD" || inputType === "password") {
7280
- return /* @__PURE__ */ jsx62(PasswordInput_default, { ...props });
7319
+ return /* @__PURE__ */ jsx61(PasswordInput_default, { component, onSubmit, ...rest });
7281
7320
  }
7282
7321
  if (inputVariant === "TELEPHONE" || inputType === "tel") {
7283
- return /* @__PURE__ */ jsx62(TelephoneInput_default, { ...props });
7322
+ return /* @__PURE__ */ jsx61(TelephoneInput_default, { component, onSubmit, ...rest });
7284
7323
  }
7285
7324
  if (inputVariant === "NUMBER" || inputType === "number") {
7286
- return /* @__PURE__ */ jsx62(NumberInput_default, { ...props });
7325
+ return /* @__PURE__ */ jsx61(NumberInput_default, { component, onSubmit, ...rest });
7287
7326
  }
7288
7327
  if (inputVariant === "DATE" || inputType === "date") {
7289
- return /* @__PURE__ */ jsx62(DateInput_default, { ...props });
7328
+ return /* @__PURE__ */ jsx61(DateInput_default, { component, onSubmit, ...rest });
7290
7329
  }
7291
7330
  if (inputVariant === "CHECKBOX" || inputType === "checkbox") {
7292
- return /* @__PURE__ */ jsx62(CheckboxInput_default, { ...props });
7331
+ return /* @__PURE__ */ jsx61(CheckboxInput_default, { component, onSubmit, ...rest });
7293
7332
  }
7294
- return /* @__PURE__ */ jsx62(TextInput_default, { ...props });
7333
+ return /* @__PURE__ */ jsx61(TextInput_default, { component, onSubmit, ...rest });
7295
7334
  case EmbeddedFlowComponentType.Button: {
7296
7335
  const buttonVariant = component.variant?.toUpperCase();
7297
7336
  const buttonText = component.config["text"] || component.config["label"] || "";
7298
- if (buttonVariant === "SOCIAL" && buttonText.toLowerCase().includes("google")) {
7299
- return /* @__PURE__ */ jsx62(GoogleButton_default2, { ...props });
7337
+ if (buttonVariant === "SOCIAL") {
7338
+ if (buttonText.toLowerCase().includes("google")) {
7339
+ return /* @__PURE__ */ jsx61(GoogleButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7340
+ }
7341
+ if (buttonText.toLowerCase().includes("github")) {
7342
+ return /* @__PURE__ */ jsx61(GitHubButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7343
+ }
7344
+ if (buttonText.toLowerCase().includes("microsoft")) {
7345
+ return /* @__PURE__ */ jsx61(MicrosoftButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7346
+ }
7347
+ if (buttonText.toLowerCase().includes("facebook")) {
7348
+ return /* @__PURE__ */ jsx61(FacebookButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7349
+ }
7350
+ if (buttonText.toLowerCase().includes("linkedin")) {
7351
+ return /* @__PURE__ */ jsx61(LinkedInButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7352
+ }
7353
+ if (buttonText.toLowerCase().includes("ethereum")) {
7354
+ return /* @__PURE__ */ jsx61(SignInWithEthereumButton_default, { onClick: () => onSubmit(component, {}), ...rest, children: buttonText });
7355
+ }
7300
7356
  }
7301
- return /* @__PURE__ */ jsx62(SubmitButton_default, { ...props });
7357
+ return /* @__PURE__ */ jsx61(SubmitButton_default, { component, onSubmit, ...rest });
7302
7358
  }
7303
7359
  case EmbeddedFlowComponentType.Form:
7304
- return /* @__PURE__ */ jsx62(FormContainer_default, { ...props });
7360
+ return /* @__PURE__ */ jsx61(FormContainer_default, { component, onSubmit, ...rest });
7305
7361
  case EmbeddedFlowComponentType.Divider:
7306
- return /* @__PURE__ */ jsx62(DividerComponent_default, { ...props });
7362
+ return /* @__PURE__ */ jsx61(DividerComponent_default, { component, onSubmit, ...rest });
7307
7363
  case EmbeddedFlowComponentType.Image:
7308
- return /* @__PURE__ */ jsx62(ImageComponent_default, { ...props });
7364
+ return /* @__PURE__ */ jsx61(ImageComponent_default, { component, onSubmit, ...rest });
7309
7365
  default:
7310
- return /* @__PURE__ */ jsx62("div", {});
7366
+ return /* @__PURE__ */ jsx61("div", {});
7311
7367
  }
7312
7368
  };
7313
7369
  var createSignUpOptionFromComponent = (component, formValues, touchedFields, formErrors, isLoading, isFormValid, onInputChange, options) => createSignUpComponent({
@@ -7479,13 +7535,13 @@ var useStyles17 = (theme, colorScheme) => {
7479
7535
  var BaseSignUp_styles_default = useStyles17;
7480
7536
 
7481
7537
  // src/components/presentation/SignUp/BaseSignUp.tsx
7482
- import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
7538
+ import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
7483
7539
  var BaseSignUp = (props) => {
7484
7540
  const { theme, colorScheme } = useTheme_default();
7485
7541
  const styles = BaseSignUp_styles_default(theme, colorScheme);
7486
- return /* @__PURE__ */ jsxs28("div", { children: [
7487
- /* @__PURE__ */ jsx63("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx63(Logo_default, { size: "large" }) }),
7488
- /* @__PURE__ */ jsx63(FlowProvider_default, { children: /* @__PURE__ */ jsx63(BaseSignUpContent, { ...props }) })
7542
+ return /* @__PURE__ */ jsxs27("div", { children: [
7543
+ /* @__PURE__ */ jsx62("div", { className: styles.logoContainer, children: /* @__PURE__ */ jsx62(Logo_default, { size: "large" }) }),
7544
+ /* @__PURE__ */ jsx62(FlowProvider_default, { children: /* @__PURE__ */ jsx62(BaseSignUpContent, { ...props }) })
7489
7545
  ] });
7490
7546
  };
7491
7547
  var BaseSignUpContent = ({
@@ -7843,30 +7899,30 @@ var BaseSignUpContent = ({
7843
7899
  t
7844
7900
  ]);
7845
7901
  if (!isFlowInitialized && isLoading) {
7846
- return /* @__PURE__ */ jsx63(Card_default, { className: cx20(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx63(Card_default.Content, { children: /* @__PURE__ */ jsx63("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx63(Spinner_default, { size: "medium" }) }) }) });
7902
+ return /* @__PURE__ */ jsx62(Card_default, { className: cx20(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx62(Card_default.Content, { children: /* @__PURE__ */ jsx62("div", { className: styles.loadingContainer, children: /* @__PURE__ */ jsx62(Spinner_default, { size: "medium" }) }) }) });
7847
7903
  }
7848
7904
  if (!currentFlow) {
7849
- return /* @__PURE__ */ jsx63(Card_default, { className: cx20(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx63(Card_default.Content, { children: /* @__PURE__ */ jsxs28(Alert_default, { variant: "error", className: errorClasses, children: [
7850
- /* @__PURE__ */ jsx63(Alert_default.Title, { children: t("errors.title") || "Error" }),
7851
- /* @__PURE__ */ jsx63(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7905
+ return /* @__PURE__ */ jsx62(Card_default, { className: cx20(containerClasses, styles.card), variant, children: /* @__PURE__ */ jsx62(Card_default.Content, { children: /* @__PURE__ */ jsxs27(Alert_default, { variant: "error", className: errorClasses, children: [
7906
+ /* @__PURE__ */ jsx62(Alert_default.Title, { children: t("errors.title") || "Error" }),
7907
+ /* @__PURE__ */ jsx62(Alert_default.Description, { children: error || t("errors.sign.up.flow.initialization.failure") })
7852
7908
  ] }) }) });
7853
7909
  }
7854
- return /* @__PURE__ */ jsxs28(Card_default, { className: cx20(containerClasses, styles.card), variant, children: [
7855
- flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx63(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx63("div", { className: styles.messagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx63(
7910
+ return /* @__PURE__ */ jsxs27(Card_default, { className: cx20(containerClasses, styles.card), variant, children: [
7911
+ flowMessages && flowMessages.length > 0 && /* @__PURE__ */ jsx62(Card_default.Header, { className: styles.header, children: /* @__PURE__ */ jsx62("div", { className: styles.messagesContainer, children: flowMessages.map((message, index) => /* @__PURE__ */ jsx62(
7856
7912
  Alert_default,
7857
7913
  {
7858
7914
  variant: message.type?.toLowerCase() === "error" ? "error" : "info",
7859
7915
  className: cx20(styles.messageItem, messageClasses),
7860
- children: /* @__PURE__ */ jsx63(Alert_default.Description, { children: message.message })
7916
+ children: /* @__PURE__ */ jsx62(Alert_default.Description, { children: message.message })
7861
7917
  },
7862
7918
  message.id || index
7863
7919
  )) }) }),
7864
- /* @__PURE__ */ jsxs28(Card_default.Content, { children: [
7865
- error && /* @__PURE__ */ jsxs28(Alert_default, { variant: "error", className: cx20(styles.errorContainer, errorClasses), children: [
7866
- /* @__PURE__ */ jsx63(Alert_default.Title, { children: t("errors.title") || "Error" }),
7867
- /* @__PURE__ */ jsx63(Alert_default.Description, { children: error })
7920
+ /* @__PURE__ */ jsxs27(Card_default.Content, { children: [
7921
+ error && /* @__PURE__ */ jsxs27(Alert_default, { variant: "error", className: cx20(styles.errorContainer, errorClasses), children: [
7922
+ /* @__PURE__ */ jsx62(Alert_default.Title, { children: t("errors.title") || "Error" }),
7923
+ /* @__PURE__ */ jsx62(Alert_default.Description, { children: error })
7868
7924
  ] }),
7869
- /* @__PURE__ */ jsx63("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7925
+ /* @__PURE__ */ jsx62("div", { className: styles.contentContainer, children: currentFlow.data?.components && renderComponents(currentFlow.data.components) })
7870
7926
  ] })
7871
7927
  ] });
7872
7928
  };
@@ -7877,7 +7933,7 @@ import {
7877
7933
  EmbeddedFlowResponseType as EmbeddedFlowResponseType2,
7878
7934
  EmbeddedFlowType
7879
7935
  } from "@asgardeo/browser";
7880
- import { jsx as jsx64 } from "react/jsx-runtime";
7936
+ import { jsx as jsx63 } from "react/jsx-runtime";
7881
7937
  var SignUp = ({
7882
7938
  className,
7883
7939
  size = "medium",
@@ -7904,7 +7960,7 @@ var SignUp = ({
7904
7960
  window.location.href = response.data.redirectURL;
7905
7961
  }
7906
7962
  };
7907
- return /* @__PURE__ */ jsx64(
7963
+ return /* @__PURE__ */ jsx63(
7908
7964
  BaseSignUp_default,
7909
7965
  {
7910
7966
  afterSignUpUrl,
@@ -7922,41 +7978,41 @@ var SignUp = ({
7922
7978
  var SignUp_default = SignUp;
7923
7979
 
7924
7980
  // src/components/presentation/User/BaseUser.tsx
7925
- import { Fragment as Fragment12, jsx as jsx65 } from "react/jsx-runtime";
7981
+ import { Fragment as Fragment12, jsx as jsx64 } from "react/jsx-runtime";
7926
7982
  var BaseUser = ({ user, children, fallback = null }) => {
7927
7983
  if (!user) {
7928
- return /* @__PURE__ */ jsx65(Fragment12, { children: fallback });
7984
+ return /* @__PURE__ */ jsx64(Fragment12, { children: fallback });
7929
7985
  }
7930
- return /* @__PURE__ */ jsx65(Fragment12, { children: children(user) });
7986
+ return /* @__PURE__ */ jsx64(Fragment12, { children: children(user) });
7931
7987
  };
7932
7988
  BaseUser.displayName = "BaseUser";
7933
7989
  var BaseUser_default = BaseUser;
7934
7990
 
7935
7991
  // src/components/presentation/User/User.tsx
7936
- import { jsx as jsx66 } from "react/jsx-runtime";
7992
+ import { jsx as jsx65 } from "react/jsx-runtime";
7937
7993
  var User5 = ({ children, fallback = null }) => {
7938
7994
  const { user } = useAsgardeo_default();
7939
- return /* @__PURE__ */ jsx66(BaseUser_default, { user, fallback, children });
7995
+ return /* @__PURE__ */ jsx65(BaseUser_default, { user, fallback, children });
7940
7996
  };
7941
7997
  User5.displayName = "User";
7942
7998
  var User_default = User5;
7943
7999
 
7944
8000
  // src/components/presentation/Organization/BaseOrganization.tsx
7945
- import { Fragment as Fragment13, jsx as jsx67 } from "react/jsx-runtime";
8001
+ import { Fragment as Fragment13, jsx as jsx66 } from "react/jsx-runtime";
7946
8002
  var BaseOrganization = ({ children, fallback = null, organization }) => {
7947
8003
  if (!organization) {
7948
- return /* @__PURE__ */ jsx67(Fragment13, { children: fallback });
8004
+ return /* @__PURE__ */ jsx66(Fragment13, { children: fallback });
7949
8005
  }
7950
- return /* @__PURE__ */ jsx67(Fragment13, { children: children(organization) });
8006
+ return /* @__PURE__ */ jsx66(Fragment13, { children: children(organization) });
7951
8007
  };
7952
8008
  BaseOrganization.displayName = "BaseOrganization";
7953
8009
  var BaseOrganization_default = BaseOrganization;
7954
8010
 
7955
8011
  // src/components/presentation/Organization/Organization.tsx
7956
- import { jsx as jsx68 } from "react/jsx-runtime";
8012
+ import { jsx as jsx67 } from "react/jsx-runtime";
7957
8013
  var Organization5 = ({ children, fallback = null }) => {
7958
8014
  const { currentOrganization } = useOrganization_default();
7959
- return /* @__PURE__ */ jsx68(BaseOrganization_default, { organization: currentOrganization, fallback, children });
8015
+ return /* @__PURE__ */ jsx67(BaseOrganization_default, { organization: currentOrganization, fallback, children });
7960
8016
  };
7961
8017
  Organization5.displayName = "Organization";
7962
8018
  var Organization_default = Organization5;
@@ -8044,18 +8100,25 @@ var useStyles18 = (theme, colorScheme, size, variant, backgroundColor) => {
8044
8100
  }
8045
8101
  }
8046
8102
  `;
8103
+ const iconStyles = css18`
8104
+ width: 60%;
8105
+ height: 60%;
8106
+ fill: ${backgroundColor ? "#ffffff" : theme.vars.colors.text.secondary};
8107
+ opacity: 0.8;
8108
+ `;
8047
8109
  return {
8048
8110
  avatar: baseAvatar,
8049
8111
  variant: variantStyles[variant],
8050
8112
  image: imageStyles,
8051
- skeleton: skeletonStyles
8113
+ skeleton: skeletonStyles,
8114
+ icon: iconStyles
8052
8115
  };
8053
8116
  }, [theme, colorScheme, size, variant, backgroundColor]);
8054
8117
  };
8055
8118
  var Avatar_styles_default = useStyles18;
8056
8119
 
8057
8120
  // src/components/primitives/Avatar/Avatar.tsx
8058
- import { jsx as jsx69 } from "react/jsx-runtime";
8121
+ import { jsx as jsx68 } from "react/jsx-runtime";
8059
8122
  var Avatar = ({
8060
8123
  alt = "User avatar",
8061
8124
  background = "random",
@@ -8063,7 +8126,8 @@ var Avatar = ({
8063
8126
  imageUrl,
8064
8127
  name,
8065
8128
  size = 64,
8066
- variant = "circular"
8129
+ variant = "circular",
8130
+ isLoading = false
8067
8131
  }) => {
8068
8132
  const { theme, colorScheme } = useTheme_default();
8069
8133
  const generateBackgroundColor = (inputString) => {
@@ -8097,17 +8161,29 @@ var Avatar = ({
8097
8161
  return background;
8098
8162
  }, [background, name, imageUrl]);
8099
8163
  const styles = Avatar_styles_default(theme, colorScheme, size, variant, backgroundColor);
8164
+ const isDefaultState = !imageUrl && !name && !isLoading;
8100
8165
  const getInitials = (fullName) => fullName.split(" ").map((part) => part[0]).slice(0, 2).join("").toUpperCase();
8101
8166
  const renderContent = () => {
8102
8167
  if (imageUrl) {
8103
- return /* @__PURE__ */ jsx69("img", { src: imageUrl, alt, className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "image")), styles.image) });
8168
+ return /* @__PURE__ */ jsx68("img", { src: imageUrl, alt, className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "image")), styles.image) });
8104
8169
  }
8105
8170
  if (name) {
8106
8171
  return getInitials(name);
8107
8172
  }
8108
- return /* @__PURE__ */ jsx69("div", { className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "skeleton")), styles.skeleton) });
8173
+ if (isLoading) {
8174
+ return /* @__PURE__ */ jsx68("div", { className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "skeleton")), styles.skeleton) });
8175
+ }
8176
+ return /* @__PURE__ */ jsx68(
8177
+ "svg",
8178
+ {
8179
+ xmlns: "http://www.w3.org/2000/svg",
8180
+ viewBox: "0 0 640 640",
8181
+ className: cx21(withVendorCSSClassPrefix21(bem16("avatar", "icon")), styles.icon),
8182
+ children: /* @__PURE__ */ jsx68("path", { d: "M240 192C240 147.8 275.8 112 320 112C364.2 112 400 147.8 400 192C400 236.2 364.2 272 320 272C275.8 272 240 236.2 240 192zM448 192C448 121.3 390.7 64 320 64C249.3 64 192 121.3 192 192C192 262.7 249.3 320 320 320C390.7 320 448 262.7 448 192zM144 544C144 473.3 201.3 416 272 416L368 416C438.7 416 496 473.3 496 544L496 552C496 565.3 506.7 576 520 576C533.3 576 544 565.3 544 552L544 544C544 446.8 465.2 368 368 368L272 368C174.8 368 96 446.8 96 544L96 552C96 565.3 106.7 576 120 576C133.3 576 144 565.3 144 552L144 544z" })
8183
+ }
8184
+ );
8109
8185
  };
8110
- return /* @__PURE__ */ jsx69(
8186
+ return /* @__PURE__ */ jsx68(
8111
8187
  "div",
8112
8188
  {
8113
8189
  className: cx21(
@@ -8115,6 +8191,7 @@ var Avatar = ({
8115
8191
  styles.avatar,
8116
8192
  styles.variant,
8117
8193
  withVendorCSSClassPrefix21(bem16("avatar", null, variant)),
8194
+ isDefaultState && withVendorCSSClassPrefix21(bem16("avatar", "default")),
8118
8195
  className
8119
8196
  ),
8120
8197
  children: renderContent()
@@ -8141,8 +8218,8 @@ import { cx as cx22 } from "@emotion/css";
8141
8218
  import React from "react";
8142
8219
 
8143
8220
  // src/components/primitives/Icons/LogOut.tsx
8144
- import { jsx as jsx70, jsxs as jsxs29 } from "react/jsx-runtime";
8145
- var LogOut = (props) => /* @__PURE__ */ jsxs29(
8221
+ import { jsx as jsx69, jsxs as jsxs28 } from "react/jsx-runtime";
8222
+ var LogOut = (props) => /* @__PURE__ */ jsxs28(
8146
8223
  "svg",
8147
8224
  {
8148
8225
  xmlns: "http://www.w3.org/2000/svg",
@@ -8156,17 +8233,17 @@ var LogOut = (props) => /* @__PURE__ */ jsxs29(
8156
8233
  strokeLinejoin: "round",
8157
8234
  ...props,
8158
8235
  children: [
8159
- /* @__PURE__ */ jsx70("path", { d: "m16 17 5-5-5-5" }),
8160
- /* @__PURE__ */ jsx70("path", { d: "M21 12H9" }),
8161
- /* @__PURE__ */ jsx70("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8236
+ /* @__PURE__ */ jsx69("path", { d: "m16 17 5-5-5-5" }),
8237
+ /* @__PURE__ */ jsx69("path", { d: "M21 12H9" }),
8238
+ /* @__PURE__ */ jsx69("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })
8162
8239
  ]
8163
8240
  }
8164
8241
  );
8165
8242
  var LogOut_default = LogOut;
8166
8243
 
8167
8244
  // src/components/primitives/Icons/Plus.tsx
8168
- import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
8169
- var Plus = (props) => /* @__PURE__ */ jsxs30(
8245
+ import { jsx as jsx70, jsxs as jsxs29 } from "react/jsx-runtime";
8246
+ var Plus = (props) => /* @__PURE__ */ jsxs29(
8170
8247
  "svg",
8171
8248
  {
8172
8249
  xmlns: "http://www.w3.org/2000/svg",
@@ -8180,16 +8257,16 @@ var Plus = (props) => /* @__PURE__ */ jsxs30(
8180
8257
  strokeLinejoin: "round",
8181
8258
  ...props,
8182
8259
  children: [
8183
- /* @__PURE__ */ jsx71("path", { d: "M5 12h14" }),
8184
- /* @__PURE__ */ jsx71("path", { d: "M12 5v14" })
8260
+ /* @__PURE__ */ jsx70("path", { d: "M5 12h14" }),
8261
+ /* @__PURE__ */ jsx70("path", { d: "M12 5v14" })
8185
8262
  ]
8186
8263
  }
8187
8264
  );
8188
8265
  var Plus_default = Plus;
8189
8266
 
8190
8267
  // src/components/primitives/Icons/User.tsx
8191
- import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
8192
- var User7 = (props) => /* @__PURE__ */ jsxs31(
8268
+ import { jsx as jsx71, jsxs as jsxs30 } from "react/jsx-runtime";
8269
+ var User7 = (props) => /* @__PURE__ */ jsxs30(
8193
8270
  "svg",
8194
8271
  {
8195
8272
  xmlns: "http://www.w3.org/2000/svg",
@@ -8203,16 +8280,16 @@ var User7 = (props) => /* @__PURE__ */ jsxs31(
8203
8280
  strokeLinejoin: "round",
8204
8281
  ...props,
8205
8282
  children: [
8206
- /* @__PURE__ */ jsx72("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8207
- /* @__PURE__ */ jsx72("circle", { cx: "12", cy: "7", r: "4" })
8283
+ /* @__PURE__ */ jsx71("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
8284
+ /* @__PURE__ */ jsx71("circle", { cx: "12", cy: "7", r: "4" })
8208
8285
  ]
8209
8286
  }
8210
8287
  );
8211
8288
  var User_default2 = User7;
8212
8289
 
8213
8290
  // src/components/primitives/Icons/X.tsx
8214
- import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
8215
- var X = (props) => /* @__PURE__ */ jsxs32(
8291
+ import { jsx as jsx72, jsxs as jsxs31 } from "react/jsx-runtime";
8292
+ var X = (props) => /* @__PURE__ */ jsxs31(
8216
8293
  "svg",
8217
8294
  {
8218
8295
  xmlns: "http://www.w3.org/2000/svg",
@@ -8226,8 +8303,8 @@ var X = (props) => /* @__PURE__ */ jsxs32(
8226
8303
  strokeLinejoin: "round",
8227
8304
  ...props,
8228
8305
  children: [
8229
- /* @__PURE__ */ jsx73("path", { d: "M18 6 6 18" }),
8230
- /* @__PURE__ */ jsx73("path", { d: "m6 6 12 12" })
8306
+ /* @__PURE__ */ jsx72("path", { d: "M18 6 6 18" }),
8307
+ /* @__PURE__ */ jsx72("path", { d: "m6 6 12 12" })
8231
8308
  ]
8232
8309
  }
8233
8310
  );
@@ -8250,17 +8327,6 @@ var useStyles19 = (theme, colorScheme) => {
8250
8327
  border-radius: ${theme.vars.borderRadius.large};
8251
8328
  box-shadow: 0 2px 8px ${colorScheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(0, 0, 0, 0.15)"};
8252
8329
  outline: none;
8253
- max-width: 35vw;
8254
- min-width: 35vw;
8255
- @media (max-width: 900px) {
8256
- max-width: 80vw;
8257
- min-width: 80vw;
8258
- }
8259
- @media (max-width: 600px) {
8260
- max-width: 95vw;
8261
- min-width: 95vw;
8262
- }
8263
- max-height: 90vh;
8264
8330
  overflow-y: auto;
8265
8331
  z-index: 10000;
8266
8332
  `;
@@ -8310,7 +8376,7 @@ var useStyles19 = (theme, colorScheme) => {
8310
8376
  var Dialog_styles_default = useStyles19;
8311
8377
 
8312
8378
  // src/components/primitives/Dialog/Dialog.tsx
8313
- import { jsx as jsx74, jsxs as jsxs33 } from "react/jsx-runtime";
8379
+ import { jsx as jsx73, jsxs as jsxs32 } from "react/jsx-runtime";
8314
8380
  function useDialog({
8315
8381
  initialOpen = false,
8316
8382
  open: controlledOpen,
@@ -8356,7 +8422,7 @@ var useDialogContext = () => {
8356
8422
  };
8357
8423
  function Dialog({ children, ...options }) {
8358
8424
  const dialog = useDialog(options);
8359
- return /* @__PURE__ */ jsx74(DialogContext.Provider, { value: dialog, children });
8425
+ return /* @__PURE__ */ jsx73(DialogContext.Provider, { value: dialog, children });
8360
8426
  }
8361
8427
  var DialogTrigger = React.forwardRef(
8362
8428
  ({ children, asChild = false, ...props }, propRef) => {
@@ -8374,7 +8440,7 @@ var DialogTrigger = React.forwardRef(
8374
8440
  })
8375
8441
  );
8376
8442
  }
8377
- return /* @__PURE__ */ jsx74("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8443
+ return /* @__PURE__ */ jsx73("button", { ref, "data-state": context.open ? "open" : "closed", ...context.getReferenceProps(props), children });
8378
8444
  }
8379
8445
  );
8380
8446
  var DialogContent = React.forwardRef((props, propRef) => {
@@ -8383,7 +8449,7 @@ var DialogContent = React.forwardRef((props, propRef) => {
8383
8449
  const styles = Dialog_styles_default(theme, colorScheme);
8384
8450
  const ref = useMergeRefs([context.refs.setFloating, propRef]);
8385
8451
  if (!floatingContext.open) return null;
8386
- return /* @__PURE__ */ jsx74(FloatingPortal, { children: /* @__PURE__ */ jsx74(FloatingOverlay, { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "overlay")), styles.overlay), lockScroll: true, children: /* @__PURE__ */ jsx74(FloatingFocusManager, { context: floatingContext, children: /* @__PURE__ */ jsx74(
8452
+ return /* @__PURE__ */ jsx73(FloatingPortal, { children: /* @__PURE__ */ jsx73(FloatingOverlay, { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "overlay")), styles.overlay), lockScroll: true, children: /* @__PURE__ */ jsx73(FloatingFocusManager, { context: floatingContext, initialFocus: -1, children: /* @__PURE__ */ jsx73(
8387
8453
  "div",
8388
8454
  {
8389
8455
  ref,
@@ -8405,8 +8471,8 @@ var DialogHeading = React.forwardRef(
8405
8471
  context.setLabelId(id);
8406
8472
  return () => context.setLabelId(void 0);
8407
8473
  }, [id, context.setLabelId]);
8408
- return /* @__PURE__ */ jsxs33("div", { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "header")), styles.header), children: [
8409
- /* @__PURE__ */ jsx74(
8474
+ return /* @__PURE__ */ jsxs32("div", { className: cx22(withVendorCSSClassPrefix22(bem17("dialog", "header")), styles.header), children: [
8475
+ /* @__PURE__ */ jsx73(
8410
8476
  "h2",
8411
8477
  {
8412
8478
  ...props,
@@ -8416,7 +8482,7 @@ var DialogHeading = React.forwardRef(
8416
8482
  children
8417
8483
  }
8418
8484
  ),
8419
- /* @__PURE__ */ jsx74(
8485
+ /* @__PURE__ */ jsx73(
8420
8486
  Button_default,
8421
8487
  {
8422
8488
  color: "tertiary",
@@ -8425,7 +8491,7 @@ var DialogHeading = React.forwardRef(
8425
8491
  shape: "round",
8426
8492
  onClick: () => context.setOpen(false),
8427
8493
  "aria-label": "Close",
8428
- children: /* @__PURE__ */ jsx74(X_default, { width: 16, height: 16 })
8494
+ children: /* @__PURE__ */ jsx73(X_default, { width: 16, height: 16 })
8429
8495
  }
8430
8496
  )
8431
8497
  ] });
@@ -8441,7 +8507,7 @@ var DialogDescription = React.forwardRef(
8441
8507
  context.setDescriptionId(id);
8442
8508
  return () => context.setDescriptionId(void 0);
8443
8509
  }, [id, context.setDescriptionId]);
8444
- return /* @__PURE__ */ jsx74(
8510
+ return /* @__PURE__ */ jsx73(
8445
8511
  "p",
8446
8512
  {
8447
8513
  ...props,
@@ -8471,7 +8537,7 @@ var DialogClose = React.forwardRef(({ children, asChild = false, ...props }, pro
8471
8537
  onClick: handleClick
8472
8538
  });
8473
8539
  }
8474
- return /* @__PURE__ */ jsx74(
8540
+ return /* @__PURE__ */ jsx73(
8475
8541
  Button_default,
8476
8542
  {
8477
8543
  ...props,
@@ -8594,7 +8660,7 @@ var useStyles20 = (theme, colorScheme, disabled, hasError, canAddMore, canRemove
8594
8660
  var MultiInput_styles_default = useStyles20;
8595
8661
 
8596
8662
  // src/components/primitives/MultiInput/MultiInput.tsx
8597
- import { jsx as jsx75, jsxs as jsxs34 } from "react/jsx-runtime";
8663
+ import { jsx as jsx74, jsxs as jsxs33 } from "react/jsx-runtime";
8598
8664
  var MultiInput = ({
8599
8665
  label,
8600
8666
  error,
@@ -8617,8 +8683,8 @@ var MultiInput = ({
8617
8683
  const canAddMore = !maxFields || values.length < maxFields;
8618
8684
  const canRemove = values.length > minFields;
8619
8685
  const styles = MultiInput_styles_default(theme, colorScheme, !!disabled, !!error, canAddMore, canRemove);
8620
- const PlusIcon = ({ className: className2 }) => /* @__PURE__ */ jsx75("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx23(styles.icon, className2), children: /* @__PURE__ */ jsx75("path", { d: "M12 5v14M5 12h14" }) });
8621
- const BinIcon = ({ className: className2 }) => /* @__PURE__ */ jsx75("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx23(styles.icon, className2), children: /* @__PURE__ */ jsx75("path", { d: "M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14ZM10 11v6M14 11v6" }) });
8686
+ const PlusIcon = ({ className: className2 }) => /* @__PURE__ */ jsx74("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx23(styles.icon, className2), children: /* @__PURE__ */ jsx74("path", { d: "M12 5v14M5 12h14" }) });
8687
+ const BinIcon = ({ className: className2 }) => /* @__PURE__ */ jsx74("svg", { width: "16", height: "16", viewBox: "0 0 24 24", className: cx23(styles.icon, className2), children: /* @__PURE__ */ jsx74("path", { d: "M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14ZM10 11v6M14 11v6" }) });
8622
8688
  const handleAddValue = useCallback11(
8623
8689
  (newValue) => {
8624
8690
  if (newValue.trim() !== "" && (!maxFields || values.length < maxFields)) {
@@ -8662,9 +8728,9 @@ var MultiInput = ({
8662
8728
  };
8663
8729
  switch (fieldType) {
8664
8730
  case "DATE_TIME":
8665
- return /* @__PURE__ */ jsx75(DatePicker_default, { ...commonProps });
8731
+ return /* @__PURE__ */ jsx74(DatePicker_default, { ...commonProps });
8666
8732
  case "BOOLEAN":
8667
- return /* @__PURE__ */ jsx75(
8733
+ return /* @__PURE__ */ jsx74(
8668
8734
  Checkbox_default,
8669
8735
  {
8670
8736
  ...commonProps,
@@ -8673,7 +8739,7 @@ var MultiInput = ({
8673
8739
  }
8674
8740
  );
8675
8741
  default:
8676
- return /* @__PURE__ */ jsx75(TextField_default, { ...commonProps, type });
8742
+ return /* @__PURE__ */ jsx74(TextField_default, { ...commonProps, type });
8677
8743
  }
8678
8744
  },
8679
8745
  [placeholder, disabled, startIcon, endIcon, error, fieldType, type]
@@ -8685,7 +8751,7 @@ var MultiInput = ({
8685
8751
  setCurrentInputValue("");
8686
8752
  }
8687
8753
  }, [currentInputValue, handleAddValue]);
8688
- return /* @__PURE__ */ jsxs34(
8754
+ return /* @__PURE__ */ jsxs33(
8689
8755
  FormControl_default,
8690
8756
  {
8691
8757
  error,
@@ -8693,27 +8759,27 @@ var MultiInput = ({
8693
8759
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input")), className),
8694
8760
  style,
8695
8761
  children: [
8696
- label && /* @__PURE__ */ jsx75(InputLabel_default, { required, error: !!error, children: label }),
8697
- /* @__PURE__ */ jsxs34("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "container")), styles.container), children: [
8698
- /* @__PURE__ */ jsx75("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "input-row")), styles.inputRow), children: /* @__PURE__ */ jsx75("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "input-wrapper")), styles.inputWrapper), children: renderInputField(
8762
+ label && /* @__PURE__ */ jsx74(InputLabel_default, { required, error: !!error, children: label }),
8763
+ /* @__PURE__ */ jsxs33("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "container")), styles.container), children: [
8764
+ /* @__PURE__ */ jsx74("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "input-row")), styles.inputRow), children: /* @__PURE__ */ jsx74("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "input-wrapper")), styles.inputWrapper), children: renderInputField(
8699
8765
  currentInputValue,
8700
8766
  setCurrentInputValue,
8701
- canAddMore ? /* @__PURE__ */ jsx75(PlusIcon, { className: styles.plusIcon }) : void 0,
8767
+ canAddMore ? /* @__PURE__ */ jsx74(PlusIcon, { className: styles.plusIcon }) : void 0,
8702
8768
  canAddMore ? handleInputSubmit : void 0
8703
8769
  ) }) }),
8704
- values.length > 0 && /* @__PURE__ */ jsx75("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ jsxs34(
8770
+ values.length > 0 && /* @__PURE__ */ jsx74("div", { className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-container")), styles.listContainer), children: values.map((value, index) => /* @__PURE__ */ jsxs33(
8705
8771
  "div",
8706
8772
  {
8707
8773
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-item")), styles.listItem),
8708
8774
  children: [
8709
- /* @__PURE__ */ jsx75(
8775
+ /* @__PURE__ */ jsx74(
8710
8776
  "span",
8711
8777
  {
8712
8778
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "list-item-text")), styles.listItemText),
8713
8779
  children: value
8714
8780
  }
8715
8781
  ),
8716
- canRemove && /* @__PURE__ */ jsx75(
8782
+ canRemove && /* @__PURE__ */ jsx74(
8717
8783
  "button",
8718
8784
  {
8719
8785
  type: "button",
@@ -8721,7 +8787,7 @@ var MultiInput = ({
8721
8787
  disabled,
8722
8788
  className: cx23(withVendorCSSClassPrefix23(bem18("multi-input", "remove-button")), styles.removeButton),
8723
8789
  title: "Remove value",
8724
- children: /* @__PURE__ */ jsx75(BinIcon, { className: styles.icon })
8790
+ children: /* @__PURE__ */ jsx74(BinIcon, { className: styles.icon })
8725
8791
  }
8726
8792
  )
8727
8793
  ]
@@ -8909,7 +8975,7 @@ var useStyles21 = (theme, colorScheme) => {
8909
8975
  var BaseUserProfile_styles_default = useStyles21;
8910
8976
 
8911
8977
  // src/components/presentation/UserProfile/BaseUserProfile.tsx
8912
- import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs35 } from "react/jsx-runtime";
8978
+ import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs34 } from "react/jsx-runtime";
8913
8979
  var fieldsToSkip = [
8914
8980
  "roles.default",
8915
8981
  "active",
@@ -8945,13 +9011,31 @@ var BaseUserProfile = ({
8945
9011
  onOpenChange,
8946
9012
  onUpdate,
8947
9013
  open = false,
8948
- error = null
9014
+ error = null,
9015
+ isLoading = false,
9016
+ showFields = [],
9017
+ hideFields = []
8949
9018
  }) => {
8950
9019
  const { theme, colorScheme } = useTheme_default();
8951
9020
  const [editedUser, setEditedUser] = useState17(flattenedProfile || profile);
8952
9021
  const [editingFields, setEditingFields] = useState17({});
8953
9022
  const { t } = useTranslation_default();
8954
- const PencilIcon = () => /* @__PURE__ */ jsx76(
9023
+ const shouldShowField = useCallback12(
9024
+ (fieldName) => {
9025
+ if (fieldsToSkip.includes(fieldName)) {
9026
+ return false;
9027
+ }
9028
+ if (hideFields.length > 0 && hideFields.includes(fieldName)) {
9029
+ return false;
9030
+ }
9031
+ if (showFields.length > 0) {
9032
+ return showFields.includes(fieldName);
9033
+ }
9034
+ return true;
9035
+ },
9036
+ [showFields, hideFields]
9037
+ );
9038
+ const PencilIcon = () => /* @__PURE__ */ jsx75(
8955
9039
  "svg",
8956
9040
  {
8957
9041
  width: "16",
@@ -8962,7 +9046,7 @@ var BaseUserProfile = ({
8962
9046
  strokeWidth: "2",
8963
9047
  strokeLinecap: "round",
8964
9048
  strokeLinejoin: "round",
8965
- children: /* @__PURE__ */ jsx76("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
9049
+ children: /* @__PURE__ */ jsx75("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
8966
9050
  }
8967
9051
  );
8968
9052
  const toggleFieldEdit = useCallback12((fieldName) => {
@@ -8987,12 +9071,12 @@ var BaseUserProfile = ({
8987
9071
  }, []);
8988
9072
  const ObjectDisplay = ({ data }) => {
8989
9073
  if (!data || typeof data !== "object") return null;
8990
- return /* @__PURE__ */ jsx76("table", { className: styles.value, children: /* @__PURE__ */ jsx76("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs35("tr", { children: [
8991
- /* @__PURE__ */ jsx76("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs35("strong", { children: [
9074
+ return /* @__PURE__ */ jsx75("table", { className: styles.value, children: /* @__PURE__ */ jsx75("tbody", { children: Object.entries(data).map(([key, value]) => /* @__PURE__ */ jsxs34("tr", { children: [
9075
+ /* @__PURE__ */ jsx75("td", { className: styles.objectKey, children: /* @__PURE__ */ jsxs34("strong", { children: [
8992
9076
  formatLabel(key),
8993
9077
  ":"
8994
9078
  ] }) }),
8995
- /* @__PURE__ */ jsx76("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx76(ObjectDisplay, { data: value }) : String(value) })
9079
+ /* @__PURE__ */ jsx75("td", { className: styles.objectValue, children: typeof value === "object" ? /* @__PURE__ */ jsx75(ObjectDisplay, { data: value }) : String(value) })
8996
9080
  ] }, key)) }) });
8997
9081
  };
8998
9082
  function set(obj, path, value) {
@@ -9062,9 +9146,9 @@ var BaseUserProfile = ({
9062
9146
  const { value, displayName, description, name, type, required, mutability, subAttributes, multiValued } = schema;
9063
9147
  const label = displayName || description || name || "";
9064
9148
  if (subAttributes && Array.isArray(subAttributes)) {
9065
- return /* @__PURE__ */ jsx76(Fragment14, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9066
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9067
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: Array.isArray(subAttr.value) ? subAttr.value.map((item) => typeof item === "object" ? JSON.stringify(item) : String(item)).join(", ") : typeof subAttr.value === "object" ? JSON.stringify(subAttr.value) : String(subAttr.value) })
9149
+ return /* @__PURE__ */ jsx75(Fragment14, { children: subAttributes.map((subAttr, index) => /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9150
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: subAttr.displayName || subAttr.description || "" }),
9151
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: Array.isArray(subAttr.value) ? subAttr.value.map((item) => typeof item === "object" ? JSON.stringify(item) : String(item)).join(", ") : typeof subAttr.value === "object" ? JSON.stringify(subAttr.value) : String(subAttr.value) })
9068
9152
  ] }, index)) });
9069
9153
  }
9070
9154
  if (Array.isArray(value) || multiValued) {
@@ -9080,9 +9164,9 @@ var BaseUserProfile = ({
9080
9164
  } else {
9081
9165
  fieldValues = [];
9082
9166
  }
9083
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9084
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9085
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: /* @__PURE__ */ jsx76(
9167
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9168
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9169
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: /* @__PURE__ */ jsx75(
9086
9170
  MultiInput_default,
9087
9171
  {
9088
9172
  values: fieldValues,
@@ -9113,9 +9197,9 @@ var BaseUserProfile = ({
9113
9197
  } else {
9114
9198
  displayValue2 = "-";
9115
9199
  }
9116
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9117
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9118
- /* @__PURE__ */ jsx76("div", { className: cx24(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx76(
9200
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9201
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9202
+ /* @__PURE__ */ jsx75("div", { className: cx24(styles.value, !hasValues ? styles.valuePlaceholder : ""), children: !hasValues && isEditable2 && onStartEdit ? /* @__PURE__ */ jsx75(
9119
9203
  Button_default,
9120
9204
  {
9121
9205
  onClick: onStartEdit,
@@ -9130,7 +9214,7 @@ var BaseUserProfile = ({
9130
9214
  ] });
9131
9215
  }
9132
9216
  if (type === "COMPLEX" && typeof value === "object") {
9133
- return /* @__PURE__ */ jsx76(ObjectDisplay, { data: value });
9217
+ return /* @__PURE__ */ jsx75(ObjectDisplay, { data: value });
9134
9218
  }
9135
9219
  if (isEditing && onEditValue && mutability !== "READ_ONLY" && !readonlyFields.includes(name || "")) {
9136
9220
  const fieldValue = editedUser && name && editedUser[name] !== void 0 ? editedUser[name] : flattenedProfile && name && flattenedProfile[name] !== void 0 ? flattenedProfile[name] : value || "";
@@ -9145,16 +9229,16 @@ var BaseUserProfile = ({
9145
9229
  let field;
9146
9230
  switch (type) {
9147
9231
  case "STRING":
9148
- field = /* @__PURE__ */ jsx76(TextField_default, { ...commonProps });
9232
+ field = /* @__PURE__ */ jsx75(TextField_default, { ...commonProps });
9149
9233
  break;
9150
9234
  case "DATE_TIME":
9151
- field = /* @__PURE__ */ jsx76(DatePicker_default, { ...commonProps });
9235
+ field = /* @__PURE__ */ jsx75(DatePicker_default, { ...commonProps });
9152
9236
  break;
9153
9237
  case "BOOLEAN":
9154
- field = /* @__PURE__ */ jsx76(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9238
+ field = /* @__PURE__ */ jsx75(Checkbox_default, { ...commonProps, checked: !!fieldValue, onChange: (e) => onEditValue(e.target.checked) });
9155
9239
  break;
9156
9240
  case "COMPLEX":
9157
- field = /* @__PURE__ */ jsx76(
9241
+ field = /* @__PURE__ */ jsx75(
9158
9242
  "textarea",
9159
9243
  {
9160
9244
  value: fieldValue,
@@ -9166,11 +9250,11 @@ var BaseUserProfile = ({
9166
9250
  );
9167
9251
  break;
9168
9252
  default:
9169
- field = /* @__PURE__ */ jsx76(TextField_default, { ...commonProps });
9253
+ field = /* @__PURE__ */ jsx75(TextField_default, { ...commonProps });
9170
9254
  }
9171
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9172
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9173
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: field })
9255
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9256
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9257
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: field })
9174
9258
  ] });
9175
9259
  }
9176
9260
  const hasValue = value !== void 0 && value !== null && value !== "";
@@ -9183,9 +9267,9 @@ var BaseUserProfile = ({
9183
9267
  } else {
9184
9268
  displayValue = "-";
9185
9269
  }
9186
- return /* @__PURE__ */ jsxs35(Fragment14, { children: [
9187
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: label }),
9188
- /* @__PURE__ */ jsx76("div", { className: cx24(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx76(
9270
+ return /* @__PURE__ */ jsxs34(Fragment14, { children: [
9271
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: label }),
9272
+ /* @__PURE__ */ jsx75("div", { className: cx24(styles.value, !hasValue ? styles.valuePlaceholder : ""), children: !hasValue && isEditable && onStartEdit ? /* @__PURE__ */ jsx75(
9189
9273
  Button_default,
9190
9274
  {
9191
9275
  onClick: onStartEdit,
@@ -9213,8 +9297,8 @@ var BaseUserProfile = ({
9213
9297
  alignItems: "center",
9214
9298
  gap: theme.vars.spacing.unit
9215
9299
  };
9216
- return /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9217
- /* @__PURE__ */ jsx76("div", { className: styles.fieldInner, children: renderSchemaField(
9300
+ return /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9301
+ /* @__PURE__ */ jsx75("div", { className: styles.fieldInner, children: renderSchemaField(
9218
9302
  schema,
9219
9303
  isFieldEditing,
9220
9304
  (value) => {
@@ -9224,21 +9308,21 @@ var BaseUserProfile = ({
9224
9308
  },
9225
9309
  () => toggleFieldEdit(schema.name)
9226
9310
  ) }),
9227
- editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ jsxs35("div", { className: styles.fieldActions, children: [
9228
- isFieldEditing && /* @__PURE__ */ jsxs35(Fragment14, { children: [
9229
- /* @__PURE__ */ jsx76(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9230
- /* @__PURE__ */ jsx76(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9311
+ editable && schema.mutability !== "READ_ONLY" && !isReadonlyField && /* @__PURE__ */ jsxs34("div", { className: styles.fieldActions, children: [
9312
+ isFieldEditing && /* @__PURE__ */ jsxs34(Fragment14, { children: [
9313
+ /* @__PURE__ */ jsx75(Button_default, { size: "small", color: "primary", variant: "solid", onClick: () => handleFieldSave(schema), children: "Save" }),
9314
+ /* @__PURE__ */ jsx75(Button_default, { size: "small", color: "secondary", variant: "solid", onClick: () => handleFieldCancel(schema.name), children: "Cancel" })
9231
9315
  ] }),
9232
- !isFieldEditing && hasValue && /* @__PURE__ */ jsx76(
9316
+ !isFieldEditing && hasValue && /* @__PURE__ */ jsx75(
9233
9317
  Button_default,
9234
9318
  {
9235
9319
  size: "small",
9236
9320
  color: "tertiary",
9237
- variant: "text",
9321
+ variant: "icon",
9238
9322
  onClick: () => toggleFieldEdit(schema.name),
9239
9323
  title: "Edit",
9240
9324
  className: styles.editButton,
9241
- children: /* @__PURE__ */ jsx76(PencilIcon, {})
9325
+ children: /* @__PURE__ */ jsx75(PencilIcon, {})
9242
9326
  }
9243
9327
  )
9244
9328
  ] })
@@ -9267,30 +9351,31 @@ var BaseUserProfile = ({
9267
9351
  const renderProfileWithoutSchemas = () => {
9268
9352
  if (!currentUser) return null;
9269
9353
  const profileEntries = Object.entries(currentUser).filter(([key, value]) => {
9270
- if (fieldsToSkip.includes(key)) return false;
9354
+ if (!shouldShowField(key)) return false;
9271
9355
  return value !== void 0 && value !== "" && value !== null;
9272
9356
  }).sort(([a], [b]) => a.localeCompare(b));
9273
- return /* @__PURE__ */ jsx76(Fragment14, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ jsxs35("div", { className: styles.field, children: [
9274
- /* @__PURE__ */ jsx76("span", { className: styles.label, children: formatLabel(key) }),
9275
- /* @__PURE__ */ jsx76("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9357
+ return /* @__PURE__ */ jsx75(Fragment14, { children: profileEntries.map(([key, value]) => /* @__PURE__ */ jsxs34("div", { className: styles.field, children: [
9358
+ /* @__PURE__ */ jsx75("span", { className: styles.label, children: formatLabel(key) }),
9359
+ /* @__PURE__ */ jsx75("div", { className: styles.value, children: typeof value === "object" ? JSON.stringify(value, null, 2) : String(value) })
9276
9360
  ] }, key)) });
9277
9361
  };
9278
- const profileContent = /* @__PURE__ */ jsxs35(Card_default, { className: containerClasses, children: [
9279
- error && /* @__PURE__ */ jsxs35(Alert_default, { variant: "error", className: cx24(withVendorCSSClassPrefix25(bem19("user-profile", "alert")), styles.alert), children: [
9280
- /* @__PURE__ */ jsx76(Alert_default.Title, { children: t("errors.title") || "Error" }),
9281
- /* @__PURE__ */ jsx76(Alert_default.Description, { children: error })
9362
+ const profileContent = /* @__PURE__ */ jsxs34(Card_default, { className: containerClasses, children: [
9363
+ error && /* @__PURE__ */ jsxs34(Alert_default, { variant: "error", className: cx24(withVendorCSSClassPrefix25(bem19("user-profile", "alert")), styles.alert), children: [
9364
+ /* @__PURE__ */ jsx75(Alert_default.Title, { children: t("errors.title") || "Error" }),
9365
+ /* @__PURE__ */ jsx75(Alert_default.Description, { children: error })
9282
9366
  ] }),
9283
- /* @__PURE__ */ jsx76("div", { className: styles.header, children: /* @__PURE__ */ jsx76(
9367
+ /* @__PURE__ */ jsx75("div", { className: styles.header, children: /* @__PURE__ */ jsx75(
9284
9368
  Avatar,
9285
9369
  {
9286
9370
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, currentUser),
9287
9371
  name: getDisplayName(),
9288
9372
  size: 80,
9289
- alt: `${getDisplayName()}'s avatar`
9373
+ alt: `${getDisplayName()}'s avatar`,
9374
+ isLoading
9290
9375
  }
9291
9376
  ) }),
9292
- /* @__PURE__ */ jsx76("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9293
- if (fieldsToSkip.includes(schema.name)) return false;
9377
+ /* @__PURE__ */ jsx75("div", { className: styles.infoContainer, children: schemas && schemas.length > 0 ? schemas.filter((schema) => {
9378
+ if (!schema.name || !shouldShowField(schema.name)) return false;
9294
9379
  if (!editable) {
9295
9380
  const value = flattenedProfile && schema.name ? flattenedProfile[schema.name] : void 0;
9296
9381
  return value !== void 0 && value !== "" && value !== null;
@@ -9306,13 +9391,13 @@ var BaseUserProfile = ({
9306
9391
  ...schema,
9307
9392
  value
9308
9393
  };
9309
- return /* @__PURE__ */ jsx76("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9394
+ return /* @__PURE__ */ jsx75("div", { className: styles.info, children: renderUserInfo(schemaWithValue) }, schema.name || index);
9310
9395
  }) : renderProfileWithoutSchemas() })
9311
9396
  ] });
9312
9397
  if (mode === "popup") {
9313
- return /* @__PURE__ */ jsx76(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs35(Dialog_default.Content, { children: [
9314
- /* @__PURE__ */ jsx76(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9315
- /* @__PURE__ */ jsx76("div", { className: styles.popup, children: profileContent })
9398
+ return /* @__PURE__ */ jsx75(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs34(Dialog_default.Content, { children: [
9399
+ /* @__PURE__ */ jsx75(Dialog_default.Heading, { children: title ?? t("user.profile.title") }),
9400
+ /* @__PURE__ */ jsx75("div", { className: styles.popup, children: profileContent })
9316
9401
  ] }) });
9317
9402
  }
9318
9403
  return profileContent;
@@ -9353,9 +9438,9 @@ var updateMeProfile_default = updateMeProfile;
9353
9438
 
9354
9439
  // src/components/presentation/UserProfile/UserProfile.tsx
9355
9440
  import { AsgardeoError } from "@asgardeo/browser";
9356
- import { jsx as jsx77 } from "react/jsx-runtime";
9441
+ import { jsx as jsx76 } from "react/jsx-runtime";
9357
9442
  var UserProfile3 = ({ ...rest }) => {
9358
- const { baseUrl } = useAsgardeo_default();
9443
+ const { baseUrl, isLoading } = useAsgardeo_default();
9359
9444
  const { profile, flattenedProfile, schemas, onUpdateProfile } = useUser_default();
9360
9445
  const { t } = useTranslation_default();
9361
9446
  const [error, setError] = useState18(null);
@@ -9372,7 +9457,7 @@ var UserProfile3 = ({ ...rest }) => {
9372
9457
  setError(message);
9373
9458
  }
9374
9459
  };
9375
- return /* @__PURE__ */ jsx77(
9460
+ return /* @__PURE__ */ jsx76(
9376
9461
  BaseUserProfile_default,
9377
9462
  {
9378
9463
  profile,
@@ -9589,7 +9674,7 @@ var useStyles22 = (theme, colorScheme) => {
9589
9674
  var BaseUserDropdown_styles_default = useStyles22;
9590
9675
 
9591
9676
  // src/components/presentation/UserDropdown/BaseUserDropdown.tsx
9592
- import { jsx as jsx78, jsxs as jsxs36 } from "react/jsx-runtime";
9677
+ import { jsx as jsx77, jsxs as jsxs35 } from "react/jsx-runtime";
9593
9678
  var BaseUserDropdown = ({
9594
9679
  fallback = null,
9595
9680
  className = "",
@@ -9648,14 +9733,14 @@ var BaseUserDropdown = ({
9648
9733
  defaultMenuItems.push({
9649
9734
  label: "Manage Profile",
9650
9735
  onClick: onManageProfile,
9651
- icon: /* @__PURE__ */ jsx78(User_default2, { width: "16", height: "16" })
9736
+ icon: /* @__PURE__ */ jsx77(User_default2, { width: "16", height: "16" })
9652
9737
  });
9653
9738
  }
9654
9739
  if (onSignOut) {
9655
9740
  defaultMenuItems.push({
9656
9741
  label: "Sign Out",
9657
9742
  onClick: onSignOut,
9658
- icon: /* @__PURE__ */ jsx78(LogOut_default, { width: "16", height: "16" })
9743
+ icon: /* @__PURE__ */ jsx77(LogOut_default, { width: "16", height: "16" })
9659
9744
  });
9660
9745
  }
9661
9746
  const allMenuItems = [...menuItems];
@@ -9665,8 +9750,8 @@ var BaseUserDropdown = ({
9665
9750
  }
9666
9751
  allMenuItems.push(...defaultMenuItems);
9667
9752
  }
9668
- return /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown"), className), children: [
9669
- /* @__PURE__ */ jsxs36(
9753
+ return /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown"), className), children: [
9754
+ /* @__PURE__ */ jsxs35(
9670
9755
  Button_default,
9671
9756
  {
9672
9757
  ref: refs.setReference,
@@ -9676,7 +9761,7 @@ var BaseUserDropdown = ({
9676
9761
  size: "medium",
9677
9762
  ...getReferenceProps(),
9678
9763
  children: [
9679
- /* @__PURE__ */ jsx78(
9764
+ /* @__PURE__ */ jsx77(
9680
9765
  Avatar,
9681
9766
  {
9682
9767
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9685,7 +9770,7 @@ var BaseUserDropdown = ({
9685
9770
  alt: `${getDisplayName()}'s avatar`
9686
9771
  }
9687
9772
  ),
9688
- showTriggerLabel && /* @__PURE__ */ jsx78(
9773
+ showTriggerLabel && /* @__PURE__ */ jsx77(
9689
9774
  Typography_default,
9690
9775
  {
9691
9776
  variant: "body2",
@@ -9696,7 +9781,7 @@ var BaseUserDropdown = ({
9696
9781
  ]
9697
9782
  }
9698
9783
  ),
9699
- isOpen && /* @__PURE__ */ jsx78(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx78(FloatingFocusManager2, { context, modal: false, children: /* @__PURE__ */ jsxs36(
9784
+ isOpen && /* @__PURE__ */ jsx77(FloatingPortal2, { id: portalId, children: /* @__PURE__ */ jsx77(FloatingFocusManager2, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs35(
9700
9785
  "div",
9701
9786
  {
9702
9787
  ref: refs.setFloating,
@@ -9704,8 +9789,8 @@ var BaseUserDropdown = ({
9704
9789
  style: floatingStyles,
9705
9790
  ...getFloatingProps(),
9706
9791
  children: [
9707
- /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header"), styles.dropdownHeader), children: [
9708
- /* @__PURE__ */ jsx78(
9792
+ /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header"), styles.dropdownHeader), children: [
9793
+ /* @__PURE__ */ jsx77(
9709
9794
  Avatar,
9710
9795
  {
9711
9796
  imageUrl: getMappedUserProfileValue_default("picture", mergedMappings, user),
@@ -9714,8 +9799,8 @@ var BaseUserDropdown = ({
9714
9799
  alt: `${getDisplayName()}'s avatar`
9715
9800
  }
9716
9801
  ),
9717
- /* @__PURE__ */ jsxs36("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header-info"), styles.headerInfo), children: [
9718
- /* @__PURE__ */ jsx78(
9802
+ /* @__PURE__ */ jsxs35("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__header-info"), styles.headerInfo), children: [
9803
+ /* @__PURE__ */ jsx77(
9719
9804
  Typography_default,
9720
9805
  {
9721
9806
  noWrap: true,
@@ -9725,7 +9810,7 @@ var BaseUserDropdown = ({
9725
9810
  children: getDisplayName()
9726
9811
  }
9727
9812
  ),
9728
- /* @__PURE__ */ jsx78(
9813
+ /* @__PURE__ */ jsx77(
9729
9814
  Typography_default,
9730
9815
  {
9731
9816
  noWrap: true,
@@ -9737,7 +9822,7 @@ var BaseUserDropdown = ({
9737
9822
  )
9738
9823
  ] })
9739
9824
  ] }),
9740
- /* @__PURE__ */ jsx78("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__menu"), styles.dropdownMenu), children: allMenuItems.map((item, index) => /* @__PURE__ */ jsx78("div", { children: item.label === "" ? /* @__PURE__ */ jsx78("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__menu-divider"), styles.divider) }) : item.href ? /* @__PURE__ */ jsxs36(
9825
+ /* @__PURE__ */ jsx77("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__menu"), styles.dropdownMenu), children: allMenuItems.map((item, index) => /* @__PURE__ */ jsx77("div", { children: item.label === "" ? /* @__PURE__ */ jsx77("div", { className: cx25(withVendorCSSClassPrefix26("user-dropdown__menu-divider"), styles.divider) }) : item.href ? /* @__PURE__ */ jsxs35(
9741
9826
  "a",
9742
9827
  {
9743
9828
  href: item.href,
@@ -9751,10 +9836,10 @@ var BaseUserDropdown = ({
9751
9836
  onBlur: () => setHoveredItemIndex(null),
9752
9837
  children: [
9753
9838
  item.icon,
9754
- /* @__PURE__ */ jsx78("span", { children: item.label })
9839
+ /* @__PURE__ */ jsx77("span", { children: item.label })
9755
9840
  ]
9756
9841
  }
9757
- ) : /* @__PURE__ */ jsx78(
9842
+ ) : /* @__PURE__ */ jsx77(
9758
9843
  Button_default,
9759
9844
  {
9760
9845
  onClick: () => handleMenuItemClick(item),
@@ -9780,7 +9865,7 @@ var BaseUserDropdown_default = BaseUserDropdown;
9780
9865
 
9781
9866
  // src/components/presentation/UserDropdown/UserDropdown.tsx
9782
9867
  import { useState as useState20 } from "react";
9783
- import { Fragment as Fragment15, jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
9868
+ import { Fragment as Fragment15, jsx as jsx78, jsxs as jsxs36 } from "react/jsx-runtime";
9784
9869
  var UserDropdown = ({
9785
9870
  children,
9786
9871
  renderTrigger,
@@ -9809,14 +9894,14 @@ var UserDropdown = ({
9809
9894
  closeProfile
9810
9895
  };
9811
9896
  if (children) {
9812
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9897
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9813
9898
  children(renderProps),
9814
- /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9899
+ /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9815
9900
  ] });
9816
9901
  }
9817
9902
  if (renderTrigger || renderDropdown) {
9818
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9819
- renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx79(
9903
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9904
+ renderTrigger ? renderTrigger(renderProps) : /* @__PURE__ */ jsx78(
9820
9905
  BaseUserDropdown_default,
9821
9906
  {
9822
9907
  user,
@@ -9826,11 +9911,11 @@ var UserDropdown = ({
9826
9911
  ...rest
9827
9912
  }
9828
9913
  ),
9829
- /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9914
+ /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9830
9915
  ] });
9831
9916
  }
9832
- return /* @__PURE__ */ jsxs37(Fragment15, { children: [
9833
- /* @__PURE__ */ jsx79(
9917
+ return /* @__PURE__ */ jsxs36(Fragment15, { children: [
9918
+ /* @__PURE__ */ jsx78(
9834
9919
  BaseUserDropdown_default,
9835
9920
  {
9836
9921
  user,
@@ -9840,7 +9925,7 @@ var UserDropdown = ({
9840
9925
  ...rest
9841
9926
  }
9842
9927
  ),
9843
- isProfileOpen && /* @__PURE__ */ jsx79(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9928
+ isProfileOpen && /* @__PURE__ */ jsx78(UserProfile_default, { mode: "popup", open: isProfileOpen, onOpenChange: setIsProfileOpen })
9844
9929
  ] });
9845
9930
  };
9846
9931
  var UserDropdown_default = UserDropdown;
@@ -9863,9 +9948,9 @@ import { cx as cx26 } from "@emotion/css";
9863
9948
  import { useState as useState21 } from "react";
9864
9949
 
9865
9950
  // src/components/primitives/Icons/Building.tsx
9866
- import { jsx as jsx80, jsxs as jsxs38 } from "react/jsx-runtime";
9867
- var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs38("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
9868
- /* @__PURE__ */ jsx80(
9951
+ import { jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
9952
+ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs37("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
9953
+ /* @__PURE__ */ jsx79(
9869
9954
  "path",
9870
9955
  {
9871
9956
  d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",
@@ -9875,25 +9960,25 @@ var Building = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PU
9875
9960
  strokeLinejoin: "round"
9876
9961
  }
9877
9962
  ),
9878
- /* @__PURE__ */ jsx80("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9879
- /* @__PURE__ */ jsx80("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9880
- /* @__PURE__ */ jsx80("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9881
- /* @__PURE__ */ jsx80("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9882
- /* @__PURE__ */ jsx80("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9883
- /* @__PURE__ */ jsx80("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9963
+ /* @__PURE__ */ jsx79("path", { d: "M6 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9964
+ /* @__PURE__ */ jsx79("path", { d: "M6 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9965
+ /* @__PURE__ */ jsx79("path", { d: "M14 8h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9966
+ /* @__PURE__ */ jsx79("path", { d: "M14 12h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9967
+ /* @__PURE__ */ jsx79("path", { d: "M6 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
9968
+ /* @__PURE__ */ jsx79("path", { d: "M14 18h4", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
9884
9969
  ] });
9885
9970
  Building.displayName = "Building";
9886
9971
  var Building_default = Building;
9887
9972
 
9888
9973
  // src/components/primitives/Icons/Check.tsx
9889
- import { jsx as jsx81 } from "react/jsx-runtime";
9890
- var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx81("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx81("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9974
+ import { jsx as jsx80 } from "react/jsx-runtime";
9975
+ var Check = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx80("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx80("path", { d: "M20 6 9 17l-5-5", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9891
9976
  Check.displayName = "Check";
9892
9977
  var Check_default = Check;
9893
9978
 
9894
9979
  // src/components/primitives/Icons/ChevronDown.tsx
9895
- import { jsx as jsx82 } from "react/jsx-runtime";
9896
- var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx82("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx82("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9980
+ import { jsx as jsx81 } from "react/jsx-runtime";
9981
+ var ChevronDown = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsx81("svg", { width, height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx81("path", { d: "m6 9 6 6 6-6", stroke: color, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
9897
9982
  ChevronDown.displayName = "ChevronDown";
9898
9983
  var ChevronDown_default = ChevronDown;
9899
9984
 
@@ -10123,7 +10208,7 @@ var useStyles23 = (theme, colorScheme) => {
10123
10208
  var BaseOrganizationSwitcher_styles_default = useStyles23;
10124
10209
 
10125
10210
  // src/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.tsx
10126
- import { Fragment as Fragment16, jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
10211
+ import { Fragment as Fragment16, jsx as jsx82, jsxs as jsxs38 } from "react/jsx-runtime";
10127
10212
  var BaseOrganizationSwitcher = ({
10128
10213
  organizations,
10129
10214
  currentOrganization,
@@ -10176,8 +10261,8 @@ var BaseOrganizationSwitcher = ({
10176
10261
  const switchableOrganizations = organizations.filter(
10177
10262
  (org) => org.id !== currentOrganization?.id
10178
10263
  );
10179
- const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs39(Fragment16, { children: [
10180
- /* @__PURE__ */ jsx83(
10264
+ const defaultRenderOrganization2 = (organization, isSelected) => /* @__PURE__ */ jsxs38(Fragment16, { children: [
10265
+ /* @__PURE__ */ jsx82(
10181
10266
  Avatar,
10182
10267
  {
10183
10268
  variant: "square",
@@ -10187,24 +10272,24 @@ var BaseOrganizationSwitcher = ({
10187
10272
  alt: `${organization.name} avatar`
10188
10273
  }
10189
10274
  ),
10190
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.organizationInfo), children: [
10191
- /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", fontWeight: "medium", className: cx26(styles.organizationName), children: organization.name }),
10192
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.organizationMeta), children: [
10193
- showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsxs39("span", { children: [
10275
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.organizationInfo), children: [
10276
+ /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", fontWeight: "medium", className: cx26(styles.organizationName), children: organization.name }),
10277
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.organizationMeta), children: [
10278
+ showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsxs38("span", { children: [
10194
10279
  organization.memberCount,
10195
10280
  " ",
10196
10281
  organization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members")
10197
10282
  ] }),
10198
- showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx83("span", { children: " \u2022 " }),
10199
- showRole && organization.role && /* @__PURE__ */ jsx83("span", { className: cx26(styles.roleCapitalized), children: organization.role })
10283
+ showRole && organization.role && showMemberCount && organization.memberCount !== void 0 && /* @__PURE__ */ jsx82("span", { children: " \u2022 " }),
10284
+ showRole && organization.role && /* @__PURE__ */ jsx82("span", { className: cx26(styles.roleCapitalized), children: organization.role })
10200
10285
  ] })
10201
10286
  ] }),
10202
- isSelected && /* @__PURE__ */ jsx83(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10287
+ isSelected && /* @__PURE__ */ jsx82(Check_default, { width: "16", height: "16", color: theme.vars.colors.text.primary })
10203
10288
  ] });
10204
- const defaultRenderLoading2 = () => /* @__PURE__ */ jsx83("div", { className: cx26(styles.loadingContainer), children: /* @__PURE__ */ jsx83(Typography_default, { variant: "caption", className: cx26(styles.loadingText), children: t("organization.switcher.loading.organizations") }) });
10205
- const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx83("div", { className: cx26(styles.errorContainer), children: /* @__PURE__ */ jsx83(Typography_default, { variant: "caption", className: cx26(styles.errorText), children: errorMessage }) });
10206
- return /* @__PURE__ */ jsxs39("div", { className: cx26(styles.root, className), style, children: [
10207
- /* @__PURE__ */ jsxs39(
10289
+ const defaultRenderLoading2 = () => /* @__PURE__ */ jsx82("div", { className: cx26(styles.loadingContainer), children: /* @__PURE__ */ jsx82(Typography_default, { variant: "caption", className: cx26(styles.loadingText), children: t("organization.switcher.loading.organizations") }) });
10290
+ const defaultRenderError2 = (errorMessage) => /* @__PURE__ */ jsx82("div", { className: cx26(styles.errorContainer), children: /* @__PURE__ */ jsx82(Typography_default, { variant: "caption", className: cx26(styles.errorText), children: errorMessage }) });
10291
+ return /* @__PURE__ */ jsxs38("div", { className: cx26(styles.root, className), style, children: [
10292
+ /* @__PURE__ */ jsxs38(
10208
10293
  Button_default,
10209
10294
  {
10210
10295
  ref: refs.setReference,
@@ -10214,8 +10299,8 @@ var BaseOrganizationSwitcher = ({
10214
10299
  size: "medium",
10215
10300
  ...getReferenceProps(),
10216
10301
  children: [
10217
- currentOrganization ? /* @__PURE__ */ jsxs39(Fragment16, { children: [
10218
- /* @__PURE__ */ jsx83(
10302
+ currentOrganization ? /* @__PURE__ */ jsxs38(Fragment16, { children: [
10303
+ /* @__PURE__ */ jsx82(
10219
10304
  Avatar,
10220
10305
  {
10221
10306
  variant: "square",
@@ -10225,18 +10310,18 @@ var BaseOrganizationSwitcher = ({
10225
10310
  alt: `${currentOrganization.name} avatar`
10226
10311
  }
10227
10312
  ),
10228
- showTriggerLabel && /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: currentOrganization.name })
10229
- ] }) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
10230
- /* @__PURE__ */ jsx83(Building_default, { width: avatarSize, height: avatarSize }),
10231
- showTriggerLabel && /* @__PURE__ */ jsx83(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10313
+ showTriggerLabel && /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: currentOrganization.name })
10314
+ ] }) : /* @__PURE__ */ jsxs38(Fragment16, { children: [
10315
+ /* @__PURE__ */ jsx82(Building_default, { width: avatarSize, height: avatarSize }),
10316
+ showTriggerLabel && /* @__PURE__ */ jsx82(Typography_default, { variant: "body2", className: cx26(styles.triggerLabel), children: t("organization.switcher.select.organization") })
10232
10317
  ] }),
10233
- /* @__PURE__ */ jsx83(ChevronDown_default, { width: "16", height: "16" })
10318
+ /* @__PURE__ */ jsx82(ChevronDown_default, { width: "16", height: "16" })
10234
10319
  ]
10235
10320
  }
10236
10321
  ),
10237
- isOpen && /* @__PURE__ */ jsx83(FloatingPortal3, { id: portalId, children: /* @__PURE__ */ jsx83(FloatingFocusManager3, { context, modal: false, children: /* @__PURE__ */ jsxs39("div", { ref: refs.setFloating, className: cx26(styles.content), style: floatingStyles, ...getFloatingProps(), children: [
10238
- currentOrganization && /* @__PURE__ */ jsxs39("div", { className: cx26(styles.header), children: [
10239
- /* @__PURE__ */ jsx83(
10322
+ isOpen && /* @__PURE__ */ jsx82(FloatingPortal3, { id: portalId, children: /* @__PURE__ */ jsx82(FloatingFocusManager3, { context, modal: false, initialFocus: -1, children: /* @__PURE__ */ jsxs38("div", { ref: refs.setFloating, className: cx26(styles.content), style: floatingStyles, ...getFloatingProps(), children: [
10323
+ currentOrganization && /* @__PURE__ */ jsxs38("div", { className: cx26(styles.header), children: [
10324
+ /* @__PURE__ */ jsx82(
10240
10325
  Avatar,
10241
10326
  {
10242
10327
  variant: "square",
@@ -10246,10 +10331,10 @@ var BaseOrganizationSwitcher = ({
10246
10331
  alt: `${currentOrganization.name} avatar`
10247
10332
  }
10248
10333
  ),
10249
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.headerInfo), children: [
10250
- /* @__PURE__ */ jsx83(Typography_default, { noWrap: true, className: cx26(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10251
- /* @__PURE__ */ jsxs39("div", { className: cx26(styles.headerMeta), children: [
10252
- showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ jsxs39(
10334
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.headerInfo), children: [
10335
+ /* @__PURE__ */ jsx82(Typography_default, { noWrap: true, className: cx26(styles.headerName), variant: "body1", fontWeight: "medium", children: currentOrganization.name }),
10336
+ /* @__PURE__ */ jsxs38("div", { className: cx26(styles.headerMeta), children: [
10337
+ showMemberCount && currentOrganization.memberCount !== void 0 && /* @__PURE__ */ jsxs38(
10253
10338
  Typography_default,
10254
10339
  {
10255
10340
  noWrap: true,
@@ -10259,17 +10344,17 @@ var BaseOrganizationSwitcher = ({
10259
10344
  currentOrganization.memberCount,
10260
10345
  " ",
10261
10346
  currentOrganization.memberCount === 1 ? t("organization.switcher.member") : t("organization.switcher.members"),
10262
- showRole && currentOrganization.role && /* @__PURE__ */ jsxs39("span", { children: [
10347
+ showRole && currentOrganization.role && /* @__PURE__ */ jsxs38("span", { children: [
10263
10348
  " \u2022 ",
10264
10349
  currentOrganization.role
10265
10350
  ] })
10266
10351
  ]
10267
10352
  }
10268
10353
  ),
10269
- showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ jsx83(Typography_default, { noWrap: true, className: cx26(styles.headerRole), variant: "caption", color: "secondary", children: currentOrganization.role })
10354
+ showRole && currentOrganization.role && (!showMemberCount || currentOrganization.memberCount === void 0) && /* @__PURE__ */ jsx82(Typography_default, { noWrap: true, className: cx26(styles.headerRole), variant: "caption", color: "secondary", children: currentOrganization.role })
10270
10355
  ] })
10271
10356
  ] }),
10272
- onManageProfile && /* @__PURE__ */ jsx83(
10357
+ onManageProfile && /* @__PURE__ */ jsx82(
10273
10358
  Button_default,
10274
10359
  {
10275
10360
  onClick: onManageProfile,
@@ -10278,7 +10363,7 @@ var BaseOrganizationSwitcher = ({
10278
10363
  size: "small",
10279
10364
  "aria-label": "Manage Organization Profile",
10280
10365
  className: cx26(styles.manageButton),
10281
- endIcon: /* @__PURE__ */ jsxs39(
10366
+ endIcon: /* @__PURE__ */ jsxs38(
10282
10367
  "svg",
10283
10368
  {
10284
10369
  width: "16",
@@ -10290,8 +10375,8 @@ var BaseOrganizationSwitcher = ({
10290
10375
  strokeLinecap: "round",
10291
10376
  strokeLinejoin: "round",
10292
10377
  children: [
10293
- /* @__PURE__ */ jsx83("circle", { cx: "12", cy: "12", r: "3" }),
10294
- /* @__PURE__ */ jsx83("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1 1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
10378
+ /* @__PURE__ */ jsx82("circle", { cx: "12", cy: "12", r: "3" }),
10379
+ /* @__PURE__ */ jsx82("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1 1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
10295
10380
  ]
10296
10381
  }
10297
10382
  ),
@@ -10299,20 +10384,20 @@ var BaseOrganizationSwitcher = ({
10299
10384
  }
10300
10385
  )
10301
10386
  ] }),
10302
- organizations.length > 1 && /* @__PURE__ */ jsx83(
10387
+ organizations.length > 1 && /* @__PURE__ */ jsx82(
10303
10388
  "div",
10304
10389
  {
10305
10390
  className: cx26(styles.header, styles.sectionHeaderContainer),
10306
10391
  style: {
10307
10392
  borderTop: currentOrganization ? `1px solid ${theme.vars.colors.border}` : "none"
10308
10393
  },
10309
- children: /* @__PURE__ */ jsx83(Typography_default, { variant: "caption", fontWeight: 600, className: cx26(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10394
+ children: /* @__PURE__ */ jsx82(Typography_default, { variant: "caption", fontWeight: 600, className: cx26(styles.sectionHeader), children: t("organization.switcher.switch.organization") })
10310
10395
  }
10311
10396
  ),
10312
- /* @__PURE__ */ jsx83("div", { className: cx26(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
10397
+ /* @__PURE__ */ jsx82("div", { className: cx26(styles.menu), children: loading ? renderLoading ? renderLoading() : defaultRenderLoading2() : error ? renderError ? renderError(error) : defaultRenderError2(error) : /* @__PURE__ */ jsxs38(Fragment16, { children: [
10313
10398
  switchableOrganizations.map((organization) => {
10314
10399
  const isSelected = false;
10315
- return /* @__PURE__ */ jsx83(
10400
+ return /* @__PURE__ */ jsx82(
10316
10401
  Button_default,
10317
10402
  {
10318
10403
  onClick: () => handleOrganizationSwitch(organization),
@@ -10330,10 +10415,10 @@ var BaseOrganizationSwitcher = ({
10330
10415
  organization.id
10331
10416
  );
10332
10417
  }),
10333
- menuItems.length > 0 && /* @__PURE__ */ jsxs39(Fragment16, { children: [
10334
- /* @__PURE__ */ jsx83("div", { className: cx26(styles.menuDivider) }),
10418
+ menuItems.length > 0 && /* @__PURE__ */ jsxs38(Fragment16, { children: [
10419
+ /* @__PURE__ */ jsx82("div", { className: cx26(styles.menuDivider) }),
10335
10420
  menuItems.map(
10336
- (item, index) => /* @__PURE__ */ jsx83("div", { children: item.href ? /* @__PURE__ */ jsxs39(
10421
+ (item, index) => /* @__PURE__ */ jsx82("div", { children: item.href ? /* @__PURE__ */ jsxs38(
10337
10422
  "a",
10338
10423
  {
10339
10424
  href: item.href,
@@ -10347,10 +10432,10 @@ var BaseOrganizationSwitcher = ({
10347
10432
  onBlur: () => setHoveredItemIndex(null),
10348
10433
  children: [
10349
10434
  item.icon,
10350
- /* @__PURE__ */ jsx83("span", { children: item.label })
10435
+ /* @__PURE__ */ jsx82("span", { children: item.label })
10351
10436
  ]
10352
10437
  }
10353
- ) : /* @__PURE__ */ jsx83(
10438
+ ) : /* @__PURE__ */ jsx82(
10354
10439
  Button_default,
10355
10440
  {
10356
10441
  onClick: () => handleMenuItemClick(item),
@@ -10524,7 +10609,7 @@ var useStyles24 = (theme, colorScheme) => {
10524
10609
  var BaseCreateOrganization_styles_default = useStyles24;
10525
10610
 
10526
10611
  // src/components/presentation/CreateOrganization/BaseCreateOrganization.tsx
10527
- import { jsx as jsx84, jsxs as jsxs40 } from "react/jsx-runtime";
10612
+ import { jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
10528
10613
  var BaseCreateOrganization = ({
10529
10614
  cardLayout = true,
10530
10615
  className = "",
@@ -10611,13 +10696,13 @@ var BaseCreateOrganization = ({
10611
10696
  console.error("Form submission error:", submitError);
10612
10697
  }
10613
10698
  };
10614
- const createOrganizationContent = /* @__PURE__ */ jsx84("div", { className: cx27(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ jsxs40("div", { className: cx27(styles.content), children: [
10615
- /* @__PURE__ */ jsxs40("form", { id: "create-organization-form", className: cx27(styles.form), onSubmit: handleSubmit, children: [
10616
- error && /* @__PURE__ */ jsxs40(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10617
- /* @__PURE__ */ jsx84(Alert_default.Title, { children: "Error" }),
10618
- /* @__PURE__ */ jsx84(Alert_default.Description, { children: error })
10699
+ const createOrganizationContent = /* @__PURE__ */ jsx83("div", { className: cx27(styles.root, cardLayout && styles.card, className), style, children: /* @__PURE__ */ jsxs39("div", { className: cx27(styles.content), children: [
10700
+ /* @__PURE__ */ jsxs39("form", { id: "create-organization-form", className: cx27(styles.form), onSubmit: handleSubmit, children: [
10701
+ error && /* @__PURE__ */ jsxs39(Alert_default, { variant: "error", className: styles.errorAlert, children: [
10702
+ /* @__PURE__ */ jsx83(Alert_default.Title, { children: "Error" }),
10703
+ /* @__PURE__ */ jsx83(Alert_default.Description, { children: error })
10619
10704
  ] }),
10620
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx84(
10705
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx83(
10621
10706
  TextField_default,
10622
10707
  {
10623
10708
  label: `${t("organization.create.name.label")}`,
@@ -10630,7 +10715,7 @@ var BaseCreateOrganization = ({
10630
10715
  className: cx27(styles.input)
10631
10716
  }
10632
10717
  ) }),
10633
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx84(
10718
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsx83(
10634
10719
  TextField_default,
10635
10720
  {
10636
10721
  label: `${t("organization.create.handle.label") || "Organization Handle"}`,
@@ -10644,9 +10729,9 @@ var BaseCreateOrganization = ({
10644
10729
  className: cx27(styles.input)
10645
10730
  }
10646
10731
  ) }),
10647
- /* @__PURE__ */ jsx84("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsxs40(FormControl_default, { error: formErrors.description, children: [
10648
- /* @__PURE__ */ jsx84(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10649
- /* @__PURE__ */ jsx84(
10732
+ /* @__PURE__ */ jsx83("div", { className: cx27(styles.fieldGroup), children: /* @__PURE__ */ jsxs39(FormControl_default, { error: formErrors.description, children: [
10733
+ /* @__PURE__ */ jsx83(InputLabel_default, { required: true, children: t("organization.create.description.label") }),
10734
+ /* @__PURE__ */ jsx83(
10650
10735
  "textarea",
10651
10736
  {
10652
10737
  className: cx27(styles.textarea, formErrors.description && styles.textareaError),
@@ -10660,15 +10745,15 @@ var BaseCreateOrganization = ({
10660
10745
  ] }) }),
10661
10746
  renderAdditionalFields && renderAdditionalFields()
10662
10747
  ] }),
10663
- /* @__PURE__ */ jsxs40("div", { className: cx27(styles.actions), children: [
10664
- onCancel && /* @__PURE__ */ jsx84(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10665
- /* @__PURE__ */ jsx84(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.creating") : t("organization.create.button") })
10748
+ /* @__PURE__ */ jsxs39("div", { className: cx27(styles.actions), children: [
10749
+ onCancel && /* @__PURE__ */ jsx83(Button_default, { type: "button", variant: "outline", onClick: onCancel, disabled: loading, children: t("organization.create.cancel") }),
10750
+ /* @__PURE__ */ jsx83(Button_default, { type: "submit", variant: "solid", color: "primary", disabled: loading, form: "create-organization-form", children: loading ? t("organization.create.creating") : t("organization.create.button") })
10666
10751
  ] })
10667
10752
  ] }) });
10668
10753
  if (mode === "popup") {
10669
- return /* @__PURE__ */ jsx84(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs40(Dialog_default.Content, { children: [
10670
- /* @__PURE__ */ jsx84(Dialog_default.Heading, { children: title }),
10671
- /* @__PURE__ */ jsx84("div", { className: styles.popup, children: createOrganizationContent })
10754
+ return /* @__PURE__ */ jsx83(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs39(Dialog_default.Content, { children: [
10755
+ /* @__PURE__ */ jsx83(Dialog_default.Heading, { children: title }),
10756
+ /* @__PURE__ */ jsx83("div", { className: styles.popup, children: createOrganizationContent })
10672
10757
  ] }) });
10673
10758
  }
10674
10759
  return createOrganizationContent;
@@ -10704,7 +10789,7 @@ var createOrganization = async ({ fetcher, ...requestConfig }) => {
10704
10789
  var createOrganization_default = createOrganization;
10705
10790
 
10706
10791
  // src/components/presentation/CreateOrganization/CreateOrganization.tsx
10707
- import { Fragment as Fragment17, jsx as jsx85 } from "react/jsx-runtime";
10792
+ import { Fragment as Fragment17, jsx as jsx84 } from "react/jsx-runtime";
10708
10793
  var CreateOrganization = ({
10709
10794
  onCreateOrganization,
10710
10795
  fallback = null,
@@ -10720,7 +10805,7 @@ var CreateOrganization = ({
10720
10805
  return fallback;
10721
10806
  }
10722
10807
  if (!isSignedIn) {
10723
- return /* @__PURE__ */ jsx85(Fragment17, {});
10808
+ return /* @__PURE__ */ jsx84(Fragment17, {});
10724
10809
  }
10725
10810
  const parentId = defaultParentId || currentOrganization?.id || "";
10726
10811
  const handleSubmit = async (payload) => {
@@ -10754,7 +10839,7 @@ var CreateOrganization = ({
10754
10839
  setLoading(false);
10755
10840
  }
10756
10841
  };
10757
- return /* @__PURE__ */ jsx85(
10842
+ return /* @__PURE__ */ jsx84(
10758
10843
  BaseCreateOrganization,
10759
10844
  {
10760
10845
  onSubmit: handleSubmit,
@@ -10936,7 +11021,7 @@ var useStyles25 = (theme, colorScheme, disabled, readOnly, hasError) => {
10936
11021
  var KeyValueInput_styles_default = useStyles25;
10937
11022
 
10938
11023
  // src/components/primitives/KeyValueInput/KeyValueInput.tsx
10939
- import { jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
11024
+ import { jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
10940
11025
  var KeyValueInput = ({
10941
11026
  className = "",
10942
11027
  disabled = false,
@@ -11011,10 +11096,10 @@ var KeyValueInput = ({
11011
11096
  );
11012
11097
  const canAddMore = !maxPairs || pairs.length < maxPairs;
11013
11098
  const isAddDisabled = disabled || readOnly || !canAddMore || !newKey.trim() || !newValue.trim();
11014
- return /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input")), styles.container, className), children: [
11015
- label && /* @__PURE__ */ jsxs41("label", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "label")), styles.label), children: [
11099
+ return /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input")), styles.container, className), children: [
11100
+ label && /* @__PURE__ */ jsxs40("label", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "label")), styles.label), children: [
11016
11101
  label,
11017
- required && /* @__PURE__ */ jsx86(
11102
+ required && /* @__PURE__ */ jsx85(
11018
11103
  "span",
11019
11104
  {
11020
11105
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "required")), styles.requiredIndicator),
@@ -11022,13 +11107,13 @@ var KeyValueInput = ({
11022
11107
  }
11023
11108
  )
11024
11109
  ] }),
11025
- /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pairs-list")), styles.pairsList), children: [
11026
- pairs.length === 0 && readOnly ? /* @__PURE__ */ jsx86("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "empty-state")), styles.emptyState), children: "No attributes defined" }) : readOnly ? pairs.map((pair, index) => /* @__PURE__ */ jsxs41(
11110
+ /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pairs-list")), styles.pairsList), children: [
11111
+ pairs.length === 0 && readOnly ? /* @__PURE__ */ jsx85("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "empty-state")), styles.emptyState), children: "No attributes defined" }) : readOnly ? pairs.map((pair, index) => /* @__PURE__ */ jsxs40(
11027
11112
  "div",
11028
11113
  {
11029
11114
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-pair")), styles.readOnlyPair),
11030
11115
  children: [
11031
- /* @__PURE__ */ jsxs41(
11116
+ /* @__PURE__ */ jsxs40(
11032
11117
  "span",
11033
11118
  {
11034
11119
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-key")), styles.readOnlyKey),
@@ -11038,7 +11123,7 @@ var KeyValueInput = ({
11038
11123
  ]
11039
11124
  }
11040
11125
  ),
11041
- /* @__PURE__ */ jsx86(
11126
+ /* @__PURE__ */ jsx85(
11042
11127
  "span",
11043
11128
  {
11044
11129
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "readonly-value")), styles.readOnlyValue),
@@ -11048,12 +11133,12 @@ var KeyValueInput = ({
11048
11133
  ]
11049
11134
  },
11050
11135
  `${pair.key}-${index}`
11051
- )) : pairs.map((pair, index) => /* @__PURE__ */ jsxs41(
11136
+ )) : pairs.map((pair, index) => /* @__PURE__ */ jsxs40(
11052
11137
  "div",
11053
11138
  {
11054
11139
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "pair-row")), styles.pairRow),
11055
11140
  children: [
11056
- /* @__PURE__ */ jsx86(
11141
+ /* @__PURE__ */ jsx85(
11057
11142
  TextField_default,
11058
11143
  {
11059
11144
  placeholder: keyPlaceholder,
@@ -11064,7 +11149,7 @@ var KeyValueInput = ({
11064
11149
  "aria-label": `${keyLabel} ${index + 1}`
11065
11150
  }
11066
11151
  ),
11067
- /* @__PURE__ */ jsx86(
11152
+ /* @__PURE__ */ jsx85(
11068
11153
  TextField_default,
11069
11154
  {
11070
11155
  placeholder: valuePlaceholder,
@@ -11075,7 +11160,7 @@ var KeyValueInput = ({
11075
11160
  "aria-label": `${valueLabel} ${index + 1}`
11076
11161
  }
11077
11162
  ),
11078
- !readOnly && /* @__PURE__ */ jsx86(
11163
+ !readOnly && /* @__PURE__ */ jsx85(
11079
11164
  "button",
11080
11165
  {
11081
11166
  type: "button",
@@ -11083,15 +11168,15 @@ var KeyValueInput = ({
11083
11168
  disabled,
11084
11169
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "remove-button")), styles.removeButton),
11085
11170
  "aria-label": `${removeButtonText} ${pair.key}`,
11086
- children: /* @__PURE__ */ jsx86(X_default, { width: 16, height: 16 })
11171
+ children: /* @__PURE__ */ jsx85(X_default, { width: 16, height: 16 })
11087
11172
  }
11088
11173
  )
11089
11174
  ]
11090
11175
  },
11091
11176
  `${pair.key}-${index}`
11092
11177
  )),
11093
- !readOnly && /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-row")), styles.addRow), children: [
11094
- /* @__PURE__ */ jsx86(
11178
+ !readOnly && /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-row")), styles.addRow), children: [
11179
+ /* @__PURE__ */ jsx85(
11095
11180
  TextField_default,
11096
11181
  {
11097
11182
  placeholder: keyPlaceholder,
@@ -11102,7 +11187,7 @@ var KeyValueInput = ({
11102
11187
  "aria-label": "New key"
11103
11188
  }
11104
11189
  ),
11105
- /* @__PURE__ */ jsx86(
11190
+ /* @__PURE__ */ jsx85(
11106
11191
  TextField_default,
11107
11192
  {
11108
11193
  placeholder: valuePlaceholder,
@@ -11118,7 +11203,7 @@ var KeyValueInput = ({
11118
11203
  }
11119
11204
  }
11120
11205
  ),
11121
- /* @__PURE__ */ jsx86(
11206
+ /* @__PURE__ */ jsx85(
11122
11207
  "button",
11123
11208
  {
11124
11209
  type: "button",
@@ -11126,13 +11211,13 @@ var KeyValueInput = ({
11126
11211
  disabled: isAddDisabled,
11127
11212
  className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "add-button")), styles.addButton),
11128
11213
  "aria-label": "Add new key-value pair",
11129
- children: /* @__PURE__ */ jsx86(Plus_default, { width: 16, height: 16 })
11214
+ children: /* @__PURE__ */ jsx85(Plus_default, { width: 16, height: 16 })
11130
11215
  }
11131
11216
  )
11132
11217
  ] })
11133
11218
  ] }),
11134
- (helperText || error) && /* @__PURE__ */ jsx86("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11135
- maxPairs && /* @__PURE__ */ jsxs41("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "counter")), styles.counterText), children: [
11219
+ (helperText || error) && /* @__PURE__ */ jsx85("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "helper-text")), styles.helperText), children: error || helperText }),
11220
+ maxPairs && /* @__PURE__ */ jsxs40("div", { className: cx28(withVendorCSSClassPrefix27(bem20("key-value-input", "counter")), styles.counterText), children: [
11136
11221
  pairs.length,
11137
11222
  " of ",
11138
11223
  maxPairs,
@@ -11299,7 +11384,7 @@ var useStyles26 = (theme, colorScheme) => {
11299
11384
  var BaseOrganizationProfile_styles_default = useStyles26;
11300
11385
 
11301
11386
  // src/components/presentation/OrganizationProfile/BaseOrganizationProfile.tsx
11302
- import { Fragment as Fragment18, jsx as jsx87, jsxs as jsxs42 } from "react/jsx-runtime";
11387
+ import { Fragment as Fragment18, jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
11303
11388
  var BaseOrganizationProfile = ({
11304
11389
  fallback = null,
11305
11390
  className = "",
@@ -11350,7 +11435,7 @@ var BaseOrganizationProfile = ({
11350
11435
  const styles = BaseOrganizationProfile_styles_default(theme, colorScheme);
11351
11436
  const [editedOrganization, setEditedOrganization] = useState25(organization);
11352
11437
  const [editingFields, setEditingFields] = useState25({});
11353
- const PencilIcon = () => /* @__PURE__ */ jsx87(
11438
+ const PencilIcon = () => /* @__PURE__ */ jsx86(
11354
11439
  "svg",
11355
11440
  {
11356
11441
  width: "16",
@@ -11361,7 +11446,7 @@ var BaseOrganizationProfile = ({
11361
11446
  strokeWidth: "2",
11362
11447
  strokeLinecap: "round",
11363
11448
  strokeLinejoin: "round",
11364
- children: /* @__PURE__ */ jsx87("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11449
+ children: /* @__PURE__ */ jsx86("path", { d: "M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z" })
11365
11450
  }
11366
11451
  );
11367
11452
  const toggleFieldEdit = useCallback14((fieldName) => {
@@ -11424,7 +11509,7 @@ var BaseOrganizationProfile = ({
11424
11509
  let fieldInput;
11425
11510
  if (key === "attributes") {
11426
11511
  const attributesValue = typeof fieldValue === "object" && fieldValue !== null ? fieldValue : {};
11427
- fieldInput = /* @__PURE__ */ jsx87(
11512
+ fieldInput = /* @__PURE__ */ jsx86(
11428
11513
  KeyValueInput_default,
11429
11514
  {
11430
11515
  value: attributesValue,
@@ -11462,26 +11547,26 @@ var BaseOrganizationProfile = ({
11462
11547
  }
11463
11548
  );
11464
11549
  } else {
11465
- fieldInput = /* @__PURE__ */ jsx87(TextField_default, { ...commonProps });
11550
+ fieldInput = /* @__PURE__ */ jsx86(TextField_default, { ...commonProps });
11466
11551
  }
11467
- return /* @__PURE__ */ jsxs42(Fragment18, { children: [
11468
- /* @__PURE__ */ jsx87("span", { className: cx29(styles.label), children: label }),
11469
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.value), children: fieldInput })
11552
+ return /* @__PURE__ */ jsxs41(Fragment18, { children: [
11553
+ /* @__PURE__ */ jsx86("span", { className: cx29(styles.label), children: label }),
11554
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.value), children: fieldInput })
11470
11555
  ] });
11471
11556
  }
11472
11557
  const hasValue = value !== void 0 && value !== null && value !== "";
11473
11558
  const isFieldEditable = editable && fieldEditable;
11474
11559
  let displayValue;
11475
11560
  if (hasValue) {
11476
- displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx87(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11561
+ displayValue = key === "attributes" && typeof value === "object" && value !== null ? /* @__PURE__ */ jsx86(KeyValueInput_default, { value, readOnly: true, label: "" }) : String(renderedValue);
11477
11562
  } else if (isFieldEditable) {
11478
11563
  displayValue = getFieldPlaceholder(key);
11479
11564
  } else {
11480
11565
  displayValue = "-";
11481
11566
  }
11482
- return /* @__PURE__ */ jsxs42(Fragment18, { children: [
11483
- /* @__PURE__ */ jsx87("span", { className: cx29(styles.label), children: label }),
11484
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx87(
11567
+ return /* @__PURE__ */ jsxs41(Fragment18, { children: [
11568
+ /* @__PURE__ */ jsx86("span", { className: cx29(styles.label), children: label }),
11569
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.value, !hasValue && styles.valueEmpty), children: !hasValue && isFieldEditable && onStartEdit ? /* @__PURE__ */ jsx86(
11485
11570
  Button_default,
11486
11571
  {
11487
11572
  onClick: onStartEdit,
@@ -11504,8 +11589,8 @@ var BaseOrganizationProfile = ({
11504
11589
  if (!shouldShow) {
11505
11590
  return null;
11506
11591
  }
11507
- return /* @__PURE__ */ jsxs42("div", { className: cx29(styles.field), children: [
11508
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.fieldContent), children: renderField(
11592
+ return /* @__PURE__ */ jsxs41("div", { className: cx29(styles.field), children: [
11593
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.fieldContent), children: renderField(
11509
11594
  field,
11510
11595
  isFieldEditing,
11511
11596
  (value) => {
@@ -11515,8 +11600,8 @@ var BaseOrganizationProfile = ({
11515
11600
  },
11516
11601
  () => toggleFieldEdit(field.key)
11517
11602
  ) }),
11518
- isFieldEditable && /* @__PURE__ */ jsx87("div", { className: cx29(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ jsxs42(Fragment18, { children: [
11519
- /* @__PURE__ */ jsx87(
11603
+ isFieldEditable && /* @__PURE__ */ jsx86("div", { className: cx29(styles.fieldActions), children: isFieldEditing ? /* @__PURE__ */ jsxs41(Fragment18, { children: [
11604
+ /* @__PURE__ */ jsx86(
11520
11605
  Button_default,
11521
11606
  {
11522
11607
  onClick: () => handleFieldSave(field.key),
@@ -11527,7 +11612,7 @@ var BaseOrganizationProfile = ({
11527
11612
  children: saveButtonText
11528
11613
  }
11529
11614
  ),
11530
- /* @__PURE__ */ jsx87(
11615
+ /* @__PURE__ */ jsx86(
11531
11616
  Button_default,
11532
11617
  {
11533
11618
  onClick: () => handleFieldCancel(field.key),
@@ -11538,7 +11623,7 @@ var BaseOrganizationProfile = ({
11538
11623
  children: cancelButtonText
11539
11624
  }
11540
11625
  )
11541
- ] }) : hasValue && /* @__PURE__ */ jsx87(
11626
+ ] }) : hasValue && /* @__PURE__ */ jsx86(
11542
11627
  Button_default,
11543
11628
  {
11544
11629
  onClick: () => toggleFieldEdit(field.key),
@@ -11547,7 +11632,7 @@ var BaseOrganizationProfile = ({
11547
11632
  size: "small",
11548
11633
  title: "Edit field",
11549
11634
  className: cx29(styles.editButton),
11550
- children: /* @__PURE__ */ jsx87(PencilIcon, {})
11635
+ children: /* @__PURE__ */ jsx86(PencilIcon, {})
11551
11636
  }
11552
11637
  ) })
11553
11638
  ] }, field.key);
@@ -11555,23 +11640,23 @@ var BaseOrganizationProfile = ({
11555
11640
  if (!organization) {
11556
11641
  return fallback;
11557
11642
  }
11558
- const profileContent = /* @__PURE__ */ jsxs42(Card_default, { className: cx29(styles.root, cardLayout && styles.card, className), children: [
11559
- /* @__PURE__ */ jsxs42("div", { className: cx29(styles.header), children: [
11560
- /* @__PURE__ */ jsx87(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11561
- /* @__PURE__ */ jsxs42("div", { className: cx29(styles.orgInfo), children: [
11562
- /* @__PURE__ */ jsx87("h2", { className: cx29(styles.name), children: organization.name }),
11563
- organization.orgHandle && /* @__PURE__ */ jsxs42("p", { className: cx29(styles.handle), children: [
11643
+ const profileContent = /* @__PURE__ */ jsxs41(Card_default, { className: cx29(styles.root, cardLayout && styles.card, className), children: [
11644
+ /* @__PURE__ */ jsxs41("div", { className: cx29(styles.header), children: [
11645
+ /* @__PURE__ */ jsx86(Avatar, { name: getOrgInitials(organization.name), size: 80, alt: `${organization.name} logo` }),
11646
+ /* @__PURE__ */ jsxs41("div", { className: cx29(styles.orgInfo), children: [
11647
+ /* @__PURE__ */ jsx86("h2", { className: cx29(styles.name), children: organization.name }),
11648
+ organization.orgHandle && /* @__PURE__ */ jsxs41("p", { className: cx29(styles.handle), children: [
11564
11649
  "@",
11565
11650
  organization.orgHandle
11566
11651
  ] })
11567
11652
  ] })
11568
11653
  ] }),
11569
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11654
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.infoContainer), children: fields.map((field, index) => renderOrganizationField(field)) })
11570
11655
  ] });
11571
11656
  if (mode === "popup") {
11572
- return /* @__PURE__ */ jsx87(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
11573
- /* @__PURE__ */ jsx87(Dialog_default.Heading, { children: title }),
11574
- /* @__PURE__ */ jsx87("div", { className: cx29(styles.popup), children: profileContent })
11657
+ return /* @__PURE__ */ jsx86(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs41(Dialog_default.Content, { children: [
11658
+ /* @__PURE__ */ jsx86(Dialog_default.Heading, { children: title }),
11659
+ /* @__PURE__ */ jsx86("div", { className: cx29(styles.popup), children: profileContent })
11575
11660
  ] }) });
11576
11661
  }
11577
11662
  return profileContent;
@@ -11640,7 +11725,7 @@ var updateOrganization = async ({
11640
11725
  var updateOrganization_default = updateOrganization;
11641
11726
 
11642
11727
  // src/components/presentation/OrganizationProfile/OrganizationProfile.tsx
11643
- import { jsx as jsx88 } from "react/jsx-runtime";
11728
+ import { jsx as jsx87 } from "react/jsx-runtime";
11644
11729
  var OrganizationProfile = ({
11645
11730
  organizationId,
11646
11731
  mode = "default",
@@ -11648,8 +11733,8 @@ var OrganizationProfile = ({
11648
11733
  onOpenChange,
11649
11734
  onUpdate,
11650
11735
  popupTitle,
11651
- loadingFallback = /* @__PURE__ */ jsx88("div", { children: "Loading organization..." }),
11652
- errorFallback = /* @__PURE__ */ jsx88("div", { children: "Failed to load organization data" }),
11736
+ loadingFallback = /* @__PURE__ */ jsx87("div", { children: "Loading organization..." }),
11737
+ errorFallback = /* @__PURE__ */ jsx87("div", { children: "Failed to load organization data" }),
11653
11738
  ...rest
11654
11739
  }) => {
11655
11740
  const { baseUrl } = useAsgardeo_default();
@@ -11700,7 +11785,7 @@ var OrganizationProfile = ({
11700
11785
  throw err;
11701
11786
  }
11702
11787
  };
11703
- return /* @__PURE__ */ jsx88(
11788
+ return /* @__PURE__ */ jsx87(
11704
11789
  BaseOrganizationProfile_default,
11705
11790
  {
11706
11791
  organization,
@@ -11950,21 +12035,21 @@ var useStyles27 = (theme, colorScheme) => {
11950
12035
  var BaseOrganizationList_styles_default = useStyles27;
11951
12036
 
11952
12037
  // src/components/presentation/OrganizationList/BaseOrganizationList.tsx
11953
- import { jsx as jsx89, jsxs as jsxs43 } from "react/jsx-runtime";
12038
+ import { jsx as jsx88, jsxs as jsxs42 } from "react/jsx-runtime";
11954
12039
  var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect, showStatus) => {
11955
- return /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationItem), children: [
11956
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationContent), children: [
11957
- /* @__PURE__ */ jsx89(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
11958
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.organizationInfo), children: [
11959
- /* @__PURE__ */ jsx89(Typography_default, { variant: "h6", className: cx30(styles.organizationName), children: organization.name }),
11960
- /* @__PURE__ */ jsxs43(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationHandle), children: [
12040
+ return /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationItem), children: [
12041
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationContent), children: [
12042
+ /* @__PURE__ */ jsx88(Avatar_default, { variant: "square", name: organization.name, size: 48, alt: `${organization.name} logo` }),
12043
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.organizationInfo), children: [
12044
+ /* @__PURE__ */ jsx88(Typography_default, { variant: "h6", className: cx30(styles.organizationName), children: organization.name }),
12045
+ /* @__PURE__ */ jsxs42(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationHandle), children: [
11961
12046
  "@",
11962
12047
  organization.orgHandle
11963
12048
  ] }),
11964
- showStatus && /* @__PURE__ */ jsxs43(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationStatus), children: [
12049
+ showStatus && /* @__PURE__ */ jsxs42(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.organizationStatus), children: [
11965
12050
  t("organization.switcher.status.label"),
11966
12051
  " ",
11967
- /* @__PURE__ */ jsx89(
12052
+ /* @__PURE__ */ jsx88(
11968
12053
  "span",
11969
12054
  {
11970
12055
  className: cx30(
@@ -11977,7 +12062,7 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
11977
12062
  ] })
11978
12063
  ] })
11979
12064
  ] }),
11980
- organization.canSwitch && /* @__PURE__ */ jsx89("div", { className: cx30(styles.organizationActions), children: /* @__PURE__ */ jsx89(
12065
+ organization.canSwitch && /* @__PURE__ */ jsx88("div", { className: cx30(styles.organizationActions), children: /* @__PURE__ */ jsx88(
11981
12066
  Button_default,
11982
12067
  {
11983
12068
  onClick: (e) => {
@@ -11991,17 +12076,17 @@ var defaultRenderOrganization = (organization, styles, t, onOrganizationSelect,
11991
12076
  ) })
11992
12077
  ] }, organization.id);
11993
12078
  };
11994
- var defaultRenderLoading = (t, styles) => /* @__PURE__ */ jsxs43("div", { className: cx30(styles.loadingContainer), children: [
11995
- /* @__PURE__ */ jsx89(Spinner_default, { size: "medium" }),
11996
- /* @__PURE__ */ jsx89(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.loadingText), children: t("organization.switcher.loading.organizations") })
12079
+ var defaultRenderLoading = (t, styles) => /* @__PURE__ */ jsxs42("div", { className: cx30(styles.loadingContainer), children: [
12080
+ /* @__PURE__ */ jsx88(Spinner_default, { size: "medium" }),
12081
+ /* @__PURE__ */ jsx88(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.loadingText), children: t("organization.switcher.loading.organizations") })
11997
12082
  ] });
11998
- var defaultRenderError = (error, t, styles) => /* @__PURE__ */ jsx89("div", { className: cx30(styles.errorContainer), children: /* @__PURE__ */ jsxs43(Typography_default, { variant: "body1", color: "error", children: [
11999
- /* @__PURE__ */ jsx89("strong", { children: t("organization.switcher.error.prefix") }),
12083
+ var defaultRenderError = (error, t, styles) => /* @__PURE__ */ jsx88("div", { className: cx30(styles.errorContainer), children: /* @__PURE__ */ jsxs42(Typography_default, { variant: "body1", color: "error", children: [
12084
+ /* @__PURE__ */ jsx88("strong", { children: t("organization.switcher.error.prefix") }),
12000
12085
  " ",
12001
12086
  error
12002
12087
  ] }) });
12003
- var defaultRenderLoadMore = (onLoadMore, isLoading, t, styles) => /* @__PURE__ */ jsx89(Button_default, { onClick: onLoadMore, disabled: isLoading, className: cx30(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoading ? t("organization.switcher.loading.more") : t("organization.switcher.load.more") });
12004
- var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ jsx89("div", { className: cx30(styles.emptyContainer), children: /* @__PURE__ */ jsx89(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
12088
+ var defaultRenderLoadMore = (onLoadMore, isLoading, t, styles) => /* @__PURE__ */ jsx88(Button_default, { onClick: onLoadMore, disabled: isLoading, className: cx30(styles.loadMoreButton), type: "button", fullWidth: true, children: isLoading ? t("organization.switcher.loading.more") : t("organization.switcher.load.more") });
12089
+ var defaultRenderEmpty = (t, styles) => /* @__PURE__ */ jsx88("div", { className: cx30(styles.emptyContainer), children: /* @__PURE__ */ jsx88(Typography_default, { variant: "body1", color: "textSecondary", className: cx30(styles.emptyText), children: t("organization.switcher.no.organizations") }) });
12005
12090
  var BaseOrganizationList = ({
12006
12091
  className = "",
12007
12092
  allOrganizations,
@@ -12044,53 +12129,53 @@ var BaseOrganizationList = ({
12044
12129
  const renderLoadMoreWithStyles = renderLoadMore || ((onLoadMore, isLoading2) => defaultRenderLoadMore(onLoadMore, isLoading2, t, styles));
12045
12130
  const renderOrganizationWithStyles = renderOrganization || ((org) => defaultRenderOrganization(org, styles, t, onOrganizationSelect, showStatus));
12046
12131
  if (isLoading && organizationsWithSwitchAccess?.length === 0) {
12047
- const loadingContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderLoadingWithStyles() });
12132
+ const loadingContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderLoadingWithStyles() });
12048
12133
  if (mode === "popup") {
12049
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12050
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12051
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: loadingContent })
12134
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12135
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12136
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: loadingContent })
12052
12137
  ] }) });
12053
12138
  }
12054
12139
  return loadingContent;
12055
12140
  }
12056
12141
  if (error && organizationsWithSwitchAccess?.length === 0) {
12057
- const errorContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderErrorWithStyles(error) });
12142
+ const errorContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderErrorWithStyles(error) });
12058
12143
  if (mode === "popup") {
12059
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12060
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12061
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: errorContent })
12144
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12145
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12146
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: errorContent })
12062
12147
  ] }) });
12063
12148
  }
12064
12149
  return errorContent;
12065
12150
  }
12066
12151
  if (!isLoading && organizationsWithSwitchAccess?.length === 0) {
12067
- const emptyContent = /* @__PURE__ */ jsx89("div", { className: cx30(styles.root, className), style, children: renderEmptyWithStyles() });
12152
+ const emptyContent = /* @__PURE__ */ jsx88("div", { className: cx30(styles.root, className), style, children: renderEmptyWithStyles() });
12068
12153
  if (mode === "popup") {
12069
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12070
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12071
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: emptyContent })
12154
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12155
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12156
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: emptyContent })
12072
12157
  ] }) });
12073
12158
  }
12074
12159
  return emptyContent;
12075
12160
  }
12076
- const organizationListContent = /* @__PURE__ */ jsxs43("div", { className: cx30(styles.root, className), style, children: [
12077
- /* @__PURE__ */ jsxs43("div", { className: cx30(styles.header), children: [
12078
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.headerInfo), children: /* @__PURE__ */ jsx89(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.subtitle), children: t("organization.switcher.showing.count", {
12161
+ const organizationListContent = /* @__PURE__ */ jsxs42("div", { className: cx30(styles.root, className), style, children: [
12162
+ /* @__PURE__ */ jsxs42("div", { className: cx30(styles.header), children: [
12163
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.headerInfo), children: /* @__PURE__ */ jsx88(Typography_default, { variant: "body2", color: "textSecondary", className: cx30(styles.subtitle), children: t("organization.switcher.showing.count", {
12079
12164
  showing: organizationsWithSwitchAccess?.length,
12080
12165
  total: allOrganizations?.organizations?.length || 0
12081
12166
  }) }) }),
12082
- onRefresh && /* @__PURE__ */ jsx89(Button_default, { onClick: onRefresh, className: cx30(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12167
+ onRefresh && /* @__PURE__ */ jsx88(Button_default, { onClick: onRefresh, className: cx30(styles.refreshButton), type: "button", variant: "outline", size: "small", children: t("organization.switcher.refresh.button") })
12083
12168
  ] }),
12084
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12169
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.listContainer), children: organizationsWithSwitchAccess?.map(
12085
12170
  (organization, index) => renderOrganizationWithStyles(organization, index)
12086
12171
  ) }),
12087
- error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx89("div", { className: cx30(styles.errorMargin), children: renderErrorWithStyles(error) }),
12088
- hasMore && fetchMore && /* @__PURE__ */ jsx89("div", { className: cx30(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12172
+ error && organizationsWithSwitchAccess?.length > 0 && /* @__PURE__ */ jsx88("div", { className: cx30(styles.errorMargin), children: renderErrorWithStyles(error) }),
12173
+ hasMore && fetchMore && /* @__PURE__ */ jsx88("div", { className: cx30(styles.loadMoreMargin), children: renderLoadMoreWithStyles(fetchMore, isLoadingMore) })
12089
12174
  ] });
12090
12175
  if (mode === "popup") {
12091
- return /* @__PURE__ */ jsx89(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs43(Dialog_default.Content, { children: [
12092
- /* @__PURE__ */ jsx89(Dialog_default.Heading, { children: title }),
12093
- /* @__PURE__ */ jsx89("div", { className: cx30(styles.popupContent), children: organizationListContent })
12176
+ return /* @__PURE__ */ jsx88(Dialog_default, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(Dialog_default.Content, { children: [
12177
+ /* @__PURE__ */ jsx88(Dialog_default.Heading, { children: title }),
12178
+ /* @__PURE__ */ jsx88("div", { className: cx30(styles.popupContent), children: organizationListContent })
12094
12179
  ] }) });
12095
12180
  }
12096
12181
  return organizationListContent;
@@ -12167,7 +12252,7 @@ var useStyles28 = (theme, colorScheme) => {
12167
12252
  var OrganizationList_styles_default = useStyles28;
12168
12253
 
12169
12254
  // src/components/presentation/OrganizationList/OrganizationList.tsx
12170
- import { jsx as jsx90 } from "react/jsx-runtime";
12255
+ import { jsx as jsx89 } from "react/jsx-runtime";
12171
12256
  var OrganizationList = ({
12172
12257
  autoFetch = true,
12173
12258
  filter = "",
@@ -12189,7 +12274,7 @@ var OrganizationList = ({
12189
12274
  setAllOrganizations(await getAllOrganizations2());
12190
12275
  })();
12191
12276
  }, []);
12192
- return /* @__PURE__ */ jsx90("div", { className: cx31(styles.root, className), style, children: /* @__PURE__ */ jsx90("div", { className: cx31(styles.container), children: /* @__PURE__ */ jsx90(
12277
+ return /* @__PURE__ */ jsx89("div", { className: cx31(styles.root, className), style, children: /* @__PURE__ */ jsx89("div", { className: cx31(styles.container), children: /* @__PURE__ */ jsx89(
12193
12278
  BaseOrganizationList_default,
12194
12279
  {
12195
12280
  allOrganizations,
@@ -12204,8 +12289,8 @@ var OrganizationList = ({
12204
12289
  var OrganizationList_default = OrganizationList;
12205
12290
 
12206
12291
  // src/components/primitives/Icons/BuildingAlt.tsx
12207
- import { jsx as jsx91, jsxs as jsxs44 } from "react/jsx-runtime";
12208
- var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs44(
12292
+ import { jsx as jsx90, jsxs as jsxs43 } from "react/jsx-runtime";
12293
+ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @__PURE__ */ jsxs43(
12209
12294
  "svg",
12210
12295
  {
12211
12296
  width,
@@ -12218,13 +12303,13 @@ var BuildingAlt = ({ color = "currentColor", height = 24, width = 24 }) => /* @_
12218
12303
  strokeLinecap: "round",
12219
12304
  strokeLinejoin: "round",
12220
12305
  children: [
12221
- /* @__PURE__ */ jsx91("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12222
- /* @__PURE__ */ jsx91("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12223
- /* @__PURE__ */ jsx91("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12224
- /* @__PURE__ */ jsx91("path", { d: "M10 6h4" }),
12225
- /* @__PURE__ */ jsx91("path", { d: "M10 10h4" }),
12226
- /* @__PURE__ */ jsx91("path", { d: "M10 14h4" }),
12227
- /* @__PURE__ */ jsx91("path", { d: "M10 18h4" })
12306
+ /* @__PURE__ */ jsx90("path", { d: "M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" }),
12307
+ /* @__PURE__ */ jsx90("path", { d: "M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" }),
12308
+ /* @__PURE__ */ jsx90("path", { d: "M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" }),
12309
+ /* @__PURE__ */ jsx90("path", { d: "M10 6h4" }),
12310
+ /* @__PURE__ */ jsx90("path", { d: "M10 10h4" }),
12311
+ /* @__PURE__ */ jsx90("path", { d: "M10 14h4" }),
12312
+ /* @__PURE__ */ jsx90("path", { d: "M10 18h4" })
12228
12313
  ]
12229
12314
  }
12230
12315
  );
@@ -12232,7 +12317,7 @@ BuildingAlt.displayName = "BuildingAlt";
12232
12317
  var BuildingAlt_default = BuildingAlt;
12233
12318
 
12234
12319
  // src/components/presentation/OrganizationSwitcher/OrganizationSwitcher.tsx
12235
- import { Fragment as Fragment19, jsx as jsx92, jsxs as jsxs45 } from "react/jsx-runtime";
12320
+ import { Fragment as Fragment19, jsx as jsx91, jsxs as jsxs44 } from "react/jsx-runtime";
12236
12321
  var OrganizationSwitcher = ({
12237
12322
  currentOrganization: propCurrentOrganization,
12238
12323
  fallback = null,
@@ -12256,7 +12341,7 @@ var OrganizationSwitcher = ({
12256
12341
  return fallback;
12257
12342
  }
12258
12343
  if (!isSignedIn) {
12259
- return /* @__PURE__ */ jsx92(Fragment19, {});
12344
+ return /* @__PURE__ */ jsx91(Fragment19, {});
12260
12345
  }
12261
12346
  const organizations = propOrganizations || contextOrganizations || [];
12262
12347
  const currentOrganization = propCurrentOrganization || contextCurrentOrganization;
@@ -12270,19 +12355,19 @@ var OrganizationSwitcher = ({
12270
12355
  const defaultMenuItems = [];
12271
12356
  if (currentOrganization) {
12272
12357
  defaultMenuItems.push({
12273
- icon: /* @__PURE__ */ jsx92(BuildingAlt_default, {}),
12358
+ icon: /* @__PURE__ */ jsx91(BuildingAlt_default, {}),
12274
12359
  label: t("organization.switcher.manage.organizations"),
12275
12360
  onClick: handleManageOrganizations
12276
12361
  });
12277
12362
  }
12278
12363
  defaultMenuItems.push({
12279
- icon: /* @__PURE__ */ jsx92("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx92("path", { d: "M12 5v14m-7-7h14" }) }),
12364
+ icon: /* @__PURE__ */ jsx91("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx91("path", { d: "M12 5v14m-7-7h14" }) }),
12280
12365
  label: t("organization.switcher.create.organization"),
12281
12366
  onClick: () => setIsCreateOrgOpen(true)
12282
12367
  });
12283
12368
  const menuItems = props.menuItems ? [...defaultMenuItems, ...props.menuItems] : defaultMenuItems;
12284
- return /* @__PURE__ */ jsxs45(Fragment19, { children: [
12285
- /* @__PURE__ */ jsx92(
12369
+ return /* @__PURE__ */ jsxs44(Fragment19, { children: [
12370
+ /* @__PURE__ */ jsx91(
12286
12371
  BaseOrganizationSwitcher_default,
12287
12372
  {
12288
12373
  organizations,
@@ -12295,7 +12380,7 @@ var OrganizationSwitcher = ({
12295
12380
  ...props
12296
12381
  }
12297
12382
  ),
12298
- /* @__PURE__ */ jsx92(
12383
+ /* @__PURE__ */ jsx91(
12299
12384
  CreateOrganization,
12300
12385
  {
12301
12386
  mode: "popup",
@@ -12309,7 +12394,7 @@ var OrganizationSwitcher = ({
12309
12394
  }
12310
12395
  }
12311
12396
  ),
12312
- currentOrganization && /* @__PURE__ */ jsx92(
12397
+ currentOrganization && /* @__PURE__ */ jsx91(
12313
12398
  OrganizationProfile_default,
12314
12399
  {
12315
12400
  organizationId: currentOrganization.id,
@@ -12317,11 +12402,11 @@ var OrganizationSwitcher = ({
12317
12402
  open: isProfileOpen,
12318
12403
  onOpenChange: setIsProfileOpen,
12319
12404
  cardLayout: true,
12320
- loadingFallback: /* @__PURE__ */ jsx92("div", { children: t("organization.profile.loading") }),
12321
- errorFallback: /* @__PURE__ */ jsx92("div", { children: t("organization.profile.error") })
12405
+ loadingFallback: /* @__PURE__ */ jsx91("div", { children: t("organization.profile.loading") }),
12406
+ errorFallback: /* @__PURE__ */ jsx91("div", { children: t("organization.profile.error") })
12322
12407
  }
12323
12408
  ),
12324
- /* @__PURE__ */ jsx92(
12409
+ /* @__PURE__ */ jsx91(
12325
12410
  OrganizationList_default,
12326
12411
  {
12327
12412
  mode: "popup",
@@ -12341,7 +12426,7 @@ var OrganizationSwitcher = ({
12341
12426
  var OrganizationSwitcher_default = OrganizationSwitcher;
12342
12427
 
12343
12428
  // src/index.ts
12344
- import { AsgardeoRuntimeError as AsgardeoRuntimeError7, http } from "@asgardeo/browser";
12429
+ import { AsgardeoRuntimeError as AsgardeoRuntimeError7, http, getActiveTheme as getActiveTheme2 } from "@asgardeo/browser";
12345
12430
  export {
12346
12431
  Alert_default as Alert,
12347
12432
  AlertDescription,
@@ -12440,6 +12525,7 @@ export {
12440
12525
  createPatchOperations,
12441
12526
  createSignInOption,
12442
12527
  createSignInOptionFromAuthenticator,
12528
+ getActiveTheme2 as getActiveTheme,
12443
12529
  getAllOrganizations_default as getAllOrganizations,
12444
12530
  getMeOrganizations_default as getMeOrganizations,
12445
12531
  getScim2Me_default as getMeProfile,